google-api-client 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +28 -3
- data/api_names.yaml +1 -0
- data/api_names_out.yaml +418 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +2 -3
- data/generated/google/apis/adsense_v1_4/service.rb +1 -2
- data/generated/google/apis/adsensehost_v4_1.rb +3 -3
- data/generated/google/apis/adsensehost_v4_1/service.rb +2 -2
- data/generated/google/apis/analytics_v3.rb +2 -2
- data/generated/google/apis/analytics_v3/classes.rb +42 -0
- data/generated/google/apis/analytics_v3/representations.rb +6 -0
- data/generated/google/apis/analytics_v3/service.rb +3 -3
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/classes.rb +16 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +2 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +200 -13
- data/generated/google/apis/bigquery_v2/representations.rb +54 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +6 -0
- data/generated/google/apis/books_v1/representations.rb +1 -0
- data/generated/google/apis/books_v1/service.rb +4 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +2 -3
- data/generated/google/apis/cloudbuild_v1/classes.rb +7 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +1 -2
- data/generated/google/apis/clouddebugger_v2.rb +2 -2
- data/generated/google/apis/clouddebugger_v2/classes.rb +8 -1
- data/generated/google/apis/clouddebugger_v2/representations.rb +1 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +26 -6
- data/generated/google/apis/cloudlatencytest_v2.rb +2 -2
- data/generated/google/apis/cloudlatencytest_v2/service.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +2 -2
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +355 -0
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +181 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +373 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/clouduseraccounts_beta.rb +3 -2
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +52 -30
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +1 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +110 -57
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +324 -101
- data/generated/google/apis/compute_beta/representations.rb +78 -0
- data/generated/google/apis/compute_beta/service.rb +1599 -208
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +96 -79
- data/generated/google/apis/compute_v1/service.rb +199 -169
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +6 -0
- data/generated/google/apis/content_v2/representations.rb +1 -0
- data/generated/google/apis/content_v2/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/service.rb +10 -10
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2/service.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +9 -2
- data/generated/google/apis/games_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1.rb +4 -5
- data/generated/google/apis/genomics_v1/classes.rb +51 -0
- data/generated/google/apis/genomics_v1/representations.rb +17 -0
- data/generated/google/apis/genomics_v1/service.rb +44 -8
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/gmail_v1/classes.rb +19 -0
- data/generated/google/apis/gmail_v1/representations.rb +13 -0
- data/generated/google/apis/gmail_v1/service.rb +43 -2
- data/generated/google/apis/iam_v1.rb +36 -0
- data/generated/google/apis/iam_v1/classes.rb +665 -0
- data/generated/google/apis/iam_v1/representations.rb +325 -0
- data/generated/google/apis/iam_v1/service.rb +520 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +306 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +85 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +42 -1
- data/generated/google/apis/pagespeedonline_v2.rb +2 -2
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
- data/generated/google/apis/qpx_express_v1.rb +2 -2
- data/generated/google/apis/qpx_express_v1/service.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +2 -3
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -2
- data/generated/google/apis/reseller_v1.rb +2 -2
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/site_verification_v1.rb +2 -2
- data/generated/google/apis/site_verification_v1/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +2 -2
- data/generated/google/apis/storage_v1/service.rb +1 -1
- data/generated/google/apis/tagmanager_v1.rb +2 -2
- data/generated/google/apis/tagmanager_v1/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/service.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +8 -0
- data/generated/google/apis/youtube_v3/representations.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +3 -3
- data/generated/google/apis/youtubereporting_v1/classes.rb +1 -2
- data/generated/google/apis/youtubereporting_v1/service.rb +4 -4
- data/lib/google/apis/core/base_service.rb +84 -6
- data/lib/google/apis/version.rb +1 -1
- data/script/generate +2 -0
- data/spec/google/apis/core/service_spec.rb +66 -0
- metadata +10 -2
|
@@ -160,6 +160,12 @@ module Google
|
|
|
160
160
|
include Google::Apis::Core::JsonObjectSupport
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
+
class CacheInvalidationRule
|
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
|
+
|
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
167
|
+
end
|
|
168
|
+
|
|
163
169
|
class CustomerEncryptionKey
|
|
164
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
171
|
|
|
@@ -304,6 +310,12 @@ module Google
|
|
|
304
310
|
include Google::Apis::Core::JsonObjectSupport
|
|
305
311
|
end
|
|
306
312
|
|
|
313
|
+
class GlobalSetLabelsRequest
|
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
315
|
+
|
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
317
|
+
end
|
|
318
|
+
|
|
307
319
|
class HealthCheckReference
|
|
308
320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
309
321
|
|
|
@@ -1162,6 +1174,18 @@ module Google
|
|
|
1162
1174
|
include Google::Apis::Core::JsonObjectSupport
|
|
1163
1175
|
end
|
|
1164
1176
|
|
|
1177
|
+
class TestPermissionsRequest
|
|
1178
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1179
|
+
|
|
1180
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1181
|
+
end
|
|
1182
|
+
|
|
1183
|
+
class TestPermissionsResponse
|
|
1184
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1185
|
+
|
|
1186
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1187
|
+
end
|
|
1188
|
+
|
|
1165
1189
|
class UrlMap
|
|
1166
1190
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1167
1191
|
|
|
@@ -1264,6 +1288,12 @@ module Google
|
|
|
1264
1288
|
include Google::Apis::Core::JsonObjectSupport
|
|
1265
1289
|
end
|
|
1266
1290
|
|
|
1291
|
+
class ZoneSetLabelsRequest
|
|
1292
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1293
|
+
|
|
1294
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1295
|
+
end
|
|
1296
|
+
|
|
1267
1297
|
class AccessConfig
|
|
1268
1298
|
# @private
|
|
1269
1299
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1501,6 +1531,7 @@ module Google
|
|
|
1501
1531
|
|
|
1502
1532
|
property :creation_timestamp, as: 'creationTimestamp'
|
|
1503
1533
|
property :description, as: 'description'
|
|
1534
|
+
property :enable_cdn, as: 'enableCDN'
|
|
1504
1535
|
property :fingerprint, :base64 => true, as: 'fingerprint'
|
|
1505
1536
|
collection :health_checks, as: 'healthChecks'
|
|
1506
1537
|
property :id, as: 'id'
|
|
@@ -1535,6 +1566,13 @@ module Google
|
|
|
1535
1566
|
end
|
|
1536
1567
|
end
|
|
1537
1568
|
|
|
1569
|
+
class CacheInvalidationRule
|
|
1570
|
+
# @private
|
|
1571
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1572
|
+
property :path, as: 'path'
|
|
1573
|
+
end
|
|
1574
|
+
end
|
|
1575
|
+
|
|
1538
1576
|
class CustomerEncryptionKey
|
|
1539
1577
|
# @private
|
|
1540
1578
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1564,6 +1602,8 @@ module Google
|
|
|
1564
1602
|
|
|
1565
1603
|
property :id, as: 'id'
|
|
1566
1604
|
property :kind, as: 'kind'
|
|
1605
|
+
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
|
1606
|
+
hash :labels, as: 'labels'
|
|
1567
1607
|
property :last_attach_timestamp, as: 'lastAttachTimestamp'
|
|
1568
1608
|
property :last_detach_timestamp, as: 'lastDetachTimestamp'
|
|
1569
1609
|
collection :licenses, as: 'licenses'
|
|
@@ -1822,6 +1862,14 @@ module Google
|
|
|
1822
1862
|
end
|
|
1823
1863
|
end
|
|
1824
1864
|
|
|
1865
|
+
class GlobalSetLabelsRequest
|
|
1866
|
+
# @private
|
|
1867
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1868
|
+
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
|
1869
|
+
hash :labels, as: 'labels'
|
|
1870
|
+
end
|
|
1871
|
+
end
|
|
1872
|
+
|
|
1825
1873
|
class HealthCheckReference
|
|
1826
1874
|
# @private
|
|
1827
1875
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1924,6 +1972,8 @@ module Google
|
|
|
1924
1972
|
property :image_encryption_key, as: 'imageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
|
|
1925
1973
|
|
|
1926
1974
|
property :kind, as: 'kind'
|
|
1975
|
+
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
|
1976
|
+
hash :labels, as: 'labels'
|
|
1927
1977
|
collection :licenses, as: 'licenses'
|
|
1928
1978
|
property :name, as: 'name'
|
|
1929
1979
|
property :raw_disk, as: 'rawDisk', class: Google::Apis::ComputeBeta::Image::RawDisk, decorator: Google::Apis::ComputeBeta::Image::RawDisk::Representation
|
|
@@ -2714,6 +2764,7 @@ module Google
|
|
|
2714
2764
|
property :common_instance_metadata, as: 'commonInstanceMetadata', class: Google::Apis::ComputeBeta::Metadata, decorator: Google::Apis::ComputeBeta::Metadata::Representation
|
|
2715
2765
|
|
|
2716
2766
|
property :creation_timestamp, as: 'creationTimestamp'
|
|
2767
|
+
property :default_service_account, as: 'defaultServiceAccount'
|
|
2717
2768
|
property :description, as: 'description'
|
|
2718
2769
|
collection :enabled_features, as: 'enabledFeatures'
|
|
2719
2770
|
property :id, as: 'id'
|
|
@@ -2922,6 +2973,7 @@ module Google
|
|
|
2922
2973
|
property :state, as: 'state'
|
|
2923
2974
|
property :status, as: 'status'
|
|
2924
2975
|
property :uptime, as: 'uptime'
|
|
2976
|
+
property :uptime_seconds, as: 'uptimeSeconds'
|
|
2925
2977
|
end
|
|
2926
2978
|
end
|
|
2927
2979
|
|
|
@@ -2976,7 +3028,9 @@ module Google
|
|
|
2976
3028
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2977
3029
|
property :contents, as: 'contents'
|
|
2978
3030
|
property :kind, as: 'kind'
|
|
3031
|
+
property :next, as: 'next'
|
|
2979
3032
|
property :self_link, as: 'selfLink'
|
|
3033
|
+
property :start, as: 'start'
|
|
2980
3034
|
end
|
|
2981
3035
|
end
|
|
2982
3036
|
|
|
@@ -2996,6 +3050,8 @@ module Google
|
|
|
2996
3050
|
property :disk_size_gb, as: 'diskSizeGb'
|
|
2997
3051
|
property :id, as: 'id'
|
|
2998
3052
|
property :kind, as: 'kind'
|
|
3053
|
+
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
|
3054
|
+
hash :labels, as: 'labels'
|
|
2999
3055
|
collection :licenses, as: 'licenses'
|
|
3000
3056
|
property :name, as: 'name'
|
|
3001
3057
|
property :self_link, as: 'selfLink'
|
|
@@ -3447,6 +3503,20 @@ module Google
|
|
|
3447
3503
|
end
|
|
3448
3504
|
end
|
|
3449
3505
|
|
|
3506
|
+
class TestPermissionsRequest
|
|
3507
|
+
# @private
|
|
3508
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3509
|
+
collection :permissions, as: 'permissions'
|
|
3510
|
+
end
|
|
3511
|
+
end
|
|
3512
|
+
|
|
3513
|
+
class TestPermissionsResponse
|
|
3514
|
+
# @private
|
|
3515
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3516
|
+
collection :permissions, as: 'permissions'
|
|
3517
|
+
end
|
|
3518
|
+
end
|
|
3519
|
+
|
|
3450
3520
|
class UrlMap
|
|
3451
3521
|
# @private
|
|
3452
3522
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -3644,6 +3714,14 @@ module Google
|
|
|
3644
3714
|
property :self_link, as: 'selfLink'
|
|
3645
3715
|
end
|
|
3646
3716
|
end
|
|
3717
|
+
|
|
3718
|
+
class ZoneSetLabelsRequest
|
|
3719
|
+
# @private
|
|
3720
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
3721
|
+
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
|
3722
|
+
hash :labels, as: 'labels'
|
|
3723
|
+
end
|
|
3724
|
+
end
|
|
3647
3725
|
end
|
|
3648
3726
|
end
|
|
3649
3727
|
end
|
|
@@ -66,7 +66,7 @@ module Google
|
|
|
66
66
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
67
67
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
68
68
|
# must match the entire field.
|
|
69
|
-
# For example, to filter for instances
|
|
69
|
+
# For example, to filter for instances that do not have a name of example-
|
|
70
70
|
# instance, you would use filter=name ne example-instance.
|
|
71
71
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
72
72
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -76,7 +76,7 @@ module Google
|
|
|
76
76
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
77
77
|
# separate expression within parentheses. For example, (scheduling.
|
|
78
78
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
79
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
79
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
80
80
|
# to pass the filters.
|
|
81
81
|
# @param [Fixnum] max_results
|
|
82
82
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
# @param [String] project
|
|
136
136
|
# Project ID for this request.
|
|
137
137
|
# @param [String] region
|
|
138
|
-
#
|
|
138
|
+
# Name of the region for this request.
|
|
139
139
|
# @param [String] address
|
|
140
140
|
# Name of the address resource to delete.
|
|
141
141
|
# @param [String] fields
|
|
@@ -176,7 +176,7 @@ module Google
|
|
|
176
176
|
# @param [String] project
|
|
177
177
|
# Project ID for this request.
|
|
178
178
|
# @param [String] region
|
|
179
|
-
#
|
|
179
|
+
# Name of the region for this request.
|
|
180
180
|
# @param [String] address
|
|
181
181
|
# Name of the address resource to return.
|
|
182
182
|
# @param [String] fields
|
|
@@ -218,7 +218,7 @@ module Google
|
|
|
218
218
|
# @param [String] project
|
|
219
219
|
# Project ID for this request.
|
|
220
220
|
# @param [String] region
|
|
221
|
-
#
|
|
221
|
+
# Name of the region for this request.
|
|
222
222
|
# @param [Google::Apis::ComputeBeta::Address] address_object
|
|
223
223
|
# @param [String] fields
|
|
224
224
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -259,7 +259,7 @@ module Google
|
|
|
259
259
|
# @param [String] project
|
|
260
260
|
# Project ID for this request.
|
|
261
261
|
# @param [String] region
|
|
262
|
-
#
|
|
262
|
+
# Name of the region for this request.
|
|
263
263
|
# @param [String] filter
|
|
264
264
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
265
265
|
# expression`. Your `expression` must be in the format: field_name
|
|
@@ -271,7 +271,7 @@ module Google
|
|
|
271
271
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
272
272
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
273
273
|
# must match the entire field.
|
|
274
|
-
# For example, to filter for instances
|
|
274
|
+
# For example, to filter for instances that do not have a name of example-
|
|
275
275
|
# instance, you would use filter=name ne example-instance.
|
|
276
276
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
277
277
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -281,7 +281,7 @@ module Google
|
|
|
281
281
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
282
282
|
# separate expression within parentheses. For example, (scheduling.
|
|
283
283
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
284
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
284
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
285
285
|
# to pass the filters.
|
|
286
286
|
# @param [Fixnum] max_results
|
|
287
287
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -337,6 +337,50 @@ module Google
|
|
|
337
337
|
execute_or_queue_command(command, &block)
|
|
338
338
|
end
|
|
339
339
|
|
|
340
|
+
# Returns permissions that a caller has on the specified resource.
|
|
341
|
+
# @param [String] project
|
|
342
|
+
# Project ID for this request.
|
|
343
|
+
# @param [String] region
|
|
344
|
+
# The name of the region for this request.
|
|
345
|
+
# @param [String] resource
|
|
346
|
+
# Name of the resource for this request.
|
|
347
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
348
|
+
# @param [String] fields
|
|
349
|
+
# Selector specifying which fields to include in a partial response.
|
|
350
|
+
# @param [String] quota_user
|
|
351
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
352
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
353
|
+
# Overrides userIp if both are provided.
|
|
354
|
+
# @param [String] user_ip
|
|
355
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
356
|
+
# enforce per-user limits.
|
|
357
|
+
# @param [Google::Apis::RequestOptions] options
|
|
358
|
+
# Request-specific options
|
|
359
|
+
#
|
|
360
|
+
# @yield [result, err] Result & error if block supplied
|
|
361
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
362
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
363
|
+
#
|
|
364
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
365
|
+
#
|
|
366
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
367
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
368
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
369
|
+
def test_address_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
370
|
+
command = make_simple_command(:post, '{project}/regions/{region}/addresses/{resource}/testIamPermissions', options)
|
|
371
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
372
|
+
command.request_object = test_permissions_request_object
|
|
373
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
374
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
375
|
+
command.params['project'] = project unless project.nil?
|
|
376
|
+
command.params['region'] = region unless region.nil?
|
|
377
|
+
command.params['resource'] = resource unless resource.nil?
|
|
378
|
+
command.query['fields'] = fields unless fields.nil?
|
|
379
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
380
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
381
|
+
execute_or_queue_command(command, &block)
|
|
382
|
+
end
|
|
383
|
+
|
|
340
384
|
# Retrieves an aggregated list of autoscalers.
|
|
341
385
|
# @param [String] project
|
|
342
386
|
# Project ID for this request.
|
|
@@ -351,7 +395,7 @@ module Google
|
|
|
351
395
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
352
396
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
353
397
|
# must match the entire field.
|
|
354
|
-
# For example, to filter for instances
|
|
398
|
+
# For example, to filter for instances that do not have a name of example-
|
|
355
399
|
# instance, you would use filter=name ne example-instance.
|
|
356
400
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
357
401
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -361,7 +405,7 @@ module Google
|
|
|
361
405
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
362
406
|
# separate expression within parentheses. For example, (scheduling.
|
|
363
407
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
364
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
408
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
365
409
|
# to pass the filters.
|
|
366
410
|
# @param [Fixnum] max_results
|
|
367
411
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -416,13 +460,13 @@ module Google
|
|
|
416
460
|
execute_or_queue_command(command, &block)
|
|
417
461
|
end
|
|
418
462
|
|
|
419
|
-
# Deletes the specified autoscaler
|
|
463
|
+
# Deletes the specified autoscaler.
|
|
420
464
|
# @param [String] project
|
|
421
465
|
# Project ID for this request.
|
|
422
466
|
# @param [String] zone
|
|
423
|
-
# Name of the zone
|
|
467
|
+
# Name of the zone for this request.
|
|
424
468
|
# @param [String] autoscaler
|
|
425
|
-
# Name of the
|
|
469
|
+
# Name of the autoscaler to delete.
|
|
426
470
|
# @param [String] fields
|
|
427
471
|
# Selector specifying which fields to include in a partial response.
|
|
428
472
|
# @param [String] quota_user
|
|
@@ -457,13 +501,14 @@ module Google
|
|
|
457
501
|
execute_or_queue_command(command, &block)
|
|
458
502
|
end
|
|
459
503
|
|
|
460
|
-
# Returns the specified autoscaler resource.
|
|
504
|
+
# Returns the specified autoscaler resource. Get a list of available autoscalers
|
|
505
|
+
# by making a list() request.
|
|
461
506
|
# @param [String] project
|
|
462
507
|
# Project ID for this request.
|
|
463
508
|
# @param [String] zone
|
|
464
|
-
# Name of the zone
|
|
509
|
+
# Name of the zone for this request.
|
|
465
510
|
# @param [String] autoscaler
|
|
466
|
-
# Name of the
|
|
511
|
+
# Name of the autoscaler to return.
|
|
467
512
|
# @param [String] fields
|
|
468
513
|
# Selector specifying which fields to include in a partial response.
|
|
469
514
|
# @param [String] quota_user
|
|
@@ -498,12 +543,12 @@ module Google
|
|
|
498
543
|
execute_or_queue_command(command, &block)
|
|
499
544
|
end
|
|
500
545
|
|
|
501
|
-
# Creates an autoscaler
|
|
502
|
-
#
|
|
546
|
+
# Creates an autoscaler in the specified project using the data included in the
|
|
547
|
+
# request.
|
|
503
548
|
# @param [String] project
|
|
504
549
|
# Project ID for this request.
|
|
505
550
|
# @param [String] zone
|
|
506
|
-
# Name of the zone
|
|
551
|
+
# Name of the zone for this request.
|
|
507
552
|
# @param [Google::Apis::ComputeBeta::Autoscaler] autoscaler_object
|
|
508
553
|
# @param [String] fields
|
|
509
554
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -540,11 +585,11 @@ module Google
|
|
|
540
585
|
execute_or_queue_command(command, &block)
|
|
541
586
|
end
|
|
542
587
|
|
|
543
|
-
# Retrieves a list of
|
|
588
|
+
# Retrieves a list of autoscalers contained within the specified zone.
|
|
544
589
|
# @param [String] project
|
|
545
590
|
# Project ID for this request.
|
|
546
591
|
# @param [String] zone
|
|
547
|
-
# Name of the zone
|
|
592
|
+
# Name of the zone for this request.
|
|
548
593
|
# @param [String] filter
|
|
549
594
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
550
595
|
# expression`. Your `expression` must be in the format: field_name
|
|
@@ -556,7 +601,7 @@ module Google
|
|
|
556
601
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
557
602
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
558
603
|
# must match the entire field.
|
|
559
|
-
# For example, to filter for instances
|
|
604
|
+
# For example, to filter for instances that do not have a name of example-
|
|
560
605
|
# instance, you would use filter=name ne example-instance.
|
|
561
606
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
562
607
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -566,7 +611,7 @@ module Google
|
|
|
566
611
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
567
612
|
# separate expression within parentheses. For example, (scheduling.
|
|
568
613
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
569
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
614
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
570
615
|
# to pass the filters.
|
|
571
616
|
# @param [Fixnum] max_results
|
|
572
617
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -622,14 +667,14 @@ module Google
|
|
|
622
667
|
execute_or_queue_command(command, &block)
|
|
623
668
|
end
|
|
624
669
|
|
|
625
|
-
# Updates an autoscaler
|
|
626
|
-
#
|
|
670
|
+
# Updates an autoscaler in the specified project using the data included in the
|
|
671
|
+
# request. This method supports patch semantics.
|
|
627
672
|
# @param [String] project
|
|
628
673
|
# Project ID for this request.
|
|
629
674
|
# @param [String] zone
|
|
630
|
-
# Name of the zone
|
|
675
|
+
# Name of the zone for this request.
|
|
631
676
|
# @param [String] autoscaler
|
|
632
|
-
# Name of the autoscaler
|
|
677
|
+
# Name of the autoscaler to update.
|
|
633
678
|
# @param [Google::Apis::ComputeBeta::Autoscaler] autoscaler_object
|
|
634
679
|
# @param [String] fields
|
|
635
680
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -667,15 +712,59 @@ module Google
|
|
|
667
712
|
execute_or_queue_command(command, &block)
|
|
668
713
|
end
|
|
669
714
|
|
|
670
|
-
#
|
|
671
|
-
# included in the request.
|
|
715
|
+
# Returns permissions that a caller has on the specified resource.
|
|
672
716
|
# @param [String] project
|
|
673
717
|
# Project ID for this request.
|
|
674
718
|
# @param [String] zone
|
|
675
|
-
#
|
|
719
|
+
# The name of the zone for this request.
|
|
720
|
+
# @param [String] resource
|
|
721
|
+
# Name of the resource for this request.
|
|
722
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
723
|
+
# @param [String] fields
|
|
724
|
+
# Selector specifying which fields to include in a partial response.
|
|
725
|
+
# @param [String] quota_user
|
|
726
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
727
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
728
|
+
# Overrides userIp if both are provided.
|
|
729
|
+
# @param [String] user_ip
|
|
730
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
731
|
+
# enforce per-user limits.
|
|
732
|
+
# @param [Google::Apis::RequestOptions] options
|
|
733
|
+
# Request-specific options
|
|
734
|
+
#
|
|
735
|
+
# @yield [result, err] Result & error if block supplied
|
|
736
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
737
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
738
|
+
#
|
|
739
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
740
|
+
#
|
|
741
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
742
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
743
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
744
|
+
def test_autoscaler_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
745
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions', options)
|
|
746
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
747
|
+
command.request_object = test_permissions_request_object
|
|
748
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
749
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
750
|
+
command.params['project'] = project unless project.nil?
|
|
751
|
+
command.params['zone'] = zone unless zone.nil?
|
|
752
|
+
command.params['resource'] = resource unless resource.nil?
|
|
753
|
+
command.query['fields'] = fields unless fields.nil?
|
|
754
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
755
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
756
|
+
execute_or_queue_command(command, &block)
|
|
757
|
+
end
|
|
758
|
+
|
|
759
|
+
# Updates an autoscaler in the specified project using the data included in the
|
|
760
|
+
# request.
|
|
761
|
+
# @param [String] project
|
|
762
|
+
# Project ID for this request.
|
|
763
|
+
# @param [String] zone
|
|
764
|
+
# Name of the zone for this request.
|
|
676
765
|
# @param [Google::Apis::ComputeBeta::Autoscaler] autoscaler_object
|
|
677
766
|
# @param [String] autoscaler
|
|
678
|
-
# Name of the autoscaler
|
|
767
|
+
# Name of the autoscaler to update.
|
|
679
768
|
# @param [String] fields
|
|
680
769
|
# Selector specifying which fields to include in a partial response.
|
|
681
770
|
# @param [String] quota_user
|
|
@@ -750,7 +839,8 @@ module Google
|
|
|
750
839
|
execute_or_queue_command(command, &block)
|
|
751
840
|
end
|
|
752
841
|
|
|
753
|
-
# Returns the specified BackendService resource.
|
|
842
|
+
# Returns the specified BackendService resource. Get a list of available backend
|
|
843
|
+
# services by making a list() request.
|
|
754
844
|
# @param [String] project
|
|
755
845
|
# Project ID for this request.
|
|
756
846
|
# @param [String] backend_service
|
|
@@ -884,7 +974,7 @@ module Google
|
|
|
884
974
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
885
975
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
886
976
|
# must match the entire field.
|
|
887
|
-
# For example, to filter for instances
|
|
977
|
+
# For example, to filter for instances that do not have a name of example-
|
|
888
978
|
# instance, you would use filter=name ne example-instance.
|
|
889
979
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
890
980
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -894,7 +984,7 @@ module Google
|
|
|
894
984
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
895
985
|
# separate expression within parentheses. For example, (scheduling.
|
|
896
986
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
897
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
987
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
898
988
|
# to pass the filters.
|
|
899
989
|
# @param [Fixnum] max_results
|
|
900
990
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -993,6 +1083,47 @@ module Google
|
|
|
993
1083
|
execute_or_queue_command(command, &block)
|
|
994
1084
|
end
|
|
995
1085
|
|
|
1086
|
+
# Returns permissions that a caller has on the specified resource.
|
|
1087
|
+
# @param [String] project
|
|
1088
|
+
# Project ID for this request.
|
|
1089
|
+
# @param [String] resource
|
|
1090
|
+
# Name of the resource for this request.
|
|
1091
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
1092
|
+
# @param [String] fields
|
|
1093
|
+
# Selector specifying which fields to include in a partial response.
|
|
1094
|
+
# @param [String] quota_user
|
|
1095
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1096
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1097
|
+
# Overrides userIp if both are provided.
|
|
1098
|
+
# @param [String] user_ip
|
|
1099
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1100
|
+
# enforce per-user limits.
|
|
1101
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1102
|
+
# Request-specific options
|
|
1103
|
+
#
|
|
1104
|
+
# @yield [result, err] Result & error if block supplied
|
|
1105
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
1106
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1107
|
+
#
|
|
1108
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
1109
|
+
#
|
|
1110
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1111
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1112
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1113
|
+
def test_backend_service_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1114
|
+
command = make_simple_command(:post, '{project}/global/backendServices/{resource}/testIamPermissions', options)
|
|
1115
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
1116
|
+
command.request_object = test_permissions_request_object
|
|
1117
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
1118
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
1119
|
+
command.params['project'] = project unless project.nil?
|
|
1120
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1121
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1122
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1123
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1124
|
+
execute_or_queue_command(command, &block)
|
|
1125
|
+
end
|
|
1126
|
+
|
|
996
1127
|
# Updates the entire content of the BackendService resource. There are several
|
|
997
1128
|
# restrictions and guidelines to keep in mind when updating a backend service.
|
|
998
1129
|
# Read Restrictions and Guidelines for more information.
|
|
@@ -1050,7 +1181,7 @@ module Google
|
|
|
1050
1181
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
1051
1182
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
1052
1183
|
# must match the entire field.
|
|
1053
|
-
# For example, to filter for instances
|
|
1184
|
+
# For example, to filter for instances that do not have a name of example-
|
|
1054
1185
|
# instance, you would use filter=name ne example-instance.
|
|
1055
1186
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
1056
1187
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -1060,7 +1191,7 @@ module Google
|
|
|
1060
1191
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
1061
1192
|
# separate expression within parentheses. For example, (scheduling.
|
|
1062
1193
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
1063
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
1194
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
1064
1195
|
# to pass the filters.
|
|
1065
1196
|
# @param [Fixnum] max_results
|
|
1066
1197
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -1115,7 +1246,8 @@ module Google
|
|
|
1115
1246
|
execute_or_queue_command(command, &block)
|
|
1116
1247
|
end
|
|
1117
1248
|
|
|
1118
|
-
# Returns the specified disk type.
|
|
1249
|
+
# Returns the specified disk type. Get a list of available disk types by making
|
|
1250
|
+
# a list() request.
|
|
1119
1251
|
# @param [String] project
|
|
1120
1252
|
# Project ID for this request.
|
|
1121
1253
|
# @param [String] zone
|
|
@@ -1172,7 +1304,7 @@ module Google
|
|
|
1172
1304
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
1173
1305
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
1174
1306
|
# must match the entire field.
|
|
1175
|
-
# For example, to filter for instances
|
|
1307
|
+
# For example, to filter for instances that do not have a name of example-
|
|
1176
1308
|
# instance, you would use filter=name ne example-instance.
|
|
1177
1309
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
1178
1310
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -1182,7 +1314,7 @@ module Google
|
|
|
1182
1314
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
1183
1315
|
# separate expression within parentheses. For example, (scheduling.
|
|
1184
1316
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
1185
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
1317
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
1186
1318
|
# to pass the filters.
|
|
1187
1319
|
# @param [Fixnum] max_results
|
|
1188
1320
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -1252,7 +1384,7 @@ module Google
|
|
|
1252
1384
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
1253
1385
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
1254
1386
|
# must match the entire field.
|
|
1255
|
-
# For example, to filter for instances
|
|
1387
|
+
# For example, to filter for instances that do not have a name of example-
|
|
1256
1388
|
# instance, you would use filter=name ne example-instance.
|
|
1257
1389
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
1258
1390
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -1262,7 +1394,7 @@ module Google
|
|
|
1262
1394
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
1263
1395
|
# separate expression within parentheses. For example, (scheduling.
|
|
1264
1396
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
1265
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
1397
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
1266
1398
|
# to pass the filters.
|
|
1267
1399
|
# @param [Fixnum] max_results
|
|
1268
1400
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -1404,7 +1536,8 @@ module Google
|
|
|
1404
1536
|
execute_or_queue_command(command, &block)
|
|
1405
1537
|
end
|
|
1406
1538
|
|
|
1407
|
-
# Returns a specified persistent disk.
|
|
1539
|
+
# Returns a specified persistent disk. Get a list of available persistent disks
|
|
1540
|
+
# by making a list() request.
|
|
1408
1541
|
# @param [String] project
|
|
1409
1542
|
# Project ID for this request.
|
|
1410
1543
|
# @param [String] zone
|
|
@@ -1508,7 +1641,7 @@ module Google
|
|
|
1508
1641
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
1509
1642
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
1510
1643
|
# must match the entire field.
|
|
1511
|
-
# For example, to filter for instances
|
|
1644
|
+
# For example, to filter for instances that do not have a name of example-
|
|
1512
1645
|
# instance, you would use filter=name ne example-instance.
|
|
1513
1646
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
1514
1647
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -1518,7 +1651,7 @@ module Google
|
|
|
1518
1651
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
1519
1652
|
# separate expression within parentheses. For example, (scheduling.
|
|
1520
1653
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
1521
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
1654
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
1522
1655
|
# to pass the filters.
|
|
1523
1656
|
# @param [Fixnum] max_results
|
|
1524
1657
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -1618,6 +1751,94 @@ module Google
|
|
|
1618
1751
|
execute_or_queue_command(command, &block)
|
|
1619
1752
|
end
|
|
1620
1753
|
|
|
1754
|
+
# Sets the labels on the target disk.
|
|
1755
|
+
# @param [String] project
|
|
1756
|
+
# Project ID for this request.
|
|
1757
|
+
# @param [String] zone
|
|
1758
|
+
# The name of the zone for this request.
|
|
1759
|
+
# @param [String] resource
|
|
1760
|
+
# Name of the resource for this request.
|
|
1761
|
+
# @param [Google::Apis::ComputeBeta::ZoneSetLabelsRequest] zone_set_labels_request_object
|
|
1762
|
+
# @param [String] fields
|
|
1763
|
+
# Selector specifying which fields to include in a partial response.
|
|
1764
|
+
# @param [String] quota_user
|
|
1765
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1766
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1767
|
+
# Overrides userIp if both are provided.
|
|
1768
|
+
# @param [String] user_ip
|
|
1769
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1770
|
+
# enforce per-user limits.
|
|
1771
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1772
|
+
# Request-specific options
|
|
1773
|
+
#
|
|
1774
|
+
# @yield [result, err] Result & error if block supplied
|
|
1775
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
1776
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1777
|
+
#
|
|
1778
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
1779
|
+
#
|
|
1780
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1781
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1782
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1783
|
+
def set_disk_labels(project, zone, resource, zone_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1784
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/disks/{resource}/setLabels', options)
|
|
1785
|
+
command.request_representation = Google::Apis::ComputeBeta::ZoneSetLabelsRequest::Representation
|
|
1786
|
+
command.request_object = zone_set_labels_request_object
|
|
1787
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
1788
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
1789
|
+
command.params['project'] = project unless project.nil?
|
|
1790
|
+
command.params['zone'] = zone unless zone.nil?
|
|
1791
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1792
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1793
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1794
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1795
|
+
execute_or_queue_command(command, &block)
|
|
1796
|
+
end
|
|
1797
|
+
|
|
1798
|
+
# Returns permissions that a caller has on the specified resource.
|
|
1799
|
+
# @param [String] project
|
|
1800
|
+
# Project ID for this request.
|
|
1801
|
+
# @param [String] zone
|
|
1802
|
+
# The name of the zone for this request.
|
|
1803
|
+
# @param [String] resource
|
|
1804
|
+
# Name of the resource for this request.
|
|
1805
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
1806
|
+
# @param [String] fields
|
|
1807
|
+
# Selector specifying which fields to include in a partial response.
|
|
1808
|
+
# @param [String] quota_user
|
|
1809
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1810
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1811
|
+
# Overrides userIp if both are provided.
|
|
1812
|
+
# @param [String] user_ip
|
|
1813
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1814
|
+
# enforce per-user limits.
|
|
1815
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1816
|
+
# Request-specific options
|
|
1817
|
+
#
|
|
1818
|
+
# @yield [result, err] Result & error if block supplied
|
|
1819
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
1820
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1821
|
+
#
|
|
1822
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
1823
|
+
#
|
|
1824
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1825
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1826
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1827
|
+
def test_disk_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1828
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/disks/{resource}/testIamPermissions', options)
|
|
1829
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
1830
|
+
command.request_object = test_permissions_request_object
|
|
1831
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
1832
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
1833
|
+
command.params['project'] = project unless project.nil?
|
|
1834
|
+
command.params['zone'] = zone unless zone.nil?
|
|
1835
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1836
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1837
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1838
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1839
|
+
execute_or_queue_command(command, &block)
|
|
1840
|
+
end
|
|
1841
|
+
|
|
1621
1842
|
# Deletes the specified firewall.
|
|
1622
1843
|
# @param [String] project
|
|
1623
1844
|
# Project ID for this request.
|
|
@@ -1747,7 +1968,7 @@ module Google
|
|
|
1747
1968
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
1748
1969
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
1749
1970
|
# must match the entire field.
|
|
1750
|
-
# For example, to filter for instances
|
|
1971
|
+
# For example, to filter for instances that do not have a name of example-
|
|
1751
1972
|
# instance, you would use filter=name ne example-instance.
|
|
1752
1973
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
1753
1974
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -1757,7 +1978,7 @@ module Google
|
|
|
1757
1978
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
1758
1979
|
# separate expression within parentheses. For example, (scheduling.
|
|
1759
1980
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
1760
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
1981
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
1761
1982
|
# to pass the filters.
|
|
1762
1983
|
# @param [Fixnum] max_results
|
|
1763
1984
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -1854,6 +2075,47 @@ module Google
|
|
|
1854
2075
|
execute_or_queue_command(command, &block)
|
|
1855
2076
|
end
|
|
1856
2077
|
|
|
2078
|
+
# Returns permissions that a caller has on the specified resource.
|
|
2079
|
+
# @param [String] project
|
|
2080
|
+
# Project ID for this request.
|
|
2081
|
+
# @param [String] resource
|
|
2082
|
+
# Name of the resource for this request.
|
|
2083
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
2084
|
+
# @param [String] fields
|
|
2085
|
+
# Selector specifying which fields to include in a partial response.
|
|
2086
|
+
# @param [String] quota_user
|
|
2087
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2088
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2089
|
+
# Overrides userIp if both are provided.
|
|
2090
|
+
# @param [String] user_ip
|
|
2091
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2092
|
+
# enforce per-user limits.
|
|
2093
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2094
|
+
# Request-specific options
|
|
2095
|
+
#
|
|
2096
|
+
# @yield [result, err] Result & error if block supplied
|
|
2097
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
2098
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2099
|
+
#
|
|
2100
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
2101
|
+
#
|
|
2102
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2103
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2104
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2105
|
+
def test_firewall_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2106
|
+
command = make_simple_command(:post, '{project}/global/firewalls/{resource}/testIamPermissions', options)
|
|
2107
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
2108
|
+
command.request_object = test_permissions_request_object
|
|
2109
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
2110
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
2111
|
+
command.params['project'] = project unless project.nil?
|
|
2112
|
+
command.params['resource'] = resource unless resource.nil?
|
|
2113
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2114
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2115
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2116
|
+
execute_or_queue_command(command, &block)
|
|
2117
|
+
end
|
|
2118
|
+
|
|
1857
2119
|
# Updates the specified firewall rule with the data included in the request.
|
|
1858
2120
|
# @param [String] project
|
|
1859
2121
|
# Project ID for this request.
|
|
@@ -1909,7 +2171,7 @@ module Google
|
|
|
1909
2171
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
1910
2172
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
1911
2173
|
# must match the entire field.
|
|
1912
|
-
# For example, to filter for instances
|
|
2174
|
+
# For example, to filter for instances that do not have a name of example-
|
|
1913
2175
|
# instance, you would use filter=name ne example-instance.
|
|
1914
2176
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
1915
2177
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -1919,7 +2181,7 @@ module Google
|
|
|
1919
2181
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
1920
2182
|
# separate expression within parentheses. For example, (scheduling.
|
|
1921
2183
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
1922
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
2184
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
1923
2185
|
# to pass the filters.
|
|
1924
2186
|
# @param [Fixnum] max_results
|
|
1925
2187
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -2115,7 +2377,7 @@ module Google
|
|
|
2115
2377
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
2116
2378
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
2117
2379
|
# must match the entire field.
|
|
2118
|
-
# For example, to filter for instances
|
|
2380
|
+
# For example, to filter for instances that do not have a name of example-
|
|
2119
2381
|
# instance, you would use filter=name ne example-instance.
|
|
2120
2382
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
2121
2383
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -2125,7 +2387,7 @@ module Google
|
|
|
2125
2387
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
2126
2388
|
# separate expression within parentheses. For example, (scheduling.
|
|
2127
2389
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
2128
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
2390
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
2129
2391
|
# to pass the filters.
|
|
2130
2392
|
# @param [Fixnum] max_results
|
|
2131
2393
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -2226,6 +2488,50 @@ module Google
|
|
|
2226
2488
|
execute_or_queue_command(command, &block)
|
|
2227
2489
|
end
|
|
2228
2490
|
|
|
2491
|
+
# Returns permissions that a caller has on the specified resource.
|
|
2492
|
+
# @param [String] project
|
|
2493
|
+
# Project ID for this request.
|
|
2494
|
+
# @param [String] region
|
|
2495
|
+
# The name of the region for this request.
|
|
2496
|
+
# @param [String] resource
|
|
2497
|
+
# Name of the resource for this request.
|
|
2498
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
2499
|
+
# @param [String] fields
|
|
2500
|
+
# Selector specifying which fields to include in a partial response.
|
|
2501
|
+
# @param [String] quota_user
|
|
2502
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2503
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2504
|
+
# Overrides userIp if both are provided.
|
|
2505
|
+
# @param [String] user_ip
|
|
2506
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2507
|
+
# enforce per-user limits.
|
|
2508
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2509
|
+
# Request-specific options
|
|
2510
|
+
#
|
|
2511
|
+
# @yield [result, err] Result & error if block supplied
|
|
2512
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
2513
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2514
|
+
#
|
|
2515
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
2516
|
+
#
|
|
2517
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2518
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2519
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2520
|
+
def test_forwarding_rule_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2521
|
+
command = make_simple_command(:post, '{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions', options)
|
|
2522
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
2523
|
+
command.request_object = test_permissions_request_object
|
|
2524
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
2525
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
2526
|
+
command.params['project'] = project unless project.nil?
|
|
2527
|
+
command.params['region'] = region unless region.nil?
|
|
2528
|
+
command.params['resource'] = resource unless resource.nil?
|
|
2529
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2530
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2531
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2532
|
+
execute_or_queue_command(command, &block)
|
|
2533
|
+
end
|
|
2534
|
+
|
|
2229
2535
|
# Deletes the specified address resource.
|
|
2230
2536
|
# @param [String] project
|
|
2231
2537
|
# Project ID for this request.
|
|
@@ -2264,7 +2570,8 @@ module Google
|
|
|
2264
2570
|
execute_or_queue_command(command, &block)
|
|
2265
2571
|
end
|
|
2266
2572
|
|
|
2267
|
-
# Returns the specified address resource.
|
|
2573
|
+
# Returns the specified address resource. Get a list of available addresses by
|
|
2574
|
+
# making a list() request.
|
|
2268
2575
|
# @param [String] project
|
|
2269
2576
|
# Project ID for this request.
|
|
2270
2577
|
# @param [String] address
|
|
@@ -2355,7 +2662,7 @@ module Google
|
|
|
2355
2662
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
2356
2663
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
2357
2664
|
# must match the entire field.
|
|
2358
|
-
# For example, to filter for instances
|
|
2665
|
+
# For example, to filter for instances that do not have a name of example-
|
|
2359
2666
|
# instance, you would use filter=name ne example-instance.
|
|
2360
2667
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
2361
2668
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -2365,7 +2672,7 @@ module Google
|
|
|
2365
2672
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
2366
2673
|
# separate expression within parentheses. For example, (scheduling.
|
|
2367
2674
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
2368
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
2675
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
2369
2676
|
# to pass the filters.
|
|
2370
2677
|
# @param [Fixnum] max_results
|
|
2371
2678
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -2420,11 +2727,12 @@ module Google
|
|
|
2420
2727
|
execute_or_queue_command(command, &block)
|
|
2421
2728
|
end
|
|
2422
2729
|
|
|
2423
|
-
#
|
|
2730
|
+
# Returns permissions that a caller has on the specified resource.
|
|
2424
2731
|
# @param [String] project
|
|
2425
2732
|
# Project ID for this request.
|
|
2426
|
-
# @param [String]
|
|
2427
|
-
# Name of the
|
|
2733
|
+
# @param [String] resource
|
|
2734
|
+
# Name of the resource for this request.
|
|
2735
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
2428
2736
|
# @param [String] fields
|
|
2429
2737
|
# Selector specifying which fields to include in a partial response.
|
|
2430
2738
|
# @param [String] quota_user
|
|
@@ -2438,31 +2746,33 @@ module Google
|
|
|
2438
2746
|
# Request-specific options
|
|
2439
2747
|
#
|
|
2440
2748
|
# @yield [result, err] Result & error if block supplied
|
|
2441
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
|
2749
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
2442
2750
|
# @yieldparam err [StandardError] error object if request failed
|
|
2443
2751
|
#
|
|
2444
|
-
# @return [Google::Apis::ComputeBeta::
|
|
2752
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
2445
2753
|
#
|
|
2446
2754
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2447
2755
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2448
2756
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2449
|
-
def
|
|
2450
|
-
command = make_simple_command(:
|
|
2451
|
-
command.
|
|
2452
|
-
command.
|
|
2757
|
+
def test_global_address_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2758
|
+
command = make_simple_command(:post, '{project}/global/addresses/{resource}/testIamPermissions', options)
|
|
2759
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
2760
|
+
command.request_object = test_permissions_request_object
|
|
2761
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
2762
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
2453
2763
|
command.params['project'] = project unless project.nil?
|
|
2454
|
-
command.params['
|
|
2764
|
+
command.params['resource'] = resource unless resource.nil?
|
|
2455
2765
|
command.query['fields'] = fields unless fields.nil?
|
|
2456
2766
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2457
2767
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2458
2768
|
execute_or_queue_command(command, &block)
|
|
2459
2769
|
end
|
|
2460
2770
|
|
|
2461
|
-
#
|
|
2771
|
+
# Deletes the specified ForwardingRule resource.
|
|
2462
2772
|
# @param [String] project
|
|
2463
2773
|
# Project ID for this request.
|
|
2464
2774
|
# @param [String] forwarding_rule
|
|
2465
|
-
# Name of the ForwardingRule resource to
|
|
2775
|
+
# Name of the ForwardingRule resource to delete.
|
|
2466
2776
|
# @param [String] fields
|
|
2467
2777
|
# Selector specifying which fields to include in a partial response.
|
|
2468
2778
|
# @param [String] quota_user
|
|
@@ -2476,7 +2786,46 @@ module Google
|
|
|
2476
2786
|
# Request-specific options
|
|
2477
2787
|
#
|
|
2478
2788
|
# @yield [result, err] Result & error if block supplied
|
|
2479
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
|
2789
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
2790
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2791
|
+
#
|
|
2792
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
2793
|
+
#
|
|
2794
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2795
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2796
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2797
|
+
def delete_global_forwarding_rule(project, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2798
|
+
command = make_simple_command(:delete, '{project}/global/forwardingRules/{forwardingRule}', options)
|
|
2799
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
2800
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
2801
|
+
command.params['project'] = project unless project.nil?
|
|
2802
|
+
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
|
2803
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2804
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2805
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2806
|
+
execute_or_queue_command(command, &block)
|
|
2807
|
+
end
|
|
2808
|
+
|
|
2809
|
+
# Returns the specified ForwardingRule resource. Get a list of available
|
|
2810
|
+
# forwarding rules by making a list() request.
|
|
2811
|
+
# @param [String] project
|
|
2812
|
+
# Project ID for this request.
|
|
2813
|
+
# @param [String] forwarding_rule
|
|
2814
|
+
# Name of the ForwardingRule resource to return.
|
|
2815
|
+
# @param [String] fields
|
|
2816
|
+
# Selector specifying which fields to include in a partial response.
|
|
2817
|
+
# @param [String] quota_user
|
|
2818
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2819
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2820
|
+
# Overrides userIp if both are provided.
|
|
2821
|
+
# @param [String] user_ip
|
|
2822
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2823
|
+
# enforce per-user limits.
|
|
2824
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2825
|
+
# Request-specific options
|
|
2826
|
+
#
|
|
2827
|
+
# @yield [result, err] Result & error if block supplied
|
|
2828
|
+
# @yieldparam result [Google::Apis::ComputeBeta::ForwardingRule] parsed result object
|
|
2480
2829
|
# @yieldparam err [StandardError] error object if request failed
|
|
2481
2830
|
#
|
|
2482
2831
|
# @return [Google::Apis::ComputeBeta::ForwardingRule]
|
|
@@ -2550,7 +2899,7 @@ module Google
|
|
|
2550
2899
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
2551
2900
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
2552
2901
|
# must match the entire field.
|
|
2553
|
-
# For example, to filter for instances
|
|
2902
|
+
# For example, to filter for instances that do not have a name of example-
|
|
2554
2903
|
# instance, you would use filter=name ne example-instance.
|
|
2555
2904
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
2556
2905
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -2560,7 +2909,7 @@ module Google
|
|
|
2560
2909
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
2561
2910
|
# separate expression within parentheses. For example, (scheduling.
|
|
2562
2911
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
2563
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
2912
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
2564
2913
|
# to pass the filters.
|
|
2565
2914
|
# @param [Fixnum] max_results
|
|
2566
2915
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -2657,6 +3006,47 @@ module Google
|
|
|
2657
3006
|
execute_or_queue_command(command, &block)
|
|
2658
3007
|
end
|
|
2659
3008
|
|
|
3009
|
+
# Returns permissions that a caller has on the specified resource.
|
|
3010
|
+
# @param [String] project
|
|
3011
|
+
# Project ID for this request.
|
|
3012
|
+
# @param [String] resource
|
|
3013
|
+
# Name of the resource for this request.
|
|
3014
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
3015
|
+
# @param [String] fields
|
|
3016
|
+
# Selector specifying which fields to include in a partial response.
|
|
3017
|
+
# @param [String] quota_user
|
|
3018
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3019
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3020
|
+
# Overrides userIp if both are provided.
|
|
3021
|
+
# @param [String] user_ip
|
|
3022
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3023
|
+
# enforce per-user limits.
|
|
3024
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3025
|
+
# Request-specific options
|
|
3026
|
+
#
|
|
3027
|
+
# @yield [result, err] Result & error if block supplied
|
|
3028
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
3029
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3030
|
+
#
|
|
3031
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
3032
|
+
#
|
|
3033
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3034
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3035
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3036
|
+
def test_global_forwarding_rule_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3037
|
+
command = make_simple_command(:post, '{project}/global/forwardingRules/{resource}/testIamPermissions', options)
|
|
3038
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
3039
|
+
command.request_object = test_permissions_request_object
|
|
3040
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
3041
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
3042
|
+
command.params['project'] = project unless project.nil?
|
|
3043
|
+
command.params['resource'] = resource unless resource.nil?
|
|
3044
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3045
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3046
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3047
|
+
execute_or_queue_command(command, &block)
|
|
3048
|
+
end
|
|
3049
|
+
|
|
2660
3050
|
# Retrieves an aggregated list of all operations.
|
|
2661
3051
|
# @param [String] project
|
|
2662
3052
|
# Project ID for this request.
|
|
@@ -2671,7 +3061,7 @@ module Google
|
|
|
2671
3061
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
2672
3062
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
2673
3063
|
# must match the entire field.
|
|
2674
|
-
# For example, to filter for instances
|
|
3064
|
+
# For example, to filter for instances that do not have a name of example-
|
|
2675
3065
|
# instance, you would use filter=name ne example-instance.
|
|
2676
3066
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
2677
3067
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -2681,7 +3071,7 @@ module Google
|
|
|
2681
3071
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
2682
3072
|
# separate expression within parentheses. For example, (scheduling.
|
|
2683
3073
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
2684
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
3074
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
2685
3075
|
# to pass the filters.
|
|
2686
3076
|
# @param [Fixnum] max_results
|
|
2687
3077
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -2772,7 +3162,8 @@ module Google
|
|
|
2772
3162
|
execute_or_queue_command(command, &block)
|
|
2773
3163
|
end
|
|
2774
3164
|
|
|
2775
|
-
# Retrieves the specified Operations resource.
|
|
3165
|
+
# Retrieves the specified Operations resource. Get a list of operations by
|
|
3166
|
+
# making a list() request.
|
|
2776
3167
|
# @param [String] project
|
|
2777
3168
|
# Project ID for this request.
|
|
2778
3169
|
# @param [String] operation
|
|
@@ -2824,7 +3215,7 @@ module Google
|
|
|
2824
3215
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
2825
3216
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
2826
3217
|
# must match the entire field.
|
|
2827
|
-
# For example, to filter for instances
|
|
3218
|
+
# For example, to filter for instances that do not have a name of example-
|
|
2828
3219
|
# instance, you would use filter=name ne example-instance.
|
|
2829
3220
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
2830
3221
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -2834,7 +3225,7 @@ module Google
|
|
|
2834
3225
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
2835
3226
|
# separate expression within parentheses. For example, (scheduling.
|
|
2836
3227
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
2837
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
3228
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
2838
3229
|
# to pass the filters.
|
|
2839
3230
|
# @param [Fixnum] max_results
|
|
2840
3231
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -2927,7 +3318,8 @@ module Google
|
|
|
2927
3318
|
execute_or_queue_command(command, &block)
|
|
2928
3319
|
end
|
|
2929
3320
|
|
|
2930
|
-
# Returns the specified HttpHealthCheck resource.
|
|
3321
|
+
# Returns the specified HttpHealthCheck resource. Get a list of available HTTP
|
|
3322
|
+
# health checks by making a list() request.
|
|
2931
3323
|
# @param [String] project
|
|
2932
3324
|
# Project ID for this request.
|
|
2933
3325
|
# @param [String] http_health_check
|
|
@@ -3019,7 +3411,7 @@ module Google
|
|
|
3019
3411
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
3020
3412
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
3021
3413
|
# must match the entire field.
|
|
3022
|
-
# For example, to filter for instances
|
|
3414
|
+
# For example, to filter for instances that do not have a name of example-
|
|
3023
3415
|
# instance, you would use filter=name ne example-instance.
|
|
3024
3416
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
3025
3417
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -3029,7 +3421,7 @@ module Google
|
|
|
3029
3421
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
3030
3422
|
# separate expression within parentheses. For example, (scheduling.
|
|
3031
3423
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
3032
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
3424
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
3033
3425
|
# to pass the filters.
|
|
3034
3426
|
# @param [Fixnum] max_results
|
|
3035
3427
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -3126,6 +3518,47 @@ module Google
|
|
|
3126
3518
|
execute_or_queue_command(command, &block)
|
|
3127
3519
|
end
|
|
3128
3520
|
|
|
3521
|
+
# Returns permissions that a caller has on the specified resource.
|
|
3522
|
+
# @param [String] project
|
|
3523
|
+
# Project ID for this request.
|
|
3524
|
+
# @param [String] resource
|
|
3525
|
+
# Name of the resource for this request.
|
|
3526
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
3527
|
+
# @param [String] fields
|
|
3528
|
+
# Selector specifying which fields to include in a partial response.
|
|
3529
|
+
# @param [String] quota_user
|
|
3530
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3531
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3532
|
+
# Overrides userIp if both are provided.
|
|
3533
|
+
# @param [String] user_ip
|
|
3534
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3535
|
+
# enforce per-user limits.
|
|
3536
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3537
|
+
# Request-specific options
|
|
3538
|
+
#
|
|
3539
|
+
# @yield [result, err] Result & error if block supplied
|
|
3540
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
3541
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3542
|
+
#
|
|
3543
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
3544
|
+
#
|
|
3545
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3546
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3547
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3548
|
+
def test_http_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3549
|
+
command = make_simple_command(:post, '{project}/global/httpHealthChecks/{resource}/testIamPermissions', options)
|
|
3550
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
3551
|
+
command.request_object = test_permissions_request_object
|
|
3552
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
3553
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
3554
|
+
command.params['project'] = project unless project.nil?
|
|
3555
|
+
command.params['resource'] = resource unless resource.nil?
|
|
3556
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3557
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3558
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3559
|
+
execute_or_queue_command(command, &block)
|
|
3560
|
+
end
|
|
3561
|
+
|
|
3129
3562
|
# Updates a HttpHealthCheck resource in the specified project using the data
|
|
3130
3563
|
# included in the request.
|
|
3131
3564
|
# @param [String] project
|
|
@@ -3206,7 +3639,8 @@ module Google
|
|
|
3206
3639
|
execute_or_queue_command(command, &block)
|
|
3207
3640
|
end
|
|
3208
3641
|
|
|
3209
|
-
# Returns the specified HttpsHealthCheck resource.
|
|
3642
|
+
# Returns the specified HttpsHealthCheck resource. Get a list of available HTTPS
|
|
3643
|
+
# health checks by making a list() request.
|
|
3210
3644
|
# @param [String] project
|
|
3211
3645
|
# Project ID for this request.
|
|
3212
3646
|
# @param [String] https_health_check
|
|
@@ -3298,7 +3732,7 @@ module Google
|
|
|
3298
3732
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
3299
3733
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
3300
3734
|
# must match the entire field.
|
|
3301
|
-
# For example, to filter for instances
|
|
3735
|
+
# For example, to filter for instances that do not have a name of example-
|
|
3302
3736
|
# instance, you would use filter=name ne example-instance.
|
|
3303
3737
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
3304
3738
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -3308,7 +3742,7 @@ module Google
|
|
|
3308
3742
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
3309
3743
|
# separate expression within parentheses. For example, (scheduling.
|
|
3310
3744
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
3311
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
3745
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
3312
3746
|
# to pass the filters.
|
|
3313
3747
|
# @param [Fixnum] max_results
|
|
3314
3748
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -3405,6 +3839,47 @@ module Google
|
|
|
3405
3839
|
execute_or_queue_command(command, &block)
|
|
3406
3840
|
end
|
|
3407
3841
|
|
|
3842
|
+
# Returns permissions that a caller has on the specified resource.
|
|
3843
|
+
# @param [String] project
|
|
3844
|
+
# Project ID for this request.
|
|
3845
|
+
# @param [String] resource
|
|
3846
|
+
# Name of the resource for this request.
|
|
3847
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
3848
|
+
# @param [String] fields
|
|
3849
|
+
# Selector specifying which fields to include in a partial response.
|
|
3850
|
+
# @param [String] quota_user
|
|
3851
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3852
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3853
|
+
# Overrides userIp if both are provided.
|
|
3854
|
+
# @param [String] user_ip
|
|
3855
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
3856
|
+
# enforce per-user limits.
|
|
3857
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3858
|
+
# Request-specific options
|
|
3859
|
+
#
|
|
3860
|
+
# @yield [result, err] Result & error if block supplied
|
|
3861
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
3862
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3863
|
+
#
|
|
3864
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
3865
|
+
#
|
|
3866
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3867
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3868
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3869
|
+
def test_https_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3870
|
+
command = make_simple_command(:post, '{project}/global/httpsHealthChecks/{resource}/testIamPermissions', options)
|
|
3871
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
3872
|
+
command.request_object = test_permissions_request_object
|
|
3873
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
3874
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
3875
|
+
command.params['project'] = project unless project.nil?
|
|
3876
|
+
command.params['resource'] = resource unless resource.nil?
|
|
3877
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3878
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3879
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
3880
|
+
execute_or_queue_command(command, &block)
|
|
3881
|
+
end
|
|
3882
|
+
|
|
3408
3883
|
# Updates a HttpsHealthCheck resource in the specified project using the data
|
|
3409
3884
|
# included in the request.
|
|
3410
3885
|
# @param [String] project
|
|
@@ -3527,7 +4002,8 @@ module Google
|
|
|
3527
4002
|
execute_or_queue_command(command, &block)
|
|
3528
4003
|
end
|
|
3529
4004
|
|
|
3530
|
-
# Returns the specified image.
|
|
4005
|
+
# Returns the specified image. Get a list of available images by making a list()
|
|
4006
|
+
# request.
|
|
3531
4007
|
# @param [String] project
|
|
3532
4008
|
# Project ID for this request.
|
|
3533
4009
|
# @param [String] image
|
|
@@ -3662,7 +4138,7 @@ module Google
|
|
|
3662
4138
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
3663
4139
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
3664
4140
|
# must match the entire field.
|
|
3665
|
-
# For example, to filter for instances
|
|
4141
|
+
# For example, to filter for instances that do not have a name of example-
|
|
3666
4142
|
# instance, you would use filter=name ne example-instance.
|
|
3667
4143
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
3668
4144
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -3672,7 +4148,7 @@ module Google
|
|
|
3672
4148
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
3673
4149
|
# separate expression within parentheses. For example, (scheduling.
|
|
3674
4150
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
3675
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
4151
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
3676
4152
|
# to pass the filters.
|
|
3677
4153
|
# @param [Fixnum] max_results
|
|
3678
4154
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -3727,6 +4203,88 @@ module Google
|
|
|
3727
4203
|
execute_or_queue_command(command, &block)
|
|
3728
4204
|
end
|
|
3729
4205
|
|
|
4206
|
+
# Sets the labels on the target image.
|
|
4207
|
+
# @param [String] project
|
|
4208
|
+
# Project ID for this request.
|
|
4209
|
+
# @param [String] resource
|
|
4210
|
+
# Name of the resource for this request.
|
|
4211
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
|
|
4212
|
+
# @param [String] fields
|
|
4213
|
+
# Selector specifying which fields to include in a partial response.
|
|
4214
|
+
# @param [String] quota_user
|
|
4215
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4216
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4217
|
+
# Overrides userIp if both are provided.
|
|
4218
|
+
# @param [String] user_ip
|
|
4219
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
4220
|
+
# enforce per-user limits.
|
|
4221
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4222
|
+
# Request-specific options
|
|
4223
|
+
#
|
|
4224
|
+
# @yield [result, err] Result & error if block supplied
|
|
4225
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
4226
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4227
|
+
#
|
|
4228
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
4229
|
+
#
|
|
4230
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4231
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4232
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4233
|
+
def set_image_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4234
|
+
command = make_simple_command(:post, '{project}/global/images/{resource}/setLabels', options)
|
|
4235
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation
|
|
4236
|
+
command.request_object = global_set_labels_request_object
|
|
4237
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
4238
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
4239
|
+
command.params['project'] = project unless project.nil?
|
|
4240
|
+
command.params['resource'] = resource unless resource.nil?
|
|
4241
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4242
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4243
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4244
|
+
execute_or_queue_command(command, &block)
|
|
4245
|
+
end
|
|
4246
|
+
|
|
4247
|
+
# Returns permissions that a caller has on the specified resource.
|
|
4248
|
+
# @param [String] project
|
|
4249
|
+
# Project ID for this request.
|
|
4250
|
+
# @param [String] resource
|
|
4251
|
+
# Name of the resource for this request.
|
|
4252
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
4253
|
+
# @param [String] fields
|
|
4254
|
+
# Selector specifying which fields to include in a partial response.
|
|
4255
|
+
# @param [String] quota_user
|
|
4256
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4257
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4258
|
+
# Overrides userIp if both are provided.
|
|
4259
|
+
# @param [String] user_ip
|
|
4260
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
4261
|
+
# enforce per-user limits.
|
|
4262
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4263
|
+
# Request-specific options
|
|
4264
|
+
#
|
|
4265
|
+
# @yield [result, err] Result & error if block supplied
|
|
4266
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
4267
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4268
|
+
#
|
|
4269
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
4270
|
+
#
|
|
4271
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4272
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4273
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4274
|
+
def test_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4275
|
+
command = make_simple_command(:post, '{project}/global/images/{resource}/testIamPermissions', options)
|
|
4276
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
4277
|
+
command.request_object = test_permissions_request_object
|
|
4278
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
4279
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
4280
|
+
command.params['project'] = project unless project.nil?
|
|
4281
|
+
command.params['resource'] = resource unless resource.nil?
|
|
4282
|
+
command.query['fields'] = fields unless fields.nil?
|
|
4283
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4284
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
4285
|
+
execute_or_queue_command(command, &block)
|
|
4286
|
+
end
|
|
4287
|
+
|
|
3730
4288
|
# Schedules a group action to remove the specified instances from the managed
|
|
3731
4289
|
# instance group. Abandoning an instance does not delete the instance, but it
|
|
3732
4290
|
# does remove the instance from any target pools that are applied by the managed
|
|
@@ -3792,7 +4350,7 @@ module Google
|
|
|
3792
4350
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
3793
4351
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
3794
4352
|
# must match the entire field.
|
|
3795
|
-
# For example, to filter for instances
|
|
4353
|
+
# For example, to filter for instances that do not have a name of example-
|
|
3796
4354
|
# instance, you would use filter=name ne example-instance.
|
|
3797
4355
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
3798
4356
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -3802,7 +4360,7 @@ module Google
|
|
|
3802
4360
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
3803
4361
|
# separate expression within parentheses. For example, (scheduling.
|
|
3804
4362
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
3805
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
4363
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
3806
4364
|
# to pass the filters.
|
|
3807
4365
|
# @param [Fixnum] max_results
|
|
3808
4366
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -3950,7 +4508,8 @@ module Google
|
|
|
3950
4508
|
execute_or_queue_command(command, &block)
|
|
3951
4509
|
end
|
|
3952
4510
|
|
|
3953
|
-
# Returns all of the details about the specified managed instance group.
|
|
4511
|
+
# Returns all of the details about the specified managed instance group. Get a
|
|
4512
|
+
# list of available managed instance groups by making a list() request.
|
|
3954
4513
|
# @param [String] project
|
|
3955
4514
|
# Project ID for this request.
|
|
3956
4515
|
# @param [String] zone
|
|
@@ -4054,7 +4613,7 @@ module Google
|
|
|
4054
4613
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
4055
4614
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
4056
4615
|
# must match the entire field.
|
|
4057
|
-
# For example, to filter for instances
|
|
4616
|
+
# For example, to filter for instances that do not have a name of example-
|
|
4058
4617
|
# instance, you would use filter=name ne example-instance.
|
|
4059
4618
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
4060
4619
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -4064,7 +4623,7 @@ module Google
|
|
|
4064
4623
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
4065
4624
|
# separate expression within parentheses. For example, (scheduling.
|
|
4066
4625
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
4067
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
4626
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
4068
4627
|
# to pass the filters.
|
|
4069
4628
|
# @param [Fixnum] max_results
|
|
4070
4629
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -4269,7 +4828,7 @@ module Google
|
|
|
4269
4828
|
# @param [String] project
|
|
4270
4829
|
# Project ID for this request.
|
|
4271
4830
|
# @param [String] zone
|
|
4272
|
-
# The
|
|
4831
|
+
# The name of the zone where the managed instance group is located.
|
|
4273
4832
|
# @param [String] instance_group_manager
|
|
4274
4833
|
# The name of the instance group manager.
|
|
4275
4834
|
# @param [Google::Apis::ComputeBeta::InstanceGroupManagersSetAutoHealingRequest] instance_group_managers_set_auto_healing_request_object
|
|
@@ -4404,6 +4963,50 @@ module Google
|
|
|
4404
4963
|
execute_or_queue_command(command, &block)
|
|
4405
4964
|
end
|
|
4406
4965
|
|
|
4966
|
+
# Returns permissions that a caller has on the specified resource.
|
|
4967
|
+
# @param [String] project
|
|
4968
|
+
# Project ID for this request.
|
|
4969
|
+
# @param [String] zone
|
|
4970
|
+
# The name of the zone for this request.
|
|
4971
|
+
# @param [String] resource
|
|
4972
|
+
# Name of the resource for this request.
|
|
4973
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
4974
|
+
# @param [String] fields
|
|
4975
|
+
# Selector specifying which fields to include in a partial response.
|
|
4976
|
+
# @param [String] quota_user
|
|
4977
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
4978
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4979
|
+
# Overrides userIp if both are provided.
|
|
4980
|
+
# @param [String] user_ip
|
|
4981
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
4982
|
+
# enforce per-user limits.
|
|
4983
|
+
# @param [Google::Apis::RequestOptions] options
|
|
4984
|
+
# Request-specific options
|
|
4985
|
+
#
|
|
4986
|
+
# @yield [result, err] Result & error if block supplied
|
|
4987
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
4988
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
4989
|
+
#
|
|
4990
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
4991
|
+
#
|
|
4992
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4993
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4994
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4995
|
+
def test_instance_group_manager_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
4996
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions', options)
|
|
4997
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
4998
|
+
command.request_object = test_permissions_request_object
|
|
4999
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
5000
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
5001
|
+
command.params['project'] = project unless project.nil?
|
|
5002
|
+
command.params['zone'] = zone unless zone.nil?
|
|
5003
|
+
command.params['resource'] = resource unless resource.nil?
|
|
5004
|
+
command.query['fields'] = fields unless fields.nil?
|
|
5005
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
5006
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
5007
|
+
execute_or_queue_command(command, &block)
|
|
5008
|
+
end
|
|
5009
|
+
|
|
4407
5010
|
# Adds a list of instances to the specified instance group. All of the instances
|
|
4408
5011
|
# in the instance group must be in the same network/subnetwork. Read Adding
|
|
4409
5012
|
# instances for more information.
|
|
@@ -4464,7 +5067,7 @@ module Google
|
|
|
4464
5067
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
4465
5068
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
4466
5069
|
# must match the entire field.
|
|
4467
|
-
# For example, to filter for instances
|
|
5070
|
+
# For example, to filter for instances that do not have a name of example-
|
|
4468
5071
|
# instance, you would use filter=name ne example-instance.
|
|
4469
5072
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
4470
5073
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -4474,7 +5077,7 @@ module Google
|
|
|
4474
5077
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
4475
5078
|
# separate expression within parentheses. For example, (scheduling.
|
|
4476
5079
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
4477
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
5080
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
4478
5081
|
# to pass the filters.
|
|
4479
5082
|
# @param [Fixnum] max_results
|
|
4480
5083
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -4572,7 +5175,8 @@ module Google
|
|
|
4572
5175
|
execute_or_queue_command(command, &block)
|
|
4573
5176
|
end
|
|
4574
5177
|
|
|
4575
|
-
# Returns the specified instance group
|
|
5178
|
+
# Returns the specified instance group. Get a list of available instance groups
|
|
5179
|
+
# by making a list() request.
|
|
4576
5180
|
# @param [String] project
|
|
4577
5181
|
# Project ID for this request.
|
|
4578
5182
|
# @param [String] zone
|
|
@@ -4672,7 +5276,7 @@ module Google
|
|
|
4672
5276
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
4673
5277
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
4674
5278
|
# must match the entire field.
|
|
4675
|
-
# For example, to filter for instances
|
|
5279
|
+
# For example, to filter for instances that do not have a name of example-
|
|
4676
5280
|
# instance, you would use filter=name ne example-instance.
|
|
4677
5281
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
4678
5282
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -4682,7 +5286,7 @@ module Google
|
|
|
4682
5286
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
4683
5287
|
# separate expression within parentheses. For example, (scheduling.
|
|
4684
5288
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
4685
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
5289
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
4686
5290
|
# to pass the filters.
|
|
4687
5291
|
# @param [Fixnum] max_results
|
|
4688
5292
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -4758,7 +5362,7 @@ module Google
|
|
|
4758
5362
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
4759
5363
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
4760
5364
|
# must match the entire field.
|
|
4761
|
-
# For example, to filter for instances
|
|
5365
|
+
# For example, to filter for instances that do not have a name of example-
|
|
4762
5366
|
# instance, you would use filter=name ne example-instance.
|
|
4763
5367
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
4764
5368
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -4768,7 +5372,7 @@ module Google
|
|
|
4768
5372
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
4769
5373
|
# separate expression within parentheses. For example, (scheduling.
|
|
4770
5374
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
4771
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
5375
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
4772
5376
|
# to pass the filters.
|
|
4773
5377
|
# @param [Fixnum] max_results
|
|
4774
5378
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -4916,6 +5520,50 @@ module Google
|
|
|
4916
5520
|
execute_or_queue_command(command, &block)
|
|
4917
5521
|
end
|
|
4918
5522
|
|
|
5523
|
+
# Returns permissions that a caller has on the specified resource.
|
|
5524
|
+
# @param [String] project
|
|
5525
|
+
# Project ID for this request.
|
|
5526
|
+
# @param [String] zone
|
|
5527
|
+
# The name of the zone for this request.
|
|
5528
|
+
# @param [String] resource
|
|
5529
|
+
# Name of the resource for this request.
|
|
5530
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
5531
|
+
# @param [String] fields
|
|
5532
|
+
# Selector specifying which fields to include in a partial response.
|
|
5533
|
+
# @param [String] quota_user
|
|
5534
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
5535
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
5536
|
+
# Overrides userIp if both are provided.
|
|
5537
|
+
# @param [String] user_ip
|
|
5538
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
5539
|
+
# enforce per-user limits.
|
|
5540
|
+
# @param [Google::Apis::RequestOptions] options
|
|
5541
|
+
# Request-specific options
|
|
5542
|
+
#
|
|
5543
|
+
# @yield [result, err] Result & error if block supplied
|
|
5544
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
5545
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
5546
|
+
#
|
|
5547
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
5548
|
+
#
|
|
5549
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
5550
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
5551
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
5552
|
+
def test_instance_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
5553
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions', options)
|
|
5554
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
5555
|
+
command.request_object = test_permissions_request_object
|
|
5556
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
5557
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
5558
|
+
command.params['project'] = project unless project.nil?
|
|
5559
|
+
command.params['zone'] = zone unless zone.nil?
|
|
5560
|
+
command.params['resource'] = resource unless resource.nil?
|
|
5561
|
+
command.query['fields'] = fields unless fields.nil?
|
|
5562
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
5563
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
5564
|
+
execute_or_queue_command(command, &block)
|
|
5565
|
+
end
|
|
5566
|
+
|
|
4919
5567
|
# Deletes the specified instance template. If you delete an instance template
|
|
4920
5568
|
# that is being referenced from another instance group, the instance group will
|
|
4921
5569
|
# not be able to create or recreate virtual machine instances. Deleting an
|
|
@@ -4957,7 +5605,8 @@ module Google
|
|
|
4957
5605
|
execute_or_queue_command(command, &block)
|
|
4958
5606
|
end
|
|
4959
5607
|
|
|
4960
|
-
# Returns the specified instance template
|
|
5608
|
+
# Returns the specified instance template. Get a list of available instance
|
|
5609
|
+
# templates by making a list() request.
|
|
4961
5610
|
# @param [String] project
|
|
4962
5611
|
# Project ID for this request.
|
|
4963
5612
|
# @param [String] instance_template
|
|
@@ -5051,7 +5700,7 @@ module Google
|
|
|
5051
5700
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
5052
5701
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
5053
5702
|
# must match the entire field.
|
|
5054
|
-
# For example, to filter for instances
|
|
5703
|
+
# For example, to filter for instances that do not have a name of example-
|
|
5055
5704
|
# instance, you would use filter=name ne example-instance.
|
|
5056
5705
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
5057
5706
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -5061,7 +5710,7 @@ module Google
|
|
|
5061
5710
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
5062
5711
|
# separate expression within parentheses. For example, (scheduling.
|
|
5063
5712
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
5064
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
5713
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
5065
5714
|
# to pass the filters.
|
|
5066
5715
|
# @param [Fixnum] max_results
|
|
5067
5716
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -5116,16 +5765,12 @@ module Google
|
|
|
5116
5765
|
execute_or_queue_command(command, &block)
|
|
5117
5766
|
end
|
|
5118
5767
|
|
|
5119
|
-
#
|
|
5768
|
+
# Returns permissions that a caller has on the specified resource.
|
|
5120
5769
|
# @param [String] project
|
|
5121
5770
|
# Project ID for this request.
|
|
5122
|
-
# @param [String]
|
|
5123
|
-
#
|
|
5124
|
-
# @param [
|
|
5125
|
-
# The instance name for this request.
|
|
5126
|
-
# @param [String] network_interface
|
|
5127
|
-
# The name of the network interface to add to this instance.
|
|
5128
|
-
# @param [Google::Apis::ComputeBeta::AccessConfig] access_config_object
|
|
5771
|
+
# @param [String] resource
|
|
5772
|
+
# Name of the resource for this request.
|
|
5773
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
5129
5774
|
# @param [String] fields
|
|
5130
5775
|
# Selector specifying which fields to include in a partial response.
|
|
5131
5776
|
# @param [String] quota_user
|
|
@@ -5139,10 +5784,55 @@ module Google
|
|
|
5139
5784
|
# Request-specific options
|
|
5140
5785
|
#
|
|
5141
5786
|
# @yield [result, err] Result & error if block supplied
|
|
5142
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
|
5787
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
5143
5788
|
# @yieldparam err [StandardError] error object if request failed
|
|
5144
5789
|
#
|
|
5145
|
-
# @return [Google::Apis::ComputeBeta::
|
|
5790
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
5791
|
+
#
|
|
5792
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
5793
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
5794
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
5795
|
+
def test_instance_template_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
5796
|
+
command = make_simple_command(:post, '{project}/global/instanceTemplates/{resource}/testIamPermissions', options)
|
|
5797
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
5798
|
+
command.request_object = test_permissions_request_object
|
|
5799
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
5800
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
5801
|
+
command.params['project'] = project unless project.nil?
|
|
5802
|
+
command.params['resource'] = resource unless resource.nil?
|
|
5803
|
+
command.query['fields'] = fields unless fields.nil?
|
|
5804
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
5805
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
5806
|
+
execute_or_queue_command(command, &block)
|
|
5807
|
+
end
|
|
5808
|
+
|
|
5809
|
+
# Adds an access config to an instance's network interface.
|
|
5810
|
+
# @param [String] project
|
|
5811
|
+
# Project ID for this request.
|
|
5812
|
+
# @param [String] zone
|
|
5813
|
+
# The name of the zone for this request.
|
|
5814
|
+
# @param [String] instance
|
|
5815
|
+
# The instance name for this request.
|
|
5816
|
+
# @param [String] network_interface
|
|
5817
|
+
# The name of the network interface to add to this instance.
|
|
5818
|
+
# @param [Google::Apis::ComputeBeta::AccessConfig] access_config_object
|
|
5819
|
+
# @param [String] fields
|
|
5820
|
+
# Selector specifying which fields to include in a partial response.
|
|
5821
|
+
# @param [String] quota_user
|
|
5822
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
5823
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
5824
|
+
# Overrides userIp if both are provided.
|
|
5825
|
+
# @param [String] user_ip
|
|
5826
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
5827
|
+
# enforce per-user limits.
|
|
5828
|
+
# @param [Google::Apis::RequestOptions] options
|
|
5829
|
+
# Request-specific options
|
|
5830
|
+
#
|
|
5831
|
+
# @yield [result, err] Result & error if block supplied
|
|
5832
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
5833
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
5834
|
+
#
|
|
5835
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
5146
5836
|
#
|
|
5147
5837
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
5148
5838
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
@@ -5177,7 +5867,7 @@ module Google
|
|
|
5177
5867
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
5178
5868
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
5179
5869
|
# must match the entire field.
|
|
5180
|
-
# For example, to filter for instances
|
|
5870
|
+
# For example, to filter for instances that do not have a name of example-
|
|
5181
5871
|
# instance, you would use filter=name ne example-instance.
|
|
5182
5872
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
5183
5873
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -5187,7 +5877,7 @@ module Google
|
|
|
5187
5877
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
5188
5878
|
# separate expression within parentheses. For example, (scheduling.
|
|
5189
5879
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
5190
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
5880
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
5191
5881
|
# to pass the filters.
|
|
5192
5882
|
# @param [Fixnum] max_results
|
|
5193
5883
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -5419,7 +6109,8 @@ module Google
|
|
|
5419
6109
|
execute_or_queue_command(command, &block)
|
|
5420
6110
|
end
|
|
5421
6111
|
|
|
5422
|
-
# Returns the specified Instance resource.
|
|
6112
|
+
# Returns the specified Instance resource. Get a list of available instances by
|
|
6113
|
+
# making a list() request.
|
|
5423
6114
|
# @param [String] project
|
|
5424
6115
|
# Project ID for this request.
|
|
5425
6116
|
# @param [String] zone
|
|
@@ -5469,6 +6160,10 @@ module Google
|
|
|
5469
6160
|
# Name of the instance scoping this request.
|
|
5470
6161
|
# @param [Fixnum] port
|
|
5471
6162
|
# Specifies which COM or serial port to retrieve data from.
|
|
6163
|
+
# @param [String] start
|
|
6164
|
+
# For the initial request, leave this field unspecified. For subsequent calls,
|
|
6165
|
+
# this field should be set to the next value that was returned in the previous
|
|
6166
|
+
# call.
|
|
5472
6167
|
# @param [String] fields
|
|
5473
6168
|
# Selector specifying which fields to include in a partial response.
|
|
5474
6169
|
# @param [String] quota_user
|
|
@@ -5490,7 +6185,7 @@ module Google
|
|
|
5490
6185
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
5491
6186
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
5492
6187
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
5493
|
-
def get_instance_serial_port_output(project, zone, instance, port: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
6188
|
+
def get_instance_serial_port_output(project, zone, instance, port: nil, start: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
5494
6189
|
command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/serialPort', options)
|
|
5495
6190
|
command.response_representation = Google::Apis::ComputeBeta::SerialPortOutput::Representation
|
|
5496
6191
|
command.response_class = Google::Apis::ComputeBeta::SerialPortOutput
|
|
@@ -5498,6 +6193,7 @@ module Google
|
|
|
5498
6193
|
command.params['zone'] = zone unless zone.nil?
|
|
5499
6194
|
command.params['instance'] = instance unless instance.nil?
|
|
5500
6195
|
command.query['port'] = port unless port.nil?
|
|
6196
|
+
command.query['start'] = start unless start.nil?
|
|
5501
6197
|
command.query['fields'] = fields unless fields.nil?
|
|
5502
6198
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
5503
6199
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -5562,7 +6258,7 @@ module Google
|
|
|
5562
6258
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
5563
6259
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
5564
6260
|
# must match the entire field.
|
|
5565
|
-
# For example, to filter for instances
|
|
6261
|
+
# For example, to filter for instances that do not have a name of example-
|
|
5566
6262
|
# instance, you would use filter=name ne example-instance.
|
|
5567
6263
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
5568
6264
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -5572,7 +6268,7 @@ module Google
|
|
|
5572
6268
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
5573
6269
|
# separate expression within parentheses. For example, (scheduling.
|
|
5574
6270
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
5575
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
6271
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
5576
6272
|
# to pass the filters.
|
|
5577
6273
|
# @param [Fixnum] max_results
|
|
5578
6274
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -6025,7 +6721,52 @@ module Google
|
|
|
6025
6721
|
execute_or_queue_command(command, &block)
|
|
6026
6722
|
end
|
|
6027
6723
|
|
|
6028
|
-
# Returns the specified
|
|
6724
|
+
# Returns permissions that a caller has on the specified resource.
|
|
6725
|
+
# @param [String] project
|
|
6726
|
+
# Project ID for this request.
|
|
6727
|
+
# @param [String] zone
|
|
6728
|
+
# The name of the zone for this request.
|
|
6729
|
+
# @param [String] resource
|
|
6730
|
+
# Name of the resource for this request.
|
|
6731
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
6732
|
+
# @param [String] fields
|
|
6733
|
+
# Selector specifying which fields to include in a partial response.
|
|
6734
|
+
# @param [String] quota_user
|
|
6735
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
6736
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
6737
|
+
# Overrides userIp if both are provided.
|
|
6738
|
+
# @param [String] user_ip
|
|
6739
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
6740
|
+
# enforce per-user limits.
|
|
6741
|
+
# @param [Google::Apis::RequestOptions] options
|
|
6742
|
+
# Request-specific options
|
|
6743
|
+
#
|
|
6744
|
+
# @yield [result, err] Result & error if block supplied
|
|
6745
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
6746
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6747
|
+
#
|
|
6748
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
6749
|
+
#
|
|
6750
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6751
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6752
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6753
|
+
def test_instance_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
6754
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/testIamPermissions', options)
|
|
6755
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
6756
|
+
command.request_object = test_permissions_request_object
|
|
6757
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
6758
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
6759
|
+
command.params['project'] = project unless project.nil?
|
|
6760
|
+
command.params['zone'] = zone unless zone.nil?
|
|
6761
|
+
command.params['resource'] = resource unless resource.nil?
|
|
6762
|
+
command.query['fields'] = fields unless fields.nil?
|
|
6763
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6764
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
6765
|
+
execute_or_queue_command(command, &block)
|
|
6766
|
+
end
|
|
6767
|
+
|
|
6768
|
+
# Returns the specified License resource. Get a list of available licenses by
|
|
6769
|
+
# making a list() request.
|
|
6029
6770
|
# @param [String] project
|
|
6030
6771
|
# Project ID for this request.
|
|
6031
6772
|
# @param [String] license
|
|
@@ -6077,7 +6818,7 @@ module Google
|
|
|
6077
6818
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
6078
6819
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
6079
6820
|
# must match the entire field.
|
|
6080
|
-
# For example, to filter for instances
|
|
6821
|
+
# For example, to filter for instances that do not have a name of example-
|
|
6081
6822
|
# instance, you would use filter=name ne example-instance.
|
|
6082
6823
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
6083
6824
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -6087,7 +6828,7 @@ module Google
|
|
|
6087
6828
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
6088
6829
|
# separate expression within parentheses. For example, (scheduling.
|
|
6089
6830
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
6090
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
6831
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
6091
6832
|
# to pass the filters.
|
|
6092
6833
|
# @param [Fixnum] max_results
|
|
6093
6834
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -6142,7 +6883,8 @@ module Google
|
|
|
6142
6883
|
execute_or_queue_command(command, &block)
|
|
6143
6884
|
end
|
|
6144
6885
|
|
|
6145
|
-
# Returns the specified machine type.
|
|
6886
|
+
# Returns the specified machine type. Get a list of available machine types by
|
|
6887
|
+
# making a list() request.
|
|
6146
6888
|
# @param [String] project
|
|
6147
6889
|
# Project ID for this request.
|
|
6148
6890
|
# @param [String] zone
|
|
@@ -6199,7 +6941,7 @@ module Google
|
|
|
6199
6941
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
6200
6942
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
6201
6943
|
# must match the entire field.
|
|
6202
|
-
# For example, to filter for instances
|
|
6944
|
+
# For example, to filter for instances that do not have a name of example-
|
|
6203
6945
|
# instance, you would use filter=name ne example-instance.
|
|
6204
6946
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
6205
6947
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -6209,7 +6951,7 @@ module Google
|
|
|
6209
6951
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
6210
6952
|
# separate expression within parentheses. For example, (scheduling.
|
|
6211
6953
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
6212
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
6954
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
6213
6955
|
# to pass the filters.
|
|
6214
6956
|
# @param [Fixnum] max_results
|
|
6215
6957
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -6303,7 +7045,8 @@ module Google
|
|
|
6303
7045
|
execute_or_queue_command(command, &block)
|
|
6304
7046
|
end
|
|
6305
7047
|
|
|
6306
|
-
# Returns the specified network.
|
|
7048
|
+
# Returns the specified network. Get a list of available networks by making a
|
|
7049
|
+
# list() request.
|
|
6307
7050
|
# @param [String] project
|
|
6308
7051
|
# Project ID for this request.
|
|
6309
7052
|
# @param [String] network
|
|
@@ -6394,7 +7137,7 @@ module Google
|
|
|
6394
7137
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
6395
7138
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
6396
7139
|
# must match the entire field.
|
|
6397
|
-
# For example, to filter for instances
|
|
7140
|
+
# For example, to filter for instances that do not have a name of example-
|
|
6398
7141
|
# instance, you would use filter=name ne example-instance.
|
|
6399
7142
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
6400
7143
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -6404,7 +7147,7 @@ module Google
|
|
|
6404
7147
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
6405
7148
|
# separate expression within parentheses. For example, (scheduling.
|
|
6406
7149
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
6407
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
7150
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
6408
7151
|
# to pass the filters.
|
|
6409
7152
|
# @param [Fixnum] max_results
|
|
6410
7153
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -6459,7 +7202,48 @@ module Google
|
|
|
6459
7202
|
execute_or_queue_command(command, &block)
|
|
6460
7203
|
end
|
|
6461
7204
|
|
|
6462
|
-
# Returns the specified
|
|
7205
|
+
# Returns permissions that a caller has on the specified resource.
|
|
7206
|
+
# @param [String] project
|
|
7207
|
+
# Project ID for this request.
|
|
7208
|
+
# @param [String] resource
|
|
7209
|
+
# Name of the resource for this request.
|
|
7210
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
7211
|
+
# @param [String] fields
|
|
7212
|
+
# Selector specifying which fields to include in a partial response.
|
|
7213
|
+
# @param [String] quota_user
|
|
7214
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7215
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7216
|
+
# Overrides userIp if both are provided.
|
|
7217
|
+
# @param [String] user_ip
|
|
7218
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
7219
|
+
# enforce per-user limits.
|
|
7220
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7221
|
+
# Request-specific options
|
|
7222
|
+
#
|
|
7223
|
+
# @yield [result, err] Result & error if block supplied
|
|
7224
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
7225
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7226
|
+
#
|
|
7227
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
7228
|
+
#
|
|
7229
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7230
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7231
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7232
|
+
def test_network_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7233
|
+
command = make_simple_command(:post, '{project}/global/networks/{resource}/testIamPermissions', options)
|
|
7234
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
7235
|
+
command.request_object = test_permissions_request_object
|
|
7236
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
7237
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
7238
|
+
command.params['project'] = project unless project.nil?
|
|
7239
|
+
command.params['resource'] = resource unless resource.nil?
|
|
7240
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7241
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7242
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7243
|
+
execute_or_queue_command(command, &block)
|
|
7244
|
+
end
|
|
7245
|
+
|
|
7246
|
+
# Returns the specified Project resource.
|
|
6463
7247
|
# @param [String] project
|
|
6464
7248
|
# Project ID for this request.
|
|
6465
7249
|
# @param [String] fields
|
|
@@ -6669,7 +7453,7 @@ module Google
|
|
|
6669
7453
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
6670
7454
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
6671
7455
|
# must match the entire field.
|
|
6672
|
-
# For example, to filter for instances
|
|
7456
|
+
# For example, to filter for instances that do not have a name of example-
|
|
6673
7457
|
# instance, you would use filter=name ne example-instance.
|
|
6674
7458
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
6675
7459
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -6679,7 +7463,7 @@ module Google
|
|
|
6679
7463
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
6680
7464
|
# separate expression within parentheses. For example, (scheduling.
|
|
6681
7465
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
6682
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
7466
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
6683
7467
|
# to pass the filters.
|
|
6684
7468
|
# @param [Fixnum] max_results
|
|
6685
7469
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -6735,7 +7519,8 @@ module Google
|
|
|
6735
7519
|
execute_or_queue_command(command, &block)
|
|
6736
7520
|
end
|
|
6737
7521
|
|
|
6738
|
-
# Returns the specified
|
|
7522
|
+
# Returns the specified Region resource. Get a list of available regions by
|
|
7523
|
+
# making a list() request.
|
|
6739
7524
|
# @param [String] project
|
|
6740
7525
|
# Project ID for this request.
|
|
6741
7526
|
# @param [String] region
|
|
@@ -6787,7 +7572,7 @@ module Google
|
|
|
6787
7572
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
6788
7573
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
6789
7574
|
# must match the entire field.
|
|
6790
|
-
# For example, to filter for instances
|
|
7575
|
+
# For example, to filter for instances that do not have a name of example-
|
|
6791
7576
|
# instance, you would use filter=name ne example-instance.
|
|
6792
7577
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
6793
7578
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -6797,7 +7582,7 @@ module Google
|
|
|
6797
7582
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
6798
7583
|
# separate expression within parentheses. For example, (scheduling.
|
|
6799
7584
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
6800
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
7585
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
6801
7586
|
# to pass the filters.
|
|
6802
7587
|
# @param [Fixnum] max_results
|
|
6803
7588
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -6852,7 +7637,7 @@ module Google
|
|
|
6852
7637
|
execute_or_queue_command(command, &block)
|
|
6853
7638
|
end
|
|
6854
7639
|
|
|
6855
|
-
# Retrieves an aggregated list of
|
|
7640
|
+
# Retrieves an aggregated list of routers.
|
|
6856
7641
|
# @param [String] project
|
|
6857
7642
|
# Project ID for this request.
|
|
6858
7643
|
# @param [String] filter
|
|
@@ -6866,7 +7651,7 @@ module Google
|
|
|
6866
7651
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
6867
7652
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
6868
7653
|
# must match the entire field.
|
|
6869
|
-
# For example, to filter for instances
|
|
7654
|
+
# For example, to filter for instances that do not have a name of example-
|
|
6870
7655
|
# instance, you would use filter=name ne example-instance.
|
|
6871
7656
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
6872
7657
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -6876,7 +7661,7 @@ module Google
|
|
|
6876
7661
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
6877
7662
|
# separate expression within parentheses. For example, (scheduling.
|
|
6878
7663
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
6879
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
7664
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
6880
7665
|
# to pass the filters.
|
|
6881
7666
|
# @param [Fixnum] max_results
|
|
6882
7667
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -6935,7 +7720,7 @@ module Google
|
|
|
6935
7720
|
# @param [String] project
|
|
6936
7721
|
# Project ID for this request.
|
|
6937
7722
|
# @param [String] region
|
|
6938
|
-
#
|
|
7723
|
+
# Name of the region for this request.
|
|
6939
7724
|
# @param [String] router
|
|
6940
7725
|
# Name of the Router resource to delete.
|
|
6941
7726
|
# @param [String] fields
|
|
@@ -6972,11 +7757,12 @@ module Google
|
|
|
6972
7757
|
execute_or_queue_command(command, &block)
|
|
6973
7758
|
end
|
|
6974
7759
|
|
|
6975
|
-
# Returns the specified Router resource.
|
|
7760
|
+
# Returns the specified Router resource. Get a list of available routers by
|
|
7761
|
+
# making a list() request.
|
|
6976
7762
|
# @param [String] project
|
|
6977
7763
|
# Project ID for this request.
|
|
6978
7764
|
# @param [String] region
|
|
6979
|
-
#
|
|
7765
|
+
# Name of the region for this request.
|
|
6980
7766
|
# @param [String] router
|
|
6981
7767
|
# Name of the Router resource to return.
|
|
6982
7768
|
# @param [String] fields
|
|
@@ -7013,11 +7799,11 @@ module Google
|
|
|
7013
7799
|
execute_or_queue_command(command, &block)
|
|
7014
7800
|
end
|
|
7015
7801
|
|
|
7016
|
-
# Retrieves runtime information of the specified
|
|
7802
|
+
# Retrieves runtime information of the specified router.
|
|
7017
7803
|
# @param [String] project
|
|
7018
7804
|
# Project ID for this request.
|
|
7019
7805
|
# @param [String] region
|
|
7020
|
-
#
|
|
7806
|
+
# Name of the region for this request.
|
|
7021
7807
|
# @param [String] router
|
|
7022
7808
|
# Name of the Router resource to query.
|
|
7023
7809
|
# @param [String] fields
|
|
@@ -7059,7 +7845,7 @@ module Google
|
|
|
7059
7845
|
# @param [String] project
|
|
7060
7846
|
# Project ID for this request.
|
|
7061
7847
|
# @param [String] region
|
|
7062
|
-
#
|
|
7848
|
+
# Name of the region for this request.
|
|
7063
7849
|
# @param [Google::Apis::ComputeBeta::Router] router_object
|
|
7064
7850
|
# @param [String] fields
|
|
7065
7851
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -7100,7 +7886,7 @@ module Google
|
|
|
7100
7886
|
# @param [String] project
|
|
7101
7887
|
# Project ID for this request.
|
|
7102
7888
|
# @param [String] region
|
|
7103
|
-
#
|
|
7889
|
+
# Name of the region for this request.
|
|
7104
7890
|
# @param [String] filter
|
|
7105
7891
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
7106
7892
|
# expression`. Your `expression` must be in the format: field_name
|
|
@@ -7112,7 +7898,7 @@ module Google
|
|
|
7112
7898
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
7113
7899
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
7114
7900
|
# must match the entire field.
|
|
7115
|
-
# For example, to filter for instances
|
|
7901
|
+
# For example, to filter for instances that do not have a name of example-
|
|
7116
7902
|
# instance, you would use filter=name ne example-instance.
|
|
7117
7903
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
7118
7904
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -7122,7 +7908,7 @@ module Google
|
|
|
7122
7908
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
7123
7909
|
# separate expression within parentheses. For example, (scheduling.
|
|
7124
7910
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
7125
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
7911
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
7126
7912
|
# to pass the filters.
|
|
7127
7913
|
# @param [Fixnum] max_results
|
|
7128
7914
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -7178,12 +7964,12 @@ module Google
|
|
|
7178
7964
|
execute_or_queue_command(command, &block)
|
|
7179
7965
|
end
|
|
7180
7966
|
|
|
7181
|
-
#
|
|
7967
|
+
# Updates the entire content of the Router resource. This method supports patch
|
|
7182
7968
|
# semantics.
|
|
7183
7969
|
# @param [String] project
|
|
7184
7970
|
# Project ID for this request.
|
|
7185
7971
|
# @param [String] region
|
|
7186
|
-
#
|
|
7972
|
+
# Name of the region for this request.
|
|
7187
7973
|
# @param [String] router
|
|
7188
7974
|
# Name of the Router resource to update.
|
|
7189
7975
|
# @param [Google::Apis::ComputeBeta::Router] router_object
|
|
@@ -7223,11 +8009,55 @@ module Google
|
|
|
7223
8009
|
execute_or_queue_command(command, &block)
|
|
7224
8010
|
end
|
|
7225
8011
|
|
|
7226
|
-
#
|
|
8012
|
+
# Returns permissions that a caller has on the specified resource.
|
|
7227
8013
|
# @param [String] project
|
|
7228
8014
|
# Project ID for this request.
|
|
7229
8015
|
# @param [String] region
|
|
7230
8016
|
# The name of the region for this request.
|
|
8017
|
+
# @param [String] resource
|
|
8018
|
+
# Name of the resource for this request.
|
|
8019
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
8020
|
+
# @param [String] fields
|
|
8021
|
+
# Selector specifying which fields to include in a partial response.
|
|
8022
|
+
# @param [String] quota_user
|
|
8023
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8024
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8025
|
+
# Overrides userIp if both are provided.
|
|
8026
|
+
# @param [String] user_ip
|
|
8027
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
8028
|
+
# enforce per-user limits.
|
|
8029
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8030
|
+
# Request-specific options
|
|
8031
|
+
#
|
|
8032
|
+
# @yield [result, err] Result & error if block supplied
|
|
8033
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
8034
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8035
|
+
#
|
|
8036
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
8037
|
+
#
|
|
8038
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8039
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8040
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8041
|
+
def test_router_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8042
|
+
command = make_simple_command(:post, '{project}/regions/{region}/routers/{resource}/testIamPermissions', options)
|
|
8043
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
8044
|
+
command.request_object = test_permissions_request_object
|
|
8045
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
8046
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
8047
|
+
command.params['project'] = project unless project.nil?
|
|
8048
|
+
command.params['region'] = region unless region.nil?
|
|
8049
|
+
command.params['resource'] = resource unless resource.nil?
|
|
8050
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8051
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8052
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8053
|
+
execute_or_queue_command(command, &block)
|
|
8054
|
+
end
|
|
8055
|
+
|
|
8056
|
+
# Updates the entire content of the Router resource.
|
|
8057
|
+
# @param [String] project
|
|
8058
|
+
# Project ID for this request.
|
|
8059
|
+
# @param [String] region
|
|
8060
|
+
# Name of the region for this request.
|
|
7231
8061
|
# @param [String] router
|
|
7232
8062
|
# Name of the Router resource to update.
|
|
7233
8063
|
# @param [Google::Apis::ComputeBeta::Router] router_object
|
|
@@ -7267,11 +8097,11 @@ module Google
|
|
|
7267
8097
|
execute_or_queue_command(command, &block)
|
|
7268
8098
|
end
|
|
7269
8099
|
|
|
7270
|
-
# Deletes the specified
|
|
8100
|
+
# Deletes the specified Route resource.
|
|
7271
8101
|
# @param [String] project
|
|
7272
8102
|
# Project ID for this request.
|
|
7273
8103
|
# @param [String] route
|
|
7274
|
-
# Name of the
|
|
8104
|
+
# Name of the Route resource to delete.
|
|
7275
8105
|
# @param [String] fields
|
|
7276
8106
|
# Selector specifying which fields to include in a partial response.
|
|
7277
8107
|
# @param [String] quota_user
|
|
@@ -7305,11 +8135,12 @@ module Google
|
|
|
7305
8135
|
execute_or_queue_command(command, &block)
|
|
7306
8136
|
end
|
|
7307
8137
|
|
|
7308
|
-
# Returns the specified
|
|
8138
|
+
# Returns the specified Route resource. Get a list of available routes by making
|
|
8139
|
+
# a list() request.
|
|
7309
8140
|
# @param [String] project
|
|
7310
8141
|
# Project ID for this request.
|
|
7311
8142
|
# @param [String] route
|
|
7312
|
-
# Name of the
|
|
8143
|
+
# Name of the Route resource to return.
|
|
7313
8144
|
# @param [String] fields
|
|
7314
8145
|
# Selector specifying which fields to include in a partial response.
|
|
7315
8146
|
# @param [String] quota_user
|
|
@@ -7343,7 +8174,7 @@ module Google
|
|
|
7343
8174
|
execute_or_queue_command(command, &block)
|
|
7344
8175
|
end
|
|
7345
8176
|
|
|
7346
|
-
# Creates a
|
|
8177
|
+
# Creates a Route resource in the specified project using the data included in
|
|
7347
8178
|
# the request.
|
|
7348
8179
|
# @param [String] project
|
|
7349
8180
|
# Project ID for this request.
|
|
@@ -7382,7 +8213,7 @@ module Google
|
|
|
7382
8213
|
execute_or_queue_command(command, &block)
|
|
7383
8214
|
end
|
|
7384
8215
|
|
|
7385
|
-
# Retrieves the list of
|
|
8216
|
+
# Retrieves the list of Route resources available to the specified project.
|
|
7386
8217
|
# @param [String] project
|
|
7387
8218
|
# Project ID for this request.
|
|
7388
8219
|
# @param [String] filter
|
|
@@ -7396,7 +8227,7 @@ module Google
|
|
|
7396
8227
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
7397
8228
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
7398
8229
|
# must match the entire field.
|
|
7399
|
-
# For example, to filter for instances
|
|
8230
|
+
# For example, to filter for instances that do not have a name of example-
|
|
7400
8231
|
# instance, you would use filter=name ne example-instance.
|
|
7401
8232
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
7402
8233
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -7406,7 +8237,7 @@ module Google
|
|
|
7406
8237
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
7407
8238
|
# separate expression within parentheses. For example, (scheduling.
|
|
7408
8239
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
7409
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
8240
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
7410
8241
|
# to pass the filters.
|
|
7411
8242
|
# @param [Fixnum] max_results
|
|
7412
8243
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -7461,6 +8292,47 @@ module Google
|
|
|
7461
8292
|
execute_or_queue_command(command, &block)
|
|
7462
8293
|
end
|
|
7463
8294
|
|
|
8295
|
+
# Returns permissions that a caller has on the specified resource.
|
|
8296
|
+
# @param [String] project
|
|
8297
|
+
# Project ID for this request.
|
|
8298
|
+
# @param [String] resource
|
|
8299
|
+
# Name of the resource for this request.
|
|
8300
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
8301
|
+
# @param [String] fields
|
|
8302
|
+
# Selector specifying which fields to include in a partial response.
|
|
8303
|
+
# @param [String] quota_user
|
|
8304
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8305
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8306
|
+
# Overrides userIp if both are provided.
|
|
8307
|
+
# @param [String] user_ip
|
|
8308
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
8309
|
+
# enforce per-user limits.
|
|
8310
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8311
|
+
# Request-specific options
|
|
8312
|
+
#
|
|
8313
|
+
# @yield [result, err] Result & error if block supplied
|
|
8314
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
8315
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8316
|
+
#
|
|
8317
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
8318
|
+
#
|
|
8319
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8320
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8321
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8322
|
+
def test_route_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8323
|
+
command = make_simple_command(:post, '{project}/global/routes/{resource}/testIamPermissions', options)
|
|
8324
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
8325
|
+
command.request_object = test_permissions_request_object
|
|
8326
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
8327
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
8328
|
+
command.params['project'] = project unless project.nil?
|
|
8329
|
+
command.params['resource'] = resource unless resource.nil?
|
|
8330
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8331
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8332
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8333
|
+
execute_or_queue_command(command, &block)
|
|
8334
|
+
end
|
|
8335
|
+
|
|
7464
8336
|
# Deletes the specified Snapshot resource. Keep in mind that deleting a single
|
|
7465
8337
|
# snapshot might not necessarily delete all the data on that snapshot. If any
|
|
7466
8338
|
# data on the snapshot that is marked for deletion is needed for subsequent
|
|
@@ -7503,7 +8375,8 @@ module Google
|
|
|
7503
8375
|
execute_or_queue_command(command, &block)
|
|
7504
8376
|
end
|
|
7505
8377
|
|
|
7506
|
-
# Returns the specified Snapshot resource.
|
|
8378
|
+
# Returns the specified Snapshot resource. Get a list of available snapshots by
|
|
8379
|
+
# making a list() request.
|
|
7507
8380
|
# @param [String] project
|
|
7508
8381
|
# Project ID for this request.
|
|
7509
8382
|
# @param [String] snapshot
|
|
@@ -7556,7 +8429,7 @@ module Google
|
|
|
7556
8429
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
7557
8430
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
7558
8431
|
# must match the entire field.
|
|
7559
|
-
# For example, to filter for instances
|
|
8432
|
+
# For example, to filter for instances that do not have a name of example-
|
|
7560
8433
|
# instance, you would use filter=name ne example-instance.
|
|
7561
8434
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
7562
8435
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -7566,7 +8439,7 @@ module Google
|
|
|
7566
8439
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
7567
8440
|
# separate expression within parentheses. For example, (scheduling.
|
|
7568
8441
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
7569
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
8442
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
7570
8443
|
# to pass the filters.
|
|
7571
8444
|
# @param [Fixnum] max_results
|
|
7572
8445
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -7621,6 +8494,88 @@ module Google
|
|
|
7621
8494
|
execute_or_queue_command(command, &block)
|
|
7622
8495
|
end
|
|
7623
8496
|
|
|
8497
|
+
# Sets the labels on the target snapshot.
|
|
8498
|
+
# @param [String] project
|
|
8499
|
+
# Project ID for this request.
|
|
8500
|
+
# @param [String] resource
|
|
8501
|
+
# Name of the resource for this request.
|
|
8502
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
|
|
8503
|
+
# @param [String] fields
|
|
8504
|
+
# Selector specifying which fields to include in a partial response.
|
|
8505
|
+
# @param [String] quota_user
|
|
8506
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8507
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8508
|
+
# Overrides userIp if both are provided.
|
|
8509
|
+
# @param [String] user_ip
|
|
8510
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
8511
|
+
# enforce per-user limits.
|
|
8512
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8513
|
+
# Request-specific options
|
|
8514
|
+
#
|
|
8515
|
+
# @yield [result, err] Result & error if block supplied
|
|
8516
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
8517
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8518
|
+
#
|
|
8519
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
8520
|
+
#
|
|
8521
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8522
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8523
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8524
|
+
def set_snapshot_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8525
|
+
command = make_simple_command(:post, '{project}/global/snapshots/{resource}/setLabels', options)
|
|
8526
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation
|
|
8527
|
+
command.request_object = global_set_labels_request_object
|
|
8528
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
8529
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
8530
|
+
command.params['project'] = project unless project.nil?
|
|
8531
|
+
command.params['resource'] = resource unless resource.nil?
|
|
8532
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8533
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8534
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8535
|
+
execute_or_queue_command(command, &block)
|
|
8536
|
+
end
|
|
8537
|
+
|
|
8538
|
+
# Returns permissions that a caller has on the specified resource.
|
|
8539
|
+
# @param [String] project
|
|
8540
|
+
# Project ID for this request.
|
|
8541
|
+
# @param [String] resource
|
|
8542
|
+
# Name of the resource for this request.
|
|
8543
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
8544
|
+
# @param [String] fields
|
|
8545
|
+
# Selector specifying which fields to include in a partial response.
|
|
8546
|
+
# @param [String] quota_user
|
|
8547
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8548
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8549
|
+
# Overrides userIp if both are provided.
|
|
8550
|
+
# @param [String] user_ip
|
|
8551
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
8552
|
+
# enforce per-user limits.
|
|
8553
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8554
|
+
# Request-specific options
|
|
8555
|
+
#
|
|
8556
|
+
# @yield [result, err] Result & error if block supplied
|
|
8557
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
8558
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8559
|
+
#
|
|
8560
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
8561
|
+
#
|
|
8562
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8563
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8564
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8565
|
+
def test_snapshot_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8566
|
+
command = make_simple_command(:post, '{project}/global/snapshots/{resource}/testIamPermissions', options)
|
|
8567
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
8568
|
+
command.request_object = test_permissions_request_object
|
|
8569
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
8570
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
8571
|
+
command.params['project'] = project unless project.nil?
|
|
8572
|
+
command.params['resource'] = resource unless resource.nil?
|
|
8573
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8574
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8575
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8576
|
+
execute_or_queue_command(command, &block)
|
|
8577
|
+
end
|
|
8578
|
+
|
|
7624
8579
|
# Deletes the specified SslCertificate resource.
|
|
7625
8580
|
# @param [String] project
|
|
7626
8581
|
# Project ID for this request.
|
|
@@ -7659,7 +8614,8 @@ module Google
|
|
|
7659
8614
|
execute_or_queue_command(command, &block)
|
|
7660
8615
|
end
|
|
7661
8616
|
|
|
7662
|
-
# Returns the specified SslCertificate resource.
|
|
8617
|
+
# Returns the specified SslCertificate resource. Get a list of available SSL
|
|
8618
|
+
# certificates by making a list() request.
|
|
7663
8619
|
# @param [String] project
|
|
7664
8620
|
# Project ID for this request.
|
|
7665
8621
|
# @param [String] ssl_certificate
|
|
@@ -7751,7 +8707,7 @@ module Google
|
|
|
7751
8707
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
7752
8708
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
7753
8709
|
# must match the entire field.
|
|
7754
|
-
# For example, to filter for instances
|
|
8710
|
+
# For example, to filter for instances that do not have a name of example-
|
|
7755
8711
|
# instance, you would use filter=name ne example-instance.
|
|
7756
8712
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
7757
8713
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -7761,7 +8717,7 @@ module Google
|
|
|
7761
8717
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
7762
8718
|
# separate expression within parentheses. For example, (scheduling.
|
|
7763
8719
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
7764
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
8720
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
7765
8721
|
# to pass the filters.
|
|
7766
8722
|
# @param [Fixnum] max_results
|
|
7767
8723
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -7816,6 +8772,47 @@ module Google
|
|
|
7816
8772
|
execute_or_queue_command(command, &block)
|
|
7817
8773
|
end
|
|
7818
8774
|
|
|
8775
|
+
# Returns permissions that a caller has on the specified resource.
|
|
8776
|
+
# @param [String] project
|
|
8777
|
+
# Project ID for this request.
|
|
8778
|
+
# @param [String] resource
|
|
8779
|
+
# Name of the resource for this request.
|
|
8780
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
8781
|
+
# @param [String] fields
|
|
8782
|
+
# Selector specifying which fields to include in a partial response.
|
|
8783
|
+
# @param [String] quota_user
|
|
8784
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8785
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8786
|
+
# Overrides userIp if both are provided.
|
|
8787
|
+
# @param [String] user_ip
|
|
8788
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
8789
|
+
# enforce per-user limits.
|
|
8790
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8791
|
+
# Request-specific options
|
|
8792
|
+
#
|
|
8793
|
+
# @yield [result, err] Result & error if block supplied
|
|
8794
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
8795
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8796
|
+
#
|
|
8797
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
8798
|
+
#
|
|
8799
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8800
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8801
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8802
|
+
def test_ssl_certificate_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8803
|
+
command = make_simple_command(:post, '{project}/global/sslCertificates/{resource}/testIamPermissions', options)
|
|
8804
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
8805
|
+
command.request_object = test_permissions_request_object
|
|
8806
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
8807
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
8808
|
+
command.params['project'] = project unless project.nil?
|
|
8809
|
+
command.params['resource'] = resource unless resource.nil?
|
|
8810
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8811
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8812
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8813
|
+
execute_or_queue_command(command, &block)
|
|
8814
|
+
end
|
|
8815
|
+
|
|
7819
8816
|
# Retrieves an aggregated list of subnetworks.
|
|
7820
8817
|
# @param [String] project
|
|
7821
8818
|
# Project ID for this request.
|
|
@@ -7830,7 +8827,7 @@ module Google
|
|
|
7830
8827
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
7831
8828
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
7832
8829
|
# must match the entire field.
|
|
7833
|
-
# For example, to filter for instances
|
|
8830
|
+
# For example, to filter for instances that do not have a name of example-
|
|
7834
8831
|
# instance, you would use filter=name ne example-instance.
|
|
7835
8832
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
7836
8833
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -7840,7 +8837,7 @@ module Google
|
|
|
7840
8837
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
7841
8838
|
# separate expression within parentheses. For example, (scheduling.
|
|
7842
8839
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
7843
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
8840
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
7844
8841
|
# to pass the filters.
|
|
7845
8842
|
# @param [Fixnum] max_results
|
|
7846
8843
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -7936,7 +8933,8 @@ module Google
|
|
|
7936
8933
|
execute_or_queue_command(command, &block)
|
|
7937
8934
|
end
|
|
7938
8935
|
|
|
7939
|
-
# Returns the specified subnetwork.
|
|
8936
|
+
# Returns the specified subnetwork. Get a list of available subnetworks by
|
|
8937
|
+
# making a list() request.
|
|
7940
8938
|
# @param [String] project
|
|
7941
8939
|
# Project ID for this request.
|
|
7942
8940
|
# @param [String] region
|
|
@@ -8035,7 +9033,7 @@ module Google
|
|
|
8035
9033
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
8036
9034
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
8037
9035
|
# must match the entire field.
|
|
8038
|
-
# For example, to filter for instances
|
|
9036
|
+
# For example, to filter for instances that do not have a name of example-
|
|
8039
9037
|
# instance, you would use filter=name ne example-instance.
|
|
8040
9038
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
8041
9039
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -8045,7 +9043,7 @@ module Google
|
|
|
8045
9043
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
8046
9044
|
# separate expression within parentheses. For example, (scheduling.
|
|
8047
9045
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
8048
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
9046
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
8049
9047
|
# to pass the filters.
|
|
8050
9048
|
# @param [Fixnum] max_results
|
|
8051
9049
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -8101,6 +9099,50 @@ module Google
|
|
|
8101
9099
|
execute_or_queue_command(command, &block)
|
|
8102
9100
|
end
|
|
8103
9101
|
|
|
9102
|
+
# Returns permissions that a caller has on the specified resource.
|
|
9103
|
+
# @param [String] project
|
|
9104
|
+
# Project ID for this request.
|
|
9105
|
+
# @param [String] region
|
|
9106
|
+
# The name of the region for this request.
|
|
9107
|
+
# @param [String] resource
|
|
9108
|
+
# Name of the resource for this request.
|
|
9109
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
9110
|
+
# @param [String] fields
|
|
9111
|
+
# Selector specifying which fields to include in a partial response.
|
|
9112
|
+
# @param [String] quota_user
|
|
9113
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
9114
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
9115
|
+
# Overrides userIp if both are provided.
|
|
9116
|
+
# @param [String] user_ip
|
|
9117
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
9118
|
+
# enforce per-user limits.
|
|
9119
|
+
# @param [Google::Apis::RequestOptions] options
|
|
9120
|
+
# Request-specific options
|
|
9121
|
+
#
|
|
9122
|
+
# @yield [result, err] Result & error if block supplied
|
|
9123
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
9124
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
9125
|
+
#
|
|
9126
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
9127
|
+
#
|
|
9128
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
9129
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
9130
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
9131
|
+
def test_subnetwork_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9132
|
+
command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/testIamPermissions', options)
|
|
9133
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
9134
|
+
command.request_object = test_permissions_request_object
|
|
9135
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
9136
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
9137
|
+
command.params['project'] = project unless project.nil?
|
|
9138
|
+
command.params['region'] = region unless region.nil?
|
|
9139
|
+
command.params['resource'] = resource unless resource.nil?
|
|
9140
|
+
command.query['fields'] = fields unless fields.nil?
|
|
9141
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
9142
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
9143
|
+
execute_or_queue_command(command, &block)
|
|
9144
|
+
end
|
|
9145
|
+
|
|
8104
9146
|
# Deletes the specified TargetHttpProxy resource.
|
|
8105
9147
|
# @param [String] project
|
|
8106
9148
|
# Project ID for this request.
|
|
@@ -8139,7 +9181,8 @@ module Google
|
|
|
8139
9181
|
execute_or_queue_command(command, &block)
|
|
8140
9182
|
end
|
|
8141
9183
|
|
|
8142
|
-
# Returns the specified TargetHttpProxy resource.
|
|
9184
|
+
# Returns the specified TargetHttpProxy resource. Get a list of available target
|
|
9185
|
+
# HTTP proxies by making a list() request.
|
|
8143
9186
|
# @param [String] project
|
|
8144
9187
|
# Project ID for this request.
|
|
8145
9188
|
# @param [String] target_http_proxy
|
|
@@ -8231,7 +9274,7 @@ module Google
|
|
|
8231
9274
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
8232
9275
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
8233
9276
|
# must match the entire field.
|
|
8234
|
-
# For example, to filter for instances
|
|
9277
|
+
# For example, to filter for instances that do not have a name of example-
|
|
8235
9278
|
# instance, you would use filter=name ne example-instance.
|
|
8236
9279
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
8237
9280
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -8241,7 +9284,7 @@ module Google
|
|
|
8241
9284
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
8242
9285
|
# separate expression within parentheses. For example, (scheduling.
|
|
8243
9286
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
8244
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
9287
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
8245
9288
|
# to pass the filters.
|
|
8246
9289
|
# @param [Fixnum] max_results
|
|
8247
9290
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -8300,7 +9343,7 @@ module Google
|
|
|
8300
9343
|
# @param [String] project
|
|
8301
9344
|
# Project ID for this request.
|
|
8302
9345
|
# @param [String] target_http_proxy
|
|
8303
|
-
#
|
|
9346
|
+
# Name of the TargetHttpProxy to set a URL map for.
|
|
8304
9347
|
# @param [Google::Apis::ComputeBeta::UrlMapReference] url_map_reference_object
|
|
8305
9348
|
# @param [String] fields
|
|
8306
9349
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -8337,6 +9380,47 @@ module Google
|
|
|
8337
9380
|
execute_or_queue_command(command, &block)
|
|
8338
9381
|
end
|
|
8339
9382
|
|
|
9383
|
+
# Returns permissions that a caller has on the specified resource.
|
|
9384
|
+
# @param [String] project
|
|
9385
|
+
# Project ID for this request.
|
|
9386
|
+
# @param [String] resource
|
|
9387
|
+
# Name of the resource for this request.
|
|
9388
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
9389
|
+
# @param [String] fields
|
|
9390
|
+
# Selector specifying which fields to include in a partial response.
|
|
9391
|
+
# @param [String] quota_user
|
|
9392
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
9393
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
9394
|
+
# Overrides userIp if both are provided.
|
|
9395
|
+
# @param [String] user_ip
|
|
9396
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
9397
|
+
# enforce per-user limits.
|
|
9398
|
+
# @param [Google::Apis::RequestOptions] options
|
|
9399
|
+
# Request-specific options
|
|
9400
|
+
#
|
|
9401
|
+
# @yield [result, err] Result & error if block supplied
|
|
9402
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
9403
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
9404
|
+
#
|
|
9405
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
9406
|
+
#
|
|
9407
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
9408
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
9409
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
9410
|
+
def test_target_http_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9411
|
+
command = make_simple_command(:post, '{project}/global/targetHttpProxies/{resource}/testIamPermissions', options)
|
|
9412
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
9413
|
+
command.request_object = test_permissions_request_object
|
|
9414
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
9415
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
9416
|
+
command.params['project'] = project unless project.nil?
|
|
9417
|
+
command.params['resource'] = resource unless resource.nil?
|
|
9418
|
+
command.query['fields'] = fields unless fields.nil?
|
|
9419
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
9420
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
9421
|
+
execute_or_queue_command(command, &block)
|
|
9422
|
+
end
|
|
9423
|
+
|
|
8340
9424
|
# Deletes the specified TargetHttpsProxy resource.
|
|
8341
9425
|
# @param [String] project
|
|
8342
9426
|
# Project ID for this request.
|
|
@@ -8375,7 +9459,8 @@ module Google
|
|
|
8375
9459
|
execute_or_queue_command(command, &block)
|
|
8376
9460
|
end
|
|
8377
9461
|
|
|
8378
|
-
# Returns the specified TargetHttpsProxy resource.
|
|
9462
|
+
# Returns the specified TargetHttpsProxy resource. Get a list of available
|
|
9463
|
+
# target HTTPS proxies by making a list() request.
|
|
8379
9464
|
# @param [String] project
|
|
8380
9465
|
# Project ID for this request.
|
|
8381
9466
|
# @param [String] target_https_proxy
|
|
@@ -8467,7 +9552,7 @@ module Google
|
|
|
8467
9552
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
8468
9553
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
8469
9554
|
# must match the entire field.
|
|
8470
|
-
# For example, to filter for instances
|
|
9555
|
+
# For example, to filter for instances that do not have a name of example-
|
|
8471
9556
|
# instance, you would use filter=name ne example-instance.
|
|
8472
9557
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
8473
9558
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -8477,7 +9562,7 @@ module Google
|
|
|
8477
9562
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
8478
9563
|
# separate expression within parentheses. For example, (scheduling.
|
|
8479
9564
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
8480
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
9565
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
8481
9566
|
# to pass the filters.
|
|
8482
9567
|
# @param [Fixnum] max_results
|
|
8483
9568
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -8536,7 +9621,7 @@ module Google
|
|
|
8536
9621
|
# @param [String] project
|
|
8537
9622
|
# Project ID for this request.
|
|
8538
9623
|
# @param [String] target_https_proxy
|
|
8539
|
-
# Name of the TargetHttpsProxy resource to set an
|
|
9624
|
+
# Name of the TargetHttpsProxy resource to set an SslCertificates resource for.
|
|
8540
9625
|
# @param [Google::Apis::ComputeBeta::TargetHttpsProxiesSetSslCertificatesRequest] target_https_proxies_set_ssl_certificates_request_object
|
|
8541
9626
|
# @param [String] fields
|
|
8542
9627
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -8614,6 +9699,47 @@ module Google
|
|
|
8614
9699
|
execute_or_queue_command(command, &block)
|
|
8615
9700
|
end
|
|
8616
9701
|
|
|
9702
|
+
# Returns permissions that a caller has on the specified resource.
|
|
9703
|
+
# @param [String] project
|
|
9704
|
+
# Project ID for this request.
|
|
9705
|
+
# @param [String] resource
|
|
9706
|
+
# Name of the resource for this request.
|
|
9707
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
9708
|
+
# @param [String] fields
|
|
9709
|
+
# Selector specifying which fields to include in a partial response.
|
|
9710
|
+
# @param [String] quota_user
|
|
9711
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
9712
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
9713
|
+
# Overrides userIp if both are provided.
|
|
9714
|
+
# @param [String] user_ip
|
|
9715
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
9716
|
+
# enforce per-user limits.
|
|
9717
|
+
# @param [Google::Apis::RequestOptions] options
|
|
9718
|
+
# Request-specific options
|
|
9719
|
+
#
|
|
9720
|
+
# @yield [result, err] Result & error if block supplied
|
|
9721
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
9722
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
9723
|
+
#
|
|
9724
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
9725
|
+
#
|
|
9726
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
9727
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
9728
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
9729
|
+
def test_target_https_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
9730
|
+
command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{resource}/testIamPermissions', options)
|
|
9731
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
9732
|
+
command.request_object = test_permissions_request_object
|
|
9733
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
9734
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
9735
|
+
command.params['project'] = project unless project.nil?
|
|
9736
|
+
command.params['resource'] = resource unless resource.nil?
|
|
9737
|
+
command.query['fields'] = fields unless fields.nil?
|
|
9738
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
9739
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
9740
|
+
execute_or_queue_command(command, &block)
|
|
9741
|
+
end
|
|
9742
|
+
|
|
8617
9743
|
# Retrieves an aggregated list of target instances.
|
|
8618
9744
|
# @param [String] project
|
|
8619
9745
|
# Project ID for this request.
|
|
@@ -8628,7 +9754,7 @@ module Google
|
|
|
8628
9754
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
8629
9755
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
8630
9756
|
# must match the entire field.
|
|
8631
|
-
# For example, to filter for instances
|
|
9757
|
+
# For example, to filter for instances that do not have a name of example-
|
|
8632
9758
|
# instance, you would use filter=name ne example-instance.
|
|
8633
9759
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
8634
9760
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -8638,7 +9764,7 @@ module Google
|
|
|
8638
9764
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
8639
9765
|
# separate expression within parentheses. For example, (scheduling.
|
|
8640
9766
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
8641
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
9767
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
8642
9768
|
# to pass the filters.
|
|
8643
9769
|
# @param [Fixnum] max_results
|
|
8644
9770
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -8734,7 +9860,8 @@ module Google
|
|
|
8734
9860
|
execute_or_queue_command(command, &block)
|
|
8735
9861
|
end
|
|
8736
9862
|
|
|
8737
|
-
# Returns the specified TargetInstance resource.
|
|
9863
|
+
# Returns the specified TargetInstance resource. Get a list of available target
|
|
9864
|
+
# instances by making a list() request.
|
|
8738
9865
|
# @param [String] project
|
|
8739
9866
|
# Project ID for this request.
|
|
8740
9867
|
# @param [String] zone
|
|
@@ -8834,7 +9961,7 @@ module Google
|
|
|
8834
9961
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
8835
9962
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
8836
9963
|
# must match the entire field.
|
|
8837
|
-
# For example, to filter for instances
|
|
9964
|
+
# For example, to filter for instances that do not have a name of example-
|
|
8838
9965
|
# instance, you would use filter=name ne example-instance.
|
|
8839
9966
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
8840
9967
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -8844,7 +9971,7 @@ module Google
|
|
|
8844
9971
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
8845
9972
|
# separate expression within parentheses. For example, (scheduling.
|
|
8846
9973
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
8847
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
9974
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
8848
9975
|
# to pass the filters.
|
|
8849
9976
|
# @param [Fixnum] max_results
|
|
8850
9977
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -8900,6 +10027,50 @@ module Google
|
|
|
8900
10027
|
execute_or_queue_command(command, &block)
|
|
8901
10028
|
end
|
|
8902
10029
|
|
|
10030
|
+
# Returns permissions that a caller has on the specified resource.
|
|
10031
|
+
# @param [String] project
|
|
10032
|
+
# Project ID for this request.
|
|
10033
|
+
# @param [String] zone
|
|
10034
|
+
# The name of the zone for this request.
|
|
10035
|
+
# @param [String] resource
|
|
10036
|
+
# Name of the resource for this request.
|
|
10037
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
10038
|
+
# @param [String] fields
|
|
10039
|
+
# Selector specifying which fields to include in a partial response.
|
|
10040
|
+
# @param [String] quota_user
|
|
10041
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10042
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10043
|
+
# Overrides userIp if both are provided.
|
|
10044
|
+
# @param [String] user_ip
|
|
10045
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
10046
|
+
# enforce per-user limits.
|
|
10047
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10048
|
+
# Request-specific options
|
|
10049
|
+
#
|
|
10050
|
+
# @yield [result, err] Result & error if block supplied
|
|
10051
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
10052
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10053
|
+
#
|
|
10054
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
10055
|
+
#
|
|
10056
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10057
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10058
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10059
|
+
def test_target_instance_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10060
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions', options)
|
|
10061
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
10062
|
+
command.request_object = test_permissions_request_object
|
|
10063
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
10064
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
10065
|
+
command.params['project'] = project unless project.nil?
|
|
10066
|
+
command.params['zone'] = zone unless zone.nil?
|
|
10067
|
+
command.params['resource'] = resource unless resource.nil?
|
|
10068
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10069
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10070
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10071
|
+
execute_or_queue_command(command, &block)
|
|
10072
|
+
end
|
|
10073
|
+
|
|
8903
10074
|
# Adds health check URLs to a target pool.
|
|
8904
10075
|
# @param [String] project
|
|
8905
10076
|
# Project ID for this request.
|
|
@@ -9002,7 +10173,7 @@ module Google
|
|
|
9002
10173
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
9003
10174
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
9004
10175
|
# must match the entire field.
|
|
9005
|
-
# For example, to filter for instances
|
|
10176
|
+
# For example, to filter for instances that do not have a name of example-
|
|
9006
10177
|
# instance, you would use filter=name ne example-instance.
|
|
9007
10178
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
9008
10179
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -9012,7 +10183,7 @@ module Google
|
|
|
9012
10183
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
9013
10184
|
# separate expression within parentheses. For example, (scheduling.
|
|
9014
10185
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
9015
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
10186
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
9016
10187
|
# to pass the filters.
|
|
9017
10188
|
# @param [Fixnum] max_results
|
|
9018
10189
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -9108,7 +10279,8 @@ module Google
|
|
|
9108
10279
|
execute_or_queue_command(command, &block)
|
|
9109
10280
|
end
|
|
9110
10281
|
|
|
9111
|
-
# Returns the specified target pool.
|
|
10282
|
+
# Returns the specified target pool. Get a list of available target pools by
|
|
10283
|
+
# making a list() request.
|
|
9112
10284
|
# @param [String] project
|
|
9113
10285
|
# Project ID for this request.
|
|
9114
10286
|
# @param [String] region
|
|
@@ -9252,7 +10424,7 @@ module Google
|
|
|
9252
10424
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
9253
10425
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
9254
10426
|
# must match the entire field.
|
|
9255
|
-
# For example, to filter for instances
|
|
10427
|
+
# For example, to filter for instances that do not have a name of example-
|
|
9256
10428
|
# instance, you would use filter=name ne example-instance.
|
|
9257
10429
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
9258
10430
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -9262,7 +10434,7 @@ module Google
|
|
|
9262
10434
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
9263
10435
|
# separate expression within parentheses. For example, (scheduling.
|
|
9264
10436
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
9265
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
10437
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
9266
10438
|
# to pass the filters.
|
|
9267
10439
|
# @param [Fixnum] max_results
|
|
9268
10440
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -9453,6 +10625,50 @@ module Google
|
|
|
9453
10625
|
execute_or_queue_command(command, &block)
|
|
9454
10626
|
end
|
|
9455
10627
|
|
|
10628
|
+
# Returns permissions that a caller has on the specified resource.
|
|
10629
|
+
# @param [String] project
|
|
10630
|
+
# Project ID for this request.
|
|
10631
|
+
# @param [String] region
|
|
10632
|
+
# The name of the region for this request.
|
|
10633
|
+
# @param [String] resource
|
|
10634
|
+
# Name of the resource for this request.
|
|
10635
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
10636
|
+
# @param [String] fields
|
|
10637
|
+
# Selector specifying which fields to include in a partial response.
|
|
10638
|
+
# @param [String] quota_user
|
|
10639
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10640
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10641
|
+
# Overrides userIp if both are provided.
|
|
10642
|
+
# @param [String] user_ip
|
|
10643
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
10644
|
+
# enforce per-user limits.
|
|
10645
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10646
|
+
# Request-specific options
|
|
10647
|
+
#
|
|
10648
|
+
# @yield [result, err] Result & error if block supplied
|
|
10649
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
10650
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10651
|
+
#
|
|
10652
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
10653
|
+
#
|
|
10654
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10655
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10656
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10657
|
+
def test_target_pool_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10658
|
+
command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{resource}/testIamPermissions', options)
|
|
10659
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
10660
|
+
command.request_object = test_permissions_request_object
|
|
10661
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
10662
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
10663
|
+
command.params['project'] = project unless project.nil?
|
|
10664
|
+
command.params['region'] = region unless region.nil?
|
|
10665
|
+
command.params['resource'] = resource unless resource.nil?
|
|
10666
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10667
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10668
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10669
|
+
execute_or_queue_command(command, &block)
|
|
10670
|
+
end
|
|
10671
|
+
|
|
9456
10672
|
# Retrieves an aggregated list of target VPN gateways.
|
|
9457
10673
|
# @param [String] project
|
|
9458
10674
|
# Project ID for this request.
|
|
@@ -9467,7 +10683,7 @@ module Google
|
|
|
9467
10683
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
9468
10684
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
9469
10685
|
# must match the entire field.
|
|
9470
|
-
# For example, to filter for instances
|
|
10686
|
+
# For example, to filter for instances that do not have a name of example-
|
|
9471
10687
|
# instance, you would use filter=name ne example-instance.
|
|
9472
10688
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
9473
10689
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -9477,7 +10693,7 @@ module Google
|
|
|
9477
10693
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
9478
10694
|
# separate expression within parentheses. For example, (scheduling.
|
|
9479
10695
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
9480
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
10696
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
9481
10697
|
# to pass the filters.
|
|
9482
10698
|
# @param [Fixnum] max_results
|
|
9483
10699
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -9536,7 +10752,7 @@ module Google
|
|
|
9536
10752
|
# @param [String] project
|
|
9537
10753
|
# Project ID for this request.
|
|
9538
10754
|
# @param [String] region
|
|
9539
|
-
#
|
|
10755
|
+
# Name of the region for this request.
|
|
9540
10756
|
# @param [String] target_vpn_gateway
|
|
9541
10757
|
# Name of the target VPN gateway to delete.
|
|
9542
10758
|
# @param [String] fields
|
|
@@ -9573,11 +10789,12 @@ module Google
|
|
|
9573
10789
|
execute_or_queue_command(command, &block)
|
|
9574
10790
|
end
|
|
9575
10791
|
|
|
9576
|
-
# Returns the specified target VPN gateway.
|
|
10792
|
+
# Returns the specified target VPN gateway. Get a list of available target VPN
|
|
10793
|
+
# gateways by making a list() request.
|
|
9577
10794
|
# @param [String] project
|
|
9578
10795
|
# Project ID for this request.
|
|
9579
10796
|
# @param [String] region
|
|
9580
|
-
#
|
|
10797
|
+
# Name of the region for this request.
|
|
9581
10798
|
# @param [String] target_vpn_gateway
|
|
9582
10799
|
# Name of the target VPN gateway to return.
|
|
9583
10800
|
# @param [String] fields
|
|
@@ -9619,7 +10836,7 @@ module Google
|
|
|
9619
10836
|
# @param [String] project
|
|
9620
10837
|
# Project ID for this request.
|
|
9621
10838
|
# @param [String] region
|
|
9622
|
-
#
|
|
10839
|
+
# Name of the region for this request.
|
|
9623
10840
|
# @param [Google::Apis::ComputeBeta::TargetVpnGateway] target_vpn_gateway_object
|
|
9624
10841
|
# @param [String] fields
|
|
9625
10842
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -9661,7 +10878,7 @@ module Google
|
|
|
9661
10878
|
# @param [String] project
|
|
9662
10879
|
# Project ID for this request.
|
|
9663
10880
|
# @param [String] region
|
|
9664
|
-
#
|
|
10881
|
+
# Name of the region for this request.
|
|
9665
10882
|
# @param [String] filter
|
|
9666
10883
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
9667
10884
|
# expression`. Your `expression` must be in the format: field_name
|
|
@@ -9673,7 +10890,7 @@ module Google
|
|
|
9673
10890
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
9674
10891
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
9675
10892
|
# must match the entire field.
|
|
9676
|
-
# For example, to filter for instances
|
|
10893
|
+
# For example, to filter for instances that do not have a name of example-
|
|
9677
10894
|
# instance, you would use filter=name ne example-instance.
|
|
9678
10895
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
9679
10896
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -9683,7 +10900,7 @@ module Google
|
|
|
9683
10900
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
9684
10901
|
# separate expression within parentheses. For example, (scheduling.
|
|
9685
10902
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
9686
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
10903
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
9687
10904
|
# to pass the filters.
|
|
9688
10905
|
# @param [Fixnum] max_results
|
|
9689
10906
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -9739,6 +10956,50 @@ module Google
|
|
|
9739
10956
|
execute_or_queue_command(command, &block)
|
|
9740
10957
|
end
|
|
9741
10958
|
|
|
10959
|
+
# Returns permissions that a caller has on the specified resource.
|
|
10960
|
+
# @param [String] project
|
|
10961
|
+
# Project ID for this request.
|
|
10962
|
+
# @param [String] region
|
|
10963
|
+
# The name of the region for this request.
|
|
10964
|
+
# @param [String] resource
|
|
10965
|
+
# Name of the resource for this request.
|
|
10966
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
10967
|
+
# @param [String] fields
|
|
10968
|
+
# Selector specifying which fields to include in a partial response.
|
|
10969
|
+
# @param [String] quota_user
|
|
10970
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10971
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10972
|
+
# Overrides userIp if both are provided.
|
|
10973
|
+
# @param [String] user_ip
|
|
10974
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
10975
|
+
# enforce per-user limits.
|
|
10976
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10977
|
+
# Request-specific options
|
|
10978
|
+
#
|
|
10979
|
+
# @yield [result, err] Result & error if block supplied
|
|
10980
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
10981
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10982
|
+
#
|
|
10983
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
10984
|
+
#
|
|
10985
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10986
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10987
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10988
|
+
def test_target_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10989
|
+
command = make_simple_command(:post, '{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions', options)
|
|
10990
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
10991
|
+
command.request_object = test_permissions_request_object
|
|
10992
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
10993
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
10994
|
+
command.params['project'] = project unless project.nil?
|
|
10995
|
+
command.params['region'] = region unless region.nil?
|
|
10996
|
+
command.params['resource'] = resource unless resource.nil?
|
|
10997
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10998
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10999
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
11000
|
+
execute_or_queue_command(command, &block)
|
|
11001
|
+
end
|
|
11002
|
+
|
|
9742
11003
|
# Deletes the specified UrlMap resource.
|
|
9743
11004
|
# @param [String] project
|
|
9744
11005
|
# Project ID for this request.
|
|
@@ -9777,7 +11038,8 @@ module Google
|
|
|
9777
11038
|
execute_or_queue_command(command, &block)
|
|
9778
11039
|
end
|
|
9779
11040
|
|
|
9780
|
-
# Returns the specified UrlMap resource.
|
|
11041
|
+
# Returns the specified UrlMap resource. Get a list of available URL maps by
|
|
11042
|
+
# making a list() request.
|
|
9781
11043
|
# @param [String] project
|
|
9782
11044
|
# Project ID for this request.
|
|
9783
11045
|
# @param [String] url_map
|
|
@@ -9854,6 +11116,48 @@ module Google
|
|
|
9854
11116
|
execute_or_queue_command(command, &block)
|
|
9855
11117
|
end
|
|
9856
11118
|
|
|
11119
|
+
# Initiates a cache invalidation operation, invalidating the specified path,
|
|
11120
|
+
# scoped to the specified UrlMap.
|
|
11121
|
+
# @param [String] project
|
|
11122
|
+
# Project ID for this request.
|
|
11123
|
+
# @param [String] url_map
|
|
11124
|
+
# Name of the UrlMap scoping this request.
|
|
11125
|
+
# @param [Google::Apis::ComputeBeta::CacheInvalidationRule] cache_invalidation_rule_object
|
|
11126
|
+
# @param [String] fields
|
|
11127
|
+
# Selector specifying which fields to include in a partial response.
|
|
11128
|
+
# @param [String] quota_user
|
|
11129
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
11130
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
11131
|
+
# Overrides userIp if both are provided.
|
|
11132
|
+
# @param [String] user_ip
|
|
11133
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
11134
|
+
# enforce per-user limits.
|
|
11135
|
+
# @param [Google::Apis::RequestOptions] options
|
|
11136
|
+
# Request-specific options
|
|
11137
|
+
#
|
|
11138
|
+
# @yield [result, err] Result & error if block supplied
|
|
11139
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
|
11140
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
11141
|
+
#
|
|
11142
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
|
11143
|
+
#
|
|
11144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
11145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
11146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
11147
|
+
def invalidate_url_map_cache(project, url_map, cache_invalidation_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
11148
|
+
command = make_simple_command(:post, '{project}/global/urlMaps/{urlMap}/invalidateCache', options)
|
|
11149
|
+
command.request_representation = Google::Apis::ComputeBeta::CacheInvalidationRule::Representation
|
|
11150
|
+
command.request_object = cache_invalidation_rule_object
|
|
11151
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
|
11152
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
|
11153
|
+
command.params['project'] = project unless project.nil?
|
|
11154
|
+
command.params['urlMap'] = url_map unless url_map.nil?
|
|
11155
|
+
command.query['fields'] = fields unless fields.nil?
|
|
11156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
11157
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
11158
|
+
execute_or_queue_command(command, &block)
|
|
11159
|
+
end
|
|
11160
|
+
|
|
9857
11161
|
# Retrieves the list of UrlMap resources available to the specified project.
|
|
9858
11162
|
# @param [String] project
|
|
9859
11163
|
# Project ID for this request.
|
|
@@ -9868,7 +11172,7 @@ module Google
|
|
|
9868
11172
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
9869
11173
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
9870
11174
|
# must match the entire field.
|
|
9871
|
-
# For example, to filter for instances
|
|
11175
|
+
# For example, to filter for instances that do not have a name of example-
|
|
9872
11176
|
# instance, you would use filter=name ne example-instance.
|
|
9873
11177
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
9874
11178
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -9878,7 +11182,7 @@ module Google
|
|
|
9878
11182
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
9879
11183
|
# separate expression within parentheses. For example, (scheduling.
|
|
9880
11184
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
9881
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
11185
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
9882
11186
|
# to pass the filters.
|
|
9883
11187
|
# @param [Fixnum] max_results
|
|
9884
11188
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -9975,6 +11279,47 @@ module Google
|
|
|
9975
11279
|
execute_or_queue_command(command, &block)
|
|
9976
11280
|
end
|
|
9977
11281
|
|
|
11282
|
+
# Returns permissions that a caller has on the specified resource.
|
|
11283
|
+
# @param [String] project
|
|
11284
|
+
# Project ID for this request.
|
|
11285
|
+
# @param [String] resource
|
|
11286
|
+
# Name of the resource for this request.
|
|
11287
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
11288
|
+
# @param [String] fields
|
|
11289
|
+
# Selector specifying which fields to include in a partial response.
|
|
11290
|
+
# @param [String] quota_user
|
|
11291
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
11292
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
11293
|
+
# Overrides userIp if both are provided.
|
|
11294
|
+
# @param [String] user_ip
|
|
11295
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
11296
|
+
# enforce per-user limits.
|
|
11297
|
+
# @param [Google::Apis::RequestOptions] options
|
|
11298
|
+
# Request-specific options
|
|
11299
|
+
#
|
|
11300
|
+
# @yield [result, err] Result & error if block supplied
|
|
11301
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
11302
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
11303
|
+
#
|
|
11304
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
11305
|
+
#
|
|
11306
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
11307
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
11308
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
11309
|
+
def test_url_map_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
11310
|
+
command = make_simple_command(:post, '{project}/global/urlMaps/{resource}/testIamPermissions', options)
|
|
11311
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
11312
|
+
command.request_object = test_permissions_request_object
|
|
11313
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
11314
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
11315
|
+
command.params['project'] = project unless project.nil?
|
|
11316
|
+
command.params['resource'] = resource unless resource.nil?
|
|
11317
|
+
command.query['fields'] = fields unless fields.nil?
|
|
11318
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
11319
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
11320
|
+
execute_or_queue_command(command, &block)
|
|
11321
|
+
end
|
|
11322
|
+
|
|
9978
11323
|
# Updates the entire content of the UrlMap resource.
|
|
9979
11324
|
# @param [String] project
|
|
9980
11325
|
# Project ID for this request.
|
|
@@ -10072,7 +11417,7 @@ module Google
|
|
|
10072
11417
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
10073
11418
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
10074
11419
|
# must match the entire field.
|
|
10075
|
-
# For example, to filter for instances
|
|
11420
|
+
# For example, to filter for instances that do not have a name of example-
|
|
10076
11421
|
# instance, you would use filter=name ne example-instance.
|
|
10077
11422
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
10078
11423
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -10082,7 +11427,7 @@ module Google
|
|
|
10082
11427
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
10083
11428
|
# separate expression within parentheses. For example, (scheduling.
|
|
10084
11429
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
10085
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
11430
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
10086
11431
|
# to pass the filters.
|
|
10087
11432
|
# @param [Fixnum] max_results
|
|
10088
11433
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -10141,7 +11486,7 @@ module Google
|
|
|
10141
11486
|
# @param [String] project
|
|
10142
11487
|
# Project ID for this request.
|
|
10143
11488
|
# @param [String] region
|
|
10144
|
-
#
|
|
11489
|
+
# Name of the region for this request.
|
|
10145
11490
|
# @param [String] vpn_tunnel
|
|
10146
11491
|
# Name of the VpnTunnel resource to delete.
|
|
10147
11492
|
# @param [String] fields
|
|
@@ -10178,11 +11523,12 @@ module Google
|
|
|
10178
11523
|
execute_or_queue_command(command, &block)
|
|
10179
11524
|
end
|
|
10180
11525
|
|
|
10181
|
-
# Returns the specified VpnTunnel resource.
|
|
11526
|
+
# Returns the specified VpnTunnel resource. Get a list of available VPN tunnels
|
|
11527
|
+
# by making a list() request.
|
|
10182
11528
|
# @param [String] project
|
|
10183
11529
|
# Project ID for this request.
|
|
10184
11530
|
# @param [String] region
|
|
10185
|
-
#
|
|
11531
|
+
# Name of the region for this request.
|
|
10186
11532
|
# @param [String] vpn_tunnel
|
|
10187
11533
|
# Name of the VpnTunnel resource to return.
|
|
10188
11534
|
# @param [String] fields
|
|
@@ -10224,7 +11570,7 @@ module Google
|
|
|
10224
11570
|
# @param [String] project
|
|
10225
11571
|
# Project ID for this request.
|
|
10226
11572
|
# @param [String] region
|
|
10227
|
-
#
|
|
11573
|
+
# Name of the region for this request.
|
|
10228
11574
|
# @param [Google::Apis::ComputeBeta::VpnTunnel] vpn_tunnel_object
|
|
10229
11575
|
# @param [String] fields
|
|
10230
11576
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -10266,7 +11612,7 @@ module Google
|
|
|
10266
11612
|
# @param [String] project
|
|
10267
11613
|
# Project ID for this request.
|
|
10268
11614
|
# @param [String] region
|
|
10269
|
-
#
|
|
11615
|
+
# Name of the region for this request.
|
|
10270
11616
|
# @param [String] filter
|
|
10271
11617
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
10272
11618
|
# expression`. Your `expression` must be in the format: field_name
|
|
@@ -10278,7 +11624,7 @@ module Google
|
|
|
10278
11624
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
10279
11625
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
10280
11626
|
# must match the entire field.
|
|
10281
|
-
# For example, to filter for instances
|
|
11627
|
+
# For example, to filter for instances that do not have a name of example-
|
|
10282
11628
|
# instance, you would use filter=name ne example-instance.
|
|
10283
11629
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
10284
11630
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -10288,7 +11634,7 @@ module Google
|
|
|
10288
11634
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
10289
11635
|
# separate expression within parentheses. For example, (scheduling.
|
|
10290
11636
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
10291
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
11637
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
10292
11638
|
# to pass the filters.
|
|
10293
11639
|
# @param [Fixnum] max_results
|
|
10294
11640
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -10344,6 +11690,50 @@ module Google
|
|
|
10344
11690
|
execute_or_queue_command(command, &block)
|
|
10345
11691
|
end
|
|
10346
11692
|
|
|
11693
|
+
# Returns permissions that a caller has on the specified resource.
|
|
11694
|
+
# @param [String] project
|
|
11695
|
+
# Project ID for this request.
|
|
11696
|
+
# @param [String] region
|
|
11697
|
+
# The name of the region for this request.
|
|
11698
|
+
# @param [String] resource
|
|
11699
|
+
# Name of the resource for this request.
|
|
11700
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
|
11701
|
+
# @param [String] fields
|
|
11702
|
+
# Selector specifying which fields to include in a partial response.
|
|
11703
|
+
# @param [String] quota_user
|
|
11704
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
11705
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
11706
|
+
# Overrides userIp if both are provided.
|
|
11707
|
+
# @param [String] user_ip
|
|
11708
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
11709
|
+
# enforce per-user limits.
|
|
11710
|
+
# @param [Google::Apis::RequestOptions] options
|
|
11711
|
+
# Request-specific options
|
|
11712
|
+
#
|
|
11713
|
+
# @yield [result, err] Result & error if block supplied
|
|
11714
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
|
11715
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
11716
|
+
#
|
|
11717
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
|
11718
|
+
#
|
|
11719
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
11720
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
11721
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
11722
|
+
def test_vpn_tunnel_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
11723
|
+
command = make_simple_command(:post, '{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions', options)
|
|
11724
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
|
11725
|
+
command.request_object = test_permissions_request_object
|
|
11726
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
|
11727
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
|
11728
|
+
command.params['project'] = project unless project.nil?
|
|
11729
|
+
command.params['region'] = region unless region.nil?
|
|
11730
|
+
command.params['resource'] = resource unless resource.nil?
|
|
11731
|
+
command.query['fields'] = fields unless fields.nil?
|
|
11732
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
11733
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
11734
|
+
execute_or_queue_command(command, &block)
|
|
11735
|
+
end
|
|
11736
|
+
|
|
10347
11737
|
# Deletes the specified zone-specific Operations resource.
|
|
10348
11738
|
# @param [String] project
|
|
10349
11739
|
# Project ID for this request.
|
|
@@ -10440,7 +11830,7 @@ module Google
|
|
|
10440
11830
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
10441
11831
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
10442
11832
|
# must match the entire field.
|
|
10443
|
-
# For example, to filter for instances
|
|
11833
|
+
# For example, to filter for instances that do not have a name of example-
|
|
10444
11834
|
# instance, you would use filter=name ne example-instance.
|
|
10445
11835
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
10446
11836
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -10450,7 +11840,7 @@ module Google
|
|
|
10450
11840
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
10451
11841
|
# separate expression within parentheses. For example, (scheduling.
|
|
10452
11842
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
10453
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
11843
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
10454
11844
|
# to pass the filters.
|
|
10455
11845
|
# @param [Fixnum] max_results
|
|
10456
11846
|
# The maximum number of results per page that should be returned. If the number
|
|
@@ -10506,7 +11896,8 @@ module Google
|
|
|
10506
11896
|
execute_or_queue_command(command, &block)
|
|
10507
11897
|
end
|
|
10508
11898
|
|
|
10509
|
-
# Returns the specified
|
|
11899
|
+
# Returns the specified Zone resource. Get a list of available zones by making a
|
|
11900
|
+
# list() request.
|
|
10510
11901
|
# @param [String] project
|
|
10511
11902
|
# Project ID for this request.
|
|
10512
11903
|
# @param [String] zone
|
|
@@ -10544,7 +11935,7 @@ module Google
|
|
|
10544
11935
|
execute_or_queue_command(command, &block)
|
|
10545
11936
|
end
|
|
10546
11937
|
|
|
10547
|
-
# Retrieves the list of
|
|
11938
|
+
# Retrieves the list of Zone resources available to the specified project.
|
|
10548
11939
|
# @param [String] project
|
|
10549
11940
|
# Project ID for this request.
|
|
10550
11941
|
# @param [String] filter
|
|
@@ -10558,7 +11949,7 @@ module Google
|
|
|
10558
11949
|
# filtering by (string, number, boolean). For string fields, the literal value
|
|
10559
11950
|
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
10560
11951
|
# must match the entire field.
|
|
10561
|
-
# For example, to filter for instances
|
|
11952
|
+
# For example, to filter for instances that do not have a name of example-
|
|
10562
11953
|
# instance, you would use filter=name ne example-instance.
|
|
10563
11954
|
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
10564
11955
|
# also filter on nested fields. For example, you could filter on instances that
|
|
@@ -10568,7 +11959,7 @@ module Google
|
|
|
10568
11959
|
# The Beta API also supports filtering on multiple expressions by providing each
|
|
10569
11960
|
# separate expression within parentheses. For example, (scheduling.
|
|
10570
11961
|
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
10571
|
-
# treated as AND expressions meaning that resources must match all expressions
|
|
11962
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
10572
11963
|
# to pass the filters.
|
|
10573
11964
|
# @param [Fixnum] max_results
|
|
10574
11965
|
# The maximum number of results per page that should be returned. If the number
|