google-api-client 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  4. data/generated/google/apis/androidmanagement_v1/classes.rb +1 -2
  5. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  6. data/generated/google/apis/androidpublisher_v2/classes.rb +1 -2
  7. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v3/classes.rb +2 -3
  9. data/generated/google/apis/appengine_v1.rb +1 -1
  10. data/generated/google/apis/appengine_v1/classes.rb +59 -1
  11. data/generated/google/apis/appengine_v1/representations.rb +18 -0
  12. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  13. data/generated/google/apis/cloudtasks_v2beta2/service.rb +0 -8
  14. data/generated/google/apis/compute_alpha.rb +1 -1
  15. data/generated/google/apis/compute_alpha/classes.rb +97 -12
  16. data/generated/google/apis/compute_alpha/representations.rb +23 -0
  17. data/generated/google/apis/compute_alpha/service.rb +41 -1
  18. data/generated/google/apis/compute_beta.rb +1 -1
  19. data/generated/google/apis/compute_beta/classes.rb +1616 -43
  20. data/generated/google/apis/compute_beta/representations.rb +685 -20
  21. data/generated/google/apis/compute_beta/service.rb +1286 -0
  22. data/generated/google/apis/compute_v1.rb +1 -1
  23. data/generated/google/apis/compute_v1/classes.rb +184 -3
  24. data/generated/google/apis/compute_v1/representations.rb +43 -0
  25. data/generated/google/apis/compute_v1/service.rb +108 -0
  26. data/generated/google/apis/content_v2.rb +1 -1
  27. data/generated/google/apis/content_v2/classes.rb +805 -102
  28. data/generated/google/apis/content_v2/representations.rb +393 -26
  29. data/generated/google/apis/content_v2/service.rb +242 -0
  30. data/generated/google/apis/content_v2sandbox.rb +1 -1
  31. data/generated/google/apis/content_v2sandbox/classes.rb +703 -0
  32. data/generated/google/apis/content_v2sandbox/representations.rb +367 -0
  33. data/generated/google/apis/content_v2sandbox/service.rb +242 -0
  34. data/generated/google/apis/dlp_v2.rb +1 -1
  35. data/generated/google/apis/dlp_v2/classes.rb +280 -2
  36. data/generated/google/apis/dlp_v2/representations.rb +120 -0
  37. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  38. data/generated/google/apis/genomics_v2alpha1/classes.rb +35 -0
  39. data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
  40. data/generated/google/apis/logging_v2.rb +1 -1
  41. data/generated/google/apis/logging_v2/classes.rb +2 -2
  42. data/generated/google/apis/monitoring_v3.rb +1 -1
  43. data/generated/google/apis/monitoring_v3/classes.rb +7 -0
  44. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  45. data/generated/google/apis/monitoring_v3/service.rb +5 -3
  46. data/generated/google/apis/pagespeedonline_v4.rb +1 -1
  47. data/generated/google/apis/pubsub_v1.rb +1 -1
  48. data/generated/google/apis/pubsub_v1/classes.rb +0 -8
  49. data/generated/google/apis/pubsub_v1/service.rb +4 -8
  50. data/generated/google/apis/script_v1.rb +1 -1
  51. data/generated/google/apis/script_v1/classes.rb +7 -8
  52. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  53. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -27
  54. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -15
  55. data/generated/google/apis/serviceuser_v1.rb +1 -1
  56. data/generated/google/apis/serviceuser_v1/classes.rb +0 -27
  57. data/generated/google/apis/serviceuser_v1/representations.rb +0 -15
  58. data/generated/google/apis/sheets_v4.rb +1 -1
  59. data/generated/google/apis/sheets_v4/service.rb +2 -1
  60. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  61. data/generated/google/apis/tpu_v1.rb +34 -0
  62. data/generated/google/apis/tpu_v1/classes.rb +736 -0
  63. data/generated/google/apis/tpu_v1/representations.rb +316 -0
  64. data/generated/google/apis/tpu_v1/service.rb +687 -0
  65. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  66. data/generated/google/apis/tpu_v1alpha1/classes.rb +26 -0
  67. data/generated/google/apis/tpu_v1alpha1/representations.rb +15 -0
  68. data/generated/google/apis/videointelligence_v1.rb +1 -1
  69. data/generated/google/apis/videointelligence_v1/classes.rb +0 -473
  70. data/generated/google/apis/videointelligence_v1/representations.rb +0 -222
  71. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  72. data/generated/google/apis/videointelligence_v1beta2/classes.rb +0 -473
  73. data/generated/google/apis/videointelligence_v1beta2/representations.rb +0 -222
  74. data/lib/google/apis/version.rb +1 -1
  75. metadata +6 -6
  76. data/generated/google/apis/photoslibrary_v1.rb +0 -49
  77. data/generated/google/apis/photoslibrary_v1/classes.rb +0 -1330
  78. data/generated/google/apis/photoslibrary_v1/representations.rb +0 -625
  79. data/generated/google/apis/photoslibrary_v1/service.rb +0 -399
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-management/
28
28
  module ServiceuserV1
