google-apis-compute_beta 0.8.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.8.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210316"
25
+ REVISION = "20210525"
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
 
@@ -4018,6 +4024,12 @@ module Google
4018
4024
  include Google::Apis::Core::JsonObjectSupport
4019
4025
  end
4020
4026
 
4027
+ class SecurityPolicyAdvancedOptionsConfig
4028
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4029
+
4030
+ include Google::Apis::Core::JsonObjectSupport
4031
+ end
4032
+
4021
4033
  class SecurityPolicyAssociation
4022
4034
  class Representation < Google::Apis::Core::JsonRepresentation; end
4023
4035
 
@@ -4120,12 +4132,24 @@ module Google
4120
4132
  include Google::Apis::Core::JsonObjectSupport
4121
4133
  end
4122
4134
 
4135
+ class ServiceAttachmentConnectedEndpoint
4136
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4137
+
4138
+ include Google::Apis::Core::JsonObjectSupport
4139
+ end
4140
+
4123
4141
  class ServiceAttachmentConsumerForwardingRule
4124
4142
  class Representation < Google::Apis::Core::JsonRepresentation; end
4125
4143
 
4126
4144
  include Google::Apis::Core::JsonObjectSupport
4127
4145
  end
4128
4146
 
4147
+ class ServiceAttachmentConsumerProjectLimit
4148
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4149
+
4150
+ include Google::Apis::Core::JsonObjectSupport
4151
+ end
4152
+
4129
4153
  class ServiceAttachmentList
4130
4154
  class Representation < Google::Apis::Core::JsonRepresentation; end
4131
4155
 
@@ -4966,6 +4990,12 @@ module Google
4966
4990
  include Google::Apis::Core::JsonObjectSupport
4967
4991
  end
4968
4992
 
4993
+ class Uint128
4994
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4995
+
4996
+ include Google::Apis::Core::JsonObjectSupport
4997
+ end
4998
+
4969
4999
  class UrlMap
4970
5000
  class Representation < Google::Apis::Core::JsonRepresentation; end
4971
5001
 
@@ -5488,6 +5518,8 @@ module Google
5488
5518
  class AccessConfig
5489
5519
  # @private
5490
5520
  class Representation < Google::Apis::Core::JsonRepresentation
5521
+ property :external_ipv6, as: 'externalIpv6'
5522
+ property :external_ipv6_prefix_length, as: 'externalIpv6PrefixLength'
5491
5523
  property :kind, as: 'kind'
5492
5524
  property :name, as: 'name'
5493
5525
  property :nat_ip, as: 'natIP'
@@ -5620,6 +5652,7 @@ module Google
5620
5652
  # @private
5621
5653
  class Representation < Google::Apis::Core::JsonRepresentation
5622
5654
  property :enable_nested_virtualization, as: 'enableNestedVirtualization'
5655
+ property :threads_per_core, as: 'threadsPerCore'
5623
5656
  end
5624
5657
  end
5625
5658
 
@@ -5648,6 +5681,8 @@ module Google
5648
5681
 
5649
5682
  property :location_hint, as: 'locationHint'
5650
5683
  property :machine_type, as: 'machineType'
5684
+ property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours'
5685
+ property :maintenance_interval, as: 'maintenanceInterval'
5651
5686
  property :min_cpu_platform, as: 'minCpuPlatform'
5652
5687
  end
5653
5688
  end
@@ -5962,9 +5997,11 @@ module Google
5962
5997
  property :bucket_name, as: 'bucketName'
5963
5998
  property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicy, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicy::Representation
5964
5999
 
6000
+ property :compression_mode, as: 'compressionMode'
5965
6001
  property :creation_timestamp, as: 'creationTimestamp'
5966
6002
  collection :custom_response_headers, as: 'customResponseHeaders'
5967
6003
  property :description, as: 'description'
6004
+ property :edge_security_policy, as: 'edgeSecurityPolicy'
5968
6005
  property :enable_cdn, as: 'enableCdn'
5969
6006
  property :id, :numeric_string => true, as: 'id'
5970
6007
  property :kind, as: 'kind'
@@ -5978,6 +6015,8 @@ module Google
5978
6015
  class Representation < Google::Apis::Core::JsonRepresentation
5979
6016
  collection :bypass_cache_on_request_headers, as: 'bypassCacheOnRequestHeaders', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyBypassCacheOnRequestHeader, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicyBypassCacheOnRequestHeader::Representation
