google-apis-cloudbuild_v1 0.12.0 → 0.16.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: 2c725716abc02710eb56c63df004599aa4cedce2c1501d71f617bb9481b516b2
4
- data.tar.gz: c6d13805990b81654bea8cb3157efc544cf10c84df187ef3000ad7f12224194d
3
+ metadata.gz: 4355b574c22b36b3aa7d0d37aeb53f4b5dd779286900bf9aff413b9dd2587b97
4
+ data.tar.gz: cbe48d641154acb5b5ca632647ed07e8cea8c08158eecb5cb7a98f740a4d7a0c
5
5
  SHA512:
6
- metadata.gz: cd04a9de6f4e6cd7b0d7574926f259af4e224c9401d70c951d72c319cc27d6f9516b523bcb133295cf8b76979db6ff877aaf1c306cd90515a0d5dd93222f294a
7
- data.tar.gz: 83ed1eed19e2ecf760034845f1edb029f5bffa45d2f8e38279e5d8eb3aa68f1957b2d58f1f26366b733853f7b963d3618cd0a363478d272e264807391dcd2000
6
+ metadata.gz: 6f23200e049f79c9aa3876a68b536708d074de47bc805afab98be0993fcbf9b30803368952d131a458a7d7dd59561ebed512999ff836e397bf2177be13fc2d61
7
+ data.tar.gz: 263341941a12072b896767365234a1896df2aaa3cc4bf1113db03d10c5105d38924e2eff18691b7663b1f3a160efde48882c8edccccb165151bdb30cfc70cb1d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-cloudbuild_v1
2
2
 
3
+ ### v0.16.0 (2021-09-08)
4
+
5
+ * Regenerated from discovery document revision 20210903
6
+
7
+ ### v0.15.0 (2021-09-01)
8
+
9
+ * Regenerated from discovery document revision 20210813
10
+
11
+ ### v0.14.0 (2021-08-03)
12
+
13
+ * Regenerated from discovery document revision 20210730
14
+
15
+ ### v0.13.0 (2021-07-27)
16
+
17
+ * Regenerated from discovery document revision 20210723
18
+
3
19
  ### v0.12.0 (2021-07-20)
4
20
 
5
21
  * Regenerated from discovery document revision 20210715
@@ -22,6 +22,95 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1
24
24
 
25
+ # ApprovalConfig describes configuration for manual approval of a build.
26
+ class ApprovalConfig
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Whether or not approval is needed. If this is set on a build, it will become
30
+ # pending when created, and will need to be explicitly approved to start.
31
+ # Corresponds to the JSON property `approvalRequired`
32
+ # @return [Boolean]
33
+ attr_accessor :approval_required
34
+ alias_method :approval_required?, :approval_required
35
+
36
+ def initialize(**args)
37
+ update!(**args)
38
+ end
39
+
40
+ # Update properties of this object
41
+ def update!(**args)
42
+ @approval_required = args[:approval_required] if args.key?(:approval_required)
43
+ end
44
+ end
45
+
46
+ # ApprovalResult describes the decision and associated metadata of a manual
47
+ # approval of a build.
48
+ class ApprovalResult
49
+ include Google::Apis::Core::Hashable
50
+
51
+ # Output only. The time when the approval decision was made.
52
+ # Corresponds to the JSON property `approvalTime`
53
+ # @return [String]
54
+ attr_accessor :approval_time
55
+
56
+ # Output only. Email of the user that called the ApproveBuild API to approve or
57
+ # reject a build at the time that the API was called.
58
+ # Corresponds to the JSON property `approverAccount`
59
+ # @return [String]
60
+ attr_accessor :approver_account
61
+
62
+ # Optional. An optional comment for this manual approval result.
63
+ # Corresponds to the JSON property `comment`
64
+ # @return [String]
65
+ attr_accessor :comment
66
+
67
+ # Required. The decision of this manual approval.
68
+ # Corresponds to the JSON property `decision`
69
+ # @return [String]
70
+ attr_accessor :decision
71
+
72
+ # Optional. An optional URL tied to this manual approval result. This field is
73
+ # essentially the same as comment, except that it will be rendered by the UI
74
+ # differently. An example use case is a link to an external job that approved
75
+ # this Build.
76
+ # Corresponds to the JSON property `url`
77
+ # @return [String]
78
+ attr_accessor :url
79
+
80
+ def initialize(**args)
81
+ update!(**args)
82
+ end
83
+
84
+ # Update properties of this object
85
+ def update!(**args)
86
+ @approval_time = args[:approval_time] if args.key?(:approval_time)
87
+ @approver_account = args[:approver_account] if args.key?(:approver_account)
88
+ @comment = args[:comment] if args.key?(:comment)
89
+ @decision = args[:decision] if args.key?(:decision)
90
+ @url = args[:url] if args.key?(:url)
91
+ end
92
+ end
93
+
94
+ # Request to approve or reject a pending build.
95
+ class ApproveBuildRequest
96
+ include Google::Apis::Core::Hashable
97
+
98
+ # ApprovalResult describes the decision and associated metadata of a manual
99
+ # approval of a build.
100
+ # Corresponds to the JSON property `approvalResult`
101
+ # @return [Google::Apis::CloudbuildV1::ApprovalResult]
102
+ attr_accessor :approval_result
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ @approval_result = args[:approval_result] if args.key?(:approval_result)
111
+ end
112
+ end
113
+
25
114
  # Files in the workspace to upload to Cloud Storage upon successful completion
