google-apis-cloudbuild_v1 0.1.0 → 0.6.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: 8f069c1d946b7924e2a0928e207be2a606f3dbbbb81665124bfdae5270da875e
4
- data.tar.gz: 7eccc6d0db1732de32d887fa88200f6ebfbaf4351e20b47e1a77a163fa21a5b5
3
+ metadata.gz: fe09b14ec704112605d3798aa9c336839d352449fc72f025a96880bfcc43ad94
4
+ data.tar.gz: 52d80cd95db5c3fbc4609b1e8c637bfe93219bdfc907ab4f44aa82d6dea07d5d
5
5
  SHA512:
6
- metadata.gz: e3c460100c276047bc9b557fb594b2a4e7bfd9ddad905cd19056a06423d4865b50b65ba3fb5bcdf9963257a164f1dd4161aac77b5b743b4f000b31910777bfec
7
- data.tar.gz: 78b758ad896ad7de7dba7e9edc2ef6e9617935c389c9dd8582f2d80d635b55a0b68a156bd044536542f2d0b95748968221929db82b91357df741b785947a31cb
6
+ metadata.gz: 55522af34c4f74f57a4d47ca0538bfb53a4905214566b0eaeb9a06a6255d080aca42b1ccf2f7e160b5a7127c0c63796ed748450c4183e8e9292926f0d7da1e90
7
+ data.tar.gz: b85d99bd5781fd6f596a9e650880ba38279a61217d7b3bd3fb8288170762e8311bbc52e32d0170299902ed0671fc7bc6b79f7eb1d053b00faac17607c2d37d25
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-cloudbuild_v1
2
2
 
3
+ ### v0.6.0 (2021-05-12)
4
+
5
+ * Regenerated from discovery document revision 20210511
6
+
7
+ ### v0.5.0 (2021-03-23)
8
+
9
+ * Regenerated from discovery document revision 20210319
10
+ * Regenerated using generator version 0.2.0
11
+
12
+ ### v0.4.0 (2021-03-04)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.3.0 (2021-02-24)
17
+
18
+ * Regenerated from discovery document revision 20210218
19
+
20
+ ### v0.2.0 (2021-02-02)
21
+
22
+ * Regenerated from discovery document revision 20210128
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated using generator version 0.1.1
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # View and manage your data across Google Cloud Platform services
32
+ # See, edit, configure, and delete your Google Cloud Platform data
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
@@ -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. - $BUILD_ID: the autogenerated ID of
123
- # the build. - $REPO_NAME: the source repository name specified by RepoSource. -
124
- # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag
125
- # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA
126
- # specified by RepoSource or resolved from the specified branch or tag. - $
127
- # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
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,14 +212,18 @@ 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
213
223
 
214
224
  # IAM service account whose credentials will be used at build runtime. Must be
215
225
  # of the format `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. ACCOUNT can
216
- # be email address or uniqueId of the service account. This field is in beta.
226
+ # be email address or uniqueId of the service account.
217
227
  # Corresponds to the JSON property `serviceAccount`
218
228
  # @return [String]
219
229
  attr_accessor :service_account
@@ -275,6 +285,11 @@ module Google
275
285
  # @return [Hash<String,Google::Apis::CloudbuildV1::TimeSpan>]
276
286
  attr_accessor :timing
277
287
 
288
+ # Output only. Non-fatal problems encountered during the execution of the build.
289
+ # Corresponds to the JSON property `warnings`
290
+ # @return [Array<Google::Apis::CloudbuildV1::Warning>]
291
+ attr_accessor :warnings
292
+
278
293
  def initialize(**args)
279
294
  update!(**args)
280
295
  end
@@ -282,6 +297,7 @@ module Google
282
297
  # Update properties of this object
283
298
  def update!(**args)
284
299
  @artifacts = args[:artifacts] if args.key?(:artifacts)
300
+ @available_secrets = args[:available_secrets] if args.key?(:available_secrets)
285
301
  @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
286
302
  @create_time = args[:create_time] if args.key?(:create_time)
287
303
  @finish_time = args[:finish_time] if args.key?(:finish_time)
@@ -306,6 +322,7 @@ module Google
306
322
  @tags = args[:tags] if args.key?(:tags)
307
323
  @timeout = args[:timeout] if args.key?(:timeout)
308
324
  @timing = args[:timing] if args.key?(:timing)
