generated/google/apis/serviceusage_v1/classes.rb in google-api-client-0.37.3 vs generated/google/apis/serviceusage_v1/classes.rb in google-api-client-0.38.0

- old
+ new

@@ -110,16 +110,20 @@ # The list of JWT # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32# # section-4.1.3). # that are allowed to access. A JWT containing any of these audiences will - # be accepted. When this setting is absent, only JWTs with audience - # "https://Service_name/API_name" - # will be accepted. For example, if no audiences are in the setting, - # LibraryService API will only accept JWTs with the following audience - # "https://library-example.googleapis.com/google.example.library.v1. - # LibraryService". + # be accepted. When this setting is absent, JWTs with audiences: + # - "https://[service.name]/[google.protobuf.Api.name]" + # - "https://[service.name]/" + # will be accepted. + # For example, if no audiences are in the setting, LibraryService API will + # accept JWTs with the following audiences: + # - + # https://library-example.googleapis.com/google.example.library.v1. + # LibraryService + # - https://library-example.googleapis.com/ # Example: # audiences: bookstore_android.apps.googleusercontent.com, # bookstore_web.apps.googleusercontent.com # Corresponds to the JSON property `audiences` # @return [String] @@ -435,10 +439,40 @@ # for more details on the supported values. # Corresponds to the JSON property `protocol` # @return [String] attr_accessor :protocol + # Unimplemented. Do not use. + # The new name the selected proto elements should be renamed to. + # The package, the service and the method can all be renamed. + # The backend server should implement the renamed proto. However, clients + # should call the original method, and ESF routes the traffic to the renamed + # method. + # HTTP clients should call the URL mapped to the original method. + # gRPC and Stubby clients should call the original method with package name. + # For legacy reasons, ESF allows Stubby clients to call with the + # short name (without the package name). However, for API Versioning(or + # multiple methods mapped to the same short name), all Stubby clients must + # call the method's full name with the package name, otherwise the first one + # (selector) wins. + # If this `rename_to` is specified with a trailing `*`, the `selector` must + # be specified with a trailing `*` as well. The all element short names + # matched by the `*` in the selector will be kept in the `rename_to`. + # For example, + # rename_rules: + # - selector: |- + # google.example.library.v1.* + # rename_to: google.example.library.* + # The selector matches `google.example.library.v1.Library.CreateShelf` and + # `google.example.library.v1.Library.CreateBook`, they will be renamed to + # `google.example.library.Library.CreateShelf` and + # `google.example.library.Library.CreateBook`. It essentially renames the + # proto package name section of the matched proto service and methods. + # Corresponds to the JSON property `renameTo` + # @return [String] + attr_accessor :rename_to + # Selects the methods to which this rule applies. # Refer to selector for syntax details. # Corresponds to the JSON property `selector` # @return [String] attr_accessor :selector @@ -455,10 +489,11 @@ @jwt_audience = args[:jwt_audience] if args.key?(:jwt_audience) @min_deadline = args[:min_deadline] if args.key?(:min_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @path_translation = args[:path_translation] if args.key?(:path_translation) @protocol = args[:protocol] if args.key?(:protocol) + @rename_to = args[:rename_to] if args.key?(:rename_to) @selector = args[:selector] if args.key?(:selector) end end # Response message for BatchCreateAdminOverrides @@ -551,10 +586,29 @@ @failures = args[:failures] if args.key?(:failures) @services = args[:services] if args.key?(:services) end end + # Response message for the `BatchGetServices` method. + class BatchGetServicesResponse + include Google::Apis::Core::Hashable + + # The requested Service states. + # Corresponds to the JSON property `services` + # @return [Array<Google::Apis::ServiceusageV1::GoogleApiServiceusageV1Service>] + attr_accessor :services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @services = args[:services] if args.key?(:services) + end + end + # Billing related configuration of the service. # The following example shows how to configure monitored resources and metrics # for billing: # monitored_resources: # - type: library.googleapis.com/branch @@ -2470,10 +2524,48 @@ @response_body = args[:response_body] if args.key?(:response_body) @selector = args[:selector] if args.key?(:selector) end end + # Response message for ImportAdminOverrides + class ImportAdminOverridesResponse + include Google::Apis::Core::Hashable + + # The overrides that were created from the imported data. + # Corresponds to the JSON property `overrides` + # @return [Array<Google::Apis::ServiceusageV1::QuotaOverride>] + attr_accessor :overrides + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @overrides = args[:overrides] if args.key?(:overrides) + end + end + + # Response message for ImportConsumerOverrides + class ImportConsumerOverridesResponse + include Google::Apis::Core::Hashable + + # The overrides that were created from the imported data. + # Corresponds to the JSON property `overrides` + # @return [Array<Google::Apis::ServiceusageV1::QuotaOverride>] + attr_accessor :overrides + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @overrides = args[:overrides] if args.key?(:overrides) + end + end + # Specifies a location to extract JWT from an API request. class JwtLocation include Google::Apis::Core::Hashable # Specifies HTTP header name to extract JWT token. @@ -3688,10 +3780,17 @@ # map. # Corresponds to the JSON property `dimensions` # @return [Hash<String,String>] attr_accessor :dimensions + # The name of the metric to which this override applies. + # An example name would be: + # `compute.googleapis.com/cpus` + # Corresponds to the JSON property `metric` + # @return [String] + attr_accessor :metric + # The resource name of the override. # This name is generated by the server when the override is created. # Example names would be: # `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute. # googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d` @@ -3707,18 +3806,29 @@ # Can be any nonnegative integer, or -1 (unlimited quota). # Corresponds to the JSON property `overrideValue` # @return [Fixnum] attr_accessor :override_value + # The limit unit of the limit to which this override applies. + # An example unit would be: + # `1/`project`/`region`` + # Note that ``project`` and ``region`` are not placeholders in this example; + # the literal characters ``` and ``` occur in the string. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @dimensions = args[:dimensions] if args.key?(:dimensions) + @metric = args[:metric] if args.key?(:metric) @name = args[:name] if args.key?(:name) @override_value = args[:override_value] if args.key?(:override_value) + @unit = args[:unit] if args.key?(:unit) end end # Service identity for a service. This is the identity that service producer # should use to access consumer resources.