26
115
  # of all build steps.
27
116
  class ArtifactObjects
@@ -120,15 +209,21 @@ module Google
120
209
  # run on the source), and where to store the built artifacts. Fields can include
121
210
  # the following variables, which will be expanded when the build is created: - $
122
211
  # 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.
212
+ # of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the
213
+ # autogenerated ID of the build. - $REPO_NAME: the source repository name
214
+ # specified by RepoSource. - $BRANCH_NAME: the branch name specified by
215
+ # RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID
216
+ # or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the
217
+ # specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $
218
+ # COMMIT_SHA.
129
219
  class Build
130
220
  include Google::Apis::Core::Hashable
131
221
 
222
+ # BuildApproval describes a build's approval configuration, state, and result.
223
+ # Corresponds to the JSON property `approval`
224
+ # @return [Google::Apis::CloudbuildV1::BuildApproval]
225
+ attr_accessor :approval
226
+
132
227
  # Artifacts produced by a build that should be uploaded upon successful
133
228
  # completion of all build steps.
134
229
  # Corresponds to the JSON property `artifacts`
@@ -283,9 +378,10 @@ module Google
283
378
  attr_accessor :timeout
284
379
 
285
380
  # Output only. Stores timing information for phases of the build. Valid keys are:
286
- # * BUILD: time to execute all build steps * PUSH: time to push all specified
287
- # images. * FETCHSOURCE: time to fetch source. If the build does not specify
288
- # source or images, these keys will not be included.
381
+ # * BUILD: time to execute all build steps. * PUSH: time to push all specified
382
+ # images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up
383
+ # build. If the build does not specify source or images, these keys will not be
384
+ # included.
289
385
  # Corresponds to the JSON property `timing`
290
386
  # @return [Hash<String,Google::Apis::CloudbuildV1::TimeSpan>]
291
387
  attr_accessor :timing
@@ -301,6 +397,7 @@ module Google
301
397
 
302
398
  # Update properties of this object
303
399
  def update!(**args)
400
+ @approval = args[:approval] if args.key?(:approval)
304
401
  @artifacts = args[:artifacts] if args.key?(:artifacts)
305
402
  @available_secrets = args[:available_secrets] if args.key?(:available_secrets)
306
403
  @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
@@ -332,6 +429,38 @@ module Google
332
429
  end
333
430
  end
334
431
 
432
+ # BuildApproval describes a build's approval configuration, state, and result.
433
+ class BuildApproval
434
+ include Google::Apis::Core::Hashable
435
+
436
+ # ApprovalConfig describes configuration for manual approval of a build.
437
+ # Corresponds to the JSON property `config`
438
+ # @return [Google::Apis::CloudbuildV1::ApprovalConfig]
439
+ attr_accessor :config
440
+
441
+ # ApprovalResult describes the decision and associated metadata of a manual
442
+ # approval of a build.
443
+ # Corresponds to the JSON property `result`
444
+ # @return [Google::Apis::CloudbuildV1::ApprovalResult]
445
+ attr_accessor :result
446
+
447
+ # Output only. The state of this build's approval.
448
+ # Corresponds to the JSON property `state`
449
+ # @return [String]
450
+ attr_accessor :state
451
+
452
+ def initialize(**args)
453
+ update!(**args)
454
+ end
455
+
456
+ # Update properties of this object
457
+ def update!(**args)
458
+ @config = args[:config] if args.key?(:config)
459
+ @result = args[:result] if args.key?(:result)
460
+ @state = args[:state] if args.key?(:state)
461
+ end
462
+ end
463
+
335
464
  # Metadata for build operations.
