google-apis-cloudbuild_v1 0.9.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb13c0617978b9a1124a8c0a0c1f7d80ac5f88db1142fae012c23ebce04f08b8
4
- data.tar.gz: a9f5773141445285fb028cfbd33b1390e4486b7cffc7ae483c4a0afc806ac432
3
+ metadata.gz: fb0499e20a9d222250ff6b33797fad6d904df236510c1d85b9a2ced3a82aca4f
4
+ data.tar.gz: 64d58b7a1a51c2889686223d05e07721839d106e60187244dafe7a40a29b7186
5
5
  SHA512:
6
- metadata.gz: 6f6c1cfc11f6bf5be20143118a330c41201dc3d65e08469255332e265f676d5d85bcc56b89f29dd5eda8300359f4536f11b8a0ad4a846cc97a14ae5d297b6c3e
7
- data.tar.gz: 11fe12ff928ebd38e93cc30ab08301c20c5c79e4145204e3b8008d075fb488234ed42a230e07f30b7430ca480fbe39602f35de72965c366eba0bc344a6a55b1b
6
+ metadata.gz: 831b78709a5b4f6667008f9c0f68e4d987c9c11163b549b461b12e59d0d7c569a0957f353b4cba6c7cf7a7bd22a14a92bdfc38731f7d6f8eeab66a73c4d71979
7
+ data.tar.gz: 9dfe24b2578c9d637cf3a77da27e442a3eaa56ec7322ec1eeeb6244f4e49896ad4116355a89d02ee229785b867ee504f384e1046af8d66e4c410074756c73d5d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-cloudbuild_v1
2
2
 
3
+ ### v0.13.0 (2021-07-27)
4
+
5
+ * Regenerated from discovery document revision 20210723
6
+
7
+ ### v0.12.0 (2021-07-20)
8
+
9
+ * Regenerated from discovery document revision 20210715
10
+
11
+ ### v0.11.0 (2021-07-13)
12
+
13
+ * Regenerated from discovery document revision 20210709
14
+
15
+ ### v0.10.0 (2021-07-03)
16
+
17
+ * Regenerated from discovery document revision 20210701
18
+ * Regenerated using generator version 0.4.0
19
+
3
20
  ### v0.9.0 (2021-06-24)
4
21
 
5
22
  * Unspecified changes
@@ -151,6 +151,11 @@ module Google
151
151
  # @return [String]
152
152
  attr_accessor :create_time
153
153
 
154
+ # A fatal problem encountered during the execution of the build.
155
+ # Corresponds to the JSON property `failureInfo`
156
+ # @return [Google::Apis::CloudbuildV1::FailureInfo]
157
+ attr_accessor :failure_info
158
+
154
159
  # Output only. Time at which execution of the build was finished. The difference
155
160
  # between finish_time and start_time is the duration of the build's execution.
156
161
  # Corresponds to the JSON property `finishTime`
@@ -278,9 +283,10 @@ module Google
278
283
  attr_accessor :timeout
279
284
 
280
285
  # Output only. Stores timing information for phases of the build. Valid keys are:
281
- # * BUILD: time to execute all build steps * PUSH: time to push all specified
282
- # images. * FETCHSOURCE: time to fetch source. If the build does not specify
283
- # source or images, these keys will not be included.
286
+ # * BUILD: time to execute all build steps. * PUSH: time to push all specified
287
+ # images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up
288
+ # build. If the build does not specify source or images, these keys will not be
289
+ # included.
284
290
  # Corresponds to the JSON property `timing`
285
291
  # @return [Hash<String,Google::Apis::CloudbuildV1::TimeSpan>]
286
292
  attr_accessor :timing
@@ -300,6 +306,7 @@ module Google
300
306
  @available_secrets = args[:available_secrets] if args.key?(:available_secrets)
301
307
  @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
302
308
  @create_time = args[:create_time] if args.key?(:create_time)
309
+ @failure_info = args[:failure_info] if args.key?(:failure_info)
303
310
  @finish_time = args[:finish_time] if args.key?(:finish_time)
304
311
  @id = args[:id] if args.key?(:id)
305
312
  @images = args[:images] if args.key?(:images)
@@ -402,6 +409,13 @@ module Google
402
409
  # @return [String]
403
410
  attr_accessor :machine_type
404
411
 
412
+ # Details about how a build should be executed on a `WorkerPool`. See [running
413
+ # builds in a private pool](https://cloud.google.com/build/docs/private-pools/
414
+ # run-builds-in-private-pool) for more information.
415
+ # Corresponds to the JSON property `pool`
416
+ # @return [Google::Apis::CloudbuildV1::PoolOption]
417
+ attr_accessor :pool
418
+
405
419
  # Requested verifiability options.
406
420
  # Corresponds to the JSON property `requestedVerifyOption`
407
421
  # @return [String]
@@ -436,9 +450,7 @@ module Google
436
450
  # @return [Array<Google::Apis::CloudbuildV1::Volume>]
437
451
  attr_accessor :volumes
438
452
 
439
- # Option to specify a `WorkerPool` for the build. Format: projects/`project`/
440
- # locations/`location`/workerPools/`workerPool` This field is in beta and is
441
- # available only to restricted users.
453
+ # This field deprecated; please use `pool.name` instead.
442
454
  # Corresponds to the JSON property `workerPool`
443
455
  # @return [String]
444
456
  attr_accessor :worker_pool
@@ -455,6 +467,7 @@ module Google
455
467
  @log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
456
468
  @logging = args[:logging] if args.key?(:logging)
457
469
  @machine_type = args[:machine_type] if args.key?(:machine_type)
470
+ @pool = args[:pool] if args.key?(:pool)
458
471
  @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
459
472
  @secret_env = args[:secret_env] if args.key?(:secret_env)
460
473
  @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
