Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of servicenetworking v1beta client #1571

Merged
merged 1 commit into from Nov 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions api_names_out.yaml
Expand Up @@ -137823,6 +137823,10 @@
"/servicenetworking:v1beta/Field/options/option": option
"/servicenetworking:v1beta/Field/packed": packed
"/servicenetworking:v1beta/Field/typeUrl": type_url
"/servicenetworking:v1beta/GoogleCloudServicenetworkingV1ConsumerConfigReservedRange": google_cloud_servicenetworking_v1_consumer_config_reserved_range
"/servicenetworking:v1beta/GoogleCloudServicenetworkingV1ConsumerConfigReservedRange/address": address
"/servicenetworking:v1beta/GoogleCloudServicenetworkingV1ConsumerConfigReservedRange/ipPrefixLength": ip_prefix_length
"/servicenetworking:v1beta/GoogleCloudServicenetworkingV1ConsumerConfigReservedRange/name": name
"/servicenetworking:v1beta/GoogleCloudServicenetworkingV1betaSubnetwork": google_cloud_servicenetworking_v1beta_subnetwork
"/servicenetworking:v1beta/GoogleCloudServicenetworkingV1betaSubnetwork/ipCidrRange": ip_cidr_range
"/servicenetworking:v1beta/GoogleCloudServicenetworkingV1betaSubnetwork/name": name
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/servicenetworking_v1beta.rb
Expand Up @@ -26,7 +26,7 @@ module Apis
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1beta
VERSION = 'V1beta'
REVISION = '20201104'
REVISION = '20201117'

# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
Expand Down
39 changes: 36 additions & 3 deletions generated/google/apis/servicenetworking_v1beta/classes.rb
Expand Up @@ -748,10 +748,10 @@ class ConsumerConfig
# @return [String]
attr_accessor :producer_network

# Output only. The name of the allocated IP address ranges for this private
# service access connection.
# Output only. The reserved ranges associated with this private service access
# connection.
# Corresponds to the JSON property `reservedRanges`
# @return [Array<String>]
# @return [Array<Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1ConsumerConfigReservedRange>]
attr_accessor :reserved_ranges

def initialize(**args)
Expand Down Expand Up @@ -1374,6 +1374,39 @@ def update!(**args)
end
end

# Allocated IP address ranges for this private service access connection.
class GoogleCloudServicenetworkingV1ConsumerConfigReservedRange
include Google::Apis::Core::Hashable

# The starting address of the reserved range. The address must be a valid IPv4
# address in the x.x.x.x format. This value combined with the IP prefix length
# is the CIDR range for the reserved range.
# Corresponds to the JSON property `address`
# @return [String]
attr_accessor :address

# The prefix length of the reserved range.
# Corresponds to the JSON property `ipPrefixLength`
# @return [Fixnum]
attr_accessor :ip_prefix_length

# The name of the reserved range.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@address = args[:address] if args.key?(:address)
@ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length)
@name = args[:name] if args.key?(:name)
end
end

# Represents a subnet that was created or discovered by a private access
# management service.
class GoogleCloudServicenetworkingV1betaSubnetwork
Expand Down
Expand Up @@ -220,6 +220,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudServicenetworkingV1ConsumerConfigReservedRange
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudServicenetworkingV1betaSubnetwork
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -667,7 +673,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :producer_import_custom_routes, as: 'producerImportCustomRoutes'
property :producer_import_subnet_routes_with_public_ip, as: 'producerImportSubnetRoutesWithPublicIp'
property :producer_network, as: 'producerNetwork'
collection :reserved_ranges, as: 'reservedRanges'
collection :reserved_ranges, as: 'reservedRanges', class: Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1ConsumerConfigReservedRange, decorator: Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1ConsumerConfigReservedRange::Representation

end
end

Expand Down Expand Up @@ -826,6 +833,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudServicenetworkingV1ConsumerConfigReservedRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :address, as: 'address'
property :ip_prefix_length, as: 'ipPrefixLength'
property :name, as: 'name'
end
end

class GoogleCloudServicenetworkingV1betaSubnetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "6e81270051b57ce334c9929cbf56efdd34172726"
"sha": "bfe4570ea817b38ad143eba0c5435d3a2a398a7e"
}
}
]
Expand Down