google-apis-servicenetworking_v1beta 0.1.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/servicenetworking_v1beta/classes.rb +86 -11
- data/lib/google/apis/servicenetworking_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/servicenetworking_v1beta/representations.rb +30 -1
- data/lib/google/apis/servicenetworking_v1beta/service.rb +8 -8
- 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: 8fb2c33b1804a1bc029bf97d15234b9a2f18893933a1c2ac40ee31e243d264bc
|
4
|
+
data.tar.gz: d864d58aad2bf9c5086ae0df40b788c0c99dd230a64ecd60b357d847b825ab57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e4fc4c0006dffd0b30dcd432397da7f5feafc5211d47c34f3188b6ea17c1cc6364676b5051c0c79f70b72e6a134f851a77a853002a4fe7ea4d4324ac225f2cc
|
7
|
+
data.tar.gz: 5fba982e9f5e76f81552b1b1acc2f779f8c5755aa56085265990c278a91f9de4e0d778b820ca9a3c7d0e89feaef0460fc8105501f4eeefc6c85a647c9b0c68c6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-servicenetworking_v1beta
|
2
2
|
|
3
|
+
### v0.2.0 (2021-01-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210125
|
6
|
+
* Regenerated using generator version 0.1.2
|
7
|
+
|
3
8
|
### v0.1.0 (2021-01-07)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20210105
|
@@ -659,9 +659,12 @@ module Google
|
|
659
659
|
attr_accessor :peering
|
660
660
|
|
661
661
|
# The name of one or more allocated IP address ranges for this service producer
|
662
|
-
# of type `PEERING`. Note that invoking
|
663
|
-
# connection is already established will not modify already
|
664
|
-
# producer subnetworks.
|
662
|
+
# of type `PEERING`. Note that invoking CreateConnection method with a different
|
663
|
+
# range when connection is already established will not modify already
|
664
|
+
# provisioned service producer subnetworks. If CreateConnection method is
|
665
|
+
# invoked repeatedly to reconnect when peering connection had been disconnected
|
666
|
+
# on the consumer side, leaving this field empty will restore previously
|
667
|
+
# allocated IP ranges.
|
665
668
|
# Corresponds to the JSON property `reservedPeeringRanges`
|
666
669
|
# @return [Array<String>]
|
667
670
|
attr_accessor :reserved_peering_ranges
|
@@ -978,6 +981,20 @@ module Google
|
|
978
981
|
end
|
979
982
|
end
|
980
983
|
|
984
|
+
# Metadata provided through GetOperation request for the LRO generated by Delete
|
985
|
+
# Connection API
|
986
|
+
class DeleteConnectionMetadata
|
987
|
+
include Google::Apis::Core::Hashable
|
988
|
+
|
989
|
+
def initialize(**args)
|
990
|
+
update!(**args)
|
991
|
+
end
|
992
|
+
|
993
|
+
# Update properties of this object
|
994
|
+
def update!(**args)
|
995
|
+
end
|
996
|
+
end
|
997
|
+
|
981
998
|
# Metadata provided through GetOperation request for the LRO generated by
|
982
999
|
# DeletePeeredDnsDomain API.
|
983
1000
|
class DeletePeeredDnsDomainMetadata
|
@@ -1416,6 +1433,54 @@ module Google
|
|
1416
1433
|
end
|
1417
1434
|
end
|
1418
1435
|
|
1436
|
+
# Represents a private connection resource. A private connection is implemented
|
1437
|
+
# as a VPC Network Peering connection between a service producer's VPC network
|
1438
|
+
# and a service consumer's VPC network.
|
1439
|
+
class GoogleCloudServicenetworkingV1betaConnection
|
1440
|
+
include Google::Apis::Core::Hashable
|
1441
|
+
|
1442
|
+
# The name of service consumer's VPC network that's connected with service
|
1443
|
+
# producer network, in the following format: `projects/`project`/global/networks/
|
1444
|
+
# `network``. ``project`` is a project number, such as in `12345` that includes
|
1445
|
+
# the VPC service consumer's VPC network. ``network`` is the name of the service
|
1446
|
+
# consumer's VPC network.
|
1447
|
+
# Corresponds to the JSON property `network`
|
1448
|
+
# @return [String]
|
1449
|
+
attr_accessor :network
|
1450
|
+
|
1451
|
+
# Output only. The name of the VPC Network Peering connection that was created
|
1452
|
+
# by the service producer.
|
1453
|
+
# Corresponds to the JSON property `peering`
|
1454
|
+
# @return [String]
|
1455
|
+
attr_accessor :peering
|
1456
|
+
|
1457
|
+
# The name of one or more allocated IP address ranges for this service producer
|
1458
|
+
# of type `PEERING`. Note that invoking this method with a different range when
|
1459
|
+
# connection is already established will not modify already provisioned service
|
1460
|
+
# producer subnetworks.
|
1461
|
+
# Corresponds to the JSON property `reservedPeeringRanges`
|
1462
|
+
# @return [Array<String>]
|
1463
|
+
attr_accessor :reserved_peering_ranges
|
1464
|
+
|
1465
|
+
# Output only. The name of the peering service that's associated with this
|
1466
|
+
# connection, in the following format: `services/`service name``.
|
1467
|
+
# Corresponds to the JSON property `service`
|
1468
|
+
# @return [String]
|
1469
|
+
attr_accessor :service
|
1470
|
+
|
1471
|
+
def initialize(**args)
|
1472
|
+
update!(**args)
|
1473
|
+
end
|
1474
|
+
|
1475
|
+
# Update properties of this object
|
1476
|
+
def update!(**args)
|
1477
|
+
@network = args[:network] if args.key?(:network)
|
1478
|
+
@peering = args[:peering] if args.key?(:peering)
|
1479
|
+
@reserved_peering_ranges = args[:reserved_peering_ranges] if args.key?(:reserved_peering_ranges)
|
1480
|
+
@service = args[:service] if args.key?(:service)
|
1481
|
+
end
|
1482
|
+
end
|
1483
|
+
|
1419
1484
|
# Represents a subnet that was created or discovered by a private access
|
1420
1485
|
# management service.
|
1421
1486
|
class GoogleCloudServicenetworkingV1betaSubnetwork
|
@@ -1773,7 +1838,7 @@ module Google
|
|
1773
1838
|
|
1774
1839
|
# The list of Connections.
|
1775
1840
|
# Corresponds to the JSON property `connections`
|
1776
|
-
# @return [Array<Google::Apis::ServicenetworkingV1beta::
|
1841
|
+
# @return [Array<Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1betaConnection>]
|
1777
1842
|
attr_accessor :connections
|
1778
1843
|
|
1779
1844
|
def initialize(**args)
|
@@ -2026,11 +2091,11 @@ module Google
|
|
2026
2091
|
|
2027
2092
|
# The units in which the metric value is reported. It is only applicable if the `
|
2028
2093
|
# value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the
|
2029
|
-
# representation of the stored metric values. Different systems
|
2030
|
-
# values to be more easily displayed (so a value of `0.
|
2031
|
-
# displayed as `20By`, and a value of `
|
2032
|
-
# . However, if the `unit` is `
|
2033
|
-
# thousands of bytes, no matter how it
|
2094
|
+
# representation of the stored metric values. Different systems might scale the
|
2095
|
+
# values to be more easily displayed (so a value of `0.02kBy` _might_ be
|
2096
|
+
# displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`)
|
2097
|
+
# . However, if the `unit` is `kBy`, then the value of the metric is always in
|
2098
|
+
# thousands of bytes, no matter how it might be displayed. If you want a custom
|
2034
2099
|
# metric to record the exact number of CPU-seconds used by a job, you can create
|
2035
2100
|
# an `INT64 CUMULATIVE` metric whose `unit` is `s`CPU`` (or equivalently `1s`CPU`
|
2036
2101
|
# ` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written
|
@@ -2038,7 +2103,7 @@ module Google
|
|
2038
2103
|
# more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
|
2039
2104
|
# `ks`CPU``, and then write the value `12.005` (which is `12005/1000`), or use `
|
2040
2105
|
# Kis`CPU`` and write `11.723` (which is `12005/1024`). The supported units are
|
2041
|
-
# a subset of [The Unified Code for Units of Measure](
|
2106
|
+
# a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/
|
2042
2107
|
# ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s`
|
2043
2108
|
# second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (
|
2044
2109
|
# PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^
|
@@ -3366,6 +3431,11 @@ module Google
|
|
3366
3431
|
attr_accessor :outside_allocation
|
3367
3432
|
alias_method :outside_allocation?, :outside_allocation
|
3368
3433
|
|
3434
|
+
# GCP region where the subnetwork is located.
|
3435
|
+
# Corresponds to the JSON property `region`
|
3436
|
+
# @return [String]
|
3437
|
+
attr_accessor :region
|
3438
|
+
|
3369
3439
|
# List of secondary IP ranges in this subnetwork.
|
3370
3440
|
# Corresponds to the JSON property `secondaryIpRanges`
|
3371
3441
|
# @return [Array<Google::Apis::ServicenetworkingV1beta::SecondaryIpRange>]
|
@@ -3381,6 +3451,7 @@ module Google
|
|
3381
3451
|
@name = args[:name] if args.key?(:name)
|
3382
3452
|
@network = args[:network] if args.key?(:network)
|
3383
3453
|
@outside_allocation = args[:outside_allocation] if args.key?(:outside_allocation)
|
3454
|
+
@region = args[:region] if args.key?(:region)
|
3384
3455
|
@secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges)
|
3385
3456
|
end
|
3386
3457
|
end
|
@@ -3559,7 +3630,11 @@ module Google
|
|
3559
3630
|
|
3560
3631
|
# Requirements that must be satisfied before a consumer project can use the
|
3561
3632
|
# service. Each requirement is of the form /; for example 'serviceusage.
|
3562
|
-
# googleapis.com/billing-enabled'.
|
3633
|
+
# googleapis.com/billing-enabled'. For Google APIs, a Terms of Service
|
3634
|
+
# requirement must be included here. Google Cloud APIs must include "
|
3635
|
+
# serviceusage.googleapis.com/tos/cloud". Other Google APIs should include "
|
3636
|
+
# serviceusage.googleapis.com/tos/universal". Additional ToS can be included
|
3637
|
+
# based on the business needs.
|
3563
3638
|
# Corresponds to the JSON property `requirements`
|
3564
3639
|
# @return [Array<String>]
|
3565
3640
|
attr_accessor :requirements
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ServicenetworkingV1beta
|
18
18
|
# Version of the google-apis-servicenetworking_v1beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210125"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -166,6 +166,12 @@ module Google
|
|
166
166
|
include Google::Apis::Core::JsonObjectSupport
|
167
167
|
end
|
168
168
|
|
169
|
+
class DeleteConnectionMetadata
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
169
175
|
class DeletePeeredDnsDomainMetadata
|
170
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
177
|
|
@@ -226,6 +232,12 @@ module Google
|
|
226
232
|
include Google::Apis::Core::JsonObjectSupport
|
227
233
|
end
|
228
234
|
|
235
|
+
class GoogleCloudServicenetworkingV1betaConnection
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
229
241
|
class GoogleCloudServicenetworkingV1betaSubnetwork
|
230
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
243
|
|
@@ -736,6 +748,12 @@ module Google
|
|
736
748
|
end
|
737
749
|
end
|
738
750
|
|
751
|
+
class DeleteConnectionMetadata
|
752
|
+
# @private
|
753
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
754
|
+
end
|
755
|
+
end
|
756
|
+
|
739
757
|
class DeletePeeredDnsDomainMetadata
|
740
758
|
# @private
|
741
759
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -843,6 +861,16 @@ module Google
|
|
843
861
|
end
|
844
862
|
end
|
845
863
|
|
864
|
+
class GoogleCloudServicenetworkingV1betaConnection
|
865
|
+
# @private
|
866
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
867
|
+
property :network, as: 'network'
|
868
|
+
property :peering, as: 'peering'
|
869
|
+
collection :reserved_peering_ranges, as: 'reservedPeeringRanges'
|
870
|
+
property :service, as: 'service'
|
871
|
+
end
|
872
|
+
end
|
873
|
+
|
846
874
|
class GoogleCloudServicenetworkingV1betaSubnetwork
|
847
875
|
# @private
|
848
876
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -901,7 +929,7 @@ module Google
|
|
901
929
|
class ListConnectionsResponse
|
902
930
|
# @private
|
903
931
|
class Representation < Google::Apis::Core::JsonRepresentation
|
904
|
-
collection :connections, as: 'connections', class: Google::Apis::ServicenetworkingV1beta::
|
932
|
+
collection :connections, as: 'connections', class: Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1betaConnection, decorator: Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1betaConnection::Representation
|
905
933
|
|
906
934
|
end
|
907
935
|
end
|
@@ -1252,6 +1280,7 @@ module Google
|
|
1252
1280
|
property :name, as: 'name'
|
1253
1281
|
property :network, as: 'network'
|
1254
1282
|
property :outside_allocation, as: 'outsideAllocation'
|
1283
|
+
property :region, as: 'region'
|
1255
1284
|
collection :secondary_ip_ranges, as: 'secondaryIpRanges', class: Google::Apis::ServicenetworkingV1beta::SecondaryIpRange, decorator: Google::Apis::ServicenetworkingV1beta::SecondaryIpRange::Representation
|
1256
1285
|
|
1257
1286
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
# The service producer peering service that is managing peering connectivity for
|
174
174
|
# a service producer organization. For Google services that support this
|
175
175
|
# functionality, this is `services/servicenetworking.googleapis.com`.
|
176
|
-
# @param [Google::Apis::ServicenetworkingV1beta::
|
176
|
+
# @param [Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1betaConnection] google_cloud_servicenetworking_v1beta_connection_object
|
177
177
|
# @param [Boolean] force
|
178
178
|
# If a previously defined allocated range is removed, force flag must be set to
|
179
179
|
# true.
|
@@ -197,10 +197,10 @@ module Google
|
|
197
197
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
198
198
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
199
199
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
200
|
-
def update_service_connections(name,
|
200
|
+
def update_service_connections(name, google_cloud_servicenetworking_v1beta_connection_object = nil, force: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
201
201
|
command = make_simple_command(:patch, 'v1beta/{+name}/connections', options)
|
202
|
-
command.request_representation = Google::Apis::ServicenetworkingV1beta::
|
203
|
-
command.request_object =
|
202
|
+
command.request_representation = Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1betaConnection::Representation
|
203
|
+
command.request_object = google_cloud_servicenetworking_v1beta_connection_object
|
204
204
|
command.response_representation = Google::Apis::ServicenetworkingV1beta::Operation::Representation
|
205
205
|
command.response_class = Google::Apis::ServicenetworkingV1beta::Operation
|
206
206
|
command.params['name'] = name unless name.nil?
|
@@ -223,7 +223,7 @@ module Google
|
|
223
223
|
# The service that is managing peering connectivity for a service producer's
|
224
224
|
# organization. For Google services that support this functionality, this value
|
225
225
|
# is `services/servicenetworking.googleapis.com`.
|
226
|
-
# @param [Google::Apis::ServicenetworkingV1beta::
|
226
|
+
# @param [Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1betaConnection] google_cloud_servicenetworking_v1beta_connection_object
|
227
227
|
# @param [String] fields
|
228
228
|
# Selector specifying which fields to include in a partial response.
|
229
229
|
# @param [String] quota_user
|
@@ -241,10 +241,10 @@ module Google
|
|
241
241
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
242
242
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
243
243
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
244
|
-
def create_service_connection(parent,
|
244
|
+
def create_service_connection(parent, google_cloud_servicenetworking_v1beta_connection_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
245
245
|
command = make_simple_command(:post, 'v1beta/{+parent}/connections', options)
|
246
|
-
command.request_representation = Google::Apis::ServicenetworkingV1beta::
|
247
|
-
command.request_object =
|
246
|
+
command.request_representation = Google::Apis::ServicenetworkingV1beta::GoogleCloudServicenetworkingV1betaConnection::Representation
|
247
|
+
command.request_object = google_cloud_servicenetworking_v1beta_connection_object
|
248
248
|
command.response_representation = Google::Apis::ServicenetworkingV1beta::Operation::Representation
|
249
249
|
command.response_class = Google::Apis::ServicenetworkingV1beta::Operation
|
250
250
|
command.params['parent'] = parent unless parent.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-servicenetworking_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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: 2021-
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-servicenetworking_v1beta/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-servicenetworking_v1beta/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-servicenetworking_v1beta/v0.2.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-servicenetworking_v1beta
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Service Networking API V1beta
|