google-api-client 0.21.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +19 -0
- data/generated/google/apis/analytics_v3/representations.rb +2 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +872 -162
- data/generated/google/apis/compute_alpha/representations.rb +311 -19
- data/generated/google/apis/compute_alpha/service.rb +516 -60
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +61 -2
- data/generated/google/apis/compute_beta/representations.rb +18 -0
- data/generated/google/apis/compute_beta/service.rb +7 -8
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +199 -1
- data/generated/google/apis/compute_v1/representations.rb +81 -0
- data/generated/google/apis/compute_v1/service.rb +548 -5
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +160 -8
- data/generated/google/apis/sourcerepo_v1/representations.rb +63 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +99 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -1702,6 +1702,30 @@ module Google
|
|
1702
1702
|
include Google::Apis::Core::JsonObjectSupport
|
1703
1703
|
end
|
1704
1704
|
|
1705
|
+
class RegionDiskTypeList
|
1706
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1707
|
+
|
1708
|
+
class Warning
|
1709
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1710
|
+
|
1711
|
+
class Datum
|
1712
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1713
|
+
|
1714
|
+
include Google::Apis::Core::JsonObjectSupport
|
1715
|
+
end
|
1716
|
+
|
1717
|
+
include Google::Apis::Core::JsonObjectSupport
|
1718
|
+
end
|
1719
|
+
|
1720
|
+
include Google::Apis::Core::JsonObjectSupport
|
1721
|
+
end
|
1722
|
+
|
1723
|
+
class RegionDisksResizeRequest
|
1724
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1725
|
+
|
1726
|
+
include Google::Apis::Core::JsonObjectSupport
|
1727
|
+
end
|
1728
|
+
|
1705
1729
|
class RegionInstanceGroupList
|
1706
1730
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1707
1731
|
|
@@ -1822,6 +1846,12 @@ module Google
|
|
1822
1846
|
include Google::Apis::Core::JsonObjectSupport
|
1823
1847
|
end
|
1824
1848
|
|
1849
|
+
class RegionSetLabelsRequest
|
1850
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1851
|
+
|
1852
|
+
include Google::Apis::Core::JsonObjectSupport
|
1853
|
+
end
|
1854
|
+
|
1825
1855
|
class ResourceCommitment
|
1826
1856
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1827
1857
|
|
@@ -3564,6 +3594,8 @@ module Google
|
|
3564
3594
|
collection :licenses, as: 'licenses'
|
3565
3595
|
property :name, as: 'name'
|
3566
3596
|
property :options, as: 'options'
|
3597
|
+
property :region, as: 'region'
|
3598
|
+
collection :replica_zones, as: 'replicaZones'
|
3567
3599
|
property :self_link, as: 'selfLink'
|
3568
3600
|
property :size_gb, :numeric_string => true, as: 'sizeGb'
|
3569
3601
|
property :source_image, as: 'sourceImage'
|
@@ -3664,6 +3696,7 @@ module Google
|
|
3664
3696
|
property :id, :numeric_string => true, as: 'id'
|
3665
3697
|
property :kind, as: 'kind'
|
3666
3698
|
property :name, as: 'name'
|
3699
|
+
property :region, as: 'region'
|
3667
3700
|
property :self_link, as: 'selfLink'
|
3668
3701
|
property :valid_disk_size, as: 'validDiskSize'
|
3669
3702
|
property :zone, as: 'zone'
|
@@ -5875,6 +5908,45 @@ module Google
|
|
5875
5908
|
end
|
5876
5909
|
end
|
5877
5910
|
|
5911
|
+
class RegionDiskTypeList
|
5912
|
+
# @private
|
5913
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5914
|
+
property :id, as: 'id'
|
5915
|
+
collection :items, as: 'items', class: Google::Apis::ComputeV1::DiskType, decorator: Google::Apis::ComputeV1::DiskType::Representation
|
5916
|
+
|
5917
|
+
property :kind, as: 'kind'
|
5918
|
+
property :next_page_token, as: 'nextPageToken'
|
5919
|
+
property :self_link, as: 'selfLink'
|
5920
|
+
property :warning, as: 'warning', class: Google::Apis::ComputeV1::RegionDiskTypeList::Warning, decorator: Google::Apis::ComputeV1::RegionDiskTypeList::Warning::Representation
|
5921
|
+
|
5922
|
+
end
|
5923
|
+
|
5924
|
+
class Warning
|
5925
|
+
# @private
|
5926
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5927
|
+
property :code, as: 'code'
|
5928
|
+
collection :data, as: 'data', class: Google::Apis::ComputeV1::RegionDiskTypeList::Warning::Datum, decorator: Google::Apis::ComputeV1::RegionDiskTypeList::Warning::Datum::Representation
|
5929
|
+
|
5930
|
+
property :message, as: 'message'
|
5931
|
+
end
|
5932
|
+
|
5933
|
+
class Datum
|
5934
|
+
# @private
|
5935
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5936
|
+
property :key, as: 'key'
|
5937
|
+
property :value, as: 'value'
|
5938
|
+
end
|
5939
|
+
end
|
5940
|
+
end
|
5941
|
+
end
|
5942
|
+
|
5943
|
+
class RegionDisksResizeRequest
|
5944
|
+
# @private
|
5945
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5946
|
+
property :size_gb, :numeric_string => true, as: 'sizeGb'
|
5947
|
+
end
|
5948
|
+
end
|
5949
|
+
|
5878
5950
|
class RegionInstanceGroupList
|
5879
5951
|
# @private
|
5880
5952
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6064,6 +6136,14 @@ module Google
|
|
6064
6136
|
end
|
6065
6137
|
end
|
6066
6138
|
|
6139
|
+
class RegionSetLabelsRequest
|
6140
|
+
# @private
|
6141
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6142
|
+
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
6143
|
+
hash :labels, as: 'labels'
|
6144
|
+
end
|
6145
|
+
end
|
6146
|
+
|
6067
6147
|
class ResourceCommitment
|
6068
6148
|
# @private
|
6069
6149
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6588,6 +6668,7 @@ module Google
|
|
6588
6668
|
class Representation < Google::Apis::Core::JsonRepresentation
|
6589
6669
|
property :creation_timestamp, as: 'creationTimestamp'
|
6590
6670
|
property :description, as: 'description'
|
6671
|
+
property :enable_flow_logs, as: 'enableFlowLogs'
|
6591
6672
|
property :fingerprint, :base64 => true, as: 'fingerprint'
|
6592
6673
|
property :gateway_address, as: 'gatewayAddress'
|
6593
6674
|
property :id, :numeric_string => true, as: 'id'
|
@@ -122,8 +122,7 @@ module Google
|
|
122
122
|
execute_or_queue_command(command, &block)
|
123
123
|
end
|
124
124
|
|
125
|
-
# Returns the specified accelerator type.
|
126
|
-
# types by making a list() request.
|
125
|
+
# Returns the specified accelerator type.
|
127
126
|
# @param [String] project
|
128
127
|
# Project ID for this request.
|
129
128
|
# @param [String] zone
|
@@ -6516,6 +6515,9 @@ module Google
|
|
6516
6515
|
# @param [String] instance
|
6517
6516
|
# The instance name for this request.
|
6518
6517
|
# @param [Google::Apis::ComputeV1::AttachedDisk] attached_disk_object
|
6518
|
+
# @param [Boolean] force_attach
|
6519
|
+
# Whether to force attach the disk even if it's currently attached to another
|
6520
|
+
# instance. This is only available for regional disks.
|
6519
6521
|
# @param [String] request_id
|
6520
6522
|
# An optional request ID to identify requests. Specify a unique request ID so
|
6521
6523
|
# that if you must retry your request, the server will know to ignore the
|
@@ -6546,7 +6548,7 @@ module Google
|
|
6546
6548
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6547
6549
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6548
6550
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6549
|
-
def attach_disk(project, zone, instance, attached_disk_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6551
|
+
def attach_disk(project, zone, instance, attached_disk_object = nil, force_attach: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6550
6552
|
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/attachDisk', options)
|
6551
6553
|
command.request_representation = Google::Apis::ComputeV1::AttachedDisk::Representation
|
6552
6554
|
command.request_object = attached_disk_object
|
@@ -6555,6 +6557,7 @@ module Google
|
|
6555
6557
|
command.params['project'] = project unless project.nil?
|
6556
6558
|
command.params['zone'] = zone unless zone.nil?
|
6557
6559
|
command.params['instance'] = instance unless instance.nil?
|
6560
|
+
command.query['forceAttach'] = force_attach unless force_attach.nil?
|
6558
6561
|
command.query['requestId'] = request_id unless request_id.nil?
|
6559
6562
|
command.query['fields'] = fields unless fields.nil?
|
6560
6563
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -8351,7 +8354,7 @@ module Google
|
|
8351
8354
|
execute_or_queue_command(command, &block)
|
8352
8355
|
end
|
8353
8356
|
|
8354
|
-
# Returns the specified interconnect.
|
8357
|
+
# Returns the specified interconnect. Get a list of available interconnects by
|
8355
8358
|
# making a list() request.
|
8356
8359
|
# @param [String] project
|
8357
8360
|
# Project ID for this request.
|
@@ -8771,7 +8774,7 @@ module Google
|
|
8771
8774
|
|
8772
8775
|
# Retrieves the list of licenses available in the specified project. This method
|
8773
8776
|
# does not get any licenses that belong to other projects, including licenses
|
8774
|
-
# attached to publicly-available images, like Debian
|
8777
|
+
# attached to publicly-available images, like Debian 9. If you want to get a
|
8775
8778
|
# list of publicly-available licenses, use this method to make a request to the
|
8776
8779
|
# respective image project, such as debian-cloud or windows-cloud.
|
8777
8780
|
# @param [String] project
|
@@ -10950,6 +10953,546 @@ module Google
|
|
10950
10953
|
execute_or_queue_command(command, &block)
|
10951
10954
|
end
|
10952
10955
|
|
10956
|
+
# Returns the specified regional disk type. Gets a list of available disk types
|
10957
|
+
# by making a list() request.
|
10958
|
+
# @param [String] project
|
10959
|
+
# Project ID for this request.
|
10960
|
+
# @param [String] region
|
10961
|
+
# The name of the region for this request.
|
10962
|
+
# @param [String] disk_type
|
10963
|
+
# Name of the disk type to return.
|
10964
|
+
# @param [String] fields
|
10965
|
+
# Selector specifying which fields to include in a partial response.
|
10966
|
+
# @param [String] quota_user
|
10967
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
10968
|
+
# characters.
|
10969
|
+
# @param [String] user_ip
|
10970
|
+
# Deprecated. Please use quotaUser instead.
|
10971
|
+
# @param [Google::Apis::RequestOptions] options
|
10972
|
+
# Request-specific options
|
10973
|
+
#
|
10974
|
+
# @yield [result, err] Result & error if block supplied
|
10975
|
+
# @yieldparam result [Google::Apis::ComputeV1::DiskType] parsed result object
|
10976
|
+
# @yieldparam err [StandardError] error object if request failed
|
10977
|
+
#
|
10978
|
+
# @return [Google::Apis::ComputeV1::DiskType]
|
10979
|
+
#
|
10980
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10981
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10982
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10983
|
+
def get_region_disk_type(project, region, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
10984
|
+
command = make_simple_command(:get, '{project}/regions/{region}/diskTypes/{diskType}', options)
|
10985
|
+
command.response_representation = Google::Apis::ComputeV1::DiskType::Representation
|
10986
|
+
command.response_class = Google::Apis::ComputeV1::DiskType
|
10987
|
+
command.params['project'] = project unless project.nil?
|
10988
|
+
command.params['region'] = region unless region.nil?
|
10989
|
+
command.params['diskType'] = disk_type unless disk_type.nil?
|
10990
|
+
command.query['fields'] = fields unless fields.nil?
|
10991
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10992
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10993
|
+
execute_or_queue_command(command, &block)
|
10994
|
+
end
|
10995
|
+
|
10996
|
+
# Retrieves a list of regional disk types available to the specified project.
|
10997
|
+
# @param [String] project
|
10998
|
+
# Project ID for this request.
|
10999
|
+
# @param [String] region
|
11000
|
+
# The name of the region for this request.
|
11001
|
+
# @param [String] filter
|
11002
|
+
# A filter expression that filters resources listed in the response. The
|
11003
|
+
# expression must specify the field name, a comparison operator, and the value
|
11004
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
11005
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
11006
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
11007
|
+
# instances named example-instance by specifying name != example-instance.
|
11008
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
11009
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
11010
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
11011
|
+
# on resource labels.
|
11012
|
+
# To filter on multiple expressions, provide each separate expression within
|
11013
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
11014
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
11015
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
11016
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
11017
|
+
# automaticRestart = true).
|
11018
|
+
# @param [Fixnum] max_results
|
11019
|
+
# The maximum number of results per page that should be returned. If the number
|
11020
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
11021
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
11022
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
11023
|
+
# @param [String] order_by
|
11024
|
+
# Sorts list results by a certain order. By default, results are returned in
|
11025
|
+
# alphanumerical order based on the resource name.
|
11026
|
+
# You can also sort results in descending order based on the creation timestamp
|
11027
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
11028
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
11029
|
+
# Use this to sort resources like operations so that the newest operation is
|
11030
|
+
# returned first.
|
11031
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
11032
|
+
# @param [String] page_token
|
11033
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
11034
|
+
# a previous list request to get the next page of results.
|
11035
|
+
# @param [String] fields
|
11036
|
+
# Selector specifying which fields to include in a partial response.
|
11037
|
+
# @param [String] quota_user
|
11038
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11039
|
+
# characters.
|
11040
|
+
# @param [String] user_ip
|
11041
|
+
# Deprecated. Please use quotaUser instead.
|
11042
|
+
# @param [Google::Apis::RequestOptions] options
|
11043
|
+
# Request-specific options
|
11044
|
+
#
|
11045
|
+
# @yield [result, err] Result & error if block supplied
|
11046
|
+
# @yieldparam result [Google::Apis::ComputeV1::RegionDiskTypeList] parsed result object
|
11047
|
+
# @yieldparam err [StandardError] error object if request failed
|
11048
|
+
#
|
11049
|
+
# @return [Google::Apis::ComputeV1::RegionDiskTypeList]
|
11050
|
+
#
|
11051
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11052
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11053
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11054
|
+
def list_region_disk_types(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11055
|
+
command = make_simple_command(:get, '{project}/regions/{region}/diskTypes', options)
|
11056
|
+
command.response_representation = Google::Apis::ComputeV1::RegionDiskTypeList::Representation
|
11057
|
+
command.response_class = Google::Apis::ComputeV1::RegionDiskTypeList
|
11058
|
+
command.params['project'] = project unless project.nil?
|
11059
|
+
command.params['region'] = region unless region.nil?
|
11060
|
+
command.query['filter'] = filter unless filter.nil?
|
11061
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
11062
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
11063
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
11064
|
+
command.query['fields'] = fields unless fields.nil?
|
11065
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11066
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11067
|
+
execute_or_queue_command(command, &block)
|
11068
|
+
end
|
11069
|
+
|
11070
|
+
# Creates a snapshot of this regional disk.
|
11071
|
+
# @param [String] project
|
11072
|
+
# Project ID for this request.
|
11073
|
+
# @param [String] region
|
11074
|
+
# Name of the region for this request.
|
11075
|
+
# @param [String] disk
|
11076
|
+
# Name of the regional persistent disk to snapshot.
|
11077
|
+
# @param [Google::Apis::ComputeV1::Snapshot] snapshot_object
|
11078
|
+
# @param [String] request_id
|
11079
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
11080
|
+
# that if you must retry your request, the server will know to ignore the
|
11081
|
+
# request if it has already been completed.
|
11082
|
+
# For example, consider a situation where you make an initial request and the
|
11083
|
+
# request times out. If you make the request again with the same request ID, the
|
11084
|
+
# server can check if original operation with the same request ID was received,
|
11085
|
+
# and if so, will ignore the second request. This prevents clients from
|
11086
|
+
# accidentally creating duplicate commitments.
|
11087
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
11088
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
11089
|
+
# @param [String] fields
|
11090
|
+
# Selector specifying which fields to include in a partial response.
|
11091
|
+
# @param [String] quota_user
|
11092
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11093
|
+
# characters.
|
11094
|
+
# @param [String] user_ip
|
11095
|
+
# Deprecated. Please use quotaUser instead.
|
11096
|
+
# @param [Google::Apis::RequestOptions] options
|
11097
|
+
# Request-specific options
|
11098
|
+
#
|
11099
|
+
# @yield [result, err] Result & error if block supplied
|
11100
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
11101
|
+
# @yieldparam err [StandardError] error object if request failed
|
11102
|
+
#
|
11103
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
11104
|
+
#
|
11105
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11106
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11107
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11108
|
+
def create_region_disk_snapshot(project, region, disk, snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11109
|
+
command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/createSnapshot', options)
|
11110
|
+
command.request_representation = Google::Apis::ComputeV1::Snapshot::Representation
|
11111
|
+
command.request_object = snapshot_object
|
11112
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
11113
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
11114
|
+
command.params['project'] = project unless project.nil?
|
11115
|
+
command.params['region'] = region unless region.nil?
|
11116
|
+
command.params['disk'] = disk unless disk.nil?
|
11117
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
11118
|
+
command.query['fields'] = fields unless fields.nil?
|
11119
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11120
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11121
|
+
execute_or_queue_command(command, &block)
|
11122
|
+
end
|
11123
|
+
|
11124
|
+
# Deletes the specified regional persistent disk. Deleting a regional disk
|
11125
|
+
# removes all the replicas of its data permanently and is irreversible. However,
|
11126
|
+
# deleting a disk does not delete any snapshots previously made from the disk.
|
11127
|
+
# You must separately delete snapshots.
|
11128
|
+
# @param [String] project
|
11129
|
+
# Project ID for this request.
|
11130
|
+
# @param [String] region
|
11131
|
+
# Name of the region for this request.
|
11132
|
+
# @param [String] disk
|
11133
|
+
# Name of the regional persistent disk to delete.
|
11134
|
+
# @param [String] request_id
|
11135
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
11136
|
+
# that if you must retry your request, the server will know to ignore the
|
11137
|
+
# request if it has already been completed.
|
11138
|
+
# For example, consider a situation where you make an initial request and the
|
11139
|
+
# request times out. If you make the request again with the same request ID, the
|
11140
|
+
# server can check if original operation with the same request ID was received,
|
11141
|
+
# and if so, will ignore the second request. This prevents clients from
|
11142
|
+
# accidentally creating duplicate commitments.
|
11143
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
11144
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
11145
|
+
# @param [String] fields
|
11146
|
+
# Selector specifying which fields to include in a partial response.
|
11147
|
+
# @param [String] quota_user
|
11148
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11149
|
+
# characters.
|
11150
|
+
# @param [String] user_ip
|
11151
|
+
# Deprecated. Please use quotaUser instead.
|
11152
|
+
# @param [Google::Apis::RequestOptions] options
|
11153
|
+
# Request-specific options
|
11154
|
+
#
|
11155
|
+
# @yield [result, err] Result & error if block supplied
|
11156
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
11157
|
+
# @yieldparam err [StandardError] error object if request failed
|
11158
|
+
#
|
11159
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
11160
|
+
#
|
11161
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11162
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11163
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11164
|
+
def delete_region_disk(project, region, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11165
|
+
command = make_simple_command(:delete, '{project}/regions/{region}/disks/{disk}', options)
|
11166
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
11167
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
11168
|
+
command.params['project'] = project unless project.nil?
|
11169
|
+
command.params['region'] = region unless region.nil?
|
11170
|
+
command.params['disk'] = disk unless disk.nil?
|
11171
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
11172
|
+
command.query['fields'] = fields unless fields.nil?
|
11173
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11174
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11175
|
+
execute_or_queue_command(command, &block)
|
11176
|
+
end
|
11177
|
+
|
11178
|
+
# Returns a specified regional persistent disk.
|
11179
|
+
# @param [String] project
|
11180
|
+
# Project ID for this request.
|
11181
|
+
# @param [String] region
|
11182
|
+
# Name of the region for this request.
|
11183
|
+
# @param [String] disk
|
11184
|
+
# Name of the regional persistent disk to return.
|
11185
|
+
# @param [String] fields
|
11186
|
+
# Selector specifying which fields to include in a partial response.
|
11187
|
+
# @param [String] quota_user
|
11188
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11189
|
+
# characters.
|
11190
|
+
# @param [String] user_ip
|
11191
|
+
# Deprecated. Please use quotaUser instead.
|
11192
|
+
# @param [Google::Apis::RequestOptions] options
|
11193
|
+
# Request-specific options
|
11194
|
+
#
|
11195
|
+
# @yield [result, err] Result & error if block supplied
|
11196
|
+
# @yieldparam result [Google::Apis::ComputeV1::Disk] parsed result object
|
11197
|
+
# @yieldparam err [StandardError] error object if request failed
|
11198
|
+
#
|
11199
|
+
# @return [Google::Apis::ComputeV1::Disk]
|
11200
|
+
#
|
11201
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11202
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11203
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11204
|
+
def get_region_disk(project, region, disk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11205
|
+
command = make_simple_command(:get, '{project}/regions/{region}/disks/{disk}', options)
|
11206
|
+
command.response_representation = Google::Apis::ComputeV1::Disk::Representation
|
11207
|
+
command.response_class = Google::Apis::ComputeV1::Disk
|
11208
|
+
command.params['project'] = project unless project.nil?
|
11209
|
+
command.params['region'] = region unless region.nil?
|
11210
|
+
command.params['disk'] = disk unless disk.nil?
|
11211
|
+
command.query['fields'] = fields unless fields.nil?
|
11212
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11213
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11214
|
+
execute_or_queue_command(command, &block)
|
11215
|
+
end
|
11216
|
+
|
11217
|
+
# Creates a persistent regional disk in the specified project using the data
|
11218
|
+
# included in the request.
|
11219
|
+
# @param [String] project
|
11220
|
+
# Project ID for this request.
|
11221
|
+
# @param [String] region
|
11222
|
+
# Name of the region for this request.
|
11223
|
+
# @param [Google::Apis::ComputeV1::Disk] disk_object
|
11224
|
+
# @param [String] request_id
|
11225
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
11226
|
+
# that if you must retry your request, the server will know to ignore the
|
11227
|
+
# request if it has already been completed.
|
11228
|
+
# For example, consider a situation where you make an initial request and the
|
11229
|
+
# request times out. If you make the request again with the same request ID, the
|
11230
|
+
# server can check if original operation with the same request ID was received,
|
11231
|
+
# and if so, will ignore the second request. This prevents clients from
|
11232
|
+
# accidentally creating duplicate commitments.
|
11233
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
11234
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
11235
|
+
# @param [String] source_image
|
11236
|
+
# Optional. Source image to restore onto a disk.
|
11237
|
+
# @param [String] fields
|
11238
|
+
# Selector specifying which fields to include in a partial response.
|
11239
|
+
# @param [String] quota_user
|
11240
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11241
|
+
# characters.
|
11242
|
+
# @param [String] user_ip
|
11243
|
+
# Deprecated. Please use quotaUser instead.
|
11244
|
+
# @param [Google::Apis::RequestOptions] options
|
11245
|
+
# Request-specific options
|
11246
|
+
#
|
11247
|
+
# @yield [result, err] Result & error if block supplied
|
11248
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
11249
|
+
# @yieldparam err [StandardError] error object if request failed
|
11250
|
+
#
|
11251
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
11252
|
+
#
|
11253
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11254
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11255
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11256
|
+
def insert_region_disk(project, region, disk_object = nil, request_id: nil, source_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11257
|
+
command = make_simple_command(:post, '{project}/regions/{region}/disks', options)
|
11258
|
+
command.request_representation = Google::Apis::ComputeV1::Disk::Representation
|
11259
|
+
command.request_object = disk_object
|
11260
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
11261
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
11262
|
+
command.params['project'] = project unless project.nil?
|
11263
|
+
command.params['region'] = region unless region.nil?
|
11264
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
11265
|
+
command.query['sourceImage'] = source_image unless source_image.nil?
|
11266
|
+
command.query['fields'] = fields unless fields.nil?
|
11267
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11268
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11269
|
+
execute_or_queue_command(command, &block)
|
11270
|
+
end
|
11271
|
+
|
11272
|
+
# Retrieves the list of persistent disks contained within the specified region.
|
11273
|
+
# @param [String] project
|
11274
|
+
# Project ID for this request.
|
11275
|
+
# @param [String] region
|
11276
|
+
# Name of the region for this request.
|
11277
|
+
# @param [String] filter
|
11278
|
+
# A filter expression that filters resources listed in the response. The
|
11279
|
+
# expression must specify the field name, a comparison operator, and the value
|
11280
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
11281
|
+
# boolean. The comparison operator must be either =, !=, >, or <.
|
11282
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
11283
|
+
# instances named example-instance by specifying name != example-instance.
|
11284
|
+
# You can also filter nested fields. For example, you could specify scheduling.
|
11285
|
+
# automaticRestart = false to include instances only if they are not scheduled
|
11286
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
11287
|
+
# on resource labels.
|
11288
|
+
# To filter on multiple expressions, provide each separate expression within
|
11289
|
+
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
11290
|
+
# Intel Skylake"). By default, each expression is an AND expression. However,
|
11291
|
+
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
11292
|
+
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
11293
|
+
# automaticRestart = true).
|
11294
|
+
# @param [Fixnum] max_results
|
11295
|
+
# The maximum number of results per page that should be returned. If the number
|
11296
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
11297
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
11298
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
11299
|
+
# @param [String] order_by
|
11300
|
+
# Sorts list results by a certain order. By default, results are returned in
|
11301
|
+
# alphanumerical order based on the resource name.
|
11302
|
+
# You can also sort results in descending order based on the creation timestamp
|
11303
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
11304
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
11305
|
+
# Use this to sort resources like operations so that the newest operation is
|
11306
|
+
# returned first.
|
11307
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
11308
|
+
# @param [String] page_token
|
11309
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
11310
|
+
# a previous list request to get the next page of results.
|
11311
|
+
# @param [String] fields
|
11312
|
+
# Selector specifying which fields to include in a partial response.
|
11313
|
+
# @param [String] quota_user
|
11314
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11315
|
+
# characters.
|
11316
|
+
# @param [String] user_ip
|
11317
|
+
# Deprecated. Please use quotaUser instead.
|
11318
|
+
# @param [Google::Apis::RequestOptions] options
|
11319
|
+
# Request-specific options
|
11320
|
+
#
|
11321
|
+
# @yield [result, err] Result & error if block supplied
|
11322
|
+
# @yieldparam result [Google::Apis::ComputeV1::DiskList] parsed result object
|
11323
|
+
# @yieldparam err [StandardError] error object if request failed
|
11324
|
+
#
|
11325
|
+
# @return [Google::Apis::ComputeV1::DiskList]
|
11326
|
+
#
|
11327
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11328
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11329
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11330
|
+
def list_region_disks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11331
|
+
command = make_simple_command(:get, '{project}/regions/{region}/disks', options)
|
11332
|
+
command.response_representation = Google::Apis::ComputeV1::DiskList::Representation
|
11333
|
+
command.response_class = Google::Apis::ComputeV1::DiskList
|
11334
|
+
command.params['project'] = project unless project.nil?
|
11335
|
+
command.params['region'] = region unless region.nil?
|
11336
|
+
command.query['filter'] = filter unless filter.nil?
|
11337
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
11338
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
11339
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
11340
|
+
command.query['fields'] = fields unless fields.nil?
|
11341
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11342
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11343
|
+
execute_or_queue_command(command, &block)
|
11344
|
+
end
|
11345
|
+
|
11346
|
+
# Resizes the specified regional persistent disk.
|
11347
|
+
# @param [String] project
|
11348
|
+
# The project ID for this request.
|
11349
|
+
# @param [String] region
|
11350
|
+
# Name of the region for this request.
|
11351
|
+
# @param [String] disk
|
11352
|
+
# Name of the regional persistent disk.
|
11353
|
+
# @param [Google::Apis::ComputeV1::RegionDisksResizeRequest] region_disks_resize_request_object
|
11354
|
+
# @param [String] request_id
|
11355
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
11356
|
+
# that if you must retry your request, the server will know to ignore the
|
11357
|
+
# request if it has already been completed.
|
11358
|
+
# For example, consider a situation where you make an initial request and the
|
11359
|
+
# request times out. If you make the request again with the same request ID, the
|
11360
|
+
# server can check if original operation with the same request ID was received,
|
11361
|
+
# and if so, will ignore the second request. This prevents clients from
|
11362
|
+
# accidentally creating duplicate commitments.
|
11363
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
11364
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
11365
|
+
# @param [String] fields
|
11366
|
+
# Selector specifying which fields to include in a partial response.
|
11367
|
+
# @param [String] quota_user
|
11368
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11369
|
+
# characters.
|
11370
|
+
# @param [String] user_ip
|
11371
|
+
# Deprecated. Please use quotaUser instead.
|
11372
|
+
# @param [Google::Apis::RequestOptions] options
|
11373
|
+
# Request-specific options
|
11374
|
+
#
|
11375
|
+
# @yield [result, err] Result & error if block supplied
|
11376
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
11377
|
+
# @yieldparam err [StandardError] error object if request failed
|
11378
|
+
#
|
11379
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
11380
|
+
#
|
11381
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11382
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11383
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11384
|
+
def resize_region_disk(project, region, disk, region_disks_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11385
|
+
command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/resize', options)
|
11386
|
+
command.request_representation = Google::Apis::ComputeV1::RegionDisksResizeRequest::Representation
|
11387
|
+
command.request_object = region_disks_resize_request_object
|
11388
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
11389
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
11390
|
+
command.params['project'] = project unless project.nil?
|
11391
|
+
command.params['region'] = region unless region.nil?
|
11392
|
+
command.params['disk'] = disk unless disk.nil?
|
11393
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
11394
|
+
command.query['fields'] = fields unless fields.nil?
|
11395
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11396
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11397
|
+
execute_or_queue_command(command, &block)
|
11398
|
+
end
|
11399
|
+
|
11400
|
+
# Sets the labels on the target regional disk.
|
11401
|
+
# @param [String] project
|
11402
|
+
# Project ID for this request.
|
11403
|
+
# @param [String] region
|
11404
|
+
# The region for this request.
|
11405
|
+
# @param [String] resource
|
11406
|
+
# Name of the resource for this request.
|
11407
|
+
# @param [Google::Apis::ComputeV1::RegionSetLabelsRequest] region_set_labels_request_object
|
11408
|
+
# @param [String] request_id
|
11409
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
11410
|
+
# that if you must retry your request, the server will know to ignore the
|
11411
|
+
# request if it has already been completed.
|
11412
|
+
# For example, consider a situation where you make an initial request and the
|
11413
|
+
# request times out. If you make the request again with the same request ID, the
|
11414
|
+
# server can check if original operation with the same request ID was received,
|
11415
|
+
# and if so, will ignore the second request. This prevents clients from
|
11416
|
+
# accidentally creating duplicate commitments.
|
11417
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
11418
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
11419
|
+
# @param [String] fields
|
11420
|
+
# Selector specifying which fields to include in a partial response.
|
11421
|
+
# @param [String] quota_user
|
11422
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11423
|
+
# characters.
|
11424
|
+
# @param [String] user_ip
|
11425
|
+
# Deprecated. Please use quotaUser instead.
|
11426
|
+
# @param [Google::Apis::RequestOptions] options
|
11427
|
+
# Request-specific options
|
11428
|
+
#
|
11429
|
+
# @yield [result, err] Result & error if block supplied
|
11430
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
11431
|
+
# @yieldparam err [StandardError] error object if request failed
|
11432
|
+
#
|
11433
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
11434
|
+
#
|
11435
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11436
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11437
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11438
|
+
def set_region_disk_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11439
|
+
command = make_simple_command(:post, '{project}/regions/{region}/disks/{resource}/setLabels', options)
|
11440
|
+
command.request_representation = Google::Apis::ComputeV1::RegionSetLabelsRequest::Representation
|
11441
|
+
command.request_object = region_set_labels_request_object
|
11442
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
11443
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
11444
|
+
command.params['project'] = project unless project.nil?
|
11445
|
+
command.params['region'] = region unless region.nil?
|
11446
|
+
command.params['resource'] = resource unless resource.nil?
|
11447
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
11448
|
+
command.query['fields'] = fields unless fields.nil?
|
11449
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11450
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11451
|
+
execute_or_queue_command(command, &block)
|
11452
|
+
end
|
11453
|
+
|
11454
|
+
# Returns permissions that a caller has on the specified resource.
|
11455
|
+
# @param [String] project
|
11456
|
+
# Project ID for this request.
|
11457
|
+
# @param [String] region
|
11458
|
+
# The name of the region for this request.
|
11459
|
+
# @param [String] resource
|
11460
|
+
# Name of the resource for this request.
|
11461
|
+
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
11462
|
+
# @param [String] fields
|
11463
|
+
# Selector specifying which fields to include in a partial response.
|
11464
|
+
# @param [String] quota_user
|
11465
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
11466
|
+
# characters.
|
11467
|
+
# @param [String] user_ip
|
11468
|
+
# Deprecated. Please use quotaUser instead.
|
11469
|
+
# @param [Google::Apis::RequestOptions] options
|
11470
|
+
# Request-specific options
|
11471
|
+
#
|
11472
|
+
# @yield [result, err] Result & error if block supplied
|
11473
|
+
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
11474
|
+
# @yieldparam err [StandardError] error object if request failed
|
11475
|
+
#
|
11476
|
+
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
11477
|
+
#
|
11478
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
11479
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
11480
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
11481
|
+
def test_region_disk_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
11482
|
+
command = make_simple_command(:post, '{project}/regions/{region}/disks/{resource}/testIamPermissions', options)
|
11483
|
+
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
11484
|
+
command.request_object = test_permissions_request_object
|
11485
|
+
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
11486
|
+
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
11487
|
+
command.params['project'] = project unless project.nil?
|
11488
|
+
command.params['region'] = region unless region.nil?
|
11489
|
+
command.params['resource'] = resource unless resource.nil?
|
11490
|
+
command.query['fields'] = fields unless fields.nil?
|
11491
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
11492
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
11493
|
+
execute_or_queue_command(command, &block)
|
11494
|
+
end
|
11495
|
+
|
10953
11496
|
# Schedules a group action to remove the specified instances from the managed
|
10954
11497
|
# instance group. Abandoning an instance does not delete the instance, but it
|
10955
11498
|
# does remove the instance from any target pools that are applied by the managed
|