336
465
  class BuildOperationMetadata
337
466
  include Google::Apis::Core::Hashable
@@ -341,12 +470,13 @@ module Google
341
470
  # run on the source), and where to store the built artifacts. Fields can include
342
471
  # the following variables, which will be expanded when the build is created: - $
343
472
  # PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
344
- # of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME:
345
- # the source repository name specified by RepoSource. - $BRANCH_NAME: the branch
346
- # name specified by RepoSource. - $TAG_NAME: the tag name specified by
347
- # RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by
348
- # RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7
349
- # characters of $REVISION_ID or $COMMIT_SHA.
473
+ # of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the
474
+ # autogenerated ID of the build. - $REPO_NAME: the source repository name
475
+ # specified by RepoSource. - $BRANCH_NAME: the branch name specified by
476
+ # RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID
477
+ # or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the
478
+ # specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $
479
+ # COMMIT_SHA.
350
480
  # Corresponds to the JSON property `build`
351
481
  # @return [Google::Apis::CloudbuildV1::Build]
352
482
  attr_accessor :build
@@ -539,6 +669,12 @@ module Google
539
669
  # @return [Google::Apis::CloudbuildV1::TimeSpan]
540
670
  attr_accessor :pull_timing
541
671
 
672
+ # A shell script to be executed in the step. When script is provided, the user
673
+ # cannot specify the entrypoint or args.
674
+ # Corresponds to the JSON property `script`
675
+ # @return [String]
676
+ attr_accessor :script
677
+
542
678
  # A list of environment variables which are encrypted using a Cloud Key
543
679
  # Management Service crypto key. These values must be specified in the build's `
544
680
  # Secret`.
@@ -595,6 +731,7 @@ module Google
595
731
  @id = args[:id] if args.key?(:id)
596
732
  @name = args[:name] if args.key?(:name)
597
733
  @pull_timing = args[:pull_timing] if args.key?(:pull_timing)
734
+ @script = args[:script] if args.key?(:script)
598
735
  @secret_env = args[:secret_env] if args.key?(:secret_env)
599
736
  @status = args[:status] if args.key?(:status)
600
737
  @timeout = args[:timeout] if args.key?(:timeout)
@@ -608,6 +745,11 @@ module Google
608
745
  class BuildTrigger
609
746
  include Google::Apis::Core::Hashable
610
747
 
748
+ # ApprovalConfig describes configuration for manual approval of a build.
749
+ # Corresponds to the JSON property `approvalConfig`
750
+ # @return [Google::Apis::CloudbuildV1::ApprovalConfig]
751
+ attr_accessor :approval_config
752
+
611
753
  # Autodetect build configuration. The following precedence is used (case
612
754
  # insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4.
613
755
  # Dockerfile Currently only available for GitHub App Triggers.
@@ -621,12 +763,13 @@ module Google
621
763
  # run on the source), and where to store the built artifacts. Fields can include
622
764
  # the following variables, which will be expanded when the build is created: - $
623
765
  # PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
624
- # of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME:
625
- # the source repository name specified by RepoSource. - $BRANCH_NAME: the branch
626
- # name specified by RepoSource. - $TAG_NAME: the tag name specified by
627
- # RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by
628
- # RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7
629
- # characters of $REVISION_ID or $COMMIT_SHA.
766
+ # of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the
767
+ # autogenerated ID of the build. - $REPO_NAME: the source repository name
768
+ # specified by RepoSource. - $BRANCH_NAME: the branch name specified by
769
+ # RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID
770
+ # or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the
771
+ # specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $
772
+ # COMMIT_SHA.
630
773
  # Corresponds to the JSON property `build`
631
774
  # @return [Google::Apis::CloudbuildV1::Build]
