google-apis-compute_v1 0.76.0 → 0.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/compute_v1/classes.rb +398 -99
- data/lib/google/apis/compute_v1/gem_version.rb +2 -2
- data/lib/google/apis/compute_v1/representations.rb +106 -0
- data/lib/google/apis/compute_v1/service.rb +220 -0
- metadata +4 -4
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ComputeV1
|
18
18
|
# Version of the google-apis-compute_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.78.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230829"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -562,6 +562,12 @@ module Google
|
|
562
562
|
include Google::Apis::Core::JsonObjectSupport
|
563
563
|
end
|
564
564
|
|
565
|
+
class BulkInsertOperationStatus
|
566
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
567
|
+
|
568
|
+
include Google::Apis::Core::JsonObjectSupport
|
569
|
+
end
|
570
|
+
|
565
571
|
class CacheInvalidationRule
|
566
572
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
567
573
|
|
@@ -2032,6 +2038,12 @@ module Google
|
|
2032
2038
|
include Google::Apis::Core::JsonObjectSupport
|
2033
2039
|
end
|
2034
2040
|
|
2041
|
+
class InstancesBulkInsertOperationMetadata
|
2042
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2043
|
+
|
2044
|
+
include Google::Apis::Core::JsonObjectSupport
|
2045
|
+
end
|
2046
|
+
|
2035
2047
|
class InstancesGetEffectiveFirewallsResponse
|
2036
2048
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2037
2049
|
|
@@ -2098,6 +2110,12 @@ module Google
|
|
2098
2110
|
include Google::Apis::Core::JsonObjectSupport
|
2099
2111
|
end
|
2100
2112
|
|
2113
|
+
class InstancesSetSecurityPolicyRequest
|
2114
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2115
|
+
|
2116
|
+
include Google::Apis::Core::JsonObjectSupport
|
2117
|
+
end
|
2118
|
+
|
2101
2119
|
class InstancesSetServiceAccountRequest
|
2102
2120
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2103
2121
|
|
@@ -4552,6 +4570,18 @@ module Google
|
|
4552
4570
|
include Google::Apis::Core::JsonObjectSupport
|
4553
4571
|
end
|
4554
4572
|
|
4573
|
+
class SecurityPolicyRuleNetworkMatcher
|
4574
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4575
|
+
|
4576
|
+
include Google::Apis::Core::JsonObjectSupport
|
4577
|
+
end
|
4578
|
+
|
4579
|
+
class SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch
|
4580
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4581
|
+
|
4582
|
+
include Google::Apis::Core::JsonObjectSupport
|
4583
|
+
end
|
4584
|
+
|
4555
4585
|
class SecurityPolicyRulePreconfiguredWafConfig
|
4556
4586
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4557
4587
|
|
@@ -4594,6 +4624,12 @@ module Google
|
|
4594
4624
|
include Google::Apis::Core::JsonObjectSupport
|
4595
4625
|
end
|
4596
4626
|
|
4627
|
+
class SecurityPolicyUserDefinedField
|
4628
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4629
|
+
|
4630
|
+
include Google::Apis::Core::JsonObjectSupport
|
4631
|
+
end
|
4632
|
+
|
4597
4633
|
class SecuritySettings
|
4598
4634
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4599
4635
|
|
@@ -6123,6 +6159,7 @@ module Google
|
|
6123
6159
|
property :nat_ip, as: 'natIP'
|
6124
6160
|
property :network_tier, as: 'networkTier'
|
6125
6161
|
property :public_ptr_domain_name, as: 'publicPtrDomainName'
|
6162
|
+
property :security_policy, as: 'securityPolicy'
|
6126
6163
|
property :set_public_ptr, as: 'setPublicPtr'
|
6127
6164
|
property :type, as: 'type'
|
6128
6165
|
end
|
@@ -7060,6 +7097,17 @@ module Google
|
|
7060
7097
|
end
|
7061
7098
|
end
|
7062
7099
|
|
7100
|
+
class BulkInsertOperationStatus
|
7101
|
+
# @private
|
7102
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7103
|
+
property :created_vm_count, as: 'createdVmCount'
|
7104
|
+
property :deleted_vm_count, as: 'deletedVmCount'
|
7105
|
+
property :failed_to_create_vm_count, as: 'failedToCreateVmCount'
|
7106
|
+
property :status, as: 'status'
|
7107
|
+
property :target_vm_count, as: 'targetVmCount'
|
7108
|
+
end
|
7109
|
+
end
|
7110
|
+
|
7063
7111
|
class CacheInvalidationRule
|
7064
7112
|
# @private
|
7065
7113
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -9878,6 +9926,14 @@ module Google
|
|
9878
9926
|
end
|
9879
9927
|
end
|
9880
9928
|
|
9929
|
+
class InstancesBulkInsertOperationMetadata
|
9930
|
+
# @private
|
9931
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9932
|
+
hash :per_location_status, as: 'perLocationStatus', class: Google::Apis::ComputeV1::BulkInsertOperationStatus, decorator: Google::Apis::ComputeV1::BulkInsertOperationStatus::Representation
|
9933
|
+
|
9934
|
+
end
|
9935
|
+
end
|
9936
|
+
|
9881
9937
|
class InstancesGetEffectiveFirewallsResponse
|
9882
9938
|
# @private
|
9883
9939
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -9973,6 +10029,14 @@ module Google
|
|
9973
10029
|
end
|
9974
10030
|
end
|
9975
10031
|
|
10032
|
+
class InstancesSetSecurityPolicyRequest
|
10033
|
+
# @private
|
10034
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
10035
|
+
collection :network_interfaces, as: 'networkInterfaces'
|
10036
|
+
property :security_policy, as: 'securityPolicy'
|
10037
|
+
end
|
10038
|
+
end
|
10039
|
+
|
9976
10040
|
class InstancesSetServiceAccountRequest
|
9977
10041
|
# @private
|
9978
10042
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -12121,6 +12185,8 @@ module Google
|
|
12121
12185
|
property :http_error_status_code, as: 'httpErrorStatusCode'
|
12122
12186
|
property :id, :numeric_string => true, as: 'id'
|
12123
12187
|
property :insert_time, as: 'insertTime'
|
12188
|
+
property :instances_bulk_insert_operation_metadata, as: 'instancesBulkInsertOperationMetadata', class: Google::Apis::ComputeV1::InstancesBulkInsertOperationMetadata, decorator: Google::Apis::ComputeV1::InstancesBulkInsertOperationMetadata::Representation
|
12189
|
+
|
12124
12190
|
property :kind, as: 'kind'
|
12125
12191
|
property :name, as: 'name'
|
12126
12192
|
property :operation_group_id, as: 'operationGroupId'
|
@@ -14352,6 +14418,8 @@ module Google
|
|
14352
14418
|
|
14353
14419
|
property :self_link, as: 'selfLink'
|
14354
14420
|
property :type, as: 'type'
|
14421
|
+
collection :user_defined_fields, as: 'userDefinedFields', class: Google::Apis::ComputeV1::SecurityPolicyUserDefinedField, decorator: Google::Apis::ComputeV1::SecurityPolicyUserDefinedField::Representation
|
14422
|
+
|
14355
14423
|
end
|
14356
14424
|
end
|
14357
14425
|
|
@@ -14463,6 +14531,8 @@ module Google
|
|
14463
14531
|
property :kind, as: 'kind'
|
14464
14532
|
property :match, as: 'match', class: Google::Apis::ComputeV1::SecurityPolicyRuleMatcher, decorator: Google::Apis::ComputeV1::SecurityPolicyRuleMatcher::Representation
|
14465
14533
|
|
14534
|
+
property :network_match, as: 'networkMatch', class: Google::Apis::ComputeV1::SecurityPolicyRuleNetworkMatcher, decorator: Google::Apis::ComputeV1::SecurityPolicyRuleNetworkMatcher::Representation
|
14535
|
+
|
14466
14536
|
property :preconfigured_waf_config, as: 'preconfiguredWafConfig', class: Google::Apis::ComputeV1::SecurityPolicyRulePreconfiguredWafConfig, decorator: Google::Apis::ComputeV1::SecurityPolicyRulePreconfiguredWafConfig::Representation
|
14467
14537
|
|
14468
14538
|
property :preview, as: 'preview'
|
@@ -14508,6 +14578,29 @@ module Google
|
|
14508
14578
|
end
|
14509
14579
|
end
|
14510
14580
|
|
14581
|
+
class SecurityPolicyRuleNetworkMatcher
|
14582
|
+
# @private
|
14583
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
14584
|
+
collection :dest_ip_ranges, as: 'destIpRanges'
|
14585
|
+
collection :dest_ports, as: 'destPorts'
|
14586
|
+
collection :ip_protocols, as: 'ipProtocols'
|
14587
|
+
collection :src_asns, as: 'srcAsns'
|
14588
|
+
collection :src_ip_ranges, as: 'srcIpRanges'
|
14589
|
+
collection :src_ports, as: 'srcPorts'
|
14590
|
+
collection :src_region_codes, as: 'srcRegionCodes'
|
14591
|
+
collection :user_defined_fields, as: 'userDefinedFields', class: Google::Apis::ComputeV1::SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch, decorator: Google::Apis::ComputeV1::SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch::Representation
|
14592
|
+
|
14593
|
+
end
|
14594
|
+
end
|
14595
|
+
|
14596
|
+
class SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch
|
14597
|
+
# @private
|
14598
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
14599
|
+
property :name, as: 'name'
|
14600
|
+
collection :values, as: 'values'
|
14601
|
+
end
|
14602
|
+
end
|
14603
|
+
|
14511
14604
|
class SecurityPolicyRulePreconfiguredWafConfig
|
14512
14605
|
# @private
|
14513
14606
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -14583,6 +14676,17 @@ module Google
|
|
14583
14676
|
end
|
14584
14677
|
end
|
14585
14678
|
|
14679
|
+
class SecurityPolicyUserDefinedField
|
14680
|
+
# @private
|
14681
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
14682
|
+
property :base, as: 'base'
|
14683
|
+
property :mask, as: 'mask'
|
14684
|
+
property :name, as: 'name'
|
14685
|
+
property :offset, as: 'offset'
|
14686
|
+
property :size, as: 'size'
|
14687
|
+
end
|
14688
|
+
end
|
14689
|
+
|
14586
14690
|
class SecuritySettings
|
14587
14691
|
# @private
|
14588
14692
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -15731,6 +15835,7 @@ module Google
|
|
15731
15835
|
property :name, as: 'name'
|
15732
15836
|
property :nat_policy, as: 'natPolicy'
|
15733
15837
|
property :network, as: 'network'
|
15838
|
+
property :security_policy, as: 'securityPolicy'
|
15734
15839
|
property :self_link, as: 'selfLink'
|
15735
15840
|
property :zone, as: 'zone'
|
15736
15841
|
end
|
@@ -15842,6 +15947,7 @@ module Google
|
|
15842
15947
|
property :kind, as: 'kind'
|
15843
15948
|
property :name, as: 'name'
|
15844
15949
|
property :region, as: 'region'
|
15950
|
+
property :security_policy, as: 'securityPolicy'
|
15845
15951
|
property :self_link, as: 'selfLink'
|
15846
15952
|
property :session_affinity, as: 'sessionAffinity'
|
15847
15953
|
end
|
@@ -13106,6 +13106,61 @@ module Google
|
|
13106
13106
|
execute_or_queue_command(command, &block)
|
13107
13107
|
end
|
13108
13108
|
|
13109
|
+
# Sets the Google Cloud Armor security policy for the specified instance. For
|
13110
|
+
# more information, see Google Cloud Armor Overview
|
13111
|
+
# @param [String] project
|
13112
|
+
# Project ID for this request.
|
13113
|
+
# @param [String] zone
|
13114
|
+
# Name of the zone scoping this request.
|
13115
|
+
# @param [String] instance
|
13116
|
+
# Name of the Instance resource to which the security policy should be set. The
|
13117
|
+
# name should conform to RFC1035.
|
13118
|
+
# @param [Google::Apis::ComputeV1::InstancesSetSecurityPolicyRequest] instances_set_security_policy_request_object
|
13119
|
+
# @param [String] request_id
|
13120
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
13121
|
+
# that if you must retry your request, the server will know to ignore the
|
13122
|
+
# request if it has already been completed. For example, consider a situation
|
13123
|
+
# where you make an initial request and the request times out. If you make the
|
13124
|
+
# request again with the same request ID, the server can check if original
|
13125
|
+
# operation with the same request ID was received, and if so, will ignore the
|
13126
|
+
# second request. This prevents clients from accidentally creating duplicate
|
13127
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
13128
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
13129
|
+
# @param [String] fields
|
13130
|
+
# Selector specifying which fields to include in a partial response.
|
13131
|
+
# @param [String] quota_user
|
13132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13134
|
+
# @param [String] user_ip
|
13135
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
13136
|
+
# @param [Google::Apis::RequestOptions] options
|
13137
|
+
# Request-specific options
|
13138
|
+
#
|
13139
|
+
# @yield [result, err] Result & error if block supplied
|
13140
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
13141
|
+
# @yieldparam err [StandardError] error object if request failed
|
13142
|
+
#
|
13143
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
13144
|
+
#
|
13145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13148
|
+
def set_instance_security_policy(project, zone, instance, instances_set_security_policy_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13149
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy', options)
|
13150
|
+
command.request_representation = Google::Apis::ComputeV1::InstancesSetSecurityPolicyRequest::Representation
|
13151
|
+
command.request_object = instances_set_security_policy_request_object
|
13152
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
13153
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
13154
|
+
command.params['project'] = project unless project.nil?
|
13155
|
+
command.params['zone'] = zone unless zone.nil?
|
13156
|
+
command.params['instance'] = instance unless instance.nil?
|
13157
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
13158
|
+
command.query['fields'] = fields unless fields.nil?
|
13159
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13160
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13161
|
+
execute_or_queue_command(command, &block)
|
13162
|
+
end
|
13163
|
+
|
13109
13164
|
# Sets the service account on the instance. For more information, read Changing
|
13110
13165
|
# the service account and access scopes for an instance.
|
13111
13166
|
# @param [String] project
|
@@ -22674,6 +22729,61 @@ module Google
|
|
22674
22729
|
execute_or_queue_command(command, &block)
|
22675
22730
|
end
|
22676
22731
|
|
22732
|
+
# Sets the Google Cloud Armor security policy for the specified backend service.
|
22733
|
+
# For more information, see Google Cloud Armor Overview
|
22734
|
+
# @param [String] project
|
22735
|
+
# Project ID for this request.
|
22736
|
+
# @param [String] region
|
22737
|
+
# Name of the region scoping this request.
|
22738
|
+
# @param [String] backend_service
|
22739
|
+
# Name of the BackendService resource to which the security policy should be set.
|
22740
|
+
# The name should conform to RFC1035.
|
22741
|
+
# @param [Google::Apis::ComputeV1::SecurityPolicyReference] security_policy_reference_object
|
22742
|
+
# @param [String] request_id
|
22743
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
22744
|
+
# that if you must retry your request, the server will know to ignore the
|
22745
|
+
# request if it has already been completed. For example, consider a situation
|
22746
|
+
# where you make an initial request and the request times out. If you make the
|
22747
|
+
# request again with the same request ID, the server can check if original
|
22748
|
+
# operation with the same request ID was received, and if so, will ignore the
|
22749
|
+
# second request. This prevents clients from accidentally creating duplicate
|
22750
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
22751
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
22752
|
+
# @param [String] fields
|
22753
|
+
# Selector specifying which fields to include in a partial response.
|
22754
|
+
# @param [String] quota_user
|
22755
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22756
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22757
|
+
# @param [String] user_ip
|
22758
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
22759
|
+
# @param [Google::Apis::RequestOptions] options
|
22760
|
+
# Request-specific options
|
22761
|
+
#
|
22762
|
+
# @yield [result, err] Result & error if block supplied
|
22763
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
22764
|
+
# @yieldparam err [StandardError] error object if request failed
|
22765
|
+
#
|
22766
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
22767
|
+
#
|
22768
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22769
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22770
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22771
|
+
def set_region_backend_service_security_policy(project, region, backend_service, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
22772
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy', options)
|
22773
|
+
command.request_representation = Google::Apis::ComputeV1::SecurityPolicyReference::Representation
|
22774
|
+
command.request_object = security_policy_reference_object
|
22775
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
22776
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
22777
|
+
command.params['project'] = project unless project.nil?
|
22778
|
+
command.params['region'] = region unless region.nil?
|
22779
|
+
command.params['backendService'] = backend_service unless backend_service.nil?
|
22780
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
22781
|
+
command.query['fields'] = fields unless fields.nil?
|
22782
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22783
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
22784
|
+
execute_or_queue_command(command, &block)
|
22785
|
+
end
|
22786
|
+
|
22677
22787
|
# Updates the specified regional BackendService resource with the data included
|
22678
22788
|
# in the request. For more information, see Backend services overview .
|
22679
22789
|
# @param [String] project
|
@@ -37009,6 +37119,61 @@ module Google
|
|
37009
37119
|
execute_or_queue_command(command, &block)
|
37010
37120
|
end
|
37011
37121
|
|
37122
|
+
# Sets the Google Cloud Armor security policy for the specified target instance.
|
37123
|
+
# For more information, see Google Cloud Armor Overview
|
37124
|
+
# @param [String] project
|
37125
|
+
# Project ID for this request.
|
37126
|
+
# @param [String] zone
|
37127
|
+
# Name of the zone scoping this request.
|
37128
|
+
# @param [String] target_instance
|
37129
|
+
# Name of the TargetInstance resource to which the security policy should be set.
|
37130
|
+
# The name should conform to RFC1035.
|
37131
|
+
# @param [Google::Apis::ComputeV1::SecurityPolicyReference] security_policy_reference_object
|
37132
|
+
# @param [String] request_id
|
37133
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
37134
|
+
# that if you must retry your request, the server will know to ignore the
|
37135
|
+
# request if it has already been completed. For example, consider a situation
|
37136
|
+
# where you make an initial request and the request times out. If you make the
|
37137
|
+
# request again with the same request ID, the server can check if original
|
37138
|
+
# operation with the same request ID was received, and if so, will ignore the
|
37139
|
+
# second request. This prevents clients from accidentally creating duplicate
|
37140
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
37141
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
37142
|
+
# @param [String] fields
|
37143
|
+
# Selector specifying which fields to include in a partial response.
|
37144
|
+
# @param [String] quota_user
|
37145
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37146
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37147
|
+
# @param [String] user_ip
|
37148
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37149
|
+
# @param [Google::Apis::RequestOptions] options
|
37150
|
+
# Request-specific options
|
37151
|
+
#
|
37152
|
+
# @yield [result, err] Result & error if block supplied
|
37153
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
37154
|
+
# @yieldparam err [StandardError] error object if request failed
|
37155
|
+
#
|
37156
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
37157
|
+
#
|
37158
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37159
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37160
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37161
|
+
def set_target_instance_security_policy(project, zone, target_instance, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37162
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy', options)
|
37163
|
+
command.request_representation = Google::Apis::ComputeV1::SecurityPolicyReference::Representation
|
37164
|
+
command.request_object = security_policy_reference_object
|
37165
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
37166
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
37167
|
+
command.params['project'] = project unless project.nil?
|
37168
|
+
command.params['zone'] = zone unless zone.nil?
|
37169
|
+
command.params['targetInstance'] = target_instance unless target_instance.nil?
|
37170
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
37171
|
+
command.query['fields'] = fields unless fields.nil?
|
37172
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37173
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37174
|
+
execute_or_queue_command(command, &block)
|
37175
|
+
end
|
37176
|
+
|
37012
37177
|
# Adds health check URLs to a target pool.
|
37013
37178
|
# @param [String] project
|
37014
37179
|
# Project ID for this request.
|
@@ -37647,6 +37812,61 @@ module Google
|
|
37647
37812
|
execute_or_queue_command(command, &block)
|
37648
37813
|
end
|
37649
37814
|
|
37815
|
+
# Sets the Google Cloud Armor security policy for the specified target pool. For
|
37816
|
+
# more information, see Google Cloud Armor Overview
|
37817
|
+
# @param [String] project
|
37818
|
+
# Project ID for this request.
|
37819
|
+
# @param [String] region
|
37820
|
+
# Name of the region scoping this request.
|
37821
|
+
# @param [String] target_pool
|
37822
|
+
# Name of the TargetPool resource to which the security policy should be set.
|
37823
|
+
# The name should conform to RFC1035.
|
37824
|
+
# @param [Google::Apis::ComputeV1::SecurityPolicyReference] security_policy_reference_object
|
37825
|
+
# @param [String] request_id
|
37826
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
37827
|
+
# that if you must retry your request, the server will know to ignore the
|
37828
|
+
# request if it has already been completed. For example, consider a situation
|
37829
|
+
# where you make an initial request and the request times out. If you make the
|
37830
|
+
# request again with the same request ID, the server can check if original
|
37831
|
+
# operation with the same request ID was received, and if so, will ignore the
|
37832
|
+
# second request. This prevents clients from accidentally creating duplicate
|
37833
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
37834
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
37835
|
+
# @param [String] fields
|
37836
|
+
# Selector specifying which fields to include in a partial response.
|
37837
|
+
# @param [String] quota_user
|
37838
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37839
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37840
|
+
# @param [String] user_ip
|
37841
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37842
|
+
# @param [Google::Apis::RequestOptions] options
|
37843
|
+
# Request-specific options
|
37844
|
+
#
|
37845
|
+
# @yield [result, err] Result & error if block supplied
|
37846
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
37847
|
+
# @yieldparam err [StandardError] error object if request failed
|
37848
|
+
#
|
37849
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
37850
|
+
#
|
37851
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37852
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37853
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37854
|
+
def set_target_pool_security_policy(project, region, target_pool, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37855
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy', options)
|
37856
|
+
command.request_representation = Google::Apis::ComputeV1::SecurityPolicyReference::Representation
|
37857
|
+
command.request_object = security_policy_reference_object
|
37858
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
37859
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
37860
|
+
command.params['project'] = project unless project.nil?
|
37861
|
+
command.params['region'] = region unless region.nil?
|
37862
|
+
command.params['targetPool'] = target_pool unless target_pool.nil?
|
37863
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
37864
|
+
command.query['fields'] = fields unless fields.nil?
|
37865
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37866
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37867
|
+
execute_or_queue_command(command, &block)
|
37868
|
+
end
|
37869
|
+
|
37650
37870
|
# Deletes the specified TargetSslProxy resource.
|
37651
37871
|
# @param [String] project
|
37652
37872
|
# Project ID for this request.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-compute_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.78.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.78.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Compute Engine API V1
|