google-apis-networkconnectivity_v1 0.29.0 → 0.31.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 +10 -2
- data/lib/google/apis/networkconnectivity_v1/classes.rb +394 -28
- data/lib/google/apis/networkconnectivity_v1/gem_version.rb +2 -2
- data/lib/google/apis/networkconnectivity_v1/representations.rb +140 -0
- data/lib/google/apis/networkconnectivity_v1/service.rb +244 -7
- 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
@@ -1,8 +1,16 @@
|
|
1
1
|
# Release history for google-apis-networkconnectivity_v1
|
2
2
|
|
3
|
-
### v0.
|
3
|
+
### v0.31.0 (2023-08-27)
|
4
4
|
|
5
|
-
* Regenerated from discovery document revision
|
5
|
+
* Regenerated from discovery document revision 20230816
|
6
|
+
|
7
|
+
### v0.30.0 (2023-08-13)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230804
|
10
|
+
|
11
|
+
### v0.29.0 (2023-08-06)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20230727
|
6
14
|
|
7
15
|
### v0.28.0 (2023-07-23)
|
8
16
|
|
@@ -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
|
@@ -485,13 +526,13 @@ module Google
|
|
485
526
|
# @return [String]
|
486
527
|
attr_accessor :name
|
487
528
|
|
488
|
-
# The normal response of the operation
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
529
|
+
# The normal, successful response of the operation. If the original method
|
530
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
531
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
532
|
+
# response should be the resource. For other methods, the response should have
|
533
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
534
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
535
|
+
# `TakeSnapshotResponse`.
|
495
536
|
# Corresponds to the JSON property `response`
|
496
537
|
# @return [Hash<String,Object>]
|
497
538
|
attr_accessor :response
|
@@ -600,6 +641,67 @@ module Google
|
|
600
641
|
end
|
601
642
|
end
|
602
643
|
|
644
|
+
# A group represents a subset of spokes attached to a hub.
|
645
|
+
class Group
|
646
|
+
include Google::Apis::Core::Hashable
|
647
|
+
|
648
|
+
# Output only. The time the group was created.
|
649
|
+
# Corresponds to the JSON property `createTime`
|
650
|
+
# @return [String]
|
651
|
+
attr_accessor :create_time
|
652
|
+
|
653
|
+
# Optional. The description of the group.
|
654
|
+
# Corresponds to the JSON property `description`
|
655
|
+
# @return [String]
|
656
|
+
attr_accessor :description
|
657
|
+
|
658
|
+
# Optional. Labels in key:value format. For more information about labels, see [
|
659
|
+
# Requirements for labels](https://cloud.google.com/resource-manager/docs/
|
660
|
+
# creating-managing-labels#requirements).
|
661
|
+
# Corresponds to the JSON property `labels`
|
662
|
+
# @return [Hash<String,String>]
|
663
|
+
attr_accessor :labels
|
664
|
+
|
665
|
+
# Immutable. The name of the group. Group names must be unique. They use the
|
666
|
+
# following form: `projects/`project_number`/locations/global/hubs/`hub`/groups/`
|
667
|
+
# group_id``
|
668
|
+
# Corresponds to the JSON property `name`
|
669
|
+
# @return [String]
|
670
|
+
attr_accessor :name
|
671
|
+
|
672
|
+
# Output only. The current lifecycle state of this group.
|
673
|
+
# Corresponds to the JSON property `state`
|
674
|
+
# @return [String]
|
675
|
+
attr_accessor :state
|
676
|
+
|
677
|
+
# Output only. The Google-generated UUID for the group. This value is unique
|
678
|
+
# across all group resources. If a group is deleted and another with the same
|
679
|
+
# name is created, the new route table is assigned a different unique_id.
|
680
|
+
# Corresponds to the JSON property `uid`
|
681
|
+
# @return [String]
|
682
|
+
attr_accessor :uid
|
683
|
+
|
684
|
+
# Output only. The time the group was last updated.
|
685
|
+
# Corresponds to the JSON property `updateTime`
|
686
|
+
# @return [String]
|
687
|
+
attr_accessor :update_time
|
688
|
+
|
689
|
+
def initialize(**args)
|
690
|
+
update!(**args)
|
691
|
+
end
|
692
|
+
|
693
|
+
# Update properties of this object
|
694
|
+
def update!(**args)
|
695
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
696
|
+
@description = args[:description] if args.key?(:description)
|
697
|
+
@labels = args[:labels] if args.key?(:labels)
|
698
|
+
@name = args[:name] if args.key?(:name)
|
699
|
+
@state = args[:state] if args.key?(:state)
|
700
|
+
@uid = args[:uid] if args.key?(:uid)
|
701
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
702
|
+
end
|
703
|
+
end
|
704
|
+
|
603
705
|
# A Network Connectivity Center hub is a global management resource to which you
|
604
706
|
# attach spokes. A single hub can contain spokes from multiple regions. However,
|
605
707
|
# if any of a hub's spokes use the site-to-site data transfer feature, the
|
@@ -691,6 +793,26 @@ module Google
|
|
691
793
|
end
|
692
794
|
end
|
693
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
|
+
|
694
816
|
# The internal range resource for IPAM operations within a VPC network. Used to
|
695
817
|
# represent a private address range along with behavioral characterstics of that
|
696
818
|
# range (its usage and peering behavior). Networking resources can link to this
|
@@ -943,6 +1065,39 @@ module Google
|
|
943
1065
|
end
|
944
1066
|
end
|
945
1067
|
|
1068
|
+
# Response for HubService.ListGroups method.
|
1069
|
+
class ListGroupsResponse
|
1070
|
+
include Google::Apis::Core::Hashable
|
1071
|
+
|
1072
|
+
# The requested groups.
|
1073
|
+
# Corresponds to the JSON property `groups`
|
1074
|
+
# @return [Array<Google::Apis::NetworkconnectivityV1::Group>]
|
1075
|
+
attr_accessor :groups
|
1076
|
+
|
1077
|
+
# The token for the next page of the response. To see more results, use this
|
1078
|
+
# value as the page_token for your next request. If this value is empty, there
|
1079
|
+
# are no more results.
|
1080
|
+
# Corresponds to the JSON property `nextPageToken`
|
1081
|
+
# @return [String]
|
1082
|
+
attr_accessor :next_page_token
|
1083
|
+
|
1084
|
+
# Hubs that could not be reached.
|
1085
|
+
# Corresponds to the JSON property `unreachable`
|
1086
|
+
# @return [Array<String>]
|
1087
|
+
attr_accessor :unreachable
|
1088
|
+
|
1089
|
+
def initialize(**args)
|
1090
|
+
update!(**args)
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
# Update properties of this object
|
1094
|
+
def update!(**args)
|
1095
|
+
@groups = args[:groups] if args.key?(:groups)
|
1096
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1097
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1098
|
+
end
|
1099
|
+
end
|
1100
|
+
|
946
1101
|
# The response for HubService.ListHubSpokes.
|
947
1102
|
class ListHubSpokesResponse
|
948
1103
|
include Google::Apis::Core::Hashable
|
@@ -1067,6 +1222,38 @@ module Google
|
|
1067
1222
|
end
|
1068
1223
|
end
|
1069
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
|
+
|
1070
1257
|
# Response for HubService.ListRouteTables method.
|
1071
1258
|
class ListRouteTablesResponse
|
1072
1259
|
include Google::Apis::Core::Hashable
|
@@ -1449,22 +1636,22 @@ module Google
|
|
1449
1636
|
# evaluates to `true`. A condition can add constraints based on attributes of
|
1450
1637
|
# the request, the resource, or both. To learn which resources support
|
1451
1638
|
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1452
|
-
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
1639
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
1453
1640
|
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
1454
1641
|
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
1455
1642
|
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
1456
1643
|
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
1457
1644
|
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
1458
1645
|
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1459
|
-
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML
|
1460
|
-
# bindings: - members: - user:mike@example.com - group:admins@
|
1461
|
-
# domain:google.com - serviceAccount:my-project-id@appspot.
|
1462
|
-
# role: roles/resourcemanager.organizationAdmin - members: -
|
1463
|
-
# com role: roles/resourcemanager.organizationViewer condition:
|
1464
|
-
# access description: Does not grant access after Sep 2020
|
1465
|
-
# time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
1466
|
-
# a description of IAM and its features, see the
|
1467
|
-
# cloud.google.com/iam/docs/).
|
1646
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
|
1647
|
+
# example:** ``` bindings: - members: - user:mike@example.com - group:admins@
|
1648
|
+
# example.com - domain:google.com - serviceAccount:my-project-id@appspot.
|
1649
|
+
# gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
|
1650
|
+
# user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
|
1651
|
+
# title: expirable access description: Does not grant access after Sep 2020
|
1652
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
1653
|
+
# BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
|
1654
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
1468
1655
|
class Policy
|
1469
1656
|
include Google::Apis::Core::Hashable
|
1470
1657
|
|
@@ -1533,6 +1720,124 @@ module Google
|
|
1533
1720
|
end
|
1534
1721
|
end
|
1535
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
|
+
|
1536
1841
|
# The PSC configurations on producer side.
|
1537
1842
|
class ProducerPscConfig
|
1538
1843
|
include Google::Apis::Core::Hashable
|
@@ -2245,22 +2550,22 @@ module Google
|
|
2245
2550
|
# evaluates to `true`. A condition can add constraints based on attributes of
|
2246
2551
|
# the request, the resource, or both. To learn which resources support
|
2247
2552
|
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2248
|
-
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
2553
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
2249
2554
|
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
2250
2555
|
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
2251
2556
|
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
2252
2557
|
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
2253
2558
|
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
2254
2559
|
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2255
|
-
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML
|
2256
|
-
# bindings: - members: - user:mike@example.com - group:admins@
|
2257
|
-
# domain:google.com - serviceAccount:my-project-id@appspot.
|
2258
|
-
# role: roles/resourcemanager.organizationAdmin - members: -
|
2259
|
-
# com role: roles/resourcemanager.organizationViewer condition:
|
2260
|
-
# access description: Does not grant access after Sep 2020
|
2261
|
-
# time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
2262
|
-
# a description of IAM and its features, see the
|
2263
|
-
# cloud.google.com/iam/docs/).
|
2560
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
|
2561
|
+
# example:** ``` bindings: - members: - user:mike@example.com - group:admins@
|
2562
|
+
# example.com - domain:google.com - serviceAccount:my-project-id@appspot.
|
2563
|
+
# gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
|
2564
|
+
# user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
|
2565
|
+
# title: expirable access description: Does not grant access after Sep 2020
|
2566
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
2567
|
+
# BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
|
2568
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
2264
2569
|
# Corresponds to the JSON property `policy`
|
2265
2570
|
# @return [Google::Apis::NetworkconnectivityV1::Policy]
|
2266
2571
|
attr_accessor :policy
|
@@ -2287,7 +2592,7 @@ module Google
|
|
2287
2592
|
# connectivity resources. When you create a spoke, you associate it with a hub.
|
2288
2593
|
# You must also identify a value for exactly one of the following fields: *
|
2289
2594
|
# linked_vpn_tunnels * linked_interconnect_attachments *
|
2290
|
-
# linked_router_appliance_instances
|
2595
|
+
# linked_router_appliance_instances * linked_vpc_network
|
2291
2596
|
class Spoke
|
2292
2597
|
include Google::Apis::Core::Hashable
|
2293
2598
|
|
@@ -2301,6 +2606,11 @@ module Google
|
|
2301
2606
|
# @return [String]
|
2302
2607
|
attr_accessor :description
|
2303
2608
|
|
2609
|
+
# Optional. The name of the group that this spoke is associated with.
|
2610
|
+
# Corresponds to the JSON property `group`
|
2611
|
+
# @return [String]
|
2612
|
+
attr_accessor :group
|
2613
|
+
|
2304
2614
|
# Immutable. The name of the hub that this spoke is attached to.
|
2305
2615
|
# Corresponds to the JSON property `hub`
|
2306
2616
|
# @return [String]
|
@@ -2385,6 +2695,7 @@ module Google
|
|
2385
2695
|
def update!(**args)
|
2386
2696
|
@create_time = args[:create_time] if args.key?(:create_time)
|
2387
2697
|
@description = args[:description] if args.key?(:description)
|
2698
|
+
@group = args[:group] if args.key?(:group)
|
2388
2699
|
@hub = args[:hub] if args.key?(:hub)
|
2389
2700
|
@labels = args[:labels] if args.key?(:labels)
|
2390
2701
|
@linked_interconnect_attachments = args[:linked_interconnect_attachments] if args.key?(:linked_interconnect_attachments)
|
@@ -2587,6 +2898,61 @@ module Google
|
|
2587
2898
|
@permissions = args[:permissions] if args.key?(:permissions)
|
2588
2899
|
end
|
2589
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
|
2590
2956
|
end
|
2591
2957
|
end
|
2592
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
|
|
@@ -100,12 +106,24 @@ module Google
|
|
100
106
|
include Google::Apis::Core::JsonObjectSupport
|
101
107
|
end
|
102
108
|
|
109
|
+
class Group
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
103
115
|
class Hub
|
104
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
117
|
|
106
118
|
include Google::Apis::Core::JsonObjectSupport
|
107
119
|
end
|
108
120
|
|
121
|
+
class InterconnectAttachment
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
109
127
|
class InternalRange
|
110
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
129
|
|
@@ -136,6 +154,12 @@ module Google
|
|
136
154
|
include Google::Apis::Core::JsonObjectSupport
|
137
155
|
end
|
138
156
|
|
157
|
+
class ListGroupsResponse
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
139
163
|
class ListHubSpokesResponse
|
140
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
165
|
|
@@ -160,6 +184,12 @@ module Google
|
|
160
184
|
include Google::Apis::Core::JsonObjectSupport
|
161
185
|
end
|
162
186
|
|
187
|
+
class ListPolicyBasedRoutesResponse
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
163
193
|
class ListRouteTablesResponse
|
164
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
195
|
|
@@ -232,6 +262,12 @@ module Google
|
|
232
262
|
include Google::Apis::Core::JsonObjectSupport
|
233
263
|
end
|
234
264
|
|
265
|
+
class PolicyBasedRoute
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
235
271
|
class ProducerPscConfig
|
236
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
273
|
|
@@ -358,6 +394,18 @@ module Google
|
|
358
394
|
include Google::Apis::Core::JsonObjectSupport
|
359
395
|
end
|
360
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
|
+
|
361
409
|
class AcceptSpokeRequest
|
362
410
|
# @private
|
363
411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -437,6 +485,16 @@ module Google
|
|
437
485
|
end
|
438
486
|
end
|
439
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
|
+
|
440
498
|
class GoogleLongrunningCancelOperationRequest
|
441
499
|
# @private
|
442
500
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -482,6 +540,19 @@ module Google
|
|
482
540
|
end
|
483
541
|
end
|
484
542
|
|
543
|
+
class Group
|
544
|
+
# @private
|
545
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
546
|
+
property :create_time, as: 'createTime'
|
547
|
+
property :description, as: 'description'
|
548
|
+
hash :labels, as: 'labels'
|
549
|
+
property :name, as: 'name'
|
550
|
+
property :state, as: 'state'
|
551
|
+
property :uid, as: 'uid'
|
552
|
+
property :update_time, as: 'updateTime'
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
485
556
|
class Hub
|
486
557
|
# @private
|
487
558
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -500,6 +571,13 @@ module Google
|
|
500
571
|
end
|
501
572
|
end
|
502
573
|
|
574
|
+
class InterconnectAttachment
|
575
|
+
# @private
|
576
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
577
|
+
property :region, as: 'region'
|
578
|
+
end
|
579
|
+
end
|
580
|
+
|
503
581
|
class InternalRange
|
504
582
|
# @private
|
505
583
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -555,6 +633,16 @@ module Google
|
|
555
633
|
end
|
556
634
|
end
|
557
635
|
|
636
|
+
class ListGroupsResponse
|
637
|
+
# @private
|
638
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
639
|
+
collection :groups, as: 'groups', class: Google::Apis::NetworkconnectivityV1::Group, decorator: Google::Apis::NetworkconnectivityV1::Group::Representation
|
640
|
+
|
641
|
+
property :next_page_token, as: 'nextPageToken'
|
642
|
+
collection :unreachable, as: 'unreachable'
|
643
|
+
end
|
644
|
+
end
|
645
|
+
|
558
646
|
class ListHubSpokesResponse
|
559
647
|
# @private
|
560
648
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -594,6 +682,16 @@ module Google
|
|
594
682
|
end
|
595
683
|
end
|
596
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
|
+
|
597
695
|
class ListRouteTablesResponse
|
598
696
|
# @private
|
599
697
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -714,6 +812,31 @@ module Google
|
|
714
812
|
end
|
715
813
|
end
|
716
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
|
+
|
717
840
|
class ProducerPscConfig
|
718
841
|
# @private
|
719
842
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -885,6 +1008,7 @@ module Google
|
|
885
1008
|
class Representation < Google::Apis::Core::JsonRepresentation
|
886
1009
|
property :create_time, as: 'createTime'
|
887
1010
|
property :description, as: 'description'
|
1011
|
+
property :group, as: 'group'
|
888
1012
|
property :hub, as: 'hub'
|
889
1013
|
hash :labels, as: 'labels'
|
890
1014
|
property :linked_interconnect_attachments, as: 'linkedInterconnectAttachments', class: Google::Apis::NetworkconnectivityV1::LinkedInterconnectAttachments, decorator: Google::Apis::NetworkconnectivityV1::LinkedInterconnectAttachments::Representation
|
@@ -963,6 +1087,22 @@ module Google
|
|
963
1087
|
collection :permissions, as: 'permissions'
|
964
1088
|
end
|
965
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
|
966
1106
|
end
|
967
1107
|
end
|
968
1108
|
end
|
@@ -517,6 +517,36 @@ module Google
|
|
517
517
|
execute_or_queue_command(command, &block)
|
518
518
|
end
|
519
519
|
|
520
|
+
# Gets details about a Network Connectivity Center group.
|
521
|
+
# @param [String] name
|
522
|
+
# Required. The name of the route table resource.
|
523
|
+
# @param [String] fields
|
524
|
+
# Selector specifying which fields to include in a partial response.
|
525
|
+
# @param [String] quota_user
|
526
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
527
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
528
|
+
# @param [Google::Apis::RequestOptions] options
|
529
|
+
# Request-specific options
|
530
|
+
#
|
531
|
+
# @yield [result, err] Result & error if block supplied
|
532
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::Group] parsed result object
|
533
|
+
# @yieldparam err [StandardError] error object if request failed
|
534
|
+
#
|
535
|
+
# @return [Google::Apis::NetworkconnectivityV1::Group]
|
536
|
+
#
|
537
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
538
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
539
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
540
|
+
def get_project_location_global_hub_group(name, fields: nil, quota_user: nil, options: nil, &block)
|
541
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
542
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::Group::Representation
|
543
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::Group
|
544
|
+
command.params['name'] = name unless name.nil?
|
545
|
+
command.query['fields'] = fields unless fields.nil?
|
546
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
547
|
+
execute_or_queue_command(command, &block)
|
548
|
+
end
|
549
|
+
|
520
550
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
521
551
|
# resource exists and does not have a policy set.
|
522
552
|
# @param [String] resource
|
@@ -562,6 +592,48 @@ module Google
|
|
562
592
|
execute_or_queue_command(command, &block)
|
563
593
|
end
|
564
594
|
|
595
|
+
# Lists groups in a given hub.
|
596
|
+
# @param [String] parent
|
597
|
+
# Required. The parent resource's name.
|
598
|
+
# @param [String] filter
|
599
|
+
# An expression that filters the list of results.
|
600
|
+
# @param [String] order_by
|
601
|
+
# Sort the results by a certain order.
|
602
|
+
# @param [Fixnum] page_size
|
603
|
+
# The maximum number of results to return per page.
|
604
|
+
# @param [String] page_token
|
605
|
+
# The page token.
|
606
|
+
# @param [String] fields
|
607
|
+
# Selector specifying which fields to include in a partial response.
|
608
|
+
# @param [String] quota_user
|
609
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
610
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
611
|
+
# @param [Google::Apis::RequestOptions] options
|
612
|
+
# Request-specific options
|
613
|
+
#
|
614
|
+
# @yield [result, err] Result & error if block supplied
|
615
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::ListGroupsResponse] parsed result object
|
616
|
+
# @yieldparam err [StandardError] error object if request failed
|
617
|
+
#
|
618
|
+
# @return [Google::Apis::NetworkconnectivityV1::ListGroupsResponse]
|
619
|
+
#
|
620
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
621
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
622
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
623
|
+
def list_project_location_global_hub_groups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
624
|
+
command = make_simple_command(:get, 'v1/{+parent}/groups', options)
|
625
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::ListGroupsResponse::Representation
|
626
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::ListGroupsResponse
|
627
|
+
command.params['parent'] = parent unless parent.nil?
|
628
|
+
command.query['filter'] = filter unless filter.nil?
|
629
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
630
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
631
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
632
|
+
command.query['fields'] = fields unless fields.nil?
|
633
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
634
|
+
execute_or_queue_command(command, &block)
|
635
|
+
end
|
636
|
+
|
565
637
|
# Sets the access control policy on the specified resource. Replaces any
|
566
638
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
567
639
|
# PERMISSION_DENIED` errors.
|
@@ -782,6 +854,126 @@ module Google
|
|
782
854
|
execute_or_queue_command(command, &block)
|
783
855
|
end
|
784
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
|
+
|
785
977
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
786
978
|
# resource exists and does not have a policy set.
|
787
979
|
# @param [String] resource
|
@@ -827,6 +1019,48 @@ module Google
|
|
827
1019
|
execute_or_queue_command(command, &block)
|
828
1020
|
end
|
829
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
|
+
|
830
1064
|
# Sets the access control policy on the specified resource. Replaces any
|
831
1065
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
832
1066
|
# PERMISSION_DENIED` errors.
|
@@ -1388,7 +1622,7 @@ module Google
|
|
1388
1622
|
|
1389
1623
|
# Lists ServiceClasses in a given project and location.
|
1390
1624
|
# @param [String] parent
|
1391
|
-
# Required. The parent resource's name.
|
1625
|
+
# Required. The parent resource's name. ex. projects/123/locations/us-east1
|
1392
1626
|
# @param [String] filter
|
1393
1627
|
# A filter expression that filters the results listed in the response.
|
1394
1628
|
# @param [String] order_by
|
@@ -1560,7 +1794,8 @@ module Google
|
|
1560
1794
|
|
1561
1795
|
# Creates a new ServiceConnectionMap in a given project and location.
|
1562
1796
|
# @param [String] parent
|
1563
|
-
# Required. The parent resource's name of the ServiceConnectionMap.
|
1797
|
+
# Required. The parent resource's name of the ServiceConnectionMap. ex. projects/
|
1798
|
+
# 123/locations/us-east1
|
1564
1799
|
# @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionMap] service_connection_map_object
|
1565
1800
|
# @param [String] request_id
|
1566
1801
|
# Optional. An optional request ID to identify requests. Specify a unique
|
@@ -1731,7 +1966,7 @@ module Google
|
|
1731
1966
|
|
1732
1967
|
# Lists ServiceConnectionMaps in a given project and location.
|
1733
1968
|
# @param [String] parent
|
1734
|
-
# Required. The parent resource's name.
|
1969
|
+
# Required. The parent resource's name. ex. projects/123/locations/us-east1
|
1735
1970
|
# @param [String] filter
|
1736
1971
|
# A filter expression that filters the results listed in the response.
|
1737
1972
|
# @param [String] order_by
|
@@ -1903,7 +2138,8 @@ module Google
|
|
1903
2138
|
|
1904
2139
|
# Creates a new ServiceConnectionPolicy in a given project and location.
|
1905
2140
|
# @param [String] parent
|
1906
|
-
# Required. The parent resource's name of the ServiceConnectionPolicy.
|
2141
|
+
# Required. The parent resource's name of the ServiceConnectionPolicy. ex.
|
2142
|
+
# projects/123/locations/us-east1
|
1907
2143
|
# @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy] service_connection_policy_object
|
1908
2144
|
# @param [String] request_id
|
1909
2145
|
# Optional. An optional request ID to identify requests. Specify a unique
|
@@ -2074,7 +2310,7 @@ module Google
|
|
2074
2310
|
|
2075
2311
|
# Lists ServiceConnectionPolicies in a given project and location.
|
2076
2312
|
# @param [String] parent
|
2077
|
-
# Required. The parent resource's name.
|
2313
|
+
# Required. The parent resource's name. ex. projects/123/locations/us-east1
|
2078
2314
|
# @param [String] filter
|
2079
2315
|
# A filter expression that filters the results listed in the response.
|
2080
2316
|
# @param [String] order_by
|
@@ -2246,7 +2482,8 @@ module Google
|
|
2246
2482
|
|
2247
2483
|
# Creates a new ServiceConnectionToken in a given project and location.
|
2248
2484
|
# @param [String] parent
|
2249
|
-
# Required. The parent resource's name of the ServiceConnectionToken.
|
2485
|
+
# Required. The parent resource's name of the ServiceConnectionToken. ex.
|
2486
|
+
# projects/123/locations/us-east1
|
2250
2487
|
# @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionToken] service_connection_token_object
|
2251
2488
|
# @param [String] request_id
|
2252
2489
|
# Optional. An optional request ID to identify requests. Specify a unique
|
@@ -2372,7 +2609,7 @@ module Google
|
|
2372
2609
|
|
2373
2610
|
# Lists ServiceConnectionTokens in a given project and location.
|
2374
2611
|
# @param [String] parent
|
2375
|
-
# Required. The parent resource's name.
|
2612
|
+
# Required. The parent resource's name. ex. projects/123/locations/us-east1
|
2376
2613
|
# @param [String] filter
|
2377
2614
|
# A filter expression that filters the results listed in the response.
|
2378
2615
|
# @param [String] order_by
|
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
|