632
775
  attr_accessor :build
@@ -653,13 +796,18 @@ module Google
653
796
  # @return [String]
654
797
  attr_accessor :filename
655
798
 
656
- # Optional. A Common Expression Language string.
799
+ # A Common Expression Language string.
657
800
  # Corresponds to the JSON property `filter`
658
801
  # @return [String]
659
802
  attr_accessor :filter
660
803
 
804
+ # GitFileSource describes a file within a (possibly remote) code repository.
805
+ # Corresponds to the JSON property `gitFileSource`
806
+ # @return [Google::Apis::CloudbuildV1::GitFileSource]
807
+ attr_accessor :git_file_source
808
+
661
809
  # GitHubEventsConfig describes the configuration of a trigger that creates a
662
- # build whenever a GitHub event is received. This message is experimental.
810
+ # build whenever a GitHub event is received.
663
811
  # Corresponds to the JSON property `github`
664
812
  # @return [Google::Apis::CloudbuildV1::GitHubEventsConfig]
665
813
  attr_accessor :github
@@ -710,6 +858,15 @@ module Google
710
858
  # @return [String]
711
859
  attr_accessor :resource_name
712
860
 
861
+ # The service account used for all user-controlled operations including
862
+ # UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no
863
+ # service account is set, then the standard Cloud Build service account ([
864
+ # PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: `
865
+ # projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT_ID_OR_EMAIL``
866
+ # Corresponds to the JSON property `serviceAccount`
867
+ # @return [String]
868
+ attr_accessor :service_account
869
+
713
870
  # GitRepoSource describes a repo and ref of a code repository.
714
871
  # Corresponds to the JSON property `sourceToBuild`
715
872
  # @return [Google::Apis::CloudbuildV1::GitRepoSource]
@@ -743,6 +900,7 @@ module Google
743
900
 
744
901
  # Update properties of this object
745
902
  def update!(**args)
903
+ @approval_config = args[:approval_config] if args.key?(:approval_config)
746
904
  @autodetect = args[:autodetect] if args.key?(:autodetect)
747
905
  @build = args[:build] if args.key?(:build)
748
906
  @create_time = args[:create_time] if args.key?(:create_time)
@@ -750,6 +908,7 @@ module Google
750
908
  @disabled = args[:disabled] if args.key?(:disabled)
751
909
  @filename = args[:filename] if args.key?(:filename)
752
910
  @filter = args[:filter] if args.key?(:filter)
911
+ @git_file_source = args[:git_file_source] if args.key?(:git_file_source)
753
912
  @github = args[:github] if args.key?(:github)
754
913
  @id = args[:id] if args.key?(:id)
755
914
  @ignored_files = args[:ignored_files] if args.key?(:ignored_files)
@@ -757,6 +916,7 @@ module Google
757
916
  @name = args[:name] if args.key?(:name)
758
917
  @pubsub_config = args[:pubsub_config] if args.key?(:pubsub_config)
759
918
  @resource_name = args[:resource_name] if args.key?(:resource_name)
919
+ @service_account = args[:service_account] if args.key?(:service_account)
760
920
  @source_to_build = args[:source_to_build] if args.key?(:source_to_build)
761
921
  @substitutions = args[:substitutions] if args.key?(:substitutions)
762
922
  @tags = args[:tags] if args.key?(:tags)
@@ -842,6 +1002,38 @@ module Google
842
1002
  end
843
1003
  end
844
1004
 
1005
+ # Metadata for `CreateGithubEnterpriseConfig` operation.
1006
+ class CreateGitHubEnterpriseConfigOperationMetadata
1007
+ include Google::Apis::Core::Hashable
1008
+
1009
+ # Time the operation was completed.
1010
+ # Corresponds to the JSON property `completeTime`
1011
+ # @return [String]
1012
+ attr_accessor :complete_time
1013
+
1014
+ # Time the operation was created.
1015
+ # Corresponds to the JSON property `createTime`
1016
+ # @return [String]
1017
+ attr_accessor :create_time
1018
+
1019
+ # The resource name of the GitHubEnterprise to be created. Format: `projects/`
1020
+ # project`/locations/`location`/githubEnterpriseConfigs/`id``.
1021
+ # Corresponds to the JSON property `githubEnterpriseConfig`
1022
+ # @return [String]
1023
+ attr_accessor :github_enterprise_config
1024
+
1025
+ def initialize(**args)
1026
+ update!(**args)
1027
+ end
1028
+
1029
+ # Update properties of this object
1030
+ def update!(**args)
1031
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
1032
+ @create_time = args[:create_time] if args.key?(:create_time)
1033
+ @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
1034
+ end
1035
+ end
1036
+
845
1037
  # Metadata for the `CreateWorkerPool` operation.
