google-apis-compute_beta 0.4.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/compute_beta.rb +1 -1
- data/lib/google/apis/compute_beta/classes.rb +514 -69
- data/lib/google/apis/compute_beta/gem_version.rb +3 -3
- data/lib/google/apis/compute_beta/representations.rb +128 -2
- data/lib/google/apis/compute_beta/service.rb +1423 -540
- metadata +5 -5
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ComputeBeta
|
18
18
|
# Version of the google-apis-compute_beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210415"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -346,6 +346,12 @@ module Google
|
|
346
346
|
include Google::Apis::Core::JsonObjectSupport
|
347
347
|
end
|
348
348
|
|
349
|
+
class BackendBucketCdnPolicyCacheKeyPolicy
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
|
+
|
352
|
+
include Google::Apis::Core::JsonObjectSupport
|
353
|
+
end
|
354
|
+
|
349
355
|
class BackendBucketCdnPolicyNegativeCachingPolicy
|
350
356
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
357
|
|
@@ -1402,6 +1408,12 @@ module Google
|
|
1402
1408
|
include Google::Apis::Core::JsonObjectSupport
|
1403
1409
|
end
|
1404
1410
|
|
1411
|
+
class ImageFamilyView
|
1412
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1413
|
+
|
1414
|
+
include Google::Apis::Core::JsonObjectSupport
|
1415
|
+
end
|
1416
|
+
|
1405
1417
|
class ImageList
|
1406
1418
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1407
1419
|
|
@@ -4114,12 +4126,24 @@ module Google
|
|
4114
4126
|
include Google::Apis::Core::JsonObjectSupport
|
4115
4127
|
end
|
4116
4128
|
|
4129
|
+
class ServiceAttachmentConnectedEndpoint
|
4130
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4131
|
+
|
4132
|
+
include Google::Apis::Core::JsonObjectSupport
|
4133
|
+
end
|
4134
|
+
|
4117
4135
|
class ServiceAttachmentConsumerForwardingRule
|
4118
4136
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4119
4137
|
|
4120
4138
|
include Google::Apis::Core::JsonObjectSupport
|
4121
4139
|
end
|
4122
4140
|
|
4141
|
+
class ServiceAttachmentConsumerProjectLimit
|
4142
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4143
|
+
|
4144
|
+
include Google::Apis::Core::JsonObjectSupport
|
4145
|
+
end
|
4146
|
+
|
4123
4147
|
class ServiceAttachmentList
|
4124
4148
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4125
4149
|
|
@@ -4474,6 +4498,12 @@ module Google
|
|
4474
4498
|
include Google::Apis::Core::JsonObjectSupport
|
4475
4499
|
end
|
4476
4500
|
|
4501
|
+
class Subsetting
|
4502
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4503
|
+
|
4504
|
+
include Google::Apis::Core::JsonObjectSupport
|
4505
|
+
end
|
4506
|
+
|
4477
4507
|
class TcpHealthCheck
|
4478
4508
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4479
4509
|
|
@@ -4954,6 +4984,12 @@ module Google
|
|
4954
4984
|
include Google::Apis::Core::JsonObjectSupport
|
4955
4985
|
end
|
4956
4986
|
|
4987
|
+
class Uint128
|
4988
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4989
|
+
|
4990
|
+
include Google::Apis::Core::JsonObjectSupport
|
4991
|
+
end
|
4992
|
+
|
4957
4993
|
class UrlMap
|
4958
4994
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4959
4995
|
|
@@ -5608,6 +5644,7 @@ module Google
|
|
5608
5644
|
# @private
|
5609
5645
|
class Representation < Google::Apis::Core::JsonRepresentation
|
5610
5646
|
property :enable_nested_virtualization, as: 'enableNestedVirtualization'
|
5647
|
+
property :threads_per_core, as: 'threadsPerCore'
|
5611
5648
|
end
|
5612
5649
|
end
|
5613
5650
|
|
@@ -5636,6 +5673,8 @@ module Google
|
|
5636
5673
|
|
5637
5674
|
property :location_hint, as: 'locationHint'
|
5638
5675
|
property :machine_type, as: 'machineType'
|
5676
|
+
property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours'
|
5677
|
+
property :maintenance_interval, as: 'maintenanceInterval'
|
5639
5678
|
property :min_cpu_platform, as: 'minCpuPlatform'
|
5640
5679
|
end
|
5641
5680
|
end
|
@@ -5966,6 +6005,8 @@ module Google
|
|
5966
6005
|
class Representation < Google::Apis::Core::JsonRepresentation
|
5967
6006
|
collection :bypass_cache_on_request_headers, as: 'bypassCacheOnRequestHeaders', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyBypassCacheOnRequestHeader, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicyBypassCacheOnRequestHeader::Representation
|
5968
6007
|
|
6008
|
+
property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyCacheKeyPolicy, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicyCacheKeyPolicy::Representation
|
6009
|
+
|
5969
6010
|
property :cache_mode, as: 'cacheMode'
|
5970
6011
|
property :client_ttl, as: 'clientTtl'
|
5971
6012
|
property :default_ttl, as: 'defaultTtl'
|
@@ -5987,6 +6028,14 @@ module Google
|
|
5987
6028
|
end
|
5988
6029
|
end
|
5989
6030
|
|
6031
|
+
class BackendBucketCdnPolicyCacheKeyPolicy
|
6032
|
+
# @private
|
6033
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6034
|
+
collection :include_http_headers, as: 'includeHttpHeaders'
|
6035
|
+
collection :query_string_whitelist, as: 'queryStringWhitelist'
|
6036
|
+
end
|
6037
|
+
end
|
6038
|
+
|
5990
6039
|
class BackendBucketCdnPolicyNegativeCachingPolicy
|
5991
6040
|
# @private
|
5992
6041
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6060,6 +6109,8 @@ module Google
|
|
6060
6109
|
property :locality_lb_policy, as: 'localityLbPolicy'
|
6061
6110
|
property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::BackendServiceLogConfig, decorator: Google::Apis::ComputeBeta::BackendServiceLogConfig::Representation
|
6062
6111
|
|
6112
|
+
property :max_stream_duration, as: 'maxStreamDuration', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation
|
6113
|
+
|
6063
6114
|
property :name, as: 'name'
|
6064
6115
|
property :network, as: 'network'
|
6065
6116
|
property :outlier_detection, as: 'outlierDetection', class: Google::Apis::ComputeBeta::OutlierDetection, decorator: Google::Apis::ComputeBeta::OutlierDetection::Representation
|
@@ -6073,6 +6124,8 @@ module Google
|
|
6073
6124
|
|
6074
6125
|
property :self_link, as: 'selfLink'
|
6075
6126
|
property :session_affinity, as: 'sessionAffinity'
|
6127
|
+
property :subsetting, as: 'subsetting', class: Google::Apis::ComputeBeta::Subsetting, decorator: Google::Apis::ComputeBeta::Subsetting::Representation
|
6128
|
+
|
6076
6129
|
property :timeout_sec, as: 'timeoutSec'
|
6077
6130
|
end
|
6078
6131
|
end
|
@@ -6357,6 +6410,8 @@ module Google
|
|
6357
6410
|
# @private
|
6358
6411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
6359
6412
|
property :include_host, as: 'includeHost'
|
6413
|
+
collection :include_http_headers, as: 'includeHttpHeaders'
|
6414
|
+
collection :include_named_cookies, as: 'includeNamedCookies'
|
6360
6415
|
property :include_protocol, as: 'includeProtocol'
|
6361
6416
|
property :include_query_string, as: 'includeQueryString'
|
6362
6417
|
collection :query_string_blacklist, as: 'queryStringBlacklist'
|
@@ -7141,6 +7196,7 @@ module Google
|
|
7141
7196
|
|
7142
7197
|
property :self_link, as: 'selfLink'
|
7143
7198
|
property :self_link_with_id, as: 'selfLinkWithId'
|
7199
|
+
property :short_name, as: 'shortName'
|
7144
7200
|
end
|
7145
7201
|
end
|
7146
7202
|
|
@@ -7151,6 +7207,7 @@ module Google
|
|
7151
7207
|
property :display_name, as: 'displayName'
|
7152
7208
|
property :firewall_policy_id, as: 'firewallPolicyId'
|
7153
7209
|
property :name, as: 'name'
|
7210
|
+
property :short_name, as: 'shortName'
|
7154
7211
|
end
|
7155
7212
|
end
|
7156
7213
|
|
@@ -7199,7 +7256,6 @@ module Google
|
|
7199
7256
|
property :priority, as: 'priority'
|
7200
7257
|
property :rule_tuple_count, as: 'ruleTupleCount'
|
7201
7258
|
collection :target_resources, as: 'targetResources'
|
7202
|
-
collection :target_secure_labels, as: 'targetSecureLabels'
|
7203
7259
|
collection :target_service_accounts, as: 'targetServiceAccounts'
|
7204
7260
|
end
|
7205
7261
|
end
|
@@ -7211,7 +7267,6 @@ module Google
|
|
7211
7267
|
collection :layer4_configs, as: 'layer4Configs', class: Google::Apis::ComputeBeta::FirewallPolicyRuleMatcherLayer4Config, decorator: Google::Apis::ComputeBeta::FirewallPolicyRuleMatcherLayer4Config::Representation
|
7212
7268
|
|
7213
7269
|
collection :src_ip_ranges, as: 'srcIpRanges'
|
7214
|
-
collection :src_secure_labels, as: 'srcSecureLabels'
|
7215
7270
|
end
|
7216
7271
|
end
|
7217
7272
|
|
@@ -7711,6 +7766,8 @@ module Google
|
|
7711
7766
|
# @private
|
7712
7767
|
class Representation < Google::Apis::Core::JsonRepresentation
|
7713
7768
|
hash :annotations, as: 'annotations'
|
7769
|
+
property :forwarding_rule, as: 'forwardingRule'
|
7770
|
+
property :forwarding_rule_ip, as: 'forwardingRuleIp'
|
7714
7771
|
property :health_state, as: 'healthState'
|
7715
7772
|
property :instance, as: 'instance'
|
7716
7773
|
property :ip_address, as: 'ipAddress'
|
@@ -7906,6 +7963,8 @@ module Google
|
|
7906
7963
|
|
7907
7964
|
property :fault_injection_policy, as: 'faultInjectionPolicy', class: Google::Apis::ComputeBeta::HttpFaultInjection, decorator: Google::Apis::ComputeBeta::HttpFaultInjection::Representation
|
7908
7965
|
|
7966
|
+
property :max_stream_duration, as: 'maxStreamDuration', class: Google::Apis::ComputeBeta::Duration, decorator: Google::Apis::ComputeBeta::Duration::Representation
|
7967
|
+
|
7909
7968
|
property :request_mirror_policy, as: 'requestMirrorPolicy', class: Google::Apis::ComputeBeta::RequestMirrorPolicy, decorator: Google::Apis::ComputeBeta::RequestMirrorPolicy::Representation
|
7910
7969
|
|
7911
7970
|
property :retry_policy, as: 'retryPolicy', class: Google::Apis::ComputeBeta::HttpRetryPolicy, decorator: Google::Apis::ComputeBeta::HttpRetryPolicy::Representation
|
@@ -8061,6 +8120,14 @@ module Google
|
|
8061
8120
|
end
|
8062
8121
|
end
|
8063
8122
|
|
8123
|
+
class ImageFamilyView
|
8124
|
+
# @private
|
8125
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8126
|
+
property :image, as: 'image', class: Google::Apis::ComputeBeta::Image, decorator: Google::Apis::ComputeBeta::Image::Representation
|
8127
|
+
|
8128
|
+
end
|
8129
|
+
end
|
8130
|
+
|
8064
8131
|
class ImageList
|
8065
8132
|
# @private
|
8066
8133
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8144,6 +8211,7 @@ module Google
|
|
8144
8211
|
|
8145
8212
|
property :network_performance_config, as: 'networkPerformanceConfig', class: Google::Apis::ComputeBeta::NetworkPerformanceConfig, decorator: Google::Apis::ComputeBeta::NetworkPerformanceConfig::Representation
|
8146
8213
|
|
8214
|
+
property :post_key_revocation_action_type, as: 'postKeyRevocationActionType'
|
8147
8215
|
property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess'
|
8148
8216
|
property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeBeta::ReservationAffinity, decorator: Google::Apis::ComputeBeta::ReservationAffinity::Representation
|
8149
8217
|
|
@@ -8464,6 +8532,7 @@ module Google
|
|
8464
8532
|
|
8465
8533
|
property :min_ready_sec, as: 'minReadySec'
|
8466
8534
|
property :minimal_action, as: 'minimalAction'
|
8535
|
+
property :most_disruptive_allowed_action, as: 'mostDisruptiveAllowedAction'
|
8467
8536
|
property :replacement_method, as: 'replacementMethod'
|
8468
8537
|
property :type, as: 'type'
|
8469
8538
|
end
|
@@ -8974,6 +9043,7 @@ module Google
|
|
8974
9043
|
property :name, as: 'name'
|
8975
9044
|
collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
|
8976
9045
|
|
9046
|
+
property :short_name, as: 'shortName'
|
8977
9047
|
property :type, as: 'type'
|
8978
9048
|
end
|
8979
9049
|
end
|
@@ -9138,9 +9208,11 @@ module Google
|
|
9138
9208
|
property :dataplane_version, as: 'dataplaneVersion'
|
9139
9209
|
property :description, as: 'description'
|
9140
9210
|
property :edge_availability_domain, as: 'edgeAvailabilityDomain'
|
9211
|
+
property :encryption, as: 'encryption'
|
9141
9212
|
property :google_reference_id, as: 'googleReferenceId'
|
9142
9213
|
property :id, :numeric_string => true, as: 'id'
|
9143
9214
|
property :interconnect, as: 'interconnect'
|
9215
|
+
collection :ipsec_internal_addresses, as: 'ipsecInternalAddresses'
|
9144
9216
|
property :kind, as: 'kind'
|
9145
9217
|
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
9146
9218
|
hash :labels, as: 'labels'
|
@@ -10265,6 +10337,7 @@ module Google
|
|
10265
10337
|
property :name, as: 'name'
|
10266
10338
|
collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::FirewallPolicyRule, decorator: Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
|
10267
10339
|
|
10340
|
+
property :short_name, as: 'shortName'
|
10268
10341
|
property :type, as: 'type'
|
10269
10342
|
end
|
10270
10343
|
end
|
@@ -12417,6 +12490,7 @@ module Google
|
|
12417
12490
|
|
12418
12491
|
property :creation_timestamp, as: 'creationTimestamp'
|
12419
12492
|
property :description, as: 'description'
|
12493
|
+
property :encrypted_interconnect_router, as: 'encryptedInterconnectRouter'
|
12420
12494
|
property :id, :numeric_string => true, as: 'id'
|
12421
12495
|
collection :interfaces, as: 'interfaces', class: Google::Apis::ComputeBeta::RouterInterface, decorator: Google::Apis::ComputeBeta::RouterInterface::Representation
|
12422
12496
|
|
@@ -12500,6 +12574,7 @@ module Google
|
|
12500
12574
|
property :name, as: 'name'
|
12501
12575
|
property :peer_asn, as: 'peerAsn'
|
12502
12576
|
property :peer_ip_address, as: 'peerIpAddress'
|
12577
|
+
property :router_appliance_instance, as: 'routerApplianceInstance'
|
12503
12578
|
end
|
12504
12579
|
end
|
12505
12580
|
|
@@ -12521,6 +12596,9 @@ module Google
|
|
12521
12596
|
property :linked_vpn_tunnel, as: 'linkedVpnTunnel'
|
12522
12597
|
property :management_type, as: 'managementType'
|
12523
12598
|
property :name, as: 'name'
|
12599
|
+
property :private_ip_address, as: 'privateIpAddress'
|
12600
|
+
property :redundant_interface, as: 'redundantInterface'
|
12601
|
+
property :subnetwork, as: 'subnetwork'
|
12524
12602
|
end
|
12525
12603
|
end
|
12526
12604
|
|
@@ -12621,6 +12699,7 @@ module Google
|
|
12621
12699
|
property :name, as: 'name'
|
12622
12700
|
property :num_learned_routes, as: 'numLearnedRoutes'
|
12623
12701
|
property :peer_ip_address, as: 'peerIpAddress'
|
12702
|
+
property :router_appliance_instance, as: 'routerApplianceInstance'
|
12624
12703
|
property :state, as: 'state'
|
12625
12704
|
property :status, as: 'status'
|
12626
12705
|
property :uptime, as: 'uptime'
|
@@ -12752,6 +12831,8 @@ module Google
|
|
12752
12831
|
class Representation < Google::Apis::Core::JsonRepresentation
|
12753
12832
|
property :automatic_restart, as: 'automaticRestart'
|
12754
12833
|
property :location_hint, as: 'locationHint'
|
12834
|
+
property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours'
|
12835
|
+
property :maintenance_interval, as: 'maintenanceInterval'
|
12755
12836
|
property :min_node_cpus, as: 'minNodeCpus'
|
12756
12837
|
collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeBeta::SchedulingNodeAffinity, decorator: Google::Apis::ComputeBeta::SchedulingNodeAffinity::Representation
|
12757
12838
|
|
@@ -12969,19 +13050,28 @@ module Google
|
|
12969
13050
|
class ServiceAttachment
|
12970
13051
|
# @private
|
12971
13052
|
class Representation < Google::Apis::Core::JsonRepresentation
|
13053
|
+
collection :connected_endpoints, as: 'connectedEndpoints', class: Google::Apis::ComputeBeta::ServiceAttachmentConnectedEndpoint, decorator: Google::Apis::ComputeBeta::ServiceAttachmentConnectedEndpoint::Representation
|
13054
|
+
|
12972
13055
|
property :connection_preference, as: 'connectionPreference'
|
13056
|
+
collection :consumer_accept_lists, as: 'consumerAcceptLists', class: Google::Apis::ComputeBeta::ServiceAttachmentConsumerProjectLimit, decorator: Google::Apis::ComputeBeta::ServiceAttachmentConsumerProjectLimit::Representation
|
13057
|
+
|
12973
13058
|
collection :consumer_forwarding_rules, as: 'consumerForwardingRules', class: Google::Apis::ComputeBeta::ServiceAttachmentConsumerForwardingRule, decorator: Google::Apis::ComputeBeta::ServiceAttachmentConsumerForwardingRule::Representation
|
12974
13059
|
|
13060
|
+
collection :consumer_reject_lists, as: 'consumerRejectLists'
|
12975
13061
|
property :creation_timestamp, as: 'creationTimestamp'
|
12976
13062
|
property :description, as: 'description'
|
12977
13063
|
property :enable_proxy_protocol, as: 'enableProxyProtocol'
|
13064
|
+
property :fingerprint, :base64 => true, as: 'fingerprint'
|
12978
13065
|
property :id, :numeric_string => true, as: 'id'
|
12979
13066
|
property :kind, as: 'kind'
|
12980
13067
|
property :name, as: 'name'
|
12981
13068
|
collection :nat_subnets, as: 'natSubnets'
|
12982
13069
|
property :producer_forwarding_rule, as: 'producerForwardingRule'
|
13070
|
+
property :psc_service_attachment_id, as: 'pscServiceAttachmentId', class: Google::Apis::ComputeBeta::Uint128, decorator: Google::Apis::ComputeBeta::Uint128::Representation
|
13071
|
+
|
12983
13072
|
property :region, as: 'region'
|
12984
13073
|
property :self_link, as: 'selfLink'
|
13074
|
+
property :target_service, as: 'targetService'
|
12985
13075
|
end
|
12986
13076
|
end
|
12987
13077
|
|
@@ -13018,14 +13108,33 @@ module Google
|
|
13018
13108
|
end
|
13019
13109
|
end
|
13020
13110
|
|
13111
|
+
class ServiceAttachmentConnectedEndpoint
|
13112
|
+
# @private
|
13113
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
13114
|
+
property :endpoint, as: 'endpoint'
|
13115
|
+
property :forwarding_rule, as: 'forwardingRule'
|
13116
|
+
property :psc_connection_id, :numeric_string => true, as: 'pscConnectionId'
|
13117
|
+
property :status, as: 'status'
|
13118
|
+
end
|
13119
|
+
end
|
13120
|
+
|
13021
13121
|
class ServiceAttachmentConsumerForwardingRule
|
13022
13122
|
# @private
|
13023
13123
|
class Representation < Google::Apis::Core::JsonRepresentation
|
13024
13124
|
property :forwarding_rule, as: 'forwardingRule'
|
13125
|
+
property :psc_connection_id, :numeric_string => true, as: 'pscConnectionId'
|
13025
13126
|
property :status, as: 'status'
|
13026
13127
|
end
|
13027
13128
|
end
|
13028
13129
|
|
13130
|
+
class ServiceAttachmentConsumerProjectLimit
|
13131
|
+
# @private
|
13132
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
13133
|
+
property :connection_limit, as: 'connectionLimit'
|
13134
|
+
property :project_id_or_num, as: 'projectIdOrNum'
|
13135
|
+
end
|
13136
|
+
end
|
13137
|
+
|
13029
13138
|
class ServiceAttachmentList
|
13030
13139
|
# @private
|
13031
13140
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -13667,6 +13776,13 @@ module Google
|
|
13667
13776
|
end
|
13668
13777
|
end
|
13669
13778
|
|
13779
|
+
class Subsetting
|
13780
|
+
# @private
|
13781
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
13782
|
+
property :policy, as: 'policy'
|
13783
|
+
end
|
13784
|
+
end
|
13785
|
+
|
13670
13786
|
class TcpHealthCheck
|
13671
13787
|
# @private
|
13672
13788
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -13895,6 +14011,7 @@ module Google
|
|
13895
14011
|
property :authorization_policy, as: 'authorizationPolicy'
|
13896
14012
|
property :creation_timestamp, as: 'creationTimestamp'
|
13897
14013
|
property :description, as: 'description'
|
14014
|
+
property :fingerprint, :base64 => true, as: 'fingerprint'
|
13898
14015
|
collection :http_filters, as: 'httpFilters'
|
13899
14016
|
property :id, :numeric_string => true, as: 'id'
|
13900
14017
|
property :kind, as: 'kind'
|
@@ -14515,6 +14632,14 @@ module Google
|
|
14515
14632
|
end
|
14516
14633
|
end
|
14517
14634
|
|
14635
|
+
class Uint128
|
14636
|
+
# @private
|
14637
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
14638
|
+
property :high, :numeric_string => true, as: 'high'
|
14639
|
+
property :low, :numeric_string => true, as: 'low'
|
14640
|
+
end
|
14641
|
+
end
|
14642
|
+
|
14518
14643
|
class UrlMap
|
14519
14644
|
# @private
|
14520
14645
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -14935,6 +15060,7 @@ module Google
|
|
14935
15060
|
# @private
|
14936
15061
|
class Representation < Google::Apis::Core::JsonRepresentation
|
14937
15062
|
property :id, as: 'id'
|
15063
|
+
property :interconnect_attachment, as: 'interconnectAttachment'
|
14938
15064
|
property :ip_address, as: 'ipAddress'
|
14939
15065
|
end
|
14940
15066
|
end
|
@@ -1300,6 +1300,46 @@ module Google
|
|
1300
1300
|
execute_or_queue_command(command, &block)
|
1301
1301
|
end
|
1302
1302
|
|
1303
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
1304
|
+
# or resource exists.
|
1305
|
+
# @param [String] project
|
1306
|
+
# Project ID for this request.
|
1307
|
+
# @param [String] resource
|
1308
|
+
# Name or id of the resource for this request.
|
1309
|
+
# @param [Fixnum] options_requested_policy_version
|
1310
|
+
# Requested IAM Policy version.
|
1311
|
+
# @param [String] fields
|
1312
|
+
# Selector specifying which fields to include in a partial response.
|
1313
|
+
# @param [String] quota_user
|
1314
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1315
|
+
# characters.
|
1316
|
+
# @param [String] user_ip
|
1317
|
+
# Deprecated. Please use quotaUser instead.
|
1318
|
+
# @param [Google::Apis::RequestOptions] options
|
1319
|
+
# Request-specific options
|
1320
|
+
#
|
1321
|
+
# @yield [result, err] Result & error if block supplied
|
1322
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
1323
|
+
# @yieldparam err [StandardError] error object if request failed
|
1324
|
+
#
|
1325
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
1326
|
+
#
|
1327
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1328
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1329
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1330
|
+
def get_backend_bucket_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1331
|
+
command = make_simple_command(:get, 'projects/{project}/global/backendBuckets/{resource}/getIamPolicy', options)
|
1332
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
1333
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
1334
|
+
command.params['project'] = project unless project.nil?
|
1335
|
+
command.params['resource'] = resource unless resource.nil?
|
1336
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1337
|
+
command.query['fields'] = fields unless fields.nil?
|
1338
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1339
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1340
|
+
execute_or_queue_command(command, &block)
|
1341
|
+
end
|
1342
|
+
|
1303
1343
|
# Creates a BackendBucket resource in the specified project using the data
|
1304
1344
|
# included in the request.
|
1305
1345
|
# @param [String] project
|
@@ -1478,6 +1518,85 @@ module Google
|
|
1478
1518
|
execute_or_queue_command(command, &block)
|
1479
1519
|
end
|
1480
1520
|
|
1521
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1522
|
+
# existing policy.
|
1523
|
+
# @param [String] project
|
1524
|
+
# Project ID for this request.
|
1525
|
+
# @param [String] resource
|
1526
|
+
# Name or id of the resource for this request.
|
1527
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
1528
|
+
# @param [String] fields
|
1529
|
+
# Selector specifying which fields to include in a partial response.
|
1530
|
+
# @param [String] quota_user
|
1531
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1532
|
+
# characters.
|
1533
|
+
# @param [String] user_ip
|
1534
|
+
# Deprecated. Please use quotaUser instead.
|
1535
|
+
# @param [Google::Apis::RequestOptions] options
|
1536
|
+
# Request-specific options
|
1537
|
+
#
|
1538
|
+
# @yield [result, err] Result & error if block supplied
|
1539
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
1540
|
+
# @yieldparam err [StandardError] error object if request failed
|
1541
|
+
#
|
1542
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
1543
|
+
#
|
1544
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1545
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1546
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1547
|
+
def set_backend_bucket_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1548
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/setIamPolicy', options)
|
1549
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
|
1550
|
+
command.request_object = global_set_policy_request_object
|
1551
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
1552
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
1553
|
+
command.params['project'] = project unless project.nil?
|
1554
|
+
command.params['resource'] = resource unless resource.nil?
|
1555
|
+
command.query['fields'] = fields unless fields.nil?
|
1556
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1557
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1558
|
+
execute_or_queue_command(command, &block)
|
1559
|
+
end
|
1560
|
+
|
1561
|
+
# Returns permissions that a caller has on the specified resource.
|
1562
|
+
# @param [String] project
|
1563
|
+
# Project ID for this request.
|
1564
|
+
# @param [String] resource
|
1565
|
+
# Name or id of the resource for this request.
|
1566
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
1567
|
+
# @param [String] fields
|
1568
|
+
# Selector specifying which fields to include in a partial response.
|
1569
|
+
# @param [String] quota_user
|
1570
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1571
|
+
# characters.
|
1572
|
+
# @param [String] user_ip
|
1573
|
+
# Deprecated. Please use quotaUser instead.
|
1574
|
+
# @param [Google::Apis::RequestOptions] options
|
1575
|
+
# Request-specific options
|
1576
|
+
#
|
1577
|
+
# @yield [result, err] Result & error if block supplied
|
1578
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
1579
|
+
# @yieldparam err [StandardError] error object if request failed
|
1580
|
+
#
|
1581
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
1582
|
+
#
|
1583
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1584
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1585
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1586
|
+
def test_backend_bucket_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1587
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/testIamPermissions', options)
|
1588
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
1589
|
+
command.request_object = test_permissions_request_object
|
1590
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
1591
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
1592
|
+
command.params['project'] = project unless project.nil?
|
1593
|
+
command.params['resource'] = resource unless resource.nil?
|
1594
|
+
command.query['fields'] = fields unless fields.nil?
|
1595
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1596
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1597
|
+
execute_or_queue_command(command, &block)
|
1598
|
+
end
|
1599
|
+
|
1481
1600
|
# Updates the specified BackendBucket resource with the data included in the
|
1482
1601
|
# request.
|
1483
1602
|
# @param [String] project
|
@@ -2023,7 +2142,8 @@ module Google
|
|
2023
2142
|
execute_or_queue_command(command, &block)
|
2024
2143
|
end
|
2025
2144
|
|
2026
|
-
# Sets the security policy for the specified backend service.
|
2145
|
+
# Sets the Google Cloud Armor security policy for the specified backend service.
|
2146
|
+
# For more information, see Google Cloud Armor Overview
|
2027
2147
|
# @param [String] project
|
2028
2148
|
# Project ID for this request.
|
2029
2149
|
# @param [String] backend_service
|
@@ -7954,6 +8074,46 @@ module Google
|
|
7954
8074
|
execute_or_queue_command(command, &block)
|
7955
8075
|
end
|
7956
8076
|
|
8077
|
+
# Returns the latest image that is part of an image family, is not deprecated
|
8078
|
+
# and is rolled out in the specified zone.
|
8079
|
+
# @param [String] project
|
8080
|
+
# Project ID for this request.
|
8081
|
+
# @param [String] zone
|
8082
|
+
# The name of the zone for this request.
|
8083
|
+
# @param [String] family
|
8084
|
+
# Name of the image family to search for.
|
8085
|
+
# @param [String] fields
|
8086
|
+
# Selector specifying which fields to include in a partial response.
|
8087
|
+
# @param [String] quota_user
|
8088
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
8089
|
+
# characters.
|
8090
|
+
# @param [String] user_ip
|
8091
|
+
# Deprecated. Please use quotaUser instead.
|
8092
|
+
# @param [Google::Apis::RequestOptions] options
|
8093
|
+
# Request-specific options
|
8094
|
+
#
|
8095
|
+
# @yield [result, err] Result & error if block supplied
|
8096
|
+
# @yieldparam result [Google::Apis::ComputeBeta::ImageFamilyView] parsed result object
|
8097
|
+
# @yieldparam err [StandardError] error object if request failed
|
8098
|
+
#
|
8099
|
+
# @return [Google::Apis::ComputeBeta::ImageFamilyView]
|
8100
|
+
#
|
8101
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8102
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8103
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8104
|
+
def get_image_family_view(project, zone, family, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
8105
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/imageFamilyViews/{family}', options)
|
8106
|
+
command.response_representation = Google::Apis::ComputeBeta::ImageFamilyView::Representation
|
8107
|
+
command.response_class = Google::Apis::ComputeBeta::ImageFamilyView
|
8108
|
+
command.params['project'] = project unless project.nil?
|
8109
|
+
command.params['zone'] = zone unless zone.nil?
|
8110
|
+
command.params['family'] = family unless family.nil?
|
8111
|
+
command.query['fields'] = fields unless fields.nil?
|
8112
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8113
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
8114
|
+
execute_or_queue_command(command, &block)
|
8115
|
+
end
|
8116
|
+
|
7957
8117
|
# Deletes the specified image.
|
7958
8118
|
# @param [String] project
|
7959
8119
|
# Project ID for this request.
|
@@ -9428,12 +9588,12 @@ module Google
|
|
9428
9588
|
execute_or_queue_command(command, &block)
|
9429
9589
|
end
|
9430
9590
|
|
9431
|
-
# Flags the specified instances in the managed instance group to be
|
9432
|
-
# recreated.
|
9433
|
-
#
|
9434
|
-
# the
|
9435
|
-
#
|
9436
|
-
#
|
9591
|
+
# Flags the specified VM instances in the managed instance group to be
|
9592
|
+
# immediately recreated. Each instance is recreated using the group's current
|
9593
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
9594
|
+
# the instances have not yet been recreated. You must separately verify the
|
9595
|
+
# status of each instance by checking its currentAction field; for more
|
9596
|
+
# information, see Checking the status of managed instances.
|
9437
9597
|
# If the group is part of a backend service that has enabled connection draining,
|
9438
9598
|
# it can take up to 60 seconds after the connection draining duration has
|
9439
9599
|
# elapsed before the VM instance is removed or deleted.
|
@@ -11206,8 +11366,8 @@ module Google
|
|
11206
11366
|
execute_or_queue_command(command, &block)
|
11207
11367
|
end
|
11208
11368
|
|
11209
|
-
# Deletes the specified Instance resource. For more information, see
|
11210
|
-
#
|
11369
|
+
# Deletes the specified Instance resource. For more information, see Deleting an
|
11370
|
+
# instance.
|
11211
11371
|
# @param [String] project
|
11212
11372
|
# Project ID for this request.
|
11213
11373
|
# @param [String] zone
|
@@ -14515,101 +14675,14 @@ module Google
|
|
14515
14675
|
execute_or_queue_command(command, &block)
|
14516
14676
|
end
|
14517
14677
|
|
14518
|
-
#
|
14519
|
-
# by third-party partners who are creating
|
14520
|
-
#
|
14521
|
-
# Project ID for this request.
|
14522
|
-
# @param [String] license
|
14523
|
-
# Name of the license resource to delete.
|
14524
|
-
# @param [String] request_id
|
14525
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
14526
|
-
# that if you must retry your request, the server will know to ignore the
|
14527
|
-
# request if it has already been completed.
|
14528
|
-
# For example, consider a situation where you make an initial request and the
|
14529
|
-
# request times out. If you make the request again with the same request ID, the
|
14530
|
-
# server can check if original operation with the same request ID was received,
|
14531
|
-
# and if so, will ignore the second request. This prevents clients from
|
14532
|
-
# accidentally creating duplicate commitments.
|
14533
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
14534
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
14535
|
-
# @param [String] fields
|
14536
|
-
# Selector specifying which fields to include in a partial response.
|
14537
|
-
# @param [String] quota_user
|
14538
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
14539
|
-
# characters.
|
14540
|
-
# @param [String] user_ip
|
14541
|
-
# Deprecated. Please use quotaUser instead.
|
14542
|
-
# @param [Google::Apis::RequestOptions] options
|
14543
|
-
# Request-specific options
|
14544
|
-
#
|
14545
|
-
# @yield [result, err] Result & error if block supplied
|
14546
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
14547
|
-
# @yieldparam err [StandardError] error object if request failed
|
14548
|
-
#
|
14549
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
14550
|
-
#
|
14551
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14552
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14553
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14554
|
-
def delete_license(project, license, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14555
|
-
command = make_simple_command(:delete, 'projects/{project}/global/licenses/{license}', options)
|
14556
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
14557
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
14558
|
-
command.params['project'] = project unless project.nil?
|
14559
|
-
command.params['license'] = license unless license.nil?
|
14560
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
14561
|
-
command.query['fields'] = fields unless fields.nil?
|
14562
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14563
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
14564
|
-
execute_or_queue_command(command, &block)
|
14565
|
-
end
|
14566
|
-
|
14567
|
-
# Returns the specified License resource. Caution This resource is intended for
|
14568
|
-
# use only by third-party partners who are creating Cloud Marketplace images.
|
14569
|
-
# @param [String] project
|
14570
|
-
# Project ID for this request.
|
14571
|
-
# @param [String] license
|
14572
|
-
# Name of the License resource to return.
|
14573
|
-
# @param [String] fields
|
14574
|
-
# Selector specifying which fields to include in a partial response.
|
14575
|
-
# @param [String] quota_user
|
14576
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
14577
|
-
# characters.
|
14578
|
-
# @param [String] user_ip
|
14579
|
-
# Deprecated. Please use quotaUser instead.
|
14580
|
-
# @param [Google::Apis::RequestOptions] options
|
14581
|
-
# Request-specific options
|
14582
|
-
#
|
14583
|
-
# @yield [result, err] Result & error if block supplied
|
14584
|
-
# @yieldparam result [Google::Apis::ComputeBeta::License] parsed result object
|
14585
|
-
# @yieldparam err [StandardError] error object if request failed
|
14586
|
-
#
|
14587
|
-
# @return [Google::Apis::ComputeBeta::License]
|
14588
|
-
#
|
14589
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14590
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14591
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14592
|
-
def get_license(project, license, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14593
|
-
command = make_simple_command(:get, 'projects/{project}/global/licenses/{license}', options)
|
14594
|
-
command.response_representation = Google::Apis::ComputeBeta::License::Representation
|
14595
|
-
command.response_class = Google::Apis::ComputeBeta::License
|
14596
|
-
command.params['project'] = project unless project.nil?
|
14597
|
-
command.params['license'] = license unless license.nil?
|
14598
|
-
command.query['fields'] = fields unless fields.nil?
|
14599
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14600
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
14601
|
-
execute_or_queue_command(command, &block)
|
14602
|
-
end
|
14603
|
-
|
14604
|
-
# Gets the access control policy for a resource. May be empty if no such policy
|
14605
|
-
# or resource exists. Caution This resource is intended for use only by third-
|
14606
|
-
# party partners who are creating Cloud Marketplace images.
|
14678
|
+
# Returns permissions that a caller has on the specified resource. Caution This
|
14679
|
+
# resource is intended for use only by third-party partners who are creating
|
14680
|
+
# Cloud Marketplace images.
|
14607
14681
|
# @param [String] project
|
14608
14682
|
# Project ID for this request.
|
14609
14683
|
# @param [String] resource
|
14610
14684
|
# Name or id of the resource for this request.
|
14611
|
-
# @param [
|
14612
|
-
# Requested IAM Policy version.
|
14685
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
14613
14686
|
# @param [String] fields
|
14614
14687
|
# Selector specifying which fields to include in a partial response.
|
14615
14688
|
# @param [String] quota_user
|
@@ -14621,33 +14694,161 @@ module Google
|
|
14621
14694
|
# Request-specific options
|
14622
14695
|
#
|
14623
14696
|
# @yield [result, err] Result & error if block supplied
|
14624
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
14697
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
14625
14698
|
# @yieldparam err [StandardError] error object if request failed
|
14626
14699
|
#
|
14627
|
-
# @return [Google::Apis::ComputeBeta::
|
14700
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
14628
14701
|
#
|
14629
14702
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14630
14703
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14631
14704
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14632
|
-
def
|
14633
|
-
command = make_simple_command(:
|
14634
|
-
command.
|
14635
|
-
command.
|
14705
|
+
def test_license_code_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14706
|
+
command = make_simple_command(:post, 'projects/{project}/global/licenseCodes/{resource}/testIamPermissions', options)
|
14707
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
14708
|
+
command.request_object = test_permissions_request_object
|
14709
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
14710
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
14636
14711
|
command.params['project'] = project unless project.nil?
|
14637
14712
|
command.params['resource'] = resource unless resource.nil?
|
14638
|
-
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
14639
14713
|
command.query['fields'] = fields unless fields.nil?
|
14640
14714
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14641
14715
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
14642
14716
|
execute_or_queue_command(command, &block)
|
14643
14717
|
end
|
14644
14718
|
|
14645
|
-
#
|
14646
|
-
#
|
14647
|
-
# Marketplace images.
|
14719
|
+
# Deletes the specified license. Caution This resource is intended for use only
|
14720
|
+
# by third-party partners who are creating Cloud Marketplace images.
|
14648
14721
|
# @param [String] project
|
14649
14722
|
# Project ID for this request.
|
14650
|
-
# @param [
|
14723
|
+
# @param [String] license
|
14724
|
+
# Name of the license resource to delete.
|
14725
|
+
# @param [String] request_id
|
14726
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
14727
|
+
# that if you must retry your request, the server will know to ignore the
|
14728
|
+
# request if it has already been completed.
|
14729
|
+
# For example, consider a situation where you make an initial request and the
|
14730
|
+
# request times out. If you make the request again with the same request ID, the
|
14731
|
+
# server can check if original operation with the same request ID was received,
|
14732
|
+
# and if so, will ignore the second request. This prevents clients from
|
14733
|
+
# accidentally creating duplicate commitments.
|
14734
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
14735
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
14736
|
+
# @param [String] fields
|
14737
|
+
# Selector specifying which fields to include in a partial response.
|
14738
|
+
# @param [String] quota_user
|
14739
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
14740
|
+
# characters.
|
14741
|
+
# @param [String] user_ip
|
14742
|
+
# Deprecated. Please use quotaUser instead.
|
14743
|
+
# @param [Google::Apis::RequestOptions] options
|
14744
|
+
# Request-specific options
|
14745
|
+
#
|
14746
|
+
# @yield [result, err] Result & error if block supplied
|
14747
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
14748
|
+
# @yieldparam err [StandardError] error object if request failed
|
14749
|
+
#
|
14750
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
14751
|
+
#
|
14752
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14753
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14754
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14755
|
+
def delete_license(project, license, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14756
|
+
command = make_simple_command(:delete, 'projects/{project}/global/licenses/{license}', options)
|
14757
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
14758
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
14759
|
+
command.params['project'] = project unless project.nil?
|
14760
|
+
command.params['license'] = license unless license.nil?
|
14761
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
14762
|
+
command.query['fields'] = fields unless fields.nil?
|
14763
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14764
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14765
|
+
execute_or_queue_command(command, &block)
|
14766
|
+
end
|
14767
|
+
|
14768
|
+
# Returns the specified License resource. Caution This resource is intended for
|
14769
|
+
# use only by third-party partners who are creating Cloud Marketplace images.
|
14770
|
+
# @param [String] project
|
14771
|
+
# Project ID for this request.
|
14772
|
+
# @param [String] license
|
14773
|
+
# Name of the License resource to return.
|
14774
|
+
# @param [String] fields
|
14775
|
+
# Selector specifying which fields to include in a partial response.
|
14776
|
+
# @param [String] quota_user
|
14777
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
14778
|
+
# characters.
|
14779
|
+
# @param [String] user_ip
|
14780
|
+
# Deprecated. Please use quotaUser instead.
|
14781
|
+
# @param [Google::Apis::RequestOptions] options
|
14782
|
+
# Request-specific options
|
14783
|
+
#
|
14784
|
+
# @yield [result, err] Result & error if block supplied
|
14785
|
+
# @yieldparam result [Google::Apis::ComputeBeta::License] parsed result object
|
14786
|
+
# @yieldparam err [StandardError] error object if request failed
|
14787
|
+
#
|
14788
|
+
# @return [Google::Apis::ComputeBeta::License]
|
14789
|
+
#
|
14790
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14791
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14792
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14793
|
+
def get_license(project, license, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14794
|
+
command = make_simple_command(:get, 'projects/{project}/global/licenses/{license}', options)
|
14795
|
+
command.response_representation = Google::Apis::ComputeBeta::License::Representation
|
14796
|
+
command.response_class = Google::Apis::ComputeBeta::License
|
14797
|
+
command.params['project'] = project unless project.nil?
|
14798
|
+
command.params['license'] = license unless license.nil?
|
14799
|
+
command.query['fields'] = fields unless fields.nil?
|
14800
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14801
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14802
|
+
execute_or_queue_command(command, &block)
|
14803
|
+
end
|
14804
|
+
|
14805
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
14806
|
+
# or resource exists. Caution This resource is intended for use only by third-
|
14807
|
+
# party partners who are creating Cloud Marketplace images.
|
14808
|
+
# @param [String] project
|
14809
|
+
# Project ID for this request.
|
14810
|
+
# @param [String] resource
|
14811
|
+
# Name or id of the resource for this request.
|
14812
|
+
# @param [Fixnum] options_requested_policy_version
|
14813
|
+
# Requested IAM Policy version.
|
14814
|
+
# @param [String] fields
|
14815
|
+
# Selector specifying which fields to include in a partial response.
|
14816
|
+
# @param [String] quota_user
|
14817
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
14818
|
+
# characters.
|
14819
|
+
# @param [String] user_ip
|
14820
|
+
# Deprecated. Please use quotaUser instead.
|
14821
|
+
# @param [Google::Apis::RequestOptions] options
|
14822
|
+
# Request-specific options
|
14823
|
+
#
|
14824
|
+
# @yield [result, err] Result & error if block supplied
|
14825
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
14826
|
+
# @yieldparam err [StandardError] error object if request failed
|
14827
|
+
#
|
14828
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
14829
|
+
#
|
14830
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14831
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14832
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14833
|
+
def get_license_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14834
|
+
command = make_simple_command(:get, 'projects/{project}/global/licenses/{resource}/getIamPolicy', options)
|
14835
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
14836
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
14837
|
+
command.params['project'] = project unless project.nil?
|
14838
|
+
command.params['resource'] = resource unless resource.nil?
|
14839
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
14840
|
+
command.query['fields'] = fields unless fields.nil?
|
14841
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14842
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14843
|
+
execute_or_queue_command(command, &block)
|
14844
|
+
end
|
14845
|
+
|
14846
|
+
# Create a License resource in the specified project. Caution This resource is
|
14847
|
+
# intended for use only by third-party partners who are creating Cloud
|
14848
|
+
# Marketplace images.
|
14849
|
+
# @param [String] project
|
14850
|
+
# Project ID for this request.
|
14851
|
+
# @param [Google::Apis::ComputeBeta::License] license_object
|
14651
14852
|
# @param [String] request_id
|
14652
14853
|
# An optional request ID to identify requests. Specify a unique request ID so
|
14653
14854
|
# that if you must retry your request, the server will know to ignore the
|
@@ -14814,6 +15015,47 @@ module Google
|
|
14814
15015
|
execute_or_queue_command(command, &block)
|
14815
15016
|
end
|
14816
15017
|
|
15018
|
+
# Returns permissions that a caller has on the specified resource. Caution This
|
15019
|
+
# resource is intended for use only by third-party partners who are creating
|
15020
|
+
# Cloud Marketplace images.
|
15021
|
+
# @param [String] project
|
15022
|
+
# Project ID for this request.
|
15023
|
+
# @param [String] resource
|
15024
|
+
# Name or id of the resource for this request.
|
15025
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
15026
|
+
# @param [String] fields
|
15027
|
+
# Selector specifying which fields to include in a partial response.
|
15028
|
+
# @param [String] quota_user
|
15029
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
15030
|
+
# characters.
|
15031
|
+
# @param [String] user_ip
|
15032
|
+
# Deprecated. Please use quotaUser instead.
|
15033
|
+
# @param [Google::Apis::RequestOptions] options
|
15034
|
+
# Request-specific options
|
15035
|
+
#
|
15036
|
+
# @yield [result, err] Result & error if block supplied
|
15037
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
15038
|
+
# @yieldparam err [StandardError] error object if request failed
|
15039
|
+
#
|
15040
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
15041
|
+
#
|
15042
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15043
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15044
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15045
|
+
def test_license_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
15046
|
+
command = make_simple_command(:post, 'projects/{project}/global/licenses/{resource}/testIamPermissions', options)
|
15047
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
15048
|
+
command.request_object = test_permissions_request_object
|
15049
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
15050
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
15051
|
+
command.params['project'] = project unless project.nil?
|
15052
|
+
command.params['resource'] = resource unless resource.nil?
|
15053
|
+
command.query['fields'] = fields unless fields.nil?
|
15054
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
15055
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
15056
|
+
execute_or_queue_command(command, &block)
|
15057
|
+
end
|
15058
|
+
|
14817
15059
|
# Deletes the specified machine image. Deleting a machine image is permanent and
|
14818
15060
|
# cannot be undone.
|
14819
15061
|
# @param [String] project
|
@@ -21319,6 +21561,48 @@ module Google
|
|
21319
21561
|
execute_or_queue_command(command, &block)
|
21320
21562
|
end
|
21321
21563
|
|
21564
|
+
# Returns permissions that a caller has on the specified resource.
|
21565
|
+
# @param [String] project
|
21566
|
+
# Project ID for this request.
|
21567
|
+
# @param [String] region
|
21568
|
+
# The name of the region for this request.
|
21569
|
+
# @param [String] resource
|
21570
|
+
# Name or id of the resource for this request.
|
21571
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
21572
|
+
# @param [String] fields
|
21573
|
+
# Selector specifying which fields to include in a partial response.
|
21574
|
+
# @param [String] quota_user
|
21575
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
21576
|
+
# characters.
|
21577
|
+
# @param [String] user_ip
|
21578
|
+
# Deprecated. Please use quotaUser instead.
|
21579
|
+
# @param [Google::Apis::RequestOptions] options
|
21580
|
+
# Request-specific options
|
21581
|
+
#
|
21582
|
+
# @yield [result, err] Result & error if block supplied
|
21583
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
21584
|
+
# @yieldparam err [StandardError] error object if request failed
|
21585
|
+
#
|
21586
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
21587
|
+
#
|
21588
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21589
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21590
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21591
|
+
def test_region_commitment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21592
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions', options)
|
21593
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
21594
|
+
command.request_object = test_permissions_request_object
|
21595
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
21596
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
21597
|
+
command.params['project'] = project unless project.nil?
|
21598
|
+
command.params['region'] = region unless region.nil?
|
21599
|
+
command.params['resource'] = resource unless resource.nil?
|
21600
|
+
command.query['fields'] = fields unless fields.nil?
|
21601
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21602
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21603
|
+
execute_or_queue_command(command, &block)
|
21604
|
+
end
|
21605
|
+
|
21322
21606
|
# Transfers GPUs or local SSDs between reservations within commitments.
|
21323
21607
|
# @param [String] project
|
21324
21608
|
# Project ID for this request.
|
@@ -22396,24 +22680,14 @@ module Google
|
|
22396
22680
|
execute_or_queue_command(command, &block)
|
22397
22681
|
end
|
22398
22682
|
|
22399
|
-
#
|
22683
|
+
# Returns permissions that a caller has on the specified resource.
|
22400
22684
|
# @param [String] project
|
22401
22685
|
# Project ID for this request.
|
22402
22686
|
# @param [String] region
|
22403
|
-
#
|
22404
|
-
# @param [String]
|
22405
|
-
# Name of the
|
22406
|
-
# @param [
|
22407
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
22408
|
-
# that if you must retry your request, the server will know to ignore the
|
22409
|
-
# request if it has already been completed.
|
22410
|
-
# For example, consider a situation where you make an initial request and the
|
22411
|
-
# request times out. If you make the request again with the same request ID, the
|
22412
|
-
# server can check if original operation with the same request ID was received,
|
22413
|
-
# and if so, will ignore the second request. This prevents clients from
|
22414
|
-
# accidentally creating duplicate commitments.
|
22415
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
22416
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
22687
|
+
# The name of the region for this request.
|
22688
|
+
# @param [String] resource
|
22689
|
+
# Name or id of the resource for this request.
|
22690
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
22417
22691
|
# @param [String] fields
|
22418
22692
|
# Selector specifying which fields to include in a partial response.
|
22419
22693
|
# @param [String] quota_user
|
@@ -22425,75 +22699,127 @@ module Google
|
|
22425
22699
|
# Request-specific options
|
22426
22700
|
#
|
22427
22701
|
# @yield [result, err] Result & error if block supplied
|
22428
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
22702
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
22429
22703
|
# @yieldparam err [StandardError] error object if request failed
|
22430
22704
|
#
|
22431
|
-
# @return [Google::Apis::ComputeBeta::
|
22705
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
22432
22706
|
#
|
22433
22707
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22434
22708
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22435
22709
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22436
|
-
def
|
22437
|
-
command = make_simple_command(:
|
22438
|
-
command.
|
22439
|
-
command.
|
22710
|
+
def test_region_health_check_service_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
22711
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions', options)
|
22712
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
22713
|
+
command.request_object = test_permissions_request_object
|
22714
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
22715
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
22440
22716
|
command.params['project'] = project unless project.nil?
|
22441
22717
|
command.params['region'] = region unless region.nil?
|
22442
|
-
command.params['
|
22443
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
22718
|
+
command.params['resource'] = resource unless resource.nil?
|
22444
22719
|
command.query['fields'] = fields unless fields.nil?
|
22445
22720
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22446
22721
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
22447
22722
|
execute_or_queue_command(command, &block)
|
22448
22723
|
end
|
22449
22724
|
|
22450
|
-
#
|
22451
|
-
# checks by making a list() request.
|
22725
|
+
# Deletes the specified HealthCheck resource.
|
22452
22726
|
# @param [String] project
|
22453
22727
|
# Project ID for this request.
|
22454
22728
|
# @param [String] region
|
22455
22729
|
# Name of the region scoping this request.
|
22456
22730
|
# @param [String] health_check
|
22457
|
-
# Name of the HealthCheck resource to
|
22458
|
-
# @param [String]
|
22459
|
-
#
|
22460
|
-
#
|
22461
|
-
#
|
22462
|
-
#
|
22463
|
-
#
|
22464
|
-
#
|
22465
|
-
#
|
22466
|
-
#
|
22467
|
-
#
|
22468
|
-
#
|
22469
|
-
# @
|
22470
|
-
#
|
22471
|
-
#
|
22472
|
-
#
|
22473
|
-
#
|
22474
|
-
# @
|
22475
|
-
#
|
22476
|
-
# @
|
22477
|
-
|
22478
|
-
|
22479
|
-
|
22480
|
-
|
22481
|
-
|
22482
|
-
|
22483
|
-
|
22484
|
-
|
22485
|
-
|
22486
|
-
|
22487
|
-
|
22488
|
-
|
22489
|
-
|
22490
|
-
|
22491
|
-
|
22492
|
-
|
22493
|
-
|
22494
|
-
|
22495
|
-
|
22496
|
-
|
22731
|
+
# Name of the HealthCheck resource to delete.
|
22732
|
+
# @param [String] request_id
|
22733
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
22734
|
+
# that if you must retry your request, the server will know to ignore the
|
22735
|
+
# request if it has already been completed.
|
22736
|
+
# For example, consider a situation where you make an initial request and the
|
22737
|
+
# request times out. If you make the request again with the same request ID, the
|
22738
|
+
# server can check if original operation with the same request ID was received,
|
22739
|
+
# and if so, will ignore the second request. This prevents clients from
|
22740
|
+
# accidentally creating duplicate commitments.
|
22741
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
22742
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
22743
|
+
# @param [String] fields
|
22744
|
+
# Selector specifying which fields to include in a partial response.
|
22745
|
+
# @param [String] quota_user
|
22746
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
22747
|
+
# characters.
|
22748
|
+
# @param [String] user_ip
|
22749
|
+
# Deprecated. Please use quotaUser instead.
|
22750
|
+
# @param [Google::Apis::RequestOptions] options
|
22751
|
+
# Request-specific options
|
22752
|
+
#
|
22753
|
+
# @yield [result, err] Result & error if block supplied
|
22754
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
22755
|
+
# @yieldparam err [StandardError] error object if request failed
|
22756
|
+
#
|
22757
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
22758
|
+
#
|
22759
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22760
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22761
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22762
|
+
def delete_region_health_check(project, region, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
22763
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
22764
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
22765
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
22766
|
+
command.params['project'] = project unless project.nil?
|
22767
|
+
command.params['region'] = region unless region.nil?
|
22768
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
22769
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
22770
|
+
command.query['fields'] = fields unless fields.nil?
|
22771
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22772
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
22773
|
+
execute_or_queue_command(command, &block)
|
22774
|
+
end
|
22775
|
+
|
22776
|
+
# Returns the specified HealthCheck resource. Gets a list of available health
|
22777
|
+
# checks by making a list() request.
|
22778
|
+
# @param [String] project
|
22779
|
+
# Project ID for this request.
|
22780
|
+
# @param [String] region
|
22781
|
+
# Name of the region scoping this request.
|
22782
|
+
# @param [String] health_check
|
22783
|
+
# Name of the HealthCheck resource to return.
|
22784
|
+
# @param [String] fields
|
22785
|
+
# Selector specifying which fields to include in a partial response.
|
22786
|
+
# @param [String] quota_user
|
22787
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
22788
|
+
# characters.
|
22789
|
+
# @param [String] user_ip
|
22790
|
+
# Deprecated. Please use quotaUser instead.
|
22791
|
+
# @param [Google::Apis::RequestOptions] options
|
22792
|
+
# Request-specific options
|
22793
|
+
#
|
22794
|
+
# @yield [result, err] Result & error if block supplied
|
22795
|
+
# @yieldparam result [Google::Apis::ComputeBeta::HealthCheck] parsed result object
|
22796
|
+
# @yieldparam err [StandardError] error object if request failed
|
22797
|
+
#
|
22798
|
+
# @return [Google::Apis::ComputeBeta::HealthCheck]
|
22799
|
+
#
|
22800
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22801
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22802
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22803
|
+
def get_region_health_check(project, region, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
22804
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
22805
|
+
command.response_representation = Google::Apis::ComputeBeta::HealthCheck::Representation
|
22806
|
+
command.response_class = Google::Apis::ComputeBeta::HealthCheck
|
22807
|
+
command.params['project'] = project unless project.nil?
|
22808
|
+
command.params['region'] = region unless region.nil?
|
22809
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
22810
|
+
command.query['fields'] = fields unless fields.nil?
|
22811
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22812
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
22813
|
+
execute_or_queue_command(command, &block)
|
22814
|
+
end
|
22815
|
+
|
22816
|
+
# Creates a HealthCheck resource in the specified project using the data
|
22817
|
+
# included in the request.
|
22818
|
+
# @param [String] project
|
22819
|
+
# Project ID for this request.
|
22820
|
+
# @param [String] region
|
22821
|
+
# Name of the region scoping this request.
|
22822
|
+
# @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
|
22497
22823
|
# @param [String] request_id
|
22498
22824
|
# An optional request ID to identify requests. Specify a unique request ID so
|
22499
22825
|
# that if you must retry your request, the server will know to ignore the
|
@@ -22673,6 +22999,48 @@ module Google
|
|
22673
22999
|
execute_or_queue_command(command, &block)
|
22674
23000
|
end
|
22675
23001
|
|
23002
|
+
# Returns permissions that a caller has on the specified resource.
|
23003
|
+
# @param [String] project
|
23004
|
+
# Project ID for this request.
|
23005
|
+
# @param [String] region
|
23006
|
+
# The name of the region for this request.
|
23007
|
+
# @param [String] resource
|
23008
|
+
# Name or id of the resource for this request.
|
23009
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
23010
|
+
# @param [String] fields
|
23011
|
+
# Selector specifying which fields to include in a partial response.
|
23012
|
+
# @param [String] quota_user
|
23013
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
23014
|
+
# characters.
|
23015
|
+
# @param [String] user_ip
|
23016
|
+
# Deprecated. Please use quotaUser instead.
|
23017
|
+
# @param [Google::Apis::RequestOptions] options
|
23018
|
+
# Request-specific options
|
23019
|
+
#
|
23020
|
+
# @yield [result, err] Result & error if block supplied
|
23021
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
23022
|
+
# @yieldparam err [StandardError] error object if request failed
|
23023
|
+
#
|
23024
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
23025
|
+
#
|
23026
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23027
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23028
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23029
|
+
def test_region_health_check_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
23030
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions', options)
|
23031
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
23032
|
+
command.request_object = test_permissions_request_object
|
23033
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
23034
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
23035
|
+
command.params['project'] = project unless project.nil?
|
23036
|
+
command.params['region'] = region unless region.nil?
|
23037
|
+
command.params['resource'] = resource unless resource.nil?
|
23038
|
+
command.query['fields'] = fields unless fields.nil?
|
23039
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23040
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
23041
|
+
execute_or_queue_command(command, &block)
|
23042
|
+
end
|
23043
|
+
|
22676
23044
|
# Updates a HealthCheck resource in the specified project using the data
|
22677
23045
|
# included in the request.
|
22678
23046
|
# @param [String] project
|
@@ -23591,12 +23959,12 @@ module Google
|
|
23591
23959
|
execute_or_queue_command(command, &block)
|
23592
23960
|
end
|
23593
23961
|
|
23594
|
-
# Flags the specified instances in the managed instance group to be
|
23595
|
-
# recreated.
|
23596
|
-
#
|
23597
|
-
# the
|
23598
|
-
#
|
23599
|
-
#
|
23962
|
+
# Flags the specified VM instances in the managed instance group to be
|
23963
|
+
# immediately recreated. Each instance is recreated using the group's current
|
23964
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
23965
|
+
# the instances have not yet been recreated. You must separately verify the
|
23966
|
+
# status of each instance by checking its currentAction field; for more
|
23967
|
+
# information, see Checking the status of managed instances.
|
23600
23968
|
# If the group is part of a backend service that has enabled connection draining,
|
23601
23969
|
# it can take up to 60 seconds after the connection draining duration has
|
23602
23970
|
# elapsed before the VM instance is removed or deleted.
|
@@ -24839,13 +25207,14 @@ module Google
|
|
24839
25207
|
execute_or_queue_command(command, &block)
|
24840
25208
|
end
|
24841
25209
|
|
24842
|
-
#
|
25210
|
+
# Returns permissions that a caller has on the specified resource.
|
24843
25211
|
# @param [String] project
|
24844
25212
|
# Project ID for this request.
|
24845
25213
|
# @param [String] region
|
24846
|
-
#
|
24847
|
-
# @param [String]
|
24848
|
-
# Name of the
|
25214
|
+
# The name of the region for this request.
|
25215
|
+
# @param [String] resource
|
25216
|
+
# Name or id of the resource for this request.
|
25217
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
24849
25218
|
# @param [String] fields
|
24850
25219
|
# Selector specifying which fields to include in a partial response.
|
24851
25220
|
# @param [String] quota_user
|
@@ -24857,32 +25226,36 @@ module Google
|
|
24857
25226
|
# Request-specific options
|
24858
25227
|
#
|
24859
25228
|
# @yield [result, err] Result & error if block supplied
|
24860
|
-
# @yieldparam result [
|
25229
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
24861
25230
|
# @yieldparam err [StandardError] error object if request failed
|
24862
25231
|
#
|
24863
|
-
# @return [
|
25232
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
24864
25233
|
#
|
24865
25234
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24866
25235
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24867
25236
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24868
|
-
def
|
24869
|
-
command = make_simple_command(:
|
25237
|
+
def test_region_notification_endpoint_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25238
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options)
|
25239
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
25240
|
+
command.request_object = test_permissions_request_object
|
25241
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
25242
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
24870
25243
|
command.params['project'] = project unless project.nil?
|
24871
25244
|
command.params['region'] = region unless region.nil?
|
24872
|
-
command.params['
|
25245
|
+
command.params['resource'] = resource unless resource.nil?
|
24873
25246
|
command.query['fields'] = fields unless fields.nil?
|
24874
25247
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24875
25248
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
24876
25249
|
execute_or_queue_command(command, &block)
|
24877
25250
|
end
|
24878
25251
|
|
24879
|
-
#
|
25252
|
+
# Deletes the specified region-specific Operations resource.
|
24880
25253
|
# @param [String] project
|
24881
25254
|
# Project ID for this request.
|
24882
25255
|
# @param [String] region
|
24883
25256
|
# Name of the region for this request.
|
24884
25257
|
# @param [String] operation
|
24885
|
-
# Name of the Operations resource to
|
25258
|
+
# Name of the Operations resource to delete.
|
24886
25259
|
# @param [String] fields
|
24887
25260
|
# Selector specifying which fields to include in a partial response.
|
24888
25261
|
# @param [String] quota_user
|
@@ -24894,18 +25267,16 @@ module Google
|
|
24894
25267
|
# Request-specific options
|
24895
25268
|
#
|
24896
25269
|
# @yield [result, err] Result & error if block supplied
|
24897
|
-
# @yieldparam result [
|
25270
|
+
# @yieldparam result [NilClass] No result returned for this method
|
24898
25271
|
# @yieldparam err [StandardError] error object if request failed
|
24899
25272
|
#
|
24900
|
-
# @return [
|
25273
|
+
# @return [void]
|
24901
25274
|
#
|
24902
25275
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24903
25276
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24904
25277
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24905
|
-
def
|
24906
|
-
command = make_simple_command(:
|
24907
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
24908
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
25278
|
+
def delete_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25279
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/operations/{operation}', options)
|
24909
25280
|
command.params['project'] = project unless project.nil?
|
24910
25281
|
command.params['region'] = region unless region.nil?
|
24911
25282
|
command.params['operation'] = operation unless operation.nil?
|
@@ -24915,95 +25286,134 @@ module Google
|
|
24915
25286
|
execute_or_queue_command(command, &block)
|
24916
25287
|
end
|
24917
25288
|
|
24918
|
-
# Retrieves
|
24919
|
-
# @param [String] project
|
24920
|
-
# Project ID for this request.
|
24921
|
-
# @param [String] region
|
24922
|
-
# Name of the region for this request.
|
24923
|
-
# @param [String]
|
24924
|
-
#
|
24925
|
-
#
|
24926
|
-
#
|
24927
|
-
#
|
24928
|
-
#
|
24929
|
-
#
|
24930
|
-
#
|
24931
|
-
#
|
24932
|
-
#
|
24933
|
-
#
|
24934
|
-
#
|
24935
|
-
#
|
24936
|
-
#
|
24937
|
-
#
|
24938
|
-
#
|
24939
|
-
#
|
24940
|
-
#
|
24941
|
-
#
|
24942
|
-
#
|
24943
|
-
#
|
24944
|
-
|
24945
|
-
|
24946
|
-
|
24947
|
-
|
24948
|
-
|
24949
|
-
|
24950
|
-
|
24951
|
-
|
24952
|
-
|
24953
|
-
|
24954
|
-
|
24955
|
-
|
24956
|
-
|
24957
|
-
#
|
24958
|
-
#
|
24959
|
-
#
|
24960
|
-
# @param [String]
|
24961
|
-
#
|
24962
|
-
# @param [String]
|
24963
|
-
#
|
24964
|
-
#
|
24965
|
-
#
|
24966
|
-
#
|
24967
|
-
#
|
24968
|
-
#
|
24969
|
-
#
|
24970
|
-
#
|
24971
|
-
#
|
24972
|
-
#
|
24973
|
-
#
|
24974
|
-
#
|
24975
|
-
#
|
24976
|
-
#
|
24977
|
-
#
|
24978
|
-
#
|
24979
|
-
|
24980
|
-
|
24981
|
-
|
24982
|
-
|
24983
|
-
|
24984
|
-
|
24985
|
-
|
24986
|
-
|
24987
|
-
|
24988
|
-
|
24989
|
-
|
24990
|
-
|
24991
|
-
|
24992
|
-
|
24993
|
-
|
24994
|
-
|
24995
|
-
|
24996
|
-
#
|
24997
|
-
#
|
24998
|
-
#
|
24999
|
-
#
|
25000
|
-
#
|
25001
|
-
#
|
25002
|
-
#
|
25003
|
-
#
|
25004
|
-
#
|
25005
|
-
#
|
25006
|
-
#
|
25289
|
+
# Retrieves the specified region-specific Operations resource.
|
25290
|
+
# @param [String] project
|
25291
|
+
# Project ID for this request.
|
25292
|
+
# @param [String] region
|
25293
|
+
# Name of the region for this request.
|
25294
|
+
# @param [String] operation
|
25295
|
+
# Name of the Operations resource to return.
|
25296
|
+
# @param [String] fields
|
25297
|
+
# Selector specifying which fields to include in a partial response.
|
25298
|
+
# @param [String] quota_user
|
25299
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
25300
|
+
# characters.
|
25301
|
+
# @param [String] user_ip
|
25302
|
+
# Deprecated. Please use quotaUser instead.
|
25303
|
+
# @param [Google::Apis::RequestOptions] options
|
25304
|
+
# Request-specific options
|
25305
|
+
#
|
25306
|
+
# @yield [result, err] Result & error if block supplied
|
25307
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
25308
|
+
# @yieldparam err [StandardError] error object if request failed
|
25309
|
+
#
|
25310
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
25311
|
+
#
|
25312
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25313
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25314
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25315
|
+
def get_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25316
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations/{operation}', options)
|
25317
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
25318
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
25319
|
+
command.params['project'] = project unless project.nil?
|
25320
|
+
command.params['region'] = region unless region.nil?
|
25321
|
+
command.params['operation'] = operation unless operation.nil?
|
25322
|
+
command.query['fields'] = fields unless fields.nil?
|
25323
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25324
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
25325
|
+
execute_or_queue_command(command, &block)
|
25326
|
+
end
|
25327
|
+
|
25328
|
+
# Retrieves a list of Operation resources contained within the specified region.
|
25329
|
+
# @param [String] project
|
25330
|
+
# Project ID for this request.
|
25331
|
+
# @param [String] region
|
25332
|
+
# Name of the region for this request.
|
25333
|
+
# @param [String] filter
|
25334
|
+
# A filter expression that filters resources listed in the response. The
|
25335
|
+
# expression must specify the field name, a comparison operator, and the value
|
25336
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
25337
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
25338
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
25339
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
25340
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
25341
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
25342
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
25343
|
+
# on resource labels.
|
25344
|
+
# To filter on multiple expressions, provide each separate expression within
|
25345
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
25346
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
25347
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
25348
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
25349
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
25350
|
+
# @param [Fixnum] max_results
|
25351
|
+
# The maximum number of results per page that should be returned. If the number
|
25352
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
25353
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
25354
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
25355
|
+
# @param [String] order_by
|
25356
|
+
# Sorts list results by a certain order. By default, results are returned in
|
25357
|
+
# alphanumerical order based on the resource name.
|
25358
|
+
# You can also sort results in descending order based on the creation timestamp
|
25359
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
25360
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
25361
|
+
# Use this to sort resources like operations so that the newest operation is
|
25362
|
+
# returned first.
|
25363
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
25364
|
+
# @param [String] page_token
|
25365
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
25366
|
+
# by a previous list request to get the next page of results.
|
25367
|
+
# @param [Boolean] return_partial_success
|
25368
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
25369
|
+
# failure. The default value is false.
|
25370
|
+
# @param [String] fields
|
25371
|
+
# Selector specifying which fields to include in a partial response.
|
25372
|
+
# @param [String] quota_user
|
25373
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
25374
|
+
# characters.
|
25375
|
+
# @param [String] user_ip
|
25376
|
+
# Deprecated. Please use quotaUser instead.
|
25377
|
+
# @param [Google::Apis::RequestOptions] options
|
25378
|
+
# Request-specific options
|
25379
|
+
#
|
25380
|
+
# @yield [result, err] Result & error if block supplied
|
25381
|
+
# @yieldparam result [Google::Apis::ComputeBeta::OperationList] parsed result object
|
25382
|
+
# @yieldparam err [StandardError] error object if request failed
|
25383
|
+
#
|
25384
|
+
# @return [Google::Apis::ComputeBeta::OperationList]
|
25385
|
+
#
|
25386
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25387
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25388
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25389
|
+
def list_region_operations(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25390
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations', options)
|
25391
|
+
command.response_representation = Google::Apis::ComputeBeta::OperationList::Representation
|
25392
|
+
command.response_class = Google::Apis::ComputeBeta::OperationList
|
25393
|
+
command.params['project'] = project unless project.nil?
|
25394
|
+
command.params['region'] = region unless region.nil?
|
25395
|
+
command.query['filter'] = filter unless filter.nil?
|
25396
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
25397
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
25398
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
25399
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
25400
|
+
command.query['fields'] = fields unless fields.nil?
|
25401
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25402
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
25403
|
+
execute_or_queue_command(command, &block)
|
25404
|
+
end
|
25405
|
+
|
25406
|
+
# Waits for the specified Operation resource to return as `DONE` or for the
|
25407
|
+
# request to approach the 2 minute deadline, and retrieves the specified
|
25408
|
+
# Operation resource. This method differs from the `GET` method in that it waits
|
25409
|
+
# for no more than the default deadline (2 minutes) and then returns the current
|
25410
|
+
# state of the operation, which might be `DONE` or still in progress.
|
25411
|
+
# This method is called on a best-effort basis. Specifically:
|
25412
|
+
# - In uncommon cases, when the server is overloaded, the request might return
|
25413
|
+
# before the default deadline is reached, or might return after zero seconds.
|
25414
|
+
# - If the default deadline is reached, there is no guarantee that the operation
|
25415
|
+
# is actually done when the method returns. Be prepared to retry if the
|
25416
|
+
# operation is not `DONE`.
|
25007
25417
|
# @param [String] project
|
25008
25418
|
# Project ID for this request.
|
25009
25419
|
# @param [String] region
|
@@ -25264,6 +25674,48 @@ module Google
|
|
25264
25674
|
execute_or_queue_command(command, &block)
|
25265
25675
|
end
|
25266
25676
|
|
25677
|
+
# Returns permissions that a caller has on the specified resource and region.
|
25678
|
+
# @param [String] project
|
25679
|
+
# Project ID for this request.
|
25680
|
+
# @param [String] region
|
25681
|
+
# The name of the region for this request.
|
25682
|
+
# @param [String] resource
|
25683
|
+
# Name or id of the resource for this request.
|
25684
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
25685
|
+
# @param [String] fields
|
25686
|
+
# Selector specifying which fields to include in a partial response.
|
25687
|
+
# @param [String] quota_user
|
25688
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
25689
|
+
# characters.
|
25690
|
+
# @param [String] user_ip
|
25691
|
+
# Deprecated. Please use quotaUser instead.
|
25692
|
+
# @param [Google::Apis::RequestOptions] options
|
25693
|
+
# Request-specific options
|
25694
|
+
#
|
25695
|
+
# @yield [result, err] Result & error if block supplied
|
25696
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
25697
|
+
# @yieldparam err [StandardError] error object if request failed
|
25698
|
+
#
|
25699
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
25700
|
+
#
|
25701
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25702
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25703
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25704
|
+
def test_region_ssl_certificate_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
25705
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions', options)
|
25706
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
25707
|
+
command.request_object = test_permissions_request_object
|
25708
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
25709
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
25710
|
+
command.params['project'] = project unless project.nil?
|
25711
|
+
command.params['region'] = region unless region.nil?
|
25712
|
+
command.params['resource'] = resource unless resource.nil?
|
25713
|
+
command.query['fields'] = fields unless fields.nil?
|
25714
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25715
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
25716
|
+
execute_or_queue_command(command, &block)
|
25717
|
+
end
|
25718
|
+
|
25267
25719
|
# Deletes the specified TargetHttpProxy resource.
|
25268
25720
|
# @param [String] project
|
25269
25721
|
# Project ID for this request.
|
@@ -25540,6 +25992,48 @@ module Google
|
|
25540
25992
|
execute_or_queue_command(command, &block)
|
25541
25993
|
end
|
25542
25994
|
|
25995
|
+
# Returns permissions that a caller has on the specified resource.
|
25996
|
+
# @param [String] project
|
25997
|
+
# Project ID for this request.
|
25998
|
+
# @param [String] region
|
25999
|
+
# The name of the region for this request.
|
26000
|
+
# @param [String] resource
|
26001
|
+
# Name or id of the resource for this request.
|
26002
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
26003
|
+
# @param [String] fields
|
26004
|
+
# Selector specifying which fields to include in a partial response.
|
26005
|
+
# @param [String] quota_user
|
26006
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26007
|
+
# characters.
|
26008
|
+
# @param [String] user_ip
|
26009
|
+
# Deprecated. Please use quotaUser instead.
|
26010
|
+
# @param [Google::Apis::RequestOptions] options
|
26011
|
+
# Request-specific options
|
26012
|
+
#
|
26013
|
+
# @yield [result, err] Result & error if block supplied
|
26014
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
26015
|
+
# @yieldparam err [StandardError] error object if request failed
|
26016
|
+
#
|
26017
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
26018
|
+
#
|
26019
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26020
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26021
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26022
|
+
def test_region_target_http_proxy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26023
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions', options)
|
26024
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
26025
|
+
command.request_object = test_permissions_request_object
|
26026
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
26027
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
26028
|
+
command.params['project'] = project unless project.nil?
|
26029
|
+
command.params['region'] = region unless region.nil?
|
26030
|
+
command.params['resource'] = resource unless resource.nil?
|
26031
|
+
command.query['fields'] = fields unless fields.nil?
|
26032
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26033
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26034
|
+
execute_or_queue_command(command, &block)
|
26035
|
+
end
|
26036
|
+
|
25543
26037
|
# Deletes the specified TargetHttpsProxy resource.
|
25544
26038
|
# @param [String] project
|
25545
26039
|
# Project ID for this request.
|
@@ -25870,15 +26364,14 @@ module Google
|
|
25870
26364
|
execute_or_queue_command(command, &block)
|
25871
26365
|
end
|
25872
26366
|
|
25873
|
-
#
|
26367
|
+
# Returns permissions that a caller has on the specified resource.
|
25874
26368
|
# @param [String] project
|
25875
26369
|
# Project ID for this request.
|
25876
26370
|
# @param [String] region
|
25877
|
-
#
|
25878
|
-
# @param [String]
|
25879
|
-
# Name of the
|
25880
|
-
# @param [
|
25881
|
-
# begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
|
26371
|
+
# The name of the region for this request.
|
26372
|
+
# @param [String] resource
|
26373
|
+
# Name or id of the resource for this request.
|
26374
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
25882
26375
|
# @param [String] fields
|
25883
26376
|
# Selector specifying which fields to include in a partial response.
|
25884
26377
|
# @param [String] quota_user
|
@@ -25890,75 +26383,118 @@ module Google
|
|
25890
26383
|
# Request-specific options
|
25891
26384
|
#
|
25892
26385
|
# @yield [result, err] Result & error if block supplied
|
25893
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
26386
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
25894
26387
|
# @yieldparam err [StandardError] error object if request failed
|
25895
26388
|
#
|
25896
|
-
# @return [Google::Apis::ComputeBeta::
|
26389
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
25897
26390
|
#
|
25898
26391
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
25899
26392
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
25900
26393
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
25901
|
-
def
|
25902
|
-
command = make_simple_command(:
|
25903
|
-
command.
|
25904
|
-
command.
|
26394
|
+
def test_region_target_https_proxy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26395
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions', options)
|
26396
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
26397
|
+
command.request_object = test_permissions_request_object
|
26398
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
26399
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
25905
26400
|
command.params['project'] = project unless project.nil?
|
25906
26401
|
command.params['region'] = region unless region.nil?
|
25907
|
-
command.params['
|
25908
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
26402
|
+
command.params['resource'] = resource unless resource.nil?
|
25909
26403
|
command.query['fields'] = fields unless fields.nil?
|
25910
26404
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
25911
26405
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
25912
26406
|
execute_or_queue_command(command, &block)
|
25913
26407
|
end
|
25914
26408
|
|
25915
|
-
#
|
25916
|
-
# making a list() request.
|
26409
|
+
# Deletes the specified UrlMap resource.
|
25917
26410
|
# @param [String] project
|
25918
26411
|
# Project ID for this request.
|
25919
26412
|
# @param [String] region
|
25920
26413
|
# Name of the region scoping this request.
|
25921
26414
|
# @param [String] url_map
|
25922
|
-
# Name of the UrlMap resource to
|
25923
|
-
# @param [String]
|
25924
|
-
#
|
25925
|
-
# @param [String]
|
25926
|
-
#
|
25927
|
-
#
|
25928
|
-
#
|
25929
|
-
#
|
25930
|
-
# @param [
|
25931
|
-
#
|
25932
|
-
#
|
25933
|
-
#
|
25934
|
-
#
|
25935
|
-
# @
|
25936
|
-
#
|
25937
|
-
# @
|
25938
|
-
#
|
25939
|
-
# @
|
25940
|
-
#
|
25941
|
-
# @raise [Google::Apis::
|
25942
|
-
|
25943
|
-
|
25944
|
-
|
25945
|
-
command
|
25946
|
-
command.
|
25947
|
-
command.
|
25948
|
-
command.params['
|
25949
|
-
command.
|
25950
|
-
command.
|
25951
|
-
command.query['
|
25952
|
-
|
25953
|
-
|
25954
|
-
|
25955
|
-
|
25956
|
-
|
25957
|
-
|
25958
|
-
#
|
25959
|
-
#
|
25960
|
-
#
|
25961
|
-
#
|
26415
|
+
# Name of the UrlMap resource to delete.
|
26416
|
+
# @param [String] request_id
|
26417
|
+
# begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
|
26418
|
+
# @param [String] fields
|
26419
|
+
# Selector specifying which fields to include in a partial response.
|
26420
|
+
# @param [String] quota_user
|
26421
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26422
|
+
# characters.
|
26423
|
+
# @param [String] user_ip
|
26424
|
+
# Deprecated. Please use quotaUser instead.
|
26425
|
+
# @param [Google::Apis::RequestOptions] options
|
26426
|
+
# Request-specific options
|
26427
|
+
#
|
26428
|
+
# @yield [result, err] Result & error if block supplied
|
26429
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
26430
|
+
# @yieldparam err [StandardError] error object if request failed
|
26431
|
+
#
|
26432
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
26433
|
+
#
|
26434
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26435
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26436
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26437
|
+
def delete_region_url_map(project, region, url_map, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26438
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/urlMaps/{urlMap}', options)
|
26439
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
26440
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
26441
|
+
command.params['project'] = project unless project.nil?
|
26442
|
+
command.params['region'] = region unless region.nil?
|
26443
|
+
command.params['urlMap'] = url_map unless url_map.nil?
|
26444
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26445
|
+
command.query['fields'] = fields unless fields.nil?
|
26446
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26447
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26448
|
+
execute_or_queue_command(command, &block)
|
26449
|
+
end
|
26450
|
+
|
26451
|
+
# Returns the specified UrlMap resource. Gets a list of available URL maps by
|
26452
|
+
# making a list() request.
|
26453
|
+
# @param [String] project
|
26454
|
+
# Project ID for this request.
|
26455
|
+
# @param [String] region
|
26456
|
+
# Name of the region scoping this request.
|
26457
|
+
# @param [String] url_map
|
26458
|
+
# Name of the UrlMap resource to return.
|
26459
|
+
# @param [String] fields
|
26460
|
+
# Selector specifying which fields to include in a partial response.
|
26461
|
+
# @param [String] quota_user
|
26462
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26463
|
+
# characters.
|
26464
|
+
# @param [String] user_ip
|
26465
|
+
# Deprecated. Please use quotaUser instead.
|
26466
|
+
# @param [Google::Apis::RequestOptions] options
|
26467
|
+
# Request-specific options
|
26468
|
+
#
|
26469
|
+
# @yield [result, err] Result & error if block supplied
|
26470
|
+
# @yieldparam result [Google::Apis::ComputeBeta::UrlMap] parsed result object
|
26471
|
+
# @yieldparam err [StandardError] error object if request failed
|
26472
|
+
#
|
26473
|
+
# @return [Google::Apis::ComputeBeta::UrlMap]
|
26474
|
+
#
|
26475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26478
|
+
def get_region_url_map(project, region, url_map, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26479
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/urlMaps/{urlMap}', options)
|
26480
|
+
command.response_representation = Google::Apis::ComputeBeta::UrlMap::Representation
|
26481
|
+
command.response_class = Google::Apis::ComputeBeta::UrlMap
|
26482
|
+
command.params['project'] = project unless project.nil?
|
26483
|
+
command.params['region'] = region unless region.nil?
|
26484
|
+
command.params['urlMap'] = url_map unless url_map.nil?
|
26485
|
+
command.query['fields'] = fields unless fields.nil?
|
26486
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26487
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26488
|
+
execute_or_queue_command(command, &block)
|
26489
|
+
end
|
26490
|
+
|
26491
|
+
# Creates a UrlMap resource in the specified project using the data included in
|
26492
|
+
# the request.
|
26493
|
+
# @param [String] project
|
26494
|
+
# Project ID for this request.
|
26495
|
+
# @param [String] region
|
26496
|
+
# Name of the region scoping this request.
|
26497
|
+
# @param [Google::Apis::ComputeBeta::UrlMap] url_map_object
|
25962
26498
|
# @param [String] request_id
|
25963
26499
|
# begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
|
25964
26500
|
# @param [String] fields
|
@@ -26169,6 +26705,48 @@ module Google
|
|
26169
26705
|
execute_or_queue_command(command, &block)
|
26170
26706
|
end
|
26171
26707
|
|
26708
|
+
# Returns permissions that a caller has on the specified resource.
|
26709
|
+
# @param [String] project
|
26710
|
+
# Project ID for this request.
|
26711
|
+
# @param [String] region
|
26712
|
+
# The name of the region for this request.
|
26713
|
+
# @param [String] resource
|
26714
|
+
# Name or id of the resource for this request.
|
26715
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
26716
|
+
# @param [String] fields
|
26717
|
+
# Selector specifying which fields to include in a partial response.
|
26718
|
+
# @param [String] quota_user
|
26719
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26720
|
+
# characters.
|
26721
|
+
# @param [String] user_ip
|
26722
|
+
# Deprecated. Please use quotaUser instead.
|
26723
|
+
# @param [Google::Apis::RequestOptions] options
|
26724
|
+
# Request-specific options
|
26725
|
+
#
|
26726
|
+
# @yield [result, err] Result & error if block supplied
|
26727
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
26728
|
+
# @yieldparam err [StandardError] error object if request failed
|
26729
|
+
#
|
26730
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
26731
|
+
#
|
26732
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26733
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26734
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26735
|
+
def test_region_url_map_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26736
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions', options)
|
26737
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
26738
|
+
command.request_object = test_permissions_request_object
|
26739
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
26740
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
26741
|
+
command.params['project'] = project unless project.nil?
|
26742
|
+
command.params['region'] = region unless region.nil?
|
26743
|
+
command.params['resource'] = resource unless resource.nil?
|
26744
|
+
command.query['fields'] = fields unless fields.nil?
|
26745
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26746
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26747
|
+
execute_or_queue_command(command, &block)
|
26748
|
+
end
|
26749
|
+
|
26172
26750
|
# Updates the specified UrlMap resource with the data included in the request.
|
26173
26751
|
# @param [String] project
|
26174
26752
|
# Project ID for this request.
|
@@ -28921,6 +29499,49 @@ module Google
|
|
28921
29499
|
execute_or_queue_command(command, &block)
|
28922
29500
|
end
|
28923
29501
|
|
29502
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
29503
|
+
# or resource exists.
|
29504
|
+
# @param [String] project
|
29505
|
+
# Project ID for this request.
|
29506
|
+
# @param [String] region
|
29507
|
+
# The name of the region for this request.
|
29508
|
+
# @param [String] resource
|
29509
|
+
# Name or id of the resource for this request.
|
29510
|
+
# @param [Fixnum] options_requested_policy_version
|
29511
|
+
# Requested IAM Policy version.
|
29512
|
+
# @param [String] fields
|
29513
|
+
# Selector specifying which fields to include in a partial response.
|
29514
|
+
# @param [String] quota_user
|
29515
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29516
|
+
# characters.
|
29517
|
+
# @param [String] user_ip
|
29518
|
+
# Deprecated. Please use quotaUser instead.
|
29519
|
+
# @param [Google::Apis::RequestOptions] options
|
29520
|
+
# Request-specific options
|
29521
|
+
#
|
29522
|
+
# @yield [result, err] Result & error if block supplied
|
29523
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
29524
|
+
# @yieldparam err [StandardError] error object if request failed
|
29525
|
+
#
|
29526
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
29527
|
+
#
|
29528
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29529
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29530
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29531
|
+
def get_service_attachment_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29532
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy', options)
|
29533
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
29534
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
29535
|
+
command.params['project'] = project unless project.nil?
|
29536
|
+
command.params['region'] = region unless region.nil?
|
29537
|
+
command.params['resource'] = resource unless resource.nil?
|
29538
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
29539
|
+
command.query['fields'] = fields unless fields.nil?
|
29540
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29541
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29542
|
+
execute_or_queue_command(command, &block)
|
29543
|
+
end
|
29544
|
+
|
28924
29545
|
# Creates a ServiceAttachment in the specified project in the given scope using
|
28925
29546
|
# the parameters that are included in the request.
|
28926
29547
|
# @param [String] project
|
@@ -29051,6 +29672,148 @@ module Google
|
|
29051
29672
|
execute_or_queue_command(command, &block)
|
29052
29673
|
end
|
29053
29674
|
|
29675
|
+
# Patches the specified ServiceAttachment resource with the data included in the
|
29676
|
+
# request. This method supports PATCH semantics and uses JSON merge patch format
|
29677
|
+
# and processing rules.
|
29678
|
+
# @param [String] project
|
29679
|
+
# Project ID for this request.
|
29680
|
+
# @param [String] region
|
29681
|
+
# The region scoping this request and should conform to RFC1035.
|
29682
|
+
# @param [String] service_attachment
|
29683
|
+
# The resource id of the ServiceAttachment to patch. It should conform to
|
29684
|
+
# RFC1035 resource name or be a string form on an unsigned long number.
|
29685
|
+
# @param [Google::Apis::ComputeBeta::ServiceAttachment] service_attachment_object
|
29686
|
+
# @param [String] request_id
|
29687
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29688
|
+
# that if you must retry your request, the server will know to ignore the
|
29689
|
+
# request if it has already been completed.
|
29690
|
+
# For example, consider a situation where you make an initial request and the
|
29691
|
+
# request times out. If you make the request again with the same request ID, the
|
29692
|
+
# server can check if original operation with the same request ID was received,
|
29693
|
+
# and if so, will ignore the second request. This prevents clients from
|
29694
|
+
# accidentally creating duplicate commitments.
|
29695
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
29696
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
29697
|
+
# @param [String] fields
|
29698
|
+
# Selector specifying which fields to include in a partial response.
|
29699
|
+
# @param [String] quota_user
|
29700
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29701
|
+
# characters.
|
29702
|
+
# @param [String] user_ip
|
29703
|
+
# Deprecated. Please use quotaUser instead.
|
29704
|
+
# @param [Google::Apis::RequestOptions] options
|
29705
|
+
# Request-specific options
|
29706
|
+
#
|
29707
|
+
# @yield [result, err] Result & error if block supplied
|
29708
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
29709
|
+
# @yieldparam err [StandardError] error object if request failed
|
29710
|
+
#
|
29711
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
29712
|
+
#
|
29713
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29714
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29715
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29716
|
+
def patch_service_attachment(project, region, service_attachment, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29717
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
|
29718
|
+
command.request_representation = Google::Apis::ComputeBeta::ServiceAttachment::Representation
|
29719
|
+
command.request_object = service_attachment_object
|
29720
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
29721
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
29722
|
+
command.params['project'] = project unless project.nil?
|
29723
|
+
command.params['region'] = region unless region.nil?
|
29724
|
+
command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
|
29725
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29726
|
+
command.query['fields'] = fields unless fields.nil?
|
29727
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29728
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29729
|
+
execute_or_queue_command(command, &block)
|
29730
|
+
end
|
29731
|
+
|
29732
|
+
# Sets the access control policy on the specified resource. Replaces any
|
29733
|
+
# existing policy.
|
29734
|
+
# @param [String] project
|
29735
|
+
# Project ID for this request.
|
29736
|
+
# @param [String] region
|
29737
|
+
# The name of the region for this request.
|
29738
|
+
# @param [String] resource
|
29739
|
+
# Name or id of the resource for this request.
|
29740
|
+
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
|
29741
|
+
# @param [String] fields
|
29742
|
+
# Selector specifying which fields to include in a partial response.
|
29743
|
+
# @param [String] quota_user
|
29744
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29745
|
+
# characters.
|
29746
|
+
# @param [String] user_ip
|
29747
|
+
# Deprecated. Please use quotaUser instead.
|
29748
|
+
# @param [Google::Apis::RequestOptions] options
|
29749
|
+
# Request-specific options
|
29750
|
+
#
|
29751
|
+
# @yield [result, err] Result & error if block supplied
|
29752
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
29753
|
+
# @yieldparam err [StandardError] error object if request failed
|
29754
|
+
#
|
29755
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
29756
|
+
#
|
29757
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29758
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29759
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29760
|
+
def set_service_attachment_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29761
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy', options)
|
29762
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
|
29763
|
+
command.request_object = region_set_policy_request_object
|
29764
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
29765
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
29766
|
+
command.params['project'] = project unless project.nil?
|
29767
|
+
command.params['region'] = region unless region.nil?
|
29768
|
+
command.params['resource'] = resource unless resource.nil?
|
29769
|
+
command.query['fields'] = fields unless fields.nil?
|
29770
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29771
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29772
|
+
execute_or_queue_command(command, &block)
|
29773
|
+
end
|
29774
|
+
|
29775
|
+
# Returns permissions that a caller has on the specified resource.
|
29776
|
+
# @param [String] project
|
29777
|
+
# Project ID for this request.
|
29778
|
+
# @param [String] region
|
29779
|
+
# The name of the region for this request.
|
29780
|
+
# @param [String] resource
|
29781
|
+
# Name or id of the resource for this request.
|
29782
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
29783
|
+
# @param [String] fields
|
29784
|
+
# Selector specifying which fields to include in a partial response.
|
29785
|
+
# @param [String] quota_user
|
29786
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29787
|
+
# characters.
|
29788
|
+
# @param [String] user_ip
|
29789
|
+
# Deprecated. Please use quotaUser instead.
|
29790
|
+
# @param [Google::Apis::RequestOptions] options
|
29791
|
+
# Request-specific options
|
29792
|
+
#
|
29793
|
+
# @yield [result, err] Result & error if block supplied
|
29794
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
29795
|
+
# @yieldparam err [StandardError] error object if request failed
|
29796
|
+
#
|
29797
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
29798
|
+
#
|
29799
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29800
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29801
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29802
|
+
def test_service_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29803
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions', options)
|
29804
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
29805
|
+
command.request_object = test_permissions_request_object
|
29806
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
29807
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
29808
|
+
command.params['project'] = project unless project.nil?
|
29809
|
+
command.params['region'] = region unless region.nil?
|
29810
|
+
command.params['resource'] = resource unless resource.nil?
|
29811
|
+
command.query['fields'] = fields unless fields.nil?
|
29812
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29813
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29814
|
+
execute_or_queue_command(command, &block)
|
29815
|
+
end
|
29816
|
+
|
29054
29817
|
# Deletes the specified Snapshot resource. Keep in mind that deleting a single
|
29055
29818
|
# snapshot might not necessarily delete all the data on that snapshot. If any
|
29056
29819
|
# data on the snapshot that is marked for deletion is needed for subsequent
|
@@ -31078,6 +31841,45 @@ module Google
|
|
31078
31841
|
execute_or_queue_command(command, &block)
|
31079
31842
|
end
|
31080
31843
|
|
31844
|
+
# Returns permissions that a caller has on the specified resource.
|
31845
|
+
# @param [String] project
|
31846
|
+
# Project ID for this request.
|
31847
|
+
# @param [String] resource
|
31848
|
+
# Name or id of the resource for this request.
|
31849
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
31850
|
+
# @param [String] fields
|
31851
|
+
# Selector specifying which fields to include in a partial response.
|
31852
|
+
# @param [String] quota_user
|
31853
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
31854
|
+
# characters.
|
31855
|
+
# @param [String] user_ip
|
31856
|
+
# Deprecated. Please use quotaUser instead.
|
31857
|
+
# @param [Google::Apis::RequestOptions] options
|
31858
|
+
# Request-specific options
|
31859
|
+
#
|
31860
|
+
# @yield [result, err] Result & error if block supplied
|
31861
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
31862
|
+
# @yieldparam err [StandardError] error object if request failed
|
31863
|
+
#
|
31864
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
31865
|
+
#
|
31866
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31867
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31868
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31869
|
+
def test_target_grpc_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31870
|
+
command = make_simple_command(:post, 'projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions', options)
|
31871
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
31872
|
+
command.request_object = test_permissions_request_object
|
31873
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
31874
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
31875
|
+
command.params['project'] = project unless project.nil?
|
31876
|
+
command.params['resource'] = resource unless resource.nil?
|
31877
|
+
command.query['fields'] = fields unless fields.nil?
|
31878
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31879
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31880
|
+
execute_or_queue_command(command, &block)
|
31881
|
+
end
|
31882
|
+
|
31081
31883
|
# Retrieves the list of all TargetHttpProxy resources, regional and global,
|
31082
31884
|
# available to the specified project.
|
31083
31885
|
# @param [String] project
|
@@ -33611,8 +34413,221 @@ module Google
|
|
33611
34413
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33612
34414
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33613
34415
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33614
|
-
def delete_target_tcp_proxy(project, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33615
|
-
command = make_simple_command(:delete, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
|
34416
|
+
def delete_target_tcp_proxy(project, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34417
|
+
command = make_simple_command(:delete, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
|
34418
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
34419
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
34420
|
+
command.params['project'] = project unless project.nil?
|
34421
|
+
command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
|
34422
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34423
|
+
command.query['fields'] = fields unless fields.nil?
|
34424
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34425
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34426
|
+
execute_or_queue_command(command, &block)
|
34427
|
+
end
|
34428
|
+
|
34429
|
+
# Returns the specified TargetTcpProxy resource. Gets a list of available target
|
34430
|
+
# TCP proxies by making a list() request.
|
34431
|
+
# @param [String] project
|
34432
|
+
# Project ID for this request.
|
34433
|
+
# @param [String] target_tcp_proxy
|
34434
|
+
# Name of the TargetTcpProxy resource to return.
|
34435
|
+
# @param [String] fields
|
34436
|
+
# Selector specifying which fields to include in a partial response.
|
34437
|
+
# @param [String] quota_user
|
34438
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
34439
|
+
# characters.
|
34440
|
+
# @param [String] user_ip
|
34441
|
+
# Deprecated. Please use quotaUser instead.
|
34442
|
+
# @param [Google::Apis::RequestOptions] options
|
34443
|
+
# Request-specific options
|
34444
|
+
#
|
34445
|
+
# @yield [result, err] Result & error if block supplied
|
34446
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxy] parsed result object
|
34447
|
+
# @yieldparam err [StandardError] error object if request failed
|
34448
|
+
#
|
34449
|
+
# @return [Google::Apis::ComputeBeta::TargetTcpProxy]
|
34450
|
+
#
|
34451
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34452
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34453
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34454
|
+
def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34455
|
+
command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
|
34456
|
+
command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
|
34457
|
+
command.response_class = Google::Apis::ComputeBeta::TargetTcpProxy
|
34458
|
+
command.params['project'] = project unless project.nil?
|
34459
|
+
command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
|
34460
|
+
command.query['fields'] = fields unless fields.nil?
|
34461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34462
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34463
|
+
execute_or_queue_command(command, &block)
|
34464
|
+
end
|
34465
|
+
|
34466
|
+
# Creates a TargetTcpProxy resource in the specified project using the data
|
34467
|
+
# included in the request.
|
34468
|
+
# @param [String] project
|
34469
|
+
# Project ID for this request.
|
34470
|
+
# @param [Google::Apis::ComputeBeta::TargetTcpProxy] target_tcp_proxy_object
|
34471
|
+
# @param [String] request_id
|
34472
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34473
|
+
# that if you must retry your request, the server will know to ignore the
|
34474
|
+
# request if it has already been completed.
|
34475
|
+
# For example, consider a situation where you make an initial request and the
|
34476
|
+
# request times out. If you make the request again with the same request ID, the
|
34477
|
+
# server can check if original operation with the same request ID was received,
|
34478
|
+
# and if so, will ignore the second request. This prevents clients from
|
34479
|
+
# accidentally creating duplicate commitments.
|
34480
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
34481
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
34482
|
+
# @param [String] fields
|
34483
|
+
# Selector specifying which fields to include in a partial response.
|
34484
|
+
# @param [String] quota_user
|
34485
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
34486
|
+
# characters.
|
34487
|
+
# @param [String] user_ip
|
34488
|
+
# Deprecated. Please use quotaUser instead.
|
34489
|
+
# @param [Google::Apis::RequestOptions] options
|
34490
|
+
# Request-specific options
|
34491
|
+
#
|
34492
|
+
# @yield [result, err] Result & error if block supplied
|
34493
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
34494
|
+
# @yieldparam err [StandardError] error object if request failed
|
34495
|
+
#
|
34496
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
34497
|
+
#
|
34498
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34499
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34500
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34501
|
+
def insert_target_tcp_proxy(project, target_tcp_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34502
|
+
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options)
|
34503
|
+
command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
|
34504
|
+
command.request_object = target_tcp_proxy_object
|
34505
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
34506
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
34507
|
+
command.params['project'] = project unless project.nil?
|
34508
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34509
|
+
command.query['fields'] = fields unless fields.nil?
|
34510
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34511
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34512
|
+
execute_or_queue_command(command, &block)
|
34513
|
+
end
|
34514
|
+
|
34515
|
+
# Retrieves the list of TargetTcpProxy resources available to the specified
|
34516
|
+
# project.
|
34517
|
+
# @param [String] project
|
34518
|
+
# Project ID for this request.
|
34519
|
+
# @param [String] filter
|
34520
|
+
# A filter expression that filters resources listed in the response. The
|
34521
|
+
# expression must specify the field name, a comparison operator, and the value
|
34522
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
34523
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
34524
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
34525
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
34526
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
34527
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
34528
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
34529
|
+
# on resource labels.
|
34530
|
+
# To filter on multiple expressions, provide each separate expression within
|
34531
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
34532
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
34533
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
34534
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
34535
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
34536
|
+
# @param [Fixnum] max_results
|
34537
|
+
# The maximum number of results per page that should be returned. If the number
|
34538
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
34539
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
34540
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
34541
|
+
# @param [String] order_by
|
34542
|
+
# Sorts list results by a certain order. By default, results are returned in
|
34543
|
+
# alphanumerical order based on the resource name.
|
34544
|
+
# You can also sort results in descending order based on the creation timestamp
|
34545
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
34546
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
34547
|
+
# Use this to sort resources like operations so that the newest operation is
|
34548
|
+
# returned first.
|
34549
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
34550
|
+
# @param [String] page_token
|
34551
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
34552
|
+
# by a previous list request to get the next page of results.
|
34553
|
+
# @param [Boolean] return_partial_success
|
34554
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
34555
|
+
# failure. The default value is false.
|
34556
|
+
# @param [String] fields
|
34557
|
+
# Selector specifying which fields to include in a partial response.
|
34558
|
+
# @param [String] quota_user
|
34559
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
34560
|
+
# characters.
|
34561
|
+
# @param [String] user_ip
|
34562
|
+
# Deprecated. Please use quotaUser instead.
|
34563
|
+
# @param [Google::Apis::RequestOptions] options
|
34564
|
+
# Request-specific options
|
34565
|
+
#
|
34566
|
+
# @yield [result, err] Result & error if block supplied
|
34567
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxyList] parsed result object
|
34568
|
+
# @yieldparam err [StandardError] error object if request failed
|
34569
|
+
#
|
34570
|
+
# @return [Google::Apis::ComputeBeta::TargetTcpProxyList]
|
34571
|
+
#
|
34572
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34573
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34574
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34575
|
+
def list_target_tcp_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34576
|
+
command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options)
|
34577
|
+
command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxyList::Representation
|
34578
|
+
command.response_class = Google::Apis::ComputeBeta::TargetTcpProxyList
|
34579
|
+
command.params['project'] = project unless project.nil?
|
34580
|
+
command.query['filter'] = filter unless filter.nil?
|
34581
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
34582
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
34583
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
34584
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
34585
|
+
command.query['fields'] = fields unless fields.nil?
|
34586
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34587
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34588
|
+
execute_or_queue_command(command, &block)
|
34589
|
+
end
|
34590
|
+
|
34591
|
+
# Changes the BackendService for TargetTcpProxy.
|
34592
|
+
# @param [String] project
|
34593
|
+
# Project ID for this request.
|
34594
|
+
# @param [String] target_tcp_proxy
|
34595
|
+
# Name of the TargetTcpProxy resource whose BackendService resource is to be set.
|
34596
|
+
# @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest] target_tcp_proxies_set_backend_service_request_object
|
34597
|
+
# @param [String] request_id
|
34598
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34599
|
+
# that if you must retry your request, the server will know to ignore the
|
34600
|
+
# request if it has already been completed.
|
34601
|
+
# For example, consider a situation where you make an initial request and the
|
34602
|
+
# request times out. If you make the request again with the same request ID, the
|
34603
|
+
# server can check if original operation with the same request ID was received,
|
34604
|
+
# and if so, will ignore the second request. This prevents clients from
|
34605
|
+
# accidentally creating duplicate commitments.
|
34606
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
34607
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
34608
|
+
# @param [String] fields
|
34609
|
+
# Selector specifying which fields to include in a partial response.
|
34610
|
+
# @param [String] quota_user
|
34611
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
34612
|
+
# characters.
|
34613
|
+
# @param [String] user_ip
|
34614
|
+
# Deprecated. Please use quotaUser instead.
|
34615
|
+
# @param [Google::Apis::RequestOptions] options
|
34616
|
+
# Request-specific options
|
34617
|
+
#
|
34618
|
+
# @yield [result, err] Result & error if block supplied
|
34619
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
34620
|
+
# @yieldparam err [StandardError] error object if request failed
|
34621
|
+
#
|
34622
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
34623
|
+
#
|
34624
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34625
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34626
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34627
|
+
def set_target_tcp_proxy_backend_service(project, target_tcp_proxy, target_tcp_proxies_set_backend_service_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34628
|
+
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options)
|
34629
|
+
command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest::Representation
|
34630
|
+
command.request_object = target_tcp_proxies_set_backend_service_request_object
|
33616
34631
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
33617
34632
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
33618
34633
|
command.params['project'] = project unless project.nil?
|
@@ -33624,174 +34639,12 @@ module Google
|
|
33624
34639
|
execute_or_queue_command(command, &block)
|
33625
34640
|
end
|
33626
34641
|
|
33627
|
-
#
|
33628
|
-
# TCP proxies by making a list() request.
|
33629
|
-
# @param [String] project
|
33630
|
-
# Project ID for this request.
|
33631
|
-
# @param [String] target_tcp_proxy
|
33632
|
-
# Name of the TargetTcpProxy resource to return.
|
33633
|
-
# @param [String] fields
|
33634
|
-
# Selector specifying which fields to include in a partial response.
|
33635
|
-
# @param [String] quota_user
|
33636
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
33637
|
-
# characters.
|
33638
|
-
# @param [String] user_ip
|
33639
|
-
# Deprecated. Please use quotaUser instead.
|
33640
|
-
# @param [Google::Apis::RequestOptions] options
|
33641
|
-
# Request-specific options
|
33642
|
-
#
|
33643
|
-
# @yield [result, err] Result & error if block supplied
|
33644
|
-
# @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxy] parsed result object
|
33645
|
-
# @yieldparam err [StandardError] error object if request failed
|
33646
|
-
#
|
33647
|
-
# @return [Google::Apis::ComputeBeta::TargetTcpProxy]
|
33648
|
-
#
|
33649
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33650
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33651
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33652
|
-
def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33653
|
-
command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
|
33654
|
-
command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
|
33655
|
-
command.response_class = Google::Apis::ComputeBeta::TargetTcpProxy
|
33656
|
-
command.params['project'] = project unless project.nil?
|
33657
|
-
command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
|
33658
|
-
command.query['fields'] = fields unless fields.nil?
|
33659
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33660
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
33661
|
-
execute_or_queue_command(command, &block)
|
33662
|
-
end
|
33663
|
-
|
33664
|
-
# Creates a TargetTcpProxy resource in the specified project using the data
|
33665
|
-
# included in the request.
|
33666
|
-
# @param [String] project
|
33667
|
-
# Project ID for this request.
|
33668
|
-
# @param [Google::Apis::ComputeBeta::TargetTcpProxy] target_tcp_proxy_object
|
33669
|
-
# @param [String] request_id
|
33670
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
33671
|
-
# that if you must retry your request, the server will know to ignore the
|
33672
|
-
# request if it has already been completed.
|
33673
|
-
# For example, consider a situation where you make an initial request and the
|
33674
|
-
# request times out. If you make the request again with the same request ID, the
|
33675
|
-
# server can check if original operation with the same request ID was received,
|
33676
|
-
# and if so, will ignore the second request. This prevents clients from
|
33677
|
-
# accidentally creating duplicate commitments.
|
33678
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
33679
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
33680
|
-
# @param [String] fields
|
33681
|
-
# Selector specifying which fields to include in a partial response.
|
33682
|
-
# @param [String] quota_user
|
33683
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
33684
|
-
# characters.
|
33685
|
-
# @param [String] user_ip
|
33686
|
-
# Deprecated. Please use quotaUser instead.
|
33687
|
-
# @param [Google::Apis::RequestOptions] options
|
33688
|
-
# Request-specific options
|
33689
|
-
#
|
33690
|
-
# @yield [result, err] Result & error if block supplied
|
33691
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
33692
|
-
# @yieldparam err [StandardError] error object if request failed
|
33693
|
-
#
|
33694
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
33695
|
-
#
|
33696
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33697
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33698
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33699
|
-
def insert_target_tcp_proxy(project, target_tcp_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33700
|
-
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options)
|
33701
|
-
command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation
|
33702
|
-
command.request_object = target_tcp_proxy_object
|
33703
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
33704
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
33705
|
-
command.params['project'] = project unless project.nil?
|
33706
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
33707
|
-
command.query['fields'] = fields unless fields.nil?
|
33708
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33709
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
33710
|
-
execute_or_queue_command(command, &block)
|
33711
|
-
end
|
33712
|
-
|
33713
|
-
# Retrieves the list of TargetTcpProxy resources available to the specified
|
33714
|
-
# project.
|
33715
|
-
# @param [String] project
|
33716
|
-
# Project ID for this request.
|
33717
|
-
# @param [String] filter
|
33718
|
-
# A filter expression that filters resources listed in the response. The
|
33719
|
-
# expression must specify the field name, a comparison operator, and the value
|
33720
|
-
# that you want to use for filtering. The value must be a string, a number, or a
|
33721
|
-
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
33722
|
-
# For example, if you are filtering Compute Engine instances, you can exclude
|
33723
|
-
# instances named `example-instance` by specifying `name != example-instance`.
|
33724
|
-
# You can also filter nested fields. For example, you could specify `scheduling.
|
33725
|
-
# automaticRestart = false` to include instances only if they are not scheduled
|
33726
|
-
# for automatic restarts. You can use filtering on nested fields to filter based
|
33727
|
-
# on resource labels.
|
33728
|
-
# To filter on multiple expressions, provide each separate expression within
|
33729
|
-
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
33730
|
-
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
33731
|
-
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
33732
|
-
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
33733
|
-
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
33734
|
-
# @param [Fixnum] max_results
|
33735
|
-
# The maximum number of results per page that should be returned. If the number
|
33736
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
33737
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
33738
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
33739
|
-
# @param [String] order_by
|
33740
|
-
# Sorts list results by a certain order. By default, results are returned in
|
33741
|
-
# alphanumerical order based on the resource name.
|
33742
|
-
# You can also sort results in descending order based on the creation timestamp
|
33743
|
-
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
33744
|
-
# creationTimestamp` field in reverse chronological order (newest result first).
|
33745
|
-
# Use this to sort resources like operations so that the newest operation is
|
33746
|
-
# returned first.
|
33747
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
33748
|
-
# @param [String] page_token
|
33749
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
33750
|
-
# by a previous list request to get the next page of results.
|
33751
|
-
# @param [Boolean] return_partial_success
|
33752
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
33753
|
-
# failure. The default value is false.
|
33754
|
-
# @param [String] fields
|
33755
|
-
# Selector specifying which fields to include in a partial response.
|
33756
|
-
# @param [String] quota_user
|
33757
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
33758
|
-
# characters.
|
33759
|
-
# @param [String] user_ip
|
33760
|
-
# Deprecated. Please use quotaUser instead.
|
33761
|
-
# @param [Google::Apis::RequestOptions] options
|
33762
|
-
# Request-specific options
|
33763
|
-
#
|
33764
|
-
# @yield [result, err] Result & error if block supplied
|
33765
|
-
# @yieldparam result [Google::Apis::ComputeBeta::TargetTcpProxyList] parsed result object
|
33766
|
-
# @yieldparam err [StandardError] error object if request failed
|
33767
|
-
#
|
33768
|
-
# @return [Google::Apis::ComputeBeta::TargetTcpProxyList]
|
33769
|
-
#
|
33770
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33771
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33772
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33773
|
-
def list_target_tcp_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33774
|
-
command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options)
|
33775
|
-
command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxyList::Representation
|
33776
|
-
command.response_class = Google::Apis::ComputeBeta::TargetTcpProxyList
|
33777
|
-
command.params['project'] = project unless project.nil?
|
33778
|
-
command.query['filter'] = filter unless filter.nil?
|
33779
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
33780
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
33781
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
33782
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
33783
|
-
command.query['fields'] = fields unless fields.nil?
|
33784
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33785
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
33786
|
-
execute_or_queue_command(command, &block)
|
33787
|
-
end
|
33788
|
-
|
33789
|
-
# Changes the BackendService for TargetTcpProxy.
|
34642
|
+
# Changes the ProxyHeaderType for TargetTcpProxy.
|
33790
34643
|
# @param [String] project
|
33791
34644
|
# Project ID for this request.
|
33792
34645
|
# @param [String] target_tcp_proxy
|
33793
|
-
# Name of the TargetTcpProxy resource whose
|
33794
|
-
# @param [Google::Apis::ComputeBeta::
|
34646
|
+
# Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
|
34647
|
+
# @param [Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest] target_tcp_proxies_set_proxy_header_request_object
|
33795
34648
|
# @param [String] request_id
|
33796
34649
|
# An optional request ID to identify requests. Specify a unique request ID so
|
33797
34650
|
# that if you must retry your request, the server will know to ignore the
|
@@ -33822,10 +34675,10 @@ module Google
|
|
33822
34675
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33823
34676
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33824
34677
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33825
|
-
def
|
33826
|
-
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/
|
33827
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
33828
|
-
command.request_object =
|
34678
|
+
def set_target_tcp_proxy_proxy_header(project, target_tcp_proxy, target_tcp_proxies_set_proxy_header_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34679
|
+
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options)
|
34680
|
+
command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest::Representation
|
34681
|
+
command.request_object = target_tcp_proxies_set_proxy_header_request_object
|
33829
34682
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
33830
34683
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
33831
34684
|
command.params['project'] = project unless project.nil?
|
@@ -33837,23 +34690,12 @@ module Google
|
|
33837
34690
|
execute_or_queue_command(command, &block)
|
33838
34691
|
end
|
33839
34692
|
|
33840
|
-
#
|
34693
|
+
# Returns permissions that a caller has on the specified resource.
|
33841
34694
|
# @param [String] project
|
33842
34695
|
# Project ID for this request.
|
33843
|
-
# @param [String]
|
33844
|
-
# Name of the
|
33845
|
-
# @param [Google::Apis::ComputeBeta::
|
33846
|
-
# @param [String] request_id
|
33847
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
33848
|
-
# that if you must retry your request, the server will know to ignore the
|
33849
|
-
# request if it has already been completed.
|
33850
|
-
# For example, consider a situation where you make an initial request and the
|
33851
|
-
# request times out. If you make the request again with the same request ID, the
|
33852
|
-
# server can check if original operation with the same request ID was received,
|
33853
|
-
# and if so, will ignore the second request. This prevents clients from
|
33854
|
-
# accidentally creating duplicate commitments.
|
33855
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
33856
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
34696
|
+
# @param [String] resource
|
34697
|
+
# Name or id of the resource for this request.
|
34698
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
33857
34699
|
# @param [String] fields
|
33858
34700
|
# Selector specifying which fields to include in a partial response.
|
33859
34701
|
# @param [String] quota_user
|
@@ -33865,23 +34707,22 @@ module Google
|
|
33865
34707
|
# Request-specific options
|
33866
34708
|
#
|
33867
34709
|
# @yield [result, err] Result & error if block supplied
|
33868
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
34710
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
33869
34711
|
# @yieldparam err [StandardError] error object if request failed
|
33870
34712
|
#
|
33871
|
-
# @return [Google::Apis::ComputeBeta::
|
34713
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
33872
34714
|
#
|
33873
34715
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33874
34716
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33875
34717
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33876
|
-
def
|
33877
|
-
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{
|
33878
|
-
command.request_representation = Google::Apis::ComputeBeta::
|
33879
|
-
command.request_object =
|
33880
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
33881
|
-
command.response_class = Google::Apis::ComputeBeta::
|
34718
|
+
def test_target_tcp_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34719
|
+
command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions', options)
|
34720
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
34721
|
+
command.request_object = test_permissions_request_object
|
34722
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
34723
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
33882
34724
|
command.params['project'] = project unless project.nil?
|
33883
|
-
command.params['
|
33884
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
34725
|
+
command.params['resource'] = resource unless resource.nil?
|
33885
34726
|
command.query['fields'] = fields unless fields.nil?
|
33886
34727
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33887
34728
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -35218,6 +36059,48 @@ module Google
|
|
35218
36059
|
execute_or_queue_command(command, &block)
|
35219
36060
|
end
|
35220
36061
|
|
36062
|
+
# Returns permissions that a caller has on the specified resource.
|
36063
|
+
# @param [String] project
|
36064
|
+
# Project ID for this request.
|
36065
|
+
# @param [String] region
|
36066
|
+
# The name of the region for this request.
|
36067
|
+
# @param [String] resource
|
36068
|
+
# Name or id of the resource for this request.
|
36069
|
+
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
36070
|
+
# @param [String] fields
|
36071
|
+
# Selector specifying which fields to include in a partial response.
|
36072
|
+
# @param [String] quota_user
|
36073
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
36074
|
+
# characters.
|
36075
|
+
# @param [String] user_ip
|
36076
|
+
# Deprecated. Please use quotaUser instead.
|
36077
|
+
# @param [Google::Apis::RequestOptions] options
|
36078
|
+
# Request-specific options
|
36079
|
+
#
|
36080
|
+
# @yield [result, err] Result & error if block supplied
|
36081
|
+
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
|
36082
|
+
# @yieldparam err [StandardError] error object if request failed
|
36083
|
+
#
|
36084
|
+
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
|
36085
|
+
#
|
36086
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36087
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36088
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36089
|
+
def test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36090
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
|
36091
|
+
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
|
36092
|
+
command.request_object = test_permissions_request_object
|
36093
|
+
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
|
36094
|
+
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
|
36095
|
+
command.params['project'] = project unless project.nil?
|
36096
|
+
command.params['region'] = region unless region.nil?
|
36097
|
+
command.params['resource'] = resource unless resource.nil?
|
36098
|
+
command.query['fields'] = fields unless fields.nil?
|
36099
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36100
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36101
|
+
execute_or_queue_command(command, &block)
|
36102
|
+
end
|
36103
|
+
|
35221
36104
|
# Retrieves an aggregated list of VPN tunnels.
|
35222
36105
|
# @param [String] project
|
35223
36106
|
# Project ID for this request.
|