@@ -596,6 +609,14 @@ module Google
596
609
  class BuildTrigger
597
610
  include Google::Apis::Core::Hashable
598
611
 
612
+ # Autodetect build configuration. The following precedence is used (case
613
+ # insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4.
614
+ # Dockerfile Currently only available for GitHub App Triggers.
615
+ # Corresponds to the JSON property `autodetect`
616
+ # @return [Boolean]
617
+ attr_accessor :autodetect
618
+ alias_method :autodetect?, :autodetect
619
+
599
620
  # A build resource in the Cloud Build API. At a high level, a `Build` describes
600
621
  # where to find source code, how to build it (for example, the builder image to
601
622
  # run on the source), and where to store the built artifacts. Fields can include
@@ -639,7 +660,7 @@ module Google
639
660
  attr_accessor :filter
640
661
 
641
662
  # GitHubEventsConfig describes the configuration of a trigger that creates a
642
- # build whenever a GitHub event is received. This message is experimental.
663
+ # build whenever a GitHub event is received.
643
664
  # Corresponds to the JSON property `github`
644
665
  # @return [Google::Apis::CloudbuildV1::GitHubEventsConfig]
645
666
  attr_accessor :github
@@ -690,6 +711,20 @@ module Google
690
711
  # @return [String]
691
712
  attr_accessor :resource_name
692
713
 
714
+ # Optional. The service account used for all user-controlled operations
715
+ # including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild.
716
+ # If no service account is set, then the standard Cloud Build service account ([
717
+ # PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: `
718
+ # projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT_ID_OR_EMAIL``
719
+ # Corresponds to the JSON property `serviceAccount`
720
+ # @return [String]
721
+ attr_accessor :service_account
722
+
723
+ # GitRepoSource describes a repo and ref of a code repository.
724
+ # Corresponds to the JSON property `sourceToBuild`
725
+ # @return [Google::Apis::CloudbuildV1::GitRepoSource]
726
+ attr_accessor :source_to_build
727
+
693
728
  # Substitutions for Build resource. The keys must match the following regular
694
729
  # expression: `^_[A-Z0-9_]+$`.
695
730
  # Corresponds to the JSON property `substitutions`
@@ -718,6 +753,7 @@ module Google
718
753
 
719
754
  # Update properties of this object
720
755
  def update!(**args)
756
+ @autodetect = args[:autodetect] if args.key?(:autodetect)
721
757
  @build = args[:build] if args.key?(:build)
722
758
  @create_time = args[:create_time] if args.key?(:create_time)
723
759
  @description = args[:description] if args.key?(:description)
@@ -731,6 +767,8 @@ module Google
731
767
  @name = args[:name] if args.key?(:name)
732
768
  @pubsub_config = args[:pubsub_config] if args.key?(:pubsub_config)
733
769
  @resource_name = args[:resource_name] if args.key?(:resource_name)
770
+ @service_account = args[:service_account] if args.key?(:service_account)
771
+ @source_to_build = args[:source_to_build] if args.key?(:source_to_build)
734
772
  @substitutions = args[:substitutions] if args.key?(:substitutions)
735
773
  @tags = args[:tags] if args.key?(:tags)
736
774
  @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
@@ -815,6 +853,134 @@ module Google
815
853
  end
816
854
  end
817
855
 
856
+ # Metadata for `CreateGithubEnterpriseConfig` operation.
857
+ class CreateGitHubEnterpriseConfigOperationMetadata
858
+ include Google::Apis::Core::Hashable
859
+
860
+ # Time the operation was completed.
861
+ # Corresponds to the JSON property `completeTime`
862
+ # @return [String]
863
+ attr_accessor :complete_time
864
+
865
+ # Time the operation was created.
866
+ # Corresponds to the JSON property `createTime`
867
+ # @return [String]
868
+ attr_accessor :create_time
869
+
870
+ # The resource name of the GitHubEnterprise to be created. Format: `projects/`
871
+ # project`/locations/`location`/githubEnterpriseConfigs/`id``.
872
+ # Corresponds to the JSON property `githubEnterpriseConfig`
873
+ # @return [String]
874
+ attr_accessor :github_enterprise_config
875
+
876
+ def initialize(**args)
877
+ update!(**args)
878
+ end
879
+
880
+ # Update properties of this object
881
+ def update!(**args)
882
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
883
+ @create_time = args[:create_time] if args.key?(:create_time)
884
+ @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
885
+ end
886
+ end
887
+
888
+ # Metadata for the `CreateWorkerPool` operation.
889
+ class CreateWorkerPoolOperationMetadata
890
+ include Google::Apis::Core::Hashable
891
+
892
+ # Time the operation was completed.
893
+ # Corresponds to the JSON property `completeTime`
894
+ # @return [String]
895
+ attr_accessor :complete_time
896
+
897
+ # Time the operation was created.
898
+ # Corresponds to the JSON property `createTime`
899
+ # @return [String]
900
+ attr_accessor :create_time
901
+
902
+ # The resource name of the `WorkerPool` to create. Format: `projects/`project`/
903
+ # locations/`location`/workerPools/`worker_pool``.
904
+ # Corresponds to the JSON property `workerPool`
905
+ # @return [String]
906
+ attr_accessor :worker_pool
907
+
908
+ def initialize(**args)
909
+ update!(**args)
910
+ end
911
+
912
+ # Update properties of this object
913
+ def update!(**args)
914
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
915
+ @create_time = args[:create_time] if args.key?(:create_time)
916
+ @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
917
+ end
918
+ end
919
+
920
+ # Metadata for `DeleteGitHubEnterpriseConfig` operation.
921
+ class DeleteGitHubEnterpriseConfigOperationMetadata
922
+ include Google::Apis::Core::Hashable
923
+
924
+ # Time the operation was completed.
925
+ # Corresponds to the JSON property `completeTime`
926
+ # @return [String]
927
+ attr_accessor :complete_time
928
+
929
+ # Time the operation was created.
930
+ # Corresponds to the JSON property `createTime`
931
+ # @return [String]
932
+ attr_accessor :create_time
933
+
934
+ # The resource name of the GitHubEnterprise to be deleted. Format: `projects/`
935
+ # project`/locations/`location`/githubEnterpriseConfigs/`id``.
936
+ # Corresponds to the JSON property `githubEnterpriseConfig`
937
+ # @return [String]
938
+ attr_accessor :github_enterprise_config
939
+
940
+ def initialize(**args)
941
+ update!(**args)
942
+ end
943
+
944
+ # Update properties of this object
945
+ def update!(**args)
946
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
947
+ @create_time = args[:create_time] if args.key?(:create_time)
948
+ @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
949
+ end
950
+ end
951
+
952
+ # Metadata for the `DeleteWorkerPool` operation.
953
+ class DeleteWorkerPoolOperationMetadata
954
+ include Google::Apis::Core::Hashable
955
+
956
+ # Time the operation was completed.
957
+ # Corresponds to the JSON property `completeTime`
958
+ # @return [String]
959
+ attr_accessor :complete_time
960
+
961
+ # Time the operation was created.
962
+ # Corresponds to the JSON property `createTime`
963
+ # @return [String]
964
+ attr_accessor :create_time
965
+
966
+ # The resource name of the `WorkerPool` being deleted. Format: `projects/`
967
+ # project`/locations/`location`/workerPools/`worker_pool``.
968
+ # Corresponds to the JSON property `workerPool`
969
+ # @return [String]
970
+ attr_accessor :worker_pool
971
+
972
+ def initialize(**args)
973
+ update!(**args)
974
+ end
975
+
976
+ # Update properties of this object
977
+ def update!(**args)
978
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
979
+ @create_time = args[:create_time] if args.key?(:create_time)
980
+ @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
981
+ end
982
+ end
983
+
818
984
  # A generic empty message that you can re-use to avoid defining duplicated empty