846
1038
  class CreateWorkerPoolOperationMetadata
847
1039
  include Google::Apis::Core::Hashable
@@ -874,6 +1066,38 @@ module Google
874
1066
  end
875
1067
  end
876
1068
 
1069
+ # Metadata for `DeleteGitHubEnterpriseConfig` operation.
1070
+ class DeleteGitHubEnterpriseConfigOperationMetadata
1071
+ include Google::Apis::Core::Hashable
1072
+
1073
+ # Time the operation was completed.
1074
+ # Corresponds to the JSON property `completeTime`
1075
+ # @return [String]
1076
+ attr_accessor :complete_time
1077
+
1078
+ # Time the operation was created.
1079
+ # Corresponds to the JSON property `createTime`
1080
+ # @return [String]
1081
+ attr_accessor :create_time
1082
+
1083
+ # The resource name of the GitHubEnterprise to be deleted. Format: `projects/`
1084
+ # project`/locations/`location`/githubEnterpriseConfigs/`id``.
1085
+ # Corresponds to the JSON property `githubEnterpriseConfig`
1086
+ # @return [String]
1087
+ attr_accessor :github_enterprise_config
1088
+
1089
+ def initialize(**args)
1090
+ update!(**args)
1091
+ end
1092
+
1093
+ # Update properties of this object
1094
+ def update!(**args)
1095
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
1096
+ @create_time = args[:create_time] if args.key?(:create_time)
1097
+ @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
1098
+ end
1099
+ end
1100
+
877
1101
  # Metadata for the `DeleteWorkerPool` operation.
878
1102
  class DeleteWorkerPoolOperationMetadata
879
1103
  include Google::Apis::Core::Hashable
@@ -968,11 +1192,202 @@ module Google
968
1192
  end
969
1193
  end
970
1194
 
