google-api-client 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/generated/google/apis/admin_directory_v1.rb +1 -1
  4. data/generated/google/apis/admin_directory_v1/classes.rb +26 -0
  5. data/generated/google/apis/admin_directory_v1/representations.rb +14 -0
  6. data/generated/google/apis/admin_directory_v1/service.rb +90 -52
  7. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  8. data/generated/google/apis/androidenterprise_v1/classes.rb +150 -3
  9. data/generated/google/apis/androidenterprise_v1/representations.rb +65 -0
  10. data/generated/google/apis/androidenterprise_v1/service.rb +50 -4
  11. data/generated/google/apis/appengine_v1.rb +1 -1
  12. data/generated/google/apis/appengine_v1/classes.rb +45 -0
  13. data/generated/google/apis/appengine_v1/representations.rb +18 -0
  14. data/generated/google/apis/appengine_v1beta.rb +1 -1
  15. data/generated/google/apis/appengine_v1beta/classes.rb +8 -0
  16. data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
  17. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  18. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +4 -4
  19. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  20. data/generated/google/apis/cloudbuild_v1/classes.rb +17 -0
  21. data/generated/google/apis/cloudbuild_v1/representations.rb +2 -0
  22. data/generated/google/apis/cloudiot_v1.rb +1 -1
  23. data/generated/google/apis/cloudiot_v1/classes.rb +5 -1
  24. data/generated/google/apis/cloudkms_v1.rb +1 -1
  25. data/generated/google/apis/cloudkms_v1/classes.rb +2 -1
  26. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  27. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +57 -61
  28. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -1
  29. data/generated/google/apis/cloudtasks_v2beta2/service.rb +20 -19
  30. data/generated/google/apis/compute_alpha.rb +1 -1
  31. data/generated/google/apis/compute_beta.rb +1 -1
  32. data/generated/google/apis/compute_v1.rb +1 -1
  33. data/generated/google/apis/container_v1.rb +1 -1
  34. data/generated/google/apis/container_v1/classes.rb +4 -6
  35. data/generated/google/apis/container_v1beta1.rb +1 -1
  36. data/generated/google/apis/container_v1beta1/classes.rb +4 -6
  37. data/generated/google/apis/customsearch_v1.rb +1 -1
  38. data/generated/google/apis/customsearch_v1/service.rb +140 -0
  39. data/generated/google/apis/dialogflow_v2beta1.rb +35 -0
  40. data/generated/google/apis/dialogflow_v2beta1/classes.rb +2536 -0
  41. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1078 -0
  42. data/generated/google/apis/dialogflow_v2beta1/service.rb +1398 -0
  43. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  44. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  45. data/generated/google/apis/genomics_v1alpha2/classes.rb +7 -5
  46. data/generated/google/apis/logging_v2.rb +1 -1
  47. data/generated/google/apis/logging_v2/classes.rb +4 -4
  48. data/generated/google/apis/logging_v2beta1.rb +1 -1
  49. data/generated/google/apis/logging_v2beta1/classes.rb +4 -4
  50. data/generated/google/apis/monitoring_v3.rb +1 -1
  51. data/generated/google/apis/monitoring_v3/classes.rb +55 -46
  52. data/generated/google/apis/monitoring_v3/representations.rb +19 -0
  53. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  54. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +16 -60
  55. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +1 -0
  56. data/generated/google/apis/script_v1.rb +1 -1
  57. data/generated/google/apis/script_v1/classes.rb +19 -21
  58. data/generated/google/apis/serviceconsumermanagement_v1.rb +38 -0
  59. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +3945 -0
  60. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1235 -0
  61. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +467 -0
  62. data/generated/google/apis/slides_v1.rb +1 -1
  63. data/generated/google/apis/slides_v1/classes.rb +16 -0
  64. data/generated/google/apis/slides_v1/representations.rb +2 -0
  65. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  66. data/generated/google/apis/sourcerepo_v1/classes.rb +3 -2
  67. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  68. data/generated/google/apis/storagetransfer_v1/classes.rb +4 -4
  69. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  70. data/generated/google/apis/toolresults_v1beta3/classes.rb +21 -21
  71. data/generated/google/apis/tpu_v1alpha1.rb +34 -0
  72. data/generated/google/apis/tpu_v1alpha1/classes.rb +530 -0
  73. data/generated/google/apis/tpu_v1alpha1/representations.rb +191 -0
  74. data/generated/google/apis/tpu_v1alpha1/service.rb +474 -0
  75. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  76. data/lib/google/apis/version.rb +1 -1
  77. metadata +14 -2
