lib/google/apis/servicecontrol_v1/classes.rb in google-apis-servicecontrol_v1-0.1.0 vs lib/google/apis/servicecontrol_v1/classes.rb in google-apis-servicecontrol_v1-0.2.0

- old
+ new

@@ -457,12 +457,13 @@ # The required IAM permission. # Corresponds to the JSON property `permission` # @return [String] attr_accessor :permission - # The resource being accessed, as a REST-style string. For example: bigquery. - # googleapis.com/projects/PROJECTID/datasets/DATASETID + # The resource being accessed, as a REST-style or cloud resource string. For + # example: bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID or + # projects/PROJECTID/datasets/DATASETID # Corresponds to the JSON property `resource` # @return [String] attr_accessor :resource # This message defines core attributes for a resource. A resource is an @@ -1476,12 +1477,13 @@ # project. # Corresponds to the JSON property `traceSpans` # @return [Array<Google::Apis::ServicecontrolV1::TraceSpan>] attr_accessor :trace_spans - # User defined labels for the resource that this operation is associated with. - # Only a combination of 1000 user labels per consumer project are allowed. + # Private Preview. This feature is only available for approved services. User + # defined labels for the resource that this operation is associated with. Only a + # combination of 1000 user labels per consumer project are allowed. # Corresponds to the JSON property `userLabels` # @return [Hash<String,String>] attr_accessor :user_labels def initialize(**args) @@ -1764,35 +1766,10 @@ @operation_id = args[:operation_id] if args.key?(:operation_id) @status = args[:status] if args.key?(:status) end end - # Contains additional info about the report operation. - class ReportInfo - include Google::Apis::Core::Hashable - - # The Operation.operation_id value from the request. - # Corresponds to the JSON property `operationId` - # @return [String] - attr_accessor :operation_id - - # Contains the quota information for a quota check response. - # Corresponds to the JSON property `quotaInfo` - # @return [Google::Apis::ServicecontrolV1::QuotaInfo] - attr_accessor :quota_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @operation_id = args[:operation_id] if args.key?(:operation_id) - @quota_info = args[:quota_info] if args.key?(:quota_info) - end - end - # Request message for the Report method. class ReportRequest include Google::Apis::Core::Hashable # Operations to be reported. Typically the service should report one operation @@ -1839,20 +1816,10 @@ # which of the 'Operations' in the request succeeded or failed. # Corresponds to the JSON property `reportErrors` # @return [Array<Google::Apis::ServicecontrolV1::ReportError>] attr_accessor :report_errors - # Quota usage for each quota release `Operation` request. Fully or partially - # failed quota release request may or may not be present in `report_quota_info`. - # For example, a failed quota release request will have the current quota usage - # info when precise quota library returns the info. A deadline exceeded quota - # request will not have quota usage info. If there is no quota release request, - # report_quota_info will be empty. - # Corresponds to the JSON property `reportInfos` - # @return [Array<Google::Apis::ServicecontrolV1::ReportInfo>] - attr_accessor :report_infos - # The actual config id used to process the request. # Corresponds to the JSON property `serviceConfigId` # @return [String] attr_accessor :service_config_id @@ -1866,11 +1833,10 @@ end # Update properties of this object def update!(**args) @report_errors = args[:report_errors] if args.key?(:report_errors) - @report_infos = args[:report_infos] if args.key?(:report_infos) @service_config_id = args[:service_config_id] if args.key?(:service_config_id) @service_rollout_id = args[:service_rollout_id] if args.key?(:service_rollout_id) end end @@ -2043,12 +2009,12 @@ class Resource include Google::Apis::Core::Hashable # Annotations is an unstructured key-value map stored with a resource that may # be set by external tools to store and retrieve arbitrary metadata. They are - # not queryable and should be preserved when modifying objects. More info: http:/ - # /kubernetes.io/docs/user-guide/annotations + # not queryable and should be preserved when modifying objects. More info: https: + # //kubernetes.io/docs/user-guide/annotations # Corresponds to the JSON property `annotations` # @return [Hash<String,String>] attr_accessor :annotations # Output only. The timestamp when the resource was created. This may be either @@ -2079,10 +2045,20 @@ # resource labels. # Corresponds to the JSON property `labels` # @return [Hash<String,String>] attr_accessor :labels + # Immutable. The location of the resource. The location encoding is specific to + # the service provider, and new encoding may be introduced as the service + # evolves. For Google Cloud products, the encoding is what is used by Google + # Cloud APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The + # semantics of `location` is identical to the `cloud.googleapis.com/location` + # label used by some Google Cloud APIs. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + # The stable identifier (name) of a resource on the `service`. A resource can be # logically identified as "//`resource.service`/`resource.name`". The # differences between a resource name and a URI are: * Resource name is a # logical identifier, independent of network protocol and API version. For # example, `//pubsub.googleapis.com/projects/123/topics/news-feed`. * URI often @@ -2134,9 +2110,10 @@ @create_time = args[:create_time] if args.key?(:create_time) @delete_time = args[:delete_time] if args.key?(:delete_time) @display_name = args[:display_name] if args.key?(:display_name) @etag = args[:etag] if args.key?(:etag) @labels = args[:labels] if args.key?(:labels) + @location = args[:location] if args.key?(:location) @name = args[:name] if args.key?(:name) @service = args[:service] if args.key?(:service) @type = args[:type] if args.key?(:type) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time)