google-apis-servicenetworking_v1 0.49.0 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66e8f913f807ab1799d69ac6733669f67340f4c63200d0c2e0e64f57d9a0750a
4
- data.tar.gz: da63cb6014416edb5483aac093d15afd2e4cd048294561a7888e0f1cea2cd28d
3
+ metadata.gz: 37fb160ce224fe4b95360e060730b3c0332a78f9c330644855d7062eada0451b
4
+ data.tar.gz: ad826b0450e5f4e6ca9576e0e884e1dd2217a4297ba2353f2ec9de2f3239eafc
5
5
  SHA512:
6
- metadata.gz: e02a9c4b5fd22096c076679fc429f5eec1f6170b8d1cc708eb35d96b8042245ab5757ff74da2891038d910259e51c41053cf1d8657784a4b1945cb4ab4f982e4
7
- data.tar.gz: 4dc6476fa9b16ce74c7d7c7ce303e73fa3379f37ca14b9ebbfbc2f7b7f9234b859a26ab14a7a0040282cfe5288de05d11c6368617946a49be54db43bf82636e6
6
+ metadata.gz: 5cd9d37e0c6ec614581a8285b953be80383465e4825c3f5927a96518a372f0806ed8dea6c245e4f9bf78736fa1cc5f0b4abf875e43ce85e44629a694c8da8d1e
7
+ data.tar.gz: e6993fabe7aacea071c38a2e7cd59b117be6131f20f30232b0b5faf076c632c8b656651164442a1a90c6bb18a3dd636f32c0e2d71c09736ff48c060dbb6f4a08
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-servicenetworking_v1
2
2
 
3
+ ### v0.50.0 (2023-11-05)
4
+
5
+ * Regenerated from discovery document revision 20231029
6
+
3
7
  ### v0.49.0 (2023-08-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20230806
@@ -267,6 +267,14 @@ module Google
267
267
  # @return [String]
268
268
  attr_accessor :description
269
269
 
270
+ # Optional. The url of an Internal Range. Eg: `projects//locations/global/
271
+ # internalRanges/`. If specified, it means that the subnetwork cidr will be
272
+ # created using the combination of requested_address/ip_prefix_length. Note that
273
+ # the subnet cidr has to be within the cidr range of this Internal Range.
274
+ # Corresponds to the JSON property `internalRange`
275
+ # @return [String]
276
+ attr_accessor :internal_range
277
+
270
278
  # Required. The prefix length of the subnet's IP address range. Use CIDR range
271
279
  # notation, such as `29` to provision a subnet with an `x.x.x.x/29` CIDR range.
272
280
  # The IP address range is drawn from a pool of available ranges in the service
@@ -371,6 +379,7 @@ module Google
371
379
  @consumer = args[:consumer] if args.key?(:consumer)
372
380
  @consumer_network = args[:consumer_network] if args.key?(:consumer_network)
373
381
  @description = args[:description] if args.key?(:description)
382
+ @internal_range = args[:internal_range] if args.key?(:internal_range)
374
383
  @ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length)
375
384
  @outside_allocation_public_ip_range = args[:outside_allocation_public_ip_range] if args.key?(:outside_allocation_public_ip_range)
376
385
  @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access)
@@ -5151,6 +5160,29 @@ module Google
5151
5160
  @validation_error = args[:validation_error] if args.key?(:validation_error)
5152
5161
  end
5153
5162
  end
5163
+
5164
+ # Response for the get VPC Service Controls request.
5165
+ class VpcServiceControls
5166
+ include Google::Apis::Core::Hashable
5167
+
5168
+ # Output only. Indicates whether the VPC Service Controls are enabled or
5169
+ # disabled for the connection. If the consumer called the
5170
+ # EnableVpcServiceControls method, then this is true. If the consumer called
5171
+ # DisableVpcServiceControls, then this is false. The default is false.
5172
+ # Corresponds to the JSON property `enabled`
5173
+ # @return [Boolean]
5174
+ attr_accessor :enabled
5175
+ alias_method :enabled?, :enabled
5176
+
5177
+ def initialize(**args)
5178
+ update!(**args)
5179
+ end
5180
+
5181
+ # Update properties of this object
5182
+ def update!(**args)
5183
+ @enabled = args[:enabled] if args.key?(:enabled)
5184
+ end
5185
+ end
5154
5186
  end