@@ -0,0 +1,191 @@
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 TpuV1alpha1
24
+
25
+ class Empty
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ListLocationsResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ListNodesResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ListOperationsResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Location
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class NetworkEndpoint
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Node
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Operation
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class OperationMetadata
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Status
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Empty
86
+ # @private
87
+ class Representation < Google::Apis::Core::JsonRepresentation
88
+ end
89
+ end
90
+
91
+ class ListLocationsResponse
92
+ # @private
93
+ class Representation < Google::Apis::Core::JsonRepresentation
94
+ collection :locations, as: 'locations', class: Google::Apis::TpuV1alpha1::Location, decorator: Google::Apis::TpuV1alpha1::Location::Representation
95
+
96
+ property :next_page_token, as: 'nextPageToken'
97
+ end
98
+ end
99
+
100
+ class ListNodesResponse
101
+ # @private
102
+ class Representation < Google::Apis::Core::JsonRepresentation
103
+ property :next_page_token, as: 'nextPageToken'
104
+ collection :nodes, as: 'nodes', class: Google::Apis::TpuV1alpha1::Node, decorator: Google::Apis::TpuV1alpha1::Node::Representation
105
+
106
+ end
107
+ end
108
+
109
+ class ListOperationsResponse
110
+ # @private
111
+ class Representation < Google::Apis::Core::JsonRepresentation
112
+ property :next_page_token, as: 'nextPageToken'
113
+ collection :operations, as: 'operations', class: Google::Apis::TpuV1alpha1::Operation, decorator: Google::Apis::TpuV1alpha1::Operation::Representation
114
+
115
+ end
116
+ end
117
+
118
+ class Location
119
+ # @private
120
+ class Representation < Google::Apis::Core::JsonRepresentation
121
+ hash :labels, as: 'labels'
122
+ property :location_id, as: 'locationId'
123
+ hash :metadata, as: 'metadata'
124
+ property :name, as: 'name'
125
+ end
126
+ end
127
+
128
+ class NetworkEndpoint
129
+ # @private
130
+ class Representation < Google::Apis::Core::JsonRepresentation
131
+ property :ip_address, as: 'ipAddress'
132
+ property :port, as: 'port'
133
+ end
134
+ end
135
+
136
+ class Node
137
+ # @private
138
+ class Representation < Google::Apis::Core::JsonRepresentation
139
+ property :accelerator_type, as: 'acceleratorType'
140
+ property :cidr_block, as: 'cidrBlock'
141
+ property :create_time, as: 'createTime'
142
+ property :description, as: 'description'
143
+ property :health_description, as: 'healthDescription'
144
+ property :ip_address, as: 'ipAddress'
145
+ property :name, as: 'name'
146
+ property :network, as: 'network'
147
+ collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::TpuV1alpha1::NetworkEndpoint, decorator: Google::Apis::TpuV1alpha1::NetworkEndpoint::Representation
148
+
149
+ property :port, as: 'port'
150
+ property :service_account, as: 'serviceAccount'
151
+ property :state, as: 'state'
152
+ property :tensorflow_version, as: 'tensorflowVersion'
153
+ end
154
+ end
155
+
156
+ class Operation
157
+ # @private
158
+ class Representation < Google::Apis::Core::JsonRepresentation
159
+ property :done, as: 'done'
160
+ property :error, as: 'error', class: Google::Apis::TpuV1alpha1::Status, decorator: Google::Apis::TpuV1alpha1::Status::Representation
161
+
162
+ hash :metadata, as: 'metadata'
163
+ property :name, as: 'name'
164
+ hash :response, as: 'response'
165
+ end
166
+ end
167
+
168
+ class OperationMetadata
169
+ # @private
170
+ class Representation < Google::Apis::Core::JsonRepresentation
171
+ property :api_version, as: 'apiVersion'
172
+ property :cancel_requested, as: 'cancelRequested'
173
+ property :create_time, as: 'createTime'
174
+ property :end_time, as: 'endTime'
175
+ property :status_detail, as: 'statusDetail'
176
+ property :target, as: 'target'
177
+ property :verb, as: 'verb'
178
+ end
179
+ end
180
+
181
+ class Status
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :code, as: 'code'
185
+ collection :details, as: 'details'
186
+ property :message, as: 'message'
187
+ end
188
+ end
189
+ end
190
+ end
191
+ end
@@ -0,0 +1,474 @@
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 TpuV1alpha1
23
+ # Cloud TPU API
24
+ #
25
+ # TPU API provides customers with access to Google TPU technology.
26
+ #
27
+ # @example
28
+ # require 'google/apis/tpu_v1alpha1'
29
+ #
30
+ # Tpu = Google::Apis::TpuV1alpha1 # Alias the module
31
+ # service = Tpu::TPUService.new
32
+ #
33
+ # @see https://cloud.google.com/tpu/
34
+ class TPUService < 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://tpu.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Get 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::TpuV1alpha1::Location] parsed result object
63
+ # @yieldparam err [StandardError] error object if request failed
64
+ #
65
+ # @return [Google::Apis::TpuV1alpha1::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, 'v1alpha1/{+name}', options)
72
+ command.response_representation = Google::Apis::TpuV1alpha1::Location::Representation
73
+ command.response_class = Google::Apis::TpuV1alpha1::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::TpuV1alpha1::ListLocationsResponse] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::TpuV1alpha1::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, 'v1alpha1/{+name}/locations', options)
108
+ command.response_representation = Google::Apis::TpuV1alpha1::ListLocationsResponse::Representation
109
+ command.response_class = Google::Apis::TpuV1alpha1::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 a node.
120
+ # @param [String] parent
121
+ # The parent resource name.
122
+ # @param [Google::Apis::TpuV1alpha1::Node] node_object
123
+ # @param [String] node_id
124
+ # The unqualified resource name.
125
+ # @param [String] fields
126
+ # Selector specifying which fields to include in a partial response.
127
+ # @param [String] quota_user
128
+ # Available to use for quota purposes for server-side applications. Can be any
129
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
130
+ # @param [Google::Apis::RequestOptions] options
131
+ # Request-specific options
132
+ #
133
+ # @yield [result, err] Result & error if block supplied
134
+ # @yieldparam result [Google::Apis::TpuV1alpha1::Operation] parsed result object
135
+ # @yieldparam err [StandardError] error object if request failed
136
+ #
137
+ # @return [Google::Apis::TpuV1alpha1::Operation]
138
+ #
139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
142
+ def create_project_location_node(parent, node_object = nil, node_id: nil, fields: nil, quota_user: nil, options: nil, &block)
143
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/nodes', options)
144
+ command.request_representation = Google::Apis::TpuV1alpha1::Node::Representation
145
+ command.request_object = node_object
146
+ command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
147
+ command.response_class = Google::Apis::TpuV1alpha1::Operation
148
+ command.params['parent'] = parent unless parent.nil?
149
+ command.query['nodeId'] = node_id unless node_id.nil?
150
+ command.query['fields'] = fields unless fields.nil?
151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
152
+ execute_or_queue_command(command, &block)
153
+ end
154
+
155
+ # Deletes a node.
156
+ # @param [String] name
157
+ # The resource name.
158
+ # @param [String] fields
159
+ # Selector specifying which fields to include in a partial response.
160
+ # @param [String] quota_user
161
+ # Available to use for quota purposes for server-side applications. Can be any
162
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
163
+ # @param [Google::Apis::RequestOptions] options
164
+ # Request-specific options
165
+ #
166
+ # @yield [result, err] Result & error if block supplied
167
+ # @yieldparam result [Google::Apis::TpuV1alpha1::Operation] parsed result object
168
+ # @yieldparam err [StandardError] error object if request failed
169
+ #
170
+ # @return [Google::Apis::TpuV1alpha1::Operation]
171
+ #
172
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
173
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
174
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
175
+ def delete_project_location_node(name, fields: nil, quota_user: nil, options: nil, &block)
176
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
177
+ command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
178
+ command.response_class = Google::Apis::TpuV1alpha1::Operation
179
+ command.params['name'] = name unless name.nil?
180
+ command.query['fields'] = fields unless fields.nil?
181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
182
+ execute_or_queue_command(command, &block)
183
+ end
184
+
185
+ # Gets the details of a node.
186
+ # @param [String] name
187
+ # The resource name.
188
+ # @param [String] fields
189
+ # Selector specifying which fields to include in a partial response.
190
+ # @param [String] quota_user
191
+ # Available to use for quota purposes for server-side applications. Can be any
192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
193
+ # @param [Google::Apis::RequestOptions] options
194
+ # Request-specific options
195
+ #
196
+ # @yield [result, err] Result & error if block supplied
197
+ # @yieldparam result [Google::Apis::TpuV1alpha1::Node] parsed result object
198
+ # @yieldparam err [StandardError] error object if request failed
199
+ #
200
+ # @return [Google::Apis::TpuV1alpha1::Node]
201
+ #
202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
205
+ def get_project_location_node(name, fields: nil, quota_user: nil, options: nil, &block)
206
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
207
+ command.response_representation = Google::Apis::TpuV1alpha1::Node::Representation
208
+ command.response_class = Google::Apis::TpuV1alpha1::Node
209
+ command.params['name'] = name unless name.nil?
210
+ command.query['fields'] = fields unless fields.nil?
211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
212
+ execute_or_queue_command(command, &block)
213
+ end
214
+
215
+ # Lists nodes.
216
+ # @param [String] parent
217
+ # The parent resource name.
218
+ # @param [Fixnum] page_size
219
+ # The maximum number of items to return.
220
+ # @param [String] page_token
221
+ # The next_page_token value returned from a previous List request, if any.
222
+ # @param [String] fields
223
+ # Selector specifying which fields to include in a partial response.
224
+ # @param [String] quota_user
225
+ # Available to use for quota purposes for server-side applications. Can be any
226
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
227
+ # @param [Google::Apis::RequestOptions] options
228
+ # Request-specific options
229
+ #
230
+ # @yield [result, err] Result & error if block supplied
231
+ # @yieldparam result [Google::Apis::TpuV1alpha1::ListNodesResponse] parsed result object
232
+ # @yieldparam err [StandardError] error object if request failed
233
+ #
234
+ # @return [Google::Apis::TpuV1alpha1::ListNodesResponse]
235
+ #
236
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
237
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
238
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
239
+ def list_project_location_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
240
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/nodes', options)
241
+ command.response_representation = Google::Apis::TpuV1alpha1::ListNodesResponse::Representation
242
+ command.response_class = Google::Apis::TpuV1alpha1::ListNodesResponse
243
+ command.params['parent'] = parent unless parent.nil?
244
+ command.query['pageSize'] = page_size unless page_size.nil?
245
+ command.query['pageToken'] = page_token unless page_token.nil?
246
+ command.query['fields'] = fields unless fields.nil?
247
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
248
+ execute_or_queue_command(command, &block)
249
+ end
250
+
251
+ # Reimage a node's OS.
252
+ # @param [String] name
253
+ # The resource name.
254
+ # @param [String] tensorflow_version
255
+ # The version for reimage to create.
256
+ # @param [String] fields
257
+ # Selector specifying which fields to include in a partial response.
258
+ # @param [String] quota_user
259
+ # Available to use for quota purposes for server-side applications. Can be any
260
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
261
+ # @param [Google::Apis::RequestOptions] options
262
+ # Request-specific options
263
+ #
264
+ # @yield [result, err] Result & error if block supplied
265
+ # @yieldparam result [Google::Apis::TpuV1alpha1::Operation] parsed result object
266
+ # @yieldparam err [StandardError] error object if request failed
267
+ #
268
+ # @return [Google::Apis::TpuV1alpha1::Operation]
269
+ #
270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
273
+ def reimage_project_location_node(name, tensorflow_version: nil, fields: nil, quota_user: nil, options: nil, &block)
274
+ command = make_simple_command(:post, 'v1alpha1/{+name}:reimage', options)
275
+ command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
276
+ command.response_class = Google::Apis::TpuV1alpha1::Operation
277
+ command.params['name'] = name unless name.nil?
278
+ command.query['tensorflowVersion'] = tensorflow_version unless tensorflow_version.nil?
279
+ command.query['fields'] = fields unless fields.nil?
280
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
281
+ execute_or_queue_command(command, &block)
282
+ end
283
+
284
+ # Resets a node, which stops and starts the VM.
285
+ # @param [String] name
286
+ # The resource name.
287
+ # @param [String] fields
288
+ # Selector specifying which fields to include in a partial response.
289
+ # @param [String] quota_user
290
+ # Available to use for quota purposes for server-side applications. Can be any
291
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
292
+ # @param [Google::Apis::RequestOptions] options
293
+ # Request-specific options
294
+ #
295
+ # @yield [result, err] Result & error if block supplied
296
+ # @yieldparam result [Google::Apis::TpuV1alpha1::Operation] parsed result object
297
+ # @yieldparam err [StandardError] error object if request failed
298
+ #
299
+ # @return [Google::Apis::TpuV1alpha1::Operation]
300
+ #
301
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
302
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
303
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
304
+ def reset_project_location_node(name, fields: nil, quota_user: nil, options: nil, &block)
305
+ command = make_simple_command(:post, 'v1alpha1/{+name}:reset', options)
306
+ command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
307
+ command.response_class = Google::Apis::TpuV1alpha1::Operation
308
+ command.params['name'] = name unless name.nil?
309
+ command.query['fields'] = fields unless fields.nil?
310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
311
+ execute_or_queue_command(command, &block)
312
+ end
313
+
314
+ # Starts asynchronous cancellation on a long-running operation. The server
315
+ # makes a best effort to cancel the operation, but success is not
316
+ # guaranteed. If the server doesn't support this method, it returns
317
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
318
+ # Operations.GetOperation or
319
+ # other methods to check whether the cancellation succeeded or whether the
320
+ # operation completed despite cancellation. On successful cancellation,
321
+ # the operation is not deleted; instead, it becomes an operation with
322
+ # an Operation.error value with a google.rpc.Status.code of 1,
323
+ # corresponding to `Code.CANCELLED`.
324
+ # @param [String] name
325
+ # The name of the operation resource to be cancelled.
326
+ # @param [String] fields
327
+ # Selector specifying which fields to include in a partial response.
328
+ # @param [String] quota_user
329
+ # Available to use for quota purposes for server-side applications. Can be any
330
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
331
+ # @param [Google::Apis::RequestOptions] options
332
+ # Request-specific options
333
+ #
334
+ # @yield [result, err] Result & error if block supplied
335
+ # @yieldparam result [Google::Apis::TpuV1alpha1::Empty] parsed result object
336
+ # @yieldparam err [StandardError] error object if request failed
337
+ #
338
+ # @return [Google::Apis::TpuV1alpha1::Empty]
339
+ #
340
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
341
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
342
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
343
+ def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
344
+ command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', options)
345
+ command.response_representation = Google::Apis::TpuV1alpha1::Empty::Representation
346
+ command.response_class = Google::Apis::TpuV1alpha1::Empty
347
+ command.params['name'] = name unless name.nil?
348
+ command.query['fields'] = fields unless fields.nil?
349
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
350
+ execute_or_queue_command(command, &block)
351
+ end
352
+
353
+ # Deletes a long-running operation. This method indicates that the client is
354
+ # no longer interested in the operation result. It does not cancel the
355
+ # operation. If the server doesn't support this method, it returns
356
+ # `google.rpc.Code.UNIMPLEMENTED`.
357
+ # @param [String] name
358
+ # The name of the operation resource to be deleted.
359
+ # @param [String] fields
360
+ # Selector specifying which fields to include in a partial response.
361
+ # @param [String] quota_user
362
+ # Available to use for quota purposes for server-side applications. Can be any
363
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
364
+ # @param [Google::Apis::RequestOptions] options
365
+ # Request-specific options
366
+ #
367
+ # @yield [result, err] Result & error if block supplied
368
+ # @yieldparam result [Google::Apis::TpuV1alpha1::Empty] parsed result object
369
+ # @yieldparam err [StandardError] error object if request failed
370
+ #
371
+ # @return [Google::Apis::TpuV1alpha1::Empty]
372
+ #
373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
376
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
377
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
378
+ command.response_representation = Google::Apis::TpuV1alpha1::Empty::Representation
379
+ command.response_class = Google::Apis::TpuV1alpha1::Empty
380
+ command.params['name'] = name unless name.nil?
381
+ command.query['fields'] = fields unless fields.nil?
382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
383
+ execute_or_queue_command(command, &block)
384
+ end
385
+
386
+ # Gets the latest state of a long-running operation. Clients can use this
387
+ # method to poll the operation result at intervals as recommended by the API
388
+ # service.
389
+ # @param [String] name
390
+ # The name of the operation resource.
391
+ # @param [String] fields
392
+ # Selector specifying which fields to include in a partial response.
393
+ # @param [String] quota_user
394
+ # Available to use for quota purposes for server-side applications. Can be any
395
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
396
+ # @param [Google::Apis::RequestOptions] options
397
+ # Request-specific options
398
+ #
399
+ # @yield [result, err] Result & error if block supplied
400
+ # @yieldparam result [Google::Apis::TpuV1alpha1::Operation] parsed result object
401
+ # @yieldparam err [StandardError] error object if request failed
402
+ #
403
+ # @return [Google::Apis::TpuV1alpha1::Operation]
404
+ #
405
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
406
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
407
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
408
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
409
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
410
+ command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
411
+ command.response_class = Google::Apis::TpuV1alpha1::Operation
412
+ command.params['name'] = name unless name.nil?
413
+ command.query['fields'] = fields unless fields.nil?
414
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
415
+ execute_or_queue_command(command, &block)
416
+ end
417
+
418
+ # Lists operations that match the specified filter in the request. If the
419
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
420
+ # NOTE: the `name` binding allows API services to override the binding
421
+ # to use different resource name schemes, such as `users/*/operations`. To
422
+ # override the binding, API services can add a binding such as
423
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
424
+ # For backwards compatibility, the default name includes the operations
425
+ # collection id, however overriding users must ensure the name binding
426
+ # is the parent resource, without the operations collection id.
427
+ # @param [String] name
428
+ # The name of the operation's parent resource.
429
+ # @param [String] filter
430
+ # The standard list filter.
431
+ # @param [Fixnum] page_size
432
+ # The standard list page size.
433
+ # @param [String] page_token
434
+ # The standard list page token.
435
+ # @param [String] fields
436
+ # Selector specifying which fields to include in a partial response.
437
+ # @param [String] quota_user
438
+ # Available to use for quota purposes for server-side applications. Can be any
439
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
440
+ # @param [Google::Apis::RequestOptions] options
441
+ # Request-specific options
442
+ #
443
+ # @yield [result, err] Result & error if block supplied
444
+ # @yieldparam result [Google::Apis::TpuV1alpha1::ListOperationsResponse] parsed result object
445
+ # @yieldparam err [StandardError] error object if request failed
446
+ #
447
+ # @return [Google::Apis::TpuV1alpha1::ListOperationsResponse]
448
+ #
449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
452
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
453
+ command = make_simple_command(:get, 'v1alpha1/{+name}/operations', options)
454
+ command.response_representation = Google::Apis::TpuV1alpha1::ListOperationsResponse::Representation
455
+ command.response_class = Google::Apis::TpuV1alpha1::ListOperationsResponse
456
+ command.params['name'] = name unless name.nil?
457
+ command.query['filter'] = filter unless filter.nil?
458
+ command.query['pageSize'] = page_size unless page_size.nil?
459
+ command.query['pageToken'] = page_token unless page_token.nil?
460
+ command.query['fields'] = fields unless fields.nil?
461
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
462
+ execute_or_queue_command(command, &block)
463
+ end
464
+
465
+ protected
466
+
467
+ def apply_command_defaults(command)
468
+ command.query['key'] = key unless key.nil?
469
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
470
+ end
471
+ end
472
+ end
473
+ end
474
+ end