google-apis-networkconnectivity_v1 0.30.0 → 0.32.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 +8 -0
- data/lib/google/apis/networkconnectivity_v1/classes.rb +354 -14
- data/lib/google/apis/networkconnectivity_v1/gem_version.rb +2 -2
- data/lib/google/apis/networkconnectivity_v1/representations.rb +133 -0
- data/lib/google/apis/networkconnectivity_v1/service.rb +231 -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: 240547e4e42cc7cc6f2fb0837e6425cb38339abd35f4721499ab7e64baa44560
|
4
|
+
data.tar.gz: 91204724225f8183be688d695b2db83efda549abdf8a9f04ba5d3a76c44bb59a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff4cbc0053ad11effbdab9db8a23803b3abf02a566610aab2a8fadfc99e6f804fea3da363a3c1c9f7ce952bf2094c3f9308753d0427b4809a35b0f35e6afd5c1
|
7
|
+
data.tar.gz: 194b5acf5a288f164533fe85634403916e4191cb25baa8b84bb05c616c6d41a146e11e23c0e848131b66e757f0e2f208c9b455d02f01a54937f3bb9e483a4065
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-networkconnectivity_v1
|
2
2
|
|
3
|
+
### v0.32.0 (2023-09-10)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230831
|
6
|
+
|
7
|
+
### v0.31.0 (2023-08-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230816
|
10
|
+
|
3
11
|
### v0.30.0 (2023-08-13)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230804
|
@@ -22,6 +22,41 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module NetworkconnectivityV1
|
24
24
|
|
25
|
+
# The request for HubService.AcceptHubSpoke.
|
26
|
+
class AcceptHubSpokeRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Optional. A request ID to identify requests. Specify a unique request ID so
|
30
|
+
# that if you must retry your request, the server will know to ignore the
|
31
|
+
# request if it has already been completed. The server guarantees that a request
|
32
|
+
# doesn't result in creation of duplicate commitments for at least 60 minutes.
|
33
|
+
# For example, consider a situation where you make an initial request and the
|
34
|
+
# request times out. If you make the request again with the same request ID, the
|
35
|
+
# server can check to see whether the original operation was received. If it was,
|
36
|
+
# the server ignores the second request. This behavior prevents clients from
|
37
|
+
# mistakenly creating duplicate commitments. The request ID must be a valid UUID,
|
38
|
+
# with the exception that zero UUID is not supported (00000000-0000-0000-0000-
|
39
|
+
# 000000000000).
|
40
|
+
# Corresponds to the JSON property `requestId`
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :request_id
|
43
|
+
|
44
|
+
# Required. The URI of the spoke to accept into the hub.
|
45
|
+
# Corresponds to the JSON property `spokeUri`
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :spoke_uri
|
48
|
+
|
49
|
+
def initialize(**args)
|
50
|
+
update!(**args)
|
51
|
+
end
|
52
|
+
|
53
|
+
# Update properties of this object
|
54
|
+
def update!(**args)
|
55
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
56
|
+
@spoke_uri = args[:spoke_uri] if args.key?(:spoke_uri)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
25
60
|
# The request for HubService.AcceptSpoke.
|
26
61
|
class AcceptSpokeRequest
|
27
62
|
include Google::Apis::Core::Hashable
|
@@ -410,6 +445,47 @@ module Google
|
|
410
445
|
end
|
411
446
|
end
|
412
447
|
|
448
|
+
# Filter matches L4 traffic.
|
449
|
+
class Filter
|
450
|
+
include Google::Apis::Core::Hashable
|
451
|
+
|
452
|
+
# Optional. The destination IP range of outgoing packets that this policy based
|
453
|
+
# route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
|
454
|
+
# Corresponds to the JSON property `destRange`
|
455
|
+
# @return [String]
|
456
|
+
attr_accessor :dest_range
|
457
|
+
|
458
|
+
# Optional. The IP protocol that this policy based route applies to. Valid
|
459
|
+
# values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
|
460
|
+
# Corresponds to the JSON property `ipProtocol`
|
461
|
+
# @return [String]
|
462
|
+
attr_accessor :ip_protocol
|
463
|
+
|
464
|
+
# Required. Internet protocol versions this policy based route applies to. For
|
465
|
+
# this version, only IPV4 is supported.
|
466
|
+
# Corresponds to the JSON property `protocolVersion`
|
467
|
+
# @return [String]
|
468
|
+
attr_accessor :protocol_version
|
469
|
+
|
470
|
+
# Optional. The source IP range of outgoing packets that this policy based route
|
471
|
+
# applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
|
472
|
+
# Corresponds to the JSON property `srcRange`
|
473
|
+
# @return [String]
|
474
|
+
attr_accessor :src_range
|
475
|
+
|
476
|
+
def initialize(**args)
|
477
|
+
update!(**args)
|
478
|
+
end
|
479
|
+
|
480
|
+
# Update properties of this object
|
481
|
+
def update!(**args)
|
482
|
+
@dest_range = args[:dest_range] if args.key?(:dest_range)
|
483
|
+
@ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
|
484
|
+
@protocol_version = args[:protocol_version] if args.key?(:protocol_version)
|
485
|
+
@src_range = args[:src_range] if args.key?(:src_range)
|
486
|
+
end
|
487
|
+
end
|
488
|
+
|
413
489
|
# The request message for Operations.CancelOperation.
|
414
490
|
class GoogleLongrunningCancelOperationRequest
|
415
491
|
include Google::Apis::Core::Hashable
|
@@ -600,9 +676,7 @@ module Google
|
|
600
676
|
end
|
601
677
|
end
|
602
678
|
|
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.
|
679
|
+
# A group represents a subset of spokes attached to a hub.
|
606
680
|
class Group
|
607
681
|
include Google::Apis::Core::Hashable
|
608
682
|
|
@@ -616,8 +690,8 @@ module Google
|
|
616
690
|
# @return [String]
|
617
691
|
attr_accessor :description
|
618
692
|
|
619
|
-
# Optional. Labels in key
|
620
|
-
# Requirements for labels](https://cloud.google.com/resource-manager/docs/
|
693
|
+
# Optional. Labels in key-value pair format. For more information about labels,
|
694
|
+
# see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
|
621
695
|
# creating-managing-labels#requirements).
|
622
696
|
# Corresponds to the JSON property `labels`
|
623
697
|
# @return [Hash<String,String>]
|
@@ -682,8 +756,8 @@ module Google
|
|
682
756
|
# @return [String]
|
683
757
|
attr_accessor :description
|
684
758
|
|
685
|
-
# Optional labels in key
|
686
|
-
# Requirements for labels](https://cloud.google.com/resource-manager/docs/
|
759
|
+
# Optional labels in key-value pair format. For more information about labels,
|
760
|
+
# see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
|
687
761
|
# creating-managing-labels#requirements).
|
688
762
|
# Corresponds to the JSON property `labels`
|
689
763
|
# @return [Hash<String,String>]
|
@@ -754,6 +828,26 @@ module Google
|
|
754
828
|
end
|
755
829
|
end
|
756
830
|
|
831
|
+
# InterconnectAttachment to which this route applies to.
|
832
|
+
class InterconnectAttachment
|
833
|
+
include Google::Apis::Core::Hashable
|
834
|
+
|
835
|
+
# Optional. Cloud region to install this policy based route on interconnect
|
836
|
+
# attachment. Use `all` to install it on all interconnect attachments.
|
837
|
+
# Corresponds to the JSON property `region`
|
838
|
+
# @return [String]
|
839
|
+
attr_accessor :region
|
840
|
+
|
841
|
+
def initialize(**args)
|
842
|
+
update!(**args)
|
843
|
+
end
|
844
|
+
|
845
|
+
# Update properties of this object
|
846
|
+
def update!(**args)
|
847
|
+
@region = args[:region] if args.key?(:region)
|
848
|
+
end
|
849
|
+
end
|
850
|
+
|
757
851
|
# The internal range resource for IPAM operations within a VPC network. Used to
|
758
852
|
# represent a private address range along with behavioral characterstics of that
|
759
853
|
# range (its usage and peering behavior). Networking resources can link to this
|
@@ -1163,6 +1257,38 @@ module Google
|
|
1163
1257
|
end
|
1164
1258
|
end
|
1165
1259
|
|
1260
|
+
# Response for PolicyBasedRouting.ListPolicyBasedRoutes method.
|
1261
|
+
class ListPolicyBasedRoutesResponse
|
1262
|
+
include Google::Apis::Core::Hashable
|
1263
|
+
|
1264
|
+
# The next pagination token in the List response. It should be used as
|
1265
|
+
# page_token for the following request. An empty value means no more result.
|
1266
|
+
# Corresponds to the JSON property `nextPageToken`
|
1267
|
+
# @return [String]
|
1268
|
+
attr_accessor :next_page_token
|
1269
|
+
|
1270
|
+
# Policy based routes to be returned.
|
1271
|
+
# Corresponds to the JSON property `policyBasedRoutes`
|
1272
|
+
# @return [Array<Google::Apis::NetworkconnectivityV1::PolicyBasedRoute>]
|
1273
|
+
attr_accessor :policy_based_routes
|
1274
|
+
|
1275
|
+
# Locations that could not be reached.
|
1276
|
+
# Corresponds to the JSON property `unreachable`
|
1277
|
+
# @return [Array<String>]
|
1278
|
+
attr_accessor :unreachable
|
1279
|
+
|
1280
|
+
def initialize(**args)
|
1281
|
+
update!(**args)
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
# Update properties of this object
|
1285
|
+
def update!(**args)
|
1286
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1287
|
+
@policy_based_routes = args[:policy_based_routes] if args.key?(:policy_based_routes)
|
1288
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1289
|
+
end
|
1290
|
+
end
|
1291
|
+
|
1166
1292
|
# Response for HubService.ListRouteTables method.
|
1167
1293
|
class ListRouteTablesResponse
|
1168
1294
|
include Google::Apis::Core::Hashable
|
@@ -1629,6 +1755,124 @@ module Google
|
|
1629
1755
|
end
|
1630
1756
|
end
|
1631
1757
|
|
1758
|
+
# Policy Based Routes (PBR) are more powerful routes that allows GCP customers
|
1759
|
+
# to route their L4 network traffic based on not just destination IP, but also
|
1760
|
+
# source IP, protocol and more. A PBR always take precedence when it conflicts
|
1761
|
+
# with other types of routes. Next id: 22
|
1762
|
+
class PolicyBasedRoute
|
1763
|
+
include Google::Apis::Core::Hashable
|
1764
|
+
|
1765
|
+
# Output only. Time when the PolicyBasedRoute was created.
|
1766
|
+
# Corresponds to the JSON property `createTime`
|
1767
|
+
# @return [String]
|
1768
|
+
attr_accessor :create_time
|
1769
|
+
|
1770
|
+
# Optional. An optional description of this resource. Provide this field when
|
1771
|
+
# you create the resource.
|
1772
|
+
# Corresponds to the JSON property `description`
|
1773
|
+
# @return [String]
|
1774
|
+
attr_accessor :description
|
1775
|
+
|
1776
|
+
# Filter matches L4 traffic.
|
1777
|
+
# Corresponds to the JSON property `filter`
|
1778
|
+
# @return [Google::Apis::NetworkconnectivityV1::Filter]
|
1779
|
+
attr_accessor :filter
|
1780
|
+
|
1781
|
+
# InterconnectAttachment to which this route applies to.
|
1782
|
+
# Corresponds to the JSON property `interconnectAttachment`
|
1783
|
+
# @return [Google::Apis::NetworkconnectivityV1::InterconnectAttachment]
|
1784
|
+
attr_accessor :interconnect_attachment
|
1785
|
+
|
1786
|
+
# Output only. Type of this resource. Always networkconnectivity#
|
1787
|
+
# policyBasedRoute for Policy Based Route resources.
|
1788
|
+
# Corresponds to the JSON property `kind`
|
1789
|
+
# @return [String]
|
1790
|
+
attr_accessor :kind
|
1791
|
+
|
1792
|
+
# User-defined labels.
|
1793
|
+
# Corresponds to the JSON property `labels`
|
1794
|
+
# @return [Hash<String,String>]
|
1795
|
+
attr_accessor :labels
|
1796
|
+
|
1797
|
+
# Immutable. A unique name of the resource in the form of `projects/`
|
1798
|
+
# project_number`/locations/global/PolicyBasedRoutes/`policy_based_route_id``
|
1799
|
+
# Corresponds to the JSON property `name`
|
1800
|
+
# @return [String]
|
1801
|
+
attr_accessor :name
|
1802
|
+
|
1803
|
+
# Required. Fully-qualified URL of the network that this route applies to. e.g.
|
1804
|
+
# projects/my-project/global/networks/my-network.
|
1805
|
+
# Corresponds to the JSON property `network`
|
1806
|
+
# @return [String]
|
1807
|
+
attr_accessor :network
|
1808
|
+
|
1809
|
+
# Optional. The IP of a global access enabled L4 ILB that should be the next hop
|
1810
|
+
# to handle matching packets. For this version, only next_hop_ilb_ip is
|
1811
|
+
# supported.
|
1812
|
+
# Corresponds to the JSON property `nextHopIlbIp`
|
1813
|
+
# @return [String]
|
1814
|
+
attr_accessor :next_hop_ilb_ip
|
1815
|
+
|
1816
|
+
# Optional. Other routes that will be referenced to determine the next hop of
|
1817
|
+
# the packet.
|
1818
|
+
# Corresponds to the JSON property `nextHopOtherRoutes`
|
1819
|
+
# @return [String]
|
1820
|
+
attr_accessor :next_hop_other_routes
|
1821
|
+
|
1822
|
+
# Optional. The priority of this policy based route. Priority is used to break
|
1823
|
+
# ties in cases where there are more than one matching policy based routes found.
|
1824
|
+
# In cases where multiple policy based routes are matched, the one with the
|
1825
|
+
# lowest-numbered priority value wins. The default value is 1000. The priority
|
1826
|
+
# value must be from 1 to 65535, inclusive.
|
1827
|
+
# Corresponds to the JSON property `priority`
|
1828
|
+
# @return [Fixnum]
|
1829
|
+
attr_accessor :priority
|
1830
|
+
|
1831
|
+
# Output only. Server-defined fully-qualified URL for this resource.
|
1832
|
+
# Corresponds to the JSON property `selfLink`
|
1833
|
+
# @return [String]
|
1834
|
+
attr_accessor :self_link
|
1835
|
+
|
1836
|
+
# Output only. Time when the PolicyBasedRoute was updated.
|
1837
|
+
# Corresponds to the JSON property `updateTime`
|
1838
|
+
# @return [String]
|
1839
|
+
attr_accessor :update_time
|
1840
|
+
|
1841
|
+
# VM instances to which this policy based route applies to.
|
1842
|
+
# Corresponds to the JSON property `virtualMachine`
|
1843
|
+
# @return [Google::Apis::NetworkconnectivityV1::VirtualMachine]
|
1844
|
+
attr_accessor :virtual_machine
|
1845
|
+
|
1846
|
+
# Output only. If potential misconfigurations are detected for this route, this
|
1847
|
+
# field will be populated with warning messages.
|
1848
|
+
# Corresponds to the JSON property `warnings`
|
1849
|
+
# @return [Array<Google::Apis::NetworkconnectivityV1::Warnings>]
|
1850
|
+
attr_accessor :warnings
|
1851
|
+
|
1852
|
+
def initialize(**args)
|
1853
|
+
update!(**args)
|
1854
|
+
end
|
1855
|
+
|
1856
|
+
# Update properties of this object
|
1857
|
+
def update!(**args)
|
1858
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1859
|
+
@description = args[:description] if args.key?(:description)
|
1860
|
+
@filter = args[:filter] if args.key?(:filter)
|
1861
|
+
@interconnect_attachment = args[:interconnect_attachment] if args.key?(:interconnect_attachment)
|
1862
|
+
@kind = args[:kind] if args.key?(:kind)
|
1863
|
+
@labels = args[:labels] if args.key?(:labels)
|
1864
|
+
@name = args[:name] if args.key?(:name)
|
1865
|
+
@network = args[:network] if args.key?(:network)
|
1866
|
+
@next_hop_ilb_ip = args[:next_hop_ilb_ip] if args.key?(:next_hop_ilb_ip)
|
1867
|
+
@next_hop_other_routes = args[:next_hop_other_routes] if args.key?(:next_hop_other_routes)
|
1868
|
+
@priority = args[:priority] if args.key?(:priority)
|
1869
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
1870
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1871
|
+
@virtual_machine = args[:virtual_machine] if args.key?(:virtual_machine)
|
1872
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
1873
|
+
end
|
1874
|
+
end
|
1875
|
+
|
1632
1876
|
# The PSC configurations on producer side.
|
1633
1877
|
class ProducerPscConfig
|
1634
1878
|
include Google::Apis::Core::Hashable
|
@@ -1756,6 +2000,47 @@ module Google
|
|
1756
2000
|
end
|
1757
2001
|
end
|
1758
2002
|
|
2003
|
+
# The request for HubService.RejectHubSpoke.
|
2004
|
+
class RejectHubSpokeRequest
|
2005
|
+
include Google::Apis::Core::Hashable
|
2006
|
+
|
2007
|
+
# Optional. Additional information provided by the hub administrator.
|
2008
|
+
# Corresponds to the JSON property `details`
|
2009
|
+
# @return [String]
|
2010
|
+
attr_accessor :details
|
2011
|
+
|
2012
|
+
# Optional. A request ID to identify requests. Specify a unique request ID so
|
2013
|
+
# that if you must retry your request, the server will know to ignore the
|
2014
|
+
# request if it has already been completed. The server guarantees that a request
|
2015
|
+
# doesn't result in creation of duplicate commitments for at least 60 minutes.
|
2016
|
+
# For example, consider a situation where you make an initial request and the
|
2017
|
+
# request times out. If you make the request again with the same request ID, the
|
2018
|
+
# server can check to see whether the original operation was received. If it was,
|
2019
|
+
# the server ignores the second request. This behavior prevents clients from
|
2020
|
+
# mistakenly creating duplicate commitments. The request ID must be a valid UUID,
|
2021
|
+
# with the exception that zero UUID is not supported (00000000-0000-0000-0000-
|
2022
|
+
# 000000000000).
|
2023
|
+
# Corresponds to the JSON property `requestId`
|
2024
|
+
# @return [String]
|
2025
|
+
attr_accessor :request_id
|
2026
|
+
|
2027
|
+
# Required. The URI of the spoke to reject from the hub.
|
2028
|
+
# Corresponds to the JSON property `spokeUri`
|
2029
|
+
# @return [String]
|
2030
|
+
attr_accessor :spoke_uri
|
2031
|
+
|
2032
|
+
def initialize(**args)
|
2033
|
+
update!(**args)
|
2034
|
+
end
|
2035
|
+
|
2036
|
+
# Update properties of this object
|
2037
|
+
def update!(**args)
|
2038
|
+
@details = args[:details] if args.key?(:details)
|
2039
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
2040
|
+
@spoke_uri = args[:spoke_uri] if args.key?(:spoke_uri)
|
2041
|
+
end
|
2042
|
+
end
|
2043
|
+
|
1759
2044
|
# The request for HubService.RejectSpoke.
|
1760
2045
|
class RejectSpokeRequest
|
1761
2046
|
include Google::Apis::Core::Hashable
|
@@ -1812,8 +2097,8 @@ module Google
|
|
1812
2097
|
# @return [String]
|
1813
2098
|
attr_accessor :ip_cidr_range
|
1814
2099
|
|
1815
|
-
# Optional labels in key
|
1816
|
-
# Requirements for labels](https://cloud.google.com/resource-manager/docs/
|
2100
|
+
# Optional labels in key-value pair format. For more information about labels,
|
2101
|
+
# see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
|
1817
2102
|
# creating-managing-labels#requirements).
|
1818
2103
|
# Corresponds to the JSON property `labels`
|
1819
2104
|
# @return [Hash<String,String>]
|
@@ -1902,8 +2187,8 @@ module Google
|
|
1902
2187
|
# @return [String]
|
1903
2188
|
attr_accessor :description
|
1904
2189
|
|
1905
|
-
# Optional labels in key
|
1906
|
-
# Requirements for labels](https://cloud.google.com/resource-manager/docs/
|
2190
|
+
# Optional labels in key-value pair format. For more information about labels,
|
2191
|
+
# see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
|
1907
2192
|
# creating-managing-labels#requirements).
|
1908
2193
|
# Corresponds to the JSON property `labels`
|
1909
2194
|
# @return [Hash<String,String>]
|
@@ -2397,7 +2682,7 @@ module Google
|
|
2397
2682
|
# @return [String]
|
2398
2683
|
attr_accessor :description
|
2399
2684
|
|
2400
|
-
# The name of the group that this spoke is associated with.
|
2685
|
+
# Optional. The name of the group that this spoke is associated with.
|
2401
2686
|
# Corresponds to the JSON property `group`
|
2402
2687
|
# @return [String]
|
2403
2688
|
attr_accessor :group
|
@@ -2407,8 +2692,8 @@ module Google
|
|
2407
2692
|
# @return [String]
|
2408
2693
|
attr_accessor :hub
|
2409
2694
|
|
2410
|
-
# Optional labels in key
|
2411
|
-
# Requirements for labels](https://cloud.google.com/resource-manager/docs/
|
2695
|
+
# Optional labels in key-value pair format. For more information about labels,
|
2696
|
+
# see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
|
2412
2697
|
# creating-managing-labels#requirements).
|
2413
2698
|
# Corresponds to the JSON property `labels`
|
2414
2699
|
# @return [Hash<String,String>]
|
@@ -2689,6 +2974,61 @@ module Google
|
|
2689
2974
|
@permissions = args[:permissions] if args.key?(:permissions)
|
2690
2975
|
end
|
2691
2976
|
end
|
2977
|
+
|
2978
|
+
# VM instances to which this policy based route applies to.
|
2979
|
+
class VirtualMachine
|
2980
|
+
include Google::Apis::Core::Hashable
|
2981
|
+
|
2982
|
+
# Optional. A list of VM instance tags to which this policy based route applies
|
2983
|
+
# to. VM instances that have ANY of tags specified here will install this PBR.
|
2984
|
+
# Corresponds to the JSON property `tags`
|
2985
|
+
# @return [Array<String>]
|
2986
|
+
attr_accessor :tags
|
2987
|
+
|
2988
|
+
def initialize(**args)
|
2989
|
+
update!(**args)
|
2990
|
+
end
|
2991
|
+
|
2992
|
+
# Update properties of this object
|
2993
|
+
def update!(**args)
|
2994
|
+
@tags = args[:tags] if args.key?(:tags)
|
2995
|
+
end
|
2996
|
+
end
|
2997
|
+
|
2998
|
+
# Informational warning message.
|
2999
|
+
class Warnings
|
3000
|
+
include Google::Apis::Core::Hashable
|
3001
|
+
|
3002
|
+
# Output only. A warning code, if applicable.
|
3003
|
+
# Corresponds to the JSON property `code`
|
3004
|
+
# @return [String]
|
3005
|
+
attr_accessor :code
|
3006
|
+
|
3007
|
+
# Output only. Metadata about this warning in key: value format. The key should
|
3008
|
+
# provides more detail on the warning being returned. For example, for warnings
|
3009
|
+
# where there are no results in a list request for a particular zone, this key
|
3010
|
+
# might be scope and the key value might be the zone name. Other examples might
|
3011
|
+
# be a key indicating a deprecated resource and a suggested replacement.
|
3012
|
+
# Corresponds to the JSON property `data`
|
3013
|
+
# @return [Hash<String,String>]
|
3014
|
+
attr_accessor :data
|
3015
|
+
|
3016
|
+
# Output only. A human-readable description of the warning code.
|
3017
|
+
# Corresponds to the JSON property `warningMessage`
|
3018
|
+
# @return [String]
|
3019
|
+
attr_accessor :warning_message
|
3020
|
+
|
3021
|
+
def initialize(**args)
|
3022
|
+
update!(**args)
|
3023
|
+
end
|
3024
|
+
|
3025
|
+
# Update properties of this object
|
3026
|
+
def update!(**args)
|
3027
|
+
@code = args[:code] if args.key?(:code)
|
3028
|
+
@data = args[:data] if args.key?(:data)
|
3029
|
+
@warning_message = args[:warning_message] if args.key?(:warning_message)
|
3030
|
+
end
|
3031
|
+
end
|
2692
3032
|
end
|
2693
3033
|
end
|
2694
3034
|
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.32.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 = "20230831"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module NetworkconnectivityV1
|
24
24
|
|
25
|
+
class AcceptHubSpokeRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class AcceptSpokeRequest
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -70,6 +76,12 @@ module Google
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
71
77
|
end
|
72
78
|
|
79
|
+
class Filter
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
73
85
|
class GoogleLongrunningCancelOperationRequest
|
74
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
87
|
|
@@ -112,6 +124,12 @@ module Google
|
|
112
124
|
include Google::Apis::Core::JsonObjectSupport
|
113
125
|
end
|
114
126
|
|
127
|
+
class InterconnectAttachment
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
115
133
|
class InternalRange
|
116
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
135
|
|
@@ -172,6 +190,12 @@ module Google
|
|
172
190
|
include Google::Apis::Core::JsonObjectSupport
|
173
191
|
end
|
174
192
|
|
193
|
+
class ListPolicyBasedRoutesResponse
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
175
199
|
class ListRouteTablesResponse
|
176
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
201
|
|
@@ -244,6 +268,12 @@ module Google
|
|
244
268
|
include Google::Apis::Core::JsonObjectSupport
|
245
269
|
end
|
246
270
|
|
271
|
+
class PolicyBasedRoute
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
247
277
|
class ProducerPscConfig
|
248
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
279
|
|
@@ -262,6 +292,12 @@ module Google
|
|
262
292
|
include Google::Apis::Core::JsonObjectSupport
|
263
293
|
end
|
264
294
|
|
295
|
+
class RejectHubSpokeRequest
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
265
301
|
class RejectSpokeRequest
|
266
302
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
303
|
|
@@ -370,6 +406,26 @@ module Google
|
|
370
406
|
include Google::Apis::Core::JsonObjectSupport
|
371
407
|
end
|
372
408
|
|
409
|
+
class VirtualMachine
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
411
|
+
|
412
|
+
include Google::Apis::Core::JsonObjectSupport
|
413
|
+
end
|
414
|
+
|
415
|
+
class Warnings
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
+
|
418
|
+
include Google::Apis::Core::JsonObjectSupport
|
419
|
+
end
|
420
|
+
|
421
|
+
class AcceptHubSpokeRequest
|
422
|
+
# @private
|
423
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
424
|
+
property :request_id, as: 'requestId'
|
425
|
+
property :spoke_uri, as: 'spokeUri'
|
426
|
+
end
|
427
|
+
end
|
428
|
+
|
373
429
|
class AcceptSpokeRequest
|
374
430
|
# @private
|
375
431
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -449,6 +505,16 @@ module Google
|
|
449
505
|
end
|
450
506
|
end
|
451
507
|
|
508
|
+
class Filter
|
509
|
+
# @private
|
510
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
511
|
+
property :dest_range, as: 'destRange'
|
512
|
+
property :ip_protocol, as: 'ipProtocol'
|
513
|
+
property :protocol_version, as: 'protocolVersion'
|
514
|
+
property :src_range, as: 'srcRange'
|
515
|
+
end
|
516
|
+
end
|
517
|
+
|
452
518
|
class GoogleLongrunningCancelOperationRequest
|
453
519
|
# @private
|
454
520
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -525,6 +591,13 @@ module Google
|
|
525
591
|
end
|
526
592
|
end
|
527
593
|
|
594
|
+
class InterconnectAttachment
|
595
|
+
# @private
|
596
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
597
|
+
property :region, as: 'region'
|
598
|
+
end
|
599
|
+
end
|
600
|
+
|
528
601
|
class InternalRange
|
529
602
|
# @private
|
530
603
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -629,6 +702,16 @@ module Google
|
|
629
702
|
end
|
630
703
|
end
|
631
704
|
|
705
|
+
class ListPolicyBasedRoutesResponse
|
706
|
+
# @private
|
707
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
708
|
+
property :next_page_token, as: 'nextPageToken'
|
709
|
+
collection :policy_based_routes, as: 'policyBasedRoutes', class: Google::Apis::NetworkconnectivityV1::PolicyBasedRoute, decorator: Google::Apis::NetworkconnectivityV1::PolicyBasedRoute::Representation
|
710
|
+
|
711
|
+
collection :unreachable, as: 'unreachable'
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
632
715
|
class ListRouteTablesResponse
|
633
716
|
# @private
|
634
717
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -749,6 +832,31 @@ module Google
|
|
749
832
|
end
|
750
833
|
end
|
751
834
|
|
835
|
+
class PolicyBasedRoute
|
836
|
+
# @private
|
837
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
838
|
+
property :create_time, as: 'createTime'
|
839
|
+
property :description, as: 'description'
|
840
|
+
property :filter, as: 'filter', class: Google::Apis::NetworkconnectivityV1::Filter, decorator: Google::Apis::NetworkconnectivityV1::Filter::Representation
|
841
|
+
|
842
|
+
property :interconnect_attachment, as: 'interconnectAttachment', class: Google::Apis::NetworkconnectivityV1::InterconnectAttachment, decorator: Google::Apis::NetworkconnectivityV1::InterconnectAttachment::Representation
|
843
|
+
|
844
|
+
property :kind, as: 'kind'
|
845
|
+
hash :labels, as: 'labels'
|
846
|
+
property :name, as: 'name'
|
847
|
+
property :network, as: 'network'
|
848
|
+
property :next_hop_ilb_ip, as: 'nextHopIlbIp'
|
849
|
+
property :next_hop_other_routes, as: 'nextHopOtherRoutes'
|
850
|
+
property :priority, as: 'priority'
|
851
|
+
property :self_link, as: 'selfLink'
|
852
|
+
property :update_time, as: 'updateTime'
|
853
|
+
property :virtual_machine, as: 'virtualMachine', class: Google::Apis::NetworkconnectivityV1::VirtualMachine, decorator: Google::Apis::NetworkconnectivityV1::VirtualMachine::Representation
|
854
|
+
|
855
|
+
collection :warnings, as: 'warnings', class: Google::Apis::NetworkconnectivityV1::Warnings, decorator: Google::Apis::NetworkconnectivityV1::Warnings::Representation
|
856
|
+
|
857
|
+
end
|
858
|
+
end
|
859
|
+
|
752
860
|
class ProducerPscConfig
|
753
861
|
# @private
|
754
862
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -781,6 +889,15 @@ module Google
|
|
781
889
|
end
|
782
890
|
end
|
783
891
|
|
892
|
+
class RejectHubSpokeRequest
|
893
|
+
# @private
|
894
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
895
|
+
property :details, as: 'details'
|
896
|
+
property :request_id, as: 'requestId'
|
897
|
+
property :spoke_uri, as: 'spokeUri'
|
898
|
+
end
|
899
|
+
end
|
900
|
+
|
784
901
|
class RejectSpokeRequest
|
785
902
|
# @private
|
786
903
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -999,6 +1116,22 @@ module Google
|
|
999
1116
|
collection :permissions, as: 'permissions'
|
1000
1117
|
end
|
1001
1118
|
end
|
1119
|
+
|
1120
|
+
class VirtualMachine
|
1121
|
+
# @private
|
1122
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1123
|
+
collection :tags, as: 'tags'
|
1124
|
+
end
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
class Warnings
|
1128
|
+
# @private
|
1129
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1130
|
+
property :code, as: 'code'
|
1131
|
+
hash :data, as: 'data'
|
1132
|
+
property :warning_message, as: 'warningMessage'
|
1133
|
+
end
|
1134
|
+
end
|
1002
1135
|
end
|
1003
1136
|
end
|
1004
1137
|
end
|
@@ -122,6 +122,39 @@ module Google
|
|
122
122
|
execute_or_queue_command(command, &block)
|
123
123
|
end
|
124
124
|
|
125
|
+
# Accepts a proposal to attach a Network Connectivity Center spoke to the hub.
|
126
|
+
# @param [String] name
|
127
|
+
# Required. The name of the hub.
|
128
|
+
# @param [Google::Apis::NetworkconnectivityV1::AcceptHubSpokeRequest] accept_hub_spoke_request_object
|
129
|
+
# @param [String] fields
|
130
|
+
# Selector specifying which fields to include in a partial response.
|
131
|
+
# @param [String] quota_user
|
132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
134
|
+
# @param [Google::Apis::RequestOptions] options
|
135
|
+
# Request-specific options
|
136
|
+
#
|
137
|
+
# @yield [result, err] Result & error if block supplied
|
138
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
|
139
|
+
# @yieldparam err [StandardError] error object if request failed
|
140
|
+
#
|
141
|
+
# @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
|
142
|
+
#
|
143
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
144
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
145
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
146
|
+
def accept_project_location_global_hub_spoke(name, accept_hub_spoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
147
|
+
command = make_simple_command(:post, 'v1/{+name}:acceptSpoke', options)
|
148
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1::AcceptHubSpokeRequest::Representation
|
149
|
+
command.request_object = accept_hub_spoke_request_object
|
150
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
151
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
152
|
+
command.params['name'] = name unless name.nil?
|
153
|
+
command.query['fields'] = fields unless fields.nil?
|
154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
155
|
+
execute_or_queue_command(command, &block)
|
156
|
+
end
|
157
|
+
|
125
158
|
# Creates a new Network Connectivity Center hub in the specified project.
|
126
159
|
# @param [String] parent
|
127
160
|
# Required. The parent resource.
|
@@ -441,6 +474,42 @@ module Google
|
|
441
474
|
execute_or_queue_command(command, &block)
|
442
475
|
end
|
443
476
|
|
477
|
+
# Rejects a Network Connectivity Center spoke from being attached to the hub. If
|
478
|
+
# the spoke was previously in the `ACTIVE` state, it transitions to the `
|
479
|
+
# INACTIVE` state and is no longer able to connect to other spokes that are
|
480
|
+
# attached to the hub.
|
481
|
+
# @param [String] name
|
482
|
+
# Required. The name of the hub.
|
483
|
+
# @param [Google::Apis::NetworkconnectivityV1::RejectHubSpokeRequest] reject_hub_spoke_request_object
|
484
|
+
# @param [String] fields
|
485
|
+
# Selector specifying which fields to include in a partial response.
|
486
|
+
# @param [String] quota_user
|
487
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
488
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
489
|
+
# @param [Google::Apis::RequestOptions] options
|
490
|
+
# Request-specific options
|
491
|
+
#
|
492
|
+
# @yield [result, err] Result & error if block supplied
|
493
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
|
494
|
+
# @yieldparam err [StandardError] error object if request failed
|
495
|
+
#
|
496
|
+
# @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
|
497
|
+
#
|
498
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
499
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
500
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
501
|
+
def reject_project_location_global_hub_spoke(name, reject_hub_spoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
502
|
+
command = make_simple_command(:post, 'v1/{+name}:rejectSpoke', options)
|
503
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1::RejectHubSpokeRequest::Representation
|
504
|
+
command.request_object = reject_hub_spoke_request_object
|
505
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
506
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
507
|
+
command.params['name'] = name unless name.nil?
|
508
|
+
command.query['fields'] = fields unless fields.nil?
|
509
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
510
|
+
execute_or_queue_command(command, &block)
|
511
|
+
end
|
512
|
+
|
444
513
|
# Sets the access control policy on the specified resource. Replaces any
|
445
514
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
446
515
|
# PERMISSION_DENIED` errors.
|
@@ -854,6 +923,126 @@ module Google
|
|
854
923
|
execute_or_queue_command(command, &block)
|
855
924
|
end
|
856
925
|
|
926
|
+
# Creates a new PolicyBasedRoute in a given project and location.
|
927
|
+
# @param [String] parent
|
928
|
+
# Required. The parent resource's name of the PolicyBasedRoute.
|
929
|
+
# @param [Google::Apis::NetworkconnectivityV1::PolicyBasedRoute] policy_based_route_object
|
930
|
+
# @param [String] policy_based_route_id
|
931
|
+
# Required. Unique id for the Policy Based Route to create.
|
932
|
+
# @param [String] request_id
|
933
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
934
|
+
# request ID so that if you must retry your request, the server will know to
|
935
|
+
# ignore the request if it has already been completed. The server will guarantee
|
936
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
937
|
+
# situation where you make an initial request and the request times out. If you
|
938
|
+
# make the request again with the same request ID, the server can check if
|
939
|
+
# original operation with the same request ID was received, and if so, will
|
940
|
+
# ignore the second request. This prevents clients from accidentally creating
|
941
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
942
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
943
|
+
# @param [String] fields
|
944
|
+
# Selector specifying which fields to include in a partial response.
|
945
|
+
# @param [String] quota_user
|
946
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
947
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
948
|
+
# @param [Google::Apis::RequestOptions] options
|
949
|
+
# Request-specific options
|
950
|
+
#
|
951
|
+
# @yield [result, err] Result & error if block supplied
|
952
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
|
953
|
+
# @yieldparam err [StandardError] error object if request failed
|
954
|
+
#
|
955
|
+
# @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
|
956
|
+
#
|
957
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
958
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
959
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
960
|
+
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)
|
961
|
+
command = make_simple_command(:post, 'v1/{+parent}/policyBasedRoutes', options)
|
962
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1::PolicyBasedRoute::Representation
|
963
|
+
command.request_object = policy_based_route_object
|
964
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
965
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
966
|
+
command.params['parent'] = parent unless parent.nil?
|
967
|
+
command.query['policyBasedRouteId'] = policy_based_route_id unless policy_based_route_id.nil?
|
968
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
969
|
+
command.query['fields'] = fields unless fields.nil?
|
970
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
971
|
+
execute_or_queue_command(command, &block)
|
972
|
+
end
|
973
|
+
|
974
|
+
# Deletes a single PolicyBasedRoute.
|
975
|
+
# @param [String] name
|
976
|
+
# Required. Name of the PolicyBasedRoute resource to delete.
|
977
|
+
# @param [String] request_id
|
978
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
979
|
+
# request ID so that if you must retry your request, the server will know to
|
980
|
+
# ignore the request if it has already been completed. The server will guarantee
|
981
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
982
|
+
# situation where you make an initial request and the request times out. If you
|
983
|
+
# make the request again with the same request ID, the server can check if
|
984
|
+
# original operation with the same request ID was received, and if so, will
|
985
|
+
# ignore the second request. This prevents clients from accidentally creating
|
986
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
987
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
988
|
+
# @param [String] fields
|
989
|
+
# Selector specifying which fields to include in a partial response.
|
990
|
+
# @param [String] quota_user
|
991
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
992
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
993
|
+
# @param [Google::Apis::RequestOptions] options
|
994
|
+
# Request-specific options
|
995
|
+
#
|
996
|
+
# @yield [result, err] Result & error if block supplied
|
997
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
|
998
|
+
# @yieldparam err [StandardError] error object if request failed
|
999
|
+
#
|
1000
|
+
# @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
|
1001
|
+
#
|
1002
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1003
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1004
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1005
|
+
def delete_project_location_global_policy_based_route(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1006
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1007
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
1008
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
1009
|
+
command.params['name'] = name unless name.nil?
|
1010
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1011
|
+
command.query['fields'] = fields unless fields.nil?
|
1012
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1013
|
+
execute_or_queue_command(command, &block)
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
# Gets details of a single PolicyBasedRoute.
|
1017
|
+
# @param [String] name
|
1018
|
+
# Required. Name of the PolicyBasedRoute resource to get.
|
1019
|
+
# @param [String] fields
|
1020
|
+
# Selector specifying which fields to include in a partial response.
|
1021
|
+
# @param [String] quota_user
|
1022
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1023
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1024
|
+
# @param [Google::Apis::RequestOptions] options
|
1025
|
+
# Request-specific options
|
1026
|
+
#
|
1027
|
+
# @yield [result, err] Result & error if block supplied
|
1028
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::PolicyBasedRoute] parsed result object
|
1029
|
+
# @yieldparam err [StandardError] error object if request failed
|
1030
|
+
#
|
1031
|
+
# @return [Google::Apis::NetworkconnectivityV1::PolicyBasedRoute]
|
1032
|
+
#
|
1033
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1034
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1035
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1036
|
+
def get_project_location_global_policy_based_route(name, fields: nil, quota_user: nil, options: nil, &block)
|
1037
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1038
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::PolicyBasedRoute::Representation
|
1039
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::PolicyBasedRoute
|
1040
|
+
command.params['name'] = name unless name.nil?
|
1041
|
+
command.query['fields'] = fields unless fields.nil?
|
1042
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1043
|
+
execute_or_queue_command(command, &block)
|
1044
|
+
end
|
1045
|
+
|
857
1046
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
858
1047
|
# resource exists and does not have a policy set.
|
859
1048
|
# @param [String] resource
|
@@ -899,6 +1088,48 @@ module Google
|
|
899
1088
|
execute_or_queue_command(command, &block)
|
900
1089
|
end
|
901
1090
|
|
1091
|
+
# Lists PolicyBasedRoutes in a given project and location.
|
1092
|
+
# @param [String] parent
|
1093
|
+
# Required. The parent resource's name.
|
1094
|
+
# @param [String] filter
|
1095
|
+
# A filter expression that filters the results listed in the response.
|
1096
|
+
# @param [String] order_by
|
1097
|
+
# Sort the results by a certain order.
|
1098
|
+
# @param [Fixnum] page_size
|
1099
|
+
# The maximum number of results per page that should be returned.
|
1100
|
+
# @param [String] page_token
|
1101
|
+
# The page token.
|
1102
|
+
# @param [String] fields
|
1103
|
+
# Selector specifying which fields to include in a partial response.
|
1104
|
+
# @param [String] quota_user
|
1105
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1106
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1107
|
+
# @param [Google::Apis::RequestOptions] options
|
1108
|
+
# Request-specific options
|
1109
|
+
#
|
1110
|
+
# @yield [result, err] Result & error if block supplied
|
1111
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::ListPolicyBasedRoutesResponse] parsed result object
|
1112
|
+
# @yieldparam err [StandardError] error object if request failed
|
1113
|
+
#
|
1114
|
+
# @return [Google::Apis::NetworkconnectivityV1::ListPolicyBasedRoutesResponse]
|
1115
|
+
#
|
1116
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1117
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1118
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1119
|
+
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)
|
1120
|
+
command = make_simple_command(:get, 'v1/{+parent}/policyBasedRoutes', options)
|
1121
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::ListPolicyBasedRoutesResponse::Representation
|
1122
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::ListPolicyBasedRoutesResponse
|
1123
|
+
command.params['parent'] = parent unless parent.nil?
|
1124
|
+
command.query['filter'] = filter unless filter.nil?
|
1125
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1126
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1127
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1128
|
+
command.query['fields'] = fields unless fields.nil?
|
1129
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1130
|
+
execute_or_queue_command(command, &block)
|
1131
|
+
end
|
1132
|
+
|
902
1133
|
# Sets the access control policy on the specified resource. Replaces any
|
903
1134
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
904
1135
|
# 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.32.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-09-10 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.32.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
|