google-apis-servicenetworking_v1 0.48.0 → 0.50.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/servicenetworking_v1/classes.rb +32 -0
- data/lib/google/apis/servicenetworking_v1/gem_version.rb +2 -2
- data/lib/google/apis/servicenetworking_v1/representations.rb +14 -0
- data/lib/google/apis/servicenetworking_v1/service.rb +112 -75
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37fb160ce224fe4b95360e060730b3c0332a78f9c330644855d7062eada0451b
|
4
|
+
data.tar.gz: ad826b0450e5f4e6ca9576e0e884e1dd2217a4297ba2353f2ec9de2f3239eafc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cd9d37e0c6ec614581a8285b953be80383465e4825c3f5927a96518a372f0806ed8dea6c245e4f9bf78736fa1cc5f0b4abf875e43ce85e44629a694c8da8d1e
|
7
|
+
data.tar.gz: e6993fabe7aacea071c38a2e7cd59b117be6131f20f30232b0b5faf076c632c8b656651164442a1a90c6bb18a3dd636f32c0e2d71c09736ff48c060dbb6f4a08
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
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
|
+
|
7
|
+
### v0.49.0 (2023-08-13)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230806
|
10
|
+
|
3
11
|
### v0.48.0 (2023-08-06)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230802
|
@@ -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.
|
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 = "
|
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
|
@@ -600,7 +600,7 @@ module Google
|
|
600
600
|
# Required. The domain name of the zone containing the recordset.
|
601
601
|
# @param [String] type
|
602
602
|
# Required. RecordSet Type eg. type='A'. See the list of [Supported DNS Types](
|
603
|
-
# https://
|
603
|
+
# https://cloud.google.com/dns/records/json-record).
|
604
604
|
# @param [String] zone
|
605
605
|
# Required. The name of the zone containing the record set.
|
606
606
|
# @param [String] fields
|
@@ -749,42 +749,6 @@ module Google
|
|
749
749
|
execute_or_queue_command(command, &block)
|
750
750
|
end
|
751
751
|
|
752
|
-
# Service producers can use this method to retrieve a DNS zone in the shared
|
753
|
-
# producer host project and the matching peering zones in consumer project
|
754
|
-
# @param [String] name
|
755
|
-
# Required. The network that the consumer is using to connect with services.
|
756
|
-
# Must be in the form of services/`service`/projects/`project`/global/networks/`
|
757
|
-
# network`/zones/`zoneName` Where `service` is the peering service that is
|
758
|
-
# managing connectivity for the service producer's organization. For Google
|
759
|
-
# services that support this `project` is the project number, as in '12345' `
|
760
|
-
# network` is the network name. `zoneName` is the DNS zone name
|
761
|
-
# @param [String] fields
|
762
|
-
# Selector specifying which fields to include in a partial response.
|
763
|
-
# @param [String] quota_user
|
764
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
765
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
766
|
-
# @param [Google::Apis::RequestOptions] options
|
767
|
-
# Request-specific options
|
768
|
-
#
|
769
|
-
# @yield [result, err] Result & error if block supplied
|
770
|
-
# @yieldparam result [Google::Apis::ServicenetworkingV1::GetDnsZoneResponse] parsed result object
|
771
|
-
# @yieldparam err [StandardError] error object if request failed
|
772
|
-
#
|
773
|
-
# @return [Google::Apis::ServicenetworkingV1::GetDnsZoneResponse]
|
774
|
-
#
|
775
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
776
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
777
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
778
|
-
def get_service_dns_zone(name, fields: nil, quota_user: nil, options: nil, &block)
|
779
|
-
command = make_simple_command(:get, 'v1/{+name}/dnsZone:get', options)
|
780
|
-
command.response_representation = Google::Apis::ServicenetworkingV1::GetDnsZoneResponse::Representation
|
781
|
-
command.response_class = Google::Apis::ServicenetworkingV1::GetDnsZoneResponse
|
782
|
-
command.params['name'] = name unless name.nil?
|
783
|
-
command.query['fields'] = fields unless fields.nil?
|
784
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
785
|
-
execute_or_queue_command(command, &block)
|
786
|
-
end
|
787
|
-
|
788
752
|
# Service producers can use this method to add private DNS zones in the shared
|
789
753
|
# producer host project and matching peering zones in the consumer project.
|
790
754
|
# @param [String] parent
|
@@ -821,44 +785,6 @@ module Google
|
|
821
785
|
execute_or_queue_command(command, &block)
|
822
786
|
end
|
823
787
|
|
824
|
-
# * Service producers can use this method to retrieve a list of available DNS
|
825
|
-
# zones in the shared producer host project and the matching peering zones in
|
826
|
-
# the consumer project. *
|
827
|
-
# @param [String] parent
|
828
|
-
# Required. Parent resource identifying the connection which owns this
|
829
|
-
# collection of DNS zones in the format services/`service`/projects/`project`/
|
830
|
-
# global/networks/`network` Service: The service that is managing connectivity
|
831
|
-
# for the service producer's organization. For Google services that support this
|
832
|
-
# functionality, this value is `servicenetworking.googleapis.com`. Projects: the
|
833
|
-
# consumer project containing the consumer network. Network: The consumer
|
834
|
-
# network accessible from the tenant project.
|
835
|
-
# @param [String] fields
|
836
|
-
# Selector specifying which fields to include in a partial response.
|
837
|
-
# @param [String] quota_user
|
838
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
839
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
840
|
-
# @param [Google::Apis::RequestOptions] options
|
841
|
-
# Request-specific options
|
842
|
-
#
|
843
|
-
# @yield [result, err] Result & error if block supplied
|
844
|
-
# @yieldparam result [Google::Apis::ServicenetworkingV1::ListDnsZonesResponse] parsed result object
|
845
|
-
# @yieldparam err [StandardError] error object if request failed
|
846
|
-
#
|
847
|
-
# @return [Google::Apis::ServicenetworkingV1::ListDnsZonesResponse]
|
848
|
-
#
|
849
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
850
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
851
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
852
|
-
def list_service_dns_zones(parent, fields: nil, quota_user: nil, options: nil, &block)
|
853
|
-
command = make_simple_command(:get, 'v1/{+parent}/dnsZones:list', options)
|
854
|
-
command.response_representation = Google::Apis::ServicenetworkingV1::ListDnsZonesResponse::Representation
|
855
|
-
command.response_class = Google::Apis::ServicenetworkingV1::ListDnsZonesResponse
|
856
|
-
command.params['parent'] = parent unless parent.nil?
|
857
|
-
command.query['fields'] = fields unless fields.nil?
|
858
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
859
|
-
execute_or_queue_command(command, &block)
|
860
|
-
end
|
861
|
-
|
862
788
|
# Service producers can use this method to remove private DNS zones in the
|
863
789
|
# shared producer host project and matching peering zones in the consumer
|
864
790
|
# project.
|
@@ -941,6 +867,43 @@ module Google
|
|
941
867
|
execute_or_queue_command(command, &block)
|
942
868
|
end
|
943
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
|
+
|
944
907
|
# Service producers use this method to update the configuration of their
|
945
908
|
# connection including the import/export of custom routes and subnetwork routes
|
946
909
|
# with public IP.
|
@@ -983,6 +946,80 @@ module Google
|
|
983
946
|
execute_or_queue_command(command, &block)
|
984
947
|
end
|
985
948
|
|
949
|
+
# Service producers can use this method to retrieve a DNS zone in the shared
|
950
|
+
# producer host project and the matching peering zones in consumer project
|
951
|
+
# @param [String] name
|
952
|
+
# Required. The network that the consumer is using to connect with services.
|
953
|
+
# Must be in the form of services/`service`/projects/`project`/global/networks/`
|
954
|
+
# network`/zones/`zoneName` Where `service` is the peering service that is
|
955
|
+
# managing connectivity for the service producer's organization. For Google
|
956
|
+
# services that support this `project` is the project number, as in '12345' `
|
957
|
+
# network` is the network name. `zoneName` is the DNS zone name
|
958
|
+
# @param [String] fields
|
959
|
+
# Selector specifying which fields to include in a partial response.
|
960
|
+
# @param [String] quota_user
|
961
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
962
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
963
|
+
# @param [Google::Apis::RequestOptions] options
|
964
|
+
# Request-specific options
|
965
|
+
#
|
966
|
+
# @yield [result, err] Result & error if block supplied
|
967
|
+
# @yieldparam result [Google::Apis::ServicenetworkingV1::GetDnsZoneResponse] parsed result object
|
968
|
+
# @yieldparam err [StandardError] error object if request failed
|
969
|
+
#
|
970
|
+
# @return [Google::Apis::ServicenetworkingV1::GetDnsZoneResponse]
|
971
|
+
#
|
972
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
973
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
974
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
975
|
+
def get_service_project_global_network_dns_zone(name, fields: nil, quota_user: nil, options: nil, &block)
|
976
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
977
|
+
command.response_representation = Google::Apis::ServicenetworkingV1::GetDnsZoneResponse::Representation
|
978
|
+
command.response_class = Google::Apis::ServicenetworkingV1::GetDnsZoneResponse
|
979
|
+
command.params['name'] = name unless name.nil?
|
980
|
+
command.query['fields'] = fields unless fields.nil?
|
981
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
982
|
+
execute_or_queue_command(command, &block)
|
983
|
+
end
|
984
|
+
|
985
|
+
# * Service producers can use this method to retrieve a list of available DNS
|
986
|
+
# zones in the shared producer host project and the matching peering zones in
|
987
|
+
# the consumer project. *
|
988
|
+
# @param [String] parent
|
989
|
+
# Required. Parent resource identifying the connection which owns this
|
990
|
+
# collection of DNS zones in the format services/`service`/projects/`project`/
|
991
|
+
# global/networks/`network` Service: The service that is managing connectivity
|
992
|
+
# for the service producer's organization. For Google services that support this
|
993
|
+
# functionality, this value is `servicenetworking.googleapis.com`. Projects: the
|
994
|
+
# consumer project containing the consumer network. Network: The consumer
|
995
|
+
# network accessible from the tenant project.
|
996
|
+
# @param [String] fields
|
997
|
+
# Selector specifying which fields to include in a partial response.
|
998
|
+
# @param [String] quota_user
|
999
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1000
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1001
|
+
# @param [Google::Apis::RequestOptions] options
|
1002
|
+
# Request-specific options
|
1003
|
+
#
|
1004
|
+
# @yield [result, err] Result & error if block supplied
|
1005
|
+
# @yieldparam result [Google::Apis::ServicenetworkingV1::ListDnsZonesResponse] parsed result object
|
1006
|
+
# @yieldparam err [StandardError] error object if request failed
|
1007
|
+
#
|
1008
|
+
# @return [Google::Apis::ServicenetworkingV1::ListDnsZonesResponse]
|
1009
|
+
#
|
1010
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1011
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1012
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1013
|
+
def list_service_project_global_network_dns_zones(parent, fields: nil, quota_user: nil, options: nil, &block)
|
1014
|
+
command = make_simple_command(:get, 'v1/{+parent}/dnsZones:list', options)
|
1015
|
+
command.response_representation = Google::Apis::ServicenetworkingV1::ListDnsZonesResponse::Representation
|
1016
|
+
command.response_class = Google::Apis::ServicenetworkingV1::ListDnsZonesResponse
|
1017
|
+
command.params['parent'] = parent unless parent.nil?
|
1018
|
+
command.query['fields'] = fields unless fields.nil?
|
1019
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1020
|
+
execute_or_queue_command(command, &block)
|
1021
|
+
end
|
1022
|
+
|
986
1023
|
# Creates a peered DNS domain which sends requests for records in given
|
987
1024
|
# namespace originating in the service producer VPC network to the consumer VPC
|
988
1025
|
# network to be resolved.
|
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.
|
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-
|
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.
|
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.
|
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
|