325
+ @warnings = args[:warnings] if args.key?(:warnings)
309
326
  end
310
327
  end
311
328
 
@@ -317,12 +334,13 @@ module Google
317
334
  # where to find source code, how to build it (for example, the builder image to
318
335
  # run on the source), and where to store the built artifacts. Fields can include
319
336
  # the following variables, which will be expanded when the build is created: - $
320
- # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of
321
- # the build. - $REPO_NAME: the source repository name specified by RepoSource. -
322
- # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag
323
- # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA
324
- # specified by RepoSource or resolved from the specified branch or tag. - $
325
- # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
337
+ # PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
338
+ # of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME:
339
+ # the source repository name specified by RepoSource. - $BRANCH_NAME: the branch
340
+ # name specified by RepoSource. - $TAG_NAME: the tag name specified by
341
+ # RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by
342
+ # RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7
343
+ # characters of $REVISION_ID or $COMMIT_SHA.
326
344
  # Corresponds to the JSON property `build`
327
345
  # @return [Google::Apis::CloudbuildV1::Build]
328
346
  attr_accessor :build
@@ -582,12 +600,13 @@ module Google
582
600
  # where to find source code, how to build it (for example, the builder image to
583
601
  # run on the source), and where to store the built artifacts. Fields can include
584
602
  # the following variables, which will be expanded when the build is created: - $
585
- # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of
586
- # the build. - $REPO_NAME: the source repository name specified by RepoSource. -
587
- # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag
588
- # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA
589
- # specified by RepoSource or resolved from the specified branch or tag. - $
590
- # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
603
+ # PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
604
+ # of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME:
605
+ # the source repository name specified by RepoSource. - $BRANCH_NAME: the branch
606
+ # name specified by RepoSource. - $TAG_NAME: the tag name specified by
607
+ # RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by
608
+ # RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7
609
+ # characters of $REVISION_ID or $COMMIT_SHA.
591
610
  # Corresponds to the JSON property `build`
592
611
  # @return [Google::Apis::CloudbuildV1::Build]
593
612
  attr_accessor :build
@@ -608,11 +627,17 @@ module Google
608
627
  attr_accessor :disabled
609
628
  alias_method :disabled?, :disabled
610
629
 
611
- # Path, from the source root, to a file whose contents is used for the template.
630
+ # Path, from the source root, to the build configuration file (i.e. cloudbuild.
631
+ # yaml).
612
632
  # Corresponds to the JSON property `filename`
613
633
  # @return [String]
614
634
  attr_accessor :filename
615
635
 
636
+ # Optional. A Common Expression Language string.
637
+ # Corresponds to the JSON property `filter`
638
+ # @return [String]
639
+ attr_accessor :filter
640
+
616
641
  # GitHubEventsConfig describes the configuration of a trigger that creates a
617
642
  # build whenever a GitHub event is received. This message is experimental.
618
643
  # Corresponds to the JSON property `github`
@@ -652,6 +677,12 @@ module Google
652
677
  # @return [String]
653
678
  attr_accessor :name
654
679
 
680
+ # PubsubConfig describes the configuration of a trigger that creates a build
681
+ # whenever a Pub/Sub message is published.
682
+ # Corresponds to the JSON property `pubsubConfig`
683
+ # @return [Google::Apis::CloudbuildV1::PubsubConfig]
684
+ attr_accessor :pubsub_config
685
+
655
686
  # Substitutions for Build resource. The keys must match the following regular
656
687
  # expression: `^_[A-Z0-9_]+$`.
657
688
  # Corresponds to the JSON property `substitutions`
@@ -679,11 +710,13 @@ module Google
679
710
  @description = args[:description] if args.key?(:description)
680
711
  @disabled = args[:disabled] if args.key?(:disabled)
681
712
  @filename = args[:filename] if args.key?(:filename)
713
+ @filter = args[:filter] if args.key?(:filter)
682
714
  @github = args[:github] if args.key?(:github)
683
715
  @id = args[:id] if args.key?(:id)
684
716
  @ignored_files = args[:ignored_files] if args.key?(:ignored_files)
685
717
  @included_files = args[:included_files] if args.key?(:included_files)
686
718
  @name = args[:name] if args.key?(:name)
719
+ @pubsub_config = args[:pubsub_config] if args.key?(:pubsub_config)
687
720
  @substitutions = args[:substitutions] if args.key?(:substitutions)