819
985
  # messages in your APIs. A typical example is to use it as the request or the
820
986
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -832,6 +998,31 @@ module Google
832
998
  end
833
999
  end
834
1000
 
1001
+ # A fatal problem encountered during the execution of the build.
1002
+ class FailureInfo
1003
+ include Google::Apis::Core::Hashable
1004
+
1005
+ # Explains the failure issue in more detail using hard-coded text.
1006
+ # Corresponds to the JSON property `detail`
1007
+ # @return [String]
1008
+ attr_accessor :detail
1009
+
1010
+ # The name of the failure.
1011
+ # Corresponds to the JSON property `type`
1012
+ # @return [String]
1013
+ attr_accessor :type
1014
+
1015
+ def initialize(**args)
1016
+ update!(**args)
1017
+ end
1018
+
1019
+ # Update properties of this object
1020
+ def update!(**args)
1021
+ @detail = args[:detail] if args.key?(:detail)
1022
+ @type = args[:type] if args.key?(:type)
1023
+ end
1024
+ end
1025
+
835
1026
  # Container message for hashes of byte content of files, used in
836
1027
  # SourceProvenance messages to verify integrity of source input to the build.
837
1028
  class FileHashes
@@ -852,11 +1043,159 @@ module Google
852
1043
  end
853
1044
  end
854
1045
 
