google-api-client 0.9.1 → 0.9.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 (181) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +11 -2
  4. data/api_names.yaml +76 -43
  5. data/api_names_out.yaml +3853 -3508
  6. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +151 -151
  7. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +2785 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1033 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1378 -0
  11. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +79 -79
  12. data/generated/google/apis/admin_datatransfer_v1/classes.rb +26 -26
  13. data/generated/google/apis/admin_directory_v1/classes.rb +374 -374
  14. data/generated/google/apis/admin_reports_v1/classes.rb +63 -63
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +145 -143
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1/classes.rb +95 -92
  19. data/generated/google/apis/analytics_v3/classes.rb +582 -582
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +132 -132
  22. data/generated/google/apis/androidenterprise_v1/service.rb +9 -8
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +122 -122
  24. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta4/classes.rb +195 -142
  26. data/generated/google/apis/appengine_v1beta4/representations.rb +16 -0
  27. data/generated/google/apis/appengine_v1beta4/service.rb +3 -2
  28. data/generated/google/apis/appengine_v1beta5.rb +35 -0
  29. data/generated/google/apis/appengine_v1beta5/classes.rb +1523 -0
  30. data/generated/google/apis/appengine_v1beta5/representations.rb +525 -0
  31. data/generated/google/apis/appengine_v1beta5/service.rb +478 -0
  32. data/generated/google/apis/appsactivity_v1/classes.rb +34 -34
  33. data/generated/google/apis/appstate_v1.rb +1 -1
  34. data/generated/google/apis/appstate_v1/classes.rb +12 -12
  35. data/generated/google/apis/autoscaler_v1beta2/classes.rb +82 -82
  36. data/generated/google/apis/bigquery_v2.rb +1 -1
  37. data/generated/google/apis/bigquery_v2/classes.rb +266 -265
  38. data/generated/google/apis/blogger_v3/classes.rb +145 -145
  39. data/generated/google/apis/books_v1.rb +1 -1
  40. data/generated/google/apis/books_v1/classes.rb +431 -431
  41. data/generated/google/apis/books_v1/service.rb +3 -12
  42. data/generated/google/apis/calendar_v3.rb +1 -1
  43. data/generated/google/apis/calendar_v3/classes.rb +180 -180
  44. data/generated/google/apis/civicinfo_v2/classes.rb +125 -125
  45. data/generated/google/apis/classroom_v1/classes.rb +42 -42
  46. data/generated/google/apis/cloudbilling_v1/classes.rb +11 -11
  47. data/generated/google/apis/{mapsengine_v1.rb → cloudbuild_v1.rb} +11 -14
  48. data/generated/google/apis/cloudbuild_v1/classes.rb +521 -0
  49. data/generated/google/apis/cloudbuild_v1/representations.rb +190 -0
  50. data/generated/google/apis/cloudbuild_v1/service.rb +278 -0
  51. data/generated/google/apis/clouddebugger_v2/classes.rb +81 -81
  52. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  53. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  54. data/generated/google/apis/cloudlatencytest_v2/representations.rb +113 -0
  55. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  56. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  57. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +55 -55
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +26 -26
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +13 -13
  60. data/generated/google/apis/clouduseraccounts_beta/classes.rb +85 -85
  61. data/generated/google/apis/compute_beta.rb +1 -1
  62. data/generated/google/apis/compute_beta/classes.rb +1051 -998
  63. data/generated/google/apis/compute_beta/representations.rb +1 -0
  64. data/generated/google/apis/compute_beta/service.rb +426 -366
  65. data/generated/google/apis/compute_v1.rb +1 -1
  66. data/generated/google/apis/compute_v1/classes.rb +1332 -946
  67. data/generated/google/apis/compute_v1/representations.rb +108 -0
  68. data/generated/google/apis/compute_v1/service.rb +686 -318
  69. data/generated/google/apis/container_v1/classes.rb +43 -43
  70. data/generated/google/apis/content_v2.rb +1 -1
  71. data/generated/google/apis/content_v2/classes.rb +767 -639
  72. data/generated/google/apis/content_v2/representations.rb +40 -0
  73. data/generated/google/apis/coordinate_v1/classes.rb +66 -66
  74. data/generated/google/apis/customsearch_v1/classes.rb +96 -96
  75. data/generated/google/apis/dataproc_v1.rb +43 -0
  76. data/generated/google/apis/dataproc_v1/classes.rb +175 -0
  77. data/generated/google/apis/dataproc_v1/representations.rb +84 -0
  78. data/generated/google/apis/dataproc_v1/service.rb +142 -0
  79. data/generated/google/apis/datastore_v1beta2/classes.rb +105 -105
  80. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  81. data/generated/google/apis/deploymentmanager_v2/classes.rb +183 -112
  82. data/generated/google/apis/deploymentmanager_v2/representations.rb +28 -0
  83. data/generated/google/apis/deploymentmanager_v2/service.rb +42 -37
  84. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  85. data/generated/google/apis/dfareporting_v2_3/classes.rb +10830 -0
  86. data/generated/google/apis/dfareporting_v2_3/representations.rb +3443 -0
  87. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  88. data/generated/google/apis/discovery_v1/classes.rb +106 -106
  89. data/generated/google/apis/dns_v1/classes.rb +39 -39
  90. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  91. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +155 -69
  92. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +31 -0
  93. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -0
  94. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  95. data/generated/google/apis/doubleclicksearch_v2/classes.rb +106 -104
  96. data/generated/google/apis/drive_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2/classes.rb +308 -308
  98. data/generated/google/apis/drive_v2/service.rb +44 -0
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +178 -178
  101. data/generated/google/apis/drive_v3/service.rb +2 -1
  102. data/generated/google/apis/fitness_v1/classes.rb +74 -74
  103. data/generated/google/apis/fusiontables_v2/classes.rb +108 -108
  104. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  105. data/generated/google/apis/games_configuration_v1configuration/classes.rb +52 -52
  106. data/generated/google/apis/games_management_v1management.rb +2 -2
  107. data/generated/google/apis/games_management_v1management/classes.rb +55 -46
  108. data/generated/google/apis/games_management_v1management/representations.rb +1 -0
  109. data/generated/google/apis/games_v1.rb +2 -2
  110. data/generated/google/apis/games_v1/classes.rb +484 -475
  111. data/generated/google/apis/games_v1/representations.rb +1 -0
  112. data/generated/google/apis/gan_v1beta1/classes.rb +187 -187
  113. data/generated/google/apis/genomics_v1.rb +2 -2
  114. data/generated/google/apis/genomics_v1/classes.rb +441 -232
  115. data/generated/google/apis/genomics_v1/representations.rb +85 -0
  116. data/generated/google/apis/genomics_v1/service.rb +1 -1
  117. data/generated/google/apis/gmail_v1/classes.rb +73 -73
  118. data/generated/google/apis/groupsmigration_v1/classes.rb +2 -2
  119. data/generated/google/apis/groupssettings_v1/classes.rb +28 -28
  120. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  121. data/generated/google/apis/identitytoolkit_v3/classes.rb +232 -166
  122. data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
  123. data/generated/google/apis/kgsearch_v1/classes.rb +3 -3
  124. data/generated/google/apis/licensing_v1/classes.rb +11 -11
  125. data/generated/google/apis/logging_v2beta1.rb +47 -0
  126. data/generated/google/apis/logging_v2beta1/classes.rb +990 -0
  127. data/generated/google/apis/logging_v2beta1/representations.rb +337 -0
  128. data/generated/google/apis/logging_v2beta1/service.rb +547 -0
  129. data/generated/google/apis/manager_v1beta2/classes.rb +125 -125
  130. data/generated/google/apis/mirror_v1/classes.rb +101 -101
  131. data/generated/google/apis/oauth2_v2.rb +2 -2
  132. data/generated/google/apis/oauth2_v2/classes.rb +27 -27
  133. data/generated/google/apis/pagespeedonline_v2/classes.rb +62 -62
  134. data/generated/google/apis/partners_v2/classes.rb +87 -87
  135. data/generated/google/apis/people_v1.rb +59 -0
  136. data/generated/google/apis/people_v1/classes.rb +1594 -0
  137. data/generated/google/apis/people_v1/representations.rb +593 -0
  138. data/generated/google/apis/people_v1/service.rb +193 -0
  139. data/generated/google/apis/plus_domains_v1.rb +2 -2
  140. data/generated/google/apis/plus_domains_v1/classes.rb +274 -274
  141. data/generated/google/apis/plus_v1.rb +2 -2
  142. data/generated/google/apis/plus_v1/classes.rb +215 -215
  143. data/generated/google/apis/prediction_v1_6/classes.rb +73 -73
  144. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +45 -45
  145. data/generated/google/apis/pubsub_v1/classes.rb +36 -36
  146. data/generated/google/apis/qpx_express_v1/classes.rb +135 -135
  147. data/generated/google/apis/replicapool_v1beta2/classes.rb +63 -63
  148. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +76 -76
  149. data/generated/google/apis/reseller_v1.rb +1 -1
  150. data/generated/google/apis/reseller_v1/classes.rb +55 -55
  151. data/generated/google/apis/reseller_v1/service.rb +1 -1
  152. data/generated/google/apis/resourceviews_v1beta2/classes.rb +68 -68
  153. data/generated/google/apis/script_v1/classes.rb +18 -18
  154. data/generated/google/apis/site_verification_v1/classes.rb +12 -12
  155. data/generated/google/apis/sqladmin_v1beta4/classes.rb +203 -203
  156. data/generated/google/apis/storage_v1.rb +1 -1
  157. data/generated/google/apis/storage_v1/classes.rb +130 -130
  158. data/generated/google/apis/storagetransfer_v1/classes.rb +84 -84
  159. data/generated/google/apis/tagmanager_v1/classes.rb +154 -154
  160. data/generated/google/apis/taskqueue_v1beta2/classes.rb +24 -24
  161. data/generated/google/apis/tasks_v1/classes.rb +32 -32
  162. data/generated/google/apis/translate_v2/classes.rb +10 -10
  163. data/generated/google/apis/urlshortener_v1/classes.rb +24 -24
  164. data/generated/google/apis/webmasters_v3/classes.rb +49 -49
  165. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1/classes.rb +49 -49
  167. data/generated/google/apis/youtube_v3.rb +1 -1
  168. data/generated/google/apis/youtube_v3/classes.rb +882 -895
  169. data/generated/google/apis/youtube_v3/representations.rb +2 -13
  170. data/generated/google/apis/youtubereporting_v1/classes.rb +19 -19
  171. data/lib/google/apis/core/api_command.rb +1 -1
  172. data/lib/google/apis/core/upload.rb +1 -1
  173. data/lib/google/apis/generator/templates/_class.tmpl +1 -1
  174. data/lib/google/apis/version.rb +1 -1
  175. data/samples/cli/lib/base_cli.rb +2 -1
  176. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  177. data/script/generate +17 -13
  178. metadata +35 -6
  179. data/generated/google/apis/mapsengine_v1/classes.rb +0 -2873
  180. data/generated/google/apis/mapsengine_v1/representations.rb +0 -1235
  181. data/generated/google/apis/mapsengine_v1/service.rb +0 -3388