1195
+ # GitFileSource describes a file within a (possibly remote) code repository.
1196
+ class GitFileSource
1197
+ include Google::Apis::Core::Hashable
1198
+
1199
+ # The path of the file, with the repo root as the root of the path.
1200
+ # Corresponds to the JSON property `path`
1201
+ # @return [String]
1202
+ attr_accessor :path
1203
+
1204
+ # See RepoType above.
1205
+ # Corresponds to the JSON property `repoType`
1206
+ # @return [String]
1207
+ attr_accessor :repo_type
1208
+
1209
+ # The branch, tag, arbitrary ref, or SHA version of the repo to use when
1210
+ # resolving the filename (optional). This field respects the same syntax/
1211
+ # resolution as described here: https://git-scm.com/docs/gitrevisions If
1212
+ # unspecified, the revision from which the trigger invocation originated is
1213
+ # assumed to be the revision from which to read the specified path.
1214
+ # Corresponds to the JSON property `revision`
1215
+ # @return [String]
1216
+ attr_accessor :revision
1217
+
1218
+ # The URI of the repo (optional). If unspecified, the repo from which the
1219
+ # trigger invocation originated is assumed to be the repo from which to read the
1220
+ # specified path.
1221
+ # Corresponds to the JSON property `uri`
1222
+ # @return [String]
1223
+ attr_accessor :uri
1224
+
1225
+ def initialize(**args)
1226
+ update!(**args)
1227
+ end
1228
+
1229
+ # Update properties of this object
1230
+ def update!(**args)
1231
+ @path = args[:path] if args.key?(:path)
1232
+ @repo_type = args[:repo_type] if args.key?(:repo_type)
1233
+ @revision = args[:revision] if args.key?(:revision)
1234
+ @uri = args[:uri] if args.key?(:uri)
1235
+ end
1236
+ end
1237
+
1238
+ # GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise
1239
+ # server.
1240
+ class GitHubEnterpriseConfig
1241
+ include Google::Apis::Core::Hashable
1242
+
1243
+ # Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise
1244
+ # server.
1245
+ # Corresponds to the JSON property `appId`
1246
+ # @return [Fixnum]
1247
+ attr_accessor :app_id
1248
+
1249
+ # Output only. Time when the installation was associated with the project.
1250
+ # Corresponds to the JSON property `createTime`
1251
+ # @return [String]
1252
+ attr_accessor :create_time
1253
+
1254
+ # Name to display for this config.
1255
+ # Corresponds to the JSON property `displayName`
1256
+ # @return [String]
1257
+ attr_accessor :display_name
1258
+
1259
+ # The URL of the github enterprise host the configuration is for.
1260
+ # Corresponds to the JSON property `hostUrl`
1261
+ # @return [String]
1262
+ attr_accessor :host_url
1263
+
1264
+ # Optional. The full resource name for the GitHubEnterpriseConfig For example: "
1265
+ # projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
1266
+ # Corresponds to the JSON property `name`
1267
+ # @return [String]
1268
+ attr_accessor :name
1269
+
1270
+ # Optional. The network to be used when reaching out to the GitHub Enterprise
1271
+ # server. The VPC network must be enabled for private service connection. This
1272
+ # should be set if the GitHub Enterprise server is hosted on-premises and not
1273
+ # reachable by public internet. If this field is left empty, no network peering
1274
+ # will occur and calls to the GitHub Enterprise server will be made over the
1275
+ # public internet. Must be in the format `projects/`project`/global/networks/`
1276
+ # network``, where `project` is a project number or id and `network` is the name
1277
+ # of a VPC network in the project.
1278
+ # Corresponds to the JSON property `peeredNetwork`
1279
+ # @return [String]
1280
+ attr_accessor :peered_network
1281
+
1282
+ # GitHubEnterpriseSecrets represents the names of all necessary secrets in
1283
+ # Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/.
1284
+ # Corresponds to the JSON property `secrets`
1285
+ # @return [Google::Apis::CloudbuildV1::GitHubEnterpriseSecrets]
1286
+ attr_accessor :secrets
1287
+
1288
+ # Optional. SSL certificate to use for requests to GitHub Enterprise.
1289
+ # Corresponds to the JSON property `sslCa`
1290
+ # @return [String]
1291
+ attr_accessor :ssl_ca
1292
+
1293
+ # The key that should be attached to webhook calls to the ReceiveWebhook
1294
+ # endpoint.
1295
+ # Corresponds to the JSON property `webhookKey`
1296
+ # @return [String]
1297
+ attr_accessor :webhook_key
1298
+
1299
+ def initialize(**args)
1300
+ update!(**args)
1301
+ end
1302
+
1303
+ # Update properties of this object
1304
+ def update!(**args)
1305
+ @app_id = args[:app_id] if args.key?(:app_id)
1306
+ @create_time = args[:create_time] if args.key?(:create_time)
1307
+ @display_name = args[:display_name] if args.key?(:display_name)
1308
+ @host_url = args[:host_url] if args.key?(:host_url)
1309
+ @name = args[:name] if args.key?(:name)
1310
+ @peered_network = args[:peered_network] if args.key?(:peered_network)
1311
+ @secrets = args[:secrets] if args.key?(:secrets)
1312
+ @ssl_ca = args[:ssl_ca] if args.key?(:ssl_ca)
1313
+ @webhook_key = args[:webhook_key] if args.key?(:webhook_key)
1314
+ end
1315
+ end
1316
+
1317
+ # GitHubEnterpriseSecrets represents the names of all necessary secrets in
1318
+ # Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/.
1319
+ class GitHubEnterpriseSecrets
1320
+ include Google::Apis::Core::Hashable
1321
+
1322
+ # The resource name for the OAuth client ID secret in Secret Manager.
1323
+ # Corresponds to the JSON property `oauthClientIdName`
1324
+ # @return [String]
1325
+ attr_accessor :oauth_client_id_name
1326
+
1327
+ # The resource name for the OAuth client ID secret version in Secret Manager.
1328
+ # Corresponds to the JSON property `oauthClientIdVersionName`
1329
+ # @return [String]
1330
+ attr_accessor :oauth_client_id_version_name
1331
+
1332
+ # The resource name for the OAuth secret in Secret Manager.
1333
+ # Corresponds to the JSON property `oauthSecretName`
1334
+ # @return [String]
1335
+ attr_accessor :oauth_secret_name
1336
+
1337
+ # The resource name for the OAuth secret secret version in Secret Manager.
1338
+ # Corresponds to the JSON property `oauthSecretVersionName`
1339
+ # @return [String]
1340
+ attr_accessor :oauth_secret_version_name
1341
+
1342
+ # The resource name for the private key secret.
1343
+ # Corresponds to the JSON property `privateKeyName`
1344
+ # @return [String]
1345
+ attr_accessor :private_key_name
1346
+
1347
+ # The resource name for the private key secret version.
1348
+ # Corresponds to the JSON property `privateKeyVersionName`
1349
+ # @return [String]
1350
+ attr_accessor :private_key_version_name
1351
+
1352
+ # The resource name for the webhook secret in Secret Manager.
1353
+ # Corresponds to the JSON property `webhookSecretName`
1354
+ # @return [String]
1355
+ attr_accessor :webhook_secret_name
1356
+
1357
+ # The resource name for the webhook secret secret version in Secret Manager.
1358
+ # Corresponds to the JSON property `webhookSecretVersionName`
1359
+ # @return [String]
1360
+ attr_accessor :webhook_secret_version_name
1361
+
1362
+ def initialize(**args)
1363
+ update!(**args)
1364
+ end
1365
+
1366
+ # Update properties of this object
1367
+ def update!(**args)
1368
+ @oauth_client_id_name = args[:oauth_client_id_name] if args.key?(:oauth_client_id_name)
1369
+ @oauth_client_id_version_name = args[:oauth_client_id_version_name] if args.key?(:oauth_client_id_version_name)
1370
+ @oauth_secret_name = args[:oauth_secret_name] if args.key?(:oauth_secret_name)
1371
+ @oauth_secret_version_name = args[:oauth_secret_version_name] if args.key?(:oauth_secret_version_name)
1372
+ @private_key_name = args[:private_key_name] if args.key?(:private_key_name)
1373
+ @private_key_version_name = args[:private_key_version_name] if args.key?(:private_key_version_name)
1374
+ @webhook_secret_name = args[:webhook_secret_name] if args.key?(:webhook_secret_name)
1375
+ @webhook_secret_version_name = args[:webhook_secret_version_name] if args.key?(:webhook_secret_version_name)
1376
+ end
1377
+ end
1378
+
971
1379
  # GitHubEventsConfig describes the configuration of a trigger that creates a