688
721
  @tags = args[:tags] if args.key?(:tags)
689
722
  @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
@@ -895,6 +928,84 @@ module Google
895
928
  end
896
929
  end
897
930
 
931
+ # Message that represents an arbitrary HTTP body. It should only be used for
932
+ # payload formats that can't be represented as JSON, such as raw binary or an
933
+ # HTML page. This message can be used both in streaming and non-streaming API
934
+ # methods in the request as well as the response. It can be used as a top-level
935
+ # request field, which is convenient if one wants to extract parameters from
936
+ # either the URL or HTTP template into the request fields and also want access
937
+ # to the raw HTTP body. Example: message GetResourceRequest ` // A unique
938
+ # request id. string request_id = 1; // The raw HTTP body is bound to this field.
939
+ # google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
940
+ # GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
941
+ # UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
942
+ # with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
943
+ # api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
944
+ # google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
945
+ # only changes how the request and response bodies are handled, all other
946
+ # features will continue to work unchanged.
947
+ class HttpBody
948
+ include Google::Apis::Core::Hashable
949
+
950
+ # The HTTP Content-Type header value specifying the content type of the body.
951
+ # Corresponds to the JSON property `contentType`
952
+ # @return [String]
953
+ attr_accessor :content_type
954
+
955
+ # The HTTP request/response body as raw binary.
956
+ # Corresponds to the JSON property `data`
957
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
958
+ # @return [String]
959
+ attr_accessor :data
960
+
961
+ # Application specific response metadata. Must be set in the first response for
962
+ # streaming APIs.
963
+ # Corresponds to the JSON property `extensions`
964
+ # @return [Array<Hash<String,Object>>]
965
+ attr_accessor :extensions
966
+
967
+ def initialize(**args)
968
+ update!(**args)
969
+ end
970
+
971
+ # Update properties of this object
972
+ def update!(**args)
973
+ @content_type = args[:content_type] if args.key?(:content_type)
974
+ @data = args[:data] if args.key?(:data)
975
+ @extensions = args[:extensions] if args.key?(:extensions)
976
+ end
977
+ end
978
+
979
+ # Pairs a set of secret environment variables mapped to encrypted values with
980
+ # the Cloud KMS key to use to decrypt the value.
981
+ class InlineSecret
982
+ include Google::Apis::Core::Hashable
983
+
984
+ # Map of environment variable name to its encrypted value. Secret environment
985
+ # variables must be unique across all of a build's secrets, and must be used by
986
+ # at least one build step. Values can be at most 64 KB in size. There can be at
987
+ # most 100 secret values across all of a build's secrets.
988
+ # Corresponds to the JSON property `envMap`
989
+ # @return [Hash<String,String>]
990
+ attr_accessor :env_map
991
+
992
+ # Resource name of Cloud KMS crypto key to decrypt the encrypted value. In
993
+ # format: projects/*/locations/*/keyRings/*/cryptoKeys/*
994
+ # Corresponds to the JSON property `kmsKeyName`
995
+ # @return [String]
996
+ attr_accessor :kms_key_name
997
+
998
+ def initialize(**args)
999
+ update!(**args)
1000
+ end
1001
+
1002
+ # Update properties of this object
1003
+ def update!(**args)
1004
+ @env_map = args[:env_map] if args.key?(:env_map)
1005
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
1006
+ end
1007
+ end
1008
+
898
1009
  # Response containing existing `BuildTriggers`.
899
1010
  class ListBuildTriggersResponse
900
1011
  include Google::Apis::Core::Hashable
@@ -1200,6 +1311,47 @@ module Google
1200
1311
  end
1201
1312
  end
1202
1313
 