29
29
  VERSION = 'V1'
30
- REVISION = '20180330'
30
+ REVISION = '20180525'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -272,11 +272,6 @@ module Google
272
272
  attr_accessor :allow_without_credential
273
273
  alias_method :allow_without_credential?, :allow_without_credential
274
274
 
275
- # Configuration for a custom authentication provider.
276
- # Corresponds to the JSON property `customAuth`
277
- # @return [Google::Apis::ServiceuserV1::CustomAuthRequirements]
278
- attr_accessor :custom_auth
279
-
280
275
  # OAuth scopes are a way to define data and permissions on data. For example,
281
276
  # there are scopes defined for "Read-only access to Google Calendar" and
282
277
  # "Access to Cloud Platform". Users can consent to a scope for an application,
@@ -313,7 +308,6 @@ module Google
313
308
  # Update properties of this object
314
309
  def update!(**args)
315
310
  @allow_without_credential = args[:allow_without_credential] if args.key?(:allow_without_credential)
316
- @custom_auth = args[:custom_auth] if args.key?(:custom_auth)
317
311
  @oauth = args[:oauth] if args.key?(:oauth)
318
312
  @requirements = args[:requirements] if args.key?(:requirements)
319
313
  @selector = args[:selector] if args.key?(:selector)
@@ -590,27 +584,6 @@ module Google
590
584
  end
591
585
  end
592
586
 
593
- # Configuration for a custom authentication provider.
594
- class CustomAuthRequirements
595
- include Google::Apis::Core::Hashable
596
-
597
- # A configuration string containing connection information for the
598
- # authentication provider, typically formatted as a SmartService string
599
- # (go/smartservice).
600
- # Corresponds to the JSON property `provider`
601
- # @return [String]
602
- attr_accessor :provider
603
-
604
- def initialize(**args)
605
- update!(**args)
606
- end
607
-
608
- # Update properties of this object
609
- def update!(**args)
610
- @provider = args[:provider] if args.key?(:provider)
611
- end
612
- end
613
-
614
587
  # Customize service error responses. For example, list any service
615
588
  # specific protobuf types that can appear in error detail lists of
616
589
  # error responses.
@@ -100,12 +100,6 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class CustomAuthRequirements
104
- class Representation < Google::Apis::Core::JsonRepresentation; end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
103
  class CustomError
110
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
105
 
@@ -444,8 +438,6 @@ module Google
444
438
  # @private
445
439
  class Representation < Google::Apis::Core::JsonRepresentation
446
440
  property :allow_without_credential, as: 'allowWithoutCredential'
447
- property :custom_auth, as: 'customAuth', class: Google::Apis::ServiceuserV1::CustomAuthRequirements, decorator: Google::Apis::ServiceuserV1::CustomAuthRequirements::Representation
448
-
449
441
  property :oauth, as: 'oauth', class: Google::Apis::ServiceuserV1::OAuthRequirements, decorator: Google::Apis::ServiceuserV1::OAuthRequirements::Representation
450
442
 
451
443
  collection :requirements, as: 'requirements', class: Google::Apis::ServiceuserV1::AuthRequirement, decorator: Google::Apis::ServiceuserV1::AuthRequirement::Representation
@@ -521,13 +513,6 @@ module Google
521
513
  end
522
514
  end
523
515
 
524
- class CustomAuthRequirements
525
- # @private
526
- class Representation < Google::Apis::Core::JsonRepresentation
527
- property :provider, as: 'provider'
528
- end
529
- end
530
-
531
516
  class CustomError
532
517
  # @private
533
518
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/sheets/
26
26
  module SheetsV4
27
27
  VERSION = 'V4'
28
- REVISION = '20180521'
28
+ REVISION = '20180525'
29
29
 
30
30
  # View and manage the files in your Google Drive
31
31
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -748,7 +748,8 @@ module Google
748
748
  # Determines how dates, times, and durations in the response should be
749
749
  # rendered. This is ignored if response_value_render_option is
750
750
  # FORMATTED_VALUE.