1046
+ # GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise
1047
+ # server.
1048
+ class GitHubEnterpriseConfig
1049
+ include Google::Apis::Core::Hashable
1050
+
1051
+ # Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise
1052
+ # server.
1053
+ # Corresponds to the JSON property `appId`
1054
+ # @return [Fixnum]
1055
+ attr_accessor :app_id
1056
+
1057
+ # Output only. Time when the installation was associated with the project.
1058
+ # Corresponds to the JSON property `createTime`
1059
+ # @return [String]
1060
+ attr_accessor :create_time
1061
+
1062
+ # Name to display for this config.
1063
+ # Corresponds to the JSON property `displayName`
1064
+ # @return [String]
1065
+ attr_accessor :display_name
1066
+
1067
+ # The URL of the github enterprise host the configuration is for.
1068
+ # Corresponds to the JSON property `hostUrl`
1069
+ # @return [String]
1070
+ attr_accessor :host_url
1071
+
1072
+ # Optional. The full resource name for the GitHubEnterpriseConfig For example: "
1073
+ # projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
1074
+ # Corresponds to the JSON property `name`
1075
+ # @return [String]
1076
+ attr_accessor :name
1077
+
1078
+ # Optional. The network to be used when reaching out to the GitHub Enterprise
1079
+ # server. The VPC network must be enabled for private service connection. This
1080
+ # should be set if the GitHub Enterprise server is hosted on-premises and not
1081
+ # reachable by public internet. If this field is left empty, no network peering
1082
+ # will occur and calls to the GitHub Enterprise server will be made over the
1083
+ # public internet. Must be in the format `projects/`project`/global/networks/`
1084
+ # network``, where `project` is a project number or id and `network` is the name
1085
+ # of a VPC network in the project.
1086
+ # Corresponds to the JSON property `peeredNetwork`
1087
+ # @return [String]
1088
+ attr_accessor :peered_network
1089
+
1090
+ # GitHubEnterpriseSecrets represents the names of all necessary secrets in
1091
+ # Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/.
1092
+ # Corresponds to the JSON property `secrets`
1093
+ # @return [Google::Apis::CloudbuildV1::GitHubEnterpriseSecrets]
1094
+ attr_accessor :secrets
1095
+
1096
+ # Optional. SSL certificate to use for requests to GitHub Enterprise.
1097
+ # Corresponds to the JSON property `sslCa`
1098
+ # @return [String]
1099
+ attr_accessor :ssl_ca
1100
+
1101
+ # The key that should be attached to webhook calls to the ReceiveWebhook
1102
+ # endpoint.
1103
+ # Corresponds to the JSON property `webhookKey`
1104
+ # @return [String]
1105
+ attr_accessor :webhook_key
1106
+
1107
+ def initialize(**args)
1108
+ update!(**args)
1109
+ end
1110
+
1111
+ # Update properties of this object
1112
+ def update!(**args)
1113
+ @app_id = args[:app_id] if args.key?(:app_id)
1114
+ @create_time = args[:create_time] if args.key?(:create_time)
1115
+ @display_name = args[:display_name] if args.key?(:display_name)
1116
+ @host_url = args[:host_url] if args.key?(:host_url)
1117
+ @name = args[:name] if args.key?(:name)
1118
+ @peered_network = args[:peered_network] if args.key?(:peered_network)
1119
+ @secrets = args[:secrets] if args.key?(:secrets)
1120
+ @ssl_ca = args[:ssl_ca] if args.key?(:ssl_ca)
1121
+ @webhook_key = args[:webhook_key] if args.key?(:webhook_key)
1122
+ end
1123
+ end
1124
+
1125
+ # GitHubEnterpriseSecrets represents the names of all necessary secrets in
1126
+ # Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/.
1127
+ class GitHubEnterpriseSecrets
1128
+ include Google::Apis::Core::Hashable
1129
+
1130
+ # The resource name for the OAuth client ID secret in Secret Manager.
1131
+ # Corresponds to the JSON property `oauthClientIdName`
1132
+ # @return [String]
1133
+ attr_accessor :oauth_client_id_name
1134
+
1135
+ # The resource name for the OAuth client ID secret version in Secret Manager.
1136
+ # Corresponds to the JSON property `oauthClientIdVersionName`
1137
+ # @return [String]
1138
+ attr_accessor :oauth_client_id_version_name
1139
+
1140
+ # The resource name for the OAuth secret in Secret Manager.
1141
+ # Corresponds to the JSON property `oauthSecretName`
1142
+ # @return [String]
1143
+ attr_accessor :oauth_secret_name
1144
+
1145
+ # The resource name for the OAuth secret secret version in Secret Manager.
1146
+ # Corresponds to the JSON property `oauthSecretVersionName`
1147
+ # @return [String]
1148
+ attr_accessor :oauth_secret_version_name
1149
+
1150
+ # The resource name for the private key secret.
1151
+ # Corresponds to the JSON property `privateKeyName`
1152
+ # @return [String]
1153
+ attr_accessor :private_key_name
1154
+
1155
+ # The resource name for the private key secret version.
1156
+ # Corresponds to the JSON property `privateKeyVersionName`
1157
+ # @return [String]
1158
+ attr_accessor :private_key_version_name
1159
+
1160
+ # The resource name for the webhook secret in Secret Manager.
1161
+ # Corresponds to the JSON property `webhookSecretName`
1162
+ # @return [String]
1163
+ attr_accessor :webhook_secret_name
1164
+
1165
+ # The resource name for the webhook secret secret version in Secret Manager.
1166
+ # Corresponds to the JSON property `webhookSecretVersionName`
1167
+ # @return [String]
1168
+ attr_accessor :webhook_secret_version_name
1169
+
1170
+ def initialize(**args)
1171
+ update!(**args)
1172
+ end
1173
+
1174
+ # Update properties of this object
1175
+ def update!(**args)
1176
+ @oauth_client_id_name = args[:oauth_client_id_name] if args.key?(:oauth_client_id_name)
1177
+ @oauth_client_id_version_name = args[:oauth_client_id_version_name] if args.key?(:oauth_client_id_version_name)
1178
+ @oauth_secret_name = args[:oauth_secret_name] if args.key?(:oauth_secret_name)
1179
+ @oauth_secret_version_name = args[:oauth_secret_version_name] if args.key?(:oauth_secret_version_name)
1180
+ @private_key_name = args[:private_key_name] if args.key?(:private_key_name)
1181
+ @private_key_version_name = args[:private_key_version_name] if args.key?(:private_key_version_name)
1182
+ @webhook_secret_name = args[:webhook_secret_name] if args.key?(:webhook_secret_name)
1183
+ @webhook_secret_version_name = args[:webhook_secret_version_name] if args.key?(:webhook_secret_version_name)
1184
+ end
1185
+ end
1186
+
855
1187
  # GitHubEventsConfig describes the configuration of a trigger that creates a
856
- # build whenever a GitHub event is received. This message is experimental.
1188
+ # build whenever a GitHub event is received.
857
1189
  class GitHubEventsConfig
858
1190
  include Google::Apis::Core::Hashable
859
1191
 
1192
+ # Optional. The resource name of the github enterprise config that should be
1193
+ # applied to this installation. For example: "projects/`$project_id`/
1194
+ # githubEnterpriseConfig/`$config_id`"
1195
+ # Corresponds to the JSON property `enterpriseConfigResourceName`
1196
+ # @return [String]
1197
+ attr_accessor :enterprise_config_resource_name
1198
+
860
1199
  # The installationID that emits the GitHub event.
861
1200
  # Corresponds to the JSON property `installationId`
862
1201
  # @return [Fixnum]
@@ -890,6 +1229,7 @@ module Google
890
1229
 
891
1230
  # Update properties of this object
892
1231
  def update!(**args)
1232
+ @enterprise_config_resource_name = args[:enterprise_config_resource_name] if args.key?(:enterprise_config_resource_name)
893
1233
  @installation_id = args[:installation_id] if args.key?(:installation_id)
894
1234
  @name = args[:name] if args.key?(:name)
895
1235
  @owner = args[:owner] if args.key?(:owner)
@@ -898,6 +1238,96 @@ module Google
898
1238
  end
899
1239
  end
