google-api-client 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/api_names.yaml +37747 -36512
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
- data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +34 -8
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +3 -5
- data/generated/google/apis/classroom_v1.rb +25 -22
- data/generated/google/apis/classroom_v1/classes.rb +910 -1001
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1064 -1272
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
- data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
- data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
- data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
- data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +813 -82
- data/generated/google/apis/compute_beta/representations.rb +305 -0
- data/generated/google/apis/compute_beta/service.rb +971 -180
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +147 -21
- data/generated/google/apis/compute_v1/representations.rb +38 -0
- data/generated/google/apis/compute_v1/service.rb +347 -65
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
- data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
- data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
- data/generated/google/apis/dataproc_v1/representations.rb +220 -204
- data/generated/google/apis/dataproc_v1/service.rb +299 -299
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +688 -688
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +487 -15
- data/generated/google/apis/drive_v2/representations.rb +120 -0
- data/generated/google/apis/drive_v2/service.rb +355 -38
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +416 -14
- data/generated/google/apis/drive_v3/representations.rb +99 -0
- data/generated/google/apis/drive_v3/service.rb +315 -28
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
- data/generated/google/apis/genomics_v1/representations.rb +239 -239
- data/generated/google/apis/genomics_v1/service.rb +599 -599
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/gmail_v1/service.rb +18 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +96 -96
- data/generated/google/apis/iam_v1/service.rb +150 -150
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +235 -235
- data/generated/google/apis/language_v1beta1/representations.rb +73 -73
- data/generated/google/apis/language_v1beta1/service.rb +49 -49
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
- data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
- data/generated/google/apis/logging_v2beta1/service.rb +315 -316
- data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
- data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
- data/generated/google/apis/manufacturers_v1/service.rb +32 -32
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +229 -229
- data/generated/google/apis/monitoring_v3/representations.rb +45 -45
- data/generated/google/apis/monitoring_v3/service.rb +141 -141
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1837 -483
- data/generated/google/apis/partners_v2/representations.rb +614 -157
- data/generated/google/apis/partners_v2/service.rb +881 -150
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +517 -465
- data/generated/google/apis/people_v1/representations.rb +138 -107
- data/generated/google/apis/people_v1/service.rb +56 -49
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +203 -203
- data/generated/google/apis/pubsub_v1/representations.rb +65 -65
- data/generated/google/apis/pubsub_v1/service.rb +226 -217
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +213 -61
- data/generated/google/apis/reseller_v1/representations.rb +27 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +95 -95
- data/generated/google/apis/script_v1/representations.rb +25 -25
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
- data/generated/google/apis/sheets_v4/representations.rb +853 -837
- data/generated/google/apis/sheets_v4/service.rb +32 -32
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +804 -748
- data/generated/google/apis/slides_v1/representations.rb +204 -187
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
- data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
- data/generated/google/apis/speech_v1beta1/service.rb +66 -66
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +10 -7
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1393 -865
- data/generated/google/apis/vision_v1/representations.rb +367 -102
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
- data/lib/google/apis/version.rb +1 -1
- metadata +34 -30
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/container-builder/docs/
|
26
26
|
module CloudbuildV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170306'
|
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'
|
@@ -22,6 +22,122 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudbuildV1
|
24
24
|
|
25
|
+
# This resource represents a long-running operation that is the result of a
|
26
|
+
# network API call.
|
27
|
+
class Operation
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
# If the value is `false`, it means the operation is still in progress.
|
31
|
+
# If true, the operation is completed, and either `error` or `response` is
|
32
|
+
# available.
|
33
|
+
# Corresponds to the JSON property `done`
|
34
|
+
# @return [Boolean]
|
35
|
+
attr_accessor :done
|
36
|
+
alias_method :done?, :done
|
37
|
+
|
38
|
+
# The normal response of the operation in case of success. If the original
|
39
|
+
# method returns no data on success, such as `Delete`, the response is
|
40
|
+
# `google.protobuf.Empty`. If the original method is standard
|
41
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
42
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
43
|
+
# is the original method name. For example, if the original method name
|
44
|
+
# is `TakeSnapshot()`, the inferred response type is
|
45
|
+
# `TakeSnapshotResponse`.
|
46
|
+
# Corresponds to the JSON property `response`
|
47
|
+
# @return [Hash<String,Object>]
|
48
|
+
attr_accessor :response
|
49
|
+
|
50
|
+
# The server-assigned name, which is only unique within the same service that
|
51
|
+
# originally returns it. If you use the default HTTP mapping, the
|
52
|
+
# `name` should have the format of `operations/some/unique/name`.
|
53
|
+
# Corresponds to the JSON property `name`
|
54
|
+
# @return [String]
|
55
|
+
attr_accessor :name
|
56
|
+
|
57
|
+
# The `Status` type defines a logical error model that is suitable for different
|
58
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
59
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
60
|
+
# - Simple to use and understand for most users
|
61
|
+
# - Flexible enough to meet unexpected needs
|
62
|
+
# # Overview
|
63
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
64
|
+
# and error details. The error code should be an enum value of
|
65
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
66
|
+
# error message should be a developer-facing English message that helps
|
67
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
68
|
+
# error message is needed, put the localized message in the error details or
|
69
|
+
# localize it in the client. The optional error details may contain arbitrary
|
70
|
+
# information about the error. There is a predefined set of error detail types
|
71
|
+
# in the package `google.rpc` which can be used for common error conditions.
|
72
|
+
# # Language mapping
|
73
|
+
# The `Status` message is the logical representation of the error model, but it
|
74
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
75
|
+
# exposed in different client libraries and different wire protocols, it can be
|
76
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
77
|
+
# in Java, but more likely mapped to some error codes in C.
|
78
|
+
# # Other uses
|
79
|
+
# The error model and the `Status` message can be used in a variety of
|
80
|
+
# environments, either with or without APIs, to provide a
|
81
|
+
# consistent developer experience across different environments.
|
82
|
+
# Example uses of this error model include:
|
83
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
84
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
85
|
+
# errors.
|
86
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
87
|
+
# have a `Status` message for error reporting purpose.
|
88
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
89
|
+
# `Status` message should be used directly inside batch response, one for
|
90
|
+
# each error sub-response.
|
91
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
92
|
+
# results in its response, the status of those operations should be
|
93
|
+
# represented directly using the `Status` message.
|
94
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
95
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
96
|
+
# Corresponds to the JSON property `error`
|
97
|
+
# @return [Google::Apis::CloudbuildV1::Status]
|
98
|
+
attr_accessor :error
|
99
|
+
|
100
|
+
# Service-specific metadata associated with the operation. It typically
|
101
|
+
# contains progress information and common metadata such as create time.
|
102
|
+
# Some services might not provide such metadata. Any method that returns a
|
103
|
+
# long-running operation should document the metadata type, if any.
|
104
|
+
# Corresponds to the JSON property `metadata`
|
105
|
+
# @return [Hash<String,Object>]
|
106
|
+
attr_accessor :metadata
|
107
|
+
|
108
|
+
def initialize(**args)
|
109
|
+
update!(**args)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Update properties of this object
|
113
|
+
def update!(**args)
|
114
|
+
@done = args[:done] if args.key?(:done)
|
115
|
+
@response = args[:response] if args.key?(:response)
|
116
|
+
@name = args[:name] if args.key?(:name)
|
117
|
+
@error = args[:error] if args.key?(:error)
|
118
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# Response containing existing BuildTriggers.
|
123
|
+
class ListBuildTriggersResponse
|
124
|
+
include Google::Apis::Core::Hashable
|
125
|
+
|
126
|
+
# BuildTriggers for the project, sorted by create_time descending.
|
127
|
+
# Corresponds to the JSON property `triggers`
|
128
|
+
# @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
|
129
|
+
attr_accessor :triggers
|
130
|
+
|
131
|
+
def initialize(**args)
|
132
|
+
update!(**args)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Update properties of this object
|
136
|
+
def update!(**args)
|
137
|
+
@triggers = args[:triggers] if args.key?(:triggers)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
25
141
|
# BuiltImage describes an image built by the pipeline.
|
26
142
|
class BuiltImage
|
27
143
|
include Google::Apis::Core::Hashable
|
@@ -97,18 +213,6 @@ module Google
|
|
97
213
|
class BuildStep
|
98
214
|
include Google::Apis::Core::Hashable
|
99
215
|
|
100
|
-
# Optional entrypoint to be used instead of the build step image's default
|
101
|
-
# If unset, the image's default will be used.
|
102
|
-
# Corresponds to the JSON property `entrypoint`
|
103
|
-
# @return [String]
|
104
|
-
attr_accessor :entrypoint
|
105
|
-
|
106
|
-
# Optional unique identifier for this build step, used in wait_for to
|
107
|
-
# reference this build step as a dependency.
|
108
|
-
# Corresponds to the JSON property `id`
|
109
|
-
# @return [String]
|
110
|
-
attr_accessor :id
|
111
|
-
|
112
216
|
# Working directory (relative to project source root) to use when running
|
113
217
|
# this operation's container.
|
114
218
|
# Corresponds to the JSON property `dir`
|
@@ -157,19 +261,31 @@ module Google
|
|
157
261
|
# @return [String]
|
158
262
|
attr_accessor :name
|
159
263
|
|
264
|
+
# Optional entrypoint to be used instead of the build step image's default
|
265
|
+
# If unset, the image's default will be used.
|
266
|
+
# Corresponds to the JSON property `entrypoint`
|
267
|
+
# @return [String]
|
268
|
+
attr_accessor :entrypoint
|
269
|
+
|
270
|
+
# Optional unique identifier for this build step, used in wait_for to
|
271
|
+
# reference this build step as a dependency.
|
272
|
+
# Corresponds to the JSON property `id`
|
273
|
+
# @return [String]
|
274
|
+
attr_accessor :id
|
275
|
+
|
160
276
|
def initialize(**args)
|
161
277
|
update!(**args)
|
162
278
|
end
|
163
279
|
|
164
280
|
# Update properties of this object
|
165
281
|
def update!(**args)
|
166
|
-
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
|
167
|
-
@id = args[:id] if args.key?(:id)
|
168
282
|
@dir = args[:dir] if args.key?(:dir)
|
169
283
|
@wait_for = args[:wait_for] if args.key?(:wait_for)
|
170
284
|
@env = args[:env] if args.key?(:env)
|
171
285
|
@args = args[:args] if args.key?(:args)
|
172
286
|
@name = args[:name] if args.key?(:name)
|
287
|
+
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
|
288
|
+
@id = args[:id] if args.key?(:id)
|
173
289
|
end
|
174
290
|
end
|
175
291
|
|
@@ -177,24 +293,24 @@ module Google
|
|
177
293
|
class HashProp
|
178
294
|
include Google::Apis::Core::Hashable
|
179
295
|
|
180
|
-
# The type of hash that was performed.
|
181
|
-
# Corresponds to the JSON property `type`
|
182
|
-
# @return [String]
|
183
|
-
attr_accessor :type
|
184
|
-
|
185
296
|
# The hash value.
|
186
297
|
# Corresponds to the JSON property `value`
|
187
298
|
# @return [String]
|
188
299
|
attr_accessor :value
|
189
300
|
|
301
|
+
# The type of hash that was performed.
|
302
|
+
# Corresponds to the JSON property `type`
|
303
|
+
# @return [String]
|
304
|
+
attr_accessor :type
|
305
|
+
|
190
306
|
def initialize(**args)
|
191
307
|
update!(**args)
|
192
308
|
end
|
193
309
|
|
194
310
|
# Update properties of this object
|
195
311
|
def update!(**args)
|
196
|
-
@type = args[:type] if args.key?(:type)
|
197
312
|
@value = args[:value] if args.key?(:value)
|
313
|
+
@type = args[:type] if args.key?(:type)
|
198
314
|
end
|
199
315
|
end
|
200
316
|
|
@@ -260,13 +376,6 @@ module Google
|
|
260
376
|
class Status
|
261
377
|
include Google::Apis::Core::Hashable
|
262
378
|
|
263
|
-
# A developer-facing error message, which should be in English. Any
|
264
|
-
# user-facing error message should be localized and sent in the
|
265
|
-
# google.rpc.Status.details field, or localized by the client.
|
266
|
-
# Corresponds to the JSON property `message`
|
267
|
-
# @return [String]
|
268
|
-
attr_accessor :message
|
269
|
-
|
270
379
|
# A list of messages that carry the error details. There will be a
|
271
380
|
# common set of message types for APIs to use.
|
272
381
|
# Corresponds to the JSON property `details`
|
@@ -278,15 +387,22 @@ module Google
|
|
278
387
|
# @return [Fixnum]
|
279
388
|
attr_accessor :code
|
280
389
|
|
390
|
+
# A developer-facing error message, which should be in English. Any
|
391
|
+
# user-facing error message should be localized and sent in the
|
392
|
+
# google.rpc.Status.details field, or localized by the client.
|
393
|
+
# Corresponds to the JSON property `message`
|
394
|
+
# @return [String]
|
395
|
+
attr_accessor :message
|
396
|
+
|
281
397
|
def initialize(**args)
|
282
398
|
update!(**args)
|
283
399
|
end
|
284
400
|
|
285
401
|
# Update properties of this object
|
286
402
|
def update!(**args)
|
287
|
-
@message = args[:message] if args.key?(:message)
|
288
403
|
@details = args[:details] if args.key?(:details)
|
289
404
|
@code = args[:code] if args.key?(:code)
|
405
|
+
@message = args[:message] if args.key?(:message)
|
290
406
|
end
|
291
407
|
end
|
292
408
|
|
@@ -314,6 +430,18 @@ module Google
|
|
314
430
|
class BuildTrigger
|
315
431
|
include Google::Apis::Core::Hashable
|
316
432
|
|
433
|
+
# Path, from the source root, to a file whose contents is used for the
|
434
|
+
# template.
|
435
|
+
# Corresponds to the JSON property `filename`
|
436
|
+
# @return [String]
|
437
|
+
attr_accessor :filename
|
438
|
+
|
439
|
+
# RepoSource describes the location of the source in a Google Cloud Source
|
440
|
+
# Repository.
|
441
|
+
# Corresponds to the JSON property `triggerTemplate`
|
442
|
+
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
443
|
+
attr_accessor :trigger_template
|
444
|
+
|
317
445
|
# Unique identifier of the trigger.
|
318
446
|
# @OutputOnly
|
319
447
|
# Corresponds to the JSON property `id`
|
@@ -347,29 +475,17 @@ module Google
|
|
347
475
|
# @return [String]
|
348
476
|
attr_accessor :description
|
349
477
|
|
350
|
-
# Time when the trigger was created.
|
351
|
-
# @OutputOnly
|
352
|
-
# Corresponds to the JSON property `createTime`
|
353
|
-
# @return [String]
|
354
|
-
attr_accessor :create_time
|
355
|
-
|
356
478
|
# If true, the trigger will never result in a build.
|
357
479
|
# Corresponds to the JSON property `disabled`
|
358
480
|
# @return [Boolean]
|
359
481
|
attr_accessor :disabled
|
360
482
|
alias_method :disabled?, :disabled
|
361
483
|
|
362
|
-
#
|
363
|
-
#
|
364
|
-
# Corresponds to the JSON property `
|
365
|
-
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
366
|
-
attr_accessor :trigger_template
|
367
|
-
|
368
|
-
# Path, from the source root, to a file whose contents is used for the
|
369
|
-
# template.
|
370
|
-
# Corresponds to the JSON property `filename`
|
484
|
+
# Time when the trigger was created.
|
485
|
+
# @OutputOnly
|
486
|
+
# Corresponds to the JSON property `createTime`
|
371
487
|
# @return [String]
|
372
|
-
attr_accessor :
|
488
|
+
attr_accessor :create_time
|
373
489
|
|
374
490
|
def initialize(**args)
|
375
491
|
update!(**args)
|
@@ -377,14 +493,14 @@ module Google
|
|
377
493
|
|
378
494
|
# Update properties of this object
|
379
495
|
def update!(**args)
|
496
|
+
@filename = args[:filename] if args.key?(:filename)
|
497
|
+
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
|
380
498
|
@id = args[:id] if args.key?(:id)
|
381
499
|
@build = args[:build] if args.key?(:build)
|
382
500
|
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
383
501
|
@description = args[:description] if args.key?(:description)
|
384
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
385
502
|
@disabled = args[:disabled] if args.key?(:disabled)
|
386
|
-
@
|
387
|
-
@filename = args[:filename] if args.key?(:filename)
|
503
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
388
504
|
end
|
389
505
|
end
|
390
506
|
|
@@ -404,13 +520,22 @@ module Google
|
|
404
520
|
class Build
|
405
521
|
include Google::Apis::Core::Hashable
|
406
522
|
|
407
|
-
#
|
408
|
-
#
|
409
|
-
#
|
410
|
-
#
|
411
|
-
|
523
|
+
# Source describes the location of the source in a supported storage
|
524
|
+
# service.
|
525
|
+
# Corresponds to the JSON property `source`
|
526
|
+
# @return [Google::Apis::CloudbuildV1::Source]
|
527
|
+
attr_accessor :source
|
528
|
+
|
529
|
+
# Optional arguments to enable specific features of builds.
|
530
|
+
# Corresponds to the JSON property `options`
|
531
|
+
# @return [Google::Apis::CloudbuildV1::BuildOptions]
|
532
|
+
attr_accessor :options
|
533
|
+
|
534
|
+
# Customer-readable message about the current status.
|
535
|
+
# @OutputOnly
|
536
|
+
# Corresponds to the JSON property `statusDetail`
|
412
537
|
# @return [String]
|
413
|
-
attr_accessor :
|
538
|
+
attr_accessor :status_detail
|
414
539
|
|
415
540
|
# Status of the build.
|
416
541
|
# @OutputOnly
|
@@ -418,11 +543,18 @@ module Google
|
|
418
543
|
# @return [String]
|
419
544
|
attr_accessor :status
|
420
545
|
|
421
|
-
#
|
422
|
-
#
|
423
|
-
#
|
546
|
+
# Amount of time that this build should be allowed to run, to second
|
547
|
+
# granularity. If this amount of time elapses, work on the build will cease
|
548
|
+
# and the build status will be TIMEOUT.
|
549
|
+
# Default time is ten minutes.
|
550
|
+
# Corresponds to the JSON property `timeout`
|
424
551
|
# @return [String]
|
425
|
-
attr_accessor :
|
552
|
+
attr_accessor :timeout
|
553
|
+
|
554
|
+
# Results describes the artifacts created by the build pipeline.
|
555
|
+
# Corresponds to the JSON property `results`
|
556
|
+
# @return [Google::Apis::CloudbuildV1::Results]
|
557
|
+
attr_accessor :results
|
426
558
|
|
427
559
|
# Google Cloud Storage bucket where logs should be written (see
|
428
560
|
# [Bucket Name
|
@@ -433,11 +565,6 @@ module Google
|
|
433
565
|
# @return [String]
|
434
566
|
attr_accessor :logs_bucket
|
435
567
|
|
436
|
-
# Results describes the artifacts created by the build pipeline.
|
437
|
-
# Corresponds to the JSON property `results`
|
438
|
-
# @return [Google::Apis::CloudbuildV1::Results]
|
439
|
-
attr_accessor :results
|
440
|
-
|
441
568
|
# Describes the operations to be performed on the workspace.
|
442
569
|
# Corresponds to the JSON property `steps`
|
443
570
|
# @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
|
@@ -456,22 +583,16 @@ module Google
|
|
456
583
|
# @return [String]
|
457
584
|
attr_accessor :id
|
458
585
|
|
459
|
-
# Time at which execution of the build was started.
|
460
|
-
# @OutputOnly
|
461
|
-
# Corresponds to the JSON property `startTime`
|
462
|
-
# @return [String]
|
463
|
-
attr_accessor :start_time
|
464
|
-
|
465
586
|
# Substitutions data for Build resource.
|
466
587
|
# Corresponds to the JSON property `substitutions`
|
467
588
|
# @return [Hash<String,String>]
|
468
589
|
attr_accessor :substitutions
|
469
590
|
|
470
|
-
# Time at which
|
591
|
+
# Time at which execution of the build was started.
|
471
592
|
# @OutputOnly
|
472
|
-
# Corresponds to the JSON property `
|
593
|
+
# Corresponds to the JSON property `startTime`
|
473
594
|
# @return [String]
|
474
|
-
attr_accessor :
|
595
|
+
attr_accessor :start_time
|
475
596
|
|
476
597
|
# Provenance of the source. Ways to find the original source, or verify that
|
477
598
|
# some source was used for this build.
|
@@ -479,6 +600,12 @@ module Google
|
|
479
600
|
# @return [Google::Apis::CloudbuildV1::SourceProvenance]
|
480
601
|
attr_accessor :source_provenance
|
481
602
|
|
603
|
+
# Time at which the request to create the build was received.
|
604
|
+
# @OutputOnly
|
605
|
+
# Corresponds to the JSON property `createTime`
|
606
|
+
# @return [String]
|
607
|
+
attr_accessor :create_time
|
608
|
+
|
482
609
|
# A list of images to be pushed upon the successful completion of all build
|
483
610
|
# steps.
|
484
611
|
# The images will be pushed using the builder service account's credentials.
|
@@ -509,41 +636,30 @@ module Google
|
|
509
636
|
# @return [String]
|
510
637
|
attr_accessor :log_url
|
511
638
|
|
512
|
-
# Source describes the location of the source in a supported storage
|
513
|
-
# service.
|
514
|
-
# Corresponds to the JSON property `source`
|
515
|
-
# @return [Google::Apis::CloudbuildV1::Source]
|
516
|
-
attr_accessor :source
|
517
|
-
|
518
|
-
# Optional arguments to enable specific features of builds.
|
519
|
-
# Corresponds to the JSON property `options`
|
520
|
-
# @return [Google::Apis::CloudbuildV1::BuildOptions]
|
521
|
-
attr_accessor :options
|
522
|
-
|
523
639
|
def initialize(**args)
|
524
640
|
update!(**args)
|
525
641
|
end
|
526
642
|
|
527
643
|
# Update properties of this object
|
528
644
|
def update!(**args)
|
529
|
-
@
|
530
|
-
@
|
645
|
+
@source = args[:source] if args.key?(:source)
|
646
|
+
@options = args[:options] if args.key?(:options)
|
531
647
|
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
532
|
-
@
|
648
|
+
@status = args[:status] if args.key?(:status)
|
649
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
533
650
|
@results = args[:results] if args.key?(:results)
|
651
|
+
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
|
534
652
|
@steps = args[:steps] if args.key?(:steps)
|
535
653
|
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
|
536
654
|
@id = args[:id] if args.key?(:id)
|
537
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
538
655
|
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
539
|
-
@
|
656
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
540
657
|
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
|
658
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
541
659
|
@images = args[:images] if args.key?(:images)
|
542
660
|
@project_id = args[:project_id] if args.key?(:project_id)
|
543
661
|
@finish_time = args[:finish_time] if args.key?(:finish_time)
|
544
662
|
@log_url = args[:log_url] if args.key?(:log_url)
|
545
|
-
@source = args[:source] if args.key?(:source)
|
546
|
-
@options = args[:options] if args.key?(:options)
|
547
663
|
end
|
548
664
|
end
|
549
665
|
|
@@ -615,26 +731,26 @@ module Google
|
|
615
731
|
class Source
|
616
732
|
include Google::Apis::Core::Hashable
|
617
733
|
|
618
|
-
# RepoSource describes the location of the source in a Google Cloud Source
|
619
|
-
# Repository.
|
620
|
-
# Corresponds to the JSON property `repoSource`
|
621
|
-
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
622
|
-
attr_accessor :repo_source
|
623
|
-
|
624
734
|
# StorageSource describes the location of the source in an archive file in
|
625
735
|
# Google Cloud Storage.
|
626
736
|
# Corresponds to the JSON property `storageSource`
|
627
737
|
# @return [Google::Apis::CloudbuildV1::StorageSource]
|
628
738
|
attr_accessor :storage_source
|
629
739
|
|
740
|
+
# RepoSource describes the location of the source in a Google Cloud Source
|
741
|
+
# Repository.
|
742
|
+
# Corresponds to the JSON property `repoSource`
|
743
|
+
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
744
|
+
attr_accessor :repo_source
|
745
|
+
|
630
746
|
def initialize(**args)
|
631
747
|
update!(**args)
|
632
748
|
end
|
633
749
|
|
634
750
|
# Update properties of this object
|
635
751
|
def update!(**args)
|
636
|
-
@repo_source = args[:repo_source] if args.key?(:repo_source)
|
637
752
|
@storage_source = args[:storage_source] if args.key?(:storage_source)
|
753
|
+
@repo_source = args[:repo_source] if args.key?(:repo_source)
|
638
754
|
end
|
639
755
|
end
|
640
756
|
|
@@ -642,24 +758,24 @@ module Google
|
|
642
758
|
class BuildOptions
|
643
759
|
include Google::Apis::Core::Hashable
|
644
760
|
|
645
|
-
# Requested verifiability options.
|
646
|
-
# Corresponds to the JSON property `requestedVerifyOption`
|
647
|
-
# @return [String]
|
648
|
-
attr_accessor :requested_verify_option
|
649
|
-
|
650
761
|
# Requested hash for SourceProvenance.
|
651
762
|
# Corresponds to the JSON property `sourceProvenanceHash`
|
652
763
|
# @return [Array<String>]
|
653
764
|
attr_accessor :source_provenance_hash
|
654
765
|
|
766
|
+
# Requested verifiability options.
|
767
|
+
# Corresponds to the JSON property `requestedVerifyOption`
|
768
|
+
# @return [String]
|
769
|
+
attr_accessor :requested_verify_option
|
770
|
+
|
655
771
|
def initialize(**args)
|
656
772
|
update!(**args)
|
657
773
|
end
|
658
774
|
|
659
775
|
# Update properties of this object
|
660
776
|
def update!(**args)
|
661
|
-
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
|
662
777
|
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
|
778
|
+
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
|
663
779
|
end
|
664
780
|
end
|
665
781
|
|
@@ -668,6 +784,12 @@ module Google
|
|
668
784
|
class StorageSource
|
669
785
|
include Google::Apis::Core::Hashable
|
670
786
|
|
787
|
+
# Google Cloud Storage generation for the object. If the generation is
|
788
|
+
# omitted, the latest generation will be used.
|
789
|
+
# Corresponds to the JSON property `generation`
|
790
|
+
# @return [String]
|
791
|
+
attr_accessor :generation
|
792
|
+
|
671
793
|
# Google Cloud Storage bucket containing source (see
|
672
794
|
# [Bucket Name
|
673
795
|
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
@@ -683,21 +805,15 @@ module Google
|
|
683
805
|
# @return [String]
|
684
806
|
attr_accessor :object
|
685
807
|
|
686
|
-
# Google Cloud Storage generation for the object. If the generation is
|
687
|
-
# omitted, the latest generation will be used.
|
688
|
-
# Corresponds to the JSON property `generation`
|
689
|
-
# @return [String]
|
690
|
-
attr_accessor :generation
|
691
|
-
|
692
808
|
def initialize(**args)
|
693
809
|
update!(**args)
|
694
810
|
end
|
695
811
|
|
696
812
|
# Update properties of this object
|
697
813
|
def update!(**args)
|
814
|
+
@generation = args[:generation] if args.key?(:generation)
|
698
815
|
@bucket = args[:bucket] if args.key?(:bucket)
|
699
816
|
@object = args[:object] if args.key?(:object)
|
700
|
-
@generation = args[:generation] if args.key?(:generation)
|
701
817
|
end
|
702
818
|
end
|
703
819
|
|
@@ -705,24 +821,24 @@ module Google
|
|
705
821
|
class Results
|
706
822
|
include Google::Apis::Core::Hashable
|
707
823
|
|
708
|
-
# List of build step digests, in order corresponding to build step indices.
|
709
|
-
# Corresponds to the JSON property `buildStepImages`
|
710
|
-
# @return [Array<String>]
|
711
|
-
attr_accessor :build_step_images
|
712
|
-
|
713
824
|
# Images that were built as a part of the build.
|
714
825
|
# Corresponds to the JSON property `images`
|
715
826
|
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
|
716
827
|
attr_accessor :images
|
717
828
|
|
829
|
+
# List of build step digests, in order corresponding to build step indices.
|
830
|
+
# Corresponds to the JSON property `buildStepImages`
|
831
|
+
# @return [Array<String>]
|
832
|
+
attr_accessor :build_step_images
|
833
|
+
|
718
834
|
def initialize(**args)
|
719
835
|
update!(**args)
|
720
836
|
end
|
721
837
|
|
722
838
|
# Update properties of this object
|
723
839
|
def update!(**args)
|
724
|
-
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
|
725
840
|
@images = args[:images] if args.key?(:images)
|
841
|
+
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
|
726
842
|
end
|
727
843
|
end
|
728
844
|
|
@@ -762,12 +878,6 @@ module Google
|
|
762
878
|
class SourceProvenance
|
763
879
|
include Google::Apis::Core::Hashable
|
764
880
|
|
765
|
-
# RepoSource describes the location of the source in a Google Cloud Source
|
766
|
-
# Repository.
|
767
|
-
# Corresponds to the JSON property `resolvedRepoSource`
|
768
|
-
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
769
|
-
attr_accessor :resolved_repo_source
|
770
|
-
|
771
881
|
# StorageSource describes the location of the source in an archive file in
|
772
882
|
# Google Cloud Storage.
|
773
883
|
# Corresponds to the JSON property `resolvedStorageSource`
|
@@ -786,15 +896,21 @@ module Google
|
|
786
896
|
# @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
|
787
897
|
attr_accessor :file_hashes
|
788
898
|
|
899
|
+
# RepoSource describes the location of the source in a Google Cloud Source
|
900
|
+
# Repository.
|
901
|
+
# Corresponds to the JSON property `resolvedRepoSource`
|
902
|
+
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
903
|
+
attr_accessor :resolved_repo_source
|
904
|
+
|
789
905
|
def initialize(**args)
|
790
906
|
update!(**args)
|
791
907
|
end
|
792
908
|
|
793
909
|
# Update properties of this object
|
794
910
|
def update!(**args)
|
795
|
-
@resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
|
796
911
|
@resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
|
797
912
|
@file_hashes = args[:file_hashes] if args.key?(:file_hashes)
|
913
|
+
@resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
|
798
914
|
end
|
799
915
|
end
|
800
916
|
|
@@ -810,122 +926,6 @@ module Google
|
|
810
926
|
def update!(**args)
|
811
927
|
end
|
812
928
|
end
|
813
|
-
|
814
|
-
# This resource represents a long-running operation that is the result of a
|
815
|
-
# network API call.
|
816
|
-
class Operation
|
817
|
-
include Google::Apis::Core::Hashable
|
818
|
-
|
819
|
-
# Service-specific metadata associated with the operation. It typically
|
820
|
-
# contains progress information and common metadata such as create time.
|
821
|
-
# Some services might not provide such metadata. Any method that returns a
|
822
|
-
# long-running operation should document the metadata type, if any.
|
823
|
-
# Corresponds to the JSON property `metadata`
|
824
|
-
# @return [Hash<String,Object>]
|
825
|
-
attr_accessor :metadata
|
826
|
-
|
827
|
-
# If the value is `false`, it means the operation is still in progress.
|
828
|
-
# If true, the operation is completed, and either `error` or `response` is
|
829
|
-
# available.
|
830
|
-
# Corresponds to the JSON property `done`
|
831
|
-
# @return [Boolean]
|
832
|
-
attr_accessor :done
|
833
|
-
alias_method :done?, :done
|
834
|
-
|
835
|
-
# The normal response of the operation in case of success. If the original
|
836
|
-
# method returns no data on success, such as `Delete`, the response is
|
837
|
-
# `google.protobuf.Empty`. If the original method is standard
|
838
|
-
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
839
|
-
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
840
|
-
# is the original method name. For example, if the original method name
|
841
|
-
# is `TakeSnapshot()`, the inferred response type is
|
842
|
-
# `TakeSnapshotResponse`.
|
843
|
-
# Corresponds to the JSON property `response`
|
844
|
-
# @return [Hash<String,Object>]
|
845
|
-
attr_accessor :response
|
846
|
-
|
847
|
-
# The server-assigned name, which is only unique within the same service that
|
848
|
-
# originally returns it. If you use the default HTTP mapping, the
|
849
|
-
# `name` should have the format of `operations/some/unique/name`.
|
850
|
-
# Corresponds to the JSON property `name`
|
851
|
-
# @return [String]
|
852
|
-
attr_accessor :name
|
853
|
-
|
854
|
-
# The `Status` type defines a logical error model that is suitable for different
|
855
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
856
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
857
|
-
# - Simple to use and understand for most users
|
858
|
-
# - Flexible enough to meet unexpected needs
|
859
|
-
# # Overview
|
860
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
861
|
-
# and error details. The error code should be an enum value of
|
862
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
863
|
-
# error message should be a developer-facing English message that helps
|
864
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
865
|
-
# error message is needed, put the localized message in the error details or
|
866
|
-
# localize it in the client. The optional error details may contain arbitrary
|
867
|
-
# information about the error. There is a predefined set of error detail types
|
868
|
-
# in the package `google.rpc` which can be used for common error conditions.
|
869
|
-
# # Language mapping
|
870
|
-
# The `Status` message is the logical representation of the error model, but it
|
871
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
872
|
-
# exposed in different client libraries and different wire protocols, it can be
|
873
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
874
|
-
# in Java, but more likely mapped to some error codes in C.
|
875
|
-
# # Other uses
|
876
|
-
# The error model and the `Status` message can be used in a variety of
|
877
|
-
# environments, either with or without APIs, to provide a
|
878
|
-
# consistent developer experience across different environments.
|
879
|
-
# Example uses of this error model include:
|
880
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
881
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
882
|
-
# errors.
|
883
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
884
|
-
# have a `Status` message for error reporting purpose.
|
885
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
886
|
-
# `Status` message should be used directly inside batch response, one for
|
887
|
-
# each error sub-response.
|
888
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
889
|
-
# results in its response, the status of those operations should be
|
890
|
-
# represented directly using the `Status` message.
|
891
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
892
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
893
|
-
# Corresponds to the JSON property `error`
|
894
|
-
# @return [Google::Apis::CloudbuildV1::Status]
|
895
|
-
attr_accessor :error
|
896
|
-
|
897
|
-
def initialize(**args)
|
898
|
-
update!(**args)
|
899
|
-
end
|
900
|
-
|
901
|
-
# Update properties of this object
|
902
|
-
def update!(**args)
|
903
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
904
|
-
@done = args[:done] if args.key?(:done)
|
905
|
-
@response = args[:response] if args.key?(:response)
|
906
|
-
@name = args[:name] if args.key?(:name)
|
907
|
-
@error = args[:error] if args.key?(:error)
|
908
|
-
end
|
909
|
-
end
|
910
|
-
|
911
|
-
# Response containing existing BuildTriggers.
|
912
|
-
class ListBuildTriggersResponse
|
913
|
-
include Google::Apis::Core::Hashable
|
914
|
-
|
915
|
-
# BuildTriggers for the project, sorted by create_time descending.
|
916
|
-
# Corresponds to the JSON property `triggers`
|
917
|
-
# @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
|
918
|
-
attr_accessor :triggers
|
919
|
-
|
920
|
-
def initialize(**args)
|
921
|
-
update!(**args)
|
922
|
-
end
|
923
|
-
|
924
|
-
# Update properties of this object
|
925
|
-
def update!(**args)
|
926
|
-
@triggers = args[:triggers] if args.key?(:triggers)
|
927
|
-
end
|
928
|
-
end
|
929
929
|
end
|
930
930
|
end
|
931
931
|
end
|