972
- # build whenever a GitHub event is received. This message is experimental.
1380
+ # build whenever a GitHub event is received.
973
1381
  class GitHubEventsConfig
974
1382
  include Google::Apis::Core::Hashable
975
1383
 
1384
+ # Optional. The resource name of the github enterprise config that should be
1385
+ # applied to this installation. For example: "projects/`$project_id`/
1386
+ # githubEnterpriseConfigs/`$config_id`"
1387
+ # Corresponds to the JSON property `enterpriseConfigResourceName`
1388
+ # @return [String]
1389
+ attr_accessor :enterprise_config_resource_name
1390
+
976
1391
  # The installationID that emits the GitHub event.
977
1392
  # Corresponds to the JSON property `installationId`
978
1393
  # @return [Fixnum]
@@ -1006,6 +1421,7 @@ module Google
1006
1421
 
1007
1422
  # Update properties of this object
1008
1423
  def update!(**args)
1424
+ @enterprise_config_resource_name = args[:enterprise_config_resource_name] if args.key?(:enterprise_config_resource_name)
1009
1425
  @installation_id = args[:installation_id] if args.key?(:installation_id)
1010
1426
  @name = args[:name] if args.key?(:name)
1011
1427
  @owner = args[:owner] if args.key?(:owner)
@@ -1278,6 +1694,25 @@ module Google
1278
1694
  end
1279
1695
  end
1280
1696
 
