google-api-client 0.28.0 → 0.28.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 +38 -0
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +4 -5
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +13 -1
- data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +3 -2
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -33
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +1 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +1 -0
- data/generated/google/apis/appsmarket_v2.rb +3 -3
- data/generated/google/apis/appsmarket_v2/service.rb +2 -2
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +48 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +17 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +6 -0
- data/generated/google/apis/books_v1/representations.rb +1 -0
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/service.rb +12 -12
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +698 -240
- data/generated/google/apis/compute_alpha/representations.rb +185 -63
- data/generated/google/apis/compute_alpha/service.rb +286 -2
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +195 -148
- data/generated/google/apis/compute_beta/representations.rb +80 -62
- data/generated/google/apis/compute_beta/service.rb +85 -2
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +209 -17
- data/generated/google/apis/compute_v1/representations.rb +70 -0
- data/generated/google/apis/compute_v1/service.rb +2 -2
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +78 -0
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +33 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +9 -6
- data/generated/google/apis/content_v2/service.rb +1 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +12 -213
- data/generated/google/apis/content_v2_1/representations.rb +2 -117
- data/generated/google/apis/content_v2_1/service.rb +1 -161
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +39 -29
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +39 -29
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/file_v1.rb +34 -0
- data/generated/google/apis/file_v1/classes.rb +576 -0
- data/generated/google/apis/file_v1/representations.rb +219 -0
- data/generated/google/apis/file_v1/service.rb +472 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +6 -2
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +3 -3
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/service.rb +33 -33
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/service.rb +4 -2
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +2 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/service.rb +40 -40
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/classes.rb +12 -0
- data/generated/google/apis/texttospeech_v1/representations.rb +1 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
@@ -0,0 +1,219 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module FileV1
|
24
|
+
|
25
|
+
class CancelOperationRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Empty
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class FileShareConfig
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Instance
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class ListInstancesResponse
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ListLocationsResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class ListOperationsResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Location
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class NetworkConfig
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class Operation
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class OperationMetadata
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class Status
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class CancelOperationRequest
|
98
|
+
# @private
|
99
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
class Empty
|
104
|
+
# @private
|
105
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
class FileShareConfig
|
110
|
+
# @private
|
111
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
112
|
+
property :capacity_gb, :numeric_string => true, as: 'capacityGb'
|
113
|
+
property :name, as: 'name'
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
class Instance
|
118
|
+
# @private
|
119
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
120
|
+
property :create_time, as: 'createTime'
|
121
|
+
property :description, as: 'description'
|
122
|
+
property :etag, as: 'etag'
|
123
|
+
collection :file_shares, as: 'fileShares', class: Google::Apis::FileV1::FileShareConfig, decorator: Google::Apis::FileV1::FileShareConfig::Representation
|
124
|
+
|
125
|
+
hash :labels, as: 'labels'
|
126
|
+
property :name, as: 'name'
|
127
|
+
collection :networks, as: 'networks', class: Google::Apis::FileV1::NetworkConfig, decorator: Google::Apis::FileV1::NetworkConfig::Representation
|
128
|
+
|
129
|
+
property :state, as: 'state'
|
130
|
+
property :status_message, as: 'statusMessage'
|
131
|
+
property :tier, as: 'tier'
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
class ListInstancesResponse
|
136
|
+
# @private
|
137
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
138
|
+
collection :instances, as: 'instances', class: Google::Apis::FileV1::Instance, decorator: Google::Apis::FileV1::Instance::Representation
|
139
|
+
|
140
|
+
property :next_page_token, as: 'nextPageToken'
|
141
|
+
collection :unreachable, as: 'unreachable'
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
class ListLocationsResponse
|
146
|
+
# @private
|
147
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
148
|
+
collection :locations, as: 'locations', class: Google::Apis::FileV1::Location, decorator: Google::Apis::FileV1::Location::Representation
|
149
|
+
|
150
|
+
property :next_page_token, as: 'nextPageToken'
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class ListOperationsResponse
|
155
|
+
# @private
|
156
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
157
|
+
property :next_page_token, as: 'nextPageToken'
|
158
|
+
collection :operations, as: 'operations', class: Google::Apis::FileV1::Operation, decorator: Google::Apis::FileV1::Operation::Representation
|
159
|
+
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
class Location
|
164
|
+
# @private
|
165
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
166
|
+
property :display_name, as: 'displayName'
|
167
|
+
hash :labels, as: 'labels'
|
168
|
+
property :location_id, as: 'locationId'
|
169
|
+
hash :metadata, as: 'metadata'
|
170
|
+
property :name, as: 'name'
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
class NetworkConfig
|
175
|
+
# @private
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
177
|
+
collection :ip_addresses, as: 'ipAddresses'
|
178
|
+
collection :modes, as: 'modes'
|
179
|
+
property :network, as: 'network'
|
180
|
+
property :reserved_ip_range, as: 'reservedIpRange'
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
class Operation
|
185
|
+
# @private
|
186
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
187
|
+
property :done, as: 'done'
|
188
|
+
property :error, as: 'error', class: Google::Apis::FileV1::Status, decorator: Google::Apis::FileV1::Status::Representation
|
189
|
+
|
190
|
+
hash :metadata, as: 'metadata'
|
191
|
+
property :name, as: 'name'
|
192
|
+
hash :response, as: 'response'
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class OperationMetadata
|
197
|
+
# @private
|
198
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
+
property :api_version, as: 'apiVersion'
|
200
|
+
property :cancel_requested, as: 'cancelRequested'
|
201
|
+
property :create_time, as: 'createTime'
|
202
|
+
property :end_time, as: 'endTime'
|
203
|
+
property :status_detail, as: 'statusDetail'
|
204
|
+
property :target, as: 'target'
|
205
|
+
property :verb, as: 'verb'
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
class Status
|
210
|
+
# @private
|
211
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
212
|
+
property :code, as: 'code'
|
213
|
+
collection :details, as: 'details'
|
214
|
+
property :message, as: 'message'
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|
219
|
+
end
|
@@ -0,0 +1,472 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module FileV1
|
23
|
+
# Cloud Filestore API
|
24
|
+
#
|
25
|
+
# The Cloud Filestore API is used for creating and managing cloud file servers.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/file_v1'
|
29
|
+
#
|
30
|
+
# File = Google::Apis::FileV1 # Alias the module
|
31
|
+
# service = File::CloudFilestoreService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/filestore/
|
34
|
+
class CloudFilestoreService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://file.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Gets information about a location.
|
51
|
+
# @param [String] name
|
52
|
+
# Resource name for the location.
|
53
|
+
# @param [String] fields
|
54
|
+
# Selector specifying which fields to include in a partial response.
|
55
|
+
# @param [String] quota_user
|
56
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
57
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
58
|
+
# @param [Google::Apis::RequestOptions] options
|
59
|
+
# Request-specific options
|
60
|
+
#
|
61
|
+
# @yield [result, err] Result & error if block supplied
|
62
|
+
# @yieldparam result [Google::Apis::FileV1::Location] parsed result object
|
63
|
+
# @yieldparam err [StandardError] error object if request failed
|
64
|
+
#
|
65
|
+
# @return [Google::Apis::FileV1::Location]
|
66
|
+
#
|
67
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
68
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
69
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
70
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
71
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
72
|
+
command.response_representation = Google::Apis::FileV1::Location::Representation
|
73
|
+
command.response_class = Google::Apis::FileV1::Location
|
74
|
+
command.params['name'] = name unless name.nil?
|
75
|
+
command.query['fields'] = fields unless fields.nil?
|
76
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
77
|
+
execute_or_queue_command(command, &block)
|
78
|
+
end
|
79
|
+
|
80
|
+
# Lists information about the supported locations for this service.
|
81
|
+
# @param [String] name
|
82
|
+
# The resource that owns the locations collection, if applicable.
|
83
|
+
# @param [String] filter
|
84
|
+
# The standard list filter.
|
85
|
+
# @param [Fixnum] page_size
|
86
|
+
# The standard list page size.
|
87
|
+
# @param [String] page_token
|
88
|
+
# The standard list page token.
|
89
|
+
# @param [String] fields
|
90
|
+
# Selector specifying which fields to include in a partial response.
|
91
|
+
# @param [String] quota_user
|
92
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
93
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
94
|
+
# @param [Google::Apis::RequestOptions] options
|
95
|
+
# Request-specific options
|
96
|
+
#
|
97
|
+
# @yield [result, err] Result & error if block supplied
|
98
|
+
# @yieldparam result [Google::Apis::FileV1::ListLocationsResponse] parsed result object
|
99
|
+
# @yieldparam err [StandardError] error object if request failed
|
100
|
+
#
|
101
|
+
# @return [Google::Apis::FileV1::ListLocationsResponse]
|
102
|
+
#
|
103
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
104
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
105
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
106
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
107
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
108
|
+
command.response_representation = Google::Apis::FileV1::ListLocationsResponse::Representation
|
109
|
+
command.response_class = Google::Apis::FileV1::ListLocationsResponse
|
110
|
+
command.params['name'] = name unless name.nil?
|
111
|
+
command.query['filter'] = filter unless filter.nil?
|
112
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
113
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
114
|
+
command.query['fields'] = fields unless fields.nil?
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
|
+
execute_or_queue_command(command, &block)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Creates an instance.
|
120
|
+
# @param [String] parent
|
121
|
+
# The instance's project and location, in the format
|
122
|
+
# projects/`project_id`/locations/`location`. In Cloud Filestore,
|
123
|
+
# locations map to GCP zones, for example **us-west1-b**.
|
124
|
+
# @param [Google::Apis::FileV1::Instance] instance_object
|
125
|
+
# @param [String] instance_id
|
126
|
+
# The name of the instance to create.
|
127
|
+
# The name must be unique for the specified project and location.
|
128
|
+
# @param [String] fields
|
129
|
+
# Selector specifying which fields to include in a partial response.
|
130
|
+
# @param [String] quota_user
|
131
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
132
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
133
|
+
# @param [Google::Apis::RequestOptions] options
|
134
|
+
# Request-specific options
|
135
|
+
#
|
136
|
+
# @yield [result, err] Result & error if block supplied
|
137
|
+
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
138
|
+
# @yieldparam err [StandardError] error object if request failed
|
139
|
+
#
|
140
|
+
# @return [Google::Apis::FileV1::Operation]
|
141
|
+
#
|
142
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
143
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
144
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
145
|
+
def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
146
|
+
command = make_simple_command(:post, 'v1/{+parent}/instances', options)
|
147
|
+
command.request_representation = Google::Apis::FileV1::Instance::Representation
|
148
|
+
command.request_object = instance_object
|
149
|
+
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
150
|
+
command.response_class = Google::Apis::FileV1::Operation
|
151
|
+
command.params['parent'] = parent unless parent.nil?
|
152
|
+
command.query['instanceId'] = instance_id unless instance_id.nil?
|
153
|
+
command.query['fields'] = fields unless fields.nil?
|
154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
155
|
+
execute_or_queue_command(command, &block)
|
156
|
+
end
|
157
|
+
|
158
|
+
# Deletes an instance.
|
159
|
+
# @param [String] name
|
160
|
+
# The instance resource name, in the format
|
161
|
+
# projects/`project_id`/locations/`location`/instances/`instance_id`
|
162
|
+
# @param [String] fields
|
163
|
+
# Selector specifying which fields to include in a partial response.
|
164
|
+
# @param [String] quota_user
|
165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
167
|
+
# @param [Google::Apis::RequestOptions] options
|
168
|
+
# Request-specific options
|
169
|
+
#
|
170
|
+
# @yield [result, err] Result & error if block supplied
|
171
|
+
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
172
|
+
# @yieldparam err [StandardError] error object if request failed
|
173
|
+
#
|
174
|
+
# @return [Google::Apis::FileV1::Operation]
|
175
|
+
#
|
176
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
177
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
178
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
179
|
+
def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
180
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
181
|
+
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
182
|
+
command.response_class = Google::Apis::FileV1::Operation
|
183
|
+
command.params['name'] = name unless name.nil?
|
184
|
+
command.query['fields'] = fields unless fields.nil?
|
185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
186
|
+
execute_or_queue_command(command, &block)
|
187
|
+
end
|
188
|
+
|
189
|
+
# Gets the details of a specific instance.
|
190
|
+
# @param [String] name
|
191
|
+
# The instance resource name, in the format
|
192
|
+
# projects/`project_id`/locations/`location`/instances/`instance_id`.
|
193
|
+
# @param [String] fields
|
194
|
+
# Selector specifying which fields to include in a partial response.
|
195
|
+
# @param [String] quota_user
|
196
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
197
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
198
|
+
# @param [Google::Apis::RequestOptions] options
|
199
|
+
# Request-specific options
|
200
|
+
#
|
201
|
+
# @yield [result, err] Result & error if block supplied
|
202
|
+
# @yieldparam result [Google::Apis::FileV1::Instance] parsed result object
|
203
|
+
# @yieldparam err [StandardError] error object if request failed
|
204
|
+
#
|
205
|
+
# @return [Google::Apis::FileV1::Instance]
|
206
|
+
#
|
207
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
208
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
209
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
210
|
+
def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
211
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
212
|
+
command.response_representation = Google::Apis::FileV1::Instance::Representation
|
213
|
+
command.response_class = Google::Apis::FileV1::Instance
|
214
|
+
command.params['name'] = name unless name.nil?
|
215
|
+
command.query['fields'] = fields unless fields.nil?
|
216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
217
|
+
execute_or_queue_command(command, &block)
|
218
|
+
end
|
219
|
+
|
220
|
+
# Lists all instances in a project for either a specified location
|
221
|
+
# or for all locations.
|
222
|
+
# @param [String] parent
|
223
|
+
# The project and location for which to retrieve instance information,
|
224
|
+
# in the format projects/`project_id`/locations/`location`. In Cloud
|
225
|
+
# Filestore, locations map to GCP zones, for example **us-west1-b**. To
|
226
|
+
# retrieve instance information for all locations, use "-" for the `location`
|
227
|
+
# value.
|
228
|
+
# @param [String] filter
|
229
|
+
# List filter.
|
230
|
+
# @param [String] order_by
|
231
|
+
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
232
|
+
# @param [Fixnum] page_size
|
233
|
+
# The maximum number of items to return.
|
234
|
+
# @param [String] page_token
|
235
|
+
# The next_page_token value to use if there are additional
|
236
|
+
# results to retrieve for this list request.
|
237
|
+
# @param [String] fields
|
238
|
+
# Selector specifying which fields to include in a partial response.
|
239
|
+
# @param [String] quota_user
|
240
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
241
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
242
|
+
# @param [Google::Apis::RequestOptions] options
|
243
|
+
# Request-specific options
|
244
|
+
#
|
245
|
+
# @yield [result, err] Result & error if block supplied
|
246
|
+
# @yieldparam result [Google::Apis::FileV1::ListInstancesResponse] parsed result object
|
247
|
+
# @yieldparam err [StandardError] error object if request failed
|
248
|
+
#
|
249
|
+
# @return [Google::Apis::FileV1::ListInstancesResponse]
|
250
|
+
#
|
251
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
252
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
253
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
254
|
+
def list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
255
|
+
command = make_simple_command(:get, 'v1/{+parent}/instances', options)
|
256
|
+
command.response_representation = Google::Apis::FileV1::ListInstancesResponse::Representation
|
257
|
+
command.response_class = Google::Apis::FileV1::ListInstancesResponse
|
258
|
+
command.params['parent'] = parent unless parent.nil?
|
259
|
+
command.query['filter'] = filter unless filter.nil?
|
260
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
261
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
262
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
263
|
+
command.query['fields'] = fields unless fields.nil?
|
264
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
265
|
+
execute_or_queue_command(command, &block)
|
266
|
+
end
|
267
|
+
|
268
|
+
# Updates the settings of a specific instance.
|
269
|
+
# @param [String] name
|
270
|
+
# Output only.
|
271
|
+
# The resource name of the instance, in the format
|
272
|
+
# projects/`project_id`/locations/`location_id`/instances/`instance_id`.
|
273
|
+
# @param [Google::Apis::FileV1::Instance] instance_object
|
274
|
+
# @param [String] update_mask
|
275
|
+
# Mask of fields to update. At least one path must be supplied in this
|
276
|
+
# field. The elements of the repeated paths field may only include these
|
277
|
+
# fields:
|
278
|
+
# "description"
|
279
|
+
# @param [String] fields
|
280
|
+
# Selector specifying which fields to include in a partial response.
|
281
|
+
# @param [String] quota_user
|
282
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
283
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
284
|
+
# @param [Google::Apis::RequestOptions] options
|
285
|
+
# Request-specific options
|
286
|
+
#
|
287
|
+
# @yield [result, err] Result & error if block supplied
|
288
|
+
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
289
|
+
# @yieldparam err [StandardError] error object if request failed
|
290
|
+
#
|
291
|
+
# @return [Google::Apis::FileV1::Operation]
|
292
|
+
#
|
293
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
294
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
295
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
296
|
+
def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
297
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
298
|
+
command.request_representation = Google::Apis::FileV1::Instance::Representation
|
299
|
+
command.request_object = instance_object
|
300
|
+
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
301
|
+
command.response_class = Google::Apis::FileV1::Operation
|
302
|
+
command.params['name'] = name unless name.nil?
|
303
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
304
|
+
command.query['fields'] = fields unless fields.nil?
|
305
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
306
|
+
execute_or_queue_command(command, &block)
|
307
|
+
end
|
308
|
+
|
309
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
310
|
+
# makes a best effort to cancel the operation, but success is not
|
311
|
+
# guaranteed. If the server doesn't support this method, it returns
|
312
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
313
|
+
# Operations.GetOperation or
|
314
|
+
# other methods to check whether the cancellation succeeded or whether the
|
315
|
+
# operation completed despite cancellation. On successful cancellation,
|
316
|
+
# the operation is not deleted; instead, it becomes an operation with
|
317
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
318
|
+
# corresponding to `Code.CANCELLED`.
|
319
|
+
# @param [String] name
|
320
|
+
# The name of the operation resource to be cancelled.
|
321
|
+
# @param [Google::Apis::FileV1::CancelOperationRequest] cancel_operation_request_object
|
322
|
+
# @param [String] fields
|
323
|
+
# Selector specifying which fields to include in a partial response.
|
324
|
+
# @param [String] quota_user
|
325
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
326
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
327
|
+
# @param [Google::Apis::RequestOptions] options
|
328
|
+
# Request-specific options
|
329
|
+
#
|
330
|
+
# @yield [result, err] Result & error if block supplied
|
331
|
+
# @yieldparam result [Google::Apis::FileV1::Empty] parsed result object
|
332
|
+
# @yieldparam err [StandardError] error object if request failed
|
333
|
+
#
|
334
|
+
# @return [Google::Apis::FileV1::Empty]
|
335
|
+
#
|
336
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
337
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
338
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
339
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
340
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
341
|
+
command.request_representation = Google::Apis::FileV1::CancelOperationRequest::Representation
|
342
|
+
command.request_object = cancel_operation_request_object
|
343
|
+
command.response_representation = Google::Apis::FileV1::Empty::Representation
|
344
|
+
command.response_class = Google::Apis::FileV1::Empty
|
345
|
+
command.params['name'] = name unless name.nil?
|
346
|
+
command.query['fields'] = fields unless fields.nil?
|
347
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
348
|
+
execute_or_queue_command(command, &block)
|
349
|
+
end
|
350
|
+
|
351
|
+
# Deletes a long-running operation. This method indicates that the client is
|
352
|
+
# no longer interested in the operation result. It does not cancel the
|
353
|
+
# operation. If the server doesn't support this method, it returns
|
354
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
355
|
+
# @param [String] name
|
356
|
+
# The name of the operation resource to be deleted.
|
357
|
+
# @param [String] fields
|
358
|
+
# Selector specifying which fields to include in a partial response.
|
359
|
+
# @param [String] quota_user
|
360
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
361
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
362
|
+
# @param [Google::Apis::RequestOptions] options
|
363
|
+
# Request-specific options
|
364
|
+
#
|
365
|
+
# @yield [result, err] Result & error if block supplied
|
366
|
+
# @yieldparam result [Google::Apis::FileV1::Empty] parsed result object
|
367
|
+
# @yieldparam err [StandardError] error object if request failed
|
368
|
+
#
|
369
|
+
# @return [Google::Apis::FileV1::Empty]
|
370
|
+
#
|
371
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
372
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
373
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
374
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
375
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
376
|
+
command.response_representation = Google::Apis::FileV1::Empty::Representation
|
377
|
+
command.response_class = Google::Apis::FileV1::Empty
|
378
|
+
command.params['name'] = name unless name.nil?
|
379
|
+
command.query['fields'] = fields unless fields.nil?
|
380
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
381
|
+
execute_or_queue_command(command, &block)
|
382
|
+
end
|
383
|
+
|
384
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
385
|
+
# method to poll the operation result at intervals as recommended by the API
|
386
|
+
# service.
|
387
|
+
# @param [String] name
|
388
|
+
# The name of the operation resource.
|
389
|
+
# @param [String] fields
|
390
|
+
# Selector specifying which fields to include in a partial response.
|
391
|
+
# @param [String] quota_user
|
392
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
393
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
394
|
+
# @param [Google::Apis::RequestOptions] options
|
395
|
+
# Request-specific options
|
396
|
+
#
|
397
|
+
# @yield [result, err] Result & error if block supplied
|
398
|
+
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
399
|
+
# @yieldparam err [StandardError] error object if request failed
|
400
|
+
#
|
401
|
+
# @return [Google::Apis::FileV1::Operation]
|
402
|
+
#
|
403
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
404
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
405
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
406
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
407
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
408
|
+
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
409
|
+
command.response_class = Google::Apis::FileV1::Operation
|
410
|
+
command.params['name'] = name unless name.nil?
|
411
|
+
command.query['fields'] = fields unless fields.nil?
|
412
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
413
|
+
execute_or_queue_command(command, &block)
|
414
|
+
end
|
415
|
+
|
416
|
+
# Lists operations that match the specified filter in the request. If the
|
417
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
418
|
+
# NOTE: the `name` binding allows API services to override the binding
|
419
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
420
|
+
# override the binding, API services can add a binding such as
|
421
|
+
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
422
|
+
# For backwards compatibility, the default name includes the operations
|
423
|
+
# collection id, however overriding users must ensure the name binding
|
424
|
+
# is the parent resource, without the operations collection id.
|
425
|
+
# @param [String] name
|
426
|
+
# The name of the operation's parent resource.
|
427
|
+
# @param [String] filter
|
428
|
+
# The standard list filter.
|
429
|
+
# @param [Fixnum] page_size
|
430
|
+
# The standard list page size.
|
431
|
+
# @param [String] page_token
|
432
|
+
# The standard list page token.
|
433
|
+
# @param [String] fields
|
434
|
+
# Selector specifying which fields to include in a partial response.
|
435
|
+
# @param [String] quota_user
|
436
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
437
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
438
|
+
# @param [Google::Apis::RequestOptions] options
|
439
|
+
# Request-specific options
|
440
|
+
#
|
441
|
+
# @yield [result, err] Result & error if block supplied
|
442
|
+
# @yieldparam result [Google::Apis::FileV1::ListOperationsResponse] parsed result object
|
443
|
+
# @yieldparam err [StandardError] error object if request failed
|
444
|
+
#
|
445
|
+
# @return [Google::Apis::FileV1::ListOperationsResponse]
|
446
|
+
#
|
447
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
448
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
449
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
450
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
451
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
452
|
+
command.response_representation = Google::Apis::FileV1::ListOperationsResponse::Representation
|
453
|
+
command.response_class = Google::Apis::FileV1::ListOperationsResponse
|
454
|
+
command.params['name'] = name unless name.nil?
|
455
|
+
command.query['filter'] = filter unless filter.nil?
|
456
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
457
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
458
|
+
command.query['fields'] = fields unless fields.nil?
|
459
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
460
|
+
execute_or_queue_command(command, &block)
|
461
|
+
end
|
462
|
+
|
463
|
+
protected
|
464
|
+
|
465
|
+
def apply_command_defaults(command)
|
466
|
+
command.query['key'] = key unless key.nil?
|
467
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
468
|
+
end
|
469
|
+
end
|
470
|
+
end
|
471
|
+
end
|
472
|
+
end
|