google-apis-compute_beta 0.9.0 → 0.14.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 +22 -0
- data/lib/google/apis/compute_beta/classes.rb +303 -111
- data/lib/google/apis/compute_beta/gem_version.rb +3 -3
- data/lib/google/apis/compute_beta/representations.rb +32 -1
- data/lib/google/apis/compute_beta/service.rb +272 -1
- metadata +13 -7
@@ -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.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210525"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -4024,6 +4024,12 @@ module Google
|
|
4024
4024
|
include Google::Apis::Core::JsonObjectSupport
|
4025
4025
|
end
|
4026
4026
|
|
4027
|
+
class SecurityPolicyAdvancedOptionsConfig
|
4028
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4029
|
+
|
4030
|
+
include Google::Apis::Core::JsonObjectSupport
|
4031
|
+
end
|
4032
|
+
|
4027
4033
|
class SecurityPolicyAssociation
|
4028
4034
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4029
4035
|
|
@@ -5512,6 +5518,8 @@ module Google
|
|
5512
5518
|
class AccessConfig
|
5513
5519
|
# @private
|
5514
5520
|
class Representation < Google::Apis::Core::JsonRepresentation
|
5521
|
+
property :external_ipv6, as: 'externalIpv6'
|
5522
|
+
property :external_ipv6_prefix_length, as: 'externalIpv6PrefixLength'
|
5515
5523
|
property :kind, as: 'kind'
|
5516
5524
|
property :name, as: 'name'
|
5517
5525
|
property :nat_ip, as: 'natIP'
|
@@ -5989,9 +5997,11 @@ module Google
|
|
5989
5997
|
property :bucket_name, as: 'bucketName'
|
5990
5998
|
property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicy, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicy::Representation
|
5991
5999
|
|
6000
|
+
property :compression_mode, as: 'compressionMode'
|
5992
6001
|
property :creation_timestamp, as: 'creationTimestamp'
|
5993
6002
|
collection :custom_response_headers, as: 'customResponseHeaders'
|
5994
6003
|
property :description, as: 'description'
|
6004
|
+
property :edge_security_policy, as: 'edgeSecurityPolicy'
|
5995
6005
|
property :enable_cdn, as: 'enableCdn'
|
5996
6006
|
property :id, :numeric_string => true, as: 'id'
|
5997
6007
|
property :kind, as: 'kind'
|
@@ -6086,6 +6096,7 @@ module Google
|
|
6086
6096
|
|
6087
6097
|
property :circuit_breakers, as: 'circuitBreakers', class: Google::Apis::ComputeBeta::CircuitBreakers, decorator: Google::Apis::ComputeBeta::CircuitBreakers::Representation
|
6088
6098
|
|
6099
|
+
property :compression_mode, as: 'compressionMode'
|
6089
6100
|
property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeBeta::ConnectionDraining, decorator: Google::Apis::ComputeBeta::ConnectionDraining::Representation
|
6090
6101
|
|
6091
6102
|
property :connection_tracking_policy, as: 'connectionTrackingPolicy', class: Google::Apis::ComputeBeta::BackendServiceConnectionTrackingPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceConnectionTrackingPolicy::Representation
|
@@ -6096,6 +6107,7 @@ module Google
|
|
6096
6107
|
collection :custom_request_headers, as: 'customRequestHeaders'
|
6097
6108
|
collection :custom_response_headers, as: 'customResponseHeaders'
|
6098
6109
|
property :description, as: 'description'
|
6110
|
+
property :edge_security_policy, as: 'edgeSecurityPolicy'
|
6099
6111
|
property :enable_cdn, as: 'enableCDN'
|
6100
6112
|
property :failover_policy, as: 'failoverPolicy', class: Google::Apis::ComputeBeta::BackendServiceFailoverPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceFailoverPolicy::Representation
|
6101
6113
|
|
@@ -7313,6 +7325,7 @@ module Google
|
|
7313
7325
|
property :port_range, as: 'portRange'
|
7314
7326
|
collection :ports, as: 'ports'
|
7315
7327
|
property :psc_connection_id, :numeric_string => true, as: 'pscConnectionId'
|
7328
|
+
property :psc_connection_status, as: 'pscConnectionStatus'
|
7316
7329
|
property :region, as: 'region'
|
7317
7330
|
property :self_link, as: 'selfLink'
|
7318
7331
|
collection :service_directory_registrations, as: 'serviceDirectoryRegistrations', class: Google::Apis::ComputeBeta::ForwardingRuleServiceDirectoryRegistration, decorator: Google::Apis::ComputeBeta::ForwardingRuleServiceDirectoryRegistration::Representation
|
@@ -10234,12 +10247,16 @@ module Google
|
|
10234
10247
|
collection :alias_ip_ranges, as: 'aliasIpRanges', class: Google::Apis::ComputeBeta::AliasIpRange, decorator: Google::Apis::ComputeBeta::AliasIpRange::Representation
|
10235
10248
|
|
10236
10249
|
property :fingerprint, :base64 => true, as: 'fingerprint'
|
10250
|
+
collection :ipv6_access_configs, as: 'ipv6AccessConfigs', class: Google::Apis::ComputeBeta::AccessConfig, decorator: Google::Apis::ComputeBeta::AccessConfig::Representation
|
10251
|
+
|
10252
|
+
property :ipv6_access_type, as: 'ipv6AccessType'
|
10237
10253
|
property :ipv6_address, as: 'ipv6Address'
|
10238
10254
|
property :kind, as: 'kind'
|
10239
10255
|
property :name, as: 'name'
|
10240
10256
|
property :network, as: 'network'
|
10241
10257
|
property :network_ip, as: 'networkIP'
|
10242
10258
|
property :nic_type, as: 'nicType'
|
10259
|
+
property :stack_type, as: 'stackType'
|
10243
10260
|
property :subnetwork, as: 'subnetwork'
|
10244
10261
|
end
|
10245
10262
|
end
|
@@ -12830,6 +12847,7 @@ module Google
|
|
12830
12847
|
# @private
|
12831
12848
|
class Representation < Google::Apis::Core::JsonRepresentation
|
12832
12849
|
property :automatic_restart, as: 'automaticRestart'
|
12850
|
+
property :host_error_timeout_seconds, as: 'hostErrorTimeoutSeconds'
|
12833
12851
|
property :location_hint, as: 'locationHint'
|
12834
12852
|
property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours'
|
12835
12853
|
property :maintenance_interval, as: 'maintenanceInterval'
|
@@ -12879,6 +12897,8 @@ module Google
|
|
12879
12897
|
class Representation < Google::Apis::Core::JsonRepresentation
|
12880
12898
|
property :adaptive_protection_config, as: 'adaptiveProtectionConfig', class: Google::Apis::ComputeBeta::SecurityPolicyAdaptiveProtectionConfig, decorator: Google::Apis::ComputeBeta::SecurityPolicyAdaptiveProtectionConfig::Representation
|
12881
12899
|
|
12900
|
+
property :advanced_options_config, as: 'advancedOptionsConfig', class: Google::Apis::ComputeBeta::SecurityPolicyAdvancedOptionsConfig, decorator: Google::Apis::ComputeBeta::SecurityPolicyAdvancedOptionsConfig::Representation
|
12901
|
+
|
12882
12902
|
collection :associations, as: 'associations', class: Google::Apis::ComputeBeta::SecurityPolicyAssociation, decorator: Google::Apis::ComputeBeta::SecurityPolicyAssociation::Representation
|
12883
12903
|
|
12884
12904
|
property :creation_timestamp, as: 'creationTimestamp'
|
@@ -12916,6 +12936,14 @@ module Google
|
|
12916
12936
|
end
|
12917
12937
|
end
|
12918
12938
|
|
12939
|
+
class SecurityPolicyAdvancedOptionsConfig
|
12940
|
+
# @private
|
12941
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
12942
|
+
property :json_parsing, as: 'jsonParsing'
|
12943
|
+
property :log_level, as: 'logLevel'
|
12944
|
+
end
|
12945
|
+
end
|
12946
|
+
|
12919
12947
|
class SecurityPolicyAssociation
|
12920
12948
|
# @private
|
12921
12949
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -13170,7 +13198,7 @@ module Google
|
|
13170
13198
|
class ServiceAttachmentsScopedList
|
13171
13199
|
# @private
|
13172
13200
|
class Representation < Google::Apis::Core::JsonRepresentation
|
13173
|
-
collection :
|
13201
|
+
collection :service_attachments, as: 'serviceAttachments', class: Google::Apis::ComputeBeta::ServiceAttachment, decorator: Google::Apis::ComputeBeta::ServiceAttachment::Representation
|
13174
13202
|
|
13175
13203
|
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ServiceAttachmentsScopedList::Warning, decorator: Google::Apis::ComputeBeta::ServiceAttachmentsScopedList::Warning::Representation
|
13176
13204
|
|
@@ -13627,10 +13655,12 @@ module Google
|
|
13627
13655
|
property :creation_timestamp, as: 'creationTimestamp'
|
13628
13656
|
property :description, as: 'description'
|
13629
13657
|
property :enable_flow_logs, as: 'enableFlowLogs'
|
13658
|
+
property :external_ipv6_prefix, as: 'externalIpv6Prefix'
|
13630
13659
|
property :fingerprint, :base64 => true, as: 'fingerprint'
|
13631
13660
|
property :gateway_address, as: 'gatewayAddress'
|
13632
13661
|
property :id, :numeric_string => true, as: 'id'
|
13633
13662
|
property :ip_cidr_range, as: 'ipCidrRange'
|
13663
|
+
property :ipv6_access_type, as: 'ipv6AccessType'
|
13634
13664
|
property :ipv6_cidr_range, as: 'ipv6CidrRange'
|
13635
13665
|
property :kind, as: 'kind'
|
13636
13666
|
property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::SubnetworkLogConfig, decorator: Google::Apis::ComputeBeta::SubnetworkLogConfig::Representation
|
@@ -13645,6 +13675,7 @@ module Google
|
|
13645
13675
|
collection :secondary_ip_ranges, as: 'secondaryIpRanges', class: Google::Apis::ComputeBeta::SubnetworkSecondaryRange, decorator: Google::Apis::ComputeBeta::SubnetworkSecondaryRange::Representation
|
13646
13676
|
|
13647
13677
|
property :self_link, as: 'selfLink'
|
13678
|
+
property :stack_type, as: 'stackType'
|
13648
13679
|
property :state, as: 'state'
|
13649
13680
|
end
|
13650
13681
|
end
|
@@ -1518,6 +1518,58 @@ module Google
|
|
1518
1518
|
execute_or_queue_command(command, &block)
|
1519
1519
|
end
|
1520
1520
|
|
1521
|
+
# Sets the edge security policy for the specified backend bucket.
|
1522
|
+
# @param [String] project
|
1523
|
+
# Project ID for this request.
|
1524
|
+
# @param [String] backend_bucket
|
1525
|
+
# Name of the BackendService resource to which the security policy should be set.
|
1526
|
+
# The name should conform to RFC1035.
|
1527
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
|
1528
|
+
# @param [String] request_id
|
1529
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
1530
|
+
# that if you must retry your request, the server will know to ignore the
|
1531
|
+
# request if it has already been completed.
|
1532
|
+
# For example, consider a situation where you make an initial request and the
|
1533
|
+
# request times out. If you make the request again with the same request ID, the
|
1534
|
+
# server can check if original operation with the same request ID was received,
|
1535
|
+
# and if so, will ignore the second request. This prevents clients from
|
1536
|
+
# accidentally creating duplicate commitments.
|
1537
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
1538
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
1539
|
+
# @param [String] fields
|
1540
|
+
# Selector specifying which fields to include in a partial response.
|
1541
|
+
# @param [String] quota_user
|
1542
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1543
|
+
# characters.
|
1544
|
+
# @param [String] user_ip
|
1545
|
+
# Deprecated. Please use quotaUser instead.
|
1546
|
+
# @param [Google::Apis::RequestOptions] options
|
1547
|
+
# Request-specific options
|
1548
|
+
#
|
1549
|
+
# @yield [result, err] Result & error if block supplied
|
1550
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
1551
|
+
# @yieldparam err [StandardError] error object if request failed
|
1552
|
+
#
|
1553
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
1554
|
+
#
|
1555
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1556
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1557
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1558
|
+
def set_backend_bucket_edge_security_policy(project, backend_bucket, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1559
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy', options)
|
1560
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
|
1561
|
+
command.request_object = security_policy_reference_object
|
1562
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
1563
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
1564
|
+
command.params['project'] = project unless project.nil?
|
1565
|
+
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
|
1566
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1567
|
+
command.query['fields'] = fields unless fields.nil?
|
1568
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1569
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1570
|
+
execute_or_queue_command(command, &block)
|
1571
|
+
end
|
1572
|
+
|
1521
1573
|
# Sets the access control policy on the specified resource. Replaces any
|
1522
1574
|
# existing policy.
|
1523
1575
|
# @param [String] project
|
@@ -1963,6 +2015,46 @@ module Google
|
|
1963
2015
|
execute_or_queue_command(command, &block)
|
1964
2016
|
end
|
1965
2017
|
|
2018
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
2019
|
+
# or resource exists.
|
2020
|
+
# @param [String] project
|
2021
|
+
# Project ID for this request.
|
2022
|
+
# @param [String] resource
|
2023
|
+
# Name or id of the resource for this request.
|
2024
|
+
# @param [Fixnum] options_requested_policy_version
|
2025
|
+
# Requested IAM Policy version.
|
2026
|
+
# @param [String] fields
|
2027
|
+
# Selector specifying which fields to include in a partial response.
|
2028
|
+
# @param [String] quota_user
|
2029
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
2030
|
+
# characters.
|
2031
|
+
# @param [String] user_ip
|
2032
|
+
# Deprecated. Please use quotaUser instead.
|
2033
|
+
# @param [Google::Apis::RequestOptions] options
|
2034
|
+
# Request-specific options
|
2035
|
+
#
|
2036
|
+
# @yield [result, err] Result & error if block supplied
|
2037
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
2038
|
+
# @yieldparam err [StandardError] error object if request failed
|
2039
|
+
#
|
2040
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
2041
|
+
#
|
2042
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2043
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2044
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2045
|
+
def get_backend_service_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2046
|
+
command = make_simple_command(:get, 'projects/{project}/global/backendServices/{resource}/getIamPolicy', options)
|
2047
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
2048
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
2049
|
+
command.params['project'] = project unless project.nil?
|
2050
|
+
command.params['resource'] = resource unless resource.nil?
|
2051
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
2052
|
+
command.query['fields'] = fields unless fields.nil?
|
2053
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2054
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2055
|
+
execute_or_queue_command(command, &block)
|
2056
|
+
end
|
2057
|
+
|
1966
2058
|
# Creates a BackendService resource in the specified project using the data
|
1967
2059
|
# included in the request. For more information, see Backend services overview.
|
1968
2060
|
# @param [String] project
|
@@ -2142,6 +2234,98 @@ module Google
|
|
2142
2234
|
execute_or_queue_command(command, &block)
|
2143
2235
|
end
|
2144
2236
|
|
2237
|
+
# Sets the edge security policy for the specified backend service.
|
2238
|
+
# @param [String] project
|
2239
|
+
# Project ID for this request.
|
2240
|
+
# @param [String] backend_service
|
2241
|
+
# Name of the BackendService resource to which the edge security policy should
|
2242
|
+
# be set. The name should conform to RFC1035.
|
2243
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
|
2244
|
+
# @param [String] request_id
|
2245
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
2246
|
+
# that if you must retry your request, the server will know to ignore the
|
2247
|
+
# request if it has already been completed.
|
2248
|
+
# For example, consider a situation where you make an initial request and the
|
2249
|
+
# request times out. If you make the request again with the same request ID, the
|
2250
|
+
# server can check if original operation with the same request ID was received,
|
2251
|
+
# and if so, will ignore the second request. This prevents clients from
|
2252
|
+
# accidentally creating duplicate commitments.
|
2253
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
2254
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
2255
|
+
# @param [String] fields
|
2256
|
+
# Selector specifying which fields to include in a partial response.
|
2257
|
+
# @param [String] quota_user
|
2258
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
2259
|
+
# characters.
|
2260
|
+
# @param [String] user_ip
|
2261
|
+
# Deprecated. Please use quotaUser instead.
|
2262
|
+
# @param [Google::Apis::RequestOptions] options
|
2263
|
+
# Request-specific options
|
2264
|
+
#
|
2265
|
+
# @yield [result, err] Result & error if block supplied
|
2266
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
2267
|
+
# @yieldparam err [StandardError] error object if request failed
|
2268
|
+
#
|
2269
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
2270
|
+
#
|
2271
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2272
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2273
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2274
|
+
def set_backend_service_edge_security_policy(project, backend_service, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2275
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy', options)
|
2276
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
|
2277
|
+
command.request_object = security_policy_reference_object
|
2278
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
2279
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
2280
|
+
command.params['project'] = project unless project.nil?
|
2281
|
+
command.params['backendService'] = backend_service unless backend_service.nil?
|
2282
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2283
|
+
command.query['fields'] = fields unless fields.nil?
|
2284
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2285
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2286
|
+
execute_or_queue_command(command, &block)
|
2287
|
+
end
|
2288
|
+
|
2289
|
+
# Sets the access control policy on the specified resource. Replaces any
|
2290
|
+
# existing policy.
|
2291
|
+
# @param [String] project
|
2292
|
+
# Project ID for this request.
|
2293
|
+
# @param [String] resource
|
2294
|
+
# Name or id of the resource for this request.
|
2295
|
+
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
2296
|
+
# @param [String] fields
|
2297
|
+
# Selector specifying which fields to include in a partial response.
|
2298
|
+
# @param [String] quota_user
|
2299
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
2300
|
+
# characters.
|
2301
|
+
# @param [String] user_ip
|
2302
|
+
# Deprecated. Please use quotaUser instead.
|
2303
|
+
# @param [Google::Apis::RequestOptions] options
|
2304
|
+
# Request-specific options
|
2305
|
+
#
|
2306
|
+
# @yield [result, err] Result & error if block supplied
|
2307
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
2308
|
+
# @yieldparam err [StandardError] error object if request failed
|
2309
|
+
#
|
2310
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
2311
|
+
#
|
2312
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2313
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2314
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2315
|
+
def set_backend_service_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2316
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendServices/{resource}/setIamPolicy', options)
|
2317
|
+
command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
|
2318
|
+
command.request_object = global_set_policy_request_object
|
2319
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
2320
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
2321
|
+
command.params['project'] = project unless project.nil?
|
2322
|
+
command.params['resource'] = resource unless resource.nil?
|
2323
|
+
command.query['fields'] = fields unless fields.nil?
|
2324
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2325
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2326
|
+
execute_or_queue_command(command, &block)
|
2327
|
+
end
|
2328
|
+
|
2145
2329
|
# Sets the Google Cloud Armor security policy for the specified backend service.
|
2146
2330
|
# For more information, see Google Cloud Armor Overview
|
2147
2331
|
# @param [String] project
|
@@ -3880,7 +4064,8 @@ module Google
|
|
3880
4064
|
execute_or_queue_command(command, &block)
|
3881
4065
|
end
|
3882
4066
|
|
3883
|
-
# Lists all the policies that have been configured for the specified
|
4067
|
+
# Lists all the policies that have been configured for the specified folder or
|
4068
|
+
# organization.
|
3884
4069
|
# @param [String] filter
|
3885
4070
|
# A filter expression that filters resources listed in the response. The
|
3886
4071
|
# expression must specify the field name, a comparison operator, and the value
|
@@ -21022,6 +21207,49 @@ module Google
|
|
21022
21207
|
execute_or_queue_command(command, &block)
|
21023
21208
|
end
|
21024
21209
|
|
21210
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
21211
|
+
# or resource exists.
|
21212
|
+
# @param [String] project
|
21213
|
+
# Project ID for this request.
|
21214
|
+
# @param [String] region
|
21215
|
+
# The name of the region for this request.
|
21216
|
+
# @param [String] resource
|
21217
|
+
# Name or id of the resource for this request.
|
21218
|
+
# @param [Fixnum] options_requested_policy_version
|
21219
|
+
# Requested IAM Policy version.
|
21220
|
+
# @param [String] fields
|
21221
|
+
# Selector specifying which fields to include in a partial response.
|
21222
|
+
# @param [String] quota_user
|
21223
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
21224
|
+
# characters.
|
21225
|
+
# @param [String] user_ip
|
21226
|
+
# Deprecated. Please use quotaUser instead.
|
21227
|
+
# @param [Google::Apis::RequestOptions] options
|
21228
|
+
# Request-specific options
|
21229
|
+
#
|
21230
|
+
# @yield [result, err] Result & error if block supplied
|
21231
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
21232
|
+
# @yieldparam err [StandardError] error object if request failed
|
21233
|
+
#
|
21234
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
21235
|
+
#
|
21236
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21237
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21238
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21239
|
+
def get_region_backend_service_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21240
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy', options)
|
21241
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
21242
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
21243
|
+
command.params['project'] = project unless project.nil?
|
21244
|
+
command.params['region'] = region unless region.nil?
|
21245
|
+
command.params['resource'] = resource unless resource.nil?
|
21246
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
21247
|
+
command.query['fields'] = fields unless fields.nil?
|
21248
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21249
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21250
|
+
execute_or_queue_command(command, &block)
|
21251
|
+
end
|
21252
|
+
|
21025
21253
|
# Creates a regional BackendService resource in the specified project using the
|
21026
21254
|
# data included in the request. For more information, see Backend services
|
21027
21255
|
# overview.
|
@@ -21211,6 +21439,49 @@ module Google
|
|
21211
21439
|
execute_or_queue_command(command, &block)
|
21212
21440
|
end
|
21213
21441
|
|
21442
|
+
# Sets the access control policy on the specified resource. Replaces any
|
21443
|
+
# existing policy.
|
21444
|
+
# @param [String] project
|
21445
|
+
# Project ID for this request.
|
21446
|
+
# @param [String] region
|
21447
|
+
# The name of the region for this request.
|
21448
|
+
# @param [String] resource
|
21449
|
+
# Name or id of the resource for this request.
|
21450
|
+
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
|
21451
|
+
# @param [String] fields
|
21452
|
+
# Selector specifying which fields to include in a partial response.
|
21453
|
+
# @param [String] quota_user
|
21454
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
21455
|
+
# characters.
|
21456
|
+
# @param [String] user_ip
|
21457
|
+
# Deprecated. Please use quotaUser instead.
|
21458
|
+
# @param [Google::Apis::RequestOptions] options
|
21459
|
+
# Request-specific options
|
21460
|
+
#
|
21461
|
+
# @yield [result, err] Result & error if block supplied
|
21462
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
|
21463
|
+
# @yieldparam err [StandardError] error object if request failed
|
21464
|
+
#
|
21465
|
+
# @return [Google::Apis::ComputeBeta::Policy]
|
21466
|
+
#
|
21467
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21468
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21469
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21470
|
+
def set_region_backend_service_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21471
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy', options)
|
21472
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
|
21473
|
+
command.request_object = region_set_policy_request_object
|
21474
|
+
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
|
21475
|
+
command.response_class = Google::Apis::ComputeBeta::Policy
|
21476
|
+
command.params['project'] = project unless project.nil?
|
21477
|
+
command.params['region'] = region unless region.nil?
|
21478
|
+
command.params['resource'] = resource unless resource.nil?
|
21479
|
+
command.query['fields'] = fields unless fields.nil?
|
21480
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21481
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21482
|
+
execute_or_queue_command(command, &block)
|
21483
|
+
end
|
21484
|
+
|
21214
21485
|
# Returns permissions that a caller has on the specified resource.
|
21215
21486
|
# @param [String] project
|
21216
21487
|
# Project ID for this request.
|