1697
+ # RPC response object returned by ListGithubEnterpriseConfigs RPC method.
1698
+ class ListGithubEnterpriseConfigsResponse
1699
+ include Google::Apis::Core::Hashable
1700
+
1701
+ # A list of GitHubEnterpriseConfigs
1702
+ # Corresponds to the JSON property `configs`
1703
+ # @return [Array<Google::Apis::CloudbuildV1::GitHubEnterpriseConfig>]
1704
+ attr_accessor :configs
1705
+
1706
+ def initialize(**args)
1707
+ update!(**args)
1708
+ end
1709
+
1710
+ # Update properties of this object
1711
+ def update!(**args)
1712
+ @configs = args[:configs] if args.key?(:configs)
1713
+ end
1714
+ end
1715
+
1281
1716
  # Response containing existing `WorkerPools`.
1282
1717
  class ListWorkerPoolsResponse
1283
1718
  include Google::Apis::Core::Hashable
@@ -1599,7 +2034,7 @@ module Google
1599
2034
  attr_accessor :api_version
1600
2035
 
1601
2036
  # Output only. Identifies whether the user has requested cancellation of the
1602
- # operation. Operations that have successfully been cancelled have Operation.
2037
+ # operation. Operations that have been cancelled successfully have Operation.
1603
2038
  # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1604
2039
  # CANCELLED`.
1605
2040
  # Corresponds to the JSON property `cancelRequested`
@@ -1696,6 +2131,38 @@ module Google
1696
2131
  end
1697
2132
  end
1698
2133
 
2134
+ # Metadata for `ProcessAppManifestCallback` operation.
2135
+ class ProcessAppManifestCallbackOperationMetadata
2136
+ include Google::Apis::Core::Hashable
2137
+
2138
+ # Time the operation was completed.
2139
+ # Corresponds to the JSON property `completeTime`
2140
+ # @return [String]
2141
+ attr_accessor :complete_time
2142
+
2143
+ # Time the operation was created.
2144
+ # Corresponds to the JSON property `createTime`
2145
+ # @return [String]
2146
+ attr_accessor :create_time
2147
+
2148
+ # The resource name of the GitHubEnterprise to be created. Format: `projects/`
2149
+ # project`/locations/`location`/githubEnterpriseConfigs/`id``.
2150
+ # Corresponds to the JSON property `githubEnterpriseConfig`
2151
+ # @return [String]
2152
+ attr_accessor :github_enterprise_config
2153
+
2154
+ def initialize(**args)
2155
+ update!(**args)
2156
+ end
2157
+
2158
+ # Update properties of this object
2159
+ def update!(**args)
2160
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
2161
+ @create_time = args[:create_time] if args.key?(:create_time)
2162
+ @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
2163
+ end
2164
+ end
2165
+
1699
2166
  # PubsubConfig describes the configuration of a trigger that creates a build
1700
2167
  # whenever a Pub/Sub message is published.
1701
2168
  class PubsubConfig
@@ -2381,6 +2848,38 @@ module Google
2381
2848
  end
2382
2849
  end
2383
2850
 
2851
+ # Metadata for `UpdateGitHubEnterpriseConfig` operation.
2852
+ class UpdateGitHubEnterpriseConfigOperationMetadata
2853
+ include Google::Apis::Core::Hashable
2854
+
2855
+ # Time the operation was completed.
2856
+ # Corresponds to the JSON property `completeTime`
2857
+ # @return [String]
2858
+ attr_accessor :complete_time
2859
+
2860
+ # Time the operation was created.
2861
+ # Corresponds to the JSON property `createTime`
2862
+ # @return [String]
2863
+ attr_accessor :create_time
2864
+
2865
+ # The resource name of the GitHubEnterprise to be updated. Format: `projects/`
2866
+ # project`/locations/`location`/githubEnterpriseConfigs/`id``.
2867
+ # Corresponds to the JSON property `githubEnterpriseConfig`
2868
+ # @return [String]
2869
+ attr_accessor :github_enterprise_config
2870
+
2871
+ def initialize(**args)
2872
+ update!(**args)
2873
+ end
2874
+
2875
+ # Update properties of this object
2876
+ def update!(**args)
2877
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
2878
+ @create_time = args[:create_time] if args.key?(:create_time)
2879
+ @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
2880
+ end
2881
+ end
2882
+
2384
2883
  # Metadata for the `UpdateWorkerPool` operation.
2385
2884
  class UpdateWorkerPoolOperationMetadata
2386
2885
  include Google::Apis::Core::Hashable