5980
6017
 
6018
+ property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyCacheKeyPolicy, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicyCacheKeyPolicy::Representation
6019
+
5981
6020
  property :cache_mode, as: 'cacheMode'
5982
6021
  property :client_ttl, as: 'clientTtl'
5983
6022
  property :default_ttl, as: 'defaultTtl'
@@ -5999,6 +6038,14 @@ module Google
5999
6038
  end
6000
6039
  end
6001
6040
 
6041
+ class BackendBucketCdnPolicyCacheKeyPolicy
6042
+ # @private
6043
+ class Representation < Google::Apis::Core::JsonRepresentation
6044
+ collection :include_http_headers, as: 'includeHttpHeaders'
6045
+ collection :query_string_whitelist, as: 'queryStringWhitelist'
6046
+ end
6047
+ end
6048
+
6002
6049
  class BackendBucketCdnPolicyNegativeCachingPolicy
6003
6050
  # @private
6004
6051
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6049,6 +6096,7 @@ module Google
6049
6096
 
6050
6097
  property :circuit_breakers, as: 'circuitBreakers', class: Google::Apis::ComputeBeta::CircuitBreakers, decorator: Google::Apis::ComputeBeta::CircuitBreakers::Representation
6051
6098
 
6099
+ property :compression_mode, as: 'compressionMode'
6052
6100
  property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeBeta::ConnectionDraining, decorator: Google::Apis::ComputeBeta::ConnectionDraining::Representation
6053
6101
 
6054
6102
  property :connection_tracking_policy, as: 'connectionTrackingPolicy', class: Google::Apis::ComputeBeta::BackendServiceConnectionTrackingPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceConnectionTrackingPolicy::Representation
@@ -6059,6 +6107,7 @@ module Google
6059
6107
  collection :custom_request_headers, as: 'customRequestHeaders'
6060
6108
  collection :custom_response_headers, as: 'customResponseHeaders'
6061
6109
  property :description, as: 'description'
6110
+ property :edge_security_policy, as: 'edgeSecurityPolicy'
6062
6111
  property :enable_cdn, as: 'enableCDN'
6063
6112
  property :failover_policy, as: 'failoverPolicy', class: Google::Apis::ComputeBeta::BackendServiceFailoverPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceFailoverPolicy::Representation
6064
6113
 
@@ -6373,6 +6422,8 @@ module Google
6373
6422
  # @private
6374
6423
  class Representation < Google::Apis::Core::JsonRepresentation
6375
6424
  property :include_host, as: 'includeHost'
6425
+ collection :include_http_headers, as: 'includeHttpHeaders'
6426
+ collection :include_named_cookies, as: 'includeNamedCookies'
6376
6427
  property :include_protocol, as: 'includeProtocol'
6377
6428
  property :include_query_string, as: 'includeQueryString'
6378
6429
  collection :query_string_blacklist, as: 'queryStringBlacklist'
@@ -7217,7 +7268,6 @@ module Google
7217
7268
  property :priority, as: 'priority'
7218
7269
  property :rule_tuple_count, as: 'ruleTupleCount'
7219
7270
  collection :target_resources, as: 'targetResources'
7220
- collection :target_secure_labels, as: 'targetSecureLabels'
7221
7271
  collection :target_service_accounts, as: 'targetServiceAccounts'
7222
7272
  end
7223
7273
  end
@@ -7229,7 +7279,6 @@ module Google
7229
7279
  collection :layer4_configs, as: 'layer4Configs', class: Google::Apis::ComputeBeta::FirewallPolicyRuleMatcherLayer4Config, decorator: Google::Apis::ComputeBeta::FirewallPolicyRuleMatcherLayer4Config::Representation
7230
7280
 
7231
7281
  collection :src_ip_ranges, as: 'srcIpRanges'
7232
- collection :src_secure_labels, as: 'srcSecureLabels'
7233
7282
  end
7234
7283
  end
7235
7284
 
@@ -7276,6 +7325,7 @@ module Google
7276
7325
  property :port_range, as: 'portRange'
7277
7326
  collection :ports, as: 'ports'
7278
7327
  property :psc_connection_id, :numeric_string => true, as: 'pscConnectionId'
7328
+ property :psc_connection_status, as: 'pscConnectionStatus'
7279
7329
  property :region, as: 'region'
7280
7330
  property :self_link, as: 'selfLink'