900
1240
 
1241
+ # GitRepoSource describes a repo and ref of a code repository.
1242
+ class GitRepoSource
1243
+ include Google::Apis::Core::Hashable
1244
+
1245
+ # The branch or tag to use. Must start with "refs/" (required).
1246
+ # Corresponds to the JSON property `ref`
1247
+ # @return [String]
1248
+ attr_accessor :ref
1249
+
1250
+ # See RepoType below.
1251
+ # Corresponds to the JSON property `repoType`
1252
+ # @return [String]
1253
+ attr_accessor :repo_type
1254
+
1255
+ # The URI of the repo (required).
1256
+ # Corresponds to the JSON property `uri`
1257
+ # @return [String]
1258
+ attr_accessor :uri
1259
+
1260
+ def initialize(**args)
1261
+ update!(**args)
1262
+ end
1263
+
1264
+ # Update properties of this object
1265
+ def update!(**args)
1266
+ @ref = args[:ref] if args.key?(:ref)
1267
+ @repo_type = args[:repo_type] if args.key?(:repo_type)
1268
+ @uri = args[:uri] if args.key?(:uri)
1269
+ end
1270
+ end
1271
+
1272
+ # Represents the metadata of the long-running operation.
1273
+ class GoogleDevtoolsCloudbuildV2OperationMetadata
1274
+ include Google::Apis::Core::Hashable
1275
+
1276
+ # Output only. API version used to start the operation.
1277
+ # Corresponds to the JSON property `apiVersion`
1278
+ # @return [String]
1279
+ attr_accessor :api_version
1280
+
1281
+ # Output only. The time the operation was created.
1282
+ # Corresponds to the JSON property `createTime`
1283
+ # @return [String]
1284
+ attr_accessor :create_time
1285
+
1286
+ # Output only. The time the operation finished running.
1287
+ # Corresponds to the JSON property `endTime`
1288
+ # @return [String]
1289
+ attr_accessor :end_time
1290
+
1291
+ # Output only. Identifies whether the user has requested cancellation of the
1292
+ # operation. Operations that have successfully been cancelled have Operation.
1293
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1294
+ # CANCELLED`.
1295
+ # Corresponds to the JSON property `requestedCancellation`
1296
+ # @return [Boolean]
1297
+ attr_accessor :requested_cancellation
1298
+ alias_method :requested_cancellation?, :requested_cancellation
1299
+
1300
+ # Output only. Human-readable status of the operation, if any.
1301
+ # Corresponds to the JSON property `statusMessage`
1302
+ # @return [String]
1303
+ attr_accessor :status_message
1304
+
1305
+ # Output only. Server-defined resource path for the target of the operation.
1306
+ # Corresponds to the JSON property `target`
1307
+ # @return [String]
1308
+ attr_accessor :target
1309
+
1310
+ # Output only. Name of the verb executed by the operation.
1311
+ # Corresponds to the JSON property `verb`
1312
+ # @return [String]
1313
+ attr_accessor :verb
1314
+
1315
+ def initialize(**args)
1316
+ update!(**args)
1317
+ end
1318
+
1319
+ # Update properties of this object
1320
+ def update!(**args)
1321
+ @api_version = args[:api_version] if args.key?(:api_version)
1322
+ @create_time = args[:create_time] if args.key?(:create_time)
1323
+ @end_time = args[:end_time] if args.key?(:end_time)
1324
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
1325
+ @status_message = args[:status_message] if args.key?(:status_message)
1326
+ @target = args[:target] if args.key?(:target)
1327
+ @verb = args[:verb] if args.key?(:verb)
1328
+ end
1329
+ end
1330
+
901
1331
  # HTTPDelivery is the delivery configuration for an HTTP notification.
902
1332
  class HttpDelivery
903
1333
  include Google::Apis::Core::Hashable
@@ -1072,6 +1502,82 @@ module Google
1072
1502
  end
1073
1503
  end
1074
1504
 
1505
+ # RPC response object returned by ListGithubEnterpriseConfigs RPC method.
1506
+ class ListGithubEnterpriseConfigsResponse
1507
+ include Google::Apis::Core::Hashable
1508
+
1509
+ # A list of GitHubEnterpriseConfigs
1510
+ # Corresponds to the JSON property `configs`
1511
+ # @return [Array<Google::Apis::CloudbuildV1::GitHubEnterpriseConfig>]
1512
+ attr_accessor :configs
1513
+
1514
+ def initialize(**args)
1515
+ update!(**args)
1516
+ end
1517
+
1518
+ # Update properties of this object
1519
+ def update!(**args)
1520
+ @configs = args[:configs] if args.key?(:configs)
1521
+ end
1522
+ end
1523
+
1524
+ # Response containing existing `WorkerPools`.
1525
+ class ListWorkerPoolsResponse
1526
+ include Google::Apis::Core::Hashable
1527
+
1528
+ # Continuation token used to page through large result sets. Provide this value
1529
+ # in a subsequent ListWorkerPoolsRequest to return the next page of results.
1530
+ # Corresponds to the JSON property `nextPageToken`
1531
+ # @return [String]
1532
+ attr_accessor :next_page_token
1533
+
1534
+ # `WorkerPools` for the specified project.
1535
+ # Corresponds to the JSON property `workerPools`
1536
+ # @return [Array<Google::Apis::CloudbuildV1::WorkerPool>]
1537
+ attr_accessor :worker_pools
1538
+
1539
+ def initialize(**args)
1540
+ update!(**args)
1541
+ end
1542
+
1543
+ # Update properties of this object
1544
+ def update!(**args)
1545
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1546
+ @worker_pools = args[:worker_pools] if args.key?(:worker_pools)
1547
+ end
1548
+ end
1549
+
1550
+ # Defines the network configuration for the pool.
1551
+ class NetworkConfig
1552
+ include Google::Apis::Core::Hashable
1553
+
1554
+ # Option to configure network egress for the workers.
1555
+ # Corresponds to the JSON property `egressOption`
1556
+ # @return [String]
1557
+ attr_accessor :egress_option
1558
+
1559
+ # Required. Immutable. The network definition that the workers are peered to. If
1560
+ # this section is left empty, the workers will be peered to `WorkerPool.
1561
+ # project_id` on the service producer network. Must be in the format `projects/`
1562
+ # project`/global/networks/`network``, where ``project`` is a project number,
1563
+ # such as `12345`, and ``network`` is the name of a VPC network in the project.
1564
+ # See [Understanding network configuration options](https://cloud.google.com/
1565
+ # build/docs/private-pools/set-up-private-pool-environment)
1566
+ # Corresponds to the JSON property `peeredNetwork`
1567
+ # @return [String]
1568
+ attr_accessor :peered_network
1569
+
1570
+ def initialize(**args)
1571
+ update!(**args)
1572
+ end
1573
+
1574
+ # Update properties of this object
1575
+ def update!(**args)
1576
+ @egress_option = args[:egress_option] if args.key?(:egress_option)
1577
+ @peered_network = args[:peered_network] if args.key?(:peered_network)
1578
+ end
1579
+ end
1580
+
1075
1581
  # Notification is the container which holds the data that is relevant to this
