diff --git a/api_names_out.yaml b/api_names_out.yaml index 18baa7c0d..0837506d9 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -143563,6 +143563,8 @@ "/servicenetworking:v1/RangeReservation/requestedRanges/requested_range": requested_range "/servicenetworking:v1/RangeReservation/secondaryRangeIpPrefixLengths": secondary_range_ip_prefix_lengths "/servicenetworking:v1/RangeReservation/secondaryRangeIpPrefixLengths/secondary_range_ip_prefix_length": secondary_range_ip_prefix_length +"/servicenetworking:v1/RangeReservation/subnetworkCandidates": subnetwork_candidates +"/servicenetworking:v1/RangeReservation/subnetworkCandidates/subnetwork_candidate": subnetwork_candidate "/servicenetworking:v1/RemoveDnsRecordSetMetadata": remove_dns_record_set_metadata "/servicenetworking:v1/RemoveDnsRecordSetRequest": remove_dns_record_set_request "/servicenetworking:v1/RemoveDnsRecordSetRequest/consumerNetwork": consumer_network @@ -143647,6 +143649,7 @@ "/servicenetworking:v1/Subnetwork/name": name "/servicenetworking:v1/Subnetwork/network": network "/servicenetworking:v1/Subnetwork/outsideAllocation": outside_allocation +"/servicenetworking:v1/Subnetwork/region": region "/servicenetworking:v1/Subnetwork/secondaryIpRanges": secondary_ip_ranges "/servicenetworking:v1/Subnetwork/secondaryIpRanges/secondary_ip_range": secondary_ip_range "/servicenetworking:v1/SystemParameter": system_parameter @@ -143695,6 +143698,8 @@ "/servicenetworking:v1/ValidateConsumerConfigRequest/rangeReservation": range_reservation "/servicenetworking:v1/ValidateConsumerConfigRequest/validateNetwork": validate_network "/servicenetworking:v1/ValidateConsumerConfigResponse": validate_consumer_config_response +"/servicenetworking:v1/ValidateConsumerConfigResponse/existingSubnetworkCandidates": existing_subnetwork_candidates +"/servicenetworking:v1/ValidateConsumerConfigResponse/existingSubnetworkCandidates/existing_subnetwork_candidate": existing_subnetwork_candidate "/servicenetworking:v1/ValidateConsumerConfigResponse/isValid": is_valid "/servicenetworking:v1/ValidateConsumerConfigResponse/validationError": validation_error "/servicenetworking:v1/fields": fields diff --git a/generated/google-apis-servicenetworking_v1/CHANGELOG.md b/generated/google-apis-servicenetworking_v1/CHANGELOG.md index ceef784b2..cfff2a4db 100644 --- a/generated/google-apis-servicenetworking_v1/CHANGELOG.md +++ b/generated/google-apis-servicenetworking_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-servicenetworking_v1 +### v0.2.0 (2021-01-08) + +* Regenerated from discovery document revision 20210106 + ### v0.1.0 (2021-01-07) * Regenerated from discovery document revision 20210105 diff --git a/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/classes.rb b/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/classes.rb index 368a4d26a..5c7697230 100644 --- a/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/classes.rb @@ -3066,14 +3066,22 @@ module Google # @return [Array] attr_accessor :requested_ranges - # Optional. DO NOT USE - Under development. The size of the desired secondary - # ranges for the subnet. Use usual CIDR range notation. For example, '30' to - # find unused x.x.x.x/30 CIDR range. The goal is to determine that the allocated - # ranges have enough free space for all the requested secondary ranges. + # Optional. The size of the desired secondary ranges for the subnet. Use usual + # CIDR range notation. For example, '30' to find unused x.x.x.x/30 CIDR range. + # The goal is to determine that the allocated ranges have enough free space for + # all the requested secondary ranges. # Corresponds to the JSON property `secondaryRangeIpPrefixLengths` # @return [Array] attr_accessor :secondary_range_ip_prefix_lengths + # Optional. List of subnetwork candidates to validate. The required input fields + # are `name`, `network`, and `region`. Subnetworks from this list which exist + # will be returned in the response with the `ip_cidr_range`, ` + # secondary_ip_cider_ranges`, and `outside_allocation` fields set. + # Corresponds to the JSON property `subnetworkCandidates` + # @return [Array] + attr_accessor :subnetwork_candidates + def initialize(**args) update!(**args) end @@ -3083,6 +3091,7 @@ module Google @ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length) @requested_ranges = args[:requested_ranges] if args.key?(:requested_ranges) @secondary_range_ip_prefix_lengths = args[:secondary_range_ip_prefix_lengths] if args.key?(:secondary_range_ip_prefix_lengths) + @subnetwork_candidates = args[:subnetwork_candidates] if args.key?(:subnetwork_candidates) end end @@ -3769,6 +3778,11 @@ module Google attr_accessor :outside_allocation alias_method :outside_allocation?, :outside_allocation + # GCP region where the subnetwork is located. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + # List of secondary IP ranges in this subnetwork. # Corresponds to the JSON property `secondaryIpRanges` # @return [Array] @@ -3784,6 +3798,7 @@ module Google @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @outside_allocation = args[:outside_allocation] if args.key?(:outside_allocation) + @region = args[:region] if args.key?(:region) @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges) end end @@ -4025,7 +4040,11 @@ module Google # Requirements that must be satisfied before a consumer project can use the # service. Each requirement is of the form /; for example 'serviceusage. - # googleapis.com/billing-enabled'. + # googleapis.com/billing-enabled'. For Google APIs, a Terms of Service + # requirement must be included here. Google Cloud APIs must include " + # serviceusage.googleapis.com/tos/cloud". Other Google APIs should include " + # serviceusage.googleapis.com/tos/universal". Additional ToS can be included + # based on the business needs. # Corresponds to the JSON property `requirements` # @return [Array] attr_accessor :requirements @@ -4144,13 +4163,20 @@ module Google class ValidateConsumerConfigResponse include Google::Apis::Core::Hashable - # + # List of subnetwork candidates from the request which exist with the ` + # ip_cidr_range`, `secondary_ip_cider_ranges`, and `outside_allocation` fields + # set. + # Corresponds to the JSON property `existingSubnetworkCandidates` + # @return [Array] + attr_accessor :existing_subnetwork_candidates + + # Indicates whether all the requested validations passed. # Corresponds to the JSON property `isValid` # @return [Boolean] attr_accessor :is_valid alias_method :is_valid?, :is_valid - # + # The first validation which failed. # Corresponds to the JSON property `validationError` # @return [String] attr_accessor :validation_error @@ -4161,6 +4187,7 @@ module Google # Update properties of this object def update!(**args) + @existing_subnetwork_candidates = args[:existing_subnetwork_candidates] if args.key?(:existing_subnetwork_candidates) @is_valid = args[:is_valid] if args.key?(:is_valid) @validation_error = args[:validation_error] if args.key?(:validation_error) end diff --git a/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/gem_version.rb b/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/gem_version.rb index cdbdef4f5..96539ee9e 100644 --- a/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/gem_version.rb +++ b/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ServicenetworkingV1 # Version of the google-apis-servicenetworking_v1 gem - GEM_VERSION = "0.1.0" + GEM_VERSION = "0.2.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.1.1" # Revision of the discovery document this client was generated from - REVISION = "20210105" + REVISION = "20210106" end end end diff --git a/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/representations.rb b/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/representations.rb index 6f519bbe3..cfc4053ab 100644 --- a/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/representations.rb +++ b/generated/google-apis-servicenetworking_v1/lib/google/apis/servicenetworking_v1/representations.rb @@ -1312,6 +1312,8 @@ module Google property :ip_prefix_length, as: 'ipPrefixLength' collection :requested_ranges, as: 'requestedRanges' collection :secondary_range_ip_prefix_lengths, as: 'secondaryRangeIpPrefixLengths' + collection :subnetwork_candidates, as: 'subnetworkCandidates', class: Google::Apis::ServicenetworkingV1::Subnetwork, decorator: Google::Apis::ServicenetworkingV1::Subnetwork::Representation + end end @@ -1477,6 +1479,7 @@ module Google property :name, as: 'name' property :network, as: 'network' property :outside_allocation, as: 'outsideAllocation' + property :region, as: 'region' collection :secondary_ip_ranges, as: 'secondaryIpRanges', class: Google::Apis::ServicenetworkingV1::SecondaryIpRange, decorator: Google::Apis::ServicenetworkingV1::SecondaryIpRange::Representation end @@ -1583,6 +1586,8 @@ module Google class ValidateConsumerConfigResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :existing_subnetwork_candidates, as: 'existingSubnetworkCandidates', class: Google::Apis::ServicenetworkingV1::Subnetwork, decorator: Google::Apis::ServicenetworkingV1::Subnetwork::Representation + property :is_valid, as: 'isValid' property :validation_error, as: 'validationError' end diff --git a/generated/google-apis-servicenetworking_v1/synth.metadata b/generated/google-apis-servicenetworking_v1/synth.metadata index 535d0881c..b1bac7fed 100644 --- a/generated/google-apis-servicenetworking_v1/synth.metadata +++ b/generated/google-apis-servicenetworking_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "6de8b4ee653db67c0e789203767a89b32fcf8a51" + "sha": "c6bbfd62e37cc5a444d49a6576fda907b3bfb9b5" } } ]