google-api-client 0.17.1 → 0.17.2

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 (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
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/slides/
26
26
  module SlidesV1
27
27
  VERSION = 'V1'
28
- REVISION = '20171023'
28
+ REVISION = '20171113'
29
29
 
30
30
  # View and manage the files in your Google Drive
31
31
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -3295,6 +3295,14 @@ module Google
3295
3295
  class ShapeProperties
3296
3296
  include Google::Apis::Core::Hashable
3297
3297
 
3298
+ # The alignment of the content in the shape. If unspecified,
3299
+ # the alignment is inherited from a parent placeholder if it exists. If the
3300
+ # shape has no parent, the default alignment matches the alignment for new
3301
+ # shapes created in the Slides editor.
3302
+ # Corresponds to the JSON property `contentAlignment`
3303
+ # @return [String]
3304
+ attr_accessor :content_alignment
3305
+
3298
3306
  # A hypertext link.
3299
3307
  # Corresponds to the JSON property `link`
3300
3308
  # @return [Google::Apis::SlidesV1::Link]
@@ -3329,6 +3337,7 @@ module Google
3329
3337
 
3330
3338
  # Update properties of this object
3331
3339
  def update!(**args)
3340
+ @content_alignment = args[:content_alignment] if args.key?(:content_alignment)
3332
3341
  @link = args[:link] if args.key?(:link)
3333
3342
  @outline = args[:outline] if args.key?(:outline)
3334
3343
  @shadow = args[:shadow] if args.key?(:shadow)
@@ -3816,6 +3825,12 @@ module Google
3816
3825
  class TableCellProperties
3817
3826
  include Google::Apis::Core::Hashable
3818
3827
 
3828
+ # The alignment of the content in the table cell. The default alignment
3829
+ # matches the alignment for newly created table cells in the Slides editor.
3830
+ # Corresponds to the JSON property `contentAlignment`
3831
+ # @return [String]
3832
+ attr_accessor :content_alignment
3833
+
3819
3834
  # The table cell background fill.
3820
3835
  # Corresponds to the JSON property `tableCellBackgroundFill`
3821
3836
  # @return [Google::Apis::SlidesV1::TableCellBackgroundFill]
@@ -3827,6 +3842,7 @@ module Google
3827
3842
 
3828
3843
  # Update properties of this object
3829
3844
  def update!(**args)
3845
+ @content_alignment = args[:content_alignment] if args.key?(:content_alignment)
3830
3846
  @table_cell_background_fill = args[:table_cell_background_fill] if args.key?(:table_cell_background_fill)
3831
3847
  end
3832
3848
  end
@@ -1680,6 +1680,7 @@ module Google
1680
1680
  class ShapeProperties
1681
1681
  # @private
1682
1682
  class Representation < Google::Apis::Core::JsonRepresentation
1683
+ property :content_alignment, as: 'contentAlignment'
1683
1684
  property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
1684
1685
 
1685
1686
  property :outline, as: 'outline', class: Google::Apis::SlidesV1::Outline, decorator: Google::Apis::SlidesV1::Outline::Representation
@@ -1843,6 +1844,7 @@ module Google
1843
1844
  class TableCellProperties
1844
1845
  # @private
1845
1846
  class Representation < Google::Apis::Core::JsonRepresentation
1847
+ property :content_alignment, as: 'contentAlignment'
1846
1848
  property :table_cell_background_fill, as: 'tableCellBackgroundFill', class: Google::Apis::SlidesV1::TableCellBackgroundFill, decorator: Google::Apis::SlidesV1::TableCellBackgroundFill::Representation
1847
1849
 
1848
1850
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/source-repositories/docs/apis
26
26
  module SourcerepoV1
27
27
  VERSION = 'V1'
28
- REVISION = '20171011'
28
+ REVISION = '20171110'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -420,13 +420,14 @@ module Google
420
420
  # @return [String]
421
421
  attr_accessor :name
422
422
 
423
- # The disk usage of the repo, in bytes.
424
- # Only returned by GetRepo.
423
+ # The disk usage of the repo, in bytes. Read-only field. Size is only
424
+ # returned by GetRepo.
425
425
  # Corresponds to the JSON property `size`
426
426
  # @return [Fixnum]
427
427
  attr_accessor :size
428
428
 
429
429
  # URL to clone the repository from Google Cloud Source Repositories.
430
+ # Read-only field.
430
431
  # Corresponds to the JSON property `url`
431
432
  # @return [String]
432
433
  attr_accessor :url
@@ -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 = '20170918'
29
+ REVISION = '20171109'
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'
@@ -719,8 +719,8 @@ module Google
719
719
  attr_accessor :bytes_failed_to_delete_from_sink
720
720
 
721
721
  # Bytes found in the data source that are scheduled to be transferred,
722
- # which will be copied, excluded based on conditions, or skipped due to
723
- # failures.
722
+ # excluding any that are filtered based on object conditions or skipped due
723
+ # to sync.
724
724
  # Corresponds to the JSON property `bytesFoundFromSource`
725
725
  # @return [Fixnum]
726
726
  attr_accessor :bytes_found_from_source
@@ -762,8 +762,8 @@ module Google
762
762
  attr_accessor :objects_failed_to_delete_from_sink
763
763
 
764
764
  # Objects found in the data source that are scheduled to be transferred,
765
- # which will be copied, excluded based on conditions, or skipped due to
766
- # failures.
765
+ # excluding any that are filtered based on object conditions or skipped due
766
+ # to sync.
767
767
  # Corresponds to the JSON property `objectsFoundFromSource`
768
768
  # @return [Fixnum]
769
769
  attr_accessor :objects_found_from_source
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://firebase.google.com/docs/test-lab/
26
26
  module ToolresultsV1beta3
27
27
  VERSION = 'V1beta3'
28
- REVISION = '20171026'
28
+ REVISION = '20171113'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -590,9 +590,9 @@ module Google
590
590
  # datetime.datetime` object can be converted to this format using [`strftime`](
591
591
  # https://docs.python.org/2/library/time.html#time.strftime) with the time
592
592
  # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda
593
- # Time's [`ISODateTimeFormat.dateTime()`]( http://joda-time.sourceforge.net/
594
- # apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()) to obtain a
595
- # formatter capable of generating timestamps in this format.
593
+ # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
594
+ # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
595
+ # capable of generating timestamps in this format.
596
596
  # Corresponds to the JSON property `completionTime`
597
597
  # @return [Google::Apis::ToolresultsV1beta3::Timestamp]
598
598
  attr_accessor :completion_time
@@ -644,9 +644,9 @@ module Google
644
644
  # datetime.datetime` object can be converted to this format using [`strftime`](
645
645
  # https://docs.python.org/2/library/time.html#time.strftime) with the time
646
646
  # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda
647
- # Time's [`ISODateTimeFormat.dateTime()`]( http://joda-time.sourceforge.net/
648
- # apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()) to obtain a
649
- # formatter capable of generating timestamps in this format.
647
+ # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
648
+ # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
649
+ # capable of generating timestamps in this format.
650
650
  # Corresponds to the JSON property `creationTime`
651
651
  # @return [Google::Apis::ToolresultsV1beta3::Timestamp]
652
652
  attr_accessor :creation_time
@@ -1439,9 +1439,9 @@ module Google
1439
1439
  # datetime.datetime` object can be converted to this format using [`strftime`](
1440
1440
  # https://docs.python.org/2/library/time.html#time.strftime) with the time
1441
1441
  # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda
1442
- # Time's [`ISODateTimeFormat.dateTime()`]( http://joda-time.sourceforge.net/
1443
- # apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()) to obtain a
1444
- # formatter capable of generating timestamps in this format.
1442
+ # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
1443
+ # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
1444
+ # capable of generating timestamps in this format.
1445
1445
  # Corresponds to the JSON property `sampleTime`
1446
1446
  # @return [Google::Apis::ToolresultsV1beta3::Timestamp]
1447
1447
  attr_accessor :sample_time
@@ -1859,9 +1859,9 @@ module Google
1859
1859
  # datetime.datetime` object can be converted to this format using [`strftime`](
1860
1860
  # https://docs.python.org/2/library/time.html#time.strftime) with the time
1861
1861
  # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda
1862
- # Time's [`ISODateTimeFormat.dateTime()`]( http://joda-time.sourceforge.net/
1863
- # apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()) to obtain a
1864
- # formatter capable of generating timestamps in this format.
1862
+ # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
1863
+ # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
1864
+ # capable of generating timestamps in this format.
1865
1865
  # Corresponds to the JSON property `completionTime`
1866
1866
  # @return [Google::Apis::ToolresultsV1beta3::Timestamp]
1867
1867
  attr_accessor :completion_time
@@ -1913,9 +1913,9 @@ module Google
1913
1913
  # datetime.datetime` object can be converted to this format using [`strftime`](
1914
1914
  # https://docs.python.org/2/library/time.html#time.strftime) with the time
1915
1915
  # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda
1916
- # Time's [`ISODateTimeFormat.dateTime()`]( http://joda-time.sourceforge.net/
1917
- # apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()) to obtain a
1918
- # formatter capable of generating timestamps in this format.
1916
+ # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
1917
+ # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
1918
+ # capable of generating timestamps in this format.
1919
1919
  # Corresponds to the JSON property `creationTime`
1920
1920
  # @return [Google::Apis::ToolresultsV1beta3::Timestamp]
1921
1921
  attr_accessor :creation_time
@@ -2543,9 +2543,9 @@ module Google
2543
2543
  # datetime.datetime` object can be converted to this format using [`strftime`](
2544
2544
  # https://docs.python.org/2/library/time.html#time.strftime) with the time
2545
2545
  # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda
2546
- # Time's [`ISODateTimeFormat.dateTime()`]( http://joda-time.sourceforge.net/
2547
- # apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()) to obtain a
2548
- # formatter capable of generating timestamps in this format.
2546
+ # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
2547
+ # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
2548
+ # capable of generating timestamps in this format.
2549
2549
  class Timestamp
2550
2550
  include Google::Apis::Core::Hashable
2551
2551
 
@@ -2716,9 +2716,9 @@ module Google
2716
2716
  # datetime.datetime` object can be converted to this format using [`strftime`](
2717
2717
  # https://docs.python.org/2/library/time.html#time.strftime) with the time
2718
2718
  # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda
2719
- # Time's [`ISODateTimeFormat.dateTime()`]( http://joda-time.sourceforge.net/
2720
- # apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()) to obtain a
2721
- # formatter capable of generating timestamps in this format.
2719
+ # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
2720
+ # org/joda/time/format/ISODateTimeFormat.html#dateTime-- ) to obtain a formatter
2721
+ # capable of generating timestamps in this format.
2722
2722
  # Corresponds to the JSON property `creationTime`
2723
2723
  # @return [Google::Apis::ToolresultsV1beta3::Timestamp]
2724
2724
  attr_accessor :creation_time
@@ -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_v1alpha1/service.rb'
16
+ require 'google/apis/tpu_v1alpha1/classes.rb'
17
+ require 'google/apis/tpu_v1alpha1/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 TpuV1alpha1
27
+ VERSION = 'V1alpha1'
28
+ REVISION = '20171108'
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,530 @@
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
+ # A generic empty message that you can re-use to avoid defining duplicated
26
+ # empty messages in your APIs. A typical example is to use it as the request
27
+ # or the response type of an API method. For instance:
28
+ # service Foo `
29
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
30
+ # `
31
+ # The JSON representation for `Empty` is empty JSON object ````.
32
+ class Empty
33
+ include Google::Apis::Core::Hashable
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ end
42
+ end
43
+
44
+ # The response message for Locations.ListLocations.
45
+ class ListLocationsResponse
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # A list of locations that matches the specified filter in the request.
49
+ # Corresponds to the JSON property `locations`
50
+ # @return [Array<Google::Apis::TpuV1alpha1::Location>]
51
+ attr_accessor :locations
52
+
53
+ # The standard List next-page token.
54
+ # Corresponds to the JSON property `nextPageToken`
55
+ # @return [String]
56
+ attr_accessor :next_page_token
57
+
58
+ def initialize(**args)
59
+ update!(**args)
60
+ end
61
+
62
+ # Update properties of this object
63
+ def update!(**args)
64
+ @locations = args[:locations] if args.key?(:locations)
65
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
66
+ end
67
+ end
68
+
69
+ # Response for ListNodes.
70
+ class ListNodesResponse
71
+ include Google::Apis::Core::Hashable
72
+
73
+ # The next page token or empty if none.
74
+ # Corresponds to the JSON property `nextPageToken`
75
+ # @return [String]
76
+ attr_accessor :next_page_token
77
+
78
+ # The listed nodes.
79
+ # Corresponds to the JSON property `nodes`
80
+ # @return [Array<Google::Apis::TpuV1alpha1::Node>]
81
+ attr_accessor :nodes
82
+
83
+ def initialize(**args)
84
+ update!(**args)
85
+ end
86
+
87
+ # Update properties of this object
88
+ def update!(**args)
89
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
90
+ @nodes = args[:nodes] if args.key?(:nodes)
91
+ end
92
+ end
93
+
94
+ # The response message for Operations.ListOperations.
95
+ class ListOperationsResponse
96
+ include Google::Apis::Core::Hashable
97
+
98
+ # The standard List next-page token.
99
+ # Corresponds to the JSON property `nextPageToken`
100
+ # @return [String]
101
+ attr_accessor :next_page_token
102
+
103
+ # A list of operations that matches the specified filter in the request.
104
+ # Corresponds to the JSON property `operations`
105
+ # @return [Array<Google::Apis::TpuV1alpha1::Operation>]
106
+ attr_accessor :operations
107
+
108
+ def initialize(**args)
109
+ update!(**args)
110
+ end
111
+
112
+ # Update properties of this object
113
+ def update!(**args)
114
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
115
+ @operations = args[:operations] if args.key?(:operations)
116
+ end
117
+ end
118
+
119
+ # A resource that represents Google Cloud Platform location.
120
+ class Location
121
+ include Google::Apis::Core::Hashable
122
+
123
+ # Cross-service attributes for the location. For example
124
+ # `"cloud.googleapis.com/region": "us-east1"`
125
+ # Corresponds to the JSON property `labels`
126
+ # @return [Hash<String,String>]
127
+ attr_accessor :labels
128
+
129
+ # The canonical id for this location. For example: `"us-east1"`.
130
+ # Corresponds to the JSON property `locationId`
131
+ # @return [String]
132
+ attr_accessor :location_id
133
+
134
+ # Service-specific metadata. For example the available capacity at the given
135
+ # location.
136
+ # Corresponds to the JSON property `metadata`
137
+ # @return [Hash<String,Object>]
138
+ attr_accessor :metadata
139
+
140
+ # Resource name for the location, which may vary between implementations.
141
+ # For example: `"projects/example-project/locations/us-east1"`
142
+ # Corresponds to the JSON property `name`
143
+ # @return [String]
144
+ attr_accessor :name
145
+
146
+ def initialize(**args)
147
+ update!(**args)
148
+ end
149
+
150
+ # Update properties of this object
151
+ def update!(**args)
152
+ @labels = args[:labels] if args.key?(:labels)
153
+ @location_id = args[:location_id] if args.key?(:location_id)
154
+ @metadata = args[:metadata] if args.key?(:metadata)
155
+ @name = args[:name] if args.key?(:name)
156
+ end
157
+ end
158
+
159
+ # A network endpoint over which a TPU worker can be reached.
160
+ class NetworkEndpoint
161
+ include Google::Apis::Core::Hashable
162
+
163
+ # The IP address of this network endpoint.
164
+ # Corresponds to the JSON property `ipAddress`
165
+ # @return [String]
166
+ attr_accessor :ip_address
167
+
168
+ # The port of this network endpoint.
169
+ # Corresponds to the JSON property `port`
170
+ # @return [Fixnum]
171
+ attr_accessor :port
172
+
173
+ def initialize(**args)
174
+ update!(**args)
175
+ end
176
+
177
+ # Update properties of this object
178
+ def update!(**args)
179
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
180
+ @port = args[:port] if args.key?(:port)
181
+ end
182
+ end
183
+
184
+ # A TPU instance.
185
+ class Node
186
+ include Google::Apis::Core::Hashable
187
+
188
+ # The type of hardware accelerators associated with this node.
189
+ # Required.
190
+ # Corresponds to the JSON property `acceleratorType`
191
+ # @return [String]
192
+ attr_accessor :accelerator_type
193
+
194
+ # The CIDR block that the TPU node will use when selecting //an IP address.
195
+ # This CIDR block must be a /29 block; the GCE networks API forbids a smaller
196
+ # block, and using a larger block would be wasteful (a node can only consume
197
+ # one IP address). Errors will occur if the CIDR block has already been used
198
+ # for a currently existing TPU node, the CIDR block conflicts with any
199
+ # subnetworks in the user's provided network, or the provided network is
200
+ # peered with another network that is using that CIDR block.
201
+ # Required.
202
+ # Corresponds to the JSON property `cidrBlock`
203
+ # @return [String]
204
+ attr_accessor :cidr_block
205
+
206
+ # The time when the node was created.
207
+ # Output only.
208
+ # Corresponds to the JSON property `createTime`
209
+ # @return [String]
210
+ attr_accessor :create_time
211
+
212
+ # The user-supplied description of the TPU. Maximum of 512 characters.
213
+ # Corresponds to the JSON property `description`
214
+ # @return [String]
215
+ attr_accessor :description
216
+
217
+ # If this field is populated, it contains a description of why the TPU Node
218
+ # is unhealthy.
219
+ # Output only.
220
+ # Corresponds to the JSON property `healthDescription`
221
+ # @return [String]
222
+ attr_accessor :health_description
223
+
224
+ # Output only.
225
+ # DEPRECATED! Use network_endpoints instead.
226
+ # The network address for the TPU Node as visible to GCE instances.
227
+ # Corresponds to the JSON property `ipAddress`
228
+ # @return [String]
229
+ attr_accessor :ip_address
230
+
231
+ # The immutable name of the TPU
232
+ # Corresponds to the JSON property `name`
233
+ # @return [String]
234
+ attr_accessor :name
235
+
236
+ # The name of a network they wish to peer the TPU node to. It must be a
237
+ # preexisting GCE network inside of the project on which this API has been
238
+ # activated. If none is provided, "default" will be used.
239
+ # Corresponds to the JSON property `network`
240
+ # @return [String]
241
+ attr_accessor :network
242
+
243
+ # Output only. The network endpoints where TPU workers can be accessed and sent
244
+ # work.
245
+ # It is recommended that Tensorflow clients of the node reach out to the 0th
246
+ # entry in this map first.
247
+ # Corresponds to the JSON property `networkEndpoints`
248
+ # @return [Array<Google::Apis::TpuV1alpha1::NetworkEndpoint>]
249
+ attr_accessor :network_endpoints
250
+
251
+ # Output only.
252
+ # DEPRECATED! Use network_endpoints instead.
253
+ # The network port for the TPU Node as visible to GCE instances.
254
+ # Corresponds to the JSON property `port`
255
+ # @return [String]
256
+ attr_accessor :port
257
+
258
+ # The service account used to run the tensor flow services within the node.
259
+ # To share resources, including Google Cloud Storage data, with the
260
+ # Tensorflow job running in the Node, this account must have permissions to
261
+ # that data.
262
+ # Output only.
263
+ # Corresponds to the JSON property `serviceAccount`
264
+ # @return [String]
265
+ attr_accessor :service_account
266
+
267
+ # The current state for the TPU Node.
268
+ # Output only.
269
+ # Corresponds to the JSON property `state`
270
+ # @return [String]
271
+ attr_accessor :state
272
+
273
+ # The version of Tensorflow running in the Node.
274
+ # Required.
275
+ # Corresponds to the JSON property `tensorflowVersion`
276
+ # @return [String]
277
+ attr_accessor :tensorflow_version
278
+
279
+ def initialize(**args)
280
+ update!(**args)
281
+ end
282
+
283
+ # Update properties of this object
284
+ def update!(**args)
285
+ @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
286
+ @cidr_block = args[:cidr_block] if args.key?(:cidr_block)
287
+ @create_time = args[:create_time] if args.key?(:create_time)
288
+ @description = args[:description] if args.key?(:description)
289
+ @health_description = args[:health_description] if args.key?(:health_description)
290
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
291
+ @name = args[:name] if args.key?(:name)
292
+ @network = args[:network] if args.key?(:network)
293
+ @network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
294
+ @port = args[:port] if args.key?(:port)
295
+ @service_account = args[:service_account] if args.key?(:service_account)
296
+ @state = args[:state] if args.key?(:state)
297
+ @tensorflow_version = args[:tensorflow_version] if args.key?(:tensorflow_version)
298
+ end
299
+ end
300
+
301
+ # This resource represents a long-running operation that is the result of a
302
+ # network API call.
303
+ class Operation
304
+ include Google::Apis::Core::Hashable
305
+
306
+ # If the value is `false`, it means the operation is still in progress.
307
+ # If `true`, the operation is completed, and either `error` or `response` is
308
+ # available.
309
+ # Corresponds to the JSON property `done`
310
+ # @return [Boolean]
311
+ attr_accessor :done
312
+ alias_method :done?, :done
313
+
314
+ # The `Status` type defines a logical error model that is suitable for different
315
+ # programming environments, including REST APIs and RPC APIs. It is used by
316
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
317
+ # - Simple to use and understand for most users
318
+ # - Flexible enough to meet unexpected needs
319
+ # # Overview
320
+ # The `Status` message contains three pieces of data: error code, error message,
321
+ # and error details. The error code should be an enum value of
322
+ # google.rpc.Code, but it may accept additional error codes if needed. The
323
+ # error message should be a developer-facing English message that helps
324
+ # developers *understand* and *resolve* the error. If a localized user-facing
325
+ # error message is needed, put the localized message in the error details or
326
+ # localize it in the client. The optional error details may contain arbitrary
327
+ # information about the error. There is a predefined set of error detail types
328
+ # in the package `google.rpc` that can be used for common error conditions.
329
+ # # Language mapping
330
+ # The `Status` message is the logical representation of the error model, but it
331
+ # is not necessarily the actual wire format. When the `Status` message is
332
+ # exposed in different client libraries and different wire protocols, it can be
333
+ # mapped differently. For example, it will likely be mapped to some exceptions
334
+ # in Java, but more likely mapped to some error codes in C.
335
+ # # Other uses
336
+ # The error model and the `Status` message can be used in a variety of
337
+ # environments, either with or without APIs, to provide a
338
+ # consistent developer experience across different environments.
339
+ # Example uses of this error model include:
340
+ # - Partial errors. If a service needs to return partial errors to the client,
341
+ # it may embed the `Status` in the normal response to indicate the partial
342
+ # errors.
343
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
344
+ # have a `Status` message for error reporting.
345
+ # - Batch operations. If a client uses batch request and batch response, the
346
+ # `Status` message should be used directly inside batch response, one for
347
+ # each error sub-response.
348
+ # - Asynchronous operations. If an API call embeds asynchronous operation
349
+ # results in its response, the status of those operations should be
350
+ # represented directly using the `Status` message.
351
+ # - Logging. If some API errors are stored in logs, the message `Status` could
352
+ # be used directly after any stripping needed for security/privacy reasons.
353
+ # Corresponds to the JSON property `error`
354
+ # @return [Google::Apis::TpuV1alpha1::Status]
355
+ attr_accessor :error
356
+
357
+ # Service-specific metadata associated with the operation. It typically
358
+ # contains progress information and common metadata such as create time.
359
+ # Some services might not provide such metadata. Any method that returns a
360
+ # long-running operation should document the metadata type, if any.
361
+ # Corresponds to the JSON property `metadata`
362
+ # @return [Hash<String,Object>]
363
+ attr_accessor :metadata
364
+
365
+ # The server-assigned name, which is only unique within the same service that
366
+ # originally returns it. If you use the default HTTP mapping, the
367
+ # `name` should have the format of `operations/some/unique/name`.
368
+ # Corresponds to the JSON property `name`
369
+ # @return [String]
370
+ attr_accessor :name
371
+
372
+ # The normal response of the operation in case of success. If the original
373
+ # method returns no data on success, such as `Delete`, the response is
374
+ # `google.protobuf.Empty`. If the original method is standard
375
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
376
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
377
+ # is the original method name. For example, if the original method name
378
+ # is `TakeSnapshot()`, the inferred response type is
379
+ # `TakeSnapshotResponse`.
380
+ # Corresponds to the JSON property `response`
381
+ # @return [Hash<String,Object>]
382
+ attr_accessor :response
383
+
384
+ def initialize(**args)
385
+ update!(**args)
386
+ end
387
+
388
+ # Update properties of this object
389
+ def update!(**args)
390
+ @done = args[:done] if args.key?(:done)
391
+ @error = args[:error] if args.key?(:error)
392
+ @metadata = args[:metadata] if args.key?(:metadata)
393
+ @name = args[:name] if args.key?(:name)
394
+ @response = args[:response] if args.key?(:response)
395
+ end
396
+ end
397
+
398
+ # Represents the metadata of the long-running operation.
399
+ class OperationMetadata
400
+ include Google::Apis::Core::Hashable
401
+
402
+ # [Output only] API version used to start the operation.
403
+ # Corresponds to the JSON property `apiVersion`
404
+ # @return [String]
405
+ attr_accessor :api_version
406
+
407
+ # [Output only] Identifies whether the user has requested cancellation
408
+ # of the operation. Operations that have successfully been cancelled
409
+ # have Operation.error value with a google.rpc.Status.code of 1,
410
+ # corresponding to `Code.CANCELLED`.
411
+ # Corresponds to the JSON property `cancelRequested`
412
+ # @return [Boolean]
413
+ attr_accessor :cancel_requested
414
+ alias_method :cancel_requested?, :cancel_requested
415
+
416
+ # [Output only] The time the operation was created.
417
+ # Corresponds to the JSON property `createTime`
418
+ # @return [String]
419
+ attr_accessor :create_time
420
+
421
+ # [Output only] The time the operation finished running.
422
+ # Corresponds to the JSON property `endTime`
423
+ # @return [String]
424
+ attr_accessor :end_time
425
+
426
+ # [Output only] Human-readable status of the operation, if any.
427
+ # Corresponds to the JSON property `statusDetail`
428
+ # @return [String]
429
+ attr_accessor :status_detail
430
+
431
+ # [Output only] Server-defined resource path for the target of the operation.
432
+ # Corresponds to the JSON property `target`
433
+ # @return [String]
434
+ attr_accessor :target
435
+
436
+ # [Output only] Name of the verb executed by the operation.
437
+ # Corresponds to the JSON property `verb`
438
+ # @return [String]
439
+ attr_accessor :verb
440
+
441
+ def initialize(**args)
442
+ update!(**args)
443
+ end
444
+
445
+ # Update properties of this object
446
+ def update!(**args)
447
+ @api_version = args[:api_version] if args.key?(:api_version)
448
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
449
+ @create_time = args[:create_time] if args.key?(:create_time)
450
+ @end_time = args[:end_time] if args.key?(:end_time)
451
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
452
+ @target = args[:target] if args.key?(:target)
453
+ @verb = args[:verb] if args.key?(:verb)
454
+ end
455
+ end
456
+
457
+ # The `Status` type defines a logical error model that is suitable for different
458
+ # programming environments, including REST APIs and RPC APIs. It is used by
459
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
460
+ # - Simple to use and understand for most users
461
+ # - Flexible enough to meet unexpected needs
462
+ # # Overview
463
+ # The `Status` message contains three pieces of data: error code, error message,
464
+ # and error details. The error code should be an enum value of
465
+ # google.rpc.Code, but it may accept additional error codes if needed. The
466
+ # error message should be a developer-facing English message that helps
467
+ # developers *understand* and *resolve* the error. If a localized user-facing
468
+ # error message is needed, put the localized message in the error details or
469
+ # localize it in the client. The optional error details may contain arbitrary
470
+ # information about the error. There is a predefined set of error detail types
471
+ # in the package `google.rpc` that can be used for common error conditions.
472
+ # # Language mapping
473
+ # The `Status` message is the logical representation of the error model, but it
474
+ # is not necessarily the actual wire format. When the `Status` message is
475
+ # exposed in different client libraries and different wire protocols, it can be
476
+ # mapped differently. For example, it will likely be mapped to some exceptions
477
+ # in Java, but more likely mapped to some error codes in C.
478
+ # # Other uses
479
+ # The error model and the `Status` message can be used in a variety of
480
+ # environments, either with or without APIs, to provide a
481
+ # consistent developer experience across different environments.
482
+ # Example uses of this error model include:
483
+ # - Partial errors. If a service needs to return partial errors to the client,
484
+ # it may embed the `Status` in the normal response to indicate the partial
485
+ # errors.
486
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
487
+ # have a `Status` message for error reporting.
488
+ # - Batch operations. If a client uses batch request and batch response, the
489
+ # `Status` message should be used directly inside batch response, one for
490
+ # each error sub-response.
491
+ # - Asynchronous operations. If an API call embeds asynchronous operation
492
+ # results in its response, the status of those operations should be
493
+ # represented directly using the `Status` message.
494
+ # - Logging. If some API errors are stored in logs, the message `Status` could
495
+ # be used directly after any stripping needed for security/privacy reasons.
496
+ class Status
497
+ include Google::Apis::Core::Hashable
498
+
499
+ # The status code, which should be an enum value of google.rpc.Code.
500
+ # Corresponds to the JSON property `code`
501
+ # @return [Fixnum]
502
+ attr_accessor :code
503
+
504
+ # A list of messages that carry the error details. There is a common set of
505
+ # message types for APIs to use.
506
+ # Corresponds to the JSON property `details`
507
+ # @return [Array<Hash<String,Object>>]
508
+ attr_accessor :details
509
+
510
+ # A developer-facing error message, which should be in English. Any
511
+ # user-facing error message should be localized and sent in the
512
+ # google.rpc.Status.details field, or localized by the client.
513
+ # Corresponds to the JSON property `message`
514
+ # @return [String]
515
+ attr_accessor :message
516
+
517
+ def initialize(**args)
518
+ update!(**args)
519
+ end
520
+
521
+ # Update properties of this object
522
+ def update!(**args)
523
+ @code = args[:code] if args.key?(:code)
524
+ @details = args[:details] if args.key?(:details)
525
+ @message = args[:message] if args.key?(:message)
526
+ end
527
+ end
528
+ end
529
+ end
530
+ end