7281
7331
  collection :service_directory_registrations, as: 'serviceDirectoryRegistrations', class: Google::Apis::ComputeBeta::ForwardingRuleServiceDirectoryRegistration, decorator: Google::Apis::ComputeBeta::ForwardingRuleServiceDirectoryRegistration::Representation
@@ -8495,6 +8545,7 @@ module Google
8495
8545
 
8496
8546
  property :min_ready_sec, as: 'minReadySec'
8497
8547
  property :minimal_action, as: 'minimalAction'
8548
+ property :most_disruptive_allowed_action, as: 'mostDisruptiveAllowedAction'
8498
8549
  property :replacement_method, as: 'replacementMethod'
8499
8550
  property :type, as: 'type'
8500
8551
  end
@@ -10196,12 +10247,16 @@ module Google
10196
10247
  collection :alias_ip_ranges, as: 'aliasIpRanges', class: Google::Apis::ComputeBeta::AliasIpRange, decorator: Google::Apis::ComputeBeta::AliasIpRange::Representation
10197
10248
 
10198
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'
10199
10253
  property :ipv6_address, as: 'ipv6Address'
10200
10254
  property :kind, as: 'kind'
10201
10255
  property :name, as: 'name'
10202
10256
  property :network, as: 'network'
10203
10257
  property :network_ip, as: 'networkIP'
10204
10258
  property :nic_type, as: 'nicType'
10259
+ property :stack_type, as: 'stackType'
10205
10260
  property :subnetwork, as: 'subnetwork'
10206
10261
  end
10207
10262
  end
@@ -12792,7 +12847,10 @@ module Google
12792
12847
  # @private
12793
12848
  class Representation < Google::Apis::Core::JsonRepresentation
12794
12849
  property :automatic_restart, as: 'automaticRestart'
12850
+ property :host_error_timeout_seconds, as: 'hostErrorTimeoutSeconds'
12795
12851
  property :location_hint, as: 'locationHint'
12852
+ property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours'
12853
+ property :maintenance_interval, as: 'maintenanceInterval'
12796
12854
  property :min_node_cpus, as: 'minNodeCpus'
12797
12855
  collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeBeta::SchedulingNodeAffinity, decorator: Google::Apis::ComputeBeta::SchedulingNodeAffinity::Representation
12798
12856
 
@@ -12839,6 +12897,8 @@ module Google
12839
12897
  class Representation < Google::Apis::Core::JsonRepresentation
12840
12898
  property :adaptive_protection_config, as: 'adaptiveProtectionConfig', class: Google::Apis::ComputeBeta::SecurityPolicyAdaptiveProtectionConfig, decorator: Google::Apis::ComputeBeta::SecurityPolicyAdaptiveProtectionConfig::Representation
12841
12899
 
12900
+ property :advanced_options_config, as: 'advancedOptionsConfig', class: Google::Apis::ComputeBeta::SecurityPolicyAdvancedOptionsConfig, decorator: Google::Apis::ComputeBeta::SecurityPolicyAdvancedOptionsConfig::Representation
12901
+
12842
12902
  collection :associations, as: 'associations', class: Google::Apis::ComputeBeta::SecurityPolicyAssociation, decorator: Google::Apis::ComputeBeta::SecurityPolicyAssociation::Representation
12843
12903
 
12844
12904
  property :creation_timestamp, as: 'creationTimestamp'
@@ -12876,6 +12936,14 @@ module Google
12876
12936
  end
12877
12937
  end
12878
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
+
12879
12947
  class SecurityPolicyAssociation
12880
12948
  # @private
12881
12949
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13010,19 +13078,28 @@ module Google
13010
13078
  class ServiceAttachment
13011
13079
  # @private
13012
13080
  class Representation < Google::Apis::Core::JsonRepresentation
13081
+ collection :connected_endpoints, as: 'connectedEndpoints', class: Google::Apis::ComputeBeta::ServiceAttachmentConnectedEndpoint, decorator: Google::Apis::ComputeBeta::ServiceAttachmentConnectedEndpoint::Representation
13082
+
13013
13083
  property :connection_preference, as: 'connectionPreference'
