google-apis-cloudbuild_v1 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66b323c789e6bc9947e8dac8417316c704493f796dcafe8fc6a2963da747967d
|
4
|
+
data.tar.gz: 9baeb8eee4f65e4d90902cce1b03f16661b40f7c9ca40b10051f34210773c693
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b58cffc5613b51372423c05625cbd2cab5c2447075ff3c89e7b8a63b9c21298ae31677397d76128013e2f98bbadf66280a19efe8ea0043ff038703504fff530
|
7
|
+
data.tar.gz: 67c42a3adf0a93f62959d338b7e1f1b129809d4b88ba15431c406498e024ed9dae90b67db8f7656b55b648e27fdfa79c773a78bf5bb37527cefcb3f7c6ae9b62
|
data/CHANGELOG.md
CHANGED
@@ -119,12 +119,13 @@ module Google
|
|
119
119
|
# where to find source code, how to build it (for example, the builder image to
|
120
120
|
# run on the source), and where to store the built artifacts. Fields can include
|
121
121
|
# the following variables, which will be expanded when the build is created: - $
|
122
|
-
# PROJECT_ID: the project ID of the build. - $
|
123
|
-
# the build. - $
|
124
|
-
#
|
125
|
-
# name specified by RepoSource. - $
|
126
|
-
#
|
127
|
-
#
|
122
|
+
# PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
|
123
|
+
# of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME:
|
124
|
+
# the source repository name specified by RepoSource. - $BRANCH_NAME: the branch
|
125
|
+
# name specified by RepoSource. - $TAG_NAME: the tag name specified by
|
126
|
+
# RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by
|
127
|
+
# RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7
|
128
|
+
# characters of $REVISION_ID or $COMMIT_SHA.
|
128
129
|
class Build
|
129
130
|
include Google::Apis::Core::Hashable
|
130
131
|
|
@@ -134,6 +135,11 @@ module Google
|
|
134
135
|
# @return [Google::Apis::CloudbuildV1::Artifacts]
|
135
136
|
attr_accessor :artifacts
|
136
137
|
|
138
|
+
# Secrets and secret environment variables.
|
139
|
+
# Corresponds to the JSON property `availableSecrets`
|
140
|
+
# @return [Google::Apis::CloudbuildV1::Secrets]
|
141
|
+
attr_accessor :available_secrets
|
142
|
+
|
137
143
|
# Output only. The ID of the `BuildTrigger` that triggered this build, if it was
|
138
144
|
# triggered automatically.
|
139
145
|
# Corresponds to the JSON property `buildTriggerId`
|
@@ -206,7 +212,11 @@ module Google
|
|
206
212
|
# @return [Google::Apis::CloudbuildV1::Results]
|
207
213
|
attr_accessor :results
|
208
214
|
|
209
|
-
# Secrets to decrypt using Cloud Key Management Service.
|
215
|
+
# Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is
|
216
|
+
# the recommended technique for managing sensitive data with Cloud Build. Use `
|
217
|
+
# available_secrets` to configure builds to access secrets from Secret Manager.
|
218
|
+
# For instructions, see: https://cloud.google.com/cloud-build/docs/securing-
|
219
|
+
# builds/use-secrets
|
210
220
|
# Corresponds to the JSON property `secrets`
|
211
221
|
# @return [Array<Google::Apis::CloudbuildV1::Secret>]
|
212
222
|
attr_accessor :secrets
|
@@ -282,6 +292,7 @@ module Google
|
|
282
292
|
# Update properties of this object
|
283
293
|
def update!(**args)
|
284
294
|
@artifacts = args[:artifacts] if args.key?(:artifacts)
|
295
|
+
@available_secrets = args[:available_secrets] if args.key?(:available_secrets)
|
285
296
|
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
|
286
297
|
@create_time = args[:create_time] if args.key?(:create_time)
|
287
298
|
@finish_time = args[:finish_time] if args.key?(:finish_time)
|
@@ -317,12 +328,13 @@ module Google
|
|
317
328
|
# where to find source code, how to build it (for example, the builder image to
|
318
329
|
# run on the source), and where to store the built artifacts. Fields can include
|
319
330
|
# the following variables, which will be expanded when the build is created: - $
|
320
|
-
# PROJECT_ID: the project ID of the build. - $
|
321
|
-
# the build. - $
|
322
|
-
#
|
323
|
-
# name specified by RepoSource. - $
|
324
|
-
#
|
325
|
-
#
|
331
|
+
# PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
|
332
|
+
# of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME:
|
333
|
+
# the source repository name specified by RepoSource. - $BRANCH_NAME: the branch
|
334
|
+
# name specified by RepoSource. - $TAG_NAME: the tag name specified by
|
335
|
+
# RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by
|
336
|
+
# RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7
|
337
|
+
# characters of $REVISION_ID or $COMMIT_SHA.
|
326
338
|
# Corresponds to the JSON property `build`
|
327
339
|
# @return [Google::Apis::CloudbuildV1::Build]
|
328
340
|
attr_accessor :build
|
@@ -582,12 +594,13 @@ module Google
|
|
582
594
|
# where to find source code, how to build it (for example, the builder image to
|
583
595
|
# run on the source), and where to store the built artifacts. Fields can include
|
584
596
|
# the following variables, which will be expanded when the build is created: - $
|
585
|
-
# PROJECT_ID: the project ID of the build. - $
|
586
|
-
# the build. - $
|
587
|
-
#
|
588
|
-
# name specified by RepoSource. - $
|
589
|
-
#
|
590
|
-
#
|
597
|
+
# PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
|
598
|
+
# of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME:
|
599
|
+
# the source repository name specified by RepoSource. - $BRANCH_NAME: the branch
|
600
|
+
# name specified by RepoSource. - $TAG_NAME: the tag name specified by
|
601
|
+
# RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by
|
602
|
+
# RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7
|
603
|
+
# characters of $REVISION_ID or $COMMIT_SHA.
|
591
604
|
# Corresponds to the JSON property `build`
|
592
605
|
# @return [Google::Apis::CloudbuildV1::Build]
|
593
606
|
attr_accessor :build
|
@@ -895,6 +908,84 @@ module Google
|
|
895
908
|
end
|
896
909
|
end
|
897
910
|
|
911
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
912
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
913
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
914
|
+
# methods in the request as well as the response. It can be used as a top-level
|
915
|
+
# request field, which is convenient if one wants to extract parameters from
|
916
|
+
# either the URL or HTTP template into the request fields and also want access
|
917
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
918
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
919
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
920
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
921
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
922
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
923
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
924
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
925
|
+
# only changes how the request and response bodies are handled, all other
|
926
|
+
# features will continue to work unchanged.
|
927
|
+
class HttpBody
|
928
|
+
include Google::Apis::Core::Hashable
|
929
|
+
|
930
|
+
# The HTTP Content-Type header value specifying the content type of the body.
|
931
|
+
# Corresponds to the JSON property `contentType`
|
932
|
+
# @return [String]
|
933
|
+
attr_accessor :content_type
|
934
|
+
|
935
|
+
# The HTTP request/response body as raw binary.
|
936
|
+
# Corresponds to the JSON property `data`
|
937
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
938
|
+
# @return [String]
|
939
|
+
attr_accessor :data
|
940
|
+
|
941
|
+
# Application specific response metadata. Must be set in the first response for
|
942
|
+
# streaming APIs.
|
943
|
+
# Corresponds to the JSON property `extensions`
|
944
|
+
# @return [Array<Hash<String,Object>>]
|
945
|
+
attr_accessor :extensions
|
946
|
+
|
947
|
+
def initialize(**args)
|
948
|
+
update!(**args)
|
949
|
+
end
|
950
|
+
|
951
|
+
# Update properties of this object
|
952
|
+
def update!(**args)
|
953
|
+
@content_type = args[:content_type] if args.key?(:content_type)
|
954
|
+
@data = args[:data] if args.key?(:data)
|
955
|
+
@extensions = args[:extensions] if args.key?(:extensions)
|
956
|
+
end
|
957
|
+
end
|
958
|
+
|
959
|
+
# Pairs a set of secret environment variables mapped to encrypted values with
|
960
|
+
# the Cloud KMS key to use to decrypt the value.
|
961
|
+
class InlineSecret
|
962
|
+
include Google::Apis::Core::Hashable
|
963
|
+
|
964
|
+
# Map of environment variable name to its encrypted value. Secret environment
|
965
|
+
# variables must be unique across all of a build's secrets, and must be used by
|
966
|
+
# at least one build step. Values can be at most 64 KB in size. There can be at
|
967
|
+
# most 100 secret values across all of a build's secrets.
|
968
|
+
# Corresponds to the JSON property `envMap`
|
969
|
+
# @return [Hash<String,String>]
|
970
|
+
attr_accessor :env_map
|
971
|
+
|
972
|
+
# Resource name of Cloud KMS crypto key to decrypt the encrypted value. In
|
973
|
+
# format: projects/*/locations/*/keyRings/*/cryptoKeys/*
|
974
|
+
# Corresponds to the JSON property `kmsKeyName`
|
975
|
+
# @return [String]
|
976
|
+
attr_accessor :kms_key_name
|
977
|
+
|
978
|
+
def initialize(**args)
|
979
|
+
update!(**args)
|
980
|
+
end
|
981
|
+
|
982
|
+
# Update properties of this object
|
983
|
+
def update!(**args)
|
984
|
+
@env_map = args[:env_map] if args.key?(:env_map)
|
985
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
986
|
+
end
|
987
|
+
end
|
988
|
+
|
898
989
|
# Response containing existing `BuildTriggers`.
|
899
990
|
class ListBuildTriggersResponse
|
900
991
|
include Google::Apis::Core::Hashable
|
@@ -1272,6 +1363,20 @@ module Google
|
|
1272
1363
|
end
|
1273
1364
|
end
|
1274
1365
|
|
1366
|
+
# ReceiveTriggerWebhookResponse [Experimental] is the response object for the
|
1367
|
+
# ReceiveTriggerWebhook method.
|
1368
|
+
class ReceiveTriggerWebhookResponse
|
1369
|
+
include Google::Apis::Core::Hashable
|
1370
|
+
|
1371
|
+
def initialize(**args)
|
1372
|
+
update!(**args)
|
1373
|
+
end
|
1374
|
+
|
1375
|
+
# Update properties of this object
|
1376
|
+
def update!(**args)
|
1377
|
+
end
|
1378
|
+
end
|
1379
|
+
|
1275
1380
|
# Location of the source in a Google Cloud Source Repository.
|
1276
1381
|
class RepoSource
|
1277
1382
|
include Google::Apis::Core::Hashable
|
@@ -1307,7 +1412,7 @@ module Google
|
|
1307
1412
|
# @return [String]
|
1308
1413
|
attr_accessor :project_id
|
1309
1414
|
|
1310
|
-
#
|
1415
|
+
# Name of the Cloud Source Repository.
|
1311
1416
|
# Corresponds to the JSON property `repoName`
|
1312
1417
|
# @return [String]
|
1313
1418
|
attr_accessor :repo_name
|
@@ -1479,7 +1584,10 @@ module Google
|
|
1479
1584
|
end
|
1480
1585
|
|
1481
1586
|
# Pairs a set of secret environment variables containing encrypted values with
|
1482
|
-
# the Cloud KMS key to use to decrypt the value.
|
1587
|
+
# the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `
|
1588
|
+
# available_secrets` instead of using `kmsKeyName` with `secret`. For
|
1589
|
+
# instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/
|
1590
|
+
# use-encrypted-credentials.
|
1483
1591
|
class Secret
|
1484
1592
|
include Google::Apis::Core::Hashable
|
1485
1593
|
|
@@ -1507,6 +1615,58 @@ module Google
|
|
1507
1615
|
end
|
1508
1616
|
end
|
1509
1617
|
|
1618
|
+
# Pairs a secret environment variable with a SecretVersion in Secret Manager.
|
1619
|
+
class SecretManagerSecret
|
1620
|
+
include Google::Apis::Core::Hashable
|
1621
|
+
|
1622
|
+
# Environment variable name to associate with the secret. Secret environment
|
1623
|
+
# variables must be unique across all of a build's secrets, and must be used by
|
1624
|
+
# at least one build step.
|
1625
|
+
# Corresponds to the JSON property `env`
|
1626
|
+
# @return [String]
|
1627
|
+
attr_accessor :env
|
1628
|
+
|
1629
|
+
# Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
|
1630
|
+
# Corresponds to the JSON property `versionName`
|
1631
|
+
# @return [String]
|
1632
|
+
attr_accessor :version_name
|
1633
|
+
|
1634
|
+
def initialize(**args)
|
1635
|
+
update!(**args)
|
1636
|
+
end
|
1637
|
+
|
1638
|
+
# Update properties of this object
|
1639
|
+
def update!(**args)
|
1640
|
+
@env = args[:env] if args.key?(:env)
|
1641
|
+
@version_name = args[:version_name] if args.key?(:version_name)
|
1642
|
+
end
|
1643
|
+
end
|
1644
|
+
|
1645
|
+
# Secrets and secret environment variables.
|
1646
|
+
class Secrets
|
1647
|
+
include Google::Apis::Core::Hashable
|
1648
|
+
|
1649
|
+
# Secrets encrypted with KMS key and the associated secret environment variable.
|
1650
|
+
# Corresponds to the JSON property `inline`
|
1651
|
+
# @return [Array<Google::Apis::CloudbuildV1::InlineSecret>]
|
1652
|
+
attr_accessor :inline
|
1653
|
+
|
1654
|
+
# Secrets in Secret Manager and associated secret environment variable.
|
1655
|
+
# Corresponds to the JSON property `secretManager`
|
1656
|
+
# @return [Array<Google::Apis::CloudbuildV1::SecretManagerSecret>]
|
1657
|
+
attr_accessor :secret_manager
|
1658
|
+
|
1659
|
+
def initialize(**args)
|
1660
|
+
update!(**args)
|
1661
|
+
end
|
1662
|
+
|
1663
|
+
# Update properties of this object
|
1664
|
+
def update!(**args)
|
1665
|
+
@inline = args[:inline] if args.key?(:inline)
|
1666
|
+
@secret_manager = args[:secret_manager] if args.key?(:secret_manager)
|
1667
|
+
end
|
1668
|
+
end
|
1669
|
+
|
1510
1670
|
# SlackDelivery is the delivery configuration for delivering Slack messages via
|
1511
1671
|
# webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/
|
1512
1672
|
# webhooks.
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudbuildV1
|
18
18
|
# Version of the google-apis-cloudbuild_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210128"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -118,6 +118,18 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
+
class HttpBody
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class InlineSecret
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
121
133
|
class ListBuildTriggersResponse
|
122
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
135
|
|
@@ -184,6 +196,12 @@ module Google
|
|
184
196
|
include Google::Apis::Core::JsonObjectSupport
|
185
197
|
end
|
186
198
|
|
199
|
+
class ReceiveTriggerWebhookResponse
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
187
205
|
class RepoSource
|
188
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
207
|
|
@@ -214,6 +232,18 @@ module Google
|
|
214
232
|
include Google::Apis::Core::JsonObjectSupport
|
215
233
|
end
|
216
234
|
|
235
|
+
class SecretManagerSecret
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
241
|
+
class Secrets
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
+
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
245
|
+
end
|
246
|
+
|
217
247
|
class SlackDelivery
|
218
248
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
249
|
|
@@ -289,6 +319,8 @@ module Google
|
|
289
319
|
class Representation < Google::Apis::Core::JsonRepresentation
|
290
320
|
property :artifacts, as: 'artifacts', class: Google::Apis::CloudbuildV1::Artifacts, decorator: Google::Apis::CloudbuildV1::Artifacts::Representation
|
291
321
|
|
322
|
+
property :available_secrets, as: 'availableSecrets', class: Google::Apis::CloudbuildV1::Secrets, decorator: Google::Apis::CloudbuildV1::Secrets::Representation
|
323
|
+
|
292
324
|
property :build_trigger_id, as: 'buildTriggerId'
|
293
325
|
property :create_time, as: 'createTime'
|
294
326
|
property :finish_time, as: 'finishTime'
|
@@ -461,6 +493,23 @@ module Google
|
|
461
493
|
end
|
462
494
|
end
|
463
495
|
|
496
|
+
class HttpBody
|
497
|
+
# @private
|
498
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
499
|
+
property :content_type, as: 'contentType'
|
500
|
+
property :data, :base64 => true, as: 'data'
|
501
|
+
collection :extensions, as: 'extensions'
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
505
|
+
class InlineSecret
|
506
|
+
# @private
|
507
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
508
|
+
hash :env_map, as: 'envMap'
|
509
|
+
property :kms_key_name, as: 'kmsKeyName'
|
510
|
+
end
|
511
|
+
end
|
512
|
+
|
464
513
|
class ListBuildTriggersResponse
|
465
514
|
# @private
|
466
515
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -568,6 +617,12 @@ module Google
|
|
568
617
|
end
|
569
618
|
end
|
570
619
|
|
620
|
+
class ReceiveTriggerWebhookResponse
|
621
|
+
# @private
|
622
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
623
|
+
end
|
624
|
+
end
|
625
|
+
|
571
626
|
class RepoSource
|
572
627
|
# @private
|
573
628
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -626,6 +681,24 @@ module Google
|
|
626
681
|
end
|
627
682
|
end
|
628
683
|
|
684
|
+
class SecretManagerSecret
|
685
|
+
# @private
|
686
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
687
|
+
property :env, as: 'env'
|
688
|
+
property :version_name, as: 'versionName'
|
689
|
+
end
|
690
|
+
end
|
691
|
+
|
692
|
+
class Secrets
|
693
|
+
# @private
|
694
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
695
|
+
collection :inline, as: 'inline', class: Google::Apis::CloudbuildV1::InlineSecret, decorator: Google::Apis::CloudbuildV1::InlineSecret::Representation
|
696
|
+
|
697
|
+
collection :secret_manager, as: 'secretManager', class: Google::Apis::CloudbuildV1::SecretManagerSecret, decorator: Google::Apis::CloudbuildV1::SecretManagerSecret::Representation
|
698
|
+
|
699
|
+
end
|
700
|
+
end
|
701
|
+
|
629
702
|
class SlackDelivery
|
630
703
|
# @private
|
631
704
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -821,6 +821,46 @@ module Google
|
|
821
821
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
822
822
|
execute_or_queue_command(command, &block)
|
823
823
|
end
|
824
|
+
|
825
|
+
# ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook
|
826
|
+
# request targeted at a specific trigger.
|
827
|
+
# @param [String] project_id
|
828
|
+
# Project in which the specified trigger lives
|
829
|
+
# @param [String] trigger
|
830
|
+
# Name of the trigger to run the payload against
|
831
|
+
# @param [Google::Apis::CloudbuildV1::HttpBody] http_body_object
|
832
|
+
# @param [String] secret
|
833
|
+
# Secret token used for authorization if an OAuth token isn't provided.
|
834
|
+
# @param [String] fields
|
835
|
+
# Selector specifying which fields to include in a partial response.
|
836
|
+
# @param [String] quota_user
|
837
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
838
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
839
|
+
# @param [Google::Apis::RequestOptions] options
|
840
|
+
# Request-specific options
|
841
|
+
#
|
842
|
+
# @yield [result, err] Result & error if block supplied
|
843
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::ReceiveTriggerWebhookResponse] parsed result object
|
844
|
+
# @yieldparam err [StandardError] error object if request failed
|
845
|
+
#
|
846
|
+
# @return [Google::Apis::CloudbuildV1::ReceiveTriggerWebhookResponse]
|
847
|
+
#
|
848
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
849
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
850
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
851
|
+
def webhook_project_trigger(project_id, trigger, http_body_object = nil, secret: nil, fields: nil, quota_user: nil, options: nil, &block)
|
852
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers/{trigger}:webhook', options)
|
853
|
+
command.request_representation = Google::Apis::CloudbuildV1::HttpBody::Representation
|
854
|
+
command.request_object = http_body_object
|
855
|
+
command.response_representation = Google::Apis::CloudbuildV1::ReceiveTriggerWebhookResponse::Representation
|
856
|
+
command.response_class = Google::Apis::CloudbuildV1::ReceiveTriggerWebhookResponse
|
857
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
858
|
+
command.params['trigger'] = trigger unless trigger.nil?
|
859
|
+
command.query['secret'] = secret unless secret.nil?
|
860
|
+
command.query['fields'] = fields unless fields.nil?
|
861
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
862
|
+
execute_or_queue_command(command, &block)
|
863
|
+
end
|
824
864
|
|
825
865
|
protected
|
826
866
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudbuild_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.2.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Cloud Build API V1
|