1076
1582
  # particular notification.
1077
1583
  class Notification
@@ -1326,6 +1832,145 @@ module Google
1326
1832
  end
1327
1833
  end
1328
1834
 
1835
+ # Represents the metadata of the long-running operation.
1836
+ class OperationMetadata
1837
+ include Google::Apis::Core::Hashable
1838
+
1839
+ # Output only. API version used to start the operation.
1840
+ # Corresponds to the JSON property `apiVersion`
1841
+ # @return [String]
1842
+ attr_accessor :api_version
1843
+
1844
+ # Output only. Identifies whether the user has requested cancellation of the
1845
+ # operation. Operations that have successfully been cancelled have Operation.
1846
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1847
+ # CANCELLED`.
1848
+ # Corresponds to the JSON property `cancelRequested`
1849
+ # @return [Boolean]
1850
+ attr_accessor :cancel_requested
1851
+ alias_method :cancel_requested?, :cancel_requested
1852
+
1853
+ # Output only. The time the operation was created.
1854
+ # Corresponds to the JSON property `createTime`
1855
+ # @return [String]
1856
+ attr_accessor :create_time
1857
+
1858
+ # Output only. The time the operation finished running.
1859
+ # Corresponds to the JSON property `endTime`
1860
+ # @return [String]
1861
+ attr_accessor :end_time
1862
+
1863
+ # Output only. Human-readable status of the operation, if any.
1864
+ # Corresponds to the JSON property `statusDetail`
1865
+ # @return [String]
1866
+ attr_accessor :status_detail
1867
+
1868
+ # Output only. Server-defined resource path for the target of the operation.
1869
+ # Corresponds to the JSON property `target`
1870
+ # @return [String]
1871
+ attr_accessor :target
1872
+
1873
+ # Output only. Name of the verb executed by the operation.
1874
+ # Corresponds to the JSON property `verb`
1875
+ # @return [String]
1876
+ attr_accessor :verb
1877
+
1878
+ def initialize(**args)
1879
+ update!(**args)
1880
+ end
1881
+
1882
+ # Update properties of this object
1883
+ def update!(**args)
1884
+ @api_version = args[:api_version] if args.key?(:api_version)
1885
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
1886
+ @create_time = args[:create_time] if args.key?(:create_time)
1887
+ @end_time = args[:end_time] if args.key?(:end_time)
1888
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
1889
+ @target = args[:target] if args.key?(:target)
1890
+ @verb = args[:verb] if args.key?(:verb)
1891
+ end
1892
+ end
1893
+
1894
+ # Details about how a build should be executed on a `WorkerPool`. See [running
1895
+ # builds in a private pool](https://cloud.google.com/build/docs/private-pools/
1896
+ # run-builds-in-private-pool) for more information.
1897
+ class PoolOption
1898
+ include Google::Apis::Core::Hashable
1899
+
1900
+ # The `WorkerPool` resource to execute the build on. You must have `cloudbuild.
1901
+ # workerpools.use` on the project hosting the WorkerPool. Format projects/`
1902
+ # project`/locations/`location`/workerPools/`workerPoolId`
1903
+ # Corresponds to the JSON property `name`
1904
+ # @return [String]
1905
+ attr_accessor :name
1906
+
1907
+ def initialize(**args)
1908
+ update!(**args)
1909
+ end
1910
+
1911
+ # Update properties of this object
1912
+ def update!(**args)
1913
+ @name = args[:name] if args.key?(:name)
1914
+ end
1915
+ end
1916
+
1917
+ # Configuration for a V1 `PrivatePool`.
1918
+ class PrivatePoolV1Config
1919
+ include Google::Apis::Core::Hashable
1920
+
1921
+ # Defines the network configuration for the pool.
1922
+ # Corresponds to the JSON property `networkConfig`
1923
+ # @return [Google::Apis::CloudbuildV1::NetworkConfig]
1924
+ attr_accessor :network_config
1925
+
1926
+ # Defines the configuration to be used for creating workers in the pool.
1927
+ # Corresponds to the JSON property `workerConfig`
1928
+ # @return [Google::Apis::CloudbuildV1::WorkerConfig]
1929
+ attr_accessor :worker_config
1930
+
1931
+ def initialize(**args)
1932
+ update!(**args)
1933
+ end
1934
+
1935
+ # Update properties of this object
1936
+ def update!(**args)
1937
+ @network_config = args[:network_config] if args.key?(:network_config)
1938
+ @worker_config = args[:worker_config] if args.key?(:worker_config)
1939
+ end
1940
+ end
1941
+
1942
+ # Metadata for `ProcessAppManifestCallback` operation.
1943
+ class ProcessAppManifestCallbackOperationMetadata
1944
+ include Google::Apis::Core::Hashable
1945
+
1946
+ # Time the operation was completed.
1947
+ # Corresponds to the JSON property `completeTime`
1948
+ # @return [String]
1949
+ attr_accessor :complete_time
1950
+
1951
+ # Time the operation was created.
1952
+ # Corresponds to the JSON property `createTime`
1953
+ # @return [String]
1954
+ attr_accessor :create_time
1955
+
1956
+ # The resource name of the GitHubEnterprise to be created. Format: `projects/`
1957
+ # project`/locations/`location`/githubEnterpriseConfigs/`id``.
1958
+ # Corresponds to the JSON property `githubEnterpriseConfig`
1959
+ # @return [String]
1960
+ attr_accessor :github_enterprise_config
1961
+
1962
+ def initialize(**args)
1963
+ update!(**args)
1964
+ end
1965
+
1966
+ # Update properties of this object
1967
+ def update!(**args)
1968
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
1969
+ @create_time = args[:create_time] if args.key?(:create_time)
1970
+ @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
1971
+ end
1972
+ end
1973
+
1329
1974
  # PubsubConfig describes the configuration of a trigger that creates a build