1314
+ # PubsubConfig describes the configuration of a trigger that creates a build
1315
+ # whenever a Pub/Sub message is published.
1316
+ class PubsubConfig
1317
+ include Google::Apis::Core::Hashable
1318
+
1319
+ # Service account that will make the push request.
1320
+ # Corresponds to the JSON property `serviceAccountEmail`
1321
+ # @return [String]
1322
+ attr_accessor :service_account_email
1323
+
1324
+ # Potential issues with the underlying Pub/Sub subscription configuration. Only
1325
+ # populated on get requests.
1326
+ # Corresponds to the JSON property `state`
1327
+ # @return [String]
1328
+ attr_accessor :state
1329
+
1330
+ # Output only. Name of the subscription. Format is `projects/`project`/
1331
+ # subscriptions/`subscription``.
1332
+ # Corresponds to the JSON property `subscription`
1333
+ # @return [String]
1334
+ attr_accessor :subscription
1335
+
1336
+ # The name of the topic from which this subscription is receiving messages.
1337
+ # Format is `projects/`project`/topics/`topic``.
1338
+ # Corresponds to the JSON property `topic`
1339
+ # @return [String]
1340
+ attr_accessor :topic
1341
+
1342
+ def initialize(**args)
1343
+ update!(**args)
1344
+ end
1345
+
1346
+ # Update properties of this object
1347
+ def update!(**args)
1348
+ @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
1349
+ @state = args[:state] if args.key?(:state)
1350
+ @subscription = args[:subscription] if args.key?(:subscription)
1351
+ @topic = args[:topic] if args.key?(:topic)
1352
+ end
1353
+ end
1354
+
1203
1355
  # PullRequestFilter contains filter properties for matching GitHub Pull Requests.
1204
1356
  class PullRequestFilter
1205
1357
  include Google::Apis::Core::Hashable
@@ -1272,6 +1424,20 @@ module Google
1272
1424
  end
1273
1425
  end
1274
1426
 
1427
+ # ReceiveTriggerWebhookResponse [Experimental] is the response object for the
1428
+ # ReceiveTriggerWebhook method.
1429
+ class ReceiveTriggerWebhookResponse
1430
+ include Google::Apis::Core::Hashable
1431
+
1432
+ def initialize(**args)
1433
+ update!(**args)
1434
+ end
1435
+
1436
+ # Update properties of this object
1437
+ def update!(**args)
1438
+ end
1439
+ end
1440
+
1275
1441
  # Location of the source in a Google Cloud Source Repository.
1276
1442
  class RepoSource
1277
1443
  include Google::Apis::Core::Hashable
@@ -1307,7 +1473,7 @@ module Google
1307
1473
  # @return [String]
1308
1474
  attr_accessor :project_id
1309
1475
 
1310
- # Required. Name of the Cloud Source Repository.
1476
+ # Name of the Cloud Source Repository.
1311
1477
  # Corresponds to the JSON property `repoName`
1312
1478
  # @return [String]
1313
1479
  attr_accessor :repo_name
@@ -1479,7 +1645,10 @@ module Google
1479
1645
  end
1480
1646
 
1481
1647
  # Pairs a set of secret environment variables containing encrypted values with
1482
- # the Cloud KMS key to use to decrypt the value.
1648
+ # the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `
1649
+ # available_secrets` instead of using `kmsKeyName` with `secret`. For
1650
+ # instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/
1651
+ # use-encrypted-credentials.
1483
1652
  class Secret
1484
1653
  include Google::Apis::Core::Hashable
1485
1654
 
@@ -1507,6 +1676,58 @@ module Google
1507
1676
  end
1508
1677
  end
1509
1678
 
1679
+ # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1680
+ class SecretManagerSecret
1681
+ include Google::Apis::Core::Hashable
1682
+
1683
+ # Environment variable name to associate with the secret. Secret environment
1684
+ # variables must be unique across all of a build's secrets, and must be used by
1685
+ # at least one build step.
1686
+ # Corresponds to the JSON property `env`
1687
+ # @return [String]
1688
+ attr_accessor :env
1689
+
1690
+ # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1691
+ # Corresponds to the JSON property `versionName`
1692
+ # @return [String]
1693
+ attr_accessor :version_name
1694
+
1695
+ def initialize(**args)
1696
+ update!(**args)
1697
+ end
1698
+
1699
+ # Update properties of this object
1700
+ def update!(**args)
1701
+ @env = args[:env] if args.key?(:env)
1702
+ @version_name = args[:version_name] if args.key?(:version_name)
1703
+ end
1704
+ end
1705
+
1706
+ # Secrets and secret environment variables.
1707
+ class Secrets
1708
+ include Google::Apis::Core::Hashable
1709
+
1710
+ # Secrets encrypted with KMS key and the associated secret environment variable.
1711
+ # Corresponds to the JSON property `inline`
1712
+ # @return [Array<Google::Apis::CloudbuildV1::InlineSecret>]
1713
+ attr_accessor :inline
1714
+
1715
+ # Secrets in Secret Manager and associated secret environment variable.
1716
+ # Corresponds to the JSON property `secretManager`
1717
+ # @return [Array<Google::Apis::CloudbuildV1::SecretManagerSecret>]
1718
+ attr_accessor :secret_manager
1719
+
1720
+ def initialize(**args)
1721
+ update!(**args)
1722
+ end
1723
+
1724
+ # Update properties of this object
1725
+ def update!(**args)
1726
+ @inline = args[:inline] if args.key?(:inline)
1727
+ @secret_manager = args[:secret_manager] if args.key?(:secret_manager)
1728
+ end
1729
+ end
1730
+
1510
1731
  # SlackDelivery is the delivery configuration for delivering Slack messages via
