generated/google/apis/serviceusage_v1/classes.rb in google-api-client-0.46.2 vs generated/google/apis/serviceusage_v1/classes.rb in google-api-client-0.47.0
- old
+ new
@@ -309,11 +309,12 @@
# of credential in a single request. If a method doesn't have any auth
# requirements, request credentials will be ignored.
class AuthenticationRule
include Google::Apis::Core::Hashable
- # If true, the service accepts API keys without any other credential.
+ # If true, the service accepts API keys without any other credential. This flag
+ # only applies to HTTP and gRPC requests.
# Corresponds to the JSON property `allowWithoutCredential`
# @return [Boolean]
attr_accessor :allow_without_credential
alias_method :allow_without_credential?, :allow_without_credential
@@ -657,11 +658,11 @@
# `Context` defines which contexts an API requests. Example: context: rules: -
# selector: "*" requested: - google.rpc.context.ProjectContext - google.rpc.
# context.OriginContext The above specifies that all methods in the API request `
# google.rpc.context.ProjectContext` and `google.rpc.context.OriginContext`.
# Available context types are defined in package `google.rpc.context`. This also
- # provides mechanism to whitelist any protobuf message extension that can be
+ # provides mechanism to allowlist any protobuf message extension that can be
# sent in grpc metadata using “x-goog-ext--bin” and “x-goog-ext--jspb” format.
# For example, list any service specific protobuf types that can appear in grpc
# metadata as follows in your yaml file: Example: context: rules: - selector: "
# google.example.library.v1.LibraryService.CreateBook"
# allowed_request_extensions: - google.foo.v1.NewExtension
@@ -1366,24 +1367,21 @@
# googleapis.com/book/borrowed_count
# Corresponds to the JSON property `billing`
# @return [Google::Apis::ServiceusageV1::Billing]
attr_accessor :billing
- # The semantic version of the service configuration. The config version affects
- # the interpretation of the service configuration. For example, certain features
- # are enabled by default for certain config versions. The latest config version
- # is `3`.
+ # This field is obsolete. Its value must be set to `3`.
# Corresponds to the JSON property `configVersion`
# @return [Fixnum]
attr_accessor :config_version
# `Context` defines which contexts an API requests. Example: context: rules: -
# selector: "*" requested: - google.rpc.context.ProjectContext - google.rpc.
# context.OriginContext The above specifies that all methods in the API request `
# google.rpc.context.ProjectContext` and `google.rpc.context.OriginContext`.
# Available context types are defined in package `google.rpc.context`. This also
- # provides mechanism to whitelist any protobuf message extension that can be
+ # provides mechanism to allowlist any protobuf message extension that can be
# sent in grpc metadata using “x-goog-ext--bin” and “x-goog-ext--jspb” format.
# For example, list any service specific protobuf types that can appear in grpc
# metadata as follows in your yaml file: Example: context: rules: - selector: "
# google.example.library.v1.LibraryService.CreateBook"
# allowed_request_extensions: - google.foo.v1.NewExtension
@@ -1634,48 +1632,10 @@
@types = args[:types] if args.key?(:types)
@usage = args[:usage] if args.key?(:usage)
end
end
- # The per-product per-project service identity for a service. Use this field to
- # configure per-product per-project service identity. Example of a service
- # identity configuration. usage: service_identity: - service_account_parent: "
- # projects/123456789" display_name: "Cloud XXX Service Agent" description: "Used
- # as the identity of Cloud XXX to access resources"
- class GoogleApiServiceIdentity
- include Google::Apis::Core::Hashable
-
- # Optional. A user-specified opaque description of the service account. Must be
- # less than or equal to 256 UTF-8 bytes.
- # Corresponds to the JSON property `description`
- # @return [String]
- attr_accessor :description
-
- # Optional. A user-specified name for the service account. Must be less than or
- # equal to 100 UTF-8 bytes.
- # Corresponds to the JSON property `displayName`
- # @return [String]
- attr_accessor :display_name
-
- # A service account project that hosts the service accounts. An example name
- # would be: `projects/123456789`
- # Corresponds to the JSON property `serviceAccountParent`
- # @return [String]
- attr_accessor :service_account_parent
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @description = args[:description] if args.key?(:description)
- @display_name = args[:display_name] if args.key?(:display_name)
- @service_account_parent = args[:service_account_parent] if args.key?(:service_account_parent)
- end
- end
-
# The operation metadata returned for the batchend services operation.
class GoogleApiServiceusageV1OperationMetadata
include Google::Apis::Core::Hashable
# The full name of the resources that this operation is directly associated with.
@@ -2099,17 +2059,10 @@
# level deep).
# Corresponds to the JSON property `additionalBindings`
# @return [Array<Google::Apis::ServiceusageV1::HttpRule>]
attr_accessor :additional_bindings
- # When this flag is set to true, HTTP requests will be allowed to invoke a half-
- # duplex streaming method.
- # Corresponds to the JSON property `allowHalfDuplex`
- # @return [Boolean]
- attr_accessor :allow_half_duplex
- alias_method :allow_half_duplex?, :allow_half_duplex
-
# The name of the request field whose value is mapped to the HTTP request body,
# or `*` for mapping all request fields not captured by the path pattern to the
# HTTP body, or omitted for not having any HTTP request body. NOTE: the referred
# field must be present at the top-level of the request message type.
# Corresponds to the JSON property `body`
@@ -2165,11 +2118,10 @@
end
# Update properties of this object
def update!(**args)
@additional_bindings = args[:additional_bindings] if args.key?(:additional_bindings)
- @allow_half_duplex = args[:allow_half_duplex] if args.key?(:allow_half_duplex)
@body = args[:body] if args.key?(:body)
@custom = args[:custom] if args.key?(:custom)
@delete = args[:delete] if args.key?(:delete)
@get = args[:get] if args.key?(:get)
@patch = args[:patch] if args.key?(:patch)
@@ -3626,28 +3578,18 @@
# service configuration rules follow "last one wins" order.
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::ServiceusageV1::UsageRule>]
attr_accessor :rules
- # The per-product per-project service identity for a service. Use this field to
- # configure per-product per-project service identity. Example of a service
- # identity configuration. usage: service_identity: - service_account_parent: "
- # projects/123456789" display_name: "Cloud XXX Service Agent" description: "Used
- # as the identity of Cloud XXX to access resources"
- # Corresponds to the JSON property `serviceIdentity`
- # @return [Google::Apis::ServiceusageV1::GoogleApiServiceIdentity]
- attr_accessor :service_identity
-
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@producer_notification_channel = args[:producer_notification_channel] if args.key?(:producer_notification_channel)
@requirements = args[:requirements] if args.key?(:requirements)
@rules = args[:rules] if args.key?(:rules)
- @service_identity = args[:service_identity] if args.key?(:service_identity)
end
end
# Usage configuration rules for the service. NOTE: Under development. Use this
# rule to configure unregistered calls for the service. Unregistered calls are