1330
1975
  # whenever a Pub/Sub message is published.
1331
1976
  class PubsubConfig
@@ -1811,7 +2456,8 @@ module Google
1811
2456
  attr_accessor :storage_source
1812
2457
 
1813
2458
  # Location of the source manifest in Google Cloud Storage. This feature is in
1814
- # Preview.
2459
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
2460
+ # builders/tree/master/gcs-fetcher).
1815
2461
  # Corresponds to the JSON property `storageSourceManifest`
1816
2462
  # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1817
2463
  attr_accessor :storage_source_manifest
@@ -1855,7 +2501,8 @@ module Google
1855
2501
  attr_accessor :resolved_storage_source
1856
2502
 
1857
2503
  # Location of the source manifest in Google Cloud Storage. This feature is in
1858
- # Preview.
2504
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
2505
+ # builders/tree/master/gcs-fetcher).
1859
2506
  # Corresponds to the JSON property `resolvedStorageSourceManifest`
1860
2507
  # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1861
2508
  attr_accessor :resolved_storage_source_manifest
@@ -1930,7 +2577,7 @@ module Google
1930
2577
  attr_accessor :generation
1931
2578
 
1932
2579
  # Google Cloud Storage object containing the source. This object must be a
1933
- # gzipped archive file (`.tar.gz`) containing source to build.
2580
+ # zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
1934
2581
  # Corresponds to the JSON property `object`
1935
2582
  # @return [String]
1936
2583
  attr_accessor :object
@@ -1948,7 +2595,8 @@ module Google
1948
2595
  end
1949
2596
 
1950
2597
  # Location of the source manifest in Google Cloud Storage. This feature is in
1951
- # Preview.
2598
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
2599
+ # builders/tree/master/gcs-fetcher).
1952
2600
  class StorageSourceManifest
1953
2601
  include Google::Apis::Core::Hashable
1954
2602
 
@@ -2008,6 +2656,70 @@ module Google
2008
2656
  end
2009
2657
  end
2010
2658
 
2659
+ # Metadata for `UpdateGitHubEnterpriseConfig` operation.
2660
+ class UpdateGitHubEnterpriseConfigOperationMetadata
2661
+ include Google::Apis::Core::Hashable
2662
+
2663
+ # Time the operation was completed.
2664
+ # Corresponds to the JSON property `completeTime`
2665
+ # @return [String]
2666
+ attr_accessor :complete_time
2667
+
2668
+ # Time the operation was created.
2669
+ # Corresponds to the JSON property `createTime`
2670
+ # @return [String]
2671
+ attr_accessor :create_time
2672
+
2673
+ # The resource name of the GitHubEnterprise to be updated. Format: `projects/`
2674
+ # project`/locations/`location`/githubEnterpriseConfigs/`id``.
2675
+ # Corresponds to the JSON property `githubEnterpriseConfig`
2676
+ # @return [String]
2677
+ attr_accessor :github_enterprise_config
2678
+
2679
+ def initialize(**args)
2680
+ update!(**args)
2681
+ end
2682
+
2683
+ # Update properties of this object
2684
+ def update!(**args)
2685
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
2686
+ @create_time = args[:create_time] if args.key?(:create_time)
2687
+ @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
2688
+ end
2689
+ end
2690
+
2691
+ # Metadata for the `UpdateWorkerPool` operation.
2692
+ class UpdateWorkerPoolOperationMetadata
2693
+ include Google::Apis::Core::Hashable
2694
+
2695
+ # Time the operation was completed.
2696
+ # Corresponds to the JSON property `completeTime`
2697
+ # @return [String]
2698
+ attr_accessor :complete_time
2699
+
2700
+ # Time the operation was created.
2701
+ # Corresponds to the JSON property `createTime`
2702
+ # @return [String]
2703
+ attr_accessor :create_time
2704
+
2705
+ # The resource name of the `WorkerPool` being updated. Format: `projects/`
2706
+ # project`/locations/`location`/workerPools/`worker_pool``.
2707
+ # Corresponds to the JSON property `workerPool`
2708
+ # @return [String]
2709
+ attr_accessor :worker_pool
2710
+
2711
+ def initialize(**args)
2712
+ update!(**args)
2713
+ end
2714
+
2715
+ # Update properties of this object
2716
+ def update!(**args)
2717
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
2718
+ @create_time = args[:create_time] if args.key?(:create_time)
2719
+ @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
2720
+ end
2721
+ end
2722
+
2011
2723
  # Volume describes a Docker container volume which is mounted into build steps