1511
1732
  # webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/
1512
1733
  # webhooks.
@@ -1543,6 +1764,12 @@ module Google
1543
1764
  # @return [Google::Apis::CloudbuildV1::StorageSource]
1544
1765
  attr_accessor :storage_source
1545
1766
 
1767
+ # Location of the source manifest in Google Cloud Storage. This feature is in
1768
+ # Preview.
1769
+ # Corresponds to the JSON property `storageSourceManifest`
1770
+ # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1771
+ attr_accessor :storage_source_manifest
1772
+
1546
1773
  def initialize(**args)
1547
1774
  update!(**args)
1548
1775
  end
@@ -1551,6 +1778,7 @@ module Google
1551
1778
  def update!(**args)
1552
1779
  @repo_source = args[:repo_source] if args.key?(:repo_source)
1553
1780
  @storage_source = args[:storage_source] if args.key?(:storage_source)
1781
+ @storage_source_manifest = args[:storage_source_manifest] if args.key?(:storage_source_manifest)
1554
1782
  end
1555
1783
  end
1556
1784
 
@@ -1580,6 +1808,12 @@ module Google
1580
1808
  # @return [Google::Apis::CloudbuildV1::StorageSource]
1581
1809
  attr_accessor :resolved_storage_source
1582
1810
 
1811
+ # Location of the source manifest in Google Cloud Storage. This feature is in
1812
+ # Preview.
1813
+ # Corresponds to the JSON property `resolvedStorageSourceManifest`
1814
+ # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1815
+ attr_accessor :resolved_storage_source_manifest
1816
+
1583
1817
  def initialize(**args)
1584
1818
  update!(**args)
1585
1819
  end
@@ -1589,6 +1823,7 @@ module Google
1589
1823
  @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
1590
1824
  @resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
1591
1825
  @resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
1826
+ @resolved_storage_source_manifest = args[:resolved_storage_source_manifest] if args.key?(:resolved_storage_source_manifest)
1592
1827
  end
1593
1828
  end
1594
1829
 
@@ -1666,6 +1901,42 @@ module Google
1666
1901
  end
1667
1902
  end
1668
1903
 
1904
+ # Location of the source manifest in Google Cloud Storage. This feature is in
1905
+ # Preview.
1906
+ class StorageSourceManifest
1907
+ include Google::Apis::Core::Hashable
1908
+
1909
+ # Google Cloud Storage bucket containing the source manifest (see [Bucket Name
1910
+ # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
1911
+ # ).
1912
+ # Corresponds to the JSON property `bucket`
1913
+ # @return [String]
1914
+ attr_accessor :bucket
1915
+
1916
+ # Google Cloud Storage generation for the object. If the generation is omitted,
1917
+ # the latest generation will be used.
1918
+ # Corresponds to the JSON property `generation`
1919
+ # @return [Fixnum]
1920
+ attr_accessor :generation
1921
+
1922
+ # Google Cloud Storage object containing the source manifest. This object must
1923
+ # be a JSON file.
1924
+ # Corresponds to the JSON property `object`
1925
+ # @return [String]
1926
+ attr_accessor :object
1927
+
1928
+ def initialize(**args)
1929
+ update!(**args)
1930
+ end
1931
+
1932
+ # Update properties of this object
1933
+ def update!(**args)
1934
+ @bucket = args[:bucket] if args.key?(:bucket)
1935
+ @generation = args[:generation] if args.key?(:generation)
1936
+ @object = args[:object] if args.key?(:object)
1937
+ end
1938
+ end
1939
+
1669
1940
  # Start and end times for a build execution phase.
1670
1941
  class TimeSpan
1671
1942
  include Google::Apis::Core::Hashable
@@ -1720,6 +1991,31 @@ module Google
1720
1991
  @path = args[:path] if args.key?(:path)