13084
+ collection :consumer_accept_lists, as: 'consumerAcceptLists', class: Google::Apis::ComputeBeta::ServiceAttachmentConsumerProjectLimit, decorator: Google::Apis::ComputeBeta::ServiceAttachmentConsumerProjectLimit::Representation
13085
+
13014
13086
  collection :consumer_forwarding_rules, as: 'consumerForwardingRules', class: Google::Apis::ComputeBeta::ServiceAttachmentConsumerForwardingRule, decorator: Google::Apis::ComputeBeta::ServiceAttachmentConsumerForwardingRule::Representation
13015
13087
 
13088
+ collection :consumer_reject_lists, as: 'consumerRejectLists'
13016
13089
  property :creation_timestamp, as: 'creationTimestamp'
13017
13090
  property :description, as: 'description'
13018
13091
  property :enable_proxy_protocol, as: 'enableProxyProtocol'
13092
+ property :fingerprint, :base64 => true, as: 'fingerprint'
13019
13093
  property :id, :numeric_string => true, as: 'id'
13020
13094
  property :kind, as: 'kind'
13021
13095
  property :name, as: 'name'
13022
13096
  collection :nat_subnets, as: 'natSubnets'
13023
13097
  property :producer_forwarding_rule, as: 'producerForwardingRule'
13098
+ property :psc_service_attachment_id, as: 'pscServiceAttachmentId', class: Google::Apis::ComputeBeta::Uint128, decorator: Google::Apis::ComputeBeta::Uint128::Representation
13099
+
13024
13100
  property :region, as: 'region'
13025
13101
  property :self_link, as: 'selfLink'
13102
+ property :target_service, as: 'targetService'
13026
13103
  end
13027
13104
  end
13028
13105
 
@@ -13059,14 +13136,33 @@ module Google
13059
13136
  end
13060
13137
  end
13061
13138
 
13139
+ class ServiceAttachmentConnectedEndpoint
13140
+ # @private
13141
+ class Representation < Google::Apis::Core::JsonRepresentation
13142
+ property :endpoint, as: 'endpoint'
13143
+ property :forwarding_rule, as: 'forwardingRule'
13144
+ property :psc_connection_id, :numeric_string => true, as: 'pscConnectionId'
13145
+ property :status, as: 'status'
13146
+ end
13147
+ end
13148
+
13062
13149
  class ServiceAttachmentConsumerForwardingRule
13063
13150
  # @private
13064
13151
  class Representation < Google::Apis::Core::JsonRepresentation
13065
13152
  property :forwarding_rule, as: 'forwardingRule'
13153
+ property :psc_connection_id, :numeric_string => true, as: 'pscConnectionId'
13066
13154
  property :status, as: 'status'
13067
13155
  end
13068
13156
  end
13069
13157
 
13158
+ class ServiceAttachmentConsumerProjectLimit
13159
+ # @private
13160
+ class Representation < Google::Apis::Core::JsonRepresentation
13161
+ property :connection_limit, as: 'connectionLimit'
13162
+ property :project_id_or_num, as: 'projectIdOrNum'
13163
+ end
13164
+ end
13165
+
13070
13166
  class ServiceAttachmentList
13071
13167
  # @private
13072
13168
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13102,7 +13198,7 @@ module Google
13102
13198
  class ServiceAttachmentsScopedList
13103
13199
  # @private
13104
13200
  class Representation < Google::Apis::Core::JsonRepresentation
13105
- collection :resources, as: 'resources', class: Google::Apis::ComputeBeta::ServiceAttachment, decorator: Google::Apis::ComputeBeta::ServiceAttachment::Representation
13201
+ collection :service_attachments, as: 'serviceAttachments', class: Google::Apis::ComputeBeta::ServiceAttachment, decorator: Google::Apis::ComputeBeta::ServiceAttachment::Representation
13106
13202
 
13107
13203
  property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ServiceAttachmentsScopedList::Warning, decorator: Google::Apis::ComputeBeta::ServiceAttachmentsScopedList::Warning::Representation
13108
13204
 
@@ -13559,10 +13655,12 @@ module Google
13559
13655
  property :creation_timestamp, as: 'creationTimestamp'
13560
13656
  property :description, as: 'description'
13561
13657
  property :enable_flow_logs, as: 'enableFlowLogs'
13658
+ property :external_ipv6_prefix, as: 'externalIpv6Prefix'
13562
13659
  property :fingerprint, :base64 => true, as: 'fingerprint'
13563
13660
  property :gateway_address, as: 'gatewayAddress'
13564
13661
  property :id, :numeric_string => true, as: 'id'
13565
13662
  property :ip_cidr_range, as: 'ipCidrRange'