2012
2724
  # in order to persist files across build step execution.
2013
2725
  class Volume
@@ -2089,6 +2801,123 @@ module Google
2089
2801
  @state = args[:state] if args.key?(:state)
2090
2802
  end
2091
2803
  end
2804
+
2805
+ # Defines the configuration to be used for creating workers in the pool.
2806
+ class WorkerConfig
2807
+ include Google::Apis::Core::Hashable
2808
+
2809
+ # Size of the disk attached to the worker, in GB. See [Worker pool config file](
2810
+ # https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-
2811
+ # schema). Specify a value of up to 1000. If `0` is specified, Cloud Build will
2812
+ # use a standard disk size.
2813
+ # Corresponds to the JSON property `diskSizeGb`
2814
+ # @return [Fixnum]
2815
+ attr_accessor :disk_size_gb
2816
+
2817
+ # Machine type of a worker, such as `e2-medium`. See [Worker pool config file](
2818
+ # https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-
2819
+ # schema). If left blank, Cloud Build will use a sensible default.
2820
+ # Corresponds to the JSON property `machineType`
2821
+ # @return [String]
2822
+ attr_accessor :machine_type
2823
+
2824
+ def initialize(**args)
2825
+ update!(**args)
2826
+ end
2827
+
2828
+ # Update properties of this object
2829
+ def update!(**args)
2830
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
2831
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
2832
+ end
2833
+ end
2834
+
2835
+ # Configuration for a `WorkerPool`. Cloud Build owns and maintains a pool of
2836
+ # workers for general use and have no access to a project's private network. By
2837
+ # default, builds submitted to Cloud Build will use a worker from this pool. If
2838
+ # your build needs access to resources on a private network, create and use a `
2839
+ # WorkerPool` to run your builds. Private `WorkerPool`s give your builds access
2840
+ # to any single VPC network that you administer, including any on-prem resources
2841
+ # connected to that VPC network. For an overview of private pools, see [Private
2842
+ # pools overview](https://cloud.google.com/build/docs/private-pools/private-
2843
+ # pools-overview).
2844
+ class WorkerPool
2845
+ include Google::Apis::Core::Hashable
2846
+
2847
+ # User specified annotations. See https://google.aip.dev/128#annotations for
2848
+ # more details such as format and size limitations.
2849
+ # Corresponds to the JSON property `annotations`
2850
+ # @return [Hash<String,String>]
2851
+ attr_accessor :annotations
2852
+
2853
+ # Output only. Time at which the request to create the `WorkerPool` was received.
2854
+ # Corresponds to the JSON property `createTime`
2855
+ # @return [String]
2856
+ attr_accessor :create_time
2857
+
2858
+ # Output only. Time at which the request to delete the `WorkerPool` was received.
2859
+ # Corresponds to the JSON property `deleteTime`
2860
+ # @return [String]
2861
+ attr_accessor :delete_time
2862
+
2863
+ # A user-specified, human-readable name for the `WorkerPool`. If provided, this
2864
+ # value must be 1-63 characters.
2865
+ # Corresponds to the JSON property `displayName`
2866
+ # @return [String]
2867
+ attr_accessor :display_name
2868
+
2869
+ # Output only. Checksum computed by the server. May be sent on update and delete
2870
+ # requests to ensure that the client has an up-to-date value before proceeding.
2871
+ # Corresponds to the JSON property `etag`
2872
+ # @return [String]
2873
+ attr_accessor :etag
2874
+
2875
+ # Output only. The resource name of the `WorkerPool`, with format `projects/`
2876
+ # project`/locations/`location`/workerPools/`worker_pool``. The value of ``
2877
+ # worker_pool`` is provided by `worker_pool_id` in `CreateWorkerPool` request
2878
+ # and the value of ``location`` is determined by the endpoint accessed.
2879
+ # Corresponds to the JSON property `name`
2880
+ # @return [String]
2881
+ attr_accessor :name
2882
+
2883
+ # Configuration for a V1 `PrivatePool`.
2884
+ # Corresponds to the JSON property `privatePoolV1Config`
2885
+ # @return [Google::Apis::CloudbuildV1::PrivatePoolV1Config]
2886
+ attr_accessor :private_pool_v1_config
2887
+
2888
+ # Output only. `WorkerPool` state.
2889
+ # Corresponds to the JSON property `state`
2890
+ # @return [String]
2891
+ attr_accessor :state
2892
+
2893
+ # Output only. A unique identifier for the `WorkerPool`.
2894
+ # Corresponds to the JSON property `uid`
2895
+ # @return [String]
2896
+ attr_accessor :uid
2897
+
2898
+ # Output only. Time at which the request to update the `WorkerPool` was received.
2899
+ # Corresponds to the JSON property `updateTime`
2900
+ # @return [String]
2901
+ attr_accessor :update_time
2902
+
2903
+ def initialize(**args)
2904
+ update!(**args)
2905
+ end
2906
+
2907
+ # Update properties of this object
2908
+ def update!(**args)
2909
+ @annotations = args[:annotations] if args.key?(:annotations)
2910
+ @create_time = args[:create_time] if args.key?(:create_time)
2911
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
2912
+ @display_name = args[:display_name] if args.key?(:display_name)
2913
+ @etag = args[:etag] if args.key?(:etag)
2914
+ @name = args[:name] if args.key?(:name)
2915
+ @private_pool_v1_config = args[:private_pool_v1_config] if args.key?(:private_pool_v1_config)
2916
+ @state = args[:state] if args.key?(:state)
2917
+ @uid = args[:uid] if args.key?(:uid)
2918
+ @update_time = args[:update_time] if args.key?(:update_time)
2919
+ end
2920
+ end
2092
2921
  end
2093
2922
  end
2094
2923
  end