1721
1992
  end
1722
1993
  end
1994
+
1995
+ # A non-fatal problem encountered during the execution of the build.
1996
+ class Warning
1997
+ include Google::Apis::Core::Hashable
1998
+
1999
+ # The priority for this warning.
2000
+ # Corresponds to the JSON property `priority`
2001
+ # @return [String]
2002
+ attr_accessor :priority
2003
+
2004
+ # Explanation of the warning generated.
2005
+ # Corresponds to the JSON property `text`
2006
+ # @return [String]
2007
+ attr_accessor :text
2008
+
2009
+ def initialize(**args)
2010
+ update!(**args)
2011
+ end
2012
+
2013
+ # Update properties of this object
2014
+ def update!(**args)
2015
+ @priority = args[:priority] if args.key?(:priority)
2016
+ @text = args[:text] if args.key?(:text)
2017
+ end
2018
+ end
1723
2019
  end
1724
2020
  end
1725
2021
  end
@@ -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.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201211"
25
+ REVISION = "20210511"
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
 
@@ -172,6 +184,12 @@ module Google
172
184
  include Google::Apis::Core::JsonObjectSupport
173
185
  end
174
186
 
187
+ class PubsubConfig
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
175
193
  class PullRequestFilter
176
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
195
 
@@ -184,6 +202,12 @@ module Google
184
202
  include Google::Apis::Core::JsonObjectSupport
185
203
  end
186
204
 
205
+ class ReceiveTriggerWebhookResponse
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
187
211
  class RepoSource
188
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
213
 
@@ -214,6 +238,18 @@ module Google
214
238
  include Google::Apis::Core::JsonObjectSupport
215
239
  end
216
240
 
241
+ class SecretManagerSecret
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class Secrets
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
217
253
  class SlackDelivery
218
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
255
 
@@ -244,6 +280,12 @@ module Google
244
280
  include Google::Apis::Core::JsonObjectSupport
245
281
  end
246
282
 
283
+ class StorageSourceManifest
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
247
289
  class TimeSpan
248
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
291
 
@@ -256,6 +298,12 @@ module Google
256
298
  include Google::Apis::Core::JsonObjectSupport
257
299
  end
258
300
 
301
+ class Warning
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
259
307
  class ArtifactObjects
260
308
  # @private
261
309
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -289,6 +337,8 @@ module Google
289
337
  class Representation < Google::Apis::Core::JsonRepresentation
290
338
  property :artifacts, as: 'artifacts', class: Google::Apis::CloudbuildV1::Artifacts, decorator: Google::Apis::CloudbuildV1::Artifacts::Representation
291
339
 
340
+ property :available_secrets, as: 'availableSecrets', class: Google::Apis::CloudbuildV1::Secrets, decorator: Google::Apis::CloudbuildV1::Secrets::Representation
341
+
292
342
  property :build_trigger_id, as: 'buildTriggerId'
293
343
  property :create_time, as: 'createTime'
294
344
  property :finish_time, as: 'finishTime'
@@ -320,6 +370,8 @@ module Google
320
370
  property :timeout, as: 'timeout'
321
371
  hash :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
322
372
 
373
+ collection :warnings, as: 'warnings', class: Google::Apis::CloudbuildV1::Warning, decorator: Google::Apis::CloudbuildV1::Warning::Representation
374
+
323
375
  end
324
376
  end
325
377
 
@@ -381,12 +433,15 @@ module Google
381
433
  property :description, as: 'description'
382
434
  property :disabled, as: 'disabled'
383
435
  property :filename, as: 'filename'
436
+ property :filter, as: 'filter'
384
437
  property :github, as: 'github', class: Google::Apis::CloudbuildV1::GitHubEventsConfig, decorator: Google::Apis::CloudbuildV1::GitHubEventsConfig::Representation
385
438
 
386
439
  property :id, as: 'id'
387
440
  collection :ignored_files, as: 'ignoredFiles'
388
441
  collection :included_files, as: 'includedFiles'
389
442
  property :name, as: 'name'
443
+ property :pubsub_config, as: 'pubsubConfig', class: Google::Apis::CloudbuildV1::PubsubConfig, decorator: Google::Apis::CloudbuildV1::PubsubConfig::Representation
444
+
390
445
  hash :substitutions, as: 'substitutions'
391
446
  collection :tags, as: 'tags'
392
447
  property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
