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

- old
+ new

@@ -20,10 +20,74 @@ module Google module Apis module ServicenetworkingV1 + # Metadata provided through GetOperation request for the LRO generated by + # AddRoles API + class AddRolesMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request for AddRoles to allow Service Producers to add roles in the shared + # VPC host project for them to use. + class AddRolesRequest + include Google::Apis::Core::Hashable + + # Required. The network that the consumer is using to connect with services. + # Must be in + # the form of projects/`project`/global/networks/`network` + # `project` is a project number, as in '12345' + # `network` is a network name. + # Corresponds to the JSON property `consumerNetwork` + # @return [String] + attr_accessor :consumer_network + + # Required. List of policy bindings to add to shared VPC host project. + # Corresponds to the JSON property `policyBinding` + # @return [Array<Google::Apis::ServicenetworkingV1::PolicyBinding>] + attr_accessor :policy_binding + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_network = args[:consumer_network] if args.key?(:consumer_network) + @policy_binding = args[:policy_binding] if args.key?(:policy_binding) + end + end + + # Represents IAM roles added to the shared VPC host project. + class AddRolesResponse + include Google::Apis::Core::Hashable + + # Required. List of policy bindings that were added to the shared VPC host + # project. + # Corresponds to the JSON property `policyBinding` + # @return [Array<Google::Apis::ServicenetworkingV1::PolicyBinding>] + attr_accessor :policy_binding + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy_binding = args[:policy_binding] if args.key?(:policy_binding) + end + end + # Request to create a subnetwork in a previously peered service network. class AddSubnetworkRequest include Google::Apis::Core::Hashable # Required. A resource that represents the service consumer, such as @@ -200,16 +264,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] @@ -525,10 +593,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 @@ -545,10 +643,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 # Billing related configuration of the service. @@ -2723,10 +2822,42 @@ @name = args[:name] if args.key?(:name) @subpages = args[:subpages] if args.key?(:subpages) end end + # Grouping of IAM role and IAM member. + class PolicyBinding + include Google::Apis::Core::Hashable + + # Required. Member to bind the role with. See + # /iam/docs/reference/rest/v1/Policy#Binding for how to format each member. + # Eg. + # - user:myuser@mydomain.com + # - serviceAccount:my-service-account@app.gserviceaccount.com + # Corresponds to the JSON property `member` + # @return [String] + attr_accessor :member + + # Required. Role to apply. Only whitelisted roles can be used at the specified + # granularity. The role must be one of the following: + # - 'roles/container.hostServiceAgentUser' applied on the shared VPC host + # project + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @member = args[:member] if args.key?(:member) + @role = args[:role] if args.key?(:role) + end + end + # Quota configuration helps to achieve fairness and budgeting in service # usage. # The metric based quota configuration works this way: # - The service configuration defines a set of metrics. # - For API calls, the quota.metric_rules maps methods to metrics with @@ -2959,9 +3090,51 @@ # Update properties of this object def update!(**args) @ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length) @secondary_range_ip_prefix_lengths = args[:secondary_range_ip_prefix_lengths] if args.key?(:secondary_range_ip_prefix_lengths) + end + end + + # Represents a route that was created or discovered by a private access + # management service. + class Route + include Google::Apis::Core::Hashable + + # Destination CIDR range that this route applies to. + # Corresponds to the JSON property `destRange` + # @return [String] + attr_accessor :dest_range + + # Route name. See https://cloud.google.com/vpc/docs/routes + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Fully-qualified URL of the VPC network in the producer host tenant project + # that this route applies to. For example: + # `projects/123456/global/networks/host-network` + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # Fully-qualified URL of the gateway that should handle matching packets that + # this route applies to. For example: + # `projects/123456/global/gateways/default-internet-gateway` + # Corresponds to the JSON property `nextHopGateway` + # @return [String] + attr_accessor :next_hop_gateway + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dest_range = args[:dest_range] if args.key?(:dest_range) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @next_hop_gateway = args[:next_hop_gateway] if args.key?(:next_hop_gateway) end end # Request to search for an unused range within allocated ranges. class SearchRangeRequest