generated/google/apis/servicenetworking_v1/classes.rb in google-api-client-0.46.2 vs generated/google/apis/servicenetworking_v1/classes.rb in google-api-client-0.47.0
- old
+ new
@@ -259,10 +259,16 @@
# the call fails.
# Corresponds to the JSON property `requestedAddress`
# @return [String]
attr_accessor :requested_address
+ # Optional. A list of secondary IP ranges to be created within the new
+ # subnetwork.
+ # Corresponds to the JSON property `secondaryIpRangeSpecs`
+ # @return [Array<Google::Apis::ServicenetworkingV1::SecondaryIpRangeSpec>]
+ attr_accessor :secondary_ip_range_specs
+
# Required. A name for the new subnet. For information about the naming
# requirements, see [subnetwork](/compute/docs/reference/rest/v1/subnetworks) in
# the Compute API documentation.
# Corresponds to the JSON property `subnetwork`
# @return [String]
@@ -284,10 +290,11 @@
@consumer_network = args[:consumer_network] if args.key?(:consumer_network)
@description = args[:description] if args.key?(:description)
@ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length)
@region = args[:region] if args.key?(:region)
@requested_address = args[:requested_address] if args.key?(:requested_address)
+ @secondary_ip_range_specs = args[:secondary_ip_range_specs] if args.key?(:secondary_ip_range_specs)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@subnetwork_users = args[:subnetwork_users] if args.key?(:subnetwork_users)
end
end
@@ -1781,17 +1788,10 @@
# level deep).
# Corresponds to the JSON property `additionalBindings`
# @return [Array<Google::Apis::ServicenetworkingV1::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`
@@ -1847,11 +1847,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)
@@ -3215,10 +3214,74 @@
@ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length)
@network = args[:network] if args.key?(:network)
end
end
+ #
+ class SecondaryIpRange
+ include Google::Apis::Core::Hashable
+
+ # Secondary IP CIDR range in `x.x.x.x/y` format.
+ # Corresponds to the JSON property `ipCidrRange`
+ # @return [String]
+ attr_accessor :ip_cidr_range
+
+ # Name of the secondary IP range.
+ # Corresponds to the JSON property `rangeName`
+ # @return [String]
+ attr_accessor :range_name
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
+ @range_name = args[:range_name] if args.key?(:range_name)
+ end
+ end
+
+ #
+ class SecondaryIpRangeSpec
+ include Google::Apis::Core::Hashable
+
+ # Required. The prefix length of the secondary IP range. Use CIDR range notation,
+ # such as `30` to provision a secondary IP range with an `x.x.x.x/30` CIDR
+ # range. The IP address range is drawn from a pool of available ranges in the
+ # service consumer's allocated range.
+ # Corresponds to the JSON property `ipPrefixLength`
+ # @return [Fixnum]
+ attr_accessor :ip_prefix_length
+
+ # Required. A name for the secondary IP range. The name must be 1-63 characters
+ # long, and comply with RFC1035. The name must be unique within the subnetwork.
+ # Corresponds to the JSON property `rangeName`
+ # @return [String]
+ attr_accessor :range_name
+
+ # Optional. The starting address of a range. The address must be a valid IPv4
+ # address in the x.x.x.x format. This value combined with the IP prefix range is
+ # the CIDR range for the secondary IP range. The range must be within the
+ # allocated range that is assigned to the private connection. If the CIDR range
+ # isn't available, the call fails.
+ # Corresponds to the JSON property `requestedAddress`
+ # @return [String]
+ attr_accessor :requested_address
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length)
+ @range_name = args[:range_name] if args.key?(:range_name)
+ @requested_address = args[:requested_address] if args.key?(:requested_address)
+ end
+ end
+
# `Service` is the root object of Google service configuration schema. It
# describes basic information about a service, such as the name and the title,
# and delegates other aspects to sub-sections. Each sub-section is either a
# proto message or a repeated proto message that configures a specific aspect,
# such as auth. See each proto message definition for details. Example: type:
@@ -3270,14 +3333,11 @@
# googleapis.com/book/borrowed_count
# Corresponds to the JSON property `billing`
# @return [Google::Apis::ServicenetworkingV1::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: -
@@ -3538,48 +3598,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 ServiceIdentity
- 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
-
# `SourceContext` represents information about the source of a protobuf element,
# like the file in which it is defined.
class SourceContext
include Google::Apis::Core::Hashable
@@ -3683,20 +3705,26 @@
# Corresponds to the JSON property `outsideAllocation`
# @return [Boolean]
attr_accessor :outside_allocation
alias_method :outside_allocation?, :outside_allocation
+ # List of secondary IP ranges in this subnetwork.
+ # Corresponds to the JSON property `secondaryIpRanges`
+ # @return [Array<Google::Apis::ServicenetworkingV1::SecondaryIpRange>]
+ attr_accessor :secondary_ip_ranges
+
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@outside_allocation = args[:outside_allocation] if args.key?(:outside_allocation)
+ @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges)
end
end
# Define a parameter's name and location. The parameter may be passed as either
# an HTTP header or a URL query parameter, and if both are passed the behavior
@@ -3923,28 +3951,18 @@
# service configuration rules follow "last one wins" order.
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::ServicenetworkingV1::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::ServicenetworkingV1::ServiceIdentity]
- 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