@@ -461,6 +516,23 @@ module Google
461
516
  end
462
517
  end
463
518
 
519
+ class HttpBody
520
+ # @private
521
+ class Representation < Google::Apis::Core::JsonRepresentation
522
+ property :content_type, as: 'contentType'
523
+ property :data, :base64 => true, as: 'data'
524
+ collection :extensions, as: 'extensions'
525
+ end
526
+ end
527
+
528
+ class InlineSecret
529
+ # @private
530
+ class Representation < Google::Apis::Core::JsonRepresentation
531
+ hash :env_map, as: 'envMap'
532
+ property :kms_key_name, as: 'kmsKeyName'
533
+ end
534
+ end
535
+
464
536
  class ListBuildTriggersResponse
465
537
  # @private
466
538
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -550,6 +622,16 @@ module Google
550
622
  end
551
623
  end
552
624
 
625
+ class PubsubConfig
626
+ # @private
627
+ class Representation < Google::Apis::Core::JsonRepresentation
628
+ property :service_account_email, as: 'serviceAccountEmail'
629
+ property :state, as: 'state'
630
+ property :subscription, as: 'subscription'
631
+ property :topic, as: 'topic'
632
+ end
633
+ end
634
+
553
635
  class PullRequestFilter
554
636
  # @private
555
637
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -568,6 +650,12 @@ module Google
568
650
  end
569
651
  end
570
652
 
653
+ class ReceiveTriggerWebhookResponse
654
+ # @private
655
+ class Representation < Google::Apis::Core::JsonRepresentation
656
+ end
657
+ end
658
+
571
659
  class RepoSource
572
660
  # @private
573
661
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -626,6 +714,24 @@ module Google
626
714
  end
627
715
  end
628
716
 
717
+ class SecretManagerSecret
718
+ # @private
719
+ class Representation < Google::Apis::Core::JsonRepresentation
720
+ property :env, as: 'env'
721
+ property :version_name, as: 'versionName'
722
+ end
723
+ end
724
+
725
+ class Secrets
726
+ # @private
727
+ class Representation < Google::Apis::Core::JsonRepresentation
728
+ collection :inline, as: 'inline', class: Google::Apis::CloudbuildV1::InlineSecret, decorator: Google::Apis::CloudbuildV1::InlineSecret::Representation
729
+
730
+ collection :secret_manager, as: 'secretManager', class: Google::Apis::CloudbuildV1::SecretManagerSecret, decorator: Google::Apis::CloudbuildV1::SecretManagerSecret::Representation
731
+
732
+ end
733
+ end
734
+
629
735
  class SlackDelivery
630
736
  # @private
631
737
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -641,6 +747,8 @@ module Google
641
747
 
642
748
  property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
643
749
 
750
+ property :storage_source_manifest, as: 'storageSourceManifest', class: Google::Apis::CloudbuildV1::StorageSourceManifest, decorator: Google::Apis::CloudbuildV1::StorageSourceManifest::Representation
751
+
644
752
  end
645
753
  end
646
754
 
@@ -653,6 +761,8 @@ module Google
653
761
 
654
762
  property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
655
763
 
764
+ property :resolved_storage_source_manifest, as: 'resolvedStorageSourceManifest', class: Google::Apis::CloudbuildV1::StorageSourceManifest, decorator: Google::Apis::CloudbuildV1::StorageSourceManifest::Representation
765
+
656
766
  end
657
767
  end
658
768
 
@@ -674,6 +784,15 @@ module Google
674
784
  end
675
785
  end
676
786
 
787
+ class StorageSourceManifest
788
+ # @private
789
+ class Representation < Google::Apis::Core::JsonRepresentation
790
+ property :bucket, as: 'bucket'
791
+ property :generation, :numeric_string => true, as: 'generation'
792
+ property :object, as: 'object'
793
+ end
794
+ end
795
+
677
796
  class TimeSpan
678
797
  # @private
679
798
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -689,6 +808,14 @@ module Google
689
808
  property :path, as: 'path'
690
809
  end
691
810
  end
811
+
812
+ class Warning
813
+ # @private
814
+ class Representation < Google::Apis::Core::JsonRepresentation
815
+ property :priority, as: 'priority'
816
+ property :text, as: 'text'
817
+ end
818
+ end
692
819
  end
693
820
  end
694
821
  end
@@ -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.1.0
4
+ version: 0.6.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-05-18 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.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.6.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: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Build API V1