google-apis-compute_v1 0.48.0 → 0.49.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ca085ef6bce7c80db9c98e2c396ca6581ea20730a831cd5340e88d40452dafb
|
4
|
+
data.tar.gz: b161dd188f5dd52bd2b8114ca4ee9a6ce220ed95936c76b27a36b6e52366fa32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f65ebd456ed8bb2fad8e0eef4fa38692f00143da204031f62ab517808a06b253fe6f500813fc73d1e5e398f7a64f09790c101d302e555b7e98482dcc9b6b6f3
|
7
|
+
data.tar.gz: 61902fda82eecdeeb9cb2d39d4949f1df828d08cc1731086be32bb2a244610b0b2b6bafa0d538c50c87b43e7e1fbdcccca63b487083b38c208538626bc3f03f2
|
data/CHANGELOG.md
CHANGED
@@ -1064,6 +1064,14 @@ module Google
|
|
1064
1064
|
# @return [Fixnum]
|
1065
1065
|
attr_accessor :threads_per_core
|
1066
1066
|
|
1067
|
+
# The number of physical cores to expose to an instance. Multiply by the number
|
1068
|
+
# of threads per core to compute the total number of virtual CPUs to expose to
|
1069
|
+
# the instance. If unset, the number of cores is inferred from the instance's
|
1070
|
+
# nominal CPU count and the underlying platform's SMT width.
|
1071
|
+
# Corresponds to the JSON property `visibleCoreCount`
|
1072
|
+
# @return [Fixnum]
|
1073
|
+
attr_accessor :visible_core_count
|
1074
|
+
|
1067
1075
|
def initialize(**args)
|
1068
1076
|
update!(**args)
|
1069
1077
|
end
|
@@ -1073,6 +1081,7 @@ module Google
|
|
1073
1081
|
@enable_nested_virtualization = args[:enable_nested_virtualization] if args.key?(:enable_nested_virtualization)
|
1074
1082
|
@enable_uefi_networking = args[:enable_uefi_networking] if args.key?(:enable_uefi_networking)
|
1075
1083
|
@threads_per_core = args[:threads_per_core] if args.key?(:threads_per_core)
|
1084
|
+
@visible_core_count = args[:visible_core_count] if args.key?(:visible_core_count)
|
1076
1085
|
end
|
1077
1086
|
end
|
1078
1087
|
|
@@ -1307,10 +1316,9 @@ module Google
|
|
1307
1316
|
attr_accessor :initialize_params
|
1308
1317
|
|
1309
1318
|
# Specifies the disk interface to use for attaching this disk, which is either
|
1310
|
-
# SCSI or NVME.
|
1311
|
-
#
|
1312
|
-
#
|
1313
|
-
# characteristics of SCSI over NVMe, see Local SSD performance.
|
1319
|
+
# SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use
|
1320
|
+
# either NVME or SCSI. In certain configurations, persistent disks can use NVMe.
|
1321
|
+
# For more information, see About persistent disks.
|
1314
1322
|
# Corresponds to the JSON property `interface`
|
1315
1323
|
# @return [String]
|
1316
1324
|
attr_accessor :interface
|
@@ -2602,6 +2610,12 @@ module Google
|
|
2602
2610
|
# @return [Google::Apis::ComputeV1::BackendBucketCdnPolicy]
|
2603
2611
|
attr_accessor :cdn_policy
|
2604
2612
|
|
2613
|
+
# Compress text responses using Brotli or gzip compression, based on the client'
|
2614
|
+
# s Accept-Encoding header.
|
2615
|
+
# Corresponds to the JSON property `compressionMode`
|
2616
|
+
# @return [String]
|
2617
|
+
attr_accessor :compression_mode
|
2618
|
+
|
2605
2619
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
2606
2620
|
# Corresponds to the JSON property `creationTimestamp`
|
2607
2621
|
# @return [String]
|
@@ -2663,6 +2677,7 @@ module Google
|
|
2663
2677
|
def update!(**args)
|
2664
2678
|
@bucket_name = args[:bucket_name] if args.key?(:bucket_name)
|
2665
2679
|
@cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy)
|
2680
|
+
@compression_mode = args[:compression_mode] if args.key?(:compression_mode)
|
2666
2681
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
2667
2682
|
@custom_response_headers = args[:custom_response_headers] if args.key?(:custom_response_headers)
|
2668
2683
|
@description = args[:description] if args.key?(:description)
|
@@ -3067,6 +3082,12 @@ module Google
|
|
3067
3082
|
# @return [Google::Apis::ComputeV1::CircuitBreakers]
|
3068
3083
|
attr_accessor :circuit_breakers
|
3069
3084
|
|
3085
|
+
# Compress text responses using Brotli or gzip compression, based on the client'
|
3086
|
+
# s Accept-Encoding header.
|
3087
|
+
# Corresponds to the JSON property `compressionMode`
|
3088
|
+
# @return [String]
|
3089
|
+
attr_accessor :compression_mode
|
3090
|
+
|
3070
3091
|
# Message containing connection draining configuration.
|
3071
3092
|
# Corresponds to the JSON property `connectionDraining`
|
3072
3093
|
# @return [Google::Apis::ComputeV1::ConnectionDraining]
|
@@ -3346,6 +3367,7 @@ module Google
|
|
3346
3367
|
@backends = args[:backends] if args.key?(:backends)
|
3347
3368
|
@cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy)
|
3348
3369
|
@circuit_breakers = args[:circuit_breakers] if args.key?(:circuit_breakers)
|
3370
|
+
@compression_mode = args[:compression_mode] if args.key?(:compression_mode)
|
3349
3371
|
@connection_draining = args[:connection_draining] if args.key?(:connection_draining)
|
3350
3372
|
@connection_tracking_policy = args[:connection_tracking_policy] if args.key?(:connection_tracking_policy)
|
3351
3373
|
@consistent_hash = args[:consistent_hash] if args.key?(:consistent_hash)
|
@@ -7643,9 +7665,8 @@ module Google
|
|
7643
7665
|
attr_accessor :destination_ranges
|
7644
7666
|
|
7645
7667
|
# Direction of traffic to which this firewall applies, either `INGRESS` or `
|
7646
|
-
# EGRESS`. The default is `INGRESS`. For `
|
7647
|
-
# the
|
7648
|
-
# sourceRanges or sourceTags fields.
|
7668
|
+
# EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot specify
|
7669
|
+
# the sourceTags fields.
|
7649
7670
|
# Corresponds to the JSON property `direction`
|
7650
7671
|
# @return [String]
|
7651
7672
|
attr_accessor :direction
|
@@ -19645,8 +19666,10 @@ module Google
|
|
19645
19666
|
# @return [String]
|
19646
19667
|
attr_accessor :kind
|
19647
19668
|
|
19648
|
-
# Maximum Transmission Unit in bytes. The minimum value for this field is
|
19649
|
-
# and the maximum value is
|
19669
|
+
# Maximum Transmission Unit in bytes. The minimum value for this field is 1300
|
19670
|
+
# and the maximum value is 8896. The suggested value is 1500, which is the
|
19671
|
+
# default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If
|
19672
|
+
# unspecified, the value defaults to 1460.
|
19650
19673
|
# Corresponds to the JSON property `mtu`
|
19651
19674
|
# @return [Fixnum]
|
19652
19675
|
attr_accessor :mtu
|
@@ -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.49.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220823"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -5814,6 +5814,7 @@ module Google
|
|
5814
5814
|
property :enable_nested_virtualization, as: 'enableNestedVirtualization'
|
5815
5815
|
property :enable_uefi_networking, as: 'enableUefiNetworking'
|
5816
5816
|
property :threads_per_core, as: 'threadsPerCore'
|
5817
|
+
property :visible_core_count, as: 'visibleCoreCount'
|
5817
5818
|
end
|
5818
5819
|
end
|
5819
5820
|
|
@@ -6148,6 +6149,7 @@ module Google
|
|
6148
6149
|
property :bucket_name, as: 'bucketName'
|
6149
6150
|
property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeV1::BackendBucketCdnPolicy, decorator: Google::Apis::ComputeV1::BackendBucketCdnPolicy::Representation
|
6150
6151
|
|
6152
|
+
property :compression_mode, as: 'compressionMode'
|
6151
6153
|
property :creation_timestamp, as: 'creationTimestamp'
|
6152
6154
|
collection :custom_response_headers, as: 'customResponseHeaders'
|
6153
6155
|
property :description, as: 'description'
|
@@ -6246,6 +6248,7 @@ module Google
|
|
6246
6248
|
|
6247
6249
|
property :circuit_breakers, as: 'circuitBreakers', class: Google::Apis::ComputeV1::CircuitBreakers, decorator: Google::Apis::ComputeV1::CircuitBreakers::Representation
|
6248
6250
|
|
6251
|
+
property :compression_mode, as: 'compressionMode'
|
6249
6252
|
property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeV1::ConnectionDraining, decorator: Google::Apis::ComputeV1::ConnectionDraining::Representation
|
6250
6253
|
|
6251
6254
|
property :connection_tracking_policy, as: 'connectionTrackingPolicy', class: Google::Apis::ComputeV1::BackendServiceConnectionTrackingPolicy, decorator: Google::Apis::ComputeV1::BackendServiceConnectionTrackingPolicy::Representation
|
@@ -607,6 +607,60 @@ module Google
|
|
607
607
|
execute_or_queue_command(command, &block)
|
608
608
|
end
|
609
609
|
|
610
|
+
# Sets the labels on an Address. To learn more about labels, read the Labeling
|
611
|
+
# Resources documentation.
|
612
|
+
# @param [String] project
|
613
|
+
# Project ID for this request.
|
614
|
+
# @param [String] region
|
615
|
+
# The region for this request.
|
616
|
+
# @param [String] resource
|
617
|
+
# Name or id of the resource for this request.
|
618
|
+
# @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
|
619
|
+
# @param [String] request_id
|
620
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
621
|
+
# that if you must retry your request, the server will know to ignore the
|
622
|
+
# request if it has already been completed. For example, consider a situation
|
623
|
+
# where you make an initial request and the request times out. If you make the
|
624
|
+
# request again with the same request ID, the server can check if original
|
625
|
+
# operation with the same request ID was received, and if so, will ignore the
|
626
|
+
# second request. This prevents clients from accidentally creating duplicate
|
627
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
628
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
629
|
+
# @param [String] fields
|
630
|
+
# Selector specifying which fields to include in a partial response.
|
631
|
+
# @param [String] quota_user
|
632
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
633
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
634
|
+
# @param [String] user_ip
|
635
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
636
|
+
# @param [Google::Apis::RequestOptions] options
|
637
|
+
# Request-specific options
|
638
|
+
#
|
639
|
+
# @yield [result, err] Result & error if block supplied
|
640
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
641
|
+
# @yieldparam err [StandardError] error object if request failed
|
642
|
+
#
|
643
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
644
|
+
#
|
645
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
646
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
647
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
648
|
+
def set_address_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
649
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/addresses/{resource}/setLabels', options)
|
650
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
|
651
|
+
command.request_object = region_set_labels_request_object
|
652
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
653
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
654
|
+
command.params['project'] = project unless project.nil?
|
655
|
+
command.params['region'] = region unless region.nil?
|
656
|
+
command.params['resource'] = resource unless resource.nil?
|
657
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
658
|
+
command.query['fields'] = fields unless fields.nil?
|
659
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
660
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
661
|
+
execute_or_queue_command(command, &block)
|
662
|
+
end
|
663
|
+
|
610
664
|
# Retrieves an aggregated list of autoscalers.
|
611
665
|
# @param [String] project
|
612
666
|
# Project ID for this request.
|
@@ -5303,6 +5357,46 @@ module Google
|
|
5303
5357
|
execute_or_queue_command(command, &block)
|
5304
5358
|
end
|
5305
5359
|
|
5360
|
+
# Sets the labels on a GlobalAddress. To learn more about labels, read the
|
5361
|
+
# Labeling Resources documentation.
|
5362
|
+
# @param [String] project
|
5363
|
+
# Project ID for this request.
|
5364
|
+
# @param [String] resource
|
5365
|
+
# Name or id of the resource for this request.
|
5366
|
+
# @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
|
5367
|
+
# @param [String] fields
|
5368
|
+
# Selector specifying which fields to include in a partial response.
|
5369
|
+
# @param [String] quota_user
|
5370
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5371
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5372
|
+
# @param [String] user_ip
|
5373
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
5374
|
+
# @param [Google::Apis::RequestOptions] options
|
5375
|
+
# Request-specific options
|
5376
|
+
#
|
5377
|
+
# @yield [result, err] Result & error if block supplied
|
5378
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
5379
|
+
# @yieldparam err [StandardError] error object if request failed
|
5380
|
+
#
|
5381
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
5382
|
+
#
|
5383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5386
|
+
def set_global_address_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5387
|
+
command = make_simple_command(:post, 'projects/{project}/global/addresses/{resource}/setLabels', options)
|
5388
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
|
5389
|
+
command.request_object = global_set_labels_request_object
|
5390
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
5391
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
5392
|
+
command.params['project'] = project unless project.nil?
|
5393
|
+
command.params['resource'] = resource unless resource.nil?
|
5394
|
+
command.query['fields'] = fields unless fields.nil?
|
5395
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5396
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5397
|
+
execute_or_queue_command(command, &block)
|
5398
|
+
end
|
5399
|
+
|
5306
5400
|
# Deletes the specified GlobalForwardingRule resource.
|
5307
5401
|
# @param [String] project
|
5308
5402
|
# Project ID for this request.
|
@@ -13560,6 +13654,60 @@ module Google
|
|
13560
13654
|
execute_or_queue_command(command, &block)
|
13561
13655
|
end
|
13562
13656
|
|
13657
|
+
# Sets the labels on an InterconnectAttachment. To learn more about labels, read
|
13658
|
+
# the Labeling Resources documentation.
|
13659
|
+
# @param [String] project
|
13660
|
+
# Project ID for this request.
|
13661
|
+
# @param [String] region
|
13662
|
+
# The region for this request.
|
13663
|
+
# @param [String] resource
|
13664
|
+
# Name or id of the resource for this request.
|
13665
|
+
# @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
|
13666
|
+
# @param [String] request_id
|
13667
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
13668
|
+
# that if you must retry your request, the server will know to ignore the
|
13669
|
+
# request if it has already been completed. For example, consider a situation
|
13670
|
+
# where you make an initial request and the request times out. If you make the
|
13671
|
+
# request again with the same request ID, the server can check if original
|
13672
|
+
# operation with the same request ID was received, and if so, will ignore the
|
13673
|
+
# second request. This prevents clients from accidentally creating duplicate
|
13674
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
13675
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
13676
|
+
# @param [String] fields
|
13677
|
+
# Selector specifying which fields to include in a partial response.
|
13678
|
+
# @param [String] quota_user
|
13679
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13680
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13681
|
+
# @param [String] user_ip
|
13682
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
13683
|
+
# @param [Google::Apis::RequestOptions] options
|
13684
|
+
# Request-specific options
|
13685
|
+
#
|
13686
|
+
# @yield [result, err] Result & error if block supplied
|
13687
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
13688
|
+
# @yieldparam err [StandardError] error object if request failed
|
13689
|
+
#
|
13690
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
13691
|
+
#
|
13692
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13693
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13694
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13695
|
+
def set_interconnect_attachment_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13696
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels', options)
|
13697
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
|
13698
|
+
command.request_object = region_set_labels_request_object
|
13699
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
13700
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
13701
|
+
command.params['project'] = project unless project.nil?
|
13702
|
+
command.params['region'] = region unless region.nil?
|
13703
|
+
command.params['resource'] = resource unless resource.nil?
|
13704
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
13705
|
+
command.query['fields'] = fields unless fields.nil?
|
13706
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13707
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13708
|
+
execute_or_queue_command(command, &block)
|
13709
|
+
end
|
13710
|
+
|
13563
13711
|
# Returns the details for the specified interconnect location. Gets a list of
|
13564
13712
|
# available interconnect locations by making a list() request.
|
13565
13713
|
# @param [String] project
|
@@ -13994,6 +14142,46 @@ module Google
|
|
13994
14142
|
execute_or_queue_command(command, &block)
|
13995
14143
|
end
|
13996
14144
|
|
14145
|
+
# Sets the labels on an Interconnect. To learn more about labels, read the
|
14146
|
+
# Labeling Resources documentation.
|
14147
|
+
# @param [String] project
|
14148
|
+
# Project ID for this request.
|
14149
|
+
# @param [String] resource
|
14150
|
+
# Name or id of the resource for this request.
|
14151
|
+
# @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
|
14152
|
+
# @param [String] fields
|
14153
|
+
# Selector specifying which fields to include in a partial response.
|
14154
|
+
# @param [String] quota_user
|
14155
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
14156
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
14157
|
+
# @param [String] user_ip
|
14158
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
14159
|
+
# @param [Google::Apis::RequestOptions] options
|
14160
|
+
# Request-specific options
|
14161
|
+
#
|
14162
|
+
# @yield [result, err] Result & error if block supplied
|
14163
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
14164
|
+
# @yieldparam err [StandardError] error object if request failed
|
14165
|
+
#
|
14166
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
14167
|
+
#
|
14168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
14169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
14170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
14171
|
+
def set_interconnect_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14172
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnects/{resource}/setLabels', options)
|
14173
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
|
14174
|
+
command.request_object = global_set_labels_request_object
|
14175
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
14176
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
14177
|
+
command.params['project'] = project unless project.nil?
|
14178
|
+
command.params['resource'] = resource unless resource.nil?
|
14179
|
+
command.query['fields'] = fields unless fields.nil?
|
14180
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
14181
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
14182
|
+
execute_or_queue_command(command, &block)
|
14183
|
+
end
|
14184
|
+
|
13997
14185
|
# Return a specified license code. License codes are mirrored across all
|
13998
14186
|
# projects that have permissions to read the License Code. *Caution* This
|
13999
14187
|
# resource is intended for use only by third-party partners who are creating
|
@@ -30590,6 +30778,46 @@ module Google
|
|
30590
30778
|
execute_or_queue_command(command, &block)
|
30591
30779
|
end
|
30592
30780
|
|
30781
|
+
# Sets the labels on a security policy. To learn more about labels, read the
|
30782
|
+
# Labeling Resources documentation.
|
30783
|
+
# @param [String] project
|
30784
|
+
# Project ID for this request.
|
30785
|
+
# @param [String] resource
|
30786
|
+
# Name or id of the resource for this request.
|
30787
|
+
# @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
|
30788
|
+
# @param [String] fields
|
30789
|
+
# Selector specifying which fields to include in a partial response.
|
30790
|
+
# @param [String] quota_user
|
30791
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30792
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30793
|
+
# @param [String] user_ip
|
30794
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30795
|
+
# @param [Google::Apis::RequestOptions] options
|
30796
|
+
# Request-specific options
|
30797
|
+
#
|
30798
|
+
# @yield [result, err] Result & error if block supplied
|
30799
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
30800
|
+
# @yieldparam err [StandardError] error object if request failed
|
30801
|
+
#
|
30802
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
30803
|
+
#
|
30804
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30805
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30806
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30807
|
+
def set_security_policy_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30808
|
+
command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{resource}/setLabels', options)
|
30809
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
|
30810
|
+
command.request_object = global_set_labels_request_object
|
30811
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
30812
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
30813
|
+
command.params['project'] = project unless project.nil?
|
30814
|
+
command.params['resource'] = resource unless resource.nil?
|
30815
|
+
command.query['fields'] = fields unless fields.nil?
|
30816
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30817
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30818
|
+
execute_or_queue_command(command, &block)
|
30819
|
+
end
|
30820
|
+
|
30593
30821
|
# Retrieves the list of all ServiceAttachment resources, regional and global,
|
30594
30822
|
# available to the specified project.
|
30595
30823
|
# @param [String] project
|
@@ -36295,6 +36523,60 @@ module Google
|
|
36295
36523
|
execute_or_queue_command(command, &block)
|
36296
36524
|
end
|
36297
36525
|
|
36526
|
+
# Sets the labels on a TargetVpnGateway. To learn more about labels, read the
|
36527
|
+
# Labeling Resources documentation.
|
36528
|
+
# @param [String] project
|
36529
|
+
# Project ID for this request.
|
36530
|
+
# @param [String] region
|
36531
|
+
# The region for this request.
|
36532
|
+
# @param [String] resource
|
36533
|
+
# Name or id of the resource for this request.
|
36534
|
+
# @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
|
36535
|
+
# @param [String] request_id
|
36536
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
36537
|
+
# that if you must retry your request, the server will know to ignore the
|
36538
|
+
# request if it has already been completed. For example, consider a situation
|
36539
|
+
# where you make an initial request and the request times out. If you make the
|
36540
|
+
# request again with the same request ID, the server can check if original
|
36541
|
+
# operation with the same request ID was received, and if so, will ignore the
|
36542
|
+
# second request. This prevents clients from accidentally creating duplicate
|
36543
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
36544
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36545
|
+
# @param [String] fields
|
36546
|
+
# Selector specifying which fields to include in a partial response.
|
36547
|
+
# @param [String] quota_user
|
36548
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36549
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36550
|
+
# @param [String] user_ip
|
36551
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36552
|
+
# @param [Google::Apis::RequestOptions] options
|
36553
|
+
# Request-specific options
|
36554
|
+
#
|
36555
|
+
# @yield [result, err] Result & error if block supplied
|
36556
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
36557
|
+
# @yieldparam err [StandardError] error object if request failed
|
36558
|
+
#
|
36559
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
36560
|
+
#
|
36561
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36562
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36563
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36564
|
+
def set_target_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36565
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels', options)
|
36566
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
|
36567
|
+
command.request_object = region_set_labels_request_object
|
36568
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
36569
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
36570
|
+
command.params['project'] = project unless project.nil?
|
36571
|
+
command.params['region'] = region unless region.nil?
|
36572
|
+
command.params['resource'] = resource unless resource.nil?
|
36573
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
36574
|
+
command.query['fields'] = fields unless fields.nil?
|
36575
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36576
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36577
|
+
execute_or_queue_command(command, &block)
|
36578
|
+
end
|
36579
|
+
|
36298
36580
|
# Retrieves the list of all UrlMap resources, regional and global, available to
|
36299
36581
|
# the specified project.
|
36300
36582
|
# @param [String] project
|
@@ -37598,6 +37880,60 @@ module Google
|
|
37598
37880
|
execute_or_queue_command(command, &block)
|
37599
37881
|
end
|
37600
37882
|
|
37883
|
+
# Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling
|
37884
|
+
# Resources documentation.
|
37885
|
+
# @param [String] project
|
37886
|
+
# Project ID for this request.
|
37887
|
+
# @param [String] region
|
37888
|
+
# The region for this request.
|
37889
|
+
# @param [String] resource
|
37890
|
+
# Name or id of the resource for this request.
|
37891
|
+
# @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
|
37892
|
+
# @param [String] request_id
|
37893
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
37894
|
+
# that if you must retry your request, the server will know to ignore the
|
37895
|
+
# request if it has already been completed. For example, consider a situation
|
37896
|
+
# where you make an initial request and the request times out. If you make the
|
37897
|
+
# request again with the same request ID, the server can check if original
|
37898
|
+
# operation with the same request ID was received, and if so, will ignore the
|
37899
|
+
# second request. This prevents clients from accidentally creating duplicate
|
37900
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
37901
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
37902
|
+
# @param [String] fields
|
37903
|
+
# Selector specifying which fields to include in a partial response.
|
37904
|
+
# @param [String] quota_user
|
37905
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
37906
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
37907
|
+
# @param [String] user_ip
|
37908
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
37909
|
+
# @param [Google::Apis::RequestOptions] options
|
37910
|
+
# Request-specific options
|
37911
|
+
#
|
37912
|
+
# @yield [result, err] Result & error if block supplied
|
37913
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
37914
|
+
# @yieldparam err [StandardError] error object if request failed
|
37915
|
+
#
|
37916
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
37917
|
+
#
|
37918
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
37919
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
37920
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
37921
|
+
def set_vpn_tunnel_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
37922
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels', options)
|
37923
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
|
37924
|
+
command.request_object = region_set_labels_request_object
|
37925
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
37926
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
37927
|
+
command.params['project'] = project unless project.nil?
|
37928
|
+
command.params['region'] = region unless region.nil?
|
37929
|
+
command.params['resource'] = resource unless resource.nil?
|
37930
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
37931
|
+
command.query['fields'] = fields unless fields.nil?
|
37932
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
37933
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
37934
|
+
execute_or_queue_command(command, &block)
|
37935
|
+
end
|
37936
|
+
|
37601
37937
|
# Deletes the specified zone-specific Operations resource.
|
37602
37938
|
# @param [String] project
|
37603
37939
|
# 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.49.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: 2022-
|
11
|
+
date: 2022-09-05 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.49.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: []
|