5155
5187
  end
5156
5188
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServicenetworkingV1
18
18
  # Version of the google-apis-servicenetworking_v1 gem
19
- GEM_VERSION = "0.49.0"
19
+ GEM_VERSION = "0.50.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230806"
25
+ REVISION = "20231029"
26
26
  end
27
27
  end
28
28
  end
@@ -754,6 +754,12 @@ module Google
754
754
  include Google::Apis::Core::JsonObjectSupport
755
755
  end
756
756
 
757
+ class VpcServiceControls
758
+ class Representation < Google::Apis::Core::JsonRepresentation; end
759
+
760
+ include Google::Apis::Core::JsonObjectSupport
761
+ end
762
+
757
763
  class AddDnsRecordSetMetadata
758
764
  # @private
759
765
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -827,6 +833,7 @@ module Google
827
833
  property :consumer, as: 'consumer'
828
834
  property :consumer_network, as: 'consumerNetwork'
829
835
  property :description, as: 'description'
836
+ property :internal_range, as: 'internalRange'
830
837
  property :ip_prefix_length, as: 'ipPrefixLength'
831
838
  property :outside_allocation_public_ip_range, as: 'outsideAllocationPublicIpRange'
832
839
  property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess'
@@ -1994,6 +2001,13 @@ module Google
1994
2001
  property :validation_error, as: 'validationError'
1995
2002
  end
1996
2003
  end
2004
+
2005
+ class VpcServiceControls
2006
+ # @private
2007
+ class Representation < Google::Apis::Core::JsonRepresentation
2008
+ property :enabled, as: 'enabled'
2009
+ end
2010
+ end
1997
2011
  end
1998
2012
  end
1999
2013
  end
@@ -867,6 +867,43 @@ module Google
867
867
  execute_or_queue_command(command, &block)
868
868
  end
869
869
 
870
+ # Consumers use this method to find out the state of VPC Service Controls. The
871
+ # controls could be enabled or disabled for a connection.
872
+ # @param [String] name
873
+ # Required. Name of the VPC Service Controls config to retrieve in the format: `
874
+ # services/`service`/projects/`project`/global/networks/`network``. `service` is
875
+ # the peering service that is managing connectivity for the service producer's
876
+ # organization. For Google services that support this functionality, this value
877
+ # is `servicenetworking.googleapis.com`. `project` is a project number e.g. `
878
+ # 12345` that contains the service consumer's VPC network. `network` is the name
879
+ # of the service consumer's VPC network.
880
+ # @param [String] fields
881
+ # Selector specifying which fields to include in a partial response.
882
+ # @param [String] quota_user
883
+ # Available to use for quota purposes for server-side applications. Can be any
884
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
885
+ # @param [Google::Apis::RequestOptions] options
886
+ # Request-specific options
887
+ #
888
+ # @yield [result, err] Result & error if block supplied
889
+ # @yieldparam result [Google::Apis::ServicenetworkingV1::VpcServiceControls] parsed result object
890
+ # @yieldparam err [StandardError] error object if request failed
891
+ #
892
+ # @return [Google::Apis::ServicenetworkingV1::VpcServiceControls]
893
+ #
894
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
895
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
896
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
897
+ def get_service_project_global_network_vpc_service_controls(name, fields: nil, quota_user: nil, options: nil, &block)
898
+ command = make_simple_command(:get, 'v1/{+name}/vpcServiceControls', options)
899
+ command.response_representation = Google::Apis::ServicenetworkingV1::VpcServiceControls::Representation
900
+ command.response_class = Google::Apis::ServicenetworkingV1::VpcServiceControls
901
+ command.params['name'] = name unless name.nil?
902
+ command.query['fields'] = fields unless fields.nil?
903
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
904
+ execute_or_queue_command(command, &block)
905
+ end
906
+
870
907
  # Service producers use this method to update the configuration of their
871
908
  # connection including the import/export of custom routes and subnetwork routes
872
909
  # with public IP.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-servicenetworking_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.0
4
+ version: 0.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-13 00:00:00.000000000 Z
11
+ date: 2023-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-servicenetworking_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-servicenetworking_v1/v0.49.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-servicenetworking_v1/v0.50.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-servicenetworking_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Service Networking API V1