13663
+ property :ipv6_access_type, as: 'ipv6AccessType'
13566
13664
  property :ipv6_cidr_range, as: 'ipv6CidrRange'
13567
13665
  property :kind, as: 'kind'
13568
13666
  property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::SubnetworkLogConfig, decorator: Google::Apis::ComputeBeta::SubnetworkLogConfig::Representation
@@ -13577,6 +13675,7 @@ module Google
13577
13675
  collection :secondary_ip_ranges, as: 'secondaryIpRanges', class: Google::Apis::ComputeBeta::SubnetworkSecondaryRange, decorator: Google::Apis::ComputeBeta::SubnetworkSecondaryRange::Representation
13578
13676
 
13579
13677
  property :self_link, as: 'selfLink'
13678
+ property :stack_type, as: 'stackType'
13580
13679
  property :state, as: 'state'
13581
13680
  end
13582
13681
  end
@@ -14564,6 +14663,14 @@ module Google
14564
14663
  end
14565
14664
  end
14566
14665
 
14666
+ class Uint128
14667
+ # @private
14668
+ class Representation < Google::Apis::Core::JsonRepresentation
14669
+ property :high, :numeric_string => true, as: 'high'
14670
+ property :low, :numeric_string => true, as: 'low'
14671
+ end
14672
+ end
14673
+
14567
14674
  class UrlMap
14568
14675
  # @private
14569
14676
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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 project.
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.
@@ -29672,6 +29943,63 @@ module Google
29672
29943
  execute_or_queue_command(command, &block)
29673
29944
  end
29674
29945
 
29946
+ # Patches the specified ServiceAttachment resource with the data included in the
29947
+ # request. This method supports PATCH semantics and uses JSON merge patch format
29948
+ # and processing rules.
29949
+ # @param [String] project
29950
+ # Project ID for this request.
29951
+ # @param [String] region
29952
+ # The region scoping this request and should conform to RFC1035.
29953
+ # @param [String] service_attachment
29954
+ # The resource id of the ServiceAttachment to patch. It should conform to
29955
+ # RFC1035 resource name or be a string form on an unsigned long number.
29956
+ # @param [Google::Apis::ComputeBeta::ServiceAttachment] service_attachment_object
29957
+ # @param [String] request_id
29958
+ # An optional request ID to identify requests. Specify a unique request ID so
29959
+ # that if you must retry your request, the server will know to ignore the
29960
+ # request if it has already been completed.
29961
+ # For example, consider a situation where you make an initial request and the
29962
+ # request times out. If you make the request again with the same request ID, the
29963
+ # server can check if original operation with the same request ID was received,
29964
+ # and if so, will ignore the second request. This prevents clients from
29965
+ # accidentally creating duplicate commitments.
29966
+ # The request ID must be a valid UUID with the exception that zero UUID is not
29967
+ # supported (00000000-0000-0000-0000-000000000000).
29968
+ # @param [String] fields
29969
+ # Selector specifying which fields to include in a partial response.
29970
+ # @param [String] quota_user
29971
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29972
+ # characters.
29973
+ # @param [String] user_ip
29974
+ # Deprecated. Please use quotaUser instead.
29975
+ # @param [Google::Apis::RequestOptions] options
29976
+ # Request-specific options
29977
+ #
29978
+ # @yield [result, err] Result & error if block supplied
29979
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
29980
+ # @yieldparam err [StandardError] error object if request failed
29981
+ #
29982
+ # @return [Google::Apis::ComputeBeta::Operation]
29983
+ #
29984
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29985
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29986
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29987
+ 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)
29988
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
29989
+ command.request_representation = Google::Apis::ComputeBeta::ServiceAttachment::Representation
29990
+ command.request_object = service_attachment_object
29991
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
29992
+ command.response_class = Google::Apis::ComputeBeta::Operation
29993
+ command.params['project'] = project unless project.nil?
29994
+ command.params['region'] = region unless region.nil?
29995
+ command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
29996
+ command.query['requestId'] = request_id unless request_id.nil?
29997
+ command.query['fields'] = fields unless fields.nil?
29998
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29999
+ command.query['userIp'] = user_ip unless user_ip.nil?
30000
+ execute_or_queue_command(command, &block)
30001
+ end
30002
+
29675
30003
  # Sets the access control policy on the specified resource. Replaces any
29676
30004
  # existing policy.
29677
30005
  # @param [String] project