google-apis-networkconnectivity_v1 0.30.0 → 0.31.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 +4 -0
- data/lib/google/apis/networkconnectivity_v1/classes.rb +268 -4
- data/lib/google/apis/networkconnectivity_v1/gem_version.rb +2 -2
- data/lib/google/apis/networkconnectivity_v1/representations.rb +104 -0
- data/lib/google/apis/networkconnectivity_v1/service.rb +162 -0
- 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: ae5ccd070d0d4d79f94c127ceeacd444f4003de49a91ad1eede2666127ed2f0e
|
4
|
+
data.tar.gz: 12a8db75ff52d2e7e96a30dbd164b731473c95933b6ecb0afd201a4819e2fcf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18b8022d77a5291664173b1f6a9d4984e80b38760a28cd72039eefbf56b3cf21b81e44bb240cc32d14707d353cee68625d3f8de767aff64e0e071d0671e5ac76
|
7
|
+
data.tar.gz: 9c4278d0d8b6155f16bb3b1440000671aae6598fe3ad08d5298de84abb7e20b2a39dd3ea087607cabbec8094aeee3519be5977884450eb9a97c6e0dd1c97a044
|
data/CHANGELOG.md
CHANGED
@@ -410,6 +410,47 @@ module Google
|
|
410
410
|
end
|
411
411
|
end
|
412
412
|
|
413
|
+
# Filter matches L4 traffic.
|
414
|
+
class Filter
|
415
|
+
include Google::Apis::Core::Hashable
|
416
|
+
|
417
|
+
# Optional. The destination IP range of outgoing packets that this policy based
|
418
|
+
# route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
|
419
|
+
# Corresponds to the JSON property `destRange`
|
420
|
+
# @return [String]
|
421
|
+
attr_accessor :dest_range
|
422
|
+
|
423
|
+
# Optional. The IP protocol that this policy based route applies to. Valid
|
424
|
+
# values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
|
425
|
+
# Corresponds to the JSON property `ipProtocol`
|
426
|
+
# @return [String]
|
427
|
+
attr_accessor :ip_protocol
|
428
|
+
|
429
|
+
# Required. Internet protocol versions this policy based route applies to. For
|
430
|
+
# this version, only IPV4 is supported.
|
431
|
+
# Corresponds to the JSON property `protocolVersion`
|
432
|
+
# @return [String]
|
433
|
+
attr_accessor :protocol_version
|
434
|
+
|
435
|
+
# Optional. The source IP range of outgoing packets that this policy based route
|
436
|
+
# applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
|
437
|
+
# Corresponds to the JSON property `srcRange`
|
438
|
+
# @return [String]
|
439
|
+
attr_accessor :src_range
|
440
|
+
|
441
|
+
def initialize(**args)
|
442
|
+
update!(**args)
|
443
|
+
end
|
444
|
+
|
445
|
+
# Update properties of this object
|
446
|
+
def update!(**args)
|
447
|
+
@dest_range = args[:dest_range] if args.key?(:dest_range)
|
448
|
+
@ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
|
449
|
+
@protocol_version = args[:protocol_version] if args.key?(:protocol_version)
|
450
|
+
@src_range = args[:src_range] if args.key?(:src_range)
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
413
454
|
# The request message for Operations.CancelOperation.
|
414
455
|
class GoogleLongrunningCancelOperationRequest
|
415
456
|
include Google::Apis::Core::Hashable
|
@@ -600,9 +641,7 @@ module Google
|
|
600
641
|
end
|
601
642
|
end
|
602
643
|
|
603
|
-
# A group
|
604
|
-
# spokes has its own route table. For each group, you can also set different
|
605
|
-
# rules for whether spokes can be automatically attached to the hub.
|
644
|
+
# A group represents a subset of spokes attached to a hub.
|
606
645
|
class Group
|
607
646
|
include Google::Apis::Core::Hashable
|
608
647
|
|
@@ -754,6 +793,26 @@ module Google
|
|
754
793
|
end
|
755
794
|
end
|
756
795
|
|
796
|
+
# InterconnectAttachment to which this route applies to.
|
797
|
+
class InterconnectAttachment
|
798
|
+
include Google::Apis::Core::Hashable
|
799
|
+
|
800
|
+
# Optional. Cloud region to install this policy based route on interconnect
|
801
|
+
# attachment. Use `all` to install it on all interconnect attachments.
|
802
|
+
# Corresponds to the JSON property `region`
|
803
|
+
# @return [String]
|
804
|
+
attr_accessor :region
|
805
|
+
|
806
|
+
def initialize(**args)
|
807
|
+
update!(**args)
|
808
|
+
end
|
809
|
+
|
810
|
+
# Update properties of this object
|
811
|
+
def update!(**args)
|
812
|
+
@region = args[:region] if args.key?(:region)
|
813
|
+
end
|
814
|
+
end
|
815
|
+
|
757
816
|
# The internal range resource for IPAM operations within a VPC network. Used to
|
758
817
|
# represent a private address range along with behavioral characterstics of that
|
759
818
|
# range (its usage and peering behavior). Networking resources can link to this
|
@@ -1163,6 +1222,38 @@ module Google
|
|
1163
1222
|
end
|
1164
1223
|
end
|
1165
1224
|
|
1225
|
+
# Response for PolicyBasedRouting.ListPolicyBasedRoutes method.
|
1226
|
+
class ListPolicyBasedRoutesResponse
|
1227
|
+
include Google::Apis::Core::Hashable
|
1228
|
+
|
1229
|
+
# The next pagination token in the List response. It should be used as
|
1230
|
+
# page_token for the following request. An empty value means no more result.
|
1231
|
+
# Corresponds to the JSON property `nextPageToken`
|
1232
|
+
# @return [String]
|
1233
|
+
attr_accessor :next_page_token
|
1234
|
+
|
1235
|
+
# Policy based routes to be returned.
|
1236
|
+
# Corresponds to the JSON property `policyBasedRoutes`
|
1237
|
+
# @return [Array<Google::Apis::NetworkconnectivityV1::PolicyBasedRoute>]
|
1238
|
+
attr_accessor :policy_based_routes
|
1239
|
+
|
1240
|
+
# Locations that could not be reached.
|
1241
|
+
# Corresponds to the JSON property `unreachable`
|
1242
|
+
# @return [Array<String>]
|
1243
|
+
attr_accessor :unreachable
|
1244
|
+
|
1245
|
+
def initialize(**args)
|
1246
|
+
update!(**args)
|
1247
|
+
end
|
1248
|
+
|
1249
|
+
# Update properties of this object
|
1250
|
+
def update!(**args)
|
1251
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1252
|
+
@policy_based_routes = args[:policy_based_routes] if args.key?(:policy_based_routes)
|
1253
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1254
|
+
end
|
1255
|
+
end
|
1256
|
+
|
1166
1257
|
# Response for HubService.ListRouteTables method.
|
1167
1258
|
class ListRouteTablesResponse
|
1168
1259
|
include Google::Apis::Core::Hashable
|
@@ -1629,6 +1720,124 @@ module Google
|
|
1629
1720
|
end
|
1630
1721
|
end
|
1631
1722
|
|
1723
|
+
# Policy Based Routes (PBR) are more powerful routes that allows GCP customers
|
1724
|
+
# to route their L4 network traffic based on not just destination IP, but also
|
1725
|
+
# source IP, protocol and more. A PBR always take precedence when it conflicts
|
1726
|
+
# with other types of routes. Next id: 22
|
1727
|
+
class PolicyBasedRoute
|
1728
|
+
include Google::Apis::Core::Hashable
|
1729
|
+
|
1730
|
+
# Output only. Time when the PolicyBasedRoute was created.
|
1731
|
+
# Corresponds to the JSON property `createTime`
|
1732
|
+
# @return [String]
|
1733
|
+
attr_accessor :create_time
|
1734
|
+
|
1735
|
+
# Optional. An optional description of this resource. Provide this field when
|
1736
|
+
# you create the resource.
|
1737
|
+
# Corresponds to the JSON property `description`
|
1738
|
+
# @return [String]
|
1739
|
+
attr_accessor :description
|
1740
|
+
|
1741
|
+
# Filter matches L4 traffic.
|
1742
|
+
# Corresponds to the JSON property `filter`
|
1743
|
+
# @return [Google::Apis::NetworkconnectivityV1::Filter]
|
1744
|
+
attr_accessor :filter
|
1745
|
+
|
1746
|
+
# InterconnectAttachment to which this route applies to.
|
1747
|
+
# Corresponds to the JSON property `interconnectAttachment`
|
1748
|
+
# @return [Google::Apis::NetworkconnectivityV1::InterconnectAttachment]
|
1749
|
+
attr_accessor :interconnect_attachment
|
1750
|
+
|
1751
|
+
# Output only. Type of this resource. Always networkconnectivity#
|
1752
|
+
# policyBasedRoute for Policy Based Route resources.
|
1753
|
+
# Corresponds to the JSON property `kind`
|
1754
|
+
# @return [String]
|
1755
|
+
attr_accessor :kind
|
1756
|
+
|
1757
|
+
# User-defined labels.
|
1758
|
+
# Corresponds to the JSON property `labels`
|
1759
|
+
# @return [Hash<String,String>]
|
1760
|
+
attr_accessor :labels
|
1761
|
+
|
1762
|
+
# Immutable. A unique name of the resource in the form of `projects/`
|
1763
|
+
# project_number`/locations/global/PolicyBasedRoutes/`policy_based_route_id``
|
1764
|
+
# Corresponds to the JSON property `name`
|
1765
|
+
# @return [String]
|
1766
|
+
attr_accessor :name
|
1767
|
+
|
1768
|
+
# Required. Fully-qualified URL of the network that this route applies to. e.g.
|
1769
|
+
# projects/my-project/global/networks/my-network.
|
1770
|
+
# Corresponds to the JSON property `network`
|
1771
|
+
# @return [String]
|
1772
|
+
attr_accessor :network
|
1773
|
+
|
1774
|
+
# Optional. The IP of a global access enabled L4 ILB that should be the next hop
|
1775
|
+
# to handle matching packets. For this version, only next_hop_ilb_ip is
|
1776
|
+
# supported.
|
1777
|
+
# Corresponds to the JSON property `nextHopIlbIp`
|
1778
|
+
# @return [String]
|
1779
|
+
attr_accessor :next_hop_ilb_ip
|
1780
|
+
|
1781
|
+
# Optional. Other routes that will be referenced to determine the next hop of
|
1782
|
+
# the packet.
|
1783
|
+
# Corresponds to the JSON property `nextHopOtherRoutes`
|
1784
|
+
# @return [String]
|
1785
|
+
attr_accessor :next_hop_other_routes
|
1786
|
+
|
1787
|
+
# Optional. The priority of this policy based route. Priority is used to break
|
1788
|
+
# ties in cases where there are more than one matching policy based routes found.
|
1789
|
+
# In cases where multiple policy based routes are matched, the one with the
|
1790
|
+
# lowest-numbered priority value wins. The default value is 1000. The priority
|
1791
|
+
# value must be from 1 to 65535, inclusive.
|
1792
|
+
# Corresponds to the JSON property `priority`
|
1793
|
+
# @return [Fixnum]
|
1794
|
+
attr_accessor :priority
|
1795
|
+
|
1796
|
+
# Output only. Server-defined fully-qualified URL for this resource.
|
1797
|
+
# Corresponds to the JSON property `selfLink`
|
1798
|
+
# @return [String]
|
1799
|
+
attr_accessor :self_link
|
1800
|
+
|
1801
|
+
# Output only. Time when the PolicyBasedRoute was updated.
|
1802
|
+
# Corresponds to the JSON property `updateTime`
|
1803
|
+
# @return [String]
|
1804
|
+
attr_accessor :update_time
|
1805
|
+
|
1806
|
+
# VM instances to which this policy based route applies to.
|
1807
|
+
# Corresponds to the JSON property `virtualMachine`
|
1808
|
+
# @return [Google::Apis::NetworkconnectivityV1::VirtualMachine]
|
1809
|
+
attr_accessor :virtual_machine
|
1810
|
+
|
1811
|
+
# Output only. If potential misconfigurations are detected for this route, this
|
1812
|
+
# field will be populated with warning messages.
|
1813
|
+
# Corresponds to the JSON property `warnings`
|
1814
|
+
# @return [Array<Google::Apis::NetworkconnectivityV1::Warnings>]
|
1815
|
+
attr_accessor :warnings
|
1816
|
+
|
1817
|
+
def initialize(**args)
|
1818
|
+
update!(**args)
|
1819
|
+
end
|
1820
|
+
|
1821
|
+
# Update properties of this object
|
1822
|
+
def update!(**args)
|
1823
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1824
|
+
@description = args[:description] if args.key?(:description)
|
1825
|
+
@filter = args[:filter] if args.key?(:filter)
|
1826
|
+
@interconnect_attachment = args[:interconnect_attachment] if args.key?(:interconnect_attachment)
|
1827
|
+
@kind = args[:kind] if args.key?(:kind)
|
1828
|
+
@labels = args[:labels] if args.key?(:labels)
|
1829
|
+
@name = args[:name] if args.key?(:name)
|
1830
|
+
@network = args[:network] if args.key?(:network)
|
1831
|
+
@next_hop_ilb_ip = args[:next_hop_ilb_ip] if args.key?(:next_hop_ilb_ip)
|
1832
|
+
@next_hop_other_routes = args[:next_hop_other_routes] if args.key?(:next_hop_other_routes)
|
1833
|
+
@priority = args[:priority] if args.key?(:priority)
|
1834
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
1835
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1836
|
+
@virtual_machine = args[:virtual_machine] if args.key?(:virtual_machine)
|
1837
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
1838
|
+
end
|
1839
|
+
end
|
1840
|
+
|
1632
1841
|
# The PSC configurations on producer side.
|
1633
1842
|
class ProducerPscConfig
|
1634
1843
|
include Google::Apis::Core::Hashable
|
@@ -2397,7 +2606,7 @@ module Google
|
|
2397
2606
|
# @return [String]
|
2398
2607
|
attr_accessor :description
|
2399
2608
|
|
2400
|
-
# The name of the group that this spoke is associated with.
|
2609
|
+
# Optional. The name of the group that this spoke is associated with.
|
2401
2610
|
# Corresponds to the JSON property `group`
|
2402
2611
|
# @return [String]
|
2403
2612
|
attr_accessor :group
|
@@ -2689,6 +2898,61 @@ module Google
|
|
2689
2898
|
@permissions = args[:permissions] if args.key?(:permissions)
|
2690
2899
|
end
|
2691
2900
|
end
|
2901
|
+
|
2902
|
+
# VM instances to which this policy based route applies to.
|
2903
|
+
class VirtualMachine
|
2904
|
+
include Google::Apis::Core::Hashable
|
2905
|
+
|
2906
|
+
# Optional. A list of VM instance tags to which this policy based route applies
|
2907
|
+
# to. VM instances that have ANY of tags specified here will install this PBR.
|
2908
|
+
# Corresponds to the JSON property `tags`
|
2909
|
+
# @return [Array<String>]
|
2910
|
+
attr_accessor :tags
|
2911
|
+
|
2912
|
+
def initialize(**args)
|
2913
|
+
update!(**args)
|
2914
|
+
end
|
2915
|
+
|
2916
|
+
# Update properties of this object
|
2917
|
+
def update!(**args)
|
2918
|
+
@tags = args[:tags] if args.key?(:tags)
|
2919
|
+
end
|
2920
|
+
end
|
2921
|
+
|
2922
|
+
# Informational warning message.
|
2923
|
+
class Warnings
|
2924
|
+
include Google::Apis::Core::Hashable
|
2925
|
+
|
2926
|
+
# Output only. A warning code, if applicable.
|
2927
|
+
# Corresponds to the JSON property `code`
|
2928
|
+
# @return [String]
|
2929
|
+
attr_accessor :code
|
2930
|
+
|
2931
|
+
# Output only. Metadata about this warning in key: value format. The key should
|
2932
|
+
# provides more detail on the warning being returned. For example, for warnings
|
2933
|
+
# where there are no results in a list request for a particular zone, this key
|
2934
|
+
# might be scope and the key value might be the zone name. Other examples might
|
2935
|
+
# be a key indicating a deprecated resource and a suggested replacement.
|
2936
|
+
# Corresponds to the JSON property `data`
|
2937
|
+
# @return [Hash<String,String>]
|
2938
|
+
attr_accessor :data
|
2939
|
+
|
2940
|
+
# Output only. A human-readable description of the warning code.
|
2941
|
+
# Corresponds to the JSON property `warningMessage`
|
2942
|
+
# @return [String]
|
2943
|
+
attr_accessor :warning_message
|
2944
|
+
|
2945
|
+
def initialize(**args)
|
2946
|
+
update!(**args)
|
2947
|
+
end
|
2948
|
+
|
2949
|
+
# Update properties of this object
|
2950
|
+
def update!(**args)
|
2951
|
+
@code = args[:code] if args.key?(:code)
|
2952
|
+
@data = args[:data] if args.key?(:data)
|
2953
|
+
@warning_message = args[:warning_message] if args.key?(:warning_message)
|
2954
|
+
end
|
2955
|
+
end
|
2692
2956
|
end
|
2693
2957
|
end
|
2694
2958
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NetworkconnectivityV1
|
18
18
|
# Version of the google-apis-networkconnectivity_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.31.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 = "20230816"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -70,6 +70,12 @@ module Google
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
+
class Filter
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
73
79
|
class GoogleLongrunningCancelOperationRequest
|
74
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
81
|
|
@@ -112,6 +118,12 @@ module Google
|
|
112
118
|
include Google::Apis::Core::JsonObjectSupport
|
113
119
|
end
|
114
120
|
|
121
|
+
class InterconnectAttachment
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
115
127
|
class InternalRange
|
116
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
129
|
|
@@ -172,6 +184,12 @@ module Google
|
|
172
184
|
include Google::Apis::Core::JsonObjectSupport
|
173
185
|
end
|
174
186
|
|
187
|
+
class ListPolicyBasedRoutesResponse
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
175
193
|
class ListRouteTablesResponse
|
176
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
195
|
|
@@ -244,6 +262,12 @@ module Google
|
|
244
262
|
include Google::Apis::Core::JsonObjectSupport
|
245
263
|
end
|
246
264
|
|
265
|
+
class PolicyBasedRoute
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
247
271
|
class ProducerPscConfig
|
248
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
273
|
|
@@ -370,6 +394,18 @@ module Google
|
|
370
394
|
include Google::Apis::Core::JsonObjectSupport
|
371
395
|
end
|
372
396
|
|
397
|
+
class VirtualMachine
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
403
|
+
class Warnings
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
|
+
|
406
|
+
include Google::Apis::Core::JsonObjectSupport
|
407
|
+
end
|
408
|
+
|
373
409
|
class AcceptSpokeRequest
|
374
410
|
# @private
|
375
411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -449,6 +485,16 @@ module Google
|
|
449
485
|
end
|
450
486
|
end
|
451
487
|
|
488
|
+
class Filter
|
489
|
+
# @private
|
490
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
491
|
+
property :dest_range, as: 'destRange'
|
492
|
+
property :ip_protocol, as: 'ipProtocol'
|
493
|
+
property :protocol_version, as: 'protocolVersion'
|
494
|
+
property :src_range, as: 'srcRange'
|
495
|
+
end
|
496
|
+
end
|
497
|
+
|
452
498
|
class GoogleLongrunningCancelOperationRequest
|
453
499
|
# @private
|
454
500
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -525,6 +571,13 @@ module Google
|
|
525
571
|
end
|
526
572
|
end
|
527
573
|
|
574
|
+
class InterconnectAttachment
|
575
|
+
# @private
|
576
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
577
|
+
property :region, as: 'region'
|
578
|
+
end
|
579
|
+
end
|
580
|
+
|
528
581
|
class InternalRange
|
529
582
|
# @private
|
530
583
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -629,6 +682,16 @@ module Google
|
|
629
682
|
end
|
630
683
|
end
|
631
684
|
|
685
|
+
class ListPolicyBasedRoutesResponse
|
686
|
+
# @private
|
687
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
688
|
+
property :next_page_token, as: 'nextPageToken'
|
689
|
+
collection :policy_based_routes, as: 'policyBasedRoutes', class: Google::Apis::NetworkconnectivityV1::PolicyBasedRoute, decorator: Google::Apis::NetworkconnectivityV1::PolicyBasedRoute::Representation
|
690
|
+
|
691
|
+
collection :unreachable, as: 'unreachable'
|
692
|
+
end
|
693
|
+
end
|
694
|
+
|
632
695
|
class ListRouteTablesResponse
|
633
696
|
# @private
|
634
697
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -749,6 +812,31 @@ module Google
|
|
749
812
|
end
|
750
813
|
end
|
751
814
|
|
815
|
+
class PolicyBasedRoute
|
816
|
+
# @private
|
817
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
818
|
+
property :create_time, as: 'createTime'
|
819
|
+
property :description, as: 'description'
|
820
|
+
property :filter, as: 'filter', class: Google::Apis::NetworkconnectivityV1::Filter, decorator: Google::Apis::NetworkconnectivityV1::Filter::Representation
|
821
|
+
|
822
|
+
property :interconnect_attachment, as: 'interconnectAttachment', class: Google::Apis::NetworkconnectivityV1::InterconnectAttachment, decorator: Google::Apis::NetworkconnectivityV1::InterconnectAttachment::Representation
|
823
|
+
|
824
|
+
property :kind, as: 'kind'
|
825
|
+
hash :labels, as: 'labels'
|
826
|
+
property :name, as: 'name'
|
827
|
+
property :network, as: 'network'
|
828
|
+
property :next_hop_ilb_ip, as: 'nextHopIlbIp'
|
829
|
+
property :next_hop_other_routes, as: 'nextHopOtherRoutes'
|
830
|
+
property :priority, as: 'priority'
|
831
|
+
property :self_link, as: 'selfLink'
|
832
|
+
property :update_time, as: 'updateTime'
|
833
|
+
property :virtual_machine, as: 'virtualMachine', class: Google::Apis::NetworkconnectivityV1::VirtualMachine, decorator: Google::Apis::NetworkconnectivityV1::VirtualMachine::Representation
|
834
|
+
|
835
|
+
collection :warnings, as: 'warnings', class: Google::Apis::NetworkconnectivityV1::Warnings, decorator: Google::Apis::NetworkconnectivityV1::Warnings::Representation
|
836
|
+
|
837
|
+
end
|
838
|
+
end
|
839
|
+
|
752
840
|
class ProducerPscConfig
|
753
841
|
# @private
|
754
842
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -999,6 +1087,22 @@ module Google
|
|
999
1087
|
collection :permissions, as: 'permissions'
|
1000
1088
|
end
|
1001
1089
|
end
|
1090
|
+
|
1091
|
+
class VirtualMachine
|
1092
|
+
# @private
|
1093
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1094
|
+
collection :tags, as: 'tags'
|
1095
|
+
end
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
class Warnings
|
1099
|
+
# @private
|
1100
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1101
|
+
property :code, as: 'code'
|
1102
|
+
hash :data, as: 'data'
|
1103
|
+
property :warning_message, as: 'warningMessage'
|
1104
|
+
end
|
1105
|
+
end
|
1002
1106
|
end
|
1003
1107
|
end
|
1004
1108
|
end
|
@@ -854,6 +854,126 @@ module Google
|
|
854
854
|
execute_or_queue_command(command, &block)
|
855
855
|
end
|
856
856
|
|
857
|
+
# Creates a new PolicyBasedRoute in a given project and location.
|
858
|
+
# @param [String] parent
|
859
|
+
# Required. The parent resource's name of the PolicyBasedRoute.
|
860
|
+
# @param [Google::Apis::NetworkconnectivityV1::PolicyBasedRoute] policy_based_route_object
|
861
|
+
# @param [String] policy_based_route_id
|
862
|
+
# Required. Unique id for the Policy Based Route to create.
|
863
|
+
# @param [String] request_id
|
864
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
865
|
+
# request ID so that if you must retry your request, the server will know to
|
866
|
+
# ignore the request if it has already been completed. The server will guarantee
|
867
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
868
|
+
# situation where you make an initial request and the request times out. If you
|
869
|
+
# make the request again with the same request ID, the server can check if
|
870
|
+
# original operation with the same request ID was received, and if so, will
|
871
|
+
# ignore the second request. This prevents clients from accidentally creating
|
872
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
873
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
874
|
+
# @param [String] fields
|
875
|
+
# Selector specifying which fields to include in a partial response.
|
876
|
+
# @param [String] quota_user
|
877
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
878
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
879
|
+
# @param [Google::Apis::RequestOptions] options
|
880
|
+
# Request-specific options
|
881
|
+
#
|
882
|
+
# @yield [result, err] Result & error if block supplied
|
883
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
|
884
|
+
# @yieldparam err [StandardError] error object if request failed
|
885
|
+
#
|
886
|
+
# @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
|
887
|
+
#
|
888
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
889
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
890
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
891
|
+
def create_project_location_global_policy_based_route(parent, policy_based_route_object = nil, policy_based_route_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
892
|
+
command = make_simple_command(:post, 'v1/{+parent}/policyBasedRoutes', options)
|
893
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1::PolicyBasedRoute::Representation
|
894
|
+
command.request_object = policy_based_route_object
|
895
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
896
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
897
|
+
command.params['parent'] = parent unless parent.nil?
|
898
|
+
command.query['policyBasedRouteId'] = policy_based_route_id unless policy_based_route_id.nil?
|
899
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
900
|
+
command.query['fields'] = fields unless fields.nil?
|
901
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
902
|
+
execute_or_queue_command(command, &block)
|
903
|
+
end
|
904
|
+
|
905
|
+
# Deletes a single PolicyBasedRoute.
|
906
|
+
# @param [String] name
|
907
|
+
# Required. Name of the PolicyBasedRoute resource to delete.
|
908
|
+
# @param [String] request_id
|
909
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
910
|
+
# request ID so that if you must retry your request, the server will know to
|
911
|
+
# ignore the request if it has already been completed. The server will guarantee
|
912
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
913
|
+
# situation where you make an initial request and the request times out. If you
|
914
|
+
# make the request again with the same request ID, the server can check if
|
915
|
+
# original operation with the same request ID was received, and if so, will
|
916
|
+
# ignore the second request. This prevents clients from accidentally creating
|
917
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
918
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
919
|
+
# @param [String] fields
|
920
|
+
# Selector specifying which fields to include in a partial response.
|
921
|
+
# @param [String] quota_user
|
922
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
923
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
924
|
+
# @param [Google::Apis::RequestOptions] options
|
925
|
+
# Request-specific options
|
926
|
+
#
|
927
|
+
# @yield [result, err] Result & error if block supplied
|
928
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
|
929
|
+
# @yieldparam err [StandardError] error object if request failed
|
930
|
+
#
|
931
|
+
# @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
|
932
|
+
#
|
933
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
934
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
935
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
936
|
+
def delete_project_location_global_policy_based_route(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
937
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
938
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
939
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
940
|
+
command.params['name'] = name unless name.nil?
|
941
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
942
|
+
command.query['fields'] = fields unless fields.nil?
|
943
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
944
|
+
execute_or_queue_command(command, &block)
|
945
|
+
end
|
946
|
+
|
947
|
+
# Gets details of a single PolicyBasedRoute.
|
948
|
+
# @param [String] name
|
949
|
+
# Required. Name of the PolicyBasedRoute resource to get.
|
950
|
+
# @param [String] fields
|
951
|
+
# Selector specifying which fields to include in a partial response.
|
952
|
+
# @param [String] quota_user
|
953
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
954
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
955
|
+
# @param [Google::Apis::RequestOptions] options
|
956
|
+
# Request-specific options
|
957
|
+
#
|
958
|
+
# @yield [result, err] Result & error if block supplied
|
959
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::PolicyBasedRoute] parsed result object
|
960
|
+
# @yieldparam err [StandardError] error object if request failed
|
961
|
+
#
|
962
|
+
# @return [Google::Apis::NetworkconnectivityV1::PolicyBasedRoute]
|
963
|
+
#
|
964
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
965
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
966
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
967
|
+
def get_project_location_global_policy_based_route(name, fields: nil, quota_user: nil, options: nil, &block)
|
968
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
969
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::PolicyBasedRoute::Representation
|
970
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::PolicyBasedRoute
|
971
|
+
command.params['name'] = name unless name.nil?
|
972
|
+
command.query['fields'] = fields unless fields.nil?
|
973
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
974
|
+
execute_or_queue_command(command, &block)
|
975
|
+
end
|
976
|
+
|
857
977
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
858
978
|
# resource exists and does not have a policy set.
|
859
979
|
# @param [String] resource
|
@@ -899,6 +1019,48 @@ module Google
|
|
899
1019
|
execute_or_queue_command(command, &block)
|
900
1020
|
end
|
901
1021
|
|
1022
|
+
# Lists PolicyBasedRoutes in a given project and location.
|
1023
|
+
# @param [String] parent
|
1024
|
+
# Required. The parent resource's name.
|
1025
|
+
# @param [String] filter
|
1026
|
+
# A filter expression that filters the results listed in the response.
|
1027
|
+
# @param [String] order_by
|
1028
|
+
# Sort the results by a certain order.
|
1029
|
+
# @param [Fixnum] page_size
|
1030
|
+
# The maximum number of results per page that should be returned.
|
1031
|
+
# @param [String] page_token
|
1032
|
+
# The page token.
|
1033
|
+
# @param [String] fields
|
1034
|
+
# Selector specifying which fields to include in a partial response.
|
1035
|
+
# @param [String] quota_user
|
1036
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1037
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1038
|
+
# @param [Google::Apis::RequestOptions] options
|
1039
|
+
# Request-specific options
|
1040
|
+
#
|
1041
|
+
# @yield [result, err] Result & error if block supplied
|
1042
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::ListPolicyBasedRoutesResponse] parsed result object
|
1043
|
+
# @yieldparam err [StandardError] error object if request failed
|
1044
|
+
#
|
1045
|
+
# @return [Google::Apis::NetworkconnectivityV1::ListPolicyBasedRoutesResponse]
|
1046
|
+
#
|
1047
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1048
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1049
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1050
|
+
def list_project_location_global_policy_based_routes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1051
|
+
command = make_simple_command(:get, 'v1/{+parent}/policyBasedRoutes', options)
|
1052
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::ListPolicyBasedRoutesResponse::Representation
|
1053
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::ListPolicyBasedRoutesResponse
|
1054
|
+
command.params['parent'] = parent unless parent.nil?
|
1055
|
+
command.query['filter'] = filter unless filter.nil?
|
1056
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1057
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1058
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1059
|
+
command.query['fields'] = fields unless fields.nil?
|
1060
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1061
|
+
execute_or_queue_command(command, &block)
|
1062
|
+
end
|
1063
|
+
|
902
1064
|
# Sets the access control policy on the specified resource. Replaces any
|
903
1065
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
904
1066
|
# PERMISSION_DENIED` errors.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-networkconnectivity_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.31.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-
|
11
|
+
date: 2023-08-27 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-networkconnectivity_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.31.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkconnectivity_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 Network Connectivity API V1
|