Autogenerated update (2017-08-25)
Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
This commit is contained in:
1 parent
ce32deabcf
commit
2dd396ce6e
315 files changed
+158012
-116092
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -22,19 +22,61 @@ module Google
|
||||
module Apis
|
||||
module ServicecontrolV1
|
||||
|
||||
class MetricValue
|
||||
class AllocateQuotaRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EndReconciliationResponse
|
||||
class AllocateQuotaResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Money
|
||||
class AuditLog
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthenticationInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthorizationInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CheckError
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CheckInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CheckRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CheckResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ConsumerInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -46,6 +88,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EndReconciliationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EndReconciliationResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExplicitBuckets
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -58,227 +112,271 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthorizationInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StartReconciliationResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QuotaProperties
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinearBuckets
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthenticationInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AllocateQuotaResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReleaseQuotaRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QuotaError
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RequestMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CheckInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReleaseQuotaResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AllocateQuotaRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricValueSet
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportError
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StartReconciliationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CheckError
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QuotaInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CheckRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QuotaOperation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EndReconciliationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CheckResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LogEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditLog
|
||||
class MetricValue
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricValue
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :distribution_value, as: 'distributionValue', class: Google::Apis::ServicecontrolV1::Distribution, decorator: Google::Apis::ServicecontrolV1::Distribution::Representation
|
||||
class MetricValueSet
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
property :bool_value, as: 'boolValue'
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
property :money_value, as: 'moneyValue', class: Google::Apis::ServicecontrolV1::Money, decorator: Google::Apis::ServicecontrolV1::Money::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :string_value, as: 'stringValue'
|
||||
property :double_value, as: 'doubleValue'
|
||||
property :int64_value, :numeric_string => true, as: 'int64Value'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EndReconciliationResponse
|
||||
class Money
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QuotaError
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QuotaInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QuotaOperation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QuotaProperties
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReleaseQuotaRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReleaseQuotaResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportError
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RequestMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StartReconciliationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StartReconciliationResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AllocateQuotaRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
property :allocate_operation, as: 'allocateOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation
|
||||
|
||||
collection :reconciliation_errors, as: 'reconciliationErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
|
||||
|
||||
property :operation_id, as: 'operationId'
|
||||
property :allocation_mode, as: 'allocationMode'
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class Money
|
||||
class AllocateQuotaResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :currency_code, as: 'currencyCode'
|
||||
property :nanos, as: 'nanos'
|
||||
property :units, :numeric_string => true, as: 'units'
|
||||
collection :allocate_errors, as: 'allocateErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
|
||||
|
||||
property :operation_id, as: 'operationId'
|
||||
collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class AuditLog
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :authentication_info, as: 'authenticationInfo', class: Google::Apis::ServicecontrolV1::AuthenticationInfo, decorator: Google::Apis::ServicecontrolV1::AuthenticationInfo::Representation
|
||||
|
||||
collection :authorization_info, as: 'authorizationInfo', class: Google::Apis::ServicecontrolV1::AuthorizationInfo, decorator: Google::Apis::ServicecontrolV1::AuthorizationInfo::Representation
|
||||
|
||||
property :method_name, as: 'methodName'
|
||||
property :num_response_items, :numeric_string => true, as: 'numResponseItems'
|
||||
hash :request, as: 'request'
|
||||
property :request_metadata, as: 'requestMetadata', class: Google::Apis::ServicecontrolV1::RequestMetadata, decorator: Google::Apis::ServicecontrolV1::RequestMetadata::Representation
|
||||
|
||||
property :resource_name, as: 'resourceName'
|
||||
hash :response, as: 'response'
|
||||
hash :service_data, as: 'serviceData'
|
||||
property :service_name, as: 'serviceName'
|
||||
property :status, as: 'status', class: Google::Apis::ServicecontrolV1::Status, decorator: Google::Apis::ServicecontrolV1::Status::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AuthenticationInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :authority_selector, as: 'authoritySelector'
|
||||
property :principal_email, as: 'principalEmail'
|
||||
end
|
||||
end
|
||||
|
||||
class AuthorizationInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :granted, as: 'granted'
|
||||
property :permission, as: 'permission'
|
||||
property :resource, as: 'resource'
|
||||
end
|
||||
end
|
||||
|
||||
class CheckError
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :detail, as: 'detail'
|
||||
end
|
||||
end
|
||||
|
||||
class CheckInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :consumer_info, as: 'consumerInfo', class: Google::Apis::ServicecontrolV1::ConsumerInfo, decorator: Google::Apis::ServicecontrolV1::ConsumerInfo::Representation
|
||||
|
||||
collection :unused_arguments, as: 'unusedArguments'
|
||||
end
|
||||
end
|
||||
|
||||
class CheckRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :operation, as: 'operation', class: Google::Apis::ServicecontrolV1::Operation, decorator: Google::Apis::ServicecontrolV1::Operation::Representation
|
||||
|
||||
property :request_project_settings, as: 'requestProjectSettings'
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
property :skip_activation_check, as: 'skipActivationCheck'
|
||||
end
|
||||
end
|
||||
|
||||
class CheckResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :check_errors, as: 'checkErrors', class: Google::Apis::ServicecontrolV1::CheckError, decorator: Google::Apis::ServicecontrolV1::CheckError::Representation
|
||||
|
||||
property :check_info, as: 'checkInfo', class: Google::Apis::ServicecontrolV1::CheckInfo, decorator: Google::Apis::ServicecontrolV1::CheckInfo::Representation
|
||||
|
||||
property :operation_id, as: 'operationId'
|
||||
property :quota_info, as: 'quotaInfo', class: Google::Apis::ServicecontrolV1::QuotaInfo, decorator: Google::Apis::ServicecontrolV1::QuotaInfo::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class ConsumerInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :project_number, :numeric_string => true, as: 'projectNumber'
|
||||
end
|
||||
end
|
||||
|
||||
class Distribution
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :count, :numeric_string => true, as: 'count'
|
||||
property :mean, as: 'mean'
|
||||
collection :bucket_counts, as: 'bucketCounts'
|
||||
property :count, :numeric_string => true, as: 'count'
|
||||
property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::ServicecontrolV1::ExplicitBuckets, decorator: Google::Apis::ServicecontrolV1::ExplicitBuckets::Representation
|
||||
|
||||
property :maximum, as: 'maximum'
|
||||
property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation'
|
||||
property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::ServicecontrolV1::ExponentialBuckets, decorator: Google::Apis::ServicecontrolV1::ExponentialBuckets::Representation
|
||||
|
||||
property :minimum, as: 'minimum'
|
||||
property :linear_buckets, as: 'linearBuckets', class: Google::Apis::ServicecontrolV1::LinearBuckets, decorator: Google::Apis::ServicecontrolV1::LinearBuckets::Representation
|
||||
|
||||
property :maximum, as: 'maximum'
|
||||
property :mean, as: 'mean'
|
||||
property :minimum, as: 'minimum'
|
||||
property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation'
|
||||
end
|
||||
end
|
||||
|
||||
class EndReconciliationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :reconciliation_operation, as: 'reconciliationOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class EndReconciliationResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :operation_id, as: 'operationId'
|
||||
collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
|
||||
collection :reconciliation_errors, as: 'reconciliationErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -292,30 +390,121 @@ module Google
|
||||
class ExponentialBuckets
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :num_finite_buckets, as: 'numFiniteBuckets'
|
||||
property :growth_factor, as: 'growthFactor'
|
||||
property :num_finite_buckets, as: 'numFiniteBuckets'
|
||||
property :scale, as: 'scale'
|
||||
end
|
||||
end
|
||||
|
||||
class AuthorizationInfo
|
||||
class LinearBuckets
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :permission, as: 'permission'
|
||||
property :resource, as: 'resource'
|
||||
property :granted, as: 'granted'
|
||||
property :num_finite_buckets, as: 'numFiniteBuckets'
|
||||
property :offset, as: 'offset'
|
||||
property :width, as: 'width'
|
||||
end
|
||||
end
|
||||
|
||||
class StartReconciliationResponse
|
||||
class LogEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
property :insert_id, as: 'insertId'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
hash :proto_payload, as: 'protoPayload'
|
||||
property :severity, as: 'severity'
|
||||
hash :struct_payload, as: 'structPayload'
|
||||
property :text_payload, as: 'textPayload'
|
||||
property :timestamp, as: 'timestamp'
|
||||
end
|
||||
end
|
||||
|
||||
collection :reconciliation_errors, as: 'reconciliationErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
|
||||
class MetricValue
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bool_value, as: 'boolValue'
|
||||
property :distribution_value, as: 'distributionValue', class: Google::Apis::ServicecontrolV1::Distribution, decorator: Google::Apis::ServicecontrolV1::Distribution::Representation
|
||||
|
||||
property :double_value, as: 'doubleValue'
|
||||
property :end_time, as: 'endTime'
|
||||
property :int64_value, :numeric_string => true, as: 'int64Value'
|
||||
hash :labels, as: 'labels'
|
||||
property :money_value, as: 'moneyValue', class: Google::Apis::ServicecontrolV1::Money, decorator: Google::Apis::ServicecontrolV1::Money::Representation
|
||||
|
||||
property :start_time, as: 'startTime'
|
||||
property :string_value, as: 'stringValue'
|
||||
end
|
||||
end
|
||||
|
||||
class MetricValueSet
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :metric_name, as: 'metricName'
|
||||
collection :metric_values, as: 'metricValues', class: Google::Apis::ServicecontrolV1::MetricValue, decorator: Google::Apis::ServicecontrolV1::MetricValue::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Money
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :currency_code, as: 'currencyCode'
|
||||
property :nanos, as: 'nanos'
|
||||
property :units, :numeric_string => true, as: 'units'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :consumer_id, as: 'consumerId'
|
||||
property :end_time, as: 'endTime'
|
||||
property :importance, as: 'importance'
|
||||
hash :labels, as: 'labels'
|
||||
collection :log_entries, as: 'logEntries', class: Google::Apis::ServicecontrolV1::LogEntry, decorator: Google::Apis::ServicecontrolV1::LogEntry::Representation
|
||||
|
||||
collection :metric_value_sets, as: 'metricValueSets', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
|
||||
property :operation_id, as: 'operationId'
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
property :operation_name, as: 'operationName'
|
||||
property :quota_properties, as: 'quotaProperties', class: Google::Apis::ServicecontrolV1::QuotaProperties, decorator: Google::Apis::ServicecontrolV1::QuotaProperties::Representation
|
||||
|
||||
property :resource_container, as: 'resourceContainer'
|
||||
collection :resource_containers, as: 'resourceContainers'
|
||||
property :start_time, as: 'startTime'
|
||||
hash :user_labels, as: 'userLabels'
|
||||
end
|
||||
end
|
||||
|
||||
class QuotaError
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :description, as: 'description'
|
||||
property :subject, as: 'subject'
|
||||
end
|
||||
end
|
||||
|
||||
class QuotaInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :limit_exceeded, as: 'limitExceeded'
|
||||
hash :quota_consumed, as: 'quotaConsumed'
|
||||
collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class QuotaOperation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :consumer_id, as: 'consumerId'
|
||||
hash :labels, as: 'labels'
|
||||
property :method_name, as: 'methodName'
|
||||
property :operation_id, as: 'operationId'
|
||||
collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
|
||||
property :quota_mode, as: 'quotaMode'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -327,165 +516,33 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class LinearBuckets
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :width, as: 'width'
|
||||
property :offset, as: 'offset'
|
||||
property :num_finite_buckets, as: 'numFiniteBuckets'
|
||||
end
|
||||
end
|
||||
|
||||
class AuthenticationInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :principal_email, as: 'principalEmail'
|
||||
property :authority_selector, as: 'authoritySelector'
|
||||
end
|
||||
end
|
||||
|
||||
class AllocateQuotaResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :allocate_errors, as: 'allocateErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
|
||||
|
||||
collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
|
||||
property :operation_id, as: 'operationId'
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class ReleaseQuotaRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
property :release_operation, as: 'releaseOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class QuotaError
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
property :subject, as: 'subject'
|
||||
property :code, as: 'code'
|
||||
end
|
||||
end
|
||||
|
||||
class RequestMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :caller_ip, as: 'callerIp'
|
||||
property :caller_supplied_user_agent, as: 'callerSuppliedUserAgent'
|
||||
end
|
||||
end
|
||||
|
||||
class CheckInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :unused_arguments, as: 'unusedArguments'
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class ReleaseQuotaResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :release_errors, as: 'releaseErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
|
||||
|
||||
property :operation_id, as: 'operationId'
|
||||
collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
|
||||
property :operation_id, as: 'operationId'
|
||||
collection :release_errors, as: 'releaseErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class AllocateQuotaRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
property :allocate_operation, as: 'allocateOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation
|
||||
|
||||
property :allocation_mode, as: 'allocationMode'
|
||||
end
|
||||
end
|
||||
|
||||
class MetricValueSet
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :metric_values, as: 'metricValues', class: Google::Apis::ServicecontrolV1::MetricValue, decorator: Google::Apis::ServicecontrolV1::MetricValue::Representation
|
||||
|
||||
property :metric_name, as: 'metricName'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportError
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :operation_id, as: 'operationId'
|
||||
property :status, as: 'status', class: Google::Apis::ServicecontrolV1::Status, decorator: Google::Apis::ServicecontrolV1::Status::Representation
|
||||
|
||||
property :operation_id, as: 'operationId'
|
||||
end
|
||||
end
|
||||
|
||||
class StartReconciliationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :reconciliation_operation, as: 'reconciliationOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class CheckError
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :detail, as: 'detail'
|
||||
property :code, as: 'code'
|
||||
end
|
||||
end
|
||||
|
||||
class QuotaInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :quota_consumed, as: 'quotaConsumed'
|
||||
collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
|
||||
collection :limit_exceeded, as: 'limitExceeded'
|
||||
end
|
||||
end
|
||||
|
||||
class CheckRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :skip_activation_check, as: 'skipActivationCheck'
|
||||
property :request_project_settings, as: 'requestProjectSettings'
|
||||
property :operation, as: 'operation', class: Google::Apis::ServicecontrolV1::Operation, decorator: Google::Apis::ServicecontrolV1::Operation::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class QuotaOperation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :consumer_id, as: 'consumerId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :quota_mode, as: 'quotaMode'
|
||||
property :method_name, as: 'methodName'
|
||||
end
|
||||
end
|
||||
|
||||
class EndReconciliationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :reconciliation_operation, as: 'reconciliationOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -498,102 +555,61 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
class ReportRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :importance, as: 'importance'
|
||||
property :resource_container, as: 'resourceContainer'
|
||||
hash :labels, as: 'labels'
|
||||
collection :log_entries, as: 'logEntries', class: Google::Apis::ServicecontrolV1::LogEntry, decorator: Google::Apis::ServicecontrolV1::LogEntry::Representation
|
||||
collection :operations, as: 'operations', class: Google::Apis::ServicecontrolV1::Operation, decorator: Google::Apis::ServicecontrolV1::Operation::Representation
|
||||
|
||||
hash :user_labels, as: 'userLabels'
|
||||
collection :metric_value_sets, as: 'metricValueSets', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
|
||||
property :quota_properties, as: 'quotaProperties', class: Google::Apis::ServicecontrolV1::QuotaProperties, decorator: Google::Apis::ServicecontrolV1::QuotaProperties::Representation
|
||||
|
||||
property :consumer_id, as: 'consumerId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :end_time, as: 'endTime'
|
||||
property :operation_name, as: 'operationName'
|
||||
property :start_time, as: 'startTime'
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
collection :report_errors, as: 'reportErrors', class: Google::Apis::ServicecontrolV1::ReportError, decorator: Google::Apis::ServicecontrolV1::ReportError::Representation
|
||||
|
||||
collection :report_infos, as: 'reportInfos', class: Google::Apis::ServicecontrolV1::ReportInfo, decorator: Google::Apis::ServicecontrolV1::ReportInfo::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class CheckResponse
|
||||
class RequestMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :check_info, as: 'checkInfo', class: Google::Apis::ServicecontrolV1::CheckInfo, decorator: Google::Apis::ServicecontrolV1::CheckInfo::Representation
|
||||
property :caller_ip, as: 'callerIp'
|
||||
property :caller_supplied_user_agent, as: 'callerSuppliedUserAgent'
|
||||
end
|
||||
end
|
||||
|
||||
collection :check_errors, as: 'checkErrors', class: Google::Apis::ServicecontrolV1::CheckError, decorator: Google::Apis::ServicecontrolV1::CheckError::Representation
|
||||
class StartReconciliationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :reconciliation_operation, as: 'reconciliationOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
end
|
||||
end
|
||||
|
||||
class StartReconciliationResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :operation_id, as: 'operationId'
|
||||
collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
|
||||
|
||||
collection :reconciliation_errors, as: 'reconciliationErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
|
||||
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
property :quota_info, as: 'quotaInfo', class: Google::Apis::ServicecontrolV1::QuotaInfo, decorator: Google::Apis::ServicecontrolV1::QuotaInfo::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ReportRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :service_config_id, as: 'serviceConfigId'
|
||||
collection :operations, as: 'operations', class: Google::Apis::ServicecontrolV1::Operation, decorator: Google::Apis::ServicecontrolV1::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :message, as: 'message'
|
||||
collection :details, as: 'details'
|
||||
property :code, as: 'code'
|
||||
end
|
||||
end
|
||||
|
||||
class LogEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :text_payload, as: 'textPayload'
|
||||
hash :proto_payload, as: 'protoPayload'
|
||||
property :timestamp, as: 'timestamp'
|
||||
hash :labels, as: 'labels'
|
||||
property :severity, as: 'severity'
|
||||
property :insert_id, as: 'insertId'
|
||||
property :name, as: 'name'
|
||||
hash :struct_payload, as: 'structPayload'
|
||||
end
|
||||
end
|
||||
|
||||
class AuditLog
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :authorization_info, as: 'authorizationInfo', class: Google::Apis::ServicecontrolV1::AuthorizationInfo, decorator: Google::Apis::ServicecontrolV1::AuthorizationInfo::Representation
|
||||
|
||||
property :resource_name, as: 'resourceName'
|
||||
hash :request, as: 'request'
|
||||
property :request_metadata, as: 'requestMetadata', class: Google::Apis::ServicecontrolV1::RequestMetadata, decorator: Google::Apis::ServicecontrolV1::RequestMetadata::Representation
|
||||
|
||||
hash :service_data, as: 'serviceData'
|
||||
property :num_response_items, :numeric_string => true, as: 'numResponseItems'
|
||||
property :authentication_info, as: 'authenticationInfo', class: Google::Apis::ServicecontrolV1::AuthenticationInfo, decorator: Google::Apis::ServicecontrolV1::AuthenticationInfo::Representation
|
||||
|
||||
property :status, as: 'status', class: Google::Apis::ServicecontrolV1::Status, decorator: Google::Apis::ServicecontrolV1::Status::Representation
|
||||
|
||||
property :service_name, as: 'serviceName'
|
||||
hash :response, as: 'response'
|
||||
property :method_name, as: 'methodName'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -48,90 +48,6 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Signals the quota controller that service ends the ongoing usage
|
||||
# reconciliation.
|
||||
# This method requires the `servicemanagement.services.quota`
|
||||
# permission on the specified service. For more information, see
|
||||
# [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
# @param [String] service_name
|
||||
# Name of the service as specified in the service configuration. For example,
|
||||
# `"pubsub.googleapis.com"`.
|
||||
# See google.api.Service for the definition of a service name.
|
||||
# @param [Google::Apis::ServicecontrolV1::EndReconciliationRequest] end_reconciliation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ServicecontrolV1::EndReconciliationResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServicecontrolV1::EndReconciliationResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def end_service_reconciliation(service_name, end_reconciliation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/services/{serviceName}:endReconciliation', options)
|
||||
command.request_representation = Google::Apis::ServicecontrolV1::EndReconciliationRequest::Representation
|
||||
command.request_object = end_reconciliation_request_object
|
||||
command.response_representation = Google::Apis::ServicecontrolV1::EndReconciliationResponse::Representation
|
||||
command.response_class = Google::Apis::ServicecontrolV1::EndReconciliationResponse
|
||||
command.params['serviceName'] = service_name unless service_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Reports operation results to Google Service Control, such as logs and
|
||||
# metrics. It should be called after an operation is completed.
|
||||
# If feasible, the client should aggregate reporting data for up to 5
|
||||
# seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
|
||||
# reduce data loss during client crashes. Clients should carefully choose
|
||||
# the aggregation time window to avoid data loss risk more than 0.01%
|
||||
# for business and compliance reasons.
|
||||
# NOTE: the `ReportRequest` has the size limit of 1MB.
|
||||
# This method requires the `servicemanagement.services.report` permission
|
||||
# on the specified service. For more information, see
|
||||
# [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
# @param [String] service_name
|
||||
# The service name as specified in its service configuration. For example,
|
||||
# `"pubsub.googleapis.com"`.
|
||||
# See google.api.Service for the definition of a service name.
|
||||
# @param [Google::Apis::ServicecontrolV1::ReportRequest] report_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ServicecontrolV1::ReportResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServicecontrolV1::ReportResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def report_service(service_name, report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/services/{serviceName}:report', options)
|
||||
command.request_representation = Google::Apis::ServicecontrolV1::ReportRequest::Representation
|
||||
command.request_object = report_request_object
|
||||
command.response_representation = Google::Apis::ServicecontrolV1::ReportResponse::Representation
|
||||
command.response_class = Google::Apis::ServicecontrolV1::ReportResponse
|
||||
command.params['serviceName'] = service_name unless service_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Attempts to allocate quota for the specified consumer. It should be called
|
||||
# before the operation is executed.
|
||||
# This method requires the `servicemanagement.services.quota`
|
||||
@@ -179,6 +95,186 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Checks an operation with Google Service Control to decide whether
|
||||
# the given operation should proceed. It should be called before the
|
||||
# operation is executed.
|
||||
# If feasible, the client should cache the check results and reuse them for
|
||||
# 60 seconds. In case of server errors, the client can rely on the cached
|
||||
# results for longer time.
|
||||
# NOTE: the CheckRequest has the size limit of 64KB.
|
||||
# This method requires the `servicemanagement.services.check` permission
|
||||
# on the specified service. For more information, see
|
||||
# [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
# @param [String] service_name
|
||||
# The service name as specified in its service configuration. For example,
|
||||
# `"pubsub.googleapis.com"`.
|
||||
# See
|
||||
# [google.api.Service](https://cloud.google.com/service-management/reference/rpc/
|
||||
# google.api#google.api.Service)
|
||||
# for the definition of a service name.
|
||||
# @param [Google::Apis::ServicecontrolV1::CheckRequest] check_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ServicecontrolV1::CheckResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServicecontrolV1::CheckResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def check_service(service_name, check_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/services/{serviceName}:check', options)
|
||||
command.request_representation = Google::Apis::ServicecontrolV1::CheckRequest::Representation
|
||||
command.request_object = check_request_object
|
||||
command.response_representation = Google::Apis::ServicecontrolV1::CheckResponse::Representation
|
||||
command.response_class = Google::Apis::ServicecontrolV1::CheckResponse
|
||||
command.params['serviceName'] = service_name unless service_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Signals the quota controller that service ends the ongoing usage
|
||||
# reconciliation.
|
||||
# This method requires the `servicemanagement.services.quota`
|
||||
# permission on the specified service. For more information, see
|
||||
# [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
# @param [String] service_name
|
||||
# Name of the service as specified in the service configuration. For example,
|
||||
# `"pubsub.googleapis.com"`.
|
||||
# See google.api.Service for the definition of a service name.
|
||||
# @param [Google::Apis::ServicecontrolV1::EndReconciliationRequest] end_reconciliation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ServicecontrolV1::EndReconciliationResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServicecontrolV1::EndReconciliationResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def end_service_reconciliation(service_name, end_reconciliation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/services/{serviceName}:endReconciliation', options)
|
||||
command.request_representation = Google::Apis::ServicecontrolV1::EndReconciliationRequest::Representation
|
||||
command.request_object = end_reconciliation_request_object
|
||||
command.response_representation = Google::Apis::ServicecontrolV1::EndReconciliationResponse::Representation
|
||||
command.response_class = Google::Apis::ServicecontrolV1::EndReconciliationResponse
|
||||
command.params['serviceName'] = service_name unless service_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Releases previously allocated quota done through AllocateQuota method.
|
||||
# This method requires the `servicemanagement.services.quota`
|
||||
# permission on the specified service. For more information, see
|
||||
# [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
# **NOTE:** the client code **must** fail-open if the server returns one
|
||||
# of the following quota errors:
|
||||
# - `PROJECT_STATUS_UNAVAILABLE`
|
||||
# - `SERVICE_STATUS_UNAVAILABLE`
|
||||
# - `BILLING_STATUS_UNAVAILABLE`
|
||||
# - `QUOTA_SYSTEM_UNAVAILABLE`
|
||||
# The server may inject above errors to prohibit any hard dependency
|
||||
# on the quota system.
|
||||
# @param [String] service_name
|
||||
# Name of the service as specified in the service configuration. For example,
|
||||
# `"pubsub.googleapis.com"`.
|
||||
# See google.api.Service for the definition of a service name.
|
||||
# @param [Google::Apis::ServicecontrolV1::ReleaseQuotaRequest] release_quota_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ServicecontrolV1::ReleaseQuotaResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServicecontrolV1::ReleaseQuotaResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def release_service_quota(service_name, release_quota_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/services/{serviceName}:releaseQuota', options)
|
||||
command.request_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaRequest::Representation
|
||||
command.request_object = release_quota_request_object
|
||||
command.response_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse::Representation
|
||||
command.response_class = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse
|
||||
command.params['serviceName'] = service_name unless service_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Reports operation results to Google Service Control, such as logs and
|
||||
# metrics. It should be called after an operation is completed.
|
||||
# If feasible, the client should aggregate reporting data for up to 5
|
||||
# seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
|
||||
# reduce data loss during client crashes. Clients should carefully choose
|
||||
# the aggregation time window to avoid data loss risk more than 0.01%
|
||||
# for business and compliance reasons.
|
||||
# NOTE: the ReportRequest has the size limit of 1MB.
|
||||
# This method requires the `servicemanagement.services.report` permission
|
||||
# on the specified service. For more information, see
|
||||
# [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
# @param [String] service_name
|
||||
# The service name as specified in its service configuration. For example,
|
||||
# `"pubsub.googleapis.com"`.
|
||||
# See
|
||||
# [google.api.Service](https://cloud.google.com/service-management/reference/rpc/
|
||||
# google.api#google.api.Service)
|
||||
# for the definition of a service name.
|
||||
# @param [Google::Apis::ServicecontrolV1::ReportRequest] report_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ServicecontrolV1::ReportResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServicecontrolV1::ReportResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def report_service(service_name, report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/services/{serviceName}:report', options)
|
||||
command.request_representation = Google::Apis::ServicecontrolV1::ReportRequest::Representation
|
||||
command.request_object = report_request_object
|
||||
command.response_representation = Google::Apis::ServicecontrolV1::ReportResponse::Representation
|
||||
command.response_class = Google::Apis::ServicecontrolV1::ReportResponse
|
||||
command.params['serviceName'] = service_name unless service_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Unlike rate quota, allocation quota does not get refilled periodically.
|
||||
# So, it is possible that the quota usage as seen by the service differs from
|
||||
# what the One Platform considers the usage is. This is expected to happen
|
||||
@@ -235,96 +331,6 @@ module Google
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Checks an operation with Google Service Control to decide whether
|
||||
# the given operation should proceed. It should be called before the
|
||||
# operation is executed.
|
||||
# If feasible, the client should cache the check results and reuse them for
|
||||
# 60 seconds. In case of server errors, the client can rely on the cached
|
||||
# results for longer time.
|
||||
# NOTE: the `CheckRequest` has the size limit of 64KB.
|
||||
# This method requires the `servicemanagement.services.check` permission
|
||||
# on the specified service. For more information, see
|
||||
# [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
# @param [String] service_name
|
||||
# The service name as specified in its service configuration. For example,
|
||||
# `"pubsub.googleapis.com"`.
|
||||
# See google.api.Service for the definition of a service name.
|
||||
# @param [Google::Apis::ServicecontrolV1::CheckRequest] check_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ServicecontrolV1::CheckResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServicecontrolV1::CheckResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def check_service(service_name, check_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/services/{serviceName}:check', options)
|
||||
command.request_representation = Google::Apis::ServicecontrolV1::CheckRequest::Representation
|
||||
command.request_object = check_request_object
|
||||
command.response_representation = Google::Apis::ServicecontrolV1::CheckResponse::Representation
|
||||
command.response_class = Google::Apis::ServicecontrolV1::CheckResponse
|
||||
command.params['serviceName'] = service_name unless service_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Releases previously allocated quota done through AllocateQuota method.
|
||||
# This method requires the `servicemanagement.services.quota`
|
||||
# permission on the specified service. For more information, see
|
||||
# [Google Cloud IAM](https://cloud.google.com/iam).
|
||||
# **NOTE:** the client code **must** fail-open if the server returns one
|
||||
# of the following quota errors:
|
||||
# - `PROJECT_STATUS_UNAVAILABLE`
|
||||
# - `SERVICE_STATUS_UNAVAILABLE`
|
||||
# - `BILLING_STATUS_UNAVAILABLE`
|
||||
# - `QUOTA_SYSTEM_UNAVAILABLE`
|
||||
# The server may inject above errors to prohibit any hard dependency
|
||||
# on the quota system.
|
||||
# @param [String] service_name
|
||||
# Name of the service as specified in the service configuration. For example,
|
||||
# `"pubsub.googleapis.com"`.
|
||||
# See google.api.Service for the definition of a service name.
|
||||
# @param [Google::Apis::ServicecontrolV1::ReleaseQuotaRequest] release_quota_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ServicecontrolV1::ReleaseQuotaResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ServicecontrolV1::ReleaseQuotaResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def release_service_quota(service_name, release_quota_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/services/{serviceName}:releaseQuota', options)
|
||||
command.request_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaRequest::Representation
|
||||
command.request_object = release_quota_request_object
|
||||
command.response_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse::Representation
|
||||
command.response_class = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse
|
||||
command.params['serviceName'] = service_name unless service_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
||||
Reference in new issue
Block a user