@@ -55,9 +55,9 @@ module Google
55
55
 
56
56
  # Update properties of this object
57
57
  def update!(**args)
58
- @name = args[:name] unless args[:name].nil?
59
- @open = args[:open] unless args[:open].nil?
60
- @display_name = args[:display_name] unless args[:display_name].nil?
58
+ @name = args[:name] if args.key?(:name)
59
+ @open = args[:open] if args.key?(:open)
60
+ @display_name = args[:display_name] if args.key?(:display_name)
61
61
  end
62
62
  end
63
63
 
@@ -83,8 +83,8 @@ module Google
83
83
 
84
84
  # Update properties of this object
85
85
  def update!(**args)
86
- @billing_accounts = args[:billing_accounts] unless args[:billing_accounts].nil?
87
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
86
+ @billing_accounts = args[:billing_accounts] if args.key?(:billing_accounts)
87
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
88
88
  end
89
89
  end
90
90
 
@@ -111,8 +111,8 @@ module Google
111
111
 
112
112
  # Update properties of this object
113
113
  def update!(**args)
114
- @project_billing_info = args[:project_billing_info] unless args[:project_billing_info].nil?
115
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
114
+ @project_billing_info = args[:project_billing_info] if args.key?(:project_billing_info)
115
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
116
116
  end