751
- # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
751
+ # The default dateTime render option is
752
+ # DateTimeRenderOption.SERIAL_NUMBER.
752
753
  # @param [String] response_value_render_option
753
754
  # Determines how values in the response should be rendered.
754
755
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/storage/transfer
27
27
  module StoragetransferV1
28
28
  VERSION = 'V1'
29
- REVISION = '20180423'
29
+ REVISION = '20180528'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -0,0 +1,34 @@
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/tpu_v1/service.rb'
16
+ require 'google/apis/tpu_v1/classes.rb'
17
+ require 'google/apis/tpu_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Cloud TPU API
22
+ #
23
+ # TPU API provides customers with access to Google TPU technology.
24
+ #
25
+ # @see https://cloud.google.com/tpu/
26
+ module TpuV1
27
+ VERSION = 'V1'
28
+ REVISION = '20180601'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,736 @@
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 TpuV1
24
+
25
+ # A accelerator type that a Node can be configured with.
26
+ class AcceleratorType
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The resource name.
30
+ # Corresponds to the JSON property `name`
31
+ # @return [String]
32
+ attr_accessor :name
33
+
34
+ # the accelerator type.
35
+ # Corresponds to the JSON property `type`
36
+ # @return [String]
37
+ attr_accessor :type
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @name = args[:name] if args.key?(:name)
46
+ @type = args[:type] if args.key?(:type)
47
+ end
48
+ end
49
+
50
+ # A generic empty message that you can re-use to avoid defining duplicated
51
+ # empty messages in your APIs. A typical example is to use it as the request
52
+ # or the response type of an API method. For instance:
53
+ # service Foo `
54
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
55
+ # `
56
+ # The JSON representation for `Empty` is empty JSON object ````.
57
+ class Empty
58
+ include Google::Apis::Core::Hashable
59
+
60
+ def initialize(**args)
61
+ update!(**args)
62
+ end
63
+
64
+ # Update properties of this object
65
+ def update!(**args)
66
+ end
67
+ end
68
+
69
+ # Response for ListAcceleratorTypes.
70
+ class ListAcceleratorTypesResponse
71
+ include Google::Apis::Core::Hashable
72
+
73
+ # The listed nodes.
74
+ # Corresponds to the JSON property `acceleratorTypes`
75
+ # @return [Array<Google::Apis::TpuV1::AcceleratorType>]
76
+ attr_accessor :accelerator_types
77
+
78
+ # The next page token or empty if none.
79
+ # Corresponds to the JSON property `nextPageToken`
80
+ # @return [String]
81
+ attr_accessor :next_page_token
82
+
83
+ def initialize(**args)
84
+ update!(**args)
85
+ end
86
+
87
+ # Update properties of this object
88
+ def update!(**args)
89
+ @accelerator_types = args[:accelerator_types] if args.key?(:accelerator_types)
90
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
91
+ end
92
+ end
93
+
94
+ # The response message for Locations.ListLocations.
95
+ class ListLocationsResponse
96
+ include Google::Apis::Core::Hashable
97
+
98
+ # A list of locations that matches the specified filter in the request.
99
+ # Corresponds to the JSON property `locations`
100
+ # @return [Array<Google::Apis::TpuV1::Location>]
101
+ attr_accessor :locations
102
+
103
+ # The standard List next-page token.
104
+ # Corresponds to the JSON property `nextPageToken`
105
+ # @return [String]
106
+ attr_accessor :next_page_token
107
+
108
+ def initialize(**args)
109
+ update!(**args)
110
+ end
111
+
112
+ # Update properties of this object
113
+ def update!(**args)
114
+ @locations = args[:locations] if args.key?(:locations)
115
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
116
+ end
117
+ end
118
+
119
+ # Response for ListNodes.
120
+ class ListNodesResponse
121
+ include Google::Apis::Core::Hashable
122
+
123
+ # The next page token or empty if none.
124
+ # Corresponds to the JSON property `nextPageToken`
125
+ # @return [String]
126
+ attr_accessor :next_page_token
127
+
128
+ # The listed nodes.
129
+ # Corresponds to the JSON property `nodes`
130
+ # @return [Array<Google::Apis::TpuV1::Node>]
131
+ attr_accessor :nodes
132
+
133
+ def initialize(**args)
134
+ update!(**args)
135
+ end
136
+
137
+ # Update properties of this object
138
+ def update!(**args)
139
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
140
+ @nodes = args[:nodes] if args.key?(:nodes)
141
+ end
142
+ end
143
+
144
+ # The response message for Operations.ListOperations.
145
+ class ListOperationsResponse
146
+ include Google::Apis::Core::Hashable
147
+
148
+ # The standard List next-page token.
149
+ # Corresponds to the JSON property `nextPageToken`
150
+ # @return [String]
151
+ attr_accessor :next_page_token
152
+
153
+ # A list of operations that matches the specified filter in the request.
154
+ # Corresponds to the JSON property `operations`
155
+ # @return [Array<Google::Apis::TpuV1::Operation>]
156
+ attr_accessor :operations
157
+
158
+ def initialize(**args)
159
+ update!(**args)
160
+ end
161
+
162
+ # Update properties of this object
163
+ def update!(**args)
164
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
165
+ @operations = args[:operations] if args.key?(:operations)
166
+ end
167
+ end
168
+
169
+ # Response for ListTensorFlowVersions.
170
+ class ListTensorFlowVersionsResponse
171
+ include Google::Apis::Core::Hashable
172
+
173
+ # The next page token or empty if none.
174
+ # Corresponds to the JSON property `nextPageToken`
175
+ # @return [String]
176
+ attr_accessor :next_page_token
177
+
178
+ # The listed nodes.
179
+ # Corresponds to the JSON property `tensorflowVersions`
180
+ # @return [Array<Google::Apis::TpuV1::TensorFlowVersion>]
181
+ attr_accessor :tensorflow_versions
182
+
183
+ def initialize(**args)
184
+ update!(**args)
185
+ end
186
+
187
+ # Update properties of this object
188
+ def update!(**args)
189
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
190
+ @tensorflow_versions = args[:tensorflow_versions] if args.key?(:tensorflow_versions)
191
+ end
192
+ end
193
+
194
+ # A resource that represents Google Cloud Platform location.
195
+ class Location
196
+ include Google::Apis::Core::Hashable
197
+
198
+ # The friendly name for this location, typically a nearby city name.
199
+ # For example, "Tokyo".
200
+ # Corresponds to the JSON property `displayName`
201
+ # @return [String]
202
+ attr_accessor :display_name
203
+
204
+ # Cross-service attributes for the location. For example
205
+ # `"cloud.googleapis.com/region": "us-east1"`
206
+ # Corresponds to the JSON property `labels`
207
+ # @return [Hash<String,String>]
208
+ attr_accessor :labels
209
+
210
+ # The canonical id for this location. For example: `"us-east1"`.
211
+ # Corresponds to the JSON property `locationId`
212
+ # @return [String]
213
+ attr_accessor :location_id
214
+
215
+ # Service-specific metadata. For example the available capacity at the given
216
+ # location.
217
+ # Corresponds to the JSON property `metadata`
218
+ # @return [Hash<String,Object>]
219
+ attr_accessor :metadata
220
+
221
+ # Resource name for the location, which may vary between implementations.
222
+ # For example: `"projects/example-project/locations/us-east1"`
223
+ # Corresponds to the JSON property `name`
224
+ # @return [String]
225
+ attr_accessor :name
226
+
227
+ def initialize(**args)
228
+ update!(**args)
229
+ end
230
+
231
+ # Update properties of this object
232
+ def update!(**args)
233
+ @display_name = args[:display_name] if args.key?(:display_name)
234
+ @labels = args[:labels] if args.key?(:labels)
235
+ @location_id = args[:location_id] if args.key?(:location_id)
236
+ @metadata = args[:metadata] if args.key?(:metadata)
237
+ @name = args[:name] if args.key?(:name)
238
+ end
239
+ end
240
+
241
+ # A network endpoint over which a TPU worker can be reached.
242
+ class NetworkEndpoint
243
+ include Google::Apis::Core::Hashable
244
+
245
+ # The IP address of this network endpoint.
246
+ # Corresponds to the JSON property `ipAddress`
247
+ # @return [String]
248
+ attr_accessor :ip_address
249
+
250
+ # The port of this network endpoint.
251
+ # Corresponds to the JSON property `port`
252
+ # @return [Fixnum]
253
+ attr_accessor :port
254
+
255
+ def initialize(**args)
256
+ update!(**args)
257
+ end
258
+
259
+ # Update properties of this object
260
+ def update!(**args)
261
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
262
+ @port = args[:port] if args.key?(:port)
263
+ end
264
+ end
265
+
266
+ # A TPU instance.
267
+ class Node
268
+ include Google::Apis::Core::Hashable
269
+
270
+ # The type of hardware accelerators associated with this node.
271
+ # Required.
272
+ # Corresponds to the JSON property `acceleratorType`
273
+ # @return [String]
274
+ attr_accessor :accelerator_type
275
+
276
+ # The CIDR block that the TPU node will use when selecting an IP address.
277
+ # This CIDR block must be a /29 block; the Compute Engine networks API
278
+ # forbids a smaller block, and using a larger block would be wasteful (a
279
+ # node can only consume one IP address). Errors will occur if the CIDR block
280
+ # has already been used for a currently existing TPU node, the CIDR block
281
+ # conflicts with any subnetworks in the user's provided network, or the
282
+ # provided network is peered with another network that is using that CIDR
283
+ # block.
284
+ # Required.
285
+ # Corresponds to the JSON property `cidrBlock`
286
+ # @return [String]
287
+ attr_accessor :cidr_block
288
+
289
+ # Output only.
290
+ # The time when the node was created.
291
+ # Corresponds to the JSON property `createTime`
292
+ # @return [String]
293
+ attr_accessor :create_time
294
+
295
+ # The user-supplied description of the TPU. Maximum of 512 characters.
296
+ # Corresponds to the JSON property `description`
297
+ # @return [String]
298
+ attr_accessor :description
299
+
300
+ # The health status of the TPU node.
301
+ # Corresponds to the JSON property `health`
302
+ # @return [String]
303
+ attr_accessor :health
304
+
305
+ # Output only.
306
+ # If this field is populated, it contains a description of why the TPU Node
307
+ # is unhealthy.
308
+ # Corresponds to the JSON property `healthDescription`
309
+ # @return [String]
310
+ attr_accessor :health_description
311
+
312
+ # Output only.
313
+ # DEPRECATED! Use network_endpoints instead.
314
+ # The network address for the TPU Node as visible to Compute Engine
315
+ # instances.
316
+ # Corresponds to the JSON property `ipAddress`
317
+ # @return [String]
318
+ attr_accessor :ip_address
319
+
320
+ # Resource labels to represent user-provided metadata.
321
+ # Corresponds to the JSON property `labels`
322
+ # @return [Hash<String,String>]
323
+ attr_accessor :labels
324
+
325
+ # Output only.
326
+ # The immutable name of the TPU
327
+ # Corresponds to the JSON property `name`
328
+ # @return [String]
329
+ attr_accessor :name
330
+
331
+ # The name of a network they wish to peer the TPU node to. It must be a
332
+ # preexisting Compute Engine network inside of the project on which this API
333
+ # has been activated. If none is provided, "default" will be used.
334
+ # Corresponds to the JSON property `network`
335
+ # @return [String]
336
+ attr_accessor :network
337
+
338
+ # Output only. The network endpoints where TPU workers can be accessed and sent
339
+ # work.
340
+ # It is recommended that Tensorflow clients of the node reach out to the 0th
341
+ # entry in this map first.
342
+ # Corresponds to the JSON property `networkEndpoints`
343
+ # @return [Array<Google::Apis::TpuV1::NetworkEndpoint>]
344
+ attr_accessor :network_endpoints
345
+
346
+ # Output only.
347
+ # DEPRECATED! Use network_endpoints instead.
348
+ # The network port for the TPU Node as visible to Compute Engine instances.
349
+ # Corresponds to the JSON property `port`
350
+ # @return [String]
351
+ attr_accessor :port
352
+
353
+ #
354
+ # Corresponds to the JSON property `schedulingConfig`
355
+ # @return [Google::Apis::TpuV1::SchedulingConfig]
356
+ attr_accessor :scheduling_config
357
+
358
+ # Output only.
359
+ # The service account used to run the tensor flow services within the node.
360
+ # To share resources, including Google Cloud Storage data, with the
361
+ # Tensorflow job running in the Node, this account must have permissions to
362
+ # that data.
363
+ # Corresponds to the JSON property `serviceAccount`
364
+ # @return [String]
365
+ attr_accessor :service_account
366
+
367
+ # Output only.
368
+ # The current state for the TPU Node.
369
+ # Corresponds to the JSON property `state`
370
+ # @return [String]
371
+ attr_accessor :state
372
+
373
+ # The version of Tensorflow running in the Node.
374
+ # Required.
375
+ # Corresponds to the JSON property `tensorflowVersion`
376
+ # @return [String]
377
+ attr_accessor :tensorflow_version
378
+
379
+ def initialize(**args)
380
+ update!(**args)
381
+ end
382
+
383
+ # Update properties of this object
384
+ def update!(**args)
385
+ @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
386
+ @cidr_block = args[:cidr_block] if args.key?(:cidr_block)
387
+ @create_time = args[:create_time] if args.key?(:create_time)
388
+ @description = args[:description] if args.key?(:description)
389
+ @health = args[:health] if args.key?(:health)
390
+ @health_description = args[:health_description] if args.key?(:health_description)
391
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
392
+ @labels = args[:labels] if args.key?(:labels)
393
+ @name = args[:name] if args.key?(:name)
394
+ @network = args[:network] if args.key?(:network)
395
+ @network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
396
+ @port = args[:port] if args.key?(:port)
397
+ @scheduling_config = args[:scheduling_config] if args.key?(:scheduling_config)
398
+ @service_account = args[:service_account] if args.key?(:service_account)
399
+ @state = args[:state] if args.key?(:state)
400
+ @tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version)
401
+ end
402
+ end
403
+
404
+ # This resource represents a long-running operation that is the result of a
405
+ # network API call.
406
+ class Operation
407
+ include Google::Apis::Core::Hashable
408
+
409
+ # If the value is `false`, it means the operation is still in progress.
410
+ # If `true`, the operation is completed, and either `error` or `response` is
411
+ # available.
412
+ # Corresponds to the JSON property `done`
413
+ # @return [Boolean]
414
+ attr_accessor :done
415
+ alias_method :done?, :done
416
+
417
+ # The `Status` type defines a logical error model that is suitable for different
418
+ # programming environments, including REST APIs and RPC APIs. It is used by
419
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
420
+ # - Simple to use and understand for most users
421
+ # - Flexible enough to meet unexpected needs
422
+ # # Overview
423
+ # The `Status` message contains three pieces of data: error code, error message,
424
+ # and error details. The error code should be an enum value of
425
+ # google.rpc.Code, but it may accept additional error codes if needed. The
426
+ # error message should be a developer-facing English message that helps
427
+ # developers *understand* and *resolve* the error. If a localized user-facing
428
+ # error message is needed, put the localized message in the error details or
429
+ # localize it in the client. The optional error details may contain arbitrary
430
+ # information about the error. There is a predefined set of error detail types
431
+ # in the package `google.rpc` that can be used for common error conditions.
432
+ # # Language mapping
433
+ # The `Status` message is the logical representation of the error model, but it
434
+ # is not necessarily the actual wire format. When the `Status` message is
435
+ # exposed in different client libraries and different wire protocols, it can be
436
+ # mapped differently. For example, it will likely be mapped to some exceptions
437
+ # in Java, but more likely mapped to some error codes in C.
438
+ # # Other uses
439
+ # The error model and the `Status` message can be used in a variety of
440
+ # environments, either with or without APIs, to provide a
441
+ # consistent developer experience across different environments.
442
+ # Example uses of this error model include:
443
+ # - Partial errors. If a service needs to return partial errors to the client,
444
+ # it may embed the `Status` in the normal response to indicate the partial
445
+ # errors.
446
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
447
+ # have a `Status` message for error reporting.
448
+ # - Batch operations. If a client uses batch request and batch response, the
449
+ # `Status` message should be used directly inside batch response, one for
450
+ # each error sub-response.
451
+ # - Asynchronous operations. If an API call embeds asynchronous operation
452
+ # results in its response, the status of those operations should be
453
+ # represented directly using the `Status` message.
454
+ # - Logging. If some API errors are stored in logs, the message `Status` could
455
+ # be used directly after any stripping needed for security/privacy reasons.
456
+ # Corresponds to the JSON property `error`
457
+ # @return [Google::Apis::TpuV1::Status]
458
+ attr_accessor :error
459
+
460
+ # Service-specific metadata associated with the operation. It typically
461
+ # contains progress information and common metadata such as create time.
462
+ # Some services might not provide such metadata. Any method that returns a
463
+ # long-running operation should document the metadata type, if any.
464
+ # Corresponds to the JSON property `metadata`
465
+ # @return [Hash<String,Object>]
466
+ attr_accessor :metadata
467
+
468
+ # The server-assigned name, which is only unique within the same service that
469
+ # originally returns it. If you use the default HTTP mapping, the
470
+ # `name` should have the format of `operations/some/unique/name`.
471
+ # Corresponds to the JSON property `name`
472
+ # @return [String]
473
+ attr_accessor :name
474
+
475
+ # The normal response of the operation in case of success. If the original
476
+ # method returns no data on success, such as `Delete`, the response is
477
+ # `google.protobuf.Empty`. If the original method is standard
478
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
479
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
480
+ # is the original method name. For example, if the original method name
481
+ # is `TakeSnapshot()`, the inferred response type is
482
+ # `TakeSnapshotResponse`.
483
+ # Corresponds to the JSON property `response`
484
+ # @return [Hash<String,Object>]
485
+ attr_accessor :response
486
+
487
+ def initialize(**args)
488
+ update!(**args)
489
+ end
490
+
491
+ # Update properties of this object
492
+ def update!(**args)
493
+ @done = args[:done] if args.key?(:done)
494
+ @error = args[:error] if args.key?(:error)
495
+ @metadata = args[:metadata] if args.key?(:metadata)
496
+ @name = args[:name] if args.key?(:name)
497
+ @response = args[:response] if args.key?(:response)
498
+ end
499
+ end
500
+
501
+ # Represents the metadata of the long-running operation.
502
+ class OperationMetadata
503
+ include Google::Apis::Core::Hashable
504
+
505
+ # [Output only] API version used to start the operation.
506
+ # Corresponds to the JSON property `apiVersion`
507
+ # @return [String]
508
+ attr_accessor :api_version
509
+
510
+ # [Output only] Identifies whether the user has requested cancellation
511
+ # of the operation. Operations that have successfully been cancelled
512
+ # have Operation.error value with a google.rpc.Status.code of 1,
513
+ # corresponding to `Code.CANCELLED`.
514
+ # Corresponds to the JSON property `cancelRequested`
515
+ # @return [Boolean]
516
+ attr_accessor :cancel_requested
517
+ alias_method :cancel_requested?, :cancel_requested
518
+
519
+ # [Output only] The time the operation was created.
520
+ # Corresponds to the JSON property `createTime`
521
+ # @return [String]
522
+ attr_accessor :create_time
523
+
524
+ # [Output only] The time the operation finished running.
525
+ # Corresponds to the JSON property `endTime`
526
+ # @return [String]
527
+ attr_accessor :end_time
528
+
529
+ # [Output only] Human-readable status of the operation, if any.
530
+ # Corresponds to the JSON property `statusDetail`
531
+ # @return [String]
532
+ attr_accessor :status_detail
533
+
534
+ # [Output only] Server-defined resource path for the target of the operation.
535
+ # Corresponds to the JSON property `target`
536
+ # @return [String]
537
+ attr_accessor :target
538
+
539
+ # [Output only] Name of the verb executed by the operation.
540
+ # Corresponds to the JSON property `verb`
541
+ # @return [String]
542
+ attr_accessor :verb
543
+
544
+ def initialize(**args)
545
+ update!(**args)
546
+ end
547
+
548
+ # Update properties of this object
549
+ def update!(**args)
550
+ @api_version = args[:api_version] if args.key?(:api_version)
551
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
552
+ @create_time = args[:create_time] if args.key?(:create_time)
553
+ @end_time = args[:end_time] if args.key?(:end_time)
554
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
555
+ @target = args[:target] if args.key?(:target)
556
+ @verb = args[:verb] if args.key?(:verb)
557
+ end
558
+ end
559
+
560
+ # Request for ReimageNode.
561
+ class ReimageNodeRequest
562
+ include Google::Apis::Core::Hashable
563
+
564
+ # The version for reimage to create.
565
+ # Corresponds to the JSON property `tensorflowVersion`
566
+ # @return [String]
567
+ attr_accessor :tensorflow_version
568
+
569
+ def initialize(**args)
570
+ update!(**args)
571
+ end
572
+
573
+ # Update properties of this object
574
+ def update!(**args)
575
+ @tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version)
576
+ end
577
+ end
578
+
579
+ # Request for ResetNode.
580
+ class ResetNodeRequest
581
+ include Google::Apis::Core::Hashable
582
+
583
+ def initialize(**args)
584
+ update!(**args)
585
+ end
586
+
587
+ # Update properties of this object
588
+ def update!(**args)
589
+ end
590
+ end
591
+
592
+ #
593
+ class SchedulingConfig
594
+ include Google::Apis::Core::Hashable
595
+
596
+ #
597
+ # Corresponds to the JSON property `preemptible`
598
+ # @return [Boolean]
599
+ attr_accessor :preemptible
600
+ alias_method :preemptible?, :preemptible
601
+
602
+ def initialize(**args)
603
+ update!(**args)
604
+ end
605
+
606
+ # Update properties of this object
607
+ def update!(**args)
608
+ @preemptible = args[:preemptible] if args.key?(:preemptible)
609
+ end
610
+ end
611
+
612
+ # Request for StartNode.
613
+ class StartNodeRequest
614
+ include Google::Apis::Core::Hashable
615
+
616
+ def initialize(**args)
617
+ update!(**args)
618
+ end
619
+
620
+ # Update properties of this object
621
+ def update!(**args)
622
+ end
623
+ end
624
+
625
+ # The `Status` type defines a logical error model that is suitable for different
626
+ # programming environments, including REST APIs and RPC APIs. It is used by
627
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
628
+ # - Simple to use and understand for most users
629
+ # - Flexible enough to meet unexpected needs
630
+ # # Overview
631
+ # The `Status` message contains three pieces of data: error code, error message,
632
+ # and error details. The error code should be an enum value of
633
+ # google.rpc.Code, but it may accept additional error codes if needed. The
634
+ # error message should be a developer-facing English message that helps
635
+ # developers *understand* and *resolve* the error. If a localized user-facing
636
+ # error message is needed, put the localized message in the error details or
637
+ # localize it in the client. The optional error details may contain arbitrary
638
+ # information about the error. There is a predefined set of error detail types
639
+ # in the package `google.rpc` that can be used for common error conditions.
640
+ # # Language mapping
641
+ # The `Status` message is the logical representation of the error model, but it
642
+ # is not necessarily the actual wire format. When the `Status` message is
643
+ # exposed in different client libraries and different wire protocols, it can be
644
+ # mapped differently. For example, it will likely be mapped to some exceptions
645
+ # in Java, but more likely mapped to some error codes in C.
646
+ # # Other uses
647
+ # The error model and the `Status` message can be used in a variety of
648
+ # environments, either with or without APIs, to provide a
649
+ # consistent developer experience across different environments.
650
+ # Example uses of this error model include:
651
+ # - Partial errors. If a service needs to return partial errors to the client,
652
+ # it may embed the `Status` in the normal response to indicate the partial
653
+ # errors.
654
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
655
+ # have a `Status` message for error reporting.
656
+ # - Batch operations. If a client uses batch request and batch response, the
657
+ # `Status` message should be used directly inside batch response, one for
658
+ # each error sub-response.
659
+ # - Asynchronous operations. If an API call embeds asynchronous operation
660
+ # results in its response, the status of those operations should be
661
+ # represented directly using the `Status` message.
662
+ # - Logging. If some API errors are stored in logs, the message `Status` could
663
+ # be used directly after any stripping needed for security/privacy reasons.
664
+ class Status
665
+ include Google::Apis::Core::Hashable
666
+
667
+ # The status code, which should be an enum value of google.rpc.Code.
668
+ # Corresponds to the JSON property `code`
669
+ # @return [Fixnum]
670
+ attr_accessor :code
671
+
672
+ # A list of messages that carry the error details. There is a common set of
673
+ # message types for APIs to use.
674
+ # Corresponds to the JSON property `details`
675
+ # @return [Array<Hash<String,Object>>]
676
+ attr_accessor :details
677
+
678
+ # A developer-facing error message, which should be in English. Any
679
+ # user-facing error message should be localized and sent in the
680
+ # google.rpc.Status.details field, or localized by the client.
681
+ # Corresponds to the JSON property `message`
682
+ # @return [String]
683
+ attr_accessor :message
684
+
685
+ def initialize(**args)
686
+ update!(**args)
687
+ end
688
+
689
+ # Update properties of this object
690
+ def update!(**args)
691
+ @code = args[:code] if args.key?(:code)
692
+ @details = args[:details] if args.key?(:details)
693
+ @message = args[:message] if args.key?(:message)
694
+ end
695
+ end
696
+
697
+ # Request for StopNode.
698
+ class StopNodeRequest
699
+ include Google::Apis::Core::Hashable
700
+
701
+ def initialize(**args)
702
+ update!(**args)
703
+ end
704
+
705
+ # Update properties of this object
706
+ def update!(**args)
707
+ end
708
+ end
709
+
710
+ # A tensorflow version that a Node can be configured with.
711
+ class TensorFlowVersion
712
+ include Google::Apis::Core::Hashable
713
+
714
+ # The resource name.
715
+ # Corresponds to the JSON property `name`
716
+ # @return [String]
717
+ attr_accessor :name
718
+
719
+ # the tensorflow version.
720
+ # Corresponds to the JSON property `version`
721
+ # @return [String]
722
+ attr_accessor :version
723
+
724
+ def initialize(**args)
725
+ update!(**args)
726
+ end
727
+
728
+ # Update properties of this object
729
+ def update!(**args)
730
+ @name = args[:name] if args.key?(:name)
731
+ @version = args[:version] if args.key?(:version)
732
+ end
733
+ end
734
+ end
735
+ end
736
+ end