google-apis-networkconnectivity_v1 0.58.0 → 0.60.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 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/networkconnectivity_v1/classes.rb +106 -30
- data/lib/google/apis/networkconnectivity_v1/gem_version.rb +3 -3
- data/lib/google/apis/networkconnectivity_v1/representations.rb +32 -0
- data/lib/google/apis/networkconnectivity_v1/service.rb +124 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47370fa525e81751587d5046b16b1db4fd611fa8695deabda30680472f8dae16
|
4
|
+
data.tar.gz: 98d0b2f71496e1f28825f8abb551d9a62d0d39610f727d7d995486cf52395271
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7de6fba3c799385e85244bbecece7d4c9a3d9d1da5a870eea6a008ab99fd21473706529a1d326cf548f4a824d3b6437a44655387610207a1b0a8229378dece2a
|
7
|
+
data.tar.gz: 322800d86223de3c52fb1158844da9395bcab6da94b33c9861b3686f27a4706f7cb5fc3b6477920f59fe6dc92d9c2acac3d9b2528bc5f7075ad8d2d604a3ffea
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-networkconnectivity_v1
|
2
2
|
|
3
|
+
### v0.60.0 (2025-06-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250527
|
6
|
+
* Regenerated using generator version 0.18.0
|
7
|
+
|
8
|
+
### v0.59.0 (2025-05-18)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20250512
|
11
|
+
* Regenerated using generator version 0.17.0
|
12
|
+
|
3
13
|
### v0.58.0 (2025-04-27)
|
4
14
|
|
5
15
|
* Regenerated from discovery document revision 20250414
|
data/OVERVIEW.md
CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/network-connectivity/docs/r
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby
|
86
|
+
This library is supported on Ruby 3.1+.
|
87
87
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
@@ -121,6 +121,35 @@ module Google
|
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
124
|
+
# Range auto-allocation options, to be optionally used when CIDR block is not
|
125
|
+
# explicitly set.
|
126
|
+
class AllocationOptions
|
127
|
+
include Google::Apis::Core::Hashable
|
128
|
+
|
129
|
+
# Optional. Allocation strategy Not setting this field when the allocation is
|
130
|
+
# requested means an implementation defined strategy is used.
|
131
|
+
# Corresponds to the JSON property `allocationStrategy`
|
132
|
+
# @return [String]
|
133
|
+
attr_accessor :allocation_strategy
|
134
|
+
|
135
|
+
# Optional. This field must be set only when allocation_strategy is set to
|
136
|
+
# RANDOM_FIRST_N_AVAILABLE. The value should be the maximum expected parallelism
|
137
|
+
# of range creation requests issued to the same space of peered netwroks.
|
138
|
+
# Corresponds to the JSON property `firstAvailableRangesLookupSize`
|
139
|
+
# @return [Fixnum]
|
140
|
+
attr_accessor :first_available_ranges_lookup_size
|
141
|
+
|
142
|
+
def initialize(**args)
|
143
|
+
update!(**args)
|
144
|
+
end
|
145
|
+
|
146
|
+
# Update properties of this object
|
147
|
+
def update!(**args)
|
148
|
+
@allocation_strategy = args[:allocation_strategy] if args.key?(:allocation_strategy)
|
149
|
+
@first_available_ranges_lookup_size = args[:first_available_ranges_lookup_size] if args.key?(:first_available_ranges_lookup_size)
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
124
153
|
# Specifies the audit configuration for a service. The configuration determines
|
125
154
|
# which permission types are logged, and what identities, if any, are exempted
|
126
155
|
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
@@ -599,7 +628,8 @@ module Google
|
|
599
628
|
include Google::Apis::Core::Hashable
|
600
629
|
|
601
630
|
# Optional. The destination IP range of outgoing packets that this policy-based
|
602
|
-
# route applies to. Default is "0.0.0.0/0" if protocol version is IPv4
|
631
|
+
# route applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0"
|
632
|
+
# if protocol version is IPv6.
|
603
633
|
# Corresponds to the JSON property `destRange`
|
604
634
|
# @return [String]
|
605
635
|
attr_accessor :dest_range
|
@@ -610,14 +640,15 @@ module Google
|
|
610
640
|
# @return [String]
|
611
641
|
attr_accessor :ip_protocol
|
612
642
|
|
613
|
-
# Required. Internet protocol versions this policy-based route applies to.
|
614
|
-
#
|
643
|
+
# Required. Internet protocol versions this policy-based route applies to. IPV4
|
644
|
+
# and IPV6 is supported.
|
615
645
|
# Corresponds to the JSON property `protocolVersion`
|
616
646
|
# @return [String]
|
617
647
|
attr_accessor :protocol_version
|
618
648
|
|
619
649
|
# Optional. The source IP range of outgoing packets that this policy-based route
|
620
|
-
# applies to. Default is "0.0.0.0/0" if protocol version is IPv4
|
650
|
+
# applies to. Default is "0.0.0.0/0" if protocol version is IPv4 and "::/0" if
|
651
|
+
# protocol version is IPv6.
|
621
652
|
# Corresponds to the JSON property `srcRange`
|
622
653
|
# @return [String]
|
623
654
|
attr_accessor :src_range
|
@@ -970,9 +1001,9 @@ module Google
|
|
970
1001
|
# @return [Array<String>]
|
971
1002
|
attr_accessor :route_tables
|
972
1003
|
|
973
|
-
# The VPC networks associated with this hub's spokes. This field is
|
974
|
-
# Network Connectivity Center automatically populates it based on the
|
975
|
-
# spokes attached to the hub.
|
1004
|
+
# Output only. The VPC networks associated with this hub's spokes. This field is
|
1005
|
+
# read-only. Network Connectivity Center automatically populates it based on the
|
1006
|
+
# set of spokes attached to the hub.
|
976
1007
|
# Corresponds to the JSON property `routingVpcs`
|
977
1008
|
# @return [Array<Google::Apis::NetworkconnectivityV1::RoutingVpc>]
|
978
1009
|
attr_accessor :routing_vpcs
|
@@ -1087,12 +1118,18 @@ module Google
|
|
1087
1118
|
class InternalRange
|
1088
1119
|
include Google::Apis::Core::Hashable
|
1089
1120
|
|
1121
|
+
# Range auto-allocation options, to be optionally used when CIDR block is not
|
1122
|
+
# explicitly set.
|
1123
|
+
# Corresponds to the JSON property `allocationOptions`
|
1124
|
+
# @return [Google::Apis::NetworkconnectivityV1::AllocationOptions]
|
1125
|
+
attr_accessor :allocation_options
|
1126
|
+
|
1090
1127
|
# Time when the internal range was created.
|
1091
1128
|
# Corresponds to the JSON property `createTime`
|
1092
1129
|
# @return [String]
|
1093
1130
|
attr_accessor :create_time
|
1094
1131
|
|
1095
|
-
# A description of this resource.
|
1132
|
+
# Optional. A description of this resource.
|
1096
1133
|
# Corresponds to the JSON property `description`
|
1097
1134
|
# @return [String]
|
1098
1135
|
attr_accessor :description
|
@@ -1111,9 +1148,9 @@ module Google
|
|
1111
1148
|
attr_accessor :immutable
|
1112
1149
|
alias_method :immutable?, :immutable
|
1113
1150
|
|
1114
|
-
# The IP range that this internal range defines. NOTE: IPv6 ranges are
|
1115
|
-
# to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges
|
1116
|
-
# field is compulsory, i.e. the address range must be specified explicitly.
|
1151
|
+
# Optional. The IP range that this internal range defines. NOTE: IPv6 ranges are
|
1152
|
+
# limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges
|
1153
|
+
# this field is compulsory, i.e. the address range must be specified explicitly.
|
1117
1154
|
# Corresponds to the JSON property `ipCidrRange`
|
1118
1155
|
# @return [String]
|
1119
1156
|
attr_accessor :ip_cidr_range
|
@@ -1128,18 +1165,19 @@ module Google
|
|
1128
1165
|
# @return [Google::Apis::NetworkconnectivityV1::Migration]
|
1129
1166
|
attr_accessor :migration
|
1130
1167
|
|
1131
|
-
#
|
1132
|
-
#
|
1133
|
-
# fields-representing-resource-names
|
1168
|
+
# Identifier. The name of an internal range. Format: projects/`project`/
|
1169
|
+
# locations/`location`/internalRanges/`internal_range` See: https://google.aip.
|
1170
|
+
# dev/122#fields-representing-resource-names
|
1134
1171
|
# Corresponds to the JSON property `name`
|
1135
1172
|
# @return [String]
|
1136
1173
|
attr_accessor :name
|
1137
1174
|
|
1138
|
-
# The URL or resource ID of the network in which to reserve the
|
1139
|
-
# The network cannot be deleted if there are any reserved
|
1140
|
-
# referring to it. Legacy networks are not supported. For
|
1141
|
-
# googleapis.com/compute/v1/projects/`project`/locations/
|
1142
|
-
# network` projects/`project`/locations/global/networks/`
|
1175
|
+
# Immutable. The URL or resource ID of the network in which to reserve the
|
1176
|
+
# internal range. The network cannot be deleted if there are any reserved
|
1177
|
+
# internal ranges referring to it. Legacy networks are not supported. For
|
1178
|
+
# example: https://www.googleapis.com/compute/v1/projects/`project`/locations/
|
1179
|
+
# global/networks/`network` projects/`project`/locations/global/networks/`
|
1180
|
+
# network` `network`
|
1143
1181
|
# Corresponds to the JSON property `network`
|
1144
1182
|
# @return [String]
|
1145
1183
|
attr_accessor :network
|
@@ -1150,16 +1188,16 @@ module Google
|
|
1150
1188
|
# @return [Array<String>]
|
1151
1189
|
attr_accessor :overlaps
|
1152
1190
|
|
1153
|
-
# The type of peering set for this internal range.
|
1191
|
+
# Optional. The type of peering set for this internal range.
|
1154
1192
|
# Corresponds to the JSON property `peering`
|
1155
1193
|
# @return [String]
|
1156
1194
|
attr_accessor :peering
|
1157
1195
|
|
1158
|
-
# An alternate to ip_cidr_range. Can be set when trying to create an
|
1159
|
-
# reservation that automatically finds a free range of the given size. If
|
1160
|
-
# ip_cidr_range and prefix_length are set, there is an error if the range
|
1161
|
-
# do not match. Can also be used during updates to change the range size.
|
1162
|
-
# For IPv6 this field only works if ip_cidr_range is set as well, and both
|
1196
|
+
# Optional. An alternate to ip_cidr_range. Can be set when trying to create an
|
1197
|
+
# IPv4 reservation that automatically finds a free range of the given size. If
|
1198
|
+
# both ip_cidr_range and prefix_length are set, there is an error if the range
|
1199
|
+
# sizes do not match. Can also be used during updates to change the range size.
|
1200
|
+
# NOTE: For IPv6 this field only works if ip_cidr_range is set as well, and both
|
1163
1201
|
# fields must match. In other words, with IPv6 this field only works as a
|
1164
1202
|
# redundant parameter.
|
1165
1203
|
# Corresponds to the JSON property `prefixLength`
|
@@ -1179,7 +1217,7 @@ module Google
|
|
1179
1217
|
# @return [String]
|
1180
1218
|
attr_accessor :update_time
|
1181
1219
|
|
1182
|
-
# The type of usage set for this InternalRange.
|
1220
|
+
# Optional. The type of usage set for this InternalRange.
|
1183
1221
|
# Corresponds to the JSON property `usage`
|
1184
1222
|
# @return [String]
|
1185
1223
|
attr_accessor :usage
|
@@ -1200,6 +1238,7 @@ module Google
|
|
1200
1238
|
|
1201
1239
|
# Update properties of this object
|
1202
1240
|
def update!(**args)
|
1241
|
+
@allocation_options = args[:allocation_options] if args.key?(:allocation_options)
|
1203
1242
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1204
1243
|
@description = args[:description] if args.key?(:description)
|
1205
1244
|
@exclude_cidr_ranges = args[:exclude_cidr_ranges] if args.key?(:exclude_cidr_ranges)
|
@@ -1303,8 +1342,8 @@ module Google
|
|
1303
1342
|
# @return [Array<String>]
|
1304
1343
|
attr_accessor :proposed_exclude_export_ranges
|
1305
1344
|
|
1306
|
-
#
|
1307
|
-
# s approval.
|
1345
|
+
# Output only. The proposed include export IP ranges waiting for hub
|
1346
|
+
# administration's approval.
|
1308
1347
|
# Corresponds to the JSON property `proposedIncludeExportRanges`
|
1309
1348
|
# @return [Array<String>]
|
1310
1349
|
attr_accessor :proposed_include_export_ranges
|
@@ -1409,8 +1448,8 @@ module Google
|
|
1409
1448
|
# @return [Array<String>]
|
1410
1449
|
attr_accessor :proposed_exclude_export_ranges
|
1411
1450
|
|
1412
|
-
#
|
1413
|
-
# s approval.
|
1451
|
+
# Output only. The proposed include export IP ranges waiting for hub
|
1452
|
+
# administration's approval.
|
1414
1453
|
# Corresponds to the JSON property `proposedIncludeExportRanges`
|
1415
1454
|
# @return [Array<String>]
|
1416
1455
|
attr_accessor :proposed_include_export_ranges
|
@@ -2095,6 +2134,37 @@ module Google
|
|
2095
2134
|
end
|
2096
2135
|
end
|
2097
2136
|
|
2137
|
+
# A route next hop that leads to a spoke resource.
|
2138
|
+
class NextHopSpoke
|
2139
|
+
include Google::Apis::Core::Hashable
|
2140
|
+
|
2141
|
+
# Indicates whether site-to-site data transfer is allowed for this spoke
|
2142
|
+
# resource. Data transfer is available only in [supported locations](https://
|
2143
|
+
# cloud.google.com/network-connectivity/docs/network-connectivity-center/
|
2144
|
+
# concepts/locations). Whether this route is accessible to other hybrid spokes
|
2145
|
+
# with site-to-site data transfer enabled. If this is false, the route is only
|
2146
|
+
# accessible to VPC spokes of the connected Hub.
|
2147
|
+
# Corresponds to the JSON property `siteToSiteDataTransfer`
|
2148
|
+
# @return [Boolean]
|
2149
|
+
attr_accessor :site_to_site_data_transfer
|
2150
|
+
alias_method :site_to_site_data_transfer?, :site_to_site_data_transfer
|
2151
|
+
|
2152
|
+
# The URI of the spoke resource.
|
2153
|
+
# Corresponds to the JSON property `uri`
|
2154
|
+
# @return [String]
|
2155
|
+
attr_accessor :uri
|
2156
|
+
|
2157
|
+
def initialize(**args)
|
2158
|
+
update!(**args)
|
2159
|
+
end
|
2160
|
+
|
2161
|
+
# Update properties of this object
|
2162
|
+
def update!(**args)
|
2163
|
+
@site_to_site_data_transfer = args[:site_to_site_data_transfer] if args.key?(:site_to_site_data_transfer)
|
2164
|
+
@uri = args[:uri] if args.key?(:uri)
|
2165
|
+
end
|
2166
|
+
end
|
2167
|
+
|
2098
2168
|
# A route next hop that leads to a VPN tunnel resource.
|
2099
2169
|
class NextHopVpnTunnel
|
2100
2170
|
include Google::Apis::Core::Hashable
|
@@ -2950,6 +3020,11 @@ module Google
|
|
2950
3020
|
# @return [Google::Apis::NetworkconnectivityV1::NextHopRouterApplianceInstance]
|
2951
3021
|
attr_accessor :next_hop_router_appliance_instance
|
2952
3022
|
|
3023
|
+
# A route next hop that leads to a spoke resource.
|
3024
|
+
# Corresponds to the JSON property `nextHopSpoke`
|
3025
|
+
# @return [Google::Apis::NetworkconnectivityV1::NextHopSpoke]
|
3026
|
+
attr_accessor :next_hop_spoke
|
3027
|
+
|
2953
3028
|
# Immutable. The destination VPC network for packets on this route.
|
2954
3029
|
# Corresponds to the JSON property `nextHopVpcNetwork`
|
2955
3030
|
# @return [Google::Apis::NetworkconnectivityV1::NextHopVpcNetwork]
|
@@ -3011,6 +3086,7 @@ module Google
|
|
3011
3086
|
@name = args[:name] if args.key?(:name)
|
3012
3087
|
@next_hop_interconnect_attachment = args[:next_hop_interconnect_attachment] if args.key?(:next_hop_interconnect_attachment)
|
3013
3088
|
@next_hop_router_appliance_instance = args[:next_hop_router_appliance_instance] if args.key?(:next_hop_router_appliance_instance)
|
3089
|
+
@next_hop_spoke = args[:next_hop_spoke] if args.key?(:next_hop_spoke)
|
3014
3090
|
@next_hop_vpc_network = args[:next_hop_vpc_network] if args.key?(:next_hop_vpc_network)
|
3015
3091
|
@next_hop_vpn_tunnel = args[:next_hop_vpn_tunnel] if args.key?(:next_hop_vpn_tunnel)
|
3016
3092
|
@priority = args[:priority] if args.key?(:priority)
|
@@ -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.60.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250527"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,6 +40,12 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class AllocationOptions
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
43
49
|
class AuditConfig
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
51
|
|
@@ -298,6 +304,12 @@ module Google
|
|
298
304
|
include Google::Apis::Core::JsonObjectSupport
|
299
305
|
end
|
300
306
|
|
307
|
+
class NextHopSpoke
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
+
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
|
+
end
|
312
|
+
|
301
313
|
class NextHopVpnTunnel
|
302
314
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
315
|
|
@@ -521,6 +533,14 @@ module Google
|
|
521
533
|
end
|
522
534
|
end
|
523
535
|
|
536
|
+
class AllocationOptions
|
537
|
+
# @private
|
538
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
539
|
+
property :allocation_strategy, as: 'allocationStrategy'
|
540
|
+
property :first_available_ranges_lookup_size, as: 'firstAvailableRangesLookupSize'
|
541
|
+
end
|
542
|
+
end
|
543
|
+
|
524
544
|
class AuditConfig
|
525
545
|
# @private
|
526
546
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -721,6 +741,8 @@ module Google
|
|
721
741
|
class InternalRange
|
722
742
|
# @private
|
723
743
|
class Representation < Google::Apis::Core::JsonRepresentation
|
744
|
+
property :allocation_options, as: 'allocationOptions', class: Google::Apis::NetworkconnectivityV1::AllocationOptions, decorator: Google::Apis::NetworkconnectivityV1::AllocationOptions::Representation
|
745
|
+
|
724
746
|
property :create_time, as: 'createTime'
|
725
747
|
property :description, as: 'description'
|
726
748
|
collection :exclude_cidr_ranges, as: 'excludeCidrRanges'
|
@@ -981,6 +1003,14 @@ module Google
|
|
981
1003
|
end
|
982
1004
|
end
|
983
1005
|
|
1006
|
+
class NextHopSpoke
|
1007
|
+
# @private
|
1008
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1009
|
+
property :site_to_site_data_transfer, as: 'siteToSiteDataTransfer'
|
1010
|
+
property :uri, as: 'uri'
|
1011
|
+
end
|
1012
|
+
end
|
1013
|
+
|
984
1014
|
class NextHopVpnTunnel
|
985
1015
|
# @private
|
986
1016
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1166,6 +1196,8 @@ module Google
|
|
1166
1196
|
|
1167
1197
|
property :next_hop_router_appliance_instance, as: 'nextHopRouterApplianceInstance', class: Google::Apis::NetworkconnectivityV1::NextHopRouterApplianceInstance, decorator: Google::Apis::NetworkconnectivityV1::NextHopRouterApplianceInstance::Representation
|
1168
1198
|
|
1199
|
+
property :next_hop_spoke, as: 'nextHopSpoke', class: Google::Apis::NetworkconnectivityV1::NextHopSpoke, decorator: Google::Apis::NetworkconnectivityV1::NextHopSpoke::Representation
|
1200
|
+
|
1169
1201
|
property :next_hop_vpc_network, as: 'nextHopVpcNetwork', class: Google::Apis::NetworkconnectivityV1::NextHopVpcNetwork, decorator: Google::Apis::NetworkconnectivityV1::NextHopVpcNetwork::Representation
|
1170
1202
|
|
1171
1203
|
property :next_hop_vpn_tunnel, as: 'nextHopVpnTunnel', class: Google::Apis::NetworkconnectivityV1::NextHopVpnTunnel, decorator: Google::Apis::NetworkconnectivityV1::NextHopVpnTunnel::Representation
|
@@ -1522,6 +1522,51 @@ module Google
|
|
1522
1522
|
execute_or_queue_command(command, &block)
|
1523
1523
|
end
|
1524
1524
|
|
1525
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1526
|
+
# resource exists and does not have a policy set.
|
1527
|
+
# @param [String] resource
|
1528
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1529
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1530
|
+
# appropriate value for this field.
|
1531
|
+
# @param [Fixnum] options_requested_policy_version
|
1532
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1533
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1534
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1535
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1536
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1537
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1538
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1539
|
+
# bindings, the response uses version 1. To learn which resources support
|
1540
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1541
|
+
# google.com/iam/help/conditions/resource-policies).
|
1542
|
+
# @param [String] fields
|
1543
|
+
# Selector specifying which fields to include in a partial response.
|
1544
|
+
# @param [String] quota_user
|
1545
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1546
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1547
|
+
# @param [Google::Apis::RequestOptions] options
|
1548
|
+
# Request-specific options
|
1549
|
+
#
|
1550
|
+
# @yield [result, err] Result & error if block supplied
|
1551
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
|
1552
|
+
# @yieldparam err [StandardError] error object if request failed
|
1553
|
+
#
|
1554
|
+
# @return [Google::Apis::NetworkconnectivityV1::Policy]
|
1555
|
+
#
|
1556
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1557
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1558
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1559
|
+
def get_project_location_internal_range_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1560
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1561
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
|
1562
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::Policy
|
1563
|
+
command.params['resource'] = resource unless resource.nil?
|
1564
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1565
|
+
command.query['fields'] = fields unless fields.nil?
|
1566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1567
|
+
execute_or_queue_command(command, &block)
|
1568
|
+
end
|
1569
|
+
|
1525
1570
|
# Lists internal ranges in a given project and location.
|
1526
1571
|
# @param [String] parent
|
1527
1572
|
# Required. The parent resource's name.
|
@@ -1566,9 +1611,9 @@ module Google
|
|
1566
1611
|
|
1567
1612
|
# Updates the parameters of a single internal range.
|
1568
1613
|
# @param [String] name
|
1569
|
-
#
|
1570
|
-
#
|
1571
|
-
# fields-representing-resource-names
|
1614
|
+
# Identifier. The name of an internal range. Format: projects/`project`/
|
1615
|
+
# locations/`location`/internalRanges/`internal_range` See: https://google.aip.
|
1616
|
+
# dev/122#fields-representing-resource-names
|
1572
1617
|
# @param [Google::Apis::NetworkconnectivityV1::InternalRange] internal_range_object
|
1573
1618
|
# @param [String] request_id
|
1574
1619
|
# Optional. An optional request ID to identify requests. Specify a unique
|
@@ -1618,6 +1663,82 @@ module Google
|
|
1618
1663
|
execute_or_queue_command(command, &block)
|
1619
1664
|
end
|
1620
1665
|
|
1666
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1667
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1668
|
+
# PERMISSION_DENIED` errors.
|
1669
|
+
# @param [String] resource
|
1670
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1671
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1672
|
+
# appropriate value for this field.
|
1673
|
+
# @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1674
|
+
# @param [String] fields
|
1675
|
+
# Selector specifying which fields to include in a partial response.
|
1676
|
+
# @param [String] quota_user
|
1677
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1678
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1679
|
+
# @param [Google::Apis::RequestOptions] options
|
1680
|
+
# Request-specific options
|
1681
|
+
#
|
1682
|
+
# @yield [result, err] Result & error if block supplied
|
1683
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
|
1684
|
+
# @yieldparam err [StandardError] error object if request failed
|
1685
|
+
#
|
1686
|
+
# @return [Google::Apis::NetworkconnectivityV1::Policy]
|
1687
|
+
#
|
1688
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1689
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1690
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1691
|
+
def set_internal_range_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1692
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1693
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
|
1694
|
+
command.request_object = set_iam_policy_request_object
|
1695
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
|
1696
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::Policy
|
1697
|
+
command.params['resource'] = resource unless resource.nil?
|
1698
|
+
command.query['fields'] = fields unless fields.nil?
|
1699
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1700
|
+
execute_or_queue_command(command, &block)
|
1701
|
+
end
|
1702
|
+
|
1703
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1704
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1705
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1706
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1707
|
+
# This operation may "fail open" without warning.
|
1708
|
+
# @param [String] resource
|
1709
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1710
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1711
|
+
# appropriate value for this field.
|
1712
|
+
# @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1713
|
+
# @param [String] fields
|
1714
|
+
# Selector specifying which fields to include in a partial response.
|
1715
|
+
# @param [String] quota_user
|
1716
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1717
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1718
|
+
# @param [Google::Apis::RequestOptions] options
|
1719
|
+
# Request-specific options
|
1720
|
+
#
|
1721
|
+
# @yield [result, err] Result & error if block supplied
|
1722
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
|
1723
|
+
# @yieldparam err [StandardError] error object if request failed
|
1724
|
+
#
|
1725
|
+
# @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
|
1726
|
+
#
|
1727
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1728
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1729
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1730
|
+
def test_internal_range_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1731
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1732
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
|
1733
|
+
command.request_object = test_iam_permissions_request_object
|
1734
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
|
1735
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
|
1736
|
+
command.params['resource'] = resource unless resource.nil?
|
1737
|
+
command.query['fields'] = fields unless fields.nil?
|
1738
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1739
|
+
execute_or_queue_command(command, &block)
|
1740
|
+
end
|
1741
|
+
|
1621
1742
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
1622
1743
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
1623
1744
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.60.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkconnectivity_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.60.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkconnectivity_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '3.1'
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.9
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Network Connectivity API V1
|
79
79
|
test_files: []
|