117
117
  end
118
118
 
@@ -158,10 +158,10 @@ module Google
158
158
 
159
159
  # Update properties of this object
160
160
  def update!(**args)
161
- @name = args[:name] unless args[:name].nil?
162
- @project_id = args[:project_id] unless args[:project_id].nil?
163
- @billing_account_name = args[:billing_account_name] unless args[:billing_account_name].nil?
164
- @billing_enabled = args[:billing_enabled] unless args[:billing_enabled].nil?
161
+ @name = args[:name] if args.key?(:name)
162
+ @project_id = args[:project_id] if args.key?(:project_id)
163
+ @billing_account_name = args[:billing_account_name] if args.key?(:billing_account_name)
164
+ @billing_enabled = args[:billing_enabled] if args.key?(:billing_enabled)
165
165
  end
166
166
  end
167
167
  end
@@ -12,27 +12,24 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- require 'google/apis/mapsengine_v1/service.rb'
16
- require 'google/apis/mapsengine_v1/classes.rb'
17
- require 'google/apis/mapsengine_v1/representations.rb'
15
+ require 'google/apis/cloudbuild_v1/service.rb'
16
+ require 'google/apis/cloudbuild_v1/classes.rb'
17
+ require 'google/apis/cloudbuild_v1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Google Maps Engine API
21
+ # Google Cloud Container Builder API
22
22
  #
