Versions in this module Expand all Collapse all v0 v0.37.1 Dec 15, 2020 Changes in this version + const CloudPlatformScope + const ServicecontrolScope + type AllocateInfo struct + ForceSendFields []string + NullFields []string + UnusedArguments []string + func (s *AllocateInfo) MarshalJSON() ([]byte, error) + type AllocateQuotaRequest struct + AllocateOperation *QuotaOperation + ForceSendFields []string + NullFields []string + ServiceConfigId string + func (s *AllocateQuotaRequest) MarshalJSON() ([]byte, error) + type AllocateQuotaResponse struct + AllocateErrors []*QuotaError + AllocateInfo *AllocateInfo + ForceSendFields []string + NullFields []string + OperationId string + QuotaMetrics []*MetricValueSet + ServiceConfigId string + func (s *AllocateQuotaResponse) MarshalJSON() ([]byte, error) + type AttributeValue struct + BoolValue bool + ForceSendFields []string + IntValue int64 + NullFields []string + StringValue *TruncatableString + func (s *AttributeValue) MarshalJSON() ([]byte, error) + type Attributes struct + AttributeMap map[string]AttributeValue + DroppedAttributesCount int64 + ForceSendFields []string + NullFields []string + func (s *Attributes) MarshalJSON() ([]byte, error) + type AuditLog struct + AuthenticationInfo *AuthenticationInfo + AuthorizationInfo []*AuthorizationInfo + ForceSendFields []string + Metadata googleapi.RawMessage + MethodName string + NullFields []string + NumResponseItems int64 + Request googleapi.RawMessage + RequestMetadata *RequestMetadata + ResourceLocation *ResourceLocation + ResourceName string + ResourceOriginalState googleapi.RawMessage + Response googleapi.RawMessage + ServiceData googleapi.RawMessage + ServiceName string + Status *Status + func (s *AuditLog) MarshalJSON() ([]byte, error) + type Auth struct + AccessLevels []string + Audiences []string + Claims googleapi.RawMessage + ForceSendFields []string + NullFields []string + Presenter string + Principal string + func (s *Auth) MarshalJSON() ([]byte, error) + type AuthenticationInfo struct + AuthoritySelector string + ForceSendFields []string + NullFields []string + PrincipalEmail string + PrincipalSubject string + ServiceAccountDelegationInfo []*ServiceAccountDelegationInfo + ServiceAccountKeyName string + ThirdPartyPrincipal googleapi.RawMessage + func (s *AuthenticationInfo) MarshalJSON() ([]byte, error) + type AuthorizationInfo struct + ForceSendFields []string + Granted bool + NullFields []string + Permission string + Resource string + ResourceAttributes *Resource + func (s *AuthorizationInfo) MarshalJSON() ([]byte, error) + type CheckError struct + Code string + Detail string + ForceSendFields []string + NullFields []string + Status *Status + Subject string + func (s *CheckError) MarshalJSON() ([]byte, error) + type CheckInfo struct + ConsumerInfo *ConsumerInfo + ForceSendFields []string + NullFields []string + UnusedArguments []string + func (s *CheckInfo) MarshalJSON() ([]byte, error) + type CheckRequest struct + ForceSendFields []string + NullFields []string + Operation *Operation + RequestProjectSettings bool + ServiceConfigId string + SkipActivationCheck bool + func (s *CheckRequest) MarshalJSON() ([]byte, error) + type CheckResponse struct + CheckErrors []*CheckError + CheckInfo *CheckInfo + ForceSendFields []string + NullFields []string + OperationId string + QuotaInfo *QuotaInfo + ServiceConfigId string + ServiceRolloutId string + func (s *CheckResponse) MarshalJSON() ([]byte, error) + type ConsumerInfo struct + ConsumerNumber int64 + ForceSendFields []string + NullFields []string + ProjectNumber int64 + Type string + func (s *ConsumerInfo) MarshalJSON() ([]byte, error) + type Distribution struct + BucketCounts googleapi.Int64s + Count int64 + Exemplars []*Exemplar + ExplicitBuckets *ExplicitBuckets + ExponentialBuckets *ExponentialBuckets + ForceSendFields []string + LinearBuckets *LinearBuckets + Maximum float64 + Mean float64 + Minimum float64 + NullFields []string + SumOfSquaredDeviation float64 + func (s *Distribution) MarshalJSON() ([]byte, error) + func (s *Distribution) UnmarshalJSON(data []byte) error + type Exemplar struct + Attachments []googleapi.RawMessage + ForceSendFields []string + NullFields []string + Timestamp string + Value float64 + func (s *Exemplar) MarshalJSON() ([]byte, error) + func (s *Exemplar) UnmarshalJSON(data []byte) error + type ExplicitBuckets struct + Bounds []float64 + ForceSendFields []string + NullFields []string + func (s *ExplicitBuckets) MarshalJSON() ([]byte, error) + type ExponentialBuckets struct + ForceSendFields []string + GrowthFactor float64 + NullFields []string + NumFiniteBuckets int64 + Scale float64 + func (s *ExponentialBuckets) MarshalJSON() ([]byte, error) + func (s *ExponentialBuckets) UnmarshalJSON(data []byte) error + type FirstPartyPrincipal struct + ForceSendFields []string + NullFields []string + PrincipalEmail string + ServiceMetadata googleapi.RawMessage + func (s *FirstPartyPrincipal) MarshalJSON() ([]byte, error) + type HttpRequest struct + CacheFillBytes int64 + CacheHit bool + CacheLookup bool + CacheValidatedWithOriginServer bool + ForceSendFields []string + Latency string + NullFields []string + Protocol string + Referer string + RemoteIp string + RequestMethod string + RequestSize int64 + RequestUrl string + ResponseSize int64 + ServerIp string + Status int64 + UserAgent string + func (s *HttpRequest) MarshalJSON() ([]byte, error) + type LinearBuckets struct + ForceSendFields []string + NullFields []string + NumFiniteBuckets int64 + Offset float64 + Width float64 + func (s *LinearBuckets) MarshalJSON() ([]byte, error) + func (s *LinearBuckets) UnmarshalJSON(data []byte) error + type LogEntry struct + ForceSendFields []string + HttpRequest *HttpRequest + InsertId string + Labels map[string]string + Name string + NullFields []string + Operation *LogEntryOperation + ProtoPayload googleapi.RawMessage + Severity string + SourceLocation *LogEntrySourceLocation + StructPayload googleapi.RawMessage + TextPayload string + Timestamp string + Trace string + func (s *LogEntry) MarshalJSON() ([]byte, error) + type LogEntryOperation struct + First bool + ForceSendFields []string + Id string + Last bool + NullFields []string + Producer string + func (s *LogEntryOperation) MarshalJSON() ([]byte, error) + type LogEntrySourceLocation struct + File string + ForceSendFields []string + Function string + Line int64 + NullFields []string + func (s *LogEntrySourceLocation) MarshalJSON() ([]byte, error) + type MetricValue struct + BoolValue *bool + DistributionValue *Distribution + DoubleValue *float64 + EndTime string + ForceSendFields []string + Int64Value *int64 + Labels map[string]string + MoneyValue *Money + NullFields []string + StartTime string + StringValue *string + func (s *MetricValue) MarshalJSON() ([]byte, error) + func (s *MetricValue) UnmarshalJSON(data []byte) error + type MetricValueSet struct + ForceSendFields []string + MetricName string + MetricValues []*MetricValue + NullFields []string + func (s *MetricValueSet) MarshalJSON() ([]byte, error) + type Money struct + CurrencyCode string + ForceSendFields []string + Nanos int64 + NullFields []string + Units int64 + func (s *Money) MarshalJSON() ([]byte, error) + type Operation struct + ConsumerId string + EndTime string + Extensions []googleapi.RawMessage + ForceSendFields []string + Importance string + Labels map[string]string + LogEntries []*LogEntry + MetricValueSets []*MetricValueSet + NullFields []string + OperationId string + OperationName string + QuotaProperties *QuotaProperties + Resources []*ResourceInfo + StartTime string + TraceSpans []*TraceSpan + UserLabels map[string]string + func (s *Operation) MarshalJSON() ([]byte, error) + type Peer struct + ForceSendFields []string + Ip string + Labels map[string]string + NullFields []string + Port int64 + Principal string + RegionCode string + func (s *Peer) MarshalJSON() ([]byte, error) + type QuotaError struct + Code string + Description string + ForceSendFields []string + NullFields []string + Status *Status + Subject string + func (s *QuotaError) MarshalJSON() ([]byte, error) + type QuotaInfo struct + ForceSendFields []string + LimitExceeded []string + NullFields []string + QuotaConsumed map[string]int64 + QuotaMetrics []*MetricValueSet + func (s *QuotaInfo) MarshalJSON() ([]byte, error) + type QuotaOperation struct + ConsumerId string + ForceSendFields []string + Labels map[string]string + MethodName string + NullFields []string + OperationId string + QuotaMetrics []*MetricValueSet + QuotaMode string + func (s *QuotaOperation) MarshalJSON() ([]byte, error) + type QuotaProperties struct + ForceSendFields []string + NullFields []string + QuotaMode string + func (s *QuotaProperties) MarshalJSON() ([]byte, error) + type ReportError struct + ForceSendFields []string + NullFields []string + OperationId string + Status *Status + func (s *ReportError) MarshalJSON() ([]byte, error) + type ReportInfo struct + ForceSendFields []string + NullFields []string + OperationId string + QuotaInfo *QuotaInfo + func (s *ReportInfo) MarshalJSON() ([]byte, error) + type ReportRequest struct + ForceSendFields []string + NullFields []string + Operations []*Operation + ServiceConfigId string + func (s *ReportRequest) MarshalJSON() ([]byte, error) + type ReportResponse struct + ForceSendFields []string + NullFields []string + ReportErrors []*ReportError + ReportInfos []*ReportInfo + ServiceConfigId string + ServiceRolloutId string + func (s *ReportResponse) MarshalJSON() ([]byte, error) + type Request struct + Auth *Auth + ForceSendFields []string + Headers map[string]string + Host string + Id string + Method string + NullFields []string + Path string + Protocol string + Query string + Reason string + Scheme string + Size int64 + Time string + func (s *Request) MarshalJSON() ([]byte, error) + type RequestMetadata struct + CallerIp string + CallerNetwork string + CallerSuppliedUserAgent string + DestinationAttributes *Peer + ForceSendFields []string + NullFields []string + RequestAttributes *Request + func (s *RequestMetadata) MarshalJSON() ([]byte, error) + type Resource struct + Annotations map[string]string + CreateTime string + DeleteTime string + DisplayName string + Etag string + ForceSendFields []string + Labels map[string]string + Name string + NullFields []string + Service string + Type string + Uid string + UpdateTime string + func (s *Resource) MarshalJSON() ([]byte, error) + type ResourceInfo struct + ForceSendFields []string + NullFields []string + ResourceContainer string + ResourceLocation string + ResourceName string + func (s *ResourceInfo) MarshalJSON() ([]byte, error) + type ResourceLocation struct + CurrentLocations []string + ForceSendFields []string + NullFields []string + OriginalLocations []string + func (s *ResourceLocation) MarshalJSON() ([]byte, error) + type Service struct + BasePath string + Services *ServicesService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type ServiceAccountDelegationInfo struct + FirstPartyPrincipal *FirstPartyPrincipal + ForceSendFields []string + NullFields []string + PrincipalSubject string + ThirdPartyPrincipal *ThirdPartyPrincipal + func (s *ServiceAccountDelegationInfo) MarshalJSON() ([]byte, error) + type ServicesAllocateQuotaCall struct + func (c *ServicesAllocateQuotaCall) Context(ctx context.Context) *ServicesAllocateQuotaCall + func (c *ServicesAllocateQuotaCall) Do(opts ...googleapi.CallOption) (*AllocateQuotaResponse, error) + func (c *ServicesAllocateQuotaCall) Fields(s ...googleapi.Field) *ServicesAllocateQuotaCall + func (c *ServicesAllocateQuotaCall) Header() http.Header + type ServicesCheckCall struct + func (c *ServicesCheckCall) Context(ctx context.Context) *ServicesCheckCall + func (c *ServicesCheckCall) Do(opts ...googleapi.CallOption) (*CheckResponse, error) + func (c *ServicesCheckCall) Fields(s ...googleapi.Field) *ServicesCheckCall + func (c *ServicesCheckCall) Header() http.Header + type ServicesReportCall struct + func (c *ServicesReportCall) Context(ctx context.Context) *ServicesReportCall + func (c *ServicesReportCall) Do(opts ...googleapi.CallOption) (*ReportResponse, error) + func (c *ServicesReportCall) Fields(s ...googleapi.Field) *ServicesReportCall + func (c *ServicesReportCall) Header() http.Header + type ServicesService struct + func NewServicesService(s *Service) *ServicesService + func (r *ServicesService) AllocateQuota(serviceName string, allocatequotarequest *AllocateQuotaRequest) *ServicesAllocateQuotaCall + func (r *ServicesService) Check(serviceName string, checkrequest *CheckRequest) *ServicesCheckCall + func (r *ServicesService) Report(serviceName string, reportrequest *ReportRequest) *ServicesReportCall + type SpanContext struct + ForceSendFields []string + NullFields []string + SpanName string + func (s *SpanContext) MarshalJSON() ([]byte, error) + type Status struct + Code int64 + Details []googleapi.RawMessage + ForceSendFields []string + Message string + NullFields []string + func (s *Status) MarshalJSON() ([]byte, error) + type ThirdPartyPrincipal struct + ForceSendFields []string + NullFields []string + ThirdPartyClaims googleapi.RawMessage + func (s *ThirdPartyPrincipal) MarshalJSON() ([]byte, error) + type TraceSpan struct + Attributes *Attributes + ChildSpanCount int64 + DisplayName *TruncatableString + EndTime string + ForceSendFields []string + Name string + NullFields []string + ParentSpanId string + SameProcessAsParentSpan bool + SpanId string + SpanKind string + StartTime string + Status *Status + func (s *TraceSpan) MarshalJSON() ([]byte, error) + type TruncatableString struct + ForceSendFields []string + NullFields []string + TruncatedByteCount int64 + Value string + func (s *TruncatableString) MarshalJSON() ([]byte, error)