1// Copyright 2020 Google LLC.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Code generated file. DO NOT EDIT.
6
7// Package cloudbuild provides access to the Cloud Build API.
8//
9// For product documentation, see: https://cloud.google.com/cloud-build/docs/
10//
11// Creating a client
12//
13// Usage example:
14//
15//   import "google.golang.org/api/cloudbuild/v1alpha2"
16//   ...
17//   ctx := context.Background()
18//   cloudbuildService, err := cloudbuild.NewService(ctx)
19//
20// In this example, Google Application Default Credentials are used for authentication.
21//
22// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
23//
24// Other authentication options
25//
26// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
27//
28//   cloudbuildService, err := cloudbuild.NewService(ctx, option.WithAPIKey("AIza..."))
29//
30// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
31//
32//   config := &oauth2.Config{...}
33//   // ...
34//   token, err := config.Exchange(ctx, ...)
35//   cloudbuildService, err := cloudbuild.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
36//
37// See https://godoc.org/google.golang.org/api/option/ for details on options.
38package cloudbuild // import "google.golang.org/api/cloudbuild/v1alpha2"
39
40import (
41	"bytes"
42	"context"
43	"encoding/json"
44	"errors"
45	"fmt"
46	"io"
47	"net/http"
48	"net/url"
49	"strconv"
50	"strings"
51
52	googleapi "google.golang.org/api/googleapi"
53	gensupport "google.golang.org/api/internal/gensupport"
54	option "google.golang.org/api/option"
55	internaloption "google.golang.org/api/option/internaloption"
56	htransport "google.golang.org/api/transport/http"
57)
58
59// Always reference these packages, just in case the auto-generated code
60// below doesn't.
61var _ = bytes.NewBuffer
62var _ = strconv.Itoa
63var _ = fmt.Sprintf
64var _ = json.NewDecoder
65var _ = io.Copy
66var _ = url.Parse
67var _ = gensupport.MarshalJSON
68var _ = googleapi.Version
69var _ = errors.New
70var _ = strings.Replace
71var _ = context.Canceled
72var _ = internaloption.WithDefaultEndpoint
73
74const apiId = "cloudbuild:v1alpha2"
75const apiName = "cloudbuild"
76const apiVersion = "v1alpha2"
77const basePath = "https://cloudbuild.googleapis.com/"
78const mtlsBasePath = "https://cloudbuild.mtls.googleapis.com/"
79
80// OAuth2 scopes used by this API.
81const (
82	// View and manage your data across Google Cloud Platform services
83	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
84)
85
86// NewService creates a new Service.
87func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
88	scopesOption := option.WithScopes(
89		"https://www.googleapis.com/auth/cloud-platform",
90	)
91	// NOTE: prepend, so we don't override user-specified scopes.
92	opts = append([]option.ClientOption{scopesOption}, opts...)
93	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
94	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
95	client, endpoint, err := htransport.NewClient(ctx, opts...)
96	if err != nil {
97		return nil, err
98	}
99	s, err := New(client)
100	if err != nil {
101		return nil, err
102	}
103	if endpoint != "" {
104		s.BasePath = endpoint
105	}
106	return s, nil
107}
108
109// New creates a new Service. It uses the provided http.Client for requests.
110//
111// Deprecated: please use NewService instead.
112// To provide a custom HTTP client, use option.WithHTTPClient.
113// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
114func New(client *http.Client) (*Service, error) {
115	if client == nil {
116		return nil, errors.New("client is nil")
117	}
118	s := &Service{client: client, BasePath: basePath}
119	s.Projects = NewProjectsService(s)
120	return s, nil
121}
122
123type Service struct {
124	client    *http.Client
125	BasePath  string // API endpoint base URL
126	UserAgent string // optional additional User-Agent fragment
127
128	Projects *ProjectsService
129}
130
131func (s *Service) userAgent() string {
132	if s.UserAgent == "" {
133		return googleapi.UserAgent
134	}
135	return googleapi.UserAgent + " " + s.UserAgent
136}
137
138func NewProjectsService(s *Service) *ProjectsService {
139	rs := &ProjectsService{s: s}
140	rs.Locations = NewProjectsLocationsService(s)
141	rs.WorkerPools = NewProjectsWorkerPoolsService(s)
142	return rs
143}
144
145type ProjectsService struct {
146	s *Service
147
148	Locations *ProjectsLocationsService
149
150	WorkerPools *ProjectsWorkerPoolsService
151}
152
153func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
154	rs := &ProjectsLocationsService{s: s}
155	rs.Operations = NewProjectsLocationsOperationsService(s)
156	return rs
157}
158
159type ProjectsLocationsService struct {
160	s *Service
161
162	Operations *ProjectsLocationsOperationsService
163}
164
165func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
166	rs := &ProjectsLocationsOperationsService{s: s}
167	return rs
168}
169
170type ProjectsLocationsOperationsService struct {
171	s *Service
172}
173
174func NewProjectsWorkerPoolsService(s *Service) *ProjectsWorkerPoolsService {
175	rs := &ProjectsWorkerPoolsService{s: s}
176	return rs
177}
178
179type ProjectsWorkerPoolsService struct {
180	s *Service
181}
182
183// ArtifactObjects: Files in the workspace to upload to Cloud Storage
184// upon successful
185// completion of all build steps.
186type ArtifactObjects struct {
187	// Location: Cloud Storage bucket and optional object path, in the
188	// form
189	// "gs://bucket/path/to/somewhere/". (see [Bucket
190	// Name
191	// Requirements](https://cloud.google.com/storage/docs/bucket-naming
192	// #requirements)).
193	//
194	// Files in the workspace matching any path pattern will be uploaded
195	// to
196	// Cloud Storage with this location as a prefix.
197	Location string `json:"location,omitempty"`
198
199	// Paths: Path globs used to match files in the build's workspace.
200	Paths []string `json:"paths,omitempty"`
201
202	// Timing: Output only. Stores timing information for pushing all
203	// artifact objects.
204	Timing *TimeSpan `json:"timing,omitempty"`
205
206	// ForceSendFields is a list of field names (e.g. "Location") to
207	// unconditionally include in API requests. By default, fields with
208	// empty values are omitted from API requests. However, any non-pointer,
209	// non-interface field appearing in ForceSendFields will be sent to the
210	// server regardless of whether the field is empty or not. This may be
211	// used to include empty fields in Patch requests.
212	ForceSendFields []string `json:"-"`
213
214	// NullFields is a list of field names (e.g. "Location") to include in
215	// API requests with the JSON null value. By default, fields with empty
216	// values are omitted from API requests. However, any field with an
217	// empty value appearing in NullFields will be sent to the server as
218	// null. It is an error if a field in this list has a non-empty value.
219	// This may be used to include null fields in Patch requests.
220	NullFields []string `json:"-"`
221}
222
223func (s *ArtifactObjects) MarshalJSON() ([]byte, error) {
224	type NoMethod ArtifactObjects
225	raw := NoMethod(*s)
226	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
227}
228
229// ArtifactResult: An artifact that was uploaded during a build. This
230// is a single record in the artifact manifest JSON file.
231type ArtifactResult struct {
232	// FileHash: The file hash of the artifact.
233	FileHash []*FileHashes `json:"fileHash,omitempty"`
234
235	// Location: The path of an artifact in a Google Cloud Storage bucket,
236	// with the
237	// generation number. For
238	// example,
239	// `gs://mybucket/path/to/output.jar#generation`.
240	Location string `json:"location,omitempty"`
241
242	// ForceSendFields is a list of field names (e.g. "FileHash") to
243	// unconditionally include in API requests. By default, fields with
244	// empty values are omitted from API requests. However, any non-pointer,
245	// non-interface field appearing in ForceSendFields will be sent to the
246	// server regardless of whether the field is empty or not. This may be
247	// used to include empty fields in Patch requests.
248	ForceSendFields []string `json:"-"`
249
250	// NullFields is a list of field names (e.g. "FileHash") to include in
251	// API requests with the JSON null value. By default, fields with empty
252	// values are omitted from API requests. However, any field with an
253	// empty value appearing in NullFields will be sent to the server as
254	// null. It is an error if a field in this list has a non-empty value.
255	// This may be used to include null fields in Patch requests.
256	NullFields []string `json:"-"`
257}
258
259func (s *ArtifactResult) MarshalJSON() ([]byte, error) {
260	type NoMethod ArtifactResult
261	raw := NoMethod(*s)
262	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
263}
264
265// Artifacts: Artifacts produced by a build that should be uploaded
266// upon
267// successful completion of all build steps.
268type Artifacts struct {
269	// Images: A list of images to be pushed upon the successful completion
270	// of all build
271	// steps.
272	//
273	// The images will be pushed using the builder service account's
274	// credentials.
275	//
276	// The digests of the pushed images will be stored in the Build
277	// resource's
278	// results field.
279	//
280	// If any of the images fail to be pushed, the build is marked FAILURE.
281	Images []string `json:"images,omitempty"`
282
283	// Objects: A list of objects to be uploaded to Cloud Storage upon
284	// successful
285	// completion of all build steps.
286	//
287	// Files in the workspace matching specified paths globs will be
288	// uploaded to
289	// the specified Cloud Storage location using the builder service
290	// account's
291	// credentials.
292	//
293	// The location and generation of the uploaded objects will be stored in
294	// the
295	// Build resource's results field.
296	//
297	// If any objects fail to be pushed, the build is marked FAILURE.
298	Objects *ArtifactObjects `json:"objects,omitempty"`
299
300	// ForceSendFields is a list of field names (e.g. "Images") to
301	// unconditionally include in API requests. By default, fields with
302	// empty values are omitted from API requests. However, any non-pointer,
303	// non-interface field appearing in ForceSendFields will be sent to the
304	// server regardless of whether the field is empty or not. This may be
305	// used to include empty fields in Patch requests.
306	ForceSendFields []string `json:"-"`
307
308	// NullFields is a list of field names (e.g. "Images") to include in API
309	// requests with the JSON null value. By default, fields with empty
310	// values are omitted from API requests. However, any field with an
311	// empty value appearing in NullFields will be sent to the server as
312	// null. It is an error if a field in this list has a non-empty value.
313	// This may be used to include null fields in Patch requests.
314	NullFields []string `json:"-"`
315}
316
317func (s *Artifacts) MarshalJSON() ([]byte, error) {
318	type NoMethod Artifacts
319	raw := NoMethod(*s)
320	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
321}
322
323// Build: A build resource in the Cloud Build API.
324//
325// At a high level, a `Build` describes where to find source code, how
326// to build
327// it (for example, the builder image to run on the source), and where
328// to store
329// the built artifacts.
330//
331// Fields can include the following variables, which will be expanded
332// when the
333// build is created:
334//
335// - $PROJECT_ID: the project ID of the build.
336// - $BUILD_ID: the autogenerated ID of the build.
337// - $REPO_NAME: the source repository name specified by RepoSource.
338// - $BRANCH_NAME: the branch name specified by RepoSource.
339// - $TAG_NAME: the tag name specified by RepoSource.
340// - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource
341// or
342//   resolved from the specified branch or tag.
343// - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
344type Build struct {
345	// Artifacts: Artifacts produced by the build that should be uploaded
346	// upon
347	// successful completion of all build steps.
348	Artifacts *Artifacts `json:"artifacts,omitempty"`
349
350	// BuildTriggerId: Output only. The ID of the `BuildTrigger` that
351	// triggered this build, if it
352	// was triggered automatically.
353	BuildTriggerId string `json:"buildTriggerId,omitempty"`
354
355	// CreateTime: Output only. Time at which the request to create the
356	// build was received.
357	CreateTime string `json:"createTime,omitempty"`
358
359	// FinishTime: Output only. Time at which execution of the build was
360	// finished.
361	//
362	// The difference between finish_time and start_time is the duration of
363	// the
364	// build's execution.
365	FinishTime string `json:"finishTime,omitempty"`
366
367	// Id: Output only. Unique identifier of the build.
368	Id string `json:"id,omitempty"`
369
370	// Images: A list of images to be pushed upon the successful completion
371	// of all build
372	// steps.
373	//
374	// The images are pushed using the builder service account's
375	// credentials.
376	//
377	// The digests of the pushed images will be stored in the `Build`
378	// resource's
379	// results field.
380	//
381	// If any of the images fail to be pushed, the build status is
382	// marked
383	// `FAILURE`.
384	Images []string `json:"images,omitempty"`
385
386	// LogUrl: Output only. URL to logs for this build in Google Cloud
387	// Console.
388	LogUrl string `json:"logUrl,omitempty"`
389
390	// LogsBucket: Google Cloud Storage bucket where logs should be written
391	// (see
392	// [Bucket
393	// Name
394	// Requirements](https://cloud.google.com/storage/docs/bucket-naming
395	// #requirements)).
396	// Logs file names will be of the format
397	// `${logs_bucket}/log-${build_id}.txt`.
398	LogsBucket string `json:"logsBucket,omitempty"`
399
400	// Options: Special options for this build.
401	Options *BuildOptions `json:"options,omitempty"`
402
403	// ProjectId: Output only. ID of the project.
404	ProjectId string `json:"projectId,omitempty"`
405
406	// QueueTtl: TTL in queue for this build. If provided and the build is
407	// enqueued longer
408	// than this value, the build will expire and the build status will
409	// be
410	// `EXPIRED`.
411	//
412	// The TTL starts ticking from create_time.
413	QueueTtl string `json:"queueTtl,omitempty"`
414
415	// Results: Output only. Results of the build.
416	Results *Results `json:"results,omitempty"`
417
418	// Secrets: Secrets to decrypt using Cloud Key Management Service.
419	Secrets []*Secret `json:"secrets,omitempty"`
420
421	// Source: The location of the source files to build.
422	Source *Source `json:"source,omitempty"`
423
424	// SourceProvenance: Output only. A permanent fixed identifier for
425	// source.
426	SourceProvenance *SourceProvenance `json:"sourceProvenance,omitempty"`
427
428	// StartTime: Output only. Time at which execution of the build was
429	// started.
430	StartTime string `json:"startTime,omitempty"`
431
432	// Status: Output only. Status of the build.
433	//
434	// Possible values:
435	//   "STATUS_UNKNOWN" - Status of the build is unknown.
436	//   "QUEUED" - Build or step is queued; work has not yet begun.
437	//   "WORKING" - Build or step is being executed.
438	//   "SUCCESS" - Build or step finished successfully.
439	//   "FAILURE" - Build or step failed to complete successfully.
440	//   "INTERNAL_ERROR" - Build or step failed due to an internal cause.
441	//   "TIMEOUT" - Build or step took longer than was allowed.
442	//   "CANCELLED" - Build or step was canceled by a user.
443	//   "EXPIRED" - Build was enqueued for longer than the value of
444	// `queue_ttl`.
445	Status string `json:"status,omitempty"`
446
447	// StatusDetail: Output only. Customer-readable message about the
448	// current status.
449	StatusDetail string `json:"statusDetail,omitempty"`
450
451	// Steps: Required. The operations to be performed on the workspace.
452	Steps []*BuildStep `json:"steps,omitempty"`
453
454	// Substitutions: Substitutions data for `Build` resource.
455	Substitutions map[string]string `json:"substitutions,omitempty"`
456
457	// Tags: Tags for annotation of a `Build`. These are not docker tags.
458	Tags []string `json:"tags,omitempty"`
459
460	// Timeout: Amount of time that this build should be allowed to run, to
461	// second
462	// granularity. If this amount of time elapses, work on the build will
463	// cease
464	// and the build status will be `TIMEOUT`.
465	//
466	// `timeout` starts ticking from `startTime`.
467	//
468	// Default time is ten minutes.
469	Timeout string `json:"timeout,omitempty"`
470
471	// Timing: Output only. Stores timing information for phases of the
472	// build. Valid keys
473	// are:
474	//
475	// * BUILD: time to execute all build steps
476	// * PUSH: time to push all specified images.
477	// * FETCHSOURCE: time to fetch source.
478	//
479	// If the build does not specify source or images,
480	// these keys will not be included.
481	Timing map[string]TimeSpan `json:"timing,omitempty"`
482
483	// ForceSendFields is a list of field names (e.g. "Artifacts") to
484	// unconditionally include in API requests. By default, fields with
485	// empty values are omitted from API requests. However, any non-pointer,
486	// non-interface field appearing in ForceSendFields will be sent to the
487	// server regardless of whether the field is empty or not. This may be
488	// used to include empty fields in Patch requests.
489	ForceSendFields []string `json:"-"`
490
491	// NullFields is a list of field names (e.g. "Artifacts") to include in
492	// API requests with the JSON null value. By default, fields with empty
493	// values are omitted from API requests. However, any field with an
494	// empty value appearing in NullFields will be sent to the server as
495	// null. It is an error if a field in this list has a non-empty value.
496	// This may be used to include null fields in Patch requests.
497	NullFields []string `json:"-"`
498}
499
500func (s *Build) MarshalJSON() ([]byte, error) {
501	type NoMethod Build
502	raw := NoMethod(*s)
503	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
504}
505
506// BuildOperationMetadata: Metadata for build operations.
507type BuildOperationMetadata struct {
508	// Build: The build that the operation is tracking.
509	Build *Build `json:"build,omitempty"`
510
511	// ForceSendFields is a list of field names (e.g. "Build") to
512	// unconditionally include in API requests. By default, fields with
513	// empty values are omitted from API requests. However, any non-pointer,
514	// non-interface field appearing in ForceSendFields will be sent to the
515	// server regardless of whether the field is empty or not. This may be
516	// used to include empty fields in Patch requests.
517	ForceSendFields []string `json:"-"`
518
519	// NullFields is a list of field names (e.g. "Build") to include in API
520	// requests with the JSON null value. By default, fields with empty
521	// values are omitted from API requests. However, any field with an
522	// empty value appearing in NullFields will be sent to the server as
523	// null. It is an error if a field in this list has a non-empty value.
524	// This may be used to include null fields in Patch requests.
525	NullFields []string `json:"-"`
526}
527
528func (s *BuildOperationMetadata) MarshalJSON() ([]byte, error) {
529	type NoMethod BuildOperationMetadata
530	raw := NoMethod(*s)
531	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
532}
533
534// BuildOptions: Optional arguments to enable specific features of
535// builds.
536type BuildOptions struct {
537	// DiskSizeGb: Requested disk size for the VM that runs the build. Note
538	// that this is *NOT*
539	// "disk free"; some of the space will be used by the operating system
540	// and
541	// build utilities. Also note that this is the minimum disk size that
542	// will be
543	// allocated for the build -- the build may run with a larger disk
544	// than
545	// requested. At present, the maximum disk size is 1000GB; builds that
546	// request
547	// more than the maximum are rejected with an error.
548	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
549
550	// DynamicSubstitutions: Option to specify whether or not to apply bash
551	// style string
552	// operations to the substitutions.
553	//
554	// NOTE: this is always enabled for triggered builds and cannot
555	// be
556	// overridden in the build configuration file.
557	DynamicSubstitutions bool `json:"dynamicSubstitutions,omitempty"`
558
559	// Env: A list of global environment variable definitions that will
560	// exist for all
561	// build steps in this build. If a variable is defined in both globally
562	// and in
563	// a build step, the variable will use the build step value.
564	//
565	// The elements are of the form "KEY=VALUE" for the environment variable
566	// "KEY"
567	// being given the value "VALUE".
568	Env []string `json:"env,omitempty"`
569
570	// LogStreamingOption: Option to define build log streaming behavior to
571	// Google Cloud
572	// Storage.
573	//
574	// Possible values:
575	//   "STREAM_DEFAULT" - Service may automatically determine build log
576	// streaming behavior.
577	//   "STREAM_ON" - Build logs should be streamed to Google Cloud
578	// Storage.
579	//   "STREAM_OFF" - Build logs should not be streamed to Google Cloud
580	// Storage; they will be
581	// written when the build is completed.
582	LogStreamingOption string `json:"logStreamingOption,omitempty"`
583
584	// Logging: Option to specify the logging mode, which determines if and
585	// where build
586	// logs are stored.
587	//
588	// Possible values:
589	//   "LOGGING_UNSPECIFIED" - The service determines the logging mode.
590	// The default is `LEGACY`. Do not
591	// rely on the default logging behavior as it may change in the future.
592	//   "LEGACY" - Cloud Logging (Stackdriver) and Cloud Storage logging
593	// are enabled.
594	//   "GCS_ONLY" - Only Cloud Storage logging is enabled.
595	//   "STACKDRIVER_ONLY" - Only Cloud Logging (Stackdriver) is enabled.
596	// Note that logs for both the
597	// Cloud Console UI and Cloud SDK are based on Cloud Storage logs,
598	// so
599	// neither will provide logs if this option is chosen.
600	//   "NONE" - Turn off all logging. No build logs will be captured.
601	Logging string `json:"logging,omitempty"`
602
603	// MachineType: Compute Engine machine type on which to run the build.
604	//
605	// Possible values:
606	//   "UNSPECIFIED" - Standard machine type.
607	//   "N1_HIGHCPU_8" - Highcpu machine with 8 CPUs.
608	//   "N1_HIGHCPU_32" - Highcpu machine with 32 CPUs.
609	MachineType string `json:"machineType,omitempty"`
610
611	// RequestedVerifyOption: Requested verifiability options.
612	//
613	// Possible values:
614	//   "NOT_VERIFIED" - Not a verifiable build. (default)
615	//   "VERIFIED" - Verified build.
616	RequestedVerifyOption string `json:"requestedVerifyOption,omitempty"`
617
618	// SecretEnv: A list of global environment variables, which are
619	// encrypted using a Cloud
620	// Key Management Service crypto key. These values must be specified in
621	// the
622	// build's `Secret`. These variables will be available to all build
623	// steps
624	// in this build.
625	SecretEnv []string `json:"secretEnv,omitempty"`
626
627	// SourceProvenanceHash: Requested hash for SourceProvenance.
628	//
629	// Possible values:
630	//   "NONE" - No hash requested.
631	//   "SHA256" - Use a sha256 hash.
632	//   "MD5" - Use a md5 hash.
633	SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"`
634
635	// SubstitutionOption: Option to specify behavior when there is an error
636	// in the substitution
637	// checks.
638	//
639	// NOTE: this is always set to ALLOW_LOOSE for triggered builds and
640	// cannot
641	// be overridden in the build configuration file.
642	//
643	// Possible values:
644	//   "MUST_MATCH" - Fails the build if error in substitutions checks,
645	// like missing
646	// a substitution in the template or in the map.
647	//   "ALLOW_LOOSE" - Do not fail the build if error in substitutions
648	// checks.
649	SubstitutionOption string `json:"substitutionOption,omitempty"`
650
651	// Volumes: Global list of volumes to mount for ALL build steps
652	//
653	// Each volume is created as an empty volume prior to starting the
654	// build
655	// process. Upon completion of the build, volumes and their contents
656	// are
657	// discarded. Global volume names and paths cannot conflict with the
658	// volumes
659	// defined a build step.
660	//
661	// Using a global volume in a build with only one step is not valid
662	// as
663	// it is indicative of a build request with an incorrect configuration.
664	Volumes []*Volume `json:"volumes,omitempty"`
665
666	// WorkerPool: Option to specify a `WorkerPool` for the build.
667	// Format: projects/{project}/workerPools/{workerPool}
668	//
669	// This field is experimental.
670	WorkerPool string `json:"workerPool,omitempty"`
671
672	// ForceSendFields is a list of field names (e.g. "DiskSizeGb") to
673	// unconditionally include in API requests. By default, fields with
674	// empty values are omitted from API requests. However, any non-pointer,
675	// non-interface field appearing in ForceSendFields will be sent to the
676	// server regardless of whether the field is empty or not. This may be
677	// used to include empty fields in Patch requests.
678	ForceSendFields []string `json:"-"`
679
680	// NullFields is a list of field names (e.g. "DiskSizeGb") to include in
681	// API requests with the JSON null value. By default, fields with empty
682	// values are omitted from API requests. However, any field with an
683	// empty value appearing in NullFields will be sent to the server as
684	// null. It is an error if a field in this list has a non-empty value.
685	// This may be used to include null fields in Patch requests.
686	NullFields []string `json:"-"`
687}
688
689func (s *BuildOptions) MarshalJSON() ([]byte, error) {
690	type NoMethod BuildOptions
691	raw := NoMethod(*s)
692	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
693}
694
695// BuildStep: A step in the build pipeline.
696type BuildStep struct {
697	// Args: A list of arguments that will be presented to the step when it
698	// is started.
699	//
700	// If the image used to run the step's container has an entrypoint, the
701	// `args`
702	// are used as arguments to that entrypoint. If the image does not
703	// define
704	// an entrypoint, the first element in args is used as the
705	// entrypoint,
706	// and the remainder will be used as arguments.
707	Args []string `json:"args,omitempty"`
708
709	// Dir: Working directory to use when running this step's container.
710	//
711	// If this value is a relative path, it is relative to the build's
712	// working
713	// directory. If this value is absolute, it may be outside the build's
714	// working
715	// directory, in which case the contents of the path may not be
716	// persisted
717	// across build step executions, unless a `volume` for that path is
718	// specified.
719	//
720	// If the build specifies a `RepoSource` with `dir` and a step with a
721	// `dir`,
722	// which specifies an absolute path, the `RepoSource` `dir` is ignored
723	// for
724	// the step's execution.
725	Dir string `json:"dir,omitempty"`
726
727	// Entrypoint: Entrypoint to be used instead of the build step image's
728	// default entrypoint.
729	// If unset, the image's default entrypoint is used.
730	Entrypoint string `json:"entrypoint,omitempty"`
731
732	// Env: A list of environment variable definitions to be used when
733	// running a step.
734	//
735	// The elements are of the form "KEY=VALUE" for the environment variable
736	// "KEY"
737	// being given the value "VALUE".
738	Env []string `json:"env,omitempty"`
739
740	// Id: Unique identifier for this build step, used in `wait_for`
741	// to
742	// reference this build step as a dependency.
743	Id string `json:"id,omitempty"`
744
745	// Name: Required. The name of the container image that will run this
746	// particular
747	// build step.
748	//
749	// If the image is available in the host's Docker daemon's cache,
750	// it
751	// will be run directly. If not, the host will attempt to pull the
752	// image
753	// first, using the builder service account's credentials if
754	// necessary.
755	//
756	// The Docker daemon's cache will already have the latest versions of
757	// all of
758	// the officially supported build
759	// steps
760	// ([https://github.com/GoogleCloudPlatform/cloud-builders](https:/
761	// /github.com/GoogleCloudPlatform/cloud-builders)).
762	// The Docker daemon will also have cached many of the layers for some
763	// popular
764	// images, like "ubuntu", "debian", but they will be refreshed at the
765	// time you
766	// attempt to use them.
767	//
768	// If you built an image in a previous build step, it will be stored in
769	// the
770	// host's Docker daemon's cache and is available to use as the name for
771	// a
772	// later build step.
773	Name string `json:"name,omitempty"`
774
775	// PullTiming: Output only. Stores timing information for pulling this
776	// build step's
777	// builder image only.
778	PullTiming *TimeSpan `json:"pullTiming,omitempty"`
779
780	// SecretEnv: A list of environment variables which are encrypted using
781	// a Cloud Key
782	// Management Service crypto key. These values must be specified in
783	// the
784	// build's `Secret`.
785	SecretEnv []string `json:"secretEnv,omitempty"`
786
787	// Status: Output only. Status of the build step. At this time, build
788	// step status is
789	// only updated on build completion; step status is not updated in
790	// real-time
791	// as the build progresses.
792	//
793	// Possible values:
794	//   "STATUS_UNKNOWN" - Status of the build is unknown.
795	//   "QUEUED" - Build or step is queued; work has not yet begun.
796	//   "WORKING" - Build or step is being executed.
797	//   "SUCCESS" - Build or step finished successfully.
798	//   "FAILURE" - Build or step failed to complete successfully.
799	//   "INTERNAL_ERROR" - Build or step failed due to an internal cause.
800	//   "TIMEOUT" - Build or step took longer than was allowed.
801	//   "CANCELLED" - Build or step was canceled by a user.
802	//   "EXPIRED" - Build was enqueued for longer than the value of
803	// `queue_ttl`.
804	Status string `json:"status,omitempty"`
805
806	// Timeout: Time limit for executing this build step. If not defined,
807	// the step has no
808	// time limit and will be allowed to continue to run until either it
809	// completes
810	// or the build itself times out.
811	Timeout string `json:"timeout,omitempty"`
812
813	// Timing: Output only. Stores timing information for executing this
814	// build step.
815	Timing *TimeSpan `json:"timing,omitempty"`
816
817	// Volumes: List of volumes to mount into the build step.
818	//
819	// Each volume is created as an empty volume prior to execution of
820	// the
821	// build step. Upon completion of the build, volumes and their contents
822	// are
823	// discarded.
824	//
825	// Using a named volume in only one step is not valid as it is
826	// indicative
827	// of a build request with an incorrect configuration.
828	Volumes []*Volume `json:"volumes,omitempty"`
829
830	// WaitFor: The ID(s) of the step(s) that this build step depends
831	// on.
832	// This build step will not start until all the build steps in
833	// `wait_for`
834	// have completed successfully. If `wait_for` is empty, this build step
835	// will
836	// start when all previous build steps in the `Build.Steps` list
837	// have
838	// completed successfully.
839	WaitFor []string `json:"waitFor,omitempty"`
840
841	// ForceSendFields is a list of field names (e.g. "Args") to
842	// unconditionally include in API requests. By default, fields with
843	// empty values are omitted from API requests. However, any non-pointer,
844	// non-interface field appearing in ForceSendFields will be sent to the
845	// server regardless of whether the field is empty or not. This may be
846	// used to include empty fields in Patch requests.
847	ForceSendFields []string `json:"-"`
848
849	// NullFields is a list of field names (e.g. "Args") to include in API
850	// requests with the JSON null value. By default, fields with empty
851	// values are omitted from API requests. However, any field with an
852	// empty value appearing in NullFields will be sent to the server as
853	// null. It is an error if a field in this list has a non-empty value.
854	// This may be used to include null fields in Patch requests.
855	NullFields []string `json:"-"`
856}
857
858func (s *BuildStep) MarshalJSON() ([]byte, error) {
859	type NoMethod BuildStep
860	raw := NoMethod(*s)
861	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
862}
863
864// BuiltImage: An image built by the pipeline.
865type BuiltImage struct {
866	// Digest: Docker Registry 2.0 digest.
867	Digest string `json:"digest,omitempty"`
868
869	// Name: Name used to push the container image to Google Container
870	// Registry, as
871	// presented to `docker push`.
872	Name string `json:"name,omitempty"`
873
874	// PushTiming: Output only. Stores timing information for pushing the
875	// specified image.
876	PushTiming *TimeSpan `json:"pushTiming,omitempty"`
877
878	// ForceSendFields is a list of field names (e.g. "Digest") to
879	// unconditionally include in API requests. By default, fields with
880	// empty values are omitted from API requests. However, any non-pointer,
881	// non-interface field appearing in ForceSendFields will be sent to the
882	// server regardless of whether the field is empty or not. This may be
883	// used to include empty fields in Patch requests.
884	ForceSendFields []string `json:"-"`
885
886	// NullFields is a list of field names (e.g. "Digest") to include in API
887	// requests with the JSON null value. By default, fields with empty
888	// values are omitted from API requests. However, any field with an
889	// empty value appearing in NullFields will be sent to the server as
890	// null. It is an error if a field in this list has a non-empty value.
891	// This may be used to include null fields in Patch requests.
892	NullFields []string `json:"-"`
893}
894
895func (s *BuiltImage) MarshalJSON() ([]byte, error) {
896	type NoMethod BuiltImage
897	raw := NoMethod(*s)
898	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
899}
900
901// CancelOperationRequest: The request message for
902// Operations.CancelOperation.
903type CancelOperationRequest struct {
904}
905
906// Empty: A generic empty message that you can re-use to avoid defining
907// duplicated
908// empty messages in your APIs. A typical example is to use it as the
909// request
910// or the response type of an API method. For instance:
911//
912//     service Foo {
913//       rpc Bar(google.protobuf.Empty) returns
914// (google.protobuf.Empty);
915//     }
916//
917// The JSON representation for `Empty` is empty JSON object `{}`.
918type Empty struct {
919	// ServerResponse contains the HTTP response code and headers from the
920	// server.
921	googleapi.ServerResponse `json:"-"`
922}
923
924// FileHashes: Container message for hashes of byte content of files,
925// used in
926// SourceProvenance messages to verify integrity of source input to the
927// build.
928type FileHashes struct {
929	// FileHash: Collection of file hashes.
930	FileHash []*Hash `json:"fileHash,omitempty"`
931
932	// ForceSendFields is a list of field names (e.g. "FileHash") to
933	// unconditionally include in API requests. By default, fields with
934	// empty values are omitted from API requests. However, any non-pointer,
935	// non-interface field appearing in ForceSendFields will be sent to the
936	// server regardless of whether the field is empty or not. This may be
937	// used to include empty fields in Patch requests.
938	ForceSendFields []string `json:"-"`
939
940	// NullFields is a list of field names (e.g. "FileHash") to include in
941	// API requests with the JSON null value. By default, fields with empty
942	// values are omitted from API requests. However, any field with an
943	// empty value appearing in NullFields will be sent to the server as
944	// null. It is an error if a field in this list has a non-empty value.
945	// This may be used to include null fields in Patch requests.
946	NullFields []string `json:"-"`
947}
948
949func (s *FileHashes) MarshalJSON() ([]byte, error) {
950	type NoMethod FileHashes
951	raw := NoMethod(*s)
952	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
953}
954
955// HTTPDelivery: HTTPDelivery is the delivery configuration for an HTTP
956// notification.
957type HTTPDelivery struct {
958	// Uri: The URI to which JSON-containing HTTP POST requests should be
959	// sent.
960	Uri string `json:"uri,omitempty"`
961
962	// ForceSendFields is a list of field names (e.g. "Uri") to
963	// unconditionally include in API requests. By default, fields with
964	// empty values are omitted from API requests. However, any non-pointer,
965	// non-interface field appearing in ForceSendFields will be sent to the
966	// server regardless of whether the field is empty or not. This may be
967	// used to include empty fields in Patch requests.
968	ForceSendFields []string `json:"-"`
969
970	// NullFields is a list of field names (e.g. "Uri") to include in API
971	// requests with the JSON null value. By default, fields with empty
972	// values are omitted from API requests. However, any field with an
973	// empty value appearing in NullFields will be sent to the server as
974	// null. It is an error if a field in this list has a non-empty value.
975	// This may be used to include null fields in Patch requests.
976	NullFields []string `json:"-"`
977}
978
979func (s *HTTPDelivery) MarshalJSON() ([]byte, error) {
980	type NoMethod HTTPDelivery
981	raw := NoMethod(*s)
982	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
983}
984
985// Hash: Container message for hash values.
986type Hash struct {
987	// Type: The type of hash that was performed.
988	//
989	// Possible values:
990	//   "NONE" - No hash requested.
991	//   "SHA256" - Use a sha256 hash.
992	//   "MD5" - Use a md5 hash.
993	Type string `json:"type,omitempty"`
994
995	// Value: The hash value.
996	Value string `json:"value,omitempty"`
997
998	// ForceSendFields is a list of field names (e.g. "Type") to
999	// unconditionally include in API requests. By default, fields with
1000	// empty values are omitted from API requests. However, any non-pointer,
1001	// non-interface field appearing in ForceSendFields will be sent to the
1002	// server regardless of whether the field is empty or not. This may be
1003	// used to include empty fields in Patch requests.
1004	ForceSendFields []string `json:"-"`
1005
1006	// NullFields is a list of field names (e.g. "Type") to include in API
1007	// requests with the JSON null value. By default, fields with empty
1008	// values are omitted from API requests. However, any field with an
1009	// empty value appearing in NullFields will be sent to the server as
1010	// null. It is an error if a field in this list has a non-empty value.
1011	// This may be used to include null fields in Patch requests.
1012	NullFields []string `json:"-"`
1013}
1014
1015func (s *Hash) MarshalJSON() ([]byte, error) {
1016	type NoMethod Hash
1017	raw := NoMethod(*s)
1018	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1019}
1020
1021// ListWorkerPoolsResponse: Response containing existing `WorkerPools`.
1022type ListWorkerPoolsResponse struct {
1023	// WorkerPools: `WorkerPools` for the specified project.
1024	WorkerPools []*WorkerPool `json:"workerPools,omitempty"`
1025
1026	// ServerResponse contains the HTTP response code and headers from the
1027	// server.
1028	googleapi.ServerResponse `json:"-"`
1029
1030	// ForceSendFields is a list of field names (e.g. "WorkerPools") to
1031	// unconditionally include in API requests. By default, fields with
1032	// empty values are omitted from API requests. However, any non-pointer,
1033	// non-interface field appearing in ForceSendFields will be sent to the
1034	// server regardless of whether the field is empty or not. This may be
1035	// used to include empty fields in Patch requests.
1036	ForceSendFields []string `json:"-"`
1037
1038	// NullFields is a list of field names (e.g. "WorkerPools") to include
1039	// in API requests with the JSON null value. By default, fields with
1040	// empty values are omitted from API requests. However, any field with
1041	// an empty value appearing in NullFields will be sent to the server as
1042	// null. It is an error if a field in this list has a non-empty value.
1043	// This may be used to include null fields in Patch requests.
1044	NullFields []string `json:"-"`
1045}
1046
1047func (s *ListWorkerPoolsResponse) MarshalJSON() ([]byte, error) {
1048	type NoMethod ListWorkerPoolsResponse
1049	raw := NoMethod(*s)
1050	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1051}
1052
1053// NetworkConfig: Network describes the network configuration for a
1054// `WorkerPool`.
1055type NetworkConfig struct {
1056	// PeeredNetwork: Required. Immutable. The network definition that the
1057	// workers are peered to.
1058	// If this section is left empty, the workers will be peered
1059	// to
1060	// WorkerPool.project_id on the default network. Must be in the
1061	// format
1062	// `projects/{project}/global/networks/{network}`, where {project}
1063	// is a project number, such as `12345`, and {network} is the name of
1064	// a
1065	// VPC network in the project.
1066	PeeredNetwork string `json:"peeredNetwork,omitempty"`
1067
1068	// ForceSendFields is a list of field names (e.g. "PeeredNetwork") to
1069	// unconditionally include in API requests. By default, fields with
1070	// empty values are omitted from API requests. However, any non-pointer,
1071	// non-interface field appearing in ForceSendFields will be sent to the
1072	// server regardless of whether the field is empty or not. This may be
1073	// used to include empty fields in Patch requests.
1074	ForceSendFields []string `json:"-"`
1075
1076	// NullFields is a list of field names (e.g. "PeeredNetwork") to include
1077	// in API requests with the JSON null value. By default, fields with
1078	// empty values are omitted from API requests. However, any field with
1079	// an empty value appearing in NullFields will be sent to the server as
1080	// null. It is an error if a field in this list has a non-empty value.
1081	// This may be used to include null fields in Patch requests.
1082	NullFields []string `json:"-"`
1083}
1084
1085func (s *NetworkConfig) MarshalJSON() ([]byte, error) {
1086	type NoMethod NetworkConfig
1087	raw := NoMethod(*s)
1088	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1089}
1090
1091// Notification: Notification is the container which holds the data that
1092// is relevant to this
1093// particular notification.
1094type Notification struct {
1095	// Filter: The filter string to use for notification
1096	// filtering.
1097	// Currently, this is assumed to be a CEL program.
1098	// See https://opensource.google/projects/cel for more.
1099	Filter string `json:"filter,omitempty"`
1100
1101	// HttpDelivery: Configuration for HTTP delivery.
1102	HttpDelivery *HTTPDelivery `json:"httpDelivery,omitempty"`
1103
1104	// SlackDelivery: Configuration for Slack delivery.
1105	SlackDelivery *SlackDelivery `json:"slackDelivery,omitempty"`
1106
1107	// SmtpDelivery: Configuration for SMTP (email) delivery.
1108	SmtpDelivery *SMTPDelivery `json:"smtpDelivery,omitempty"`
1109
1110	// StructDelivery: Escape hatch for users to supply custom delivery
1111	// configs.
1112	StructDelivery googleapi.RawMessage `json:"structDelivery,omitempty"`
1113
1114	// ForceSendFields is a list of field names (e.g. "Filter") to
1115	// unconditionally include in API requests. By default, fields with
1116	// empty values are omitted from API requests. However, any non-pointer,
1117	// non-interface field appearing in ForceSendFields will be sent to the
1118	// server regardless of whether the field is empty or not. This may be
1119	// used to include empty fields in Patch requests.
1120	ForceSendFields []string `json:"-"`
1121
1122	// NullFields is a list of field names (e.g. "Filter") to include in API
1123	// requests with the JSON null value. By default, fields with empty
1124	// values are omitted from API requests. However, any field with an
1125	// empty value appearing in NullFields will be sent to the server as
1126	// null. It is an error if a field in this list has a non-empty value.
1127	// This may be used to include null fields in Patch requests.
1128	NullFields []string `json:"-"`
1129}
1130
1131func (s *Notification) MarshalJSON() ([]byte, error) {
1132	type NoMethod Notification
1133	raw := NoMethod(*s)
1134	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1135}
1136
1137// NotifierConfig: NotifierConfig is the top-level configuration
1138// message.
1139type NotifierConfig struct {
1140	// ApiVersion: The API version of this configuration format.
1141	ApiVersion string `json:"apiVersion,omitempty"`
1142
1143	// Kind: The type of notifier to use (e.g. SMTPNotifier).
1144	Kind string `json:"kind,omitempty"`
1145
1146	// Metadata: Metadata for referring to/handling/deploying this notifier.
1147	Metadata *NotifierMetadata `json:"metadata,omitempty"`
1148
1149	// Spec: The actual configuration for this notifier.
1150	Spec *NotifierSpec `json:"spec,omitempty"`
1151
1152	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
1153	// unconditionally include in API requests. By default, fields with
1154	// empty values are omitted from API requests. However, any non-pointer,
1155	// non-interface field appearing in ForceSendFields will be sent to the
1156	// server regardless of whether the field is empty or not. This may be
1157	// used to include empty fields in Patch requests.
1158	ForceSendFields []string `json:"-"`
1159
1160	// NullFields is a list of field names (e.g. "ApiVersion") to include in
1161	// API requests with the JSON null value. By default, fields with empty
1162	// values are omitted from API requests. However, any field with an
1163	// empty value appearing in NullFields will be sent to the server as
1164	// null. It is an error if a field in this list has a non-empty value.
1165	// This may be used to include null fields in Patch requests.
1166	NullFields []string `json:"-"`
1167}
1168
1169func (s *NotifierConfig) MarshalJSON() ([]byte, error) {
1170	type NoMethod NotifierConfig
1171	raw := NoMethod(*s)
1172	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1173}
1174
1175// NotifierMetadata: NotifierMetadata contains the data which can be
1176// used to reference or describe
1177// this notifier.
1178type NotifierMetadata struct {
1179	// Name: The human-readable and user-given name for the notifier.
1180	// For example: "repo-merge-email-notifier".
1181	Name string `json:"name,omitempty"`
1182
1183	// Notifier: The string representing the name and version of notifier to
1184	// deploy.
1185	// Expected to be of the form of "<registry-path>/<name>:<version>".
1186	// For example: "gcr.io/my-project/notifiers/smtp:1.2.34".
1187	Notifier string `json:"notifier,omitempty"`
1188
1189	// ForceSendFields is a list of field names (e.g. "Name") to
1190	// unconditionally include in API requests. By default, fields with
1191	// empty values are omitted from API requests. However, any non-pointer,
1192	// non-interface field appearing in ForceSendFields will be sent to the
1193	// server regardless of whether the field is empty or not. This may be
1194	// used to include empty fields in Patch requests.
1195	ForceSendFields []string `json:"-"`
1196
1197	// NullFields is a list of field names (e.g. "Name") to include in API
1198	// requests with the JSON null value. By default, fields with empty
1199	// values are omitted from API requests. However, any field with an
1200	// empty value appearing in NullFields will be sent to the server as
1201	// null. It is an error if a field in this list has a non-empty value.
1202	// This may be used to include null fields in Patch requests.
1203	NullFields []string `json:"-"`
1204}
1205
1206func (s *NotifierMetadata) MarshalJSON() ([]byte, error) {
1207	type NoMethod NotifierMetadata
1208	raw := NoMethod(*s)
1209	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1210}
1211
1212// NotifierSecret: NotifierSecret is the container that maps a secret
1213// name (reference) to its
1214// Google Cloud Secret Manager resource path.
1215type NotifierSecret struct {
1216	// Name: Name is the local name of the secret, such as the verbatim
1217	// string
1218	// "my-smtp-password".
1219	Name string `json:"name,omitempty"`
1220
1221	// Value: Value is interpreted to be a resource path for fetching the
1222	// actual
1223	// (versioned) secret data for this secret. For example, this would be
1224	// a
1225	// Google Cloud Secret Manager secret version resource path
1226	// like:
1227	// "projects/my-project/secrets/my-secret/versions/latest".
1228	Value string `json:"value,omitempty"`
1229
1230	// ForceSendFields is a list of field names (e.g. "Name") to
1231	// unconditionally include in API requests. By default, fields with
1232	// empty values are omitted from API requests. However, any non-pointer,
1233	// non-interface field appearing in ForceSendFields will be sent to the
1234	// server regardless of whether the field is empty or not. This may be
1235	// used to include empty fields in Patch requests.
1236	ForceSendFields []string `json:"-"`
1237
1238	// NullFields is a list of field names (e.g. "Name") to include in API
1239	// requests with the JSON null value. By default, fields with empty
1240	// values are omitted from API requests. However, any field with an
1241	// empty value appearing in NullFields will be sent to the server as
1242	// null. It is an error if a field in this list has a non-empty value.
1243	// This may be used to include null fields in Patch requests.
1244	NullFields []string `json:"-"`
1245}
1246
1247func (s *NotifierSecret) MarshalJSON() ([]byte, error) {
1248	type NoMethod NotifierSecret
1249	raw := NoMethod(*s)
1250	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1251}
1252
1253// NotifierSecretRef: NotifierSecretRef contains the reference to a
1254// secret stored in the
1255// corresponding NotifierSpec.
1256type NotifierSecretRef struct {
1257	// SecretRef: The value of `secret_ref` should be a `name` that is
1258	// registered in a
1259	// `Secret` in the `secrets` list of the `Spec`.
1260	SecretRef string `json:"secretRef,omitempty"`
1261
1262	// ForceSendFields is a list of field names (e.g. "SecretRef") to
1263	// unconditionally include in API requests. By default, fields with
1264	// empty values are omitted from API requests. However, any non-pointer,
1265	// non-interface field appearing in ForceSendFields will be sent to the
1266	// server regardless of whether the field is empty or not. This may be
1267	// used to include empty fields in Patch requests.
1268	ForceSendFields []string `json:"-"`
1269
1270	// NullFields is a list of field names (e.g. "SecretRef") to include in
1271	// API requests with the JSON null value. By default, fields with empty
1272	// values are omitted from API requests. However, any field with an
1273	// empty value appearing in NullFields will be sent to the server as
1274	// null. It is an error if a field in this list has a non-empty value.
1275	// This may be used to include null fields in Patch requests.
1276	NullFields []string `json:"-"`
1277}
1278
1279func (s *NotifierSecretRef) MarshalJSON() ([]byte, error) {
1280	type NoMethod NotifierSecretRef
1281	raw := NoMethod(*s)
1282	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1283}
1284
1285// NotifierSpec: NotifierSpec is the configuration container for
1286// notifications.
1287type NotifierSpec struct {
1288	// Notification: The configuration of this particular notifier.
1289	Notification *Notification `json:"notification,omitempty"`
1290
1291	// Secrets: Configurations for secret resources used by this particular
1292	// notifier.
1293	Secrets []*NotifierSecret `json:"secrets,omitempty"`
1294
1295	// ForceSendFields is a list of field names (e.g. "Notification") to
1296	// unconditionally include in API requests. By default, fields with
1297	// empty values are omitted from API requests. However, any non-pointer,
1298	// non-interface field appearing in ForceSendFields will be sent to the
1299	// server regardless of whether the field is empty or not. This may be
1300	// used to include empty fields in Patch requests.
1301	ForceSendFields []string `json:"-"`
1302
1303	// NullFields is a list of field names (e.g. "Notification") to include
1304	// in API requests with the JSON null value. By default, fields with
1305	// empty values are omitted from API requests. However, any field with
1306	// an empty value appearing in NullFields will be sent to the server as
1307	// null. It is an error if a field in this list has a non-empty value.
1308	// This may be used to include null fields in Patch requests.
1309	NullFields []string `json:"-"`
1310}
1311
1312func (s *NotifierSpec) MarshalJSON() ([]byte, error) {
1313	type NoMethod NotifierSpec
1314	raw := NoMethod(*s)
1315	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1316}
1317
1318// Operation: This resource represents a long-running operation that is
1319// the result of a
1320// network API call.
1321type Operation struct {
1322	// Done: If the value is `false`, it means the operation is still in
1323	// progress.
1324	// If `true`, the operation is completed, and either `error` or
1325	// `response` is
1326	// available.
1327	Done bool `json:"done,omitempty"`
1328
1329	// Error: The error result of the operation in case of failure or
1330	// cancellation.
1331	Error *Status `json:"error,omitempty"`
1332
1333	// Metadata: Service-specific metadata associated with the operation.
1334	// It typically
1335	// contains progress information and common metadata such as create
1336	// time.
1337	// Some services might not provide such metadata.  Any method that
1338	// returns a
1339	// long-running operation should document the metadata type, if any.
1340	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
1341
1342	// Name: The server-assigned name, which is only unique within the same
1343	// service that
1344	// originally returns it. If you use the default HTTP mapping,
1345	// the
1346	// `name` should be a resource name ending with
1347	// `operations/{unique_id}`.
1348	Name string `json:"name,omitempty"`
1349
1350	// Response: The normal response of the operation in case of success.
1351	// If the original
1352	// method returns no data on success, such as `Delete`, the response
1353	// is
1354	// `google.protobuf.Empty`.  If the original method is
1355	// standard
1356	// `Get`/`Create`/`Update`, the response should be the resource.  For
1357	// other
1358	// methods, the response should have the type `XxxResponse`, where
1359	// `Xxx`
1360	// is the original method name.  For example, if the original method
1361	// name
1362	// is `TakeSnapshot()`, the inferred response type
1363	// is
1364	// `TakeSnapshotResponse`.
1365	Response googleapi.RawMessage `json:"response,omitempty"`
1366
1367	// ServerResponse contains the HTTP response code and headers from the
1368	// server.
1369	googleapi.ServerResponse `json:"-"`
1370
1371	// ForceSendFields is a list of field names (e.g. "Done") to
1372	// unconditionally include in API requests. By default, fields with
1373	// empty values are omitted from API requests. However, any non-pointer,
1374	// non-interface field appearing in ForceSendFields will be sent to the
1375	// server regardless of whether the field is empty or not. This may be
1376	// used to include empty fields in Patch requests.
1377	ForceSendFields []string `json:"-"`
1378
1379	// NullFields is a list of field names (e.g. "Done") to include in API
1380	// requests with the JSON null value. By default, fields with empty
1381	// values are omitted from API requests. However, any field with an
1382	// empty value appearing in NullFields will be sent to the server as
1383	// null. It is an error if a field in this list has a non-empty value.
1384	// This may be used to include null fields in Patch requests.
1385	NullFields []string `json:"-"`
1386}
1387
1388func (s *Operation) MarshalJSON() ([]byte, error) {
1389	type NoMethod Operation
1390	raw := NoMethod(*s)
1391	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1392}
1393
1394// RepoSource: Location of the source in a Google Cloud Source
1395// Repository.
1396type RepoSource struct {
1397	// BranchName: Regex matching branches to build.
1398	//
1399	// The syntax of the regular expressions accepted is the syntax accepted
1400	// by
1401	// RE2 and described at https://github.com/google/re2/wiki/Syntax
1402	BranchName string `json:"branchName,omitempty"`
1403
1404	// CommitSha: Explicit commit SHA to build.
1405	CommitSha string `json:"commitSha,omitempty"`
1406
1407	// Dir: Directory, relative to the source root, in which to run the
1408	// build.
1409	//
1410	// This must be a relative path. If a step's `dir` is specified and is
1411	// an
1412	// absolute path, this value is ignored for that step's execution.
1413	Dir string `json:"dir,omitempty"`
1414
1415	// InvertRegex: Only trigger a build if the revision regex does NOT
1416	// match the revision
1417	// regex.
1418	InvertRegex bool `json:"invertRegex,omitempty"`
1419
1420	// ProjectId: ID of the project that owns the Cloud Source Repository.
1421	// If omitted, the
1422	// project ID requesting the build is assumed.
1423	ProjectId string `json:"projectId,omitempty"`
1424
1425	// RepoName: Required. Name of the Cloud Source Repository.
1426	RepoName string `json:"repoName,omitempty"`
1427
1428	// Substitutions: Substitutions to use in a triggered build.
1429	// Should only be used with RunBuildTrigger
1430	Substitutions map[string]string `json:"substitutions,omitempty"`
1431
1432	// TagName: Regex matching tags to build.
1433	//
1434	// The syntax of the regular expressions accepted is the syntax accepted
1435	// by
1436	// RE2 and described at https://github.com/google/re2/wiki/Syntax
1437	TagName string `json:"tagName,omitempty"`
1438
1439	// ForceSendFields is a list of field names (e.g. "BranchName") to
1440	// unconditionally include in API requests. By default, fields with
1441	// empty values are omitted from API requests. However, any non-pointer,
1442	// non-interface field appearing in ForceSendFields will be sent to the
1443	// server regardless of whether the field is empty or not. This may be
1444	// used to include empty fields in Patch requests.
1445	ForceSendFields []string `json:"-"`
1446
1447	// NullFields is a list of field names (e.g. "BranchName") to include in
1448	// API requests with the JSON null value. By default, fields with empty
1449	// values are omitted from API requests. However, any field with an
1450	// empty value appearing in NullFields will be sent to the server as
1451	// null. It is an error if a field in this list has a non-empty value.
1452	// This may be used to include null fields in Patch requests.
1453	NullFields []string `json:"-"`
1454}
1455
1456func (s *RepoSource) MarshalJSON() ([]byte, error) {
1457	type NoMethod RepoSource
1458	raw := NoMethod(*s)
1459	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1460}
1461
1462// Results: Artifacts created by the build pipeline.
1463type Results struct {
1464	// ArtifactManifest: Path to the artifact manifest. Only populated when
1465	// artifacts are uploaded.
1466	ArtifactManifest string `json:"artifactManifest,omitempty"`
1467
1468	// ArtifactTiming: Time to push all non-container artifacts.
1469	ArtifactTiming *TimeSpan `json:"artifactTiming,omitempty"`
1470
1471	// BuildStepImages: List of build step digests, in the order
1472	// corresponding to build step
1473	// indices.
1474	BuildStepImages []string `json:"buildStepImages,omitempty"`
1475
1476	// BuildStepOutputs: List of build step outputs, produced by builder
1477	// images, in the order
1478	// corresponding to build step indices.
1479	//
1480	// [Cloud
1481	// Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
1482	// ca
1483	// n produce this output by writing to `$BUILDER_OUTPUT/output`.
1484	// Only the first 4KB of data is stored.
1485	BuildStepOutputs []string `json:"buildStepOutputs,omitempty"`
1486
1487	// Images: Container images that were built as a part of the build.
1488	Images []*BuiltImage `json:"images,omitempty"`
1489
1490	// NumArtifacts: Number of artifacts uploaded. Only populated when
1491	// artifacts are uploaded.
1492	NumArtifacts int64 `json:"numArtifacts,omitempty,string"`
1493
1494	// ForceSendFields is a list of field names (e.g. "ArtifactManifest") to
1495	// unconditionally include in API requests. By default, fields with
1496	// empty values are omitted from API requests. However, any non-pointer,
1497	// non-interface field appearing in ForceSendFields will be sent to the
1498	// server regardless of whether the field is empty or not. This may be
1499	// used to include empty fields in Patch requests.
1500	ForceSendFields []string `json:"-"`
1501
1502	// NullFields is a list of field names (e.g. "ArtifactManifest") to
1503	// include in API requests with the JSON null value. By default, fields
1504	// with empty values are omitted from API requests. However, any field
1505	// with an empty value appearing in NullFields will be sent to the
1506	// server as null. It is an error if a field in this list has a
1507	// non-empty value. This may be used to include null fields in Patch
1508	// requests.
1509	NullFields []string `json:"-"`
1510}
1511
1512func (s *Results) MarshalJSON() ([]byte, error) {
1513	type NoMethod Results
1514	raw := NoMethod(*s)
1515	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1516}
1517
1518// SMTPDelivery: SMTPDelivery is the delivery configuration for an SMTP
1519// (email) notification.
1520type SMTPDelivery struct {
1521	// FromAddress: This is the SMTP account/email that appears in the
1522	// `From:` of the email.
1523	// If empty, it is assumed to be sender.
1524	FromAddress string `json:"fromAddress,omitempty"`
1525
1526	// Password: The SMTP sender's password.
1527	Password *NotifierSecretRef `json:"password,omitempty"`
1528
1529	// Port: The SMTP port of the server.
1530	Port string `json:"port,omitempty"`
1531
1532	// RecipientAddresses: This is the list of addresses to which we send
1533	// the email (i.e. in the `To:`
1534	// of the email).
1535	RecipientAddresses []string `json:"recipientAddresses,omitempty"`
1536
1537	// SenderAddress: This is the SMTP account/email that is used to send
1538	// the message.
1539	SenderAddress string `json:"senderAddress,omitempty"`
1540
1541	// Server: The address of the SMTP server.
1542	Server string `json:"server,omitempty"`
1543
1544	// ForceSendFields is a list of field names (e.g. "FromAddress") to
1545	// unconditionally include in API requests. By default, fields with
1546	// empty values are omitted from API requests. However, any non-pointer,
1547	// non-interface field appearing in ForceSendFields will be sent to the
1548	// server regardless of whether the field is empty or not. This may be
1549	// used to include empty fields in Patch requests.
1550	ForceSendFields []string `json:"-"`
1551
1552	// NullFields is a list of field names (e.g. "FromAddress") to include
1553	// in API requests with the JSON null value. By default, fields with
1554	// empty values are omitted from API requests. However, any field with
1555	// an empty value appearing in NullFields will be sent to the server as
1556	// null. It is an error if a field in this list has a non-empty value.
1557	// This may be used to include null fields in Patch requests.
1558	NullFields []string `json:"-"`
1559}
1560
1561func (s *SMTPDelivery) MarshalJSON() ([]byte, error) {
1562	type NoMethod SMTPDelivery
1563	raw := NoMethod(*s)
1564	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1565}
1566
1567// Secret: Pairs a set of secret environment variables containing
1568// encrypted
1569// values with the Cloud KMS key to use to decrypt the value.
1570type Secret struct {
1571	// KmsKeyName: Cloud KMS key name to use to decrypt these envs.
1572	KmsKeyName string `json:"kmsKeyName,omitempty"`
1573
1574	// SecretEnv: Map of environment variable name to its encrypted
1575	// value.
1576	//
1577	// Secret environment variables must be unique across all of a
1578	// build's
1579	// secrets, and must be used by at least one build step. Values can be
1580	// at most
1581	// 64 KB in size. There can be at most 100 secret values across all of
1582	// a
1583	// build's secrets.
1584	SecretEnv map[string]string `json:"secretEnv,omitempty"`
1585
1586	// ForceSendFields is a list of field names (e.g. "KmsKeyName") to
1587	// unconditionally include in API requests. By default, fields with
1588	// empty values are omitted from API requests. However, any non-pointer,
1589	// non-interface field appearing in ForceSendFields will be sent to the
1590	// server regardless of whether the field is empty or not. This may be
1591	// used to include empty fields in Patch requests.
1592	ForceSendFields []string `json:"-"`
1593
1594	// NullFields is a list of field names (e.g. "KmsKeyName") to include in
1595	// API requests with the JSON null value. By default, fields with empty
1596	// values are omitted from API requests. However, any field with an
1597	// empty value appearing in NullFields will be sent to the server as
1598	// null. It is an error if a field in this list has a non-empty value.
1599	// This may be used to include null fields in Patch requests.
1600	NullFields []string `json:"-"`
1601}
1602
1603func (s *Secret) MarshalJSON() ([]byte, error) {
1604	type NoMethod Secret
1605	raw := NoMethod(*s)
1606	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1607}
1608
1609// SlackDelivery: SlackDelivery is the delivery configuration for
1610// delivering Slack messages via
1611// webhooks. See Slack webhook documentation
1612// at:
1613// https://api.slack.com/messaging/webhooks.
1614type SlackDelivery struct {
1615	// WebhookUri: The secret reference for the Slack webhook URI for
1616	// sending messages to a
1617	// channel.
1618	WebhookUri *NotifierSecretRef `json:"webhookUri,omitempty"`
1619
1620	// ForceSendFields is a list of field names (e.g. "WebhookUri") to
1621	// unconditionally include in API requests. By default, fields with
1622	// empty values are omitted from API requests. However, any non-pointer,
1623	// non-interface field appearing in ForceSendFields will be sent to the
1624	// server regardless of whether the field is empty or not. This may be
1625	// used to include empty fields in Patch requests.
1626	ForceSendFields []string `json:"-"`
1627
1628	// NullFields is a list of field names (e.g. "WebhookUri") to include in
1629	// API requests with the JSON null value. By default, fields with empty
1630	// values are omitted from API requests. However, any field with an
1631	// empty value appearing in NullFields will be sent to the server as
1632	// null. It is an error if a field in this list has a non-empty value.
1633	// This may be used to include null fields in Patch requests.
1634	NullFields []string `json:"-"`
1635}
1636
1637func (s *SlackDelivery) MarshalJSON() ([]byte, error) {
1638	type NoMethod SlackDelivery
1639	raw := NoMethod(*s)
1640	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1641}
1642
1643// Source: Location of the source in a supported storage service.
1644type Source struct {
1645	// RepoSource: If provided, get the source from this location in a Cloud
1646	// Source
1647	// Repository.
1648	RepoSource *RepoSource `json:"repoSource,omitempty"`
1649
1650	// StorageSource: If provided, get the source from this location in
1651	// Google Cloud Storage.
1652	StorageSource *StorageSource `json:"storageSource,omitempty"`
1653
1654	// ForceSendFields is a list of field names (e.g. "RepoSource") to
1655	// unconditionally include in API requests. By default, fields with
1656	// empty values are omitted from API requests. However, any non-pointer,
1657	// non-interface field appearing in ForceSendFields will be sent to the
1658	// server regardless of whether the field is empty or not. This may be
1659	// used to include empty fields in Patch requests.
1660	ForceSendFields []string `json:"-"`
1661
1662	// NullFields is a list of field names (e.g. "RepoSource") to include in
1663	// API requests with the JSON null value. By default, fields with empty
1664	// values are omitted from API requests. However, any field with an
1665	// empty value appearing in NullFields will be sent to the server as
1666	// null. It is an error if a field in this list has a non-empty value.
1667	// This may be used to include null fields in Patch requests.
1668	NullFields []string `json:"-"`
1669}
1670
1671func (s *Source) MarshalJSON() ([]byte, error) {
1672	type NoMethod Source
1673	raw := NoMethod(*s)
1674	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1675}
1676
1677// SourceProvenance: Provenance of the source. Ways to find the original
1678// source, or verify that
1679// some source was used for this build.
1680type SourceProvenance struct {
1681	// FileHashes: Output only. Hash(es) of the build source, which can be
1682	// used to verify that
1683	// the original source integrity was maintained in the build. Note
1684	// that
1685	// `FileHashes` will only be populated if `BuildOptions` has requested
1686	// a
1687	// `SourceProvenanceHash`.
1688	//
1689	// The keys to this map are file paths used as build source and the
1690	// values
1691	// contain the hash values for those files.
1692	//
1693	// If the build source came in a single package such as a gzipped
1694	// tarfile
1695	// (`.tar.gz`), the `FileHash` will be for the single path to that file.
1696	FileHashes map[string]FileHashes `json:"fileHashes,omitempty"`
1697
1698	// ResolvedRepoSource: A copy of the build's `source.repo_source`, if
1699	// exists, with any
1700	// revisions resolved.
1701	ResolvedRepoSource *RepoSource `json:"resolvedRepoSource,omitempty"`
1702
1703	// ResolvedStorageSource: A copy of the build's `source.storage_source`,
1704	// if exists, with any
1705	// generations resolved.
1706	ResolvedStorageSource *StorageSource `json:"resolvedStorageSource,omitempty"`
1707
1708	// ForceSendFields is a list of field names (e.g. "FileHashes") to
1709	// unconditionally include in API requests. By default, fields with
1710	// empty values are omitted from API requests. However, any non-pointer,
1711	// non-interface field appearing in ForceSendFields will be sent to the
1712	// server regardless of whether the field is empty or not. This may be
1713	// used to include empty fields in Patch requests.
1714	ForceSendFields []string `json:"-"`
1715
1716	// NullFields is a list of field names (e.g. "FileHashes") to include in
1717	// API requests with the JSON null value. By default, fields with empty
1718	// values are omitted from API requests. However, any field with an
1719	// empty value appearing in NullFields will be sent to the server as
1720	// null. It is an error if a field in this list has a non-empty value.
1721	// This may be used to include null fields in Patch requests.
1722	NullFields []string `json:"-"`
1723}
1724
1725func (s *SourceProvenance) MarshalJSON() ([]byte, error) {
1726	type NoMethod SourceProvenance
1727	raw := NoMethod(*s)
1728	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1729}
1730
1731// Status: The `Status` type defines a logical error model that is
1732// suitable for
1733// different programming environments, including REST APIs and RPC APIs.
1734// It is
1735// used by [gRPC](https://github.com/grpc). Each `Status` message
1736// contains
1737// three pieces of data: error code, error message, and error
1738// details.
1739//
1740// You can find out more about this error model and how to work with it
1741// in the
1742// [API Design Guide](https://cloud.google.com/apis/design/errors).
1743type Status struct {
1744	// Code: The status code, which should be an enum value of
1745	// google.rpc.Code.
1746	Code int64 `json:"code,omitempty"`
1747
1748	// Details: A list of messages that carry the error details.  There is a
1749	// common set of
1750	// message types for APIs to use.
1751	Details []googleapi.RawMessage `json:"details,omitempty"`
1752
1753	// Message: A developer-facing error message, which should be in
1754	// English. Any
1755	// user-facing error message should be localized and sent in
1756	// the
1757	// google.rpc.Status.details field, or localized by the client.
1758	Message string `json:"message,omitempty"`
1759
1760	// ForceSendFields is a list of field names (e.g. "Code") to
1761	// unconditionally include in API requests. By default, fields with
1762	// empty values are omitted from API requests. However, any non-pointer,
1763	// non-interface field appearing in ForceSendFields will be sent to the
1764	// server regardless of whether the field is empty or not. This may be
1765	// used to include empty fields in Patch requests.
1766	ForceSendFields []string `json:"-"`
1767
1768	// NullFields is a list of field names (e.g. "Code") to include in API
1769	// requests with the JSON null value. By default, fields with empty
1770	// values are omitted from API requests. However, any field with an
1771	// empty value appearing in NullFields will be sent to the server as
1772	// null. It is an error if a field in this list has a non-empty value.
1773	// This may be used to include null fields in Patch requests.
1774	NullFields []string `json:"-"`
1775}
1776
1777func (s *Status) MarshalJSON() ([]byte, error) {
1778	type NoMethod Status
1779	raw := NoMethod(*s)
1780	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1781}
1782
1783// StorageSource: Location of the source in an archive file in Google
1784// Cloud Storage.
1785type StorageSource struct {
1786	// Bucket: Google Cloud Storage bucket containing the source
1787	// (see
1788	// [Bucket
1789	// Name
1790	// Requirements](https://cloud.google.com/storage/docs/bucket-naming
1791	// #requirements)).
1792	Bucket string `json:"bucket,omitempty"`
1793
1794	// Generation: Google Cloud Storage generation for the object. If the
1795	// generation is
1796	// omitted, the latest generation will be used.
1797	Generation int64 `json:"generation,omitempty,string"`
1798
1799	// Object: Google Cloud Storage object containing the source.
1800	//
1801	// This object must be a gzipped archive file (`.tar.gz`) containing
1802	// source to
1803	// build.
1804	Object string `json:"object,omitempty"`
1805
1806	// ForceSendFields is a list of field names (e.g. "Bucket") to
1807	// unconditionally include in API requests. By default, fields with
1808	// empty values are omitted from API requests. However, any non-pointer,
1809	// non-interface field appearing in ForceSendFields will be sent to the
1810	// server regardless of whether the field is empty or not. This may be
1811	// used to include empty fields in Patch requests.
1812	ForceSendFields []string `json:"-"`
1813
1814	// NullFields is a list of field names (e.g. "Bucket") to include in API
1815	// requests with the JSON null value. By default, fields with empty
1816	// values are omitted from API requests. However, any field with an
1817	// empty value appearing in NullFields will be sent to the server as
1818	// null. It is an error if a field in this list has a non-empty value.
1819	// This may be used to include null fields in Patch requests.
1820	NullFields []string `json:"-"`
1821}
1822
1823func (s *StorageSource) MarshalJSON() ([]byte, error) {
1824	type NoMethod StorageSource
1825	raw := NoMethod(*s)
1826	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1827}
1828
1829// TimeSpan: Start and end times for a build execution phase.
1830type TimeSpan struct {
1831	// EndTime: End of time span.
1832	EndTime string `json:"endTime,omitempty"`
1833
1834	// StartTime: Start of time span.
1835	StartTime string `json:"startTime,omitempty"`
1836
1837	// ForceSendFields is a list of field names (e.g. "EndTime") to
1838	// unconditionally include in API requests. By default, fields with
1839	// empty values are omitted from API requests. However, any non-pointer,
1840	// non-interface field appearing in ForceSendFields will be sent to the
1841	// server regardless of whether the field is empty or not. This may be
1842	// used to include empty fields in Patch requests.
1843	ForceSendFields []string `json:"-"`
1844
1845	// NullFields is a list of field names (e.g. "EndTime") to include in
1846	// API requests with the JSON null value. By default, fields with empty
1847	// values are omitted from API requests. However, any field with an
1848	// empty value appearing in NullFields will be sent to the server as
1849	// null. It is an error if a field in this list has a non-empty value.
1850	// This may be used to include null fields in Patch requests.
1851	NullFields []string `json:"-"`
1852}
1853
1854func (s *TimeSpan) MarshalJSON() ([]byte, error) {
1855	type NoMethod TimeSpan
1856	raw := NoMethod(*s)
1857	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1858}
1859
1860// Volume: Volume describes a Docker container volume which is mounted
1861// into build steps
1862// in order to persist files across build step execution.
1863type Volume struct {
1864	// Name: Name of the volume to mount.
1865	//
1866	// Volume names must be unique per build step and must be valid names
1867	// for
1868	// Docker volumes. Each named volume must be used by at least two build
1869	// steps.
1870	Name string `json:"name,omitempty"`
1871
1872	// Path: Path at which to mount the volume.
1873	//
1874	// Paths must be absolute and cannot conflict with other volume paths on
1875	// the
1876	// same build step or with certain reserved volume paths.
1877	Path string `json:"path,omitempty"`
1878
1879	// ForceSendFields is a list of field names (e.g. "Name") to
1880	// unconditionally include in API requests. By default, fields with
1881	// empty values are omitted from API requests. However, any non-pointer,
1882	// non-interface field appearing in ForceSendFields will be sent to the
1883	// server regardless of whether the field is empty or not. This may be
1884	// used to include empty fields in Patch requests.
1885	ForceSendFields []string `json:"-"`
1886
1887	// NullFields is a list of field names (e.g. "Name") to include in API
1888	// requests with the JSON null value. By default, fields with empty
1889	// values are omitted from API requests. However, any field with an
1890	// empty value appearing in NullFields will be sent to the server as
1891	// null. It is an error if a field in this list has a non-empty value.
1892	// This may be used to include null fields in Patch requests.
1893	NullFields []string `json:"-"`
1894}
1895
1896func (s *Volume) MarshalJSON() ([]byte, error) {
1897	type NoMethod Volume
1898	raw := NoMethod(*s)
1899	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1900}
1901
1902// WorkerConfig: WorkerConfig defines the configuration to be used for a
1903// creating workers in
1904// the pool.
1905type WorkerConfig struct {
1906	// DiskSizeGb: Size of the disk attached to the worker, in GB.
1907	// See https://cloud.google.com/compute/docs/disks/
1908	// If `0` is specified, Cloud Build will use a standard disk size.
1909	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
1910
1911	// MachineType: Machine Type of the worker, such as n1-standard-1.
1912	// See https://cloud.google.com/compute/docs/machine-types.
1913	// If left blank, Cloud Build will use a standard unspecified machine
1914	// to
1915	// create the worker pool.
1916	MachineType string `json:"machineType,omitempty"`
1917
1918	// ForceSendFields is a list of field names (e.g. "DiskSizeGb") to
1919	// unconditionally include in API requests. By default, fields with
1920	// empty values are omitted from API requests. However, any non-pointer,
1921	// non-interface field appearing in ForceSendFields will be sent to the
1922	// server regardless of whether the field is empty or not. This may be
1923	// used to include empty fields in Patch requests.
1924	ForceSendFields []string `json:"-"`
1925
1926	// NullFields is a list of field names (e.g. "DiskSizeGb") to include in
1927	// API requests with the JSON null value. By default, fields with empty
1928	// values are omitted from API requests. However, any field with an
1929	// empty value appearing in NullFields will be sent to the server as
1930	// null. It is an error if a field in this list has a non-empty value.
1931	// This may be used to include null fields in Patch requests.
1932	NullFields []string `json:"-"`
1933}
1934
1935func (s *WorkerConfig) MarshalJSON() ([]byte, error) {
1936	type NoMethod WorkerConfig
1937	raw := NoMethod(*s)
1938	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1939}
1940
1941// WorkerPool: Configuration for a WorkerPool to run the
1942// builds.
1943//
1944// Workers are machines that Cloud Build uses to run your builds. By
1945// default,
1946// all workers run in a project owned by Cloud Build. To have full
1947// control over
1948// the workers that execute your builds -- such as enabling them to
1949// access
1950// private resources on your private network -- you can request Cloud
1951// Build to
1952// run the workers in your own project by creating a custom workers
1953// pool.
1954type WorkerPool struct {
1955	// CreateTime: Output only. Time at which the request to create the
1956	// `WorkerPool` was
1957	// received.
1958	CreateTime string `json:"createTime,omitempty"`
1959
1960	// DeleteTime: Output only. Time at which the request to delete the
1961	// `WorkerPool` was
1962	// received.
1963	DeleteTime string `json:"deleteTime,omitempty"`
1964
1965	// Name: Output only. The resource name of the `WorkerPool`.
1966	// Format of the name is
1967	// `projects/{project_id}/workerPools/{worker_pool_id}`,
1968	// where the value of {worker_pool_id} is provided in the
1969	// CreateWorkerPool
1970	// request.
1971	Name string `json:"name,omitempty"`
1972
1973	// NetworkConfig: Network configuration for the `WorkerPool`.
1974	NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"`
1975
1976	// Region: Required. Immutable. The region where the `WorkerPool` runs.
1977	// Only "us-central1" is currently
1978	// supported.
1979	//
1980	// Note that `region` cannot be changed once the `WorkerPool` is
1981	// created.
1982	Region string `json:"region,omitempty"`
1983
1984	// State: Output only. WorkerPool state.
1985	//
1986	// Possible values:
1987	//   "STATE_UNSPECIFIED" - State of the `WorkerPool` is unknown.
1988	//   "CREATING" - `WorkerPool` is being created.
1989	//   "RUNNING" - `WorkerPool` is running.
1990	//   "DELETING" - `WorkerPool` is being deleted: cancelling builds and
1991	// draining workers.
1992	//   "DELETED" - `WorkerPool` is deleted.
1993	State string `json:"state,omitempty"`
1994
1995	// UpdateTime: Output only. Time at which the request to update the
1996	// `WorkerPool` was
1997	// received.
1998	UpdateTime string `json:"updateTime,omitempty"`
1999
2000	// WorkerConfig: Worker configuration for the `WorkerPool`.
2001	WorkerConfig *WorkerConfig `json:"workerConfig,omitempty"`
2002
2003	// ServerResponse contains the HTTP response code and headers from the
2004	// server.
2005	googleapi.ServerResponse `json:"-"`
2006
2007	// ForceSendFields is a list of field names (e.g. "CreateTime") to
2008	// unconditionally include in API requests. By default, fields with
2009	// empty values are omitted from API requests. However, any non-pointer,
2010	// non-interface field appearing in ForceSendFields will be sent to the
2011	// server regardless of whether the field is empty or not. This may be
2012	// used to include empty fields in Patch requests.
2013	ForceSendFields []string `json:"-"`
2014
2015	// NullFields is a list of field names (e.g. "CreateTime") to include in
2016	// API requests with the JSON null value. By default, fields with empty
2017	// values are omitted from API requests. However, any field with an
2018	// empty value appearing in NullFields will be sent to the server as
2019	// null. It is an error if a field in this list has a non-empty value.
2020	// This may be used to include null fields in Patch requests.
2021	NullFields []string `json:"-"`
2022}
2023
2024func (s *WorkerPool) MarshalJSON() ([]byte, error) {
2025	type NoMethod WorkerPool
2026	raw := NoMethod(*s)
2027	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2028}
2029
2030// method id "cloudbuild.projects.locations.operations.cancel":
2031
2032type ProjectsLocationsOperationsCancelCall struct {
2033	s                      *Service
2034	name                   string
2035	canceloperationrequest *CancelOperationRequest
2036	urlParams_             gensupport.URLParams
2037	ctx_                   context.Context
2038	header_                http.Header
2039}
2040
2041// Cancel: Starts asynchronous cancellation on a long-running operation.
2042//  The server
2043// makes a best effort to cancel the operation, but success is
2044// not
2045// guaranteed.  If the server doesn't support this method, it
2046// returns
2047// `google.rpc.Code.UNIMPLEMENTED`.  Clients can
2048// use
2049// Operations.GetOperation or
2050// other methods to check whether the cancellation succeeded or whether
2051// the
2052// operation completed despite cancellation. On successful
2053// cancellation,
2054// the operation is not deleted; instead, it becomes an operation
2055// with
2056// an Operation.error value with a google.rpc.Status.code of
2057// 1,
2058// corresponding to `Code.CANCELLED`.
2059func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
2060	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2061	c.name = name
2062	c.canceloperationrequest = canceloperationrequest
2063	return c
2064}
2065
2066// Fields allows partial responses to be retrieved. See
2067// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
2068// for more information.
2069func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
2070	c.urlParams_.Set("fields", googleapi.CombineFields(s))
2071	return c
2072}
2073
2074// Context sets the context to be used in this call's Do method. Any
2075// pending HTTP request will be aborted if the provided context is
2076// canceled.
2077func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
2078	c.ctx_ = ctx
2079	return c
2080}
2081
2082// Header returns an http.Header that can be modified by the caller to
2083// add HTTP headers to the request.
2084func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
2085	if c.header_ == nil {
2086		c.header_ = make(http.Header)
2087	}
2088	return c.header_
2089}
2090
2091func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
2092	reqHeaders := make(http.Header)
2093	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200707")
2094	for k, v := range c.header_ {
2095		reqHeaders[k] = v
2096	}
2097	reqHeaders.Set("User-Agent", c.s.userAgent())
2098	var body io.Reader = nil
2099	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
2100	if err != nil {
2101		return nil, err
2102	}
2103	reqHeaders.Set("Content-Type", "application/json")
2104	c.urlParams_.Set("alt", alt)
2105	c.urlParams_.Set("prettyPrint", "false")
2106	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:cancel")
2107	urls += "?" + c.urlParams_.Encode()
2108	req, err := http.NewRequest("POST", urls, body)
2109	if err != nil {
2110		return nil, err
2111	}
2112	req.Header = reqHeaders
2113	googleapi.Expand(req.URL, map[string]string{
2114		"name": c.name,
2115	})
2116	return gensupport.SendRequest(c.ctx_, c.s.client, req)
2117}
2118
2119// Do executes the "cloudbuild.projects.locations.operations.cancel" call.
2120// Exactly one of *Empty or error will be non-nil. Any non-2xx status
2121// code is an error. Response headers are in either
2122// *Empty.ServerResponse.Header or (if a response was returned at all)
2123// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
2124// check whether the returned error was because http.StatusNotModified
2125// was returned.
2126func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
2127	gensupport.SetOptions(c.urlParams_, opts...)
2128	res, err := c.doRequest("json")
2129	if res != nil && res.StatusCode == http.StatusNotModified {
2130		if res.Body != nil {
2131			res.Body.Close()
2132		}
2133		return nil, &googleapi.Error{
2134			Code:   res.StatusCode,
2135			Header: res.Header,
2136		}
2137	}
2138	if err != nil {
2139		return nil, err
2140	}
2141	defer googleapi.CloseBody(res)
2142	if err := googleapi.CheckResponse(res); err != nil {
2143		return nil, err
2144	}
2145	ret := &Empty{
2146		ServerResponse: googleapi.ServerResponse{
2147			Header:         res.Header,
2148			HTTPStatusCode: res.StatusCode,
2149		},
2150	}
2151	target := &ret
2152	if err := gensupport.DecodeResponse(target, res); err != nil {
2153		return nil, err
2154	}
2155	return ret, nil
2156	// {
2157	//   "description": "Starts asynchronous cancellation on a long-running operation.  The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed.  If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.  Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.",
2158	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
2159	//   "httpMethod": "POST",
2160	//   "id": "cloudbuild.projects.locations.operations.cancel",
2161	//   "parameterOrder": [
2162	//     "name"
2163	//   ],
2164	//   "parameters": {
2165	//     "name": {
2166	//       "description": "The name of the operation resource to be cancelled.",
2167	//       "location": "path",
2168	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
2169	//       "required": true,
2170	//       "type": "string"
2171	//     }
2172	//   },
2173	//   "path": "v1alpha2/{+name}:cancel",
2174	//   "request": {
2175	//     "$ref": "CancelOperationRequest"
2176	//   },
2177	//   "response": {
2178	//     "$ref": "Empty"
2179	//   },
2180	//   "scopes": [
2181	//     "https://www.googleapis.com/auth/cloud-platform"
2182	//   ]
2183	// }
2184
2185}
2186
2187// method id "cloudbuild.projects.locations.operations.get":
2188
2189type ProjectsLocationsOperationsGetCall struct {
2190	s            *Service
2191	name         string
2192	urlParams_   gensupport.URLParams
2193	ifNoneMatch_ string
2194	ctx_         context.Context
2195	header_      http.Header
2196}
2197
2198// Get: Gets the latest state of a long-running operation.  Clients can
2199// use this
2200// method to poll the operation result at intervals as recommended by
2201// the API
2202// service.
2203func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
2204	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2205	c.name = name
2206	return c
2207}
2208
2209// Fields allows partial responses to be retrieved. See
2210// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
2211// for more information.
2212func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
2213	c.urlParams_.Set("fields", googleapi.CombineFields(s))
2214	return c
2215}
2216
2217// IfNoneMatch sets the optional parameter which makes the operation
2218// fail if the object's ETag matches the given value. This is useful for
2219// getting updates only after the object has changed since the last
2220// request. Use googleapi.IsNotModified to check whether the response
2221// error from Do is the result of In-None-Match.
2222func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
2223	c.ifNoneMatch_ = entityTag
2224	return c
2225}
2226
2227// Context sets the context to be used in this call's Do method. Any
2228// pending HTTP request will be aborted if the provided context is
2229// canceled.
2230func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
2231	c.ctx_ = ctx
2232	return c
2233}
2234
2235// Header returns an http.Header that can be modified by the caller to
2236// add HTTP headers to the request.
2237func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
2238	if c.header_ == nil {
2239		c.header_ = make(http.Header)
2240	}
2241	return c.header_
2242}
2243
2244func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
2245	reqHeaders := make(http.Header)
2246	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200707")
2247	for k, v := range c.header_ {
2248		reqHeaders[k] = v
2249	}
2250	reqHeaders.Set("User-Agent", c.s.userAgent())
2251	if c.ifNoneMatch_ != "" {
2252		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2253	}
2254	var body io.Reader = nil
2255	c.urlParams_.Set("alt", alt)
2256	c.urlParams_.Set("prettyPrint", "false")
2257	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
2258	urls += "?" + c.urlParams_.Encode()
2259	req, err := http.NewRequest("GET", urls, body)
2260	if err != nil {
2261		return nil, err
2262	}
2263	req.Header = reqHeaders
2264	googleapi.Expand(req.URL, map[string]string{
2265		"name": c.name,
2266	})
2267	return gensupport.SendRequest(c.ctx_, c.s.client, req)
2268}
2269
2270// Do executes the "cloudbuild.projects.locations.operations.get" call.
2271// Exactly one of *Operation or error will be non-nil. Any non-2xx
2272// status code is an error. Response headers are in either
2273// *Operation.ServerResponse.Header or (if a response was returned at
2274// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
2275// to check whether the returned error was because
2276// http.StatusNotModified was returned.
2277func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
2278	gensupport.SetOptions(c.urlParams_, opts...)
2279	res, err := c.doRequest("json")
2280	if res != nil && res.StatusCode == http.StatusNotModified {
2281		if res.Body != nil {
2282			res.Body.Close()
2283		}
2284		return nil, &googleapi.Error{
2285			Code:   res.StatusCode,
2286			Header: res.Header,
2287		}
2288	}
2289	if err != nil {
2290		return nil, err
2291	}
2292	defer googleapi.CloseBody(res)
2293	if err := googleapi.CheckResponse(res); err != nil {
2294		return nil, err
2295	}
2296	ret := &Operation{
2297		ServerResponse: googleapi.ServerResponse{
2298			Header:         res.Header,
2299			HTTPStatusCode: res.StatusCode,
2300		},
2301	}
2302	target := &ret
2303	if err := gensupport.DecodeResponse(target, res); err != nil {
2304		return nil, err
2305	}
2306	return ret, nil
2307	// {
2308	//   "description": "Gets the latest state of a long-running operation.  Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
2309	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
2310	//   "httpMethod": "GET",
2311	//   "id": "cloudbuild.projects.locations.operations.get",
2312	//   "parameterOrder": [
2313	//     "name"
2314	//   ],
2315	//   "parameters": {
2316	//     "name": {
2317	//       "description": "The name of the operation resource.",
2318	//       "location": "path",
2319	//       "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
2320	//       "required": true,
2321	//       "type": "string"
2322	//     }
2323	//   },
2324	//   "path": "v1alpha2/{+name}",
2325	//   "response": {
2326	//     "$ref": "Operation"
2327	//   },
2328	//   "scopes": [
2329	//     "https://www.googleapis.com/auth/cloud-platform"
2330	//   ]
2331	// }
2332
2333}
2334
2335// method id "cloudbuild.projects.workerPools.create":
2336
2337type ProjectsWorkerPoolsCreateCall struct {
2338	s          *Service
2339	parent     string
2340	workerpool *WorkerPool
2341	urlParams_ gensupport.URLParams
2342	ctx_       context.Context
2343	header_    http.Header
2344}
2345
2346// Create: Creates a `WorkerPool` to run the builds, and returns the new
2347// worker pool.
2348func (r *ProjectsWorkerPoolsService) Create(parent string, workerpool *WorkerPool) *ProjectsWorkerPoolsCreateCall {
2349	c := &ProjectsWorkerPoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2350	c.parent = parent
2351	c.workerpool = workerpool
2352	return c
2353}
2354
2355// WorkerPoolId sets the optional parameter "workerPoolId": Required.
2356// Immutable. The ID to use for the `WorkerPool`, which will become the
2357// final component
2358// of the resource name.
2359//
2360// This value should be 1-63 characters, and valid characters
2361// are /a-z-/.
2362func (c *ProjectsWorkerPoolsCreateCall) WorkerPoolId(workerPoolId string) *ProjectsWorkerPoolsCreateCall {
2363	c.urlParams_.Set("workerPoolId", workerPoolId)
2364	return c
2365}
2366
2367// Fields allows partial responses to be retrieved. See
2368// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
2369// for more information.
2370func (c *ProjectsWorkerPoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsCreateCall {
2371	c.urlParams_.Set("fields", googleapi.CombineFields(s))
2372	return c
2373}
2374
2375// Context sets the context to be used in this call's Do method. Any
2376// pending HTTP request will be aborted if the provided context is
2377// canceled.
2378func (c *ProjectsWorkerPoolsCreateCall) Context(ctx context.Context) *ProjectsWorkerPoolsCreateCall {
2379	c.ctx_ = ctx
2380	return c
2381}
2382
2383// Header returns an http.Header that can be modified by the caller to
2384// add HTTP headers to the request.
2385func (c *ProjectsWorkerPoolsCreateCall) Header() http.Header {
2386	if c.header_ == nil {
2387		c.header_ = make(http.Header)
2388	}
2389	return c.header_
2390}
2391
2392func (c *ProjectsWorkerPoolsCreateCall) doRequest(alt string) (*http.Response, error) {
2393	reqHeaders := make(http.Header)
2394	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200707")
2395	for k, v := range c.header_ {
2396		reqHeaders[k] = v
2397	}
2398	reqHeaders.Set("User-Agent", c.s.userAgent())
2399	var body io.Reader = nil
2400	body, err := googleapi.WithoutDataWrapper.JSONReader(c.workerpool)
2401	if err != nil {
2402		return nil, err
2403	}
2404	reqHeaders.Set("Content-Type", "application/json")
2405	c.urlParams_.Set("alt", alt)
2406	c.urlParams_.Set("prettyPrint", "false")
2407	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/workerPools")
2408	urls += "?" + c.urlParams_.Encode()
2409	req, err := http.NewRequest("POST", urls, body)
2410	if err != nil {
2411		return nil, err
2412	}
2413	req.Header = reqHeaders
2414	googleapi.Expand(req.URL, map[string]string{
2415		"parent": c.parent,
2416	})
2417	return gensupport.SendRequest(c.ctx_, c.s.client, req)
2418}
2419
2420// Do executes the "cloudbuild.projects.workerPools.create" call.
2421// Exactly one of *WorkerPool or error will be non-nil. Any non-2xx
2422// status code is an error. Response headers are in either
2423// *WorkerPool.ServerResponse.Header or (if a response was returned at
2424// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
2425// to check whether the returned error was because
2426// http.StatusNotModified was returned.
2427func (c *ProjectsWorkerPoolsCreateCall) Do(opts ...googleapi.CallOption) (*WorkerPool, error) {
2428	gensupport.SetOptions(c.urlParams_, opts...)
2429	res, err := c.doRequest("json")
2430	if res != nil && res.StatusCode == http.StatusNotModified {
2431		if res.Body != nil {
2432			res.Body.Close()
2433		}
2434		return nil, &googleapi.Error{
2435			Code:   res.StatusCode,
2436			Header: res.Header,
2437		}
2438	}
2439	if err != nil {
2440		return nil, err
2441	}
2442	defer googleapi.CloseBody(res)
2443	if err := googleapi.CheckResponse(res); err != nil {
2444		return nil, err
2445	}
2446	ret := &WorkerPool{
2447		ServerResponse: googleapi.ServerResponse{
2448			Header:         res.Header,
2449			HTTPStatusCode: res.StatusCode,
2450		},
2451	}
2452	target := &ret
2453	if err := gensupport.DecodeResponse(target, res); err != nil {
2454		return nil, err
2455	}
2456	return ret, nil
2457	// {
2458	//   "description": "Creates a `WorkerPool` to run the builds, and returns the new worker pool.",
2459	//   "flatPath": "v1alpha2/projects/{projectsId}/workerPools",
2460	//   "httpMethod": "POST",
2461	//   "id": "cloudbuild.projects.workerPools.create",
2462	//   "parameterOrder": [
2463	//     "parent"
2464	//   ],
2465	//   "parameters": {
2466	//     "parent": {
2467	//       "description": "Required. The parent resource where this book will be created.\nFormat: projects/{project}",
2468	//       "location": "path",
2469	//       "pattern": "^projects/[^/]+$",
2470	//       "required": true,
2471	//       "type": "string"
2472	//     },
2473	//     "workerPoolId": {
2474	//       "description": "Required. Immutable. The ID to use for the `WorkerPool`, which will become the final component\nof the resource name.\n\nThis value should be 1-63 characters, and valid characters\nare /a-z-/.",
2475	//       "location": "query",
2476	//       "type": "string"
2477	//     }
2478	//   },
2479	//   "path": "v1alpha2/{+parent}/workerPools",
2480	//   "request": {
2481	//     "$ref": "WorkerPool"
2482	//   },
2483	//   "response": {
2484	//     "$ref": "WorkerPool"
2485	//   },
2486	//   "scopes": [
2487	//     "https://www.googleapis.com/auth/cloud-platform"
2488	//   ]
2489	// }
2490
2491}
2492
2493// method id "cloudbuild.projects.workerPools.delete":
2494
2495type ProjectsWorkerPoolsDeleteCall struct {
2496	s          *Service
2497	name       string
2498	urlParams_ gensupport.URLParams
2499	ctx_       context.Context
2500	header_    http.Header
2501}
2502
2503// Delete: Deletes a `WorkerPool`.
2504func (r *ProjectsWorkerPoolsService) Delete(name string) *ProjectsWorkerPoolsDeleteCall {
2505	c := &ProjectsWorkerPoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2506	c.name = name
2507	return c
2508}
2509
2510// Fields allows partial responses to be retrieved. See
2511// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
2512// for more information.
2513func (c *ProjectsWorkerPoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsDeleteCall {
2514	c.urlParams_.Set("fields", googleapi.CombineFields(s))
2515	return c
2516}
2517
2518// Context sets the context to be used in this call's Do method. Any
2519// pending HTTP request will be aborted if the provided context is
2520// canceled.
2521func (c *ProjectsWorkerPoolsDeleteCall) Context(ctx context.Context) *ProjectsWorkerPoolsDeleteCall {
2522	c.ctx_ = ctx
2523	return c
2524}
2525
2526// Header returns an http.Header that can be modified by the caller to
2527// add HTTP headers to the request.
2528func (c *ProjectsWorkerPoolsDeleteCall) Header() http.Header {
2529	if c.header_ == nil {
2530		c.header_ = make(http.Header)
2531	}
2532	return c.header_
2533}
2534
2535func (c *ProjectsWorkerPoolsDeleteCall) doRequest(alt string) (*http.Response, error) {
2536	reqHeaders := make(http.Header)
2537	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200707")
2538	for k, v := range c.header_ {
2539		reqHeaders[k] = v
2540	}
2541	reqHeaders.Set("User-Agent", c.s.userAgent())
2542	var body io.Reader = nil
2543	c.urlParams_.Set("alt", alt)
2544	c.urlParams_.Set("prettyPrint", "false")
2545	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
2546	urls += "?" + c.urlParams_.Encode()
2547	req, err := http.NewRequest("DELETE", urls, body)
2548	if err != nil {
2549		return nil, err
2550	}
2551	req.Header = reqHeaders
2552	googleapi.Expand(req.URL, map[string]string{
2553		"name": c.name,
2554	})
2555	return gensupport.SendRequest(c.ctx_, c.s.client, req)
2556}
2557
2558// Do executes the "cloudbuild.projects.workerPools.delete" call.
2559// Exactly one of *Empty or error will be non-nil. Any non-2xx status
2560// code is an error. Response headers are in either
2561// *Empty.ServerResponse.Header or (if a response was returned at all)
2562// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
2563// check whether the returned error was because http.StatusNotModified
2564// was returned.
2565func (c *ProjectsWorkerPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
2566	gensupport.SetOptions(c.urlParams_, opts...)
2567	res, err := c.doRequest("json")
2568	if res != nil && res.StatusCode == http.StatusNotModified {
2569		if res.Body != nil {
2570			res.Body.Close()
2571		}
2572		return nil, &googleapi.Error{
2573			Code:   res.StatusCode,
2574			Header: res.Header,
2575		}
2576	}
2577	if err != nil {
2578		return nil, err
2579	}
2580	defer googleapi.CloseBody(res)
2581	if err := googleapi.CheckResponse(res); err != nil {
2582		return nil, err
2583	}
2584	ret := &Empty{
2585		ServerResponse: googleapi.ServerResponse{
2586			Header:         res.Header,
2587			HTTPStatusCode: res.StatusCode,
2588		},
2589	}
2590	target := &ret
2591	if err := gensupport.DecodeResponse(target, res); err != nil {
2592		return nil, err
2593	}
2594	return ret, nil
2595	// {
2596	//   "description": "Deletes a `WorkerPool`.",
2597	//   "flatPath": "v1alpha2/projects/{projectsId}/workerPools/{workerPoolsId}",
2598	//   "httpMethod": "DELETE",
2599	//   "id": "cloudbuild.projects.workerPools.delete",
2600	//   "parameterOrder": [
2601	//     "name"
2602	//   ],
2603	//   "parameters": {
2604	//     "name": {
2605	//       "description": "Required. The name of the `WorkerPool` to delete.\nFormat: projects/{project}/workerPools/{workerPool}",
2606	//       "location": "path",
2607	//       "pattern": "^projects/[^/]+/workerPools/[^/]+$",
2608	//       "required": true,
2609	//       "type": "string"
2610	//     }
2611	//   },
2612	//   "path": "v1alpha2/{+name}",
2613	//   "response": {
2614	//     "$ref": "Empty"
2615	//   },
2616	//   "scopes": [
2617	//     "https://www.googleapis.com/auth/cloud-platform"
2618	//   ]
2619	// }
2620
2621}
2622
2623// method id "cloudbuild.projects.workerPools.get":
2624
2625type ProjectsWorkerPoolsGetCall struct {
2626	s            *Service
2627	name         string
2628	urlParams_   gensupport.URLParams
2629	ifNoneMatch_ string
2630	ctx_         context.Context
2631	header_      http.Header
2632}
2633
2634// Get: Returns details of a `WorkerPool`.
2635func (r *ProjectsWorkerPoolsService) Get(name string) *ProjectsWorkerPoolsGetCall {
2636	c := &ProjectsWorkerPoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2637	c.name = name
2638	return c
2639}
2640
2641// Fields allows partial responses to be retrieved. See
2642// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
2643// for more information.
2644func (c *ProjectsWorkerPoolsGetCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsGetCall {
2645	c.urlParams_.Set("fields", googleapi.CombineFields(s))
2646	return c
2647}
2648
2649// IfNoneMatch sets the optional parameter which makes the operation
2650// fail if the object's ETag matches the given value. This is useful for
2651// getting updates only after the object has changed since the last
2652// request. Use googleapi.IsNotModified to check whether the response
2653// error from Do is the result of In-None-Match.
2654func (c *ProjectsWorkerPoolsGetCall) IfNoneMatch(entityTag string) *ProjectsWorkerPoolsGetCall {
2655	c.ifNoneMatch_ = entityTag
2656	return c
2657}
2658
2659// Context sets the context to be used in this call's Do method. Any
2660// pending HTTP request will be aborted if the provided context is
2661// canceled.
2662func (c *ProjectsWorkerPoolsGetCall) Context(ctx context.Context) *ProjectsWorkerPoolsGetCall {
2663	c.ctx_ = ctx
2664	return c
2665}
2666
2667// Header returns an http.Header that can be modified by the caller to
2668// add HTTP headers to the request.
2669func (c *ProjectsWorkerPoolsGetCall) Header() http.Header {
2670	if c.header_ == nil {
2671		c.header_ = make(http.Header)
2672	}
2673	return c.header_
2674}
2675
2676func (c *ProjectsWorkerPoolsGetCall) doRequest(alt string) (*http.Response, error) {
2677	reqHeaders := make(http.Header)
2678	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200707")
2679	for k, v := range c.header_ {
2680		reqHeaders[k] = v
2681	}
2682	reqHeaders.Set("User-Agent", c.s.userAgent())
2683	if c.ifNoneMatch_ != "" {
2684		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2685	}
2686	var body io.Reader = nil
2687	c.urlParams_.Set("alt", alt)
2688	c.urlParams_.Set("prettyPrint", "false")
2689	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
2690	urls += "?" + c.urlParams_.Encode()
2691	req, err := http.NewRequest("GET", urls, body)
2692	if err != nil {
2693		return nil, err
2694	}
2695	req.Header = reqHeaders
2696	googleapi.Expand(req.URL, map[string]string{
2697		"name": c.name,
2698	})
2699	return gensupport.SendRequest(c.ctx_, c.s.client, req)
2700}
2701
2702// Do executes the "cloudbuild.projects.workerPools.get" call.
2703// Exactly one of *WorkerPool or error will be non-nil. Any non-2xx
2704// status code is an error. Response headers are in either
2705// *WorkerPool.ServerResponse.Header or (if a response was returned at
2706// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
2707// to check whether the returned error was because
2708// http.StatusNotModified was returned.
2709func (c *ProjectsWorkerPoolsGetCall) Do(opts ...googleapi.CallOption) (*WorkerPool, error) {
2710	gensupport.SetOptions(c.urlParams_, opts...)
2711	res, err := c.doRequest("json")
2712	if res != nil && res.StatusCode == http.StatusNotModified {
2713		if res.Body != nil {
2714			res.Body.Close()
2715		}
2716		return nil, &googleapi.Error{
2717			Code:   res.StatusCode,
2718			Header: res.Header,
2719		}
2720	}
2721	if err != nil {
2722		return nil, err
2723	}
2724	defer googleapi.CloseBody(res)
2725	if err := googleapi.CheckResponse(res); err != nil {
2726		return nil, err
2727	}
2728	ret := &WorkerPool{
2729		ServerResponse: googleapi.ServerResponse{
2730			Header:         res.Header,
2731			HTTPStatusCode: res.StatusCode,
2732		},
2733	}
2734	target := &ret
2735	if err := gensupport.DecodeResponse(target, res); err != nil {
2736		return nil, err
2737	}
2738	return ret, nil
2739	// {
2740	//   "description": "Returns details of a `WorkerPool`.",
2741	//   "flatPath": "v1alpha2/projects/{projectsId}/workerPools/{workerPoolsId}",
2742	//   "httpMethod": "GET",
2743	//   "id": "cloudbuild.projects.workerPools.get",
2744	//   "parameterOrder": [
2745	//     "name"
2746	//   ],
2747	//   "parameters": {
2748	//     "name": {
2749	//       "description": "Required. The name of the `WorkerPool` to retrieve.\nFormat: projects/{project}/workerPools/{workerPool}",
2750	//       "location": "path",
2751	//       "pattern": "^projects/[^/]+/workerPools/[^/]+$",
2752	//       "required": true,
2753	//       "type": "string"
2754	//     }
2755	//   },
2756	//   "path": "v1alpha2/{+name}",
2757	//   "response": {
2758	//     "$ref": "WorkerPool"
2759	//   },
2760	//   "scopes": [
2761	//     "https://www.googleapis.com/auth/cloud-platform"
2762	//   ]
2763	// }
2764
2765}
2766
2767// method id "cloudbuild.projects.workerPools.list":
2768
2769type ProjectsWorkerPoolsListCall struct {
2770	s            *Service
2771	parent       string
2772	urlParams_   gensupport.URLParams
2773	ifNoneMatch_ string
2774	ctx_         context.Context
2775	header_      http.Header
2776}
2777
2778// List: Lists `WorkerPool`s by project.
2779func (r *ProjectsWorkerPoolsService) List(parent string) *ProjectsWorkerPoolsListCall {
2780	c := &ProjectsWorkerPoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2781	c.parent = parent
2782	return c
2783}
2784
2785// Fields allows partial responses to be retrieved. See
2786// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
2787// for more information.
2788func (c *ProjectsWorkerPoolsListCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsListCall {
2789	c.urlParams_.Set("fields", googleapi.CombineFields(s))
2790	return c
2791}
2792
2793// IfNoneMatch sets the optional parameter which makes the operation
2794// fail if the object's ETag matches the given value. This is useful for
2795// getting updates only after the object has changed since the last
2796// request. Use googleapi.IsNotModified to check whether the response
2797// error from Do is the result of In-None-Match.
2798func (c *ProjectsWorkerPoolsListCall) IfNoneMatch(entityTag string) *ProjectsWorkerPoolsListCall {
2799	c.ifNoneMatch_ = entityTag
2800	return c
2801}
2802
2803// Context sets the context to be used in this call's Do method. Any
2804// pending HTTP request will be aborted if the provided context is
2805// canceled.
2806func (c *ProjectsWorkerPoolsListCall) Context(ctx context.Context) *ProjectsWorkerPoolsListCall {
2807	c.ctx_ = ctx
2808	return c
2809}
2810
2811// Header returns an http.Header that can be modified by the caller to
2812// add HTTP headers to the request.
2813func (c *ProjectsWorkerPoolsListCall) Header() http.Header {
2814	if c.header_ == nil {
2815		c.header_ = make(http.Header)
2816	}
2817	return c.header_
2818}
2819
2820func (c *ProjectsWorkerPoolsListCall) doRequest(alt string) (*http.Response, error) {
2821	reqHeaders := make(http.Header)
2822	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200707")
2823	for k, v := range c.header_ {
2824		reqHeaders[k] = v
2825	}
2826	reqHeaders.Set("User-Agent", c.s.userAgent())
2827	if c.ifNoneMatch_ != "" {
2828		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2829	}
2830	var body io.Reader = nil
2831	c.urlParams_.Set("alt", alt)
2832	c.urlParams_.Set("prettyPrint", "false")
2833	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/workerPools")
2834	urls += "?" + c.urlParams_.Encode()
2835	req, err := http.NewRequest("GET", urls, body)
2836	if err != nil {
2837		return nil, err
2838	}
2839	req.Header = reqHeaders
2840	googleapi.Expand(req.URL, map[string]string{
2841		"parent": c.parent,
2842	})
2843	return gensupport.SendRequest(c.ctx_, c.s.client, req)
2844}
2845
2846// Do executes the "cloudbuild.projects.workerPools.list" call.
2847// Exactly one of *ListWorkerPoolsResponse or error will be non-nil. Any
2848// non-2xx status code is an error. Response headers are in either
2849// *ListWorkerPoolsResponse.ServerResponse.Header or (if a response was
2850// returned at all) in error.(*googleapi.Error).Header. Use
2851// googleapi.IsNotModified to check whether the returned error was
2852// because http.StatusNotModified was returned.
2853func (c *ProjectsWorkerPoolsListCall) Do(opts ...googleapi.CallOption) (*ListWorkerPoolsResponse, error) {
2854	gensupport.SetOptions(c.urlParams_, opts...)
2855	res, err := c.doRequest("json")
2856	if res != nil && res.StatusCode == http.StatusNotModified {
2857		if res.Body != nil {
2858			res.Body.Close()
2859		}
2860		return nil, &googleapi.Error{
2861			Code:   res.StatusCode,
2862			Header: res.Header,
2863		}
2864	}
2865	if err != nil {
2866		return nil, err
2867	}
2868	defer googleapi.CloseBody(res)
2869	if err := googleapi.CheckResponse(res); err != nil {
2870		return nil, err
2871	}
2872	ret := &ListWorkerPoolsResponse{
2873		ServerResponse: googleapi.ServerResponse{
2874			Header:         res.Header,
2875			HTTPStatusCode: res.StatusCode,
2876		},
2877	}
2878	target := &ret
2879	if err := gensupport.DecodeResponse(target, res); err != nil {
2880		return nil, err
2881	}
2882	return ret, nil
2883	// {
2884	//   "description": "Lists `WorkerPool`s by project.",
2885	//   "flatPath": "v1alpha2/projects/{projectsId}/workerPools",
2886	//   "httpMethod": "GET",
2887	//   "id": "cloudbuild.projects.workerPools.list",
2888	//   "parameterOrder": [
2889	//     "parent"
2890	//   ],
2891	//   "parameters": {
2892	//     "parent": {
2893	//       "description": "Required. The parent, which owns this collection of `WorkerPools`.\nFormat: projects/{project}",
2894	//       "location": "path",
2895	//       "pattern": "^projects/[^/]+$",
2896	//       "required": true,
2897	//       "type": "string"
2898	//     }
2899	//   },
2900	//   "path": "v1alpha2/{+parent}/workerPools",
2901	//   "response": {
2902	//     "$ref": "ListWorkerPoolsResponse"
2903	//   },
2904	//   "scopes": [
2905	//     "https://www.googleapis.com/auth/cloud-platform"
2906	//   ]
2907	// }
2908
2909}
2910
2911// method id "cloudbuild.projects.workerPools.patch":
2912
2913type ProjectsWorkerPoolsPatchCall struct {
2914	s          *Service
2915	name       string
2916	workerpool *WorkerPool
2917	urlParams_ gensupport.URLParams
2918	ctx_       context.Context
2919	header_    http.Header
2920}
2921
2922// Patch: Updates a `WorkerPool`.
2923func (r *ProjectsWorkerPoolsService) Patch(name string, workerpool *WorkerPool) *ProjectsWorkerPoolsPatchCall {
2924	c := &ProjectsWorkerPoolsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2925	c.name = name
2926	c.workerpool = workerpool
2927	return c
2928}
2929
2930// UpdateMask sets the optional parameter "updateMask": A mask
2931// specifying which fields in `WorkerPool` should be updated.
2932func (c *ProjectsWorkerPoolsPatchCall) UpdateMask(updateMask string) *ProjectsWorkerPoolsPatchCall {
2933	c.urlParams_.Set("updateMask", updateMask)
2934	return c
2935}
2936
2937// Fields allows partial responses to be retrieved. See
2938// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
2939// for more information.
2940func (c *ProjectsWorkerPoolsPatchCall) Fields(s ...googleapi.Field) *ProjectsWorkerPoolsPatchCall {
2941	c.urlParams_.Set("fields", googleapi.CombineFields(s))
2942	return c
2943}
2944
2945// Context sets the context to be used in this call's Do method. Any
2946// pending HTTP request will be aborted if the provided context is
2947// canceled.
2948func (c *ProjectsWorkerPoolsPatchCall) Context(ctx context.Context) *ProjectsWorkerPoolsPatchCall {
2949	c.ctx_ = ctx
2950	return c
2951}
2952
2953// Header returns an http.Header that can be modified by the caller to
2954// add HTTP headers to the request.
2955func (c *ProjectsWorkerPoolsPatchCall) Header() http.Header {
2956	if c.header_ == nil {
2957		c.header_ = make(http.Header)
2958	}
2959	return c.header_
2960}
2961
2962func (c *ProjectsWorkerPoolsPatchCall) doRequest(alt string) (*http.Response, error) {
2963	reqHeaders := make(http.Header)
2964	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200707")
2965	for k, v := range c.header_ {
2966		reqHeaders[k] = v
2967	}
2968	reqHeaders.Set("User-Agent", c.s.userAgent())
2969	var body io.Reader = nil
2970	body, err := googleapi.WithoutDataWrapper.JSONReader(c.workerpool)
2971	if err != nil {
2972		return nil, err
2973	}
2974	reqHeaders.Set("Content-Type", "application/json")
2975	c.urlParams_.Set("alt", alt)
2976	c.urlParams_.Set("prettyPrint", "false")
2977	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
2978	urls += "?" + c.urlParams_.Encode()
2979	req, err := http.NewRequest("PATCH", urls, body)
2980	if err != nil {
2981		return nil, err
2982	}
2983	req.Header = reqHeaders
2984	googleapi.Expand(req.URL, map[string]string{
2985		"name": c.name,
2986	})
2987	return gensupport.SendRequest(c.ctx_, c.s.client, req)
2988}
2989
2990// Do executes the "cloudbuild.projects.workerPools.patch" call.
2991// Exactly one of *WorkerPool or error will be non-nil. Any non-2xx
2992// status code is an error. Response headers are in either
2993// *WorkerPool.ServerResponse.Header or (if a response was returned at
2994// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
2995// to check whether the returned error was because
2996// http.StatusNotModified was returned.
2997func (c *ProjectsWorkerPoolsPatchCall) Do(opts ...googleapi.CallOption) (*WorkerPool, error) {
2998	gensupport.SetOptions(c.urlParams_, opts...)
2999	res, err := c.doRequest("json")
3000	if res != nil && res.StatusCode == http.StatusNotModified {
3001		if res.Body != nil {
3002			res.Body.Close()
3003		}
3004		return nil, &googleapi.Error{
3005			Code:   res.StatusCode,
3006			Header: res.Header,
3007		}
3008	}
3009	if err != nil {
3010		return nil, err
3011	}
3012	defer googleapi.CloseBody(res)
3013	if err := googleapi.CheckResponse(res); err != nil {
3014		return nil, err
3015	}
3016	ret := &WorkerPool{
3017		ServerResponse: googleapi.ServerResponse{
3018			Header:         res.Header,
3019			HTTPStatusCode: res.StatusCode,
3020		},
3021	}
3022	target := &ret
3023	if err := gensupport.DecodeResponse(target, res); err != nil {
3024		return nil, err
3025	}
3026	return ret, nil
3027	// {
3028	//   "description": "Updates a `WorkerPool`.",
3029	//   "flatPath": "v1alpha2/projects/{projectsId}/workerPools/{workerPoolsId}",
3030	//   "httpMethod": "PATCH",
3031	//   "id": "cloudbuild.projects.workerPools.patch",
3032	//   "parameterOrder": [
3033	//     "name"
3034	//   ],
3035	//   "parameters": {
3036	//     "name": {
3037	//       "description": "Output only. The resource name of the `WorkerPool`.\nFormat of the name is `projects/{project_id}/workerPools/{worker_pool_id}`,\nwhere the value of {worker_pool_id} is provided in the CreateWorkerPool\nrequest.",
3038	//       "location": "path",
3039	//       "pattern": "^projects/[^/]+/workerPools/[^/]+$",
3040	//       "required": true,
3041	//       "type": "string"
3042	//     },
3043	//     "updateMask": {
3044	//       "description": "A mask specifying which fields in `WorkerPool` should be updated.",
3045	//       "format": "google-fieldmask",
3046	//       "location": "query",
3047	//       "type": "string"
3048	//     }
3049	//   },
3050	//   "path": "v1alpha2/{+name}",
3051	//   "request": {
3052	//     "$ref": "WorkerPool"
3053	//   },
3054	//   "response": {
3055	//     "$ref": "WorkerPool"
3056	//   },
3057	//   "scopes": [
3058	//     "https://www.googleapis.com/auth/cloud-platform"
3059	//   ]
3060	// }
3061
3062}
3063