23
- # The Google Maps Engine API allows developers to store and query geospatial
24
- # vector and raster data.
23
+ # The Google Cloud Container Builder API lets you build container images in the
24
+ # cloud.
25
25
  #
26
- # @see https://developers.google.com/maps-engine/
27
- module MapsengineV1
26
+ # @see https://cloud.google.com/container-builder/docs/
27
+ module CloudbuildV1
28
28
  VERSION = 'V1'
29
- REVISION = '20151202'
29
+ REVISION = '20160209'
30
30
 
31
- # View and manage your Google My Maps data
32
- AUTH_MAPSENGINE = 'https://www.googleapis.com/auth/mapsengine'
33
-
34
- # View your Google My Maps data
35
- AUTH_MAPSENGINE_READONLY = 'https://www.googleapis.com/auth/mapsengine.readonly'
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
36
33
  end
37
34
  end
38
35
  end
@@ -0,0 +1,521 @@
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 CloudbuildV1
24
+
25
+ # The `Status` type defines a logical error model that is suitable for different
26
+ # programming environments, including REST APIs and RPC APIs. It is used by
27
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
28
+ # - Simple to use and understand for most users
29
+ # - Flexible enough to meet unexpected needs
30
+ # # Overview
31
+ # The `Status` message contains three pieces of data: error code, error message,
32
+ # and error details. The error code should be an enum value of
33
+ # google.rpc.Code, but it may accept additional error codes if needed. The
34
+ # error message should be a developer-facing English message that helps
35
+ # developers *understand* and *resolve* the error. If a localized user-facing
36
+ # error message is needed, put the localized message in the error details or
37
+ # localize it in the client. The optional error details may contain arbitrary
38
+ # information about the error. There is a predefined set of error detail types
39
+ # in the package `google.rpc` which can be used for common error conditions.
40
+ # # Language mapping
41
+ # The `Status` message is the logical representation of the error model, but it
42
+ # is not necessarily the actual wire format. When the `Status` message is
43
+ # exposed in different client libraries and different wire protocols, it can be
44
+ # mapped differently. For example, it will likely be mapped to some exceptions
45
+ # in Java, but more likely mapped to some error codes in C.
46
+ # # Other uses
47
+ # The error model and the `Status` message can be used in a variety of
48
+ # environments, either with or without APIs, to provide a
49
+ # consistent developer experience across different environments.
50
+ # Example uses of this error model include:
51
+ # - Partial errors. If a service needs to return partial errors to the client,
52
+ # it may embed the `Status` in the normal response to indicate the partial
53
+ # errors.
54
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
55
+ # have a `Status` message for error reporting purpose.
56
+ # - Batch operations. If a client uses batch request and batch response, the
57
+ # `Status` message should be used directly inside batch response, one for
58
+ # each error sub-response.
59
+ # - Asynchronous operations. If an API call embeds asynchronous operation
60
+ # results in its response, the status of those operations should be
61
+ # represented directly using the `Status` message.
62
+ # - Logging. If some API errors are stored in logs, the message `Status` could
63
+ # be used directly after any stripping needed for security/privacy reasons.
64
+ class Status
65
+ include Google::Apis::Core::Hashable
66
+
67
+ # The status code, which should be an enum value of google.rpc.Code.
68
+ # Corresponds to the JSON property `code`
69
+ # @return [Fixnum]
70
+ attr_accessor :code
71
+
72
+ # A list of messages that carry the error details. There will be a
73
+ # common set of message types for APIs to use.
74
+ # Corresponds to the JSON property `details`
75
+ # @return [Array<Hash<String,Object>>]
76
+ attr_accessor :details
77
+
78
+ # A developer-facing error message, which should be in English. Any
79
+ # user-facing error message should be localized and sent in the
80
+ # google.rpc.Status.details field, or localized by the client.
81
+ # Corresponds to the JSON property `message`
82
+ # @return [String]
83
+ attr_accessor :message
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @code = args[:code] if args.key?(:code)
92
+ @details = args[:details] if args.key?(:details)
93
+ @message = args[:message] if args.key?(:message)
94
+ end
95
+ end
96
+
97
+ # Metadata for build operations.
98
+ class BuildOperationMetadata
99
+ include Google::Apis::Core::Hashable
100
+
101
+ # A build resource in the Container Builder API.
102
+ # At a high level, a Build describes where to find source code, how to build
103
+ # it (for example, the builder image to run on the source), and what tag to
104
+ # apply to the built image when it is pushed to Google Container Registry.
105
+ # Corresponds to the JSON property `build`
106
+ # @return [Google::Apis::CloudbuildV1::Build]
107
+ attr_accessor :build
108
+
109
+ def initialize(**args)
110
+ update!(**args)
111
+ end
112
+
113
+ # Update properties of this object
114
+ def update!(**args)
115
+ @build = args[:build] if args.key?(:build)
116
+ end
117
+ end
118
+
119
+ # Source describes the location of the source in a supported storage
120
+ # service.
121
+ class Source
122
+ include Google::Apis::Core::Hashable
123
+
124
+ # StorageSource describes the location of the source in an archive file in
125
+ # Google Cloud Storage.
126
+ # Corresponds to the JSON property `storageSource`
127
+ # @return [Google::Apis::CloudbuildV1::StorageSource]
128
+ attr_accessor :storage_source
129
+
130
+ def initialize(**args)
131
+ update!(**args)
132
+ end
133
+
134
+ # Update properties of this object
135
+ def update!(**args)
136
+ @storage_source = args[:storage_source] if args.key?(:storage_source)
137
+ end
138
+ end
139
+
140
+ # This resource represents a long-running operation that is the result of a
141
+ # network API call.
142
+ class Operation
143
+ include Google::Apis::Core::Hashable
144
+
145
+ # The `Status` type defines a logical error model that is suitable for different
146
+ # programming environments, including REST APIs and RPC APIs. It is used by
147
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
148
+ # - Simple to use and understand for most users
149
+ # - Flexible enough to meet unexpected needs
150
+ # # Overview
151
+ # The `Status` message contains three pieces of data: error code, error message,
152
+ # and error details. The error code should be an enum value of
153
+ # google.rpc.Code, but it may accept additional error codes if needed. The
154
+ # error message should be a developer-facing English message that helps
155
+ # developers *understand* and *resolve* the error. If a localized user-facing
156
+ # error message is needed, put the localized message in the error details or
157
+ # localize it in the client. The optional error details may contain arbitrary
158
+ # information about the error. There is a predefined set of error detail types
159
+ # in the package `google.rpc` which can be used for common error conditions.
160
+ # # Language mapping
161
+ # The `Status` message is the logical representation of the error model, but it
162
+ # is not necessarily the actual wire format. When the `Status` message is
163
+ # exposed in different client libraries and different wire protocols, it can be
164
+ # mapped differently. For example, it will likely be mapped to some exceptions
165
+ # in Java, but more likely mapped to some error codes in C.
166
+ # # Other uses
167
+ # The error model and the `Status` message can be used in a variety of
168
+ # environments, either with or without APIs, to provide a
169
+ # consistent developer experience across different environments.
170
+ # Example uses of this error model include:
171
+ # - Partial errors. If a service needs to return partial errors to the client,
172
+ # it may embed the `Status` in the normal response to indicate the partial
173
+ # errors.
174
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
175
+ # have a `Status` message for error reporting purpose.
176
+ # - Batch operations. If a client uses batch request and batch response, the
177
+ # `Status` message should be used directly inside batch response, one for
178
+ # each error sub-response.
179
+ # - Asynchronous operations. If an API call embeds asynchronous operation
180
+ # results in its response, the status of those operations should be
181
+ # represented directly using the `Status` message.
182
+ # - Logging. If some API errors are stored in logs, the message `Status` could
183
+ # be used directly after any stripping needed for security/privacy reasons.
184
+ # Corresponds to the JSON property `error`
185
+ # @return [Google::Apis::CloudbuildV1::Status]
186
+ attr_accessor :error
187
+
188
+ # If the value is `false`, it means the operation is still in progress.
189
+ # If true, the operation is completed, and either `error` or `response` is
190
+ # available.
191
+ # Corresponds to the JSON property `done`
192
+ # @return [Boolean]
193
+ attr_accessor :done
194
+ alias_method :done?, :done
195
+
196
+ # The normal response of the operation in case of success. If the original
197
+ # method returns no data on success, such as `Delete`, the response is
198
+ # `google.protobuf.Empty`. If the original method is standard
199
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
200
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
201
+ # is the original method name. For example, if the original method name
202
+ # is `TakeSnapshot()`, the inferred response type is
203
+ # `TakeSnapshotResponse`.
204
+ # Corresponds to the JSON property `response`
205
+ # @return [Hash<String,Object>]
206
+ attr_accessor :response
207
+
208
+ # Service-specific metadata associated with the operation. It typically
209
+ # contains progress information and common metadata such as create time.
210
+ # Some services might not provide such metadata. Any method that returns a
211
+ # long-running operation should document the metadata type, if any.
212
+ # Corresponds to the JSON property `metadata`
213
+ # @return [Hash<String,Object>]
214
+ attr_accessor :metadata
215
+
216
+ # The server-assigned name, which is only unique within the same service that
217
+ # originally returns it. If you use the default HTTP mapping above, the
218
+ # `name` should have the format of `operations/some/unique/name`.
219
+ # Corresponds to the JSON property `name`
220
+ # @return [String]
221
+ attr_accessor :name
222
+
223
+ def initialize(**args)
224
+ update!(**args)
225
+ end
226
+
227
+ # Update properties of this object
228
+ def update!(**args)
229
+ @error = args[:error] if args.key?(:error)
230
+ @done = args[:done] if args.key?(:done)
231
+ @response = args[:response] if args.key?(:response)
232
+ @metadata = args[:metadata] if args.key?(:metadata)
233
+ @name = args[:name] if args.key?(:name)
234
+ end
235
+ end
236
+
237
+ # BuiltImage describes an image built by the pipeline.
238
+ class BuiltImage
239
+ include Google::Apis::Core::Hashable
240
+
241
+ # Docker Registry 2.0 digest.
242
+ # Corresponds to the JSON property `digest`
243
+ # @return [String]
244
+ attr_accessor :digest
245
+
246
+ # Name used to push the container image to Google Container Registry, as
247
+ # presented to `docker push`.
248
+ # Corresponds to the JSON property `name`
249
+ # @return [String]
250
+ attr_accessor :name
251
+
252
+ def initialize(**args)
253
+ update!(**args)
254
+ end
255
+
256
+ # Update properties of this object
257
+ def update!(**args)
258
+ @digest = args[:digest] if args.key?(:digest)
259
+ @name = args[:name] if args.key?(:name)
260
+ end
261
+ end
262
+
263
+ # StorageSource describes the location of the source in an archive file in
264
+ # Google Cloud Storage.
265
+ class StorageSource
266
+ include Google::Apis::Core::Hashable
267
+
268
+ # Google Cloud Storage bucket containing source (see
269
+ # [Bucket Name
270
+ # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
271
+ # ).
272
+ # Corresponds to the JSON property `bucket`
273
+ # @return [String]
274
+ attr_accessor :bucket
275
+
276
+ # Google Cloud Storage object containing source.
277
+ # This object must be a gzipped archive file (.tar.gz) containing source to
278
+ # build.
279
+ # Corresponds to the JSON property `object`
280
+ # @return [String]
281
+ attr_accessor :object
282
+
283
+ def initialize(**args)
284
+ update!(**args)
285
+ end
286
+
287
+ # Update properties of this object
288
+ def update!(**args)
289
+ @bucket = args[:bucket] if args.key?(:bucket)
290
+ @object = args[:object] if args.key?(:object)
291
+ end
292
+ end
293
+
294
+ # Results describes the artifacts created by the build pipeline.
295
+ class Results
296
+ include Google::Apis::Core::Hashable
297
+
298
+ # Images that were built as a part of the build.
299
+ # Corresponds to the JSON property `images`
300
+ # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
301
+ attr_accessor :images
302
+
303
+ def initialize(**args)
304
+ update!(**args)
305
+ end
306
+
307
+ # Update properties of this object
308
+ def update!(**args)
309
+ @images = args[:images] if args.key?(:images)
310
+ end
311
+ end
312
+
313
+ # A build resource in the Container Builder API.
314
+ # At a high level, a Build describes where to find source code, how to build
315
+ # it (for example, the builder image to run on the source), and what tag to
316
+ # apply to the built image when it is pushed to Google Container Registry.
317
+ class Build
318
+ include Google::Apis::Core::Hashable
319
+
320
+ # Unique identifier of the build.
321
+ # @OutputOnly
322
+ # Corresponds to the JSON property `id`
323
+ # @return [String]
324
+ attr_accessor :id
325
+
326
+ # Results describes the artifacts created by the build pipeline.
327
+ # Corresponds to the JSON property `results`
328
+ # @return [Google::Apis::CloudbuildV1::Results]
329
+ attr_accessor :results
330
+
331
+ # Status of the build.
332
+ # @OutputOnly
333
+ # Corresponds to the JSON property `status`
334
+ # @return [String]
335
+ attr_accessor :status
336
+
337
+ # Time at whihc execution of the build was finished.
338
+ # @OutputOnly
339
+ # Corresponds to the JSON property `finishTime`
340
+ # @return [String]
341
+ attr_accessor :finish_time
342
+
343
+ # Amount of time that this build should be allowed to run, to second
344
+ # granularity. If this amount of time elapses, work on the build will cease
345
+ # and the build status will be TIMEOUT.
346
+ # Default time is ten minutes.
347
+ # Corresponds to the JSON property `timeout`
348
+ # @return [String]
349
+ attr_accessor :timeout
350
+
351
+ # Describes the operations to be performed on the workspace.
352
+ # Corresponds to the JSON property `steps`
353
+ # @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
354
+ attr_accessor :steps
355
+
356
+ # Source describes the location of the source in a supported storage
357
+ # service.
358
+ # Corresponds to the JSON property `source`
359
+ # @return [Google::Apis::CloudbuildV1::Source]
360
+ attr_accessor :source
361
+
362
+ # Time at which the build was created.
363
+ # @OutputOnly
364
+ # Corresponds to the JSON property `createTime`
365
+ # @return [String]
366
+ attr_accessor :create_time
367
+
368
+ # List of images expected to be built and pushed to Google Container
369
+ # Registry. If an image is listed here and the image is not produced by
370
+ # one of the build steps, the build will fail. Any images present when
371
+ # the build steps are complete will be pushed to Container Registry.
372
+ # Corresponds to the JSON property `images`
373
+ # @return [Array<String>]
374
+ attr_accessor :images
375
+
376
+ # Time at which execution of the build was started.
377
+ # @OutputOnly
378
+ # Corresponds to the JSON property `startTime`
379
+ # @return [String]
380
+ attr_accessor :start_time
381
+
382
+ # Google Cloud Storage bucket where logs should be written (see
383
+ # [Bucket Name
384
+ # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
385
+ # ).
386
+ # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
387
+ # Corresponds to the JSON property `logsBucket`
388
+ # @return [String]
389
+ attr_accessor :logs_bucket
390
+
391
+ # ID of the project.
392
+ # @OutputOnly.
393
+ # Corresponds to the JSON property `projectId`
394
+ # @return [String]
395
+ attr_accessor :project_id
396
+
397
+ def initialize(**args)
398
+ update!(**args)
399
+ end
400
+
401
+ # Update properties of this object
402
+ def update!(**args)
403
+ @id = args[:id] if args.key?(:id)
404
+ @results = args[:results] if args.key?(:results)
405
+ @status = args[:status] if args.key?(:status)
406
+ @finish_time = args[:finish_time] if args.key?(:finish_time)
407
+ @timeout = args[:timeout] if args.key?(:timeout)
408
+ @steps = args[:steps] if args.key?(:steps)
409
+ @source = args[:source] if args.key?(:source)
410
+ @create_time = args[:create_time] if args.key?(:create_time)
411
+ @images = args[:images] if args.key?(:images)
412
+ @start_time = args[:start_time] if args.key?(:start_time)
413
+ @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
414
+ @project_id = args[:project_id] if args.key?(:project_id)
415
+ end
416
+ end
417
+
418
+ # Request to cancel an ongoing build.
419
+ class CancelBuildRequest
420
+ include Google::Apis::Core::Hashable
421
+
422
+ def initialize(**args)
423
+ update!(**args)
424
+ end
425
+
426
+ # Update properties of this object
427
+ def update!(**args)
428
+ end
429
+ end
430
+
431
+ # The response message for Operations.ListOperations.
432
+ class ListOperationsResponse
433
+ include Google::Apis::Core::Hashable
434
+
435
+ # The standard List next-page token.
436
+ # Corresponds to the JSON property `nextPageToken`
437
+ # @return [String]
438
+ attr_accessor :next_page_token
439
+
440
+ # A list of operations that matches the specified filter in the request.
441
+ # Corresponds to the JSON property `operations`
442
+ # @return [Array<Google::Apis::CloudbuildV1::Operation>]
443
+ attr_accessor :operations
444
+
445
+ def initialize(**args)
446
+ update!(**args)
447
+ end
448
+
449
+ # Update properties of this object
450
+ def update!(**args)
451
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
452
+ @operations = args[:operations] if args.key?(:operations)
453
+ end
454
+ end
455
+
456
+ # BuildStep describes a step to perform in the build pipeline.
457
+ class BuildStep
458
+ include Google::Apis::Core::Hashable
459
+
460
+ # Command-line arguments to use when running this step's container.
461
+ # Corresponds to the JSON property `args`
462
+ # @return [Array<String>]
463
+ attr_accessor :args
464
+
465
+ # Working directory (relative to project source root) to use when running
466
+ # this operation's container.
467
+ # Corresponds to the JSON property `dir`
468
+ # @return [String]
469
+ attr_accessor :dir
470
+
471
+ # Additional environment variables to set for this step's container.
472
+ # Corresponds to the JSON property `env`
473
+ # @return [Array<String>]
474
+ attr_accessor :env
475
+
476
+ # Name of the container image to use for creating this stage in the
477
+ # pipeline, as presented to `docker pull`.
478
+ # Corresponds to the JSON property `name`
479
+ # @return [String]
480
+ attr_accessor :name
481
+
482
+ def initialize(**args)
483
+ update!(**args)
484
+ end
485
+
486
+ # Update properties of this object
487
+ def update!(**args)
488
+ @args = args[:args] if args.key?(:args)
489
+ @dir = args[:dir] if args.key?(:dir)
490
+ @env = args[:env] if args.key?(:env)
491
+ @name = args[:name] if args.key?(:name)
492
+ end
493
+ end
494
+
495
+ # Response including listed builds.
496
+ class ListBuildsResponse
497
+ include Google::Apis::Core::Hashable
498
+
499
+ # Token to receive the next page of results.
500
+ # Corresponds to the JSON property `nextPageToken`
501
+ # @return [String]
502
+ attr_accessor :next_page_token
503
+
504
+ # Builds will be sorted by create_time, descending.
505
+ # Corresponds to the JSON property `builds`
506
+ # @return [Array<Google::Apis::CloudbuildV1::Build>]
507
+ attr_accessor :builds
508
+
509
+ def initialize(**args)
510
+ update!(**args)
511
+ end
512
+
513
+ # Update properties of this object
514
+ def update!(**args)
515
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
516
+ @builds = args[:builds] if args.key?(:builds)
517
+ end
518
+ end
519
+ end
520
+ end
521
+ end