generated/google/apis/serviceusage_v1/classes.rb in google-api-client-0.36.4 vs generated/google/apis/serviceusage_v1/classes.rb in google-api-client-0.37.0
- old
+ new
@@ -338,23 +338,34 @@
# A backend rule provides configuration for an individual API element.
class BackendRule
include Google::Apis::Core::Hashable
# The address of the API backend.
+ # The scheme is used to determine the backend protocol and security.
+ # The following schemes are accepted:
+ # SCHEME PROTOCOL SECURITY
+ # http:// HTTP None
+ # https:// HTTP TLS
+ # grpc:// gRPC None
+ # grpcs:// gRPC TLS
+ # It is recommended to explicitly include a scheme. Leaving out the scheme
+ # may cause constrasting behaviors across platforms.
+ # If the port is unspecified, the default is:
+ # - 80 for schemes without TLS
+ # - 443 for schemes with TLS
+ # For HTTP backends, use protocol
+ # to specify the protocol version.
# Corresponds to the JSON property `address`
# @return [String]
attr_accessor :address
- # The number of seconds to wait for a response from a request. The default
- # deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
+ # The number of seconds to wait for a response from a request. The default
+ # varies based on the request protocol and deployment environment.
# Corresponds to the JSON property `deadline`
# @return [Float]
attr_accessor :deadline
- # When disable_auth is false, a JWT ID token will be generated with the
- # value from BackendRule.address as jwt_audience, overrode to the HTTP
- # "Authorization" request header and sent to the backend.
# When disable_auth is true, a JWT ID token won't be generated and the
# original "Authorization" HTTP header will be preserved. If the header is
# used to carry the original token and is expected by the backend, this
# field must be set to true to preserve the header.
# Corresponds to the JSON property `disableAuth`
@@ -384,10 +395,31 @@
#
# Corresponds to the JSON property `pathTranslation`
# @return [String]
attr_accessor :path_translation
+ # The protocol used for sending a request to the backend.
+ # The supported values are "http/1.1" and "h2".
+ # The default value is inferred from the scheme in the
+ # address field:
+ # SCHEME PROTOCOL
+ # http:// http/1.1
+ # https:// http/1.1
+ # grpc:// h2
+ # grpcs:// h2
+ # For secure HTTP backends (https://) that support HTTP/2, set this field
+ # to "h2" for improved performance.
+ # Configuring this field to non-default values is only supported for secure
+ # HTTP backends. This field will be ignored for all other backends.
+ # See
+ # https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-
+ # values.xhtml#alpn-protocol-ids
+ # for more details on the supported values.
+ # Corresponds to the JSON property `protocol`
+ # @return [String]
+ attr_accessor :protocol
+
# 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
@@ -403,10 +435,11 @@
@disable_auth = args[:disable_auth] if args.key?(:disable_auth)
@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)
@selector = args[:selector] if args.key?(:selector)
end
end
# Response message for BatchCreateAdminOverrides
@@ -1748,10 +1781,52 @@
@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
@@ -2294,10 +2369,17 @@
# the nesting may only be one 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.
@@ -2356,10 +2438,11 @@
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)
@@ -3876,18 +3959,31 @@
# **NOTE:** All 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.