...

Source file src/google.golang.org/api/run/v2/run-gen.go

Documentation: google.golang.org/api/run/v2

     1  // Copyright 2024 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 run provides access to the Cloud Run Admin API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/run/
    10  //
    11  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/run/v2"
    27  //	...
    28  //	ctx := context.Background()
    29  //	runService, err := run.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // To use an API key for authentication (note: some APIs do not support API
    38  // keys), use [google.golang.org/api/option.WithAPIKey]:
    39  //
    40  //	runService, err := run.NewService(ctx, option.WithAPIKey("AIza..."))
    41  //
    42  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    43  // flow, use [google.golang.org/api/option.WithTokenSource]:
    44  //
    45  //	config := &oauth2.Config{...}
    46  //	// ...
    47  //	token, err := config.Exchange(ctx, ...)
    48  //	runService, err := run.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package run // import "google.golang.org/api/run/v2"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "run:v2"
    90  const apiName = "run"
    91  const apiVersion = "v2"
    92  const basePath = "https://run.googleapis.com/"
    93  const basePathTemplate = "https://run.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://run.mtls.googleapis.com/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// See, edit, configure, and delete your Google Cloud data and see the email
    99  	// address for your Google Account.
   100  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   101  )
   102  
   103  // NewService creates a new Service.
   104  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   105  	scopesOption := internaloption.WithDefaultScopes(
   106  		"https://www.googleapis.com/auth/cloud-platform",
   107  	)
   108  	// NOTE: prepend, so we don't override user-specified scopes.
   109  	opts = append([]option.ClientOption{scopesOption}, opts...)
   110  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   111  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   112  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   113  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   114  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   115  	if err != nil {
   116  		return nil, err
   117  	}
   118  	s, err := New(client)
   119  	if err != nil {
   120  		return nil, err
   121  	}
   122  	if endpoint != "" {
   123  		s.BasePath = endpoint
   124  	}
   125  	return s, nil
   126  }
   127  
   128  // New creates a new Service. It uses the provided http.Client for requests.
   129  //
   130  // Deprecated: please use NewService instead.
   131  // To provide a custom HTTP client, use option.WithHTTPClient.
   132  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   133  func New(client *http.Client) (*Service, error) {
   134  	if client == nil {
   135  		return nil, errors.New("client is nil")
   136  	}
   137  	s := &Service{client: client, BasePath: basePath}
   138  	s.Projects = NewProjectsService(s)
   139  	return s, nil
   140  }
   141  
   142  type Service struct {
   143  	client    *http.Client
   144  	BasePath  string // API endpoint base URL
   145  	UserAgent string // optional additional User-Agent fragment
   146  
   147  	Projects *ProjectsService
   148  }
   149  
   150  func (s *Service) userAgent() string {
   151  	if s.UserAgent == "" {
   152  		return googleapi.UserAgent
   153  	}
   154  	return googleapi.UserAgent + " " + s.UserAgent
   155  }
   156  
   157  func NewProjectsService(s *Service) *ProjectsService {
   158  	rs := &ProjectsService{s: s}
   159  	rs.Locations = NewProjectsLocationsService(s)
   160  	return rs
   161  }
   162  
   163  type ProjectsService struct {
   164  	s *Service
   165  
   166  	Locations *ProjectsLocationsService
   167  }
   168  
   169  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   170  	rs := &ProjectsLocationsService{s: s}
   171  	rs.Jobs = NewProjectsLocationsJobsService(s)
   172  	rs.Operations = NewProjectsLocationsOperationsService(s)
   173  	rs.Services = NewProjectsLocationsServicesService(s)
   174  	return rs
   175  }
   176  
   177  type ProjectsLocationsService struct {
   178  	s *Service
   179  
   180  	Jobs *ProjectsLocationsJobsService
   181  
   182  	Operations *ProjectsLocationsOperationsService
   183  
   184  	Services *ProjectsLocationsServicesService
   185  }
   186  
   187  func NewProjectsLocationsJobsService(s *Service) *ProjectsLocationsJobsService {
   188  	rs := &ProjectsLocationsJobsService{s: s}
   189  	rs.Executions = NewProjectsLocationsJobsExecutionsService(s)
   190  	return rs
   191  }
   192  
   193  type ProjectsLocationsJobsService struct {
   194  	s *Service
   195  
   196  	Executions *ProjectsLocationsJobsExecutionsService
   197  }
   198  
   199  func NewProjectsLocationsJobsExecutionsService(s *Service) *ProjectsLocationsJobsExecutionsService {
   200  	rs := &ProjectsLocationsJobsExecutionsService{s: s}
   201  	rs.Tasks = NewProjectsLocationsJobsExecutionsTasksService(s)
   202  	return rs
   203  }
   204  
   205  type ProjectsLocationsJobsExecutionsService struct {
   206  	s *Service
   207  
   208  	Tasks *ProjectsLocationsJobsExecutionsTasksService
   209  }
   210  
   211  func NewProjectsLocationsJobsExecutionsTasksService(s *Service) *ProjectsLocationsJobsExecutionsTasksService {
   212  	rs := &ProjectsLocationsJobsExecutionsTasksService{s: s}
   213  	return rs
   214  }
   215  
   216  type ProjectsLocationsJobsExecutionsTasksService struct {
   217  	s *Service
   218  }
   219  
   220  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   221  	rs := &ProjectsLocationsOperationsService{s: s}
   222  	return rs
   223  }
   224  
   225  type ProjectsLocationsOperationsService struct {
   226  	s *Service
   227  }
   228  
   229  func NewProjectsLocationsServicesService(s *Service) *ProjectsLocationsServicesService {
   230  	rs := &ProjectsLocationsServicesService{s: s}
   231  	rs.Revisions = NewProjectsLocationsServicesRevisionsService(s)
   232  	return rs
   233  }
   234  
   235  type ProjectsLocationsServicesService struct {
   236  	s *Service
   237  
   238  	Revisions *ProjectsLocationsServicesRevisionsService
   239  }
   240  
   241  func NewProjectsLocationsServicesRevisionsService(s *Service) *ProjectsLocationsServicesRevisionsService {
   242  	rs := &ProjectsLocationsServicesRevisionsService{s: s}
   243  	return rs
   244  }
   245  
   246  type ProjectsLocationsServicesRevisionsService struct {
   247  	s *Service
   248  }
   249  
   250  // GoogleCloudRunV2BinaryAuthorization: Settings for Binary Authorization
   251  // feature.
   252  type GoogleCloudRunV2BinaryAuthorization struct {
   253  	// BreakglassJustification: Optional. If present, indicates to use Breakglass
   254  	// using this justification. If use_default is False, then it must be empty.
   255  	// For more information on breakglass, see
   256  	// https://cloud.google.com/binary-authorization/docs/using-breakglass
   257  	BreakglassJustification string `json:"breakglassJustification,omitempty"`
   258  	// Policy: Optional. The path to a binary authorization policy. Format:
   259  	// projects/{project}/platforms/cloudRun/{policy-name}
   260  	Policy string `json:"policy,omitempty"`
   261  	// UseDefault: Optional. If True, indicates to use the default project's binary
   262  	// authorization policy. If False, binary authorization will be disabled.
   263  	UseDefault bool `json:"useDefault,omitempty"`
   264  	// ForceSendFields is a list of field names (e.g. "BreakglassJustification") to
   265  	// unconditionally include in API requests. By default, fields with empty or
   266  	// default values are omitted from API requests. See
   267  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   268  	// details.
   269  	ForceSendFields []string `json:"-"`
   270  	// NullFields is a list of field names (e.g. "BreakglassJustification") to
   271  	// include in API requests with the JSON null value. By default, fields with
   272  	// empty values are omitted from API requests. See
   273  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   274  	NullFields []string `json:"-"`
   275  }
   276  
   277  func (s *GoogleCloudRunV2BinaryAuthorization) MarshalJSON() ([]byte, error) {
   278  	type NoMethod GoogleCloudRunV2BinaryAuthorization
   279  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   280  }
   281  
   282  // GoogleCloudRunV2CancelExecutionRequest: Request message for deleting an
   283  // Execution.
   284  type GoogleCloudRunV2CancelExecutionRequest struct {
   285  	// Etag: A system-generated fingerprint for this version of the resource. This
   286  	// may be used to detect modification conflict during updates.
   287  	Etag string `json:"etag,omitempty"`
   288  	// ValidateOnly: Indicates that the request should be validated without
   289  	// actually cancelling any resources.
   290  	ValidateOnly bool `json:"validateOnly,omitempty"`
   291  	// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally
   292  	// include in API requests. By default, fields with empty or default values are
   293  	// omitted from API requests. See
   294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   295  	// details.
   296  	ForceSendFields []string `json:"-"`
   297  	// NullFields is a list of field names (e.g. "Etag") to include in API requests
   298  	// with the JSON null value. By default, fields with empty values are omitted
   299  	// from API requests. See
   300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   301  	NullFields []string `json:"-"`
   302  }
   303  
   304  func (s *GoogleCloudRunV2CancelExecutionRequest) MarshalJSON() ([]byte, error) {
   305  	type NoMethod GoogleCloudRunV2CancelExecutionRequest
   306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   307  }
   308  
   309  // GoogleCloudRunV2CloudSqlInstance: Represents a set of Cloud SQL instances.
   310  // Each one will be available under /cloudsql/[instance]. Visit
   311  // https://cloud.google.com/sql/docs/mysql/connect-run for more information on
   312  // how to connect Cloud SQL and Cloud Run.
   313  type GoogleCloudRunV2CloudSqlInstance struct {
   314  	// Instances: The Cloud SQL instance connection names, as can be found in
   315  	// https://console.cloud.google.com/sql/instances. Visit
   316  	// https://cloud.google.com/sql/docs/mysql/connect-run for more information on
   317  	// how to connect Cloud SQL and Cloud Run. Format:
   318  	// {project}:{location}:{instance}
   319  	Instances []string `json:"instances,omitempty"`
   320  	// ForceSendFields is a list of field names (e.g. "Instances") to
   321  	// unconditionally include in API requests. By default, fields with empty or
   322  	// default values are omitted from API requests. See
   323  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   324  	// details.
   325  	ForceSendFields []string `json:"-"`
   326  	// NullFields is a list of field names (e.g. "Instances") to include in API
   327  	// requests with the JSON null value. By default, fields with empty values are
   328  	// omitted from API requests. See
   329  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   330  	NullFields []string `json:"-"`
   331  }
   332  
   333  func (s *GoogleCloudRunV2CloudSqlInstance) MarshalJSON() ([]byte, error) {
   334  	type NoMethod GoogleCloudRunV2CloudSqlInstance
   335  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   336  }
   337  
   338  // GoogleCloudRunV2Condition: Defines a status condition for a resource.
   339  type GoogleCloudRunV2Condition struct {
   340  	// ExecutionReason: Output only. A reason for the execution condition.
   341  	//
   342  	// Possible values:
   343  	//   "EXECUTION_REASON_UNDEFINED" - Default value.
   344  	//   "JOB_STATUS_SERVICE_POLLING_ERROR" - Internal system error getting
   345  	// execution status. System will retry.
   346  	//   "NON_ZERO_EXIT_CODE" - A task reached its retry limit and the last attempt
   347  	// failed due to the user container exiting with a non-zero exit code.
   348  	//   "CANCELLED" - The execution was cancelled by users.
   349  	//   "CANCELLING" - The execution is in the process of being cancelled.
   350  	//   "DELETED" - The execution was deleted.
   351  	ExecutionReason string `json:"executionReason,omitempty"`
   352  	// LastTransitionTime: Last time the condition transitioned from one status to
   353  	// another.
   354  	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
   355  	// Message: Human readable message indicating details about the current status.
   356  	Message string `json:"message,omitempty"`
   357  	// Reason: Output only. A common (service-level) reason for this condition.
   358  	//
   359  	// Possible values:
   360  	//   "COMMON_REASON_UNDEFINED" - Default value.
   361  	//   "UNKNOWN" - Reason unknown. Further details will be in message.
   362  	//   "REVISION_FAILED" - Revision creation process failed.
   363  	//   "PROGRESS_DEADLINE_EXCEEDED" - Timed out waiting for completion.
   364  	//   "CONTAINER_MISSING" - The container image path is incorrect.
   365  	//   "CONTAINER_PERMISSION_DENIED" - Insufficient permissions on the container
   366  	// image.
   367  	//   "CONTAINER_IMAGE_UNAUTHORIZED" - Container image is not authorized by
   368  	// policy.
   369  	//   "CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED" - Container image policy
   370  	// authorization check failed.
   371  	//   "ENCRYPTION_KEY_PERMISSION_DENIED" - Insufficient permissions on
   372  	// encryption key.
   373  	//   "ENCRYPTION_KEY_CHECK_FAILED" - Permission check on encryption key failed.
   374  	//   "SECRETS_ACCESS_CHECK_FAILED" - At least one Access check on secrets
   375  	// failed.
   376  	//   "WAITING_FOR_OPERATION" - Waiting for operation to complete.
   377  	//   "IMMEDIATE_RETRY" - System will retry immediately.
   378  	//   "POSTPONED_RETRY" - System will retry later; current attempt failed.
   379  	//   "INTERNAL" - An internal error occurred. Further information may be in the
   380  	// message.
   381  	Reason string `json:"reason,omitempty"`
   382  	// RevisionReason: Output only. A reason for the revision condition.
   383  	//
   384  	// Possible values:
   385  	//   "REVISION_REASON_UNDEFINED" - Default value.
   386  	//   "PENDING" - Revision in Pending state.
   387  	//   "RESERVE" - Revision is in Reserve state.
   388  	//   "RETIRED" - Revision is Retired.
   389  	//   "RETIRING" - Revision is being retired.
   390  	//   "RECREATING" - Revision is being recreated.
   391  	//   "HEALTH_CHECK_CONTAINER_ERROR" - There was a health check error.
   392  	//   "CUSTOMIZED_PATH_RESPONSE_PENDING" - Health check failed due to user error
   393  	// from customized path of the container. System will retry.
   394  	//   "MIN_INSTANCES_NOT_PROVISIONED" - A revision with min_instance_count > 0
   395  	// was created and is reserved, but it was not configured to serve traffic, so
   396  	// it's not live. This can also happen momentarily during traffic migration.
   397  	//   "ACTIVE_REVISION_LIMIT_REACHED" - The maximum allowed number of active
   398  	// revisions has been reached.
   399  	//   "NO_DEPLOYMENT" - There was no deployment defined. This value is no longer
   400  	// used, but Services created in older versions of the API might contain this
   401  	// value.
   402  	//   "HEALTH_CHECK_SKIPPED" - A revision's container has no port specified
   403  	// since the revision is of a manually scaled service with 0 instance count
   404  	//   "MIN_INSTANCES_WARMING" - A revision with min_instance_count > 0 was
   405  	// created and is waiting for enough instances to begin a traffic migration.
   406  	RevisionReason string `json:"revisionReason,omitempty"`
   407  	// Severity: How to interpret failures of this condition, one of Error,
   408  	// Warning, Info
   409  	//
   410  	// Possible values:
   411  	//   "SEVERITY_UNSPECIFIED" - Unspecified severity
   412  	//   "ERROR" - Error severity.
   413  	//   "WARNING" - Warning severity.
   414  	//   "INFO" - Info severity.
   415  	Severity string `json:"severity,omitempty"`
   416  	// State: State of the condition.
   417  	//
   418  	// Possible values:
   419  	//   "STATE_UNSPECIFIED" - The default value. This value is used if the state
   420  	// is omitted.
   421  	//   "CONDITION_PENDING" - Transient state: Reconciliation has not started yet.
   422  	//   "CONDITION_RECONCILING" - Transient state: reconciliation is still in
   423  	// progress.
   424  	//   "CONDITION_FAILED" - Terminal state: Reconciliation did not succeed.
   425  	//   "CONDITION_SUCCEEDED" - Terminal state: Reconciliation completed
   426  	// successfully.
   427  	State string `json:"state,omitempty"`
   428  	// Type: type is used to communicate the status of the reconciliation process.
   429  	// See also:
   430  	// https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
   431  	// Types common to all resources include: * "Ready": True when the Resource is
   432  	// ready.
   433  	Type string `json:"type,omitempty"`
   434  	// ForceSendFields is a list of field names (e.g. "ExecutionReason") to
   435  	// unconditionally include in API requests. By default, fields with empty or
   436  	// default values are omitted from API requests. See
   437  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   438  	// details.
   439  	ForceSendFields []string `json:"-"`
   440  	// NullFields is a list of field names (e.g. "ExecutionReason") to include in
   441  	// API requests with the JSON null value. By default, fields with empty values
   442  	// are omitted from API requests. See
   443  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   444  	NullFields []string `json:"-"`
   445  }
   446  
   447  func (s *GoogleCloudRunV2Condition) MarshalJSON() ([]byte, error) {
   448  	type NoMethod GoogleCloudRunV2Condition
   449  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   450  }
   451  
   452  // GoogleCloudRunV2Container: A single application container. This specifies
   453  // both the container to run, the command to run in the container and the
   454  // arguments to supply to it. Note that additional arguments can be supplied by
   455  // the system to the container at runtime.
   456  type GoogleCloudRunV2Container struct {
   457  	// Args: Arguments to the entrypoint. The docker image's CMD is used if this is
   458  	// not provided.
   459  	Args []string `json:"args,omitempty"`
   460  	// Command: Entrypoint array. Not executed within a shell. The docker image's
   461  	// ENTRYPOINT is used if this is not provided.
   462  	Command []string `json:"command,omitempty"`
   463  	// DependsOn: Names of the containers that must start before this container.
   464  	DependsOn []string `json:"dependsOn,omitempty"`
   465  	// Env: List of environment variables to set in the container.
   466  	Env []*GoogleCloudRunV2EnvVar `json:"env,omitempty"`
   467  	// Image: Required. Name of the container image in Dockerhub, Google Artifact
   468  	// Registry, or Google Container Registry. If the host is not provided,
   469  	// Dockerhub is assumed.
   470  	Image string `json:"image,omitempty"`
   471  	// LivenessProbe: Periodic probe of container liveness. Container will be
   472  	// restarted if the probe fails.
   473  	LivenessProbe *GoogleCloudRunV2Probe `json:"livenessProbe,omitempty"`
   474  	// Name: Name of the container specified as a DNS_LABEL (RFC 1123).
   475  	Name string `json:"name,omitempty"`
   476  	// Ports: List of ports to expose from the container. Only a single port can be
   477  	// specified. The specified ports must be listening on all interfaces (0.0.0.0)
   478  	// within the container to be accessible. If omitted, a port number will be
   479  	// chosen and passed to the container through the PORT environment variable for
   480  	// the container to listen on.
   481  	Ports []*GoogleCloudRunV2ContainerPort `json:"ports,omitempty"`
   482  	// Resources: Compute Resource requirements by this container.
   483  	Resources *GoogleCloudRunV2ResourceRequirements `json:"resources,omitempty"`
   484  	// StartupProbe: Startup probe of application within the container. All other
   485  	// probes are disabled if a startup probe is provided, until it succeeds.
   486  	// Container will not be added to service endpoints if the probe fails.
   487  	StartupProbe *GoogleCloudRunV2Probe `json:"startupProbe,omitempty"`
   488  	// VolumeMounts: Volume to mount into the container's filesystem.
   489  	VolumeMounts []*GoogleCloudRunV2VolumeMount `json:"volumeMounts,omitempty"`
   490  	// WorkingDir: Container's working directory. If not specified, the container
   491  	// runtime's default will be used, which might be configured in the container
   492  	// image.
   493  	WorkingDir string `json:"workingDir,omitempty"`
   494  	// ForceSendFields is a list of field names (e.g. "Args") to unconditionally
   495  	// include in API requests. By default, fields with empty or default values are
   496  	// omitted from API requests. See
   497  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   498  	// details.
   499  	ForceSendFields []string `json:"-"`
   500  	// NullFields is a list of field names (e.g. "Args") to include in API requests
   501  	// with the JSON null value. By default, fields with empty values are omitted
   502  	// from API requests. See
   503  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   504  	NullFields []string `json:"-"`
   505  }
   506  
   507  func (s *GoogleCloudRunV2Container) MarshalJSON() ([]byte, error) {
   508  	type NoMethod GoogleCloudRunV2Container
   509  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   510  }
   511  
   512  // GoogleCloudRunV2ContainerOverride: Per-container override specification.
   513  type GoogleCloudRunV2ContainerOverride struct {
   514  	// Args: Optional. Arguments to the entrypoint. Will replace existing args for
   515  	// override.
   516  	Args []string `json:"args,omitempty"`
   517  	// ClearArgs: Optional. True if the intention is to clear out existing args
   518  	// list.
   519  	ClearArgs bool `json:"clearArgs,omitempty"`
   520  	// Env: List of environment variables to set in the container. Will be merged
   521  	// with existing env for override.
   522  	Env []*GoogleCloudRunV2EnvVar `json:"env,omitempty"`
   523  	// Name: The name of the container specified as a DNS_LABEL.
   524  	Name string `json:"name,omitempty"`
   525  	// ForceSendFields is a list of field names (e.g. "Args") to unconditionally
   526  	// include in API requests. By default, fields with empty or default values are
   527  	// omitted from API requests. See
   528  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   529  	// details.
   530  	ForceSendFields []string `json:"-"`
   531  	// NullFields is a list of field names (e.g. "Args") to include in API requests
   532  	// with the JSON null value. By default, fields with empty values are omitted
   533  	// from API requests. See
   534  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   535  	NullFields []string `json:"-"`
   536  }
   537  
   538  func (s *GoogleCloudRunV2ContainerOverride) MarshalJSON() ([]byte, error) {
   539  	type NoMethod GoogleCloudRunV2ContainerOverride
   540  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   541  }
   542  
   543  // GoogleCloudRunV2ContainerPort: ContainerPort represents a network port in a
   544  // single container.
   545  type GoogleCloudRunV2ContainerPort struct {
   546  	// ContainerPort: Port number the container listens on. This must be a valid
   547  	// TCP port number, 0 < container_port < 65536.
   548  	ContainerPort int64 `json:"containerPort,omitempty"`
   549  	// Name: If specified, used to specify which protocol to use. Allowed values
   550  	// are "http1" and "h2c".
   551  	Name string `json:"name,omitempty"`
   552  	// ForceSendFields is a list of field names (e.g. "ContainerPort") to
   553  	// unconditionally include in API requests. By default, fields with empty or
   554  	// default values are omitted from API requests. See
   555  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   556  	// details.
   557  	ForceSendFields []string `json:"-"`
   558  	// NullFields is a list of field names (e.g. "ContainerPort") to include in API
   559  	// requests with the JSON null value. By default, fields with empty values are
   560  	// omitted from API requests. See
   561  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   562  	NullFields []string `json:"-"`
   563  }
   564  
   565  func (s *GoogleCloudRunV2ContainerPort) MarshalJSON() ([]byte, error) {
   566  	type NoMethod GoogleCloudRunV2ContainerPort
   567  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   568  }
   569  
   570  // GoogleCloudRunV2EmptyDirVolumeSource: In memory (tmpfs) ephemeral storage.
   571  // It is ephemeral in the sense that when the sandbox is taken down, the data
   572  // is destroyed with it (it does not persist across sandbox runs).
   573  type GoogleCloudRunV2EmptyDirVolumeSource struct {
   574  	// Medium: The medium on which the data is stored. Acceptable values today is
   575  	// only MEMORY or none. When none, the default will currently be backed by
   576  	// memory but could change over time. +optional
   577  	//
   578  	// Possible values:
   579  	//   "MEDIUM_UNSPECIFIED" - When not specified, falls back to the default
   580  	// implementation which is currently in memory (this may change over time).
   581  	//   "MEMORY" - Explicitly set the EmptyDir to be in memory. Uses tmpfs.
   582  	Medium string `json:"medium,omitempty"`
   583  	// SizeLimit: Limit on the storage usable by this EmptyDir volume. The size
   584  	// limit is also applicable for memory medium. The maximum usage on memory
   585  	// medium EmptyDir would be the minimum value between the SizeLimit specified
   586  	// here and the sum of memory limits of all containers. The default is nil
   587  	// which means that the limit is undefined. More info:
   588  	// https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume.
   589  	// Info in Kubernetes:
   590  	// https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
   591  	SizeLimit string `json:"sizeLimit,omitempty"`
   592  	// ForceSendFields is a list of field names (e.g. "Medium") to unconditionally
   593  	// include in API requests. By default, fields with empty or default values are
   594  	// omitted from API requests. See
   595  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   596  	// details.
   597  	ForceSendFields []string `json:"-"`
   598  	// NullFields is a list of field names (e.g. "Medium") to include in API
   599  	// requests with the JSON null value. By default, fields with empty values are
   600  	// omitted from API requests. See
   601  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   602  	NullFields []string `json:"-"`
   603  }
   604  
   605  func (s *GoogleCloudRunV2EmptyDirVolumeSource) MarshalJSON() ([]byte, error) {
   606  	type NoMethod GoogleCloudRunV2EmptyDirVolumeSource
   607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   608  }
   609  
   610  // GoogleCloudRunV2EnvVar: EnvVar represents an environment variable present in
   611  // a Container.
   612  type GoogleCloudRunV2EnvVar struct {
   613  	// Name: Required. Name of the environment variable. Must not exceed 32768
   614  	// characters.
   615  	Name string `json:"name,omitempty"`
   616  	// Value: Variable references $(VAR_NAME) are expanded using the previous
   617  	// defined environment variables in the container and any route environment
   618  	// variables. If a variable cannot be resolved, the reference in the input
   619  	// string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
   620  	// double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
   621  	// regardless of whether the variable exists or not. Defaults to "", and the
   622  	// maximum length is 32768 bytes.
   623  	Value string `json:"value,omitempty"`
   624  	// ValueSource: Source for the environment variable's value.
   625  	ValueSource *GoogleCloudRunV2EnvVarSource `json:"valueSource,omitempty"`
   626  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
   627  	// include in API requests. By default, fields with empty or default values are
   628  	// omitted from API requests. See
   629  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   630  	// details.
   631  	ForceSendFields []string `json:"-"`
   632  	// NullFields is a list of field names (e.g. "Name") to include in API requests
   633  	// with the JSON null value. By default, fields with empty values are omitted
   634  	// from API requests. See
   635  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   636  	NullFields []string `json:"-"`
   637  }
   638  
   639  func (s *GoogleCloudRunV2EnvVar) MarshalJSON() ([]byte, error) {
   640  	type NoMethod GoogleCloudRunV2EnvVar
   641  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   642  }
   643  
   644  // GoogleCloudRunV2EnvVarSource: EnvVarSource represents a source for the value
   645  // of an EnvVar.
   646  type GoogleCloudRunV2EnvVarSource struct {
   647  	// SecretKeyRef: Selects a secret and a specific version from Cloud Secret
   648  	// Manager.
   649  	SecretKeyRef *GoogleCloudRunV2SecretKeySelector `json:"secretKeyRef,omitempty"`
   650  	// ForceSendFields is a list of field names (e.g. "SecretKeyRef") to
   651  	// unconditionally include in API requests. By default, fields with empty or
   652  	// default values are omitted from API requests. See
   653  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   654  	// details.
   655  	ForceSendFields []string `json:"-"`
   656  	// NullFields is a list of field names (e.g. "SecretKeyRef") to include in API
   657  	// requests with the JSON null value. By default, fields with empty values are
   658  	// omitted from API requests. See
   659  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   660  	NullFields []string `json:"-"`
   661  }
   662  
   663  func (s *GoogleCloudRunV2EnvVarSource) MarshalJSON() ([]byte, error) {
   664  	type NoMethod GoogleCloudRunV2EnvVarSource
   665  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   666  }
   667  
   668  // GoogleCloudRunV2Execution: Execution represents the configuration of a
   669  // single execution. A execution an immutable resource that references a
   670  // container image which is run to completion.
   671  type GoogleCloudRunV2Execution struct {
   672  	// Annotations: Output only. Unstructured key value map that may be set by
   673  	// external tools to store and arbitrary metadata. They are not queryable and
   674  	// should be preserved when modifying objects.
   675  	Annotations map[string]string `json:"annotations,omitempty"`
   676  	// CancelledCount: Output only. The number of tasks which reached phase
   677  	// Cancelled.
   678  	CancelledCount int64 `json:"cancelledCount,omitempty"`
   679  	// CompletionTime: Output only. Represents time when the execution was
   680  	// completed. It is not guaranteed to be set in happens-before order across
   681  	// separate operations.
   682  	CompletionTime string `json:"completionTime,omitempty"`
   683  	// Conditions: Output only. The Condition of this Execution, containing its
   684  	// readiness status, and detailed error information in case it did not reach
   685  	// the desired state.
   686  	Conditions []*GoogleCloudRunV2Condition `json:"conditions,omitempty"`
   687  	// CreateTime: Output only. Represents time when the execution was acknowledged
   688  	// by the execution controller. It is not guaranteed to be set in
   689  	// happens-before order across separate operations.
   690  	CreateTime string `json:"createTime,omitempty"`
   691  	// DeleteTime: Output only. For a deleted resource, the deletion time. It is
   692  	// only populated as a response to a Delete request.
   693  	DeleteTime string `json:"deleteTime,omitempty"`
   694  	// Etag: Output only. A system-generated fingerprint for this version of the
   695  	// resource. May be used to detect modification conflict during updates.
   696  	Etag string `json:"etag,omitempty"`
   697  	// ExpireTime: Output only. For a deleted resource, the time after which it
   698  	// will be permamently deleted. It is only populated as a response to a Delete
   699  	// request.
   700  	ExpireTime string `json:"expireTime,omitempty"`
   701  	// FailedCount: Output only. The number of tasks which reached phase Failed.
   702  	FailedCount int64 `json:"failedCount,omitempty"`
   703  	// Generation: Output only. A number that monotonically increases every time
   704  	// the user modifies the desired state.
   705  	Generation int64 `json:"generation,omitempty,string"`
   706  	// Job: Output only. The name of the parent Job.
   707  	Job string `json:"job,omitempty"`
   708  	// Labels: Output only. Unstructured key value map that can be used to organize
   709  	// and categorize objects. User-provided labels are shared with Google's
   710  	// billing system, so they can be used to filter, or break down billing charges
   711  	// by team, component, environment, state, etc. For more information, visit
   712  	// https://cloud.google.com/resource-manager/docs/creating-managing-labels or
   713  	// https://cloud.google.com/run/docs/configuring/labels
   714  	Labels map[string]string `json:"labels,omitempty"`
   715  	// LaunchStage: The least stable launch stage needed to create this resource,
   716  	// as defined by Google Cloud Platform Launch Stages
   717  	// (https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`,
   718  	// `BETA`, and `GA`. Note that this value might not be what was used as input.
   719  	// For example, if ALPHA was provided as input in the parent resource, but only
   720  	// BETA and GA-level features are were, this field will be BETA.
   721  	//
   722  	// Possible values:
   723  	//   "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value.
   724  	//   "UNIMPLEMENTED" - The feature is not yet implemented. Users can not use
   725  	// it.
   726  	//   "PRELAUNCH" - Prelaunch features are hidden from users and are only
   727  	// visible internally.
   728  	//   "EARLY_ACCESS" - Early Access features are limited to a closed group of
   729  	// testers. To use these features, you must sign up in advance and sign a
   730  	// Trusted Tester agreement (which includes confidentiality provisions). These
   731  	// features may be unstable, changed in backward-incompatible ways, and are not
   732  	// guaranteed to be released.
   733  	//   "ALPHA" - Alpha is a limited availability test for releases before they
   734  	// are cleared for widespread use. By Alpha, all significant design issues are
   735  	// resolved and we are in the process of verifying functionality. Alpha
   736  	// customers need to apply for access, agree to applicable terms, and have
   737  	// their projects allowlisted. Alpha releases don't have to be feature
   738  	// complete, no SLAs are provided, and there are no technical support
   739  	// obligations, but they will be far enough along that customers can actually
   740  	// use them in test environments or for limited-use tests -- just like they
   741  	// would in normal production cases.
   742  	//   "BETA" - Beta is the point at which we are ready to open a release for any
   743  	// customer to use. There are no SLA or technical support obligations in a Beta
   744  	// release. Products will be complete from a feature perspective, but may have
   745  	// some open outstanding issues. Beta releases are suitable for limited
   746  	// production use cases.
   747  	//   "GA" - GA features are open to all developers and are considered stable
   748  	// and fully qualified for production use.
   749  	//   "DEPRECATED" - Deprecated features are scheduled to be shut down and
   750  	// removed. For more information, see the "Deprecation Policy" section of our
   751  	// [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud
   752  	// Platform Subject to the Deprecation
   753  	// Policy](https://cloud.google.com/terms/deprecation) documentation.
   754  	LaunchStage string `json:"launchStage,omitempty"`
   755  	// LogUri: Output only. URI where logs for this execution can be found in Cloud
   756  	// Console.
   757  	LogUri string `json:"logUri,omitempty"`
   758  	// Name: Output only. The unique name of this Execution.
   759  	Name string `json:"name,omitempty"`
   760  	// ObservedGeneration: Output only. The generation of this Execution. See
   761  	// comments in `reconciling` for additional information on reconciliation
   762  	// process in Cloud Run.
   763  	ObservedGeneration int64 `json:"observedGeneration,omitempty,string"`
   764  	// Parallelism: Output only. Specifies the maximum desired number of tasks the
   765  	// execution should run at any given time. Must be <= task_count. The actual
   766  	// number of tasks running in steady state will be less than this number when
   767  	// ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when the
   768  	// work left to do is less than max parallelism.
   769  	Parallelism int64 `json:"parallelism,omitempty"`
   770  	// Reconciling: Output only. Indicates whether the resource's reconciliation is
   771  	// still in progress. See comments in `Job.reconciling` for additional
   772  	// information on reconciliation process in Cloud Run.
   773  	Reconciling bool `json:"reconciling,omitempty"`
   774  	// RetriedCount: Output only. The number of tasks which have retried at least
   775  	// once.
   776  	RetriedCount int64 `json:"retriedCount,omitempty"`
   777  	// RunningCount: Output only. The number of actively running tasks.
   778  	RunningCount int64 `json:"runningCount,omitempty"`
   779  	// SatisfiesPzs: Output only. Reserved for future use.
   780  	SatisfiesPzs bool `json:"satisfiesPzs,omitempty"`
   781  	// StartTime: Output only. Represents time when the execution started to run.
   782  	// It is not guaranteed to be set in happens-before order across separate
   783  	// operations.
   784  	StartTime string `json:"startTime,omitempty"`
   785  	// SucceededCount: Output only. The number of tasks which reached phase
   786  	// Succeeded.
   787  	SucceededCount int64 `json:"succeededCount,omitempty"`
   788  	// TaskCount: Output only. Specifies the desired number of tasks the execution
   789  	// should run. Setting to 1 means that parallelism is limited to 1 and the
   790  	// success of that task signals the success of the execution.
   791  	TaskCount int64 `json:"taskCount,omitempty"`
   792  	// Template: Output only. The template used to create tasks for this execution.
   793  	Template *GoogleCloudRunV2TaskTemplate `json:"template,omitempty"`
   794  	// Uid: Output only. Server assigned unique identifier for the Execution. The
   795  	// value is a UUID4 string and guaranteed to remain unchanged until the
   796  	// resource is deleted.
   797  	Uid string `json:"uid,omitempty"`
   798  	// UpdateTime: Output only. The last-modified time.
   799  	UpdateTime string `json:"updateTime,omitempty"`
   800  
   801  	// ServerResponse contains the HTTP response code and headers from the server.
   802  	googleapi.ServerResponse `json:"-"`
   803  	// ForceSendFields is a list of field names (e.g. "Annotations") to
   804  	// unconditionally include in API requests. By default, fields with empty or
   805  	// default values are omitted from API requests. See
   806  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   807  	// details.
   808  	ForceSendFields []string `json:"-"`
   809  	// NullFields is a list of field names (e.g. "Annotations") to include in API
   810  	// requests with the JSON null value. By default, fields with empty values are
   811  	// omitted from API requests. See
   812  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   813  	NullFields []string `json:"-"`
   814  }
   815  
   816  func (s *GoogleCloudRunV2Execution) MarshalJSON() ([]byte, error) {
   817  	type NoMethod GoogleCloudRunV2Execution
   818  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   819  }
   820  
   821  // GoogleCloudRunV2ExecutionReference: Reference to an Execution. Use
   822  // /Executions.GetExecution with the given name to get full execution including
   823  // the latest status.
   824  type GoogleCloudRunV2ExecutionReference struct {
   825  	// CompletionTime: Creation timestamp of the execution.
   826  	CompletionTime string `json:"completionTime,omitempty"`
   827  	// CreateTime: Creation timestamp of the execution.
   828  	CreateTime string `json:"createTime,omitempty"`
   829  	// Name: Name of the execution.
   830  	Name string `json:"name,omitempty"`
   831  	// ForceSendFields is a list of field names (e.g. "CompletionTime") to
   832  	// unconditionally include in API requests. By default, fields with empty or
   833  	// default values are omitted from API requests. See
   834  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   835  	// details.
   836  	ForceSendFields []string `json:"-"`
   837  	// NullFields is a list of field names (e.g. "CompletionTime") to include in
   838  	// API requests with the JSON null value. By default, fields with empty values
   839  	// are omitted from API requests. See
   840  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   841  	NullFields []string `json:"-"`
   842  }
   843  
   844  func (s *GoogleCloudRunV2ExecutionReference) MarshalJSON() ([]byte, error) {
   845  	type NoMethod GoogleCloudRunV2ExecutionReference
   846  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   847  }
   848  
   849  // GoogleCloudRunV2ExecutionTemplate: ExecutionTemplate describes the data an
   850  // execution should have when created from a template.
   851  type GoogleCloudRunV2ExecutionTemplate struct {
   852  	// Annotations: Unstructured key value map that may be set by external tools to
   853  	// store and arbitrary metadata. They are not queryable and should be preserved
   854  	// when modifying objects. Cloud Run API v2 does not support annotations with
   855  	// `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or
   856  	// `autoscaling.knative.dev` namespaces, and they will be rejected. All system
   857  	// annotations in v1 now have a corresponding field in v2 ExecutionTemplate.
   858  	// This field follows Kubernetes annotations' namespacing, limits, and rules.
   859  	Annotations map[string]string `json:"annotations,omitempty"`
   860  	// Labels: Unstructured key value map that can be used to organize and
   861  	// categorize objects. User-provided labels are shared with Google's billing
   862  	// system, so they can be used to filter, or break down billing charges by
   863  	// team, component, environment, state, etc. For more information, visit
   864  	// https://cloud.google.com/resource-manager/docs/creating-managing-labels or
   865  	// https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does
   866  	// not support labels with `run.googleapis.com`, `cloud.googleapis.com`,
   867  	// `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
   868  	// will be rejected. All system labels in v1 now have a corresponding field in
   869  	// v2 ExecutionTemplate.
   870  	Labels map[string]string `json:"labels,omitempty"`
   871  	// Parallelism: Specifies the maximum desired number of tasks the execution
   872  	// should run at given time. Must be <= task_count. When the job is run, if
   873  	// this field is 0 or unset, the maximum possible value will be used for that
   874  	// execution. The actual number of tasks running in steady state will be less
   875  	// than this number when there are fewer tasks waiting to be completed
   876  	// remaining, i.e. when the work left to do is less than max parallelism.
   877  	Parallelism int64 `json:"parallelism,omitempty"`
   878  	// TaskCount: Specifies the desired number of tasks the execution should run.
   879  	// Setting to 1 means that parallelism is limited to 1 and the success of that
   880  	// task signals the success of the execution. Defaults to 1.
   881  	TaskCount int64 `json:"taskCount,omitempty"`
   882  	// Template: Required. Describes the task(s) that will be created when
   883  	// executing an execution.
   884  	Template *GoogleCloudRunV2TaskTemplate `json:"template,omitempty"`
   885  	// ForceSendFields is a list of field names (e.g. "Annotations") to
   886  	// unconditionally include in API requests. By default, fields with empty or
   887  	// default values are omitted from API requests. See
   888  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   889  	// details.
   890  	ForceSendFields []string `json:"-"`
   891  	// NullFields is a list of field names (e.g. "Annotations") to include in API
   892  	// requests with the JSON null value. By default, fields with empty values are
   893  	// omitted from API requests. See
   894  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   895  	NullFields []string `json:"-"`
   896  }
   897  
   898  func (s *GoogleCloudRunV2ExecutionTemplate) MarshalJSON() ([]byte, error) {
   899  	type NoMethod GoogleCloudRunV2ExecutionTemplate
   900  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   901  }
   902  
   903  // GoogleCloudRunV2ExportImageRequest: Request message for exporting Cloud Run
   904  // image.
   905  type GoogleCloudRunV2ExportImageRequest struct {
   906  	// DestinationRepo: Required. The export destination url (the Artifact Registry
   907  	// repo).
   908  	DestinationRepo string `json:"destinationRepo,omitempty"`
   909  	// ForceSendFields is a list of field names (e.g. "DestinationRepo") to
   910  	// unconditionally include in API requests. By default, fields with empty or
   911  	// default values are omitted from API requests. See
   912  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   913  	// details.
   914  	ForceSendFields []string `json:"-"`
   915  	// NullFields is a list of field names (e.g. "DestinationRepo") to include in
   916  	// API requests with the JSON null value. By default, fields with empty values
   917  	// are omitted from API requests. See
   918  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   919  	NullFields []string `json:"-"`
   920  }
   921  
   922  func (s *GoogleCloudRunV2ExportImageRequest) MarshalJSON() ([]byte, error) {
   923  	type NoMethod GoogleCloudRunV2ExportImageRequest
   924  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   925  }
   926  
   927  // GoogleCloudRunV2ExportImageResponse: ExportImageResponse contains an
   928  // operation Id to track the image export operation.
   929  type GoogleCloudRunV2ExportImageResponse struct {
   930  	// OperationId: An operation ID used to track the status of image exports tied
   931  	// to the original pod ID in the request.
   932  	OperationId string `json:"operationId,omitempty"`
   933  
   934  	// ServerResponse contains the HTTP response code and headers from the server.
   935  	googleapi.ServerResponse `json:"-"`
   936  	// ForceSendFields is a list of field names (e.g. "OperationId") to
   937  	// unconditionally include in API requests. By default, fields with empty or
   938  	// default values are omitted from API requests. See
   939  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   940  	// details.
   941  	ForceSendFields []string `json:"-"`
   942  	// NullFields is a list of field names (e.g. "OperationId") to include in API
   943  	// requests with the JSON null value. By default, fields with empty values are
   944  	// omitted from API requests. See
   945  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   946  	NullFields []string `json:"-"`
   947  }
   948  
   949  func (s *GoogleCloudRunV2ExportImageResponse) MarshalJSON() ([]byte, error) {
   950  	type NoMethod GoogleCloudRunV2ExportImageResponse
   951  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   952  }
   953  
   954  // GoogleCloudRunV2ExportStatusResponse: ExportStatusResponse contains the
   955  // status of image export operation, with the status of each image export job.
   956  type GoogleCloudRunV2ExportStatusResponse struct {
   957  	// ImageExportStatuses: The status of each image export job.
   958  	ImageExportStatuses []*GoogleCloudRunV2ImageExportStatus `json:"imageExportStatuses,omitempty"`
   959  	// OperationId: The operation id.
   960  	OperationId string `json:"operationId,omitempty"`
   961  	// OperationState: Output only. The state of the overall export operation.
   962  	//
   963  	// Possible values:
   964  	//   "OPERATION_STATE_UNSPECIFIED" - State unspecified.
   965  	//   "IN_PROGRESS" - Operation still in progress.
   966  	//   "FINISHED" - Operation finished.
   967  	OperationState string `json:"operationState,omitempty"`
   968  
   969  	// ServerResponse contains the HTTP response code and headers from the server.
   970  	googleapi.ServerResponse `json:"-"`
   971  	// ForceSendFields is a list of field names (e.g. "ImageExportStatuses") to
   972  	// unconditionally include in API requests. By default, fields with empty or
   973  	// default values are omitted from API requests. See
   974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   975  	// details.
   976  	ForceSendFields []string `json:"-"`
   977  	// NullFields is a list of field names (e.g. "ImageExportStatuses") to include
   978  	// in API requests with the JSON null value. By default, fields with empty
   979  	// values are omitted from API requests. See
   980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   981  	NullFields []string `json:"-"`
   982  }
   983  
   984  func (s *GoogleCloudRunV2ExportStatusResponse) MarshalJSON() ([]byte, error) {
   985  	type NoMethod GoogleCloudRunV2ExportStatusResponse
   986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   987  }
   988  
   989  // GoogleCloudRunV2GCSVolumeSource: Represents a volume backed by a Cloud
   990  // Storage bucket using Cloud Storage FUSE.
   991  type GoogleCloudRunV2GCSVolumeSource struct {
   992  	// Bucket: Cloud Storage Bucket name.
   993  	Bucket string `json:"bucket,omitempty"`
   994  	// ReadOnly: If true, the volume will be mounted as read only for all mounts.
   995  	ReadOnly bool `json:"readOnly,omitempty"`
   996  	// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally
   997  	// include in API requests. By default, fields with empty or default values are
   998  	// omitted from API requests. See
   999  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1000  	// details.
  1001  	ForceSendFields []string `json:"-"`
  1002  	// NullFields is a list of field names (e.g. "Bucket") to include in API
  1003  	// requests with the JSON null value. By default, fields with empty values are
  1004  	// omitted from API requests. See
  1005  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1006  	NullFields []string `json:"-"`
  1007  }
  1008  
  1009  func (s *GoogleCloudRunV2GCSVolumeSource) MarshalJSON() ([]byte, error) {
  1010  	type NoMethod GoogleCloudRunV2GCSVolumeSource
  1011  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1012  }
  1013  
  1014  // GoogleCloudRunV2GRPCAction: GRPCAction describes an action involving a GRPC
  1015  // port.
  1016  type GoogleCloudRunV2GRPCAction struct {
  1017  	// Port: Optional. Port number of the gRPC service. Number must be in the range
  1018  	// 1 to 65535. If not specified, defaults to the exposed port of the container,
  1019  	// which is the value of container.ports[0].containerPort.
  1020  	Port int64 `json:"port,omitempty"`
  1021  	// Service: Optional. Service is the name of the service to place in the gRPC
  1022  	// HealthCheckRequest (see
  1023  	// https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
  1024  	// is not specified, the default behavior is defined by gRPC.
  1025  	Service string `json:"service,omitempty"`
  1026  	// ForceSendFields is a list of field names (e.g. "Port") to unconditionally
  1027  	// include in API requests. By default, fields with empty or default values are
  1028  	// omitted from API requests. See
  1029  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1030  	// details.
  1031  	ForceSendFields []string `json:"-"`
  1032  	// NullFields is a list of field names (e.g. "Port") to include in API requests
  1033  	// with the JSON null value. By default, fields with empty values are omitted
  1034  	// from API requests. See
  1035  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1036  	NullFields []string `json:"-"`
  1037  }
  1038  
  1039  func (s *GoogleCloudRunV2GRPCAction) MarshalJSON() ([]byte, error) {
  1040  	type NoMethod GoogleCloudRunV2GRPCAction
  1041  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1042  }
  1043  
  1044  // GoogleCloudRunV2HTTPGetAction: HTTPGetAction describes an action based on
  1045  // HTTP Get requests.
  1046  type GoogleCloudRunV2HTTPGetAction struct {
  1047  	// HttpHeaders: Optional. Custom headers to set in the request. HTTP allows
  1048  	// repeated headers.
  1049  	HttpHeaders []*GoogleCloudRunV2HTTPHeader `json:"httpHeaders,omitempty"`
  1050  	// Path: Optional. Path to access on the HTTP server. Defaults to '/'.
  1051  	Path string `json:"path,omitempty"`
  1052  	// Port: Optional. Port number to access on the container. Must be in the range
  1053  	// 1 to 65535. If not specified, defaults to the exposed port of the container,
  1054  	// which is the value of container.ports[0].containerPort.
  1055  	Port int64 `json:"port,omitempty"`
  1056  	// ForceSendFields is a list of field names (e.g. "HttpHeaders") to
  1057  	// unconditionally include in API requests. By default, fields with empty or
  1058  	// default values are omitted from API requests. See
  1059  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1060  	// details.
  1061  	ForceSendFields []string `json:"-"`
  1062  	// NullFields is a list of field names (e.g. "HttpHeaders") to include in API
  1063  	// requests with the JSON null value. By default, fields with empty values are
  1064  	// omitted from API requests. See
  1065  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1066  	NullFields []string `json:"-"`
  1067  }
  1068  
  1069  func (s *GoogleCloudRunV2HTTPGetAction) MarshalJSON() ([]byte, error) {
  1070  	type NoMethod GoogleCloudRunV2HTTPGetAction
  1071  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1072  }
  1073  
  1074  // GoogleCloudRunV2HTTPHeader: HTTPHeader describes a custom header to be used
  1075  // in HTTP probes
  1076  type GoogleCloudRunV2HTTPHeader struct {
  1077  	// Name: Required. The header field name
  1078  	Name string `json:"name,omitempty"`
  1079  	// Value: Optional. The header field value
  1080  	Value string `json:"value,omitempty"`
  1081  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1082  	// include in API requests. By default, fields with empty or default values are
  1083  	// omitted from API requests. See
  1084  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1085  	// details.
  1086  	ForceSendFields []string `json:"-"`
  1087  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1088  	// with the JSON null value. By default, fields with empty values are omitted
  1089  	// from API requests. See
  1090  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1091  	NullFields []string `json:"-"`
  1092  }
  1093  
  1094  func (s *GoogleCloudRunV2HTTPHeader) MarshalJSON() ([]byte, error) {
  1095  	type NoMethod GoogleCloudRunV2HTTPHeader
  1096  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1097  }
  1098  
  1099  // GoogleCloudRunV2ImageExportStatus: The status of an image export job.
  1100  type GoogleCloudRunV2ImageExportStatus struct {
  1101  	// ExportJobState: Output only. Has the image export job finished (regardless
  1102  	// of successful or failure).
  1103  	//
  1104  	// Possible values:
  1105  	//   "EXPORT_JOB_STATE_UNSPECIFIED" - State unspecified.
  1106  	//   "IN_PROGRESS" - Job still in progress.
  1107  	//   "FINISHED" - Job finished.
  1108  	ExportJobState string `json:"exportJobState,omitempty"`
  1109  	// ExportedImageDigest: The exported image ID as it will appear in Artifact
  1110  	// Registry.
  1111  	ExportedImageDigest string `json:"exportedImageDigest,omitempty"`
  1112  	// Status: The status of the export task if done.
  1113  	Status *UtilStatusProto `json:"status,omitempty"`
  1114  	// Tag: The image tag as it will appear in Artifact Registry.
  1115  	Tag string `json:"tag,omitempty"`
  1116  	// ForceSendFields is a list of field names (e.g. "ExportJobState") to
  1117  	// unconditionally include in API requests. By default, fields with empty or
  1118  	// default values are omitted from API requests. See
  1119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1120  	// details.
  1121  	ForceSendFields []string `json:"-"`
  1122  	// NullFields is a list of field names (e.g. "ExportJobState") to include in
  1123  	// API requests with the JSON null value. By default, fields with empty values
  1124  	// are omitted from API requests. See
  1125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1126  	NullFields []string `json:"-"`
  1127  }
  1128  
  1129  func (s *GoogleCloudRunV2ImageExportStatus) MarshalJSON() ([]byte, error) {
  1130  	type NoMethod GoogleCloudRunV2ImageExportStatus
  1131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1132  }
  1133  
  1134  // GoogleCloudRunV2Job: Job represents the configuration of a single job, which
  1135  // references a container image that is run to completion.
  1136  type GoogleCloudRunV2Job struct {
  1137  	// Annotations: Unstructured key value map that may be set by external tools to
  1138  	// store and arbitrary metadata. They are not queryable and should be preserved
  1139  	// when modifying objects. Cloud Run API v2 does not support annotations with
  1140  	// `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or
  1141  	// `autoscaling.knative.dev` namespaces, and they will be rejected on new
  1142  	// resources. All system annotations in v1 now have a corresponding field in v2
  1143  	// Job. This field follows Kubernetes annotations' namespacing, limits, and
  1144  	// rules.
  1145  	Annotations map[string]string `json:"annotations,omitempty"`
  1146  	// BinaryAuthorization: Settings for the Binary Authorization feature.
  1147  	BinaryAuthorization *GoogleCloudRunV2BinaryAuthorization `json:"binaryAuthorization,omitempty"`
  1148  	// Client: Arbitrary identifier for the API client.
  1149  	Client string `json:"client,omitempty"`
  1150  	// ClientVersion: Arbitrary version identifier for the API client.
  1151  	ClientVersion string `json:"clientVersion,omitempty"`
  1152  	// Conditions: Output only. The Conditions of all other associated
  1153  	// sub-resources. They contain additional diagnostics information in case the
  1154  	// Job does not reach its desired state. See comments in `reconciling` for
  1155  	// additional information on reconciliation process in Cloud Run.
  1156  	Conditions []*GoogleCloudRunV2Condition `json:"conditions,omitempty"`
  1157  	// CreateTime: Output only. The creation time.
  1158  	CreateTime string `json:"createTime,omitempty"`
  1159  	// Creator: Output only. Email address of the authenticated creator.
  1160  	Creator string `json:"creator,omitempty"`
  1161  	// DeleteTime: Output only. The deletion time.
  1162  	DeleteTime string `json:"deleteTime,omitempty"`
  1163  	// Etag: Output only. A system-generated fingerprint for this version of the
  1164  	// resource. May be used to detect modification conflict during updates.
  1165  	Etag string `json:"etag,omitempty"`
  1166  	// ExecutionCount: Output only. Number of executions created for this job.
  1167  	ExecutionCount int64 `json:"executionCount,omitempty"`
  1168  	// ExpireTime: Output only. For a deleted resource, the time after which it
  1169  	// will be permamently deleted.
  1170  	ExpireTime string `json:"expireTime,omitempty"`
  1171  	// Generation: Output only. A number that monotonically increases every time
  1172  	// the user modifies the desired state.
  1173  	Generation int64 `json:"generation,omitempty,string"`
  1174  	// Labels: Unstructured key value map that can be used to organize and
  1175  	// categorize objects. User-provided labels are shared with Google's billing
  1176  	// system, so they can be used to filter, or break down billing charges by
  1177  	// team, component, environment, state, etc. For more information, visit
  1178  	// https://cloud.google.com/resource-manager/docs/creating-managing-labels or
  1179  	// https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does
  1180  	// not support labels with `run.googleapis.com`, `cloud.googleapis.com`,
  1181  	// `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
  1182  	// will be rejected. All system labels in v1 now have a corresponding field in
  1183  	// v2 Job.
  1184  	Labels map[string]string `json:"labels,omitempty"`
  1185  	// LastModifier: Output only. Email address of the last authenticated modifier.
  1186  	LastModifier string `json:"lastModifier,omitempty"`
  1187  	// LatestCreatedExecution: Output only. Name of the last created execution.
  1188  	LatestCreatedExecution *GoogleCloudRunV2ExecutionReference `json:"latestCreatedExecution,omitempty"`
  1189  	// LaunchStage: The launch stage as defined by Google Cloud Platform Launch
  1190  	// Stages (https://cloud.google.com/terms/launch-stages). Cloud Run supports
  1191  	// `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. Set the
  1192  	// launch stage to a preview stage on input to allow use of preview features in
  1193  	// that stage. On read (or output), describes whether the resource uses preview
  1194  	// features. For example, if ALPHA is provided as input, but only BETA and
  1195  	// GA-level features are used, this field will be BETA on output.
  1196  	//
  1197  	// Possible values:
  1198  	//   "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value.
  1199  	//   "UNIMPLEMENTED" - The feature is not yet implemented. Users can not use
  1200  	// it.
  1201  	//   "PRELAUNCH" - Prelaunch features are hidden from users and are only
  1202  	// visible internally.
  1203  	//   "EARLY_ACCESS" - Early Access features are limited to a closed group of
  1204  	// testers. To use these features, you must sign up in advance and sign a
  1205  	// Trusted Tester agreement (which includes confidentiality provisions). These
  1206  	// features may be unstable, changed in backward-incompatible ways, and are not
  1207  	// guaranteed to be released.
  1208  	//   "ALPHA" - Alpha is a limited availability test for releases before they
  1209  	// are cleared for widespread use. By Alpha, all significant design issues are
  1210  	// resolved and we are in the process of verifying functionality. Alpha
  1211  	// customers need to apply for access, agree to applicable terms, and have
  1212  	// their projects allowlisted. Alpha releases don't have to be feature
  1213  	// complete, no SLAs are provided, and there are no technical support
  1214  	// obligations, but they will be far enough along that customers can actually
  1215  	// use them in test environments or for limited-use tests -- just like they
  1216  	// would in normal production cases.
  1217  	//   "BETA" - Beta is the point at which we are ready to open a release for any
  1218  	// customer to use. There are no SLA or technical support obligations in a Beta
  1219  	// release. Products will be complete from a feature perspective, but may have
  1220  	// some open outstanding issues. Beta releases are suitable for limited
  1221  	// production use cases.
  1222  	//   "GA" - GA features are open to all developers and are considered stable
  1223  	// and fully qualified for production use.
  1224  	//   "DEPRECATED" - Deprecated features are scheduled to be shut down and
  1225  	// removed. For more information, see the "Deprecation Policy" section of our
  1226  	// [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud
  1227  	// Platform Subject to the Deprecation
  1228  	// Policy](https://cloud.google.com/terms/deprecation) documentation.
  1229  	LaunchStage string `json:"launchStage,omitempty"`
  1230  	// Name: The fully qualified name of this Job. Format:
  1231  	// projects/{project}/locations/{location}/jobs/{job}
  1232  	Name string `json:"name,omitempty"`
  1233  	// ObservedGeneration: Output only. The generation of this Job. See comments in
  1234  	// `reconciling` for additional information on reconciliation process in Cloud
  1235  	// Run.
  1236  	ObservedGeneration int64 `json:"observedGeneration,omitempty,string"`
  1237  	// Reconciling: Output only. Returns true if the Job is currently being acted
  1238  	// upon by the system to bring it into the desired state. When a new Job is
  1239  	// created, or an existing one is updated, Cloud Run will asynchronously
  1240  	// perform all necessary steps to bring the Job to the desired state. This
  1241  	// process is called reconciliation. While reconciliation is in process,
  1242  	// `observed_generation` and `latest_succeeded_execution`, will have transient
  1243  	// values that might mismatch the intended state: Once reconciliation is over
  1244  	// (and this field is false), there are two possible outcomes: reconciliation
  1245  	// succeeded and the state matches the Job, or there was an error, and
  1246  	// reconciliation failed. This state can be found in
  1247  	// `terminal_condition.state`. If reconciliation succeeded, the following
  1248  	// fields will match: `observed_generation` and `generation`,
  1249  	// `latest_succeeded_execution` and `latest_created_execution`. If
  1250  	// reconciliation failed, `observed_generation` and
  1251  	// `latest_succeeded_execution` will have the state of the last succeeded
  1252  	// execution or empty for newly created Job. Additional information on the
  1253  	// failure can be found in `terminal_condition` and `conditions`.
  1254  	Reconciling bool `json:"reconciling,omitempty"`
  1255  	// SatisfiesPzs: Output only. Reserved for future use.
  1256  	SatisfiesPzs bool `json:"satisfiesPzs,omitempty"`
  1257  	// StartExecutionToken: A unique string used as a suffix creating a new
  1258  	// execution. The Job will become ready when the execution is successfully
  1259  	// started. The sum of job name and token length must be fewer than 63
  1260  	// characters.
  1261  	StartExecutionToken string `json:"startExecutionToken,omitempty"`
  1262  	// Template: Required. The template used to create executions for this Job.
  1263  	Template *GoogleCloudRunV2ExecutionTemplate `json:"template,omitempty"`
  1264  	// TerminalCondition: Output only. The Condition of this Job, containing its
  1265  	// readiness status, and detailed error information in case it did not reach
  1266  	// the desired state.
  1267  	TerminalCondition *GoogleCloudRunV2Condition `json:"terminalCondition,omitempty"`
  1268  	// Uid: Output only. Server assigned unique identifier for the Execution. The
  1269  	// value is a UUID4 string and guaranteed to remain unchanged until the
  1270  	// resource is deleted.
  1271  	Uid string `json:"uid,omitempty"`
  1272  	// UpdateTime: Output only. The last-modified time.
  1273  	UpdateTime string `json:"updateTime,omitempty"`
  1274  
  1275  	// ServerResponse contains the HTTP response code and headers from the server.
  1276  	googleapi.ServerResponse `json:"-"`
  1277  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  1278  	// unconditionally include in API requests. By default, fields with empty or
  1279  	// default values are omitted from API requests. See
  1280  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1281  	// details.
  1282  	ForceSendFields []string `json:"-"`
  1283  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  1284  	// requests with the JSON null value. By default, fields with empty values are
  1285  	// omitted from API requests. See
  1286  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1287  	NullFields []string `json:"-"`
  1288  }
  1289  
  1290  func (s *GoogleCloudRunV2Job) MarshalJSON() ([]byte, error) {
  1291  	type NoMethod GoogleCloudRunV2Job
  1292  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1293  }
  1294  
  1295  // GoogleCloudRunV2ListExecutionsResponse: Response message containing a list
  1296  // of Executions.
  1297  type GoogleCloudRunV2ListExecutionsResponse struct {
  1298  	// Executions: The resulting list of Executions.
  1299  	Executions []*GoogleCloudRunV2Execution `json:"executions,omitempty"`
  1300  	// NextPageToken: A token indicating there are more items than page_size. Use
  1301  	// it in the next ListExecutions request to continue.
  1302  	NextPageToken string `json:"nextPageToken,omitempty"`
  1303  
  1304  	// ServerResponse contains the HTTP response code and headers from the server.
  1305  	googleapi.ServerResponse `json:"-"`
  1306  	// ForceSendFields is a list of field names (e.g. "Executions") to
  1307  	// unconditionally include in API requests. By default, fields with empty or
  1308  	// default values are omitted from API requests. See
  1309  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1310  	// details.
  1311  	ForceSendFields []string `json:"-"`
  1312  	// NullFields is a list of field names (e.g. "Executions") to include in API
  1313  	// requests with the JSON null value. By default, fields with empty values are
  1314  	// omitted from API requests. See
  1315  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1316  	NullFields []string `json:"-"`
  1317  }
  1318  
  1319  func (s *GoogleCloudRunV2ListExecutionsResponse) MarshalJSON() ([]byte, error) {
  1320  	type NoMethod GoogleCloudRunV2ListExecutionsResponse
  1321  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1322  }
  1323  
  1324  // GoogleCloudRunV2ListJobsResponse: Response message containing a list of
  1325  // Jobs.
  1326  type GoogleCloudRunV2ListJobsResponse struct {
  1327  	// Jobs: The resulting list of Jobs.
  1328  	Jobs []*GoogleCloudRunV2Job `json:"jobs,omitempty"`
  1329  	// NextPageToken: A token indicating there are more items than page_size. Use
  1330  	// it in the next ListJobs request to continue.
  1331  	NextPageToken string `json:"nextPageToken,omitempty"`
  1332  
  1333  	// ServerResponse contains the HTTP response code and headers from the server.
  1334  	googleapi.ServerResponse `json:"-"`
  1335  	// ForceSendFields is a list of field names (e.g. "Jobs") to unconditionally
  1336  	// include in API requests. By default, fields with empty or default values are
  1337  	// omitted from API requests. See
  1338  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1339  	// details.
  1340  	ForceSendFields []string `json:"-"`
  1341  	// NullFields is a list of field names (e.g. "Jobs") to include in API requests
  1342  	// with the JSON null value. By default, fields with empty values are omitted
  1343  	// from API requests. See
  1344  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1345  	NullFields []string `json:"-"`
  1346  }
  1347  
  1348  func (s *GoogleCloudRunV2ListJobsResponse) MarshalJSON() ([]byte, error) {
  1349  	type NoMethod GoogleCloudRunV2ListJobsResponse
  1350  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1351  }
  1352  
  1353  // GoogleCloudRunV2ListRevisionsResponse: Response message containing a list of
  1354  // Revisions.
  1355  type GoogleCloudRunV2ListRevisionsResponse struct {
  1356  	// NextPageToken: A token indicating there are more items than page_size. Use
  1357  	// it in the next ListRevisions request to continue.
  1358  	NextPageToken string `json:"nextPageToken,omitempty"`
  1359  	// Revisions: The resulting list of Revisions.
  1360  	Revisions []*GoogleCloudRunV2Revision `json:"revisions,omitempty"`
  1361  
  1362  	// ServerResponse contains the HTTP response code and headers from the server.
  1363  	googleapi.ServerResponse `json:"-"`
  1364  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1365  	// unconditionally include in API requests. By default, fields with empty or
  1366  	// default values are omitted from API requests. See
  1367  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1368  	// details.
  1369  	ForceSendFields []string `json:"-"`
  1370  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1371  	// requests with the JSON null value. By default, fields with empty values are
  1372  	// omitted from API requests. See
  1373  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1374  	NullFields []string `json:"-"`
  1375  }
  1376  
  1377  func (s *GoogleCloudRunV2ListRevisionsResponse) MarshalJSON() ([]byte, error) {
  1378  	type NoMethod GoogleCloudRunV2ListRevisionsResponse
  1379  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1380  }
  1381  
  1382  // GoogleCloudRunV2ListServicesResponse: Response message containing a list of
  1383  // Services.
  1384  type GoogleCloudRunV2ListServicesResponse struct {
  1385  	// NextPageToken: A token indicating there are more items than page_size. Use
  1386  	// it in the next ListServices request to continue.
  1387  	NextPageToken string `json:"nextPageToken,omitempty"`
  1388  	// Services: The resulting list of Services.
  1389  	Services []*GoogleCloudRunV2Service `json:"services,omitempty"`
  1390  
  1391  	// ServerResponse contains the HTTP response code and headers from the server.
  1392  	googleapi.ServerResponse `json:"-"`
  1393  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1394  	// unconditionally include in API requests. By default, fields with empty or
  1395  	// default values are omitted from API requests. See
  1396  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1397  	// details.
  1398  	ForceSendFields []string `json:"-"`
  1399  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1400  	// requests with the JSON null value. By default, fields with empty values are
  1401  	// omitted from API requests. See
  1402  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1403  	NullFields []string `json:"-"`
  1404  }
  1405  
  1406  func (s *GoogleCloudRunV2ListServicesResponse) MarshalJSON() ([]byte, error) {
  1407  	type NoMethod GoogleCloudRunV2ListServicesResponse
  1408  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1409  }
  1410  
  1411  // GoogleCloudRunV2ListTasksResponse: Response message containing a list of
  1412  // Tasks.
  1413  type GoogleCloudRunV2ListTasksResponse struct {
  1414  	// NextPageToken: A token indicating there are more items than page_size. Use
  1415  	// it in the next ListTasks request to continue.
  1416  	NextPageToken string `json:"nextPageToken,omitempty"`
  1417  	// Tasks: The resulting list of Tasks.
  1418  	Tasks []*GoogleCloudRunV2Task `json:"tasks,omitempty"`
  1419  
  1420  	// ServerResponse contains the HTTP response code and headers from the server.
  1421  	googleapi.ServerResponse `json:"-"`
  1422  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1423  	// unconditionally include in API requests. By default, fields with empty or
  1424  	// default values are omitted from API requests. See
  1425  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1426  	// details.
  1427  	ForceSendFields []string `json:"-"`
  1428  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1429  	// requests with the JSON null value. By default, fields with empty values are
  1430  	// omitted from API requests. See
  1431  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1432  	NullFields []string `json:"-"`
  1433  }
  1434  
  1435  func (s *GoogleCloudRunV2ListTasksResponse) MarshalJSON() ([]byte, error) {
  1436  	type NoMethod GoogleCloudRunV2ListTasksResponse
  1437  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1438  }
  1439  
  1440  // GoogleCloudRunV2Metadata: Metadata represents the JSON encoded generated
  1441  // customer metadata.
  1442  type GoogleCloudRunV2Metadata struct {
  1443  	// Metadata: JSON encoded Google-generated Customer Metadata for a given
  1444  	// resource/project.
  1445  	Metadata string `json:"metadata,omitempty"`
  1446  
  1447  	// ServerResponse contains the HTTP response code and headers from the server.
  1448  	googleapi.ServerResponse `json:"-"`
  1449  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  1450  	// unconditionally include in API requests. By default, fields with empty or
  1451  	// default values are omitted from API requests. See
  1452  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1453  	// details.
  1454  	ForceSendFields []string `json:"-"`
  1455  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  1456  	// requests with the JSON null value. By default, fields with empty values are
  1457  	// omitted from API requests. See
  1458  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1459  	NullFields []string `json:"-"`
  1460  }
  1461  
  1462  func (s *GoogleCloudRunV2Metadata) MarshalJSON() ([]byte, error) {
  1463  	type NoMethod GoogleCloudRunV2Metadata
  1464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1465  }
  1466  
  1467  // GoogleCloudRunV2NFSVolumeSource: Represents an NFS mount.
  1468  type GoogleCloudRunV2NFSVolumeSource struct {
  1469  	// Path: Path that is exported by the NFS server.
  1470  	Path string `json:"path,omitempty"`
  1471  	// ReadOnly: If true, the volume will be mounted as read only for all mounts.
  1472  	ReadOnly bool `json:"readOnly,omitempty"`
  1473  	// Server: Hostname or IP address of the NFS server
  1474  	Server string `json:"server,omitempty"`
  1475  	// ForceSendFields is a list of field names (e.g. "Path") to unconditionally
  1476  	// include in API requests. By default, fields with empty or default values are
  1477  	// omitted from API requests. See
  1478  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1479  	// details.
  1480  	ForceSendFields []string `json:"-"`
  1481  	// NullFields is a list of field names (e.g. "Path") to include in API requests
  1482  	// with the JSON null value. By default, fields with empty values are omitted
  1483  	// from API requests. See
  1484  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1485  	NullFields []string `json:"-"`
  1486  }
  1487  
  1488  func (s *GoogleCloudRunV2NFSVolumeSource) MarshalJSON() ([]byte, error) {
  1489  	type NoMethod GoogleCloudRunV2NFSVolumeSource
  1490  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1491  }
  1492  
  1493  // GoogleCloudRunV2NetworkInterface: Direct VPC egress settings.
  1494  type GoogleCloudRunV2NetworkInterface struct {
  1495  	// Network: Optional. The VPC network that the Cloud Run resource will be able
  1496  	// to send traffic to. At least one of network or subnetwork must be specified.
  1497  	// If both network and subnetwork are specified, the given VPC subnetwork must
  1498  	// belong to the given VPC network. If network is not specified, it will be
  1499  	// looked up from the subnetwork.
  1500  	Network string `json:"network,omitempty"`
  1501  	// Subnetwork: Optional. The VPC subnetwork that the Cloud Run resource will
  1502  	// get IPs from. At least one of network or subnetwork must be specified. If
  1503  	// both network and subnetwork are specified, the given VPC subnetwork must
  1504  	// belong to the given VPC network. If subnetwork is not specified, the
  1505  	// subnetwork with the same name with the network will be used.
  1506  	Subnetwork string `json:"subnetwork,omitempty"`
  1507  	// Tags: Optional. Network tags applied to this Cloud Run resource.
  1508  	Tags []string `json:"tags,omitempty"`
  1509  	// ForceSendFields is a list of field names (e.g. "Network") to unconditionally
  1510  	// include in API requests. By default, fields with empty or default values are
  1511  	// omitted from API requests. See
  1512  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1513  	// details.
  1514  	ForceSendFields []string `json:"-"`
  1515  	// NullFields is a list of field names (e.g. "Network") to include in API
  1516  	// requests with the JSON null value. By default, fields with empty values are
  1517  	// omitted from API requests. See
  1518  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1519  	NullFields []string `json:"-"`
  1520  }
  1521  
  1522  func (s *GoogleCloudRunV2NetworkInterface) MarshalJSON() ([]byte, error) {
  1523  	type NoMethod GoogleCloudRunV2NetworkInterface
  1524  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1525  }
  1526  
  1527  // GoogleCloudRunV2NodeSelector: Hardware constraints configuration.
  1528  type GoogleCloudRunV2NodeSelector struct {
  1529  	// Accelerator: Required. GPU accelerator type to attach to an instance.
  1530  	Accelerator string `json:"accelerator,omitempty"`
  1531  	// ForceSendFields is a list of field names (e.g. "Accelerator") to
  1532  	// unconditionally include in API requests. By default, fields with empty or
  1533  	// default values are omitted from API requests. See
  1534  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1535  	// details.
  1536  	ForceSendFields []string `json:"-"`
  1537  	// NullFields is a list of field names (e.g. "Accelerator") to include in API
  1538  	// requests with the JSON null value. By default, fields with empty values are
  1539  	// omitted from API requests. See
  1540  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1541  	NullFields []string `json:"-"`
  1542  }
  1543  
  1544  func (s *GoogleCloudRunV2NodeSelector) MarshalJSON() ([]byte, error) {
  1545  	type NoMethod GoogleCloudRunV2NodeSelector
  1546  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1547  }
  1548  
  1549  // GoogleCloudRunV2Overrides: RunJob Overrides that contains Execution fields
  1550  // to be overridden.
  1551  type GoogleCloudRunV2Overrides struct {
  1552  	// ContainerOverrides: Per container override specification.
  1553  	ContainerOverrides []*GoogleCloudRunV2ContainerOverride `json:"containerOverrides,omitempty"`
  1554  	// TaskCount: Optional. The desired number of tasks the execution should run.
  1555  	// Will replace existing task_count value.
  1556  	TaskCount int64 `json:"taskCount,omitempty"`
  1557  	// Timeout: Duration in seconds the task may be active before the system will
  1558  	// actively try to mark it failed and kill associated containers. Will replace
  1559  	// existing timeout_seconds value.
  1560  	Timeout string `json:"timeout,omitempty"`
  1561  	// ForceSendFields is a list of field names (e.g. "ContainerOverrides") to
  1562  	// unconditionally include in API requests. By default, fields with empty or
  1563  	// default values are omitted from API requests. See
  1564  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1565  	// details.
  1566  	ForceSendFields []string `json:"-"`
  1567  	// NullFields is a list of field names (e.g. "ContainerOverrides") to include
  1568  	// in API requests with the JSON null value. By default, fields with empty
  1569  	// values are omitted from API requests. See
  1570  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1571  	NullFields []string `json:"-"`
  1572  }
  1573  
  1574  func (s *GoogleCloudRunV2Overrides) MarshalJSON() ([]byte, error) {
  1575  	type NoMethod GoogleCloudRunV2Overrides
  1576  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1577  }
  1578  
  1579  // GoogleCloudRunV2Probe: Probe describes a health check to be performed
  1580  // against a container to determine whether it is alive or ready to receive
  1581  // traffic.
  1582  type GoogleCloudRunV2Probe struct {
  1583  	// FailureThreshold: Optional. Minimum consecutive failures for the probe to be
  1584  	// considered failed after having succeeded. Defaults to 3. Minimum value is 1.
  1585  	FailureThreshold int64 `json:"failureThreshold,omitempty"`
  1586  	// Grpc: Optional. GRPC specifies an action involving a gRPC port. Exactly one
  1587  	// of httpGet, tcpSocket, or grpc must be specified.
  1588  	Grpc *GoogleCloudRunV2GRPCAction `json:"grpc,omitempty"`
  1589  	// HttpGet: Optional. HTTPGet specifies the http request to perform. Exactly
  1590  	// one of httpGet, tcpSocket, or grpc must be specified.
  1591  	HttpGet *GoogleCloudRunV2HTTPGetAction `json:"httpGet,omitempty"`
  1592  	// InitialDelaySeconds: Optional. Number of seconds after the container has
  1593  	// started before the probe is initiated. Defaults to 0 seconds. Minimum value
  1594  	// is 0. Maximum value for liveness probe is 3600. Maximum value for startup
  1595  	// probe is 240.
  1596  	InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"`
  1597  	// PeriodSeconds: Optional. How often (in seconds) to perform the probe.
  1598  	// Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
  1599  	// is 3600. Maximum value for startup probe is 240. Must be greater or equal
  1600  	// than timeout_seconds.
  1601  	PeriodSeconds int64 `json:"periodSeconds,omitempty"`
  1602  	// TcpSocket: Optional. TCPSocket specifies an action involving a TCP port.
  1603  	// Exactly one of httpGet, tcpSocket, or grpc must be specified.
  1604  	TcpSocket *GoogleCloudRunV2TCPSocketAction `json:"tcpSocket,omitempty"`
  1605  	// TimeoutSeconds: Optional. Number of seconds after which the probe times out.
  1606  	// Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be
  1607  	// smaller than period_seconds.
  1608  	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
  1609  	// ForceSendFields is a list of field names (e.g. "FailureThreshold") to
  1610  	// unconditionally include in API requests. By default, fields with empty or
  1611  	// default values are omitted from API requests. See
  1612  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1613  	// details.
  1614  	ForceSendFields []string `json:"-"`
  1615  	// NullFields is a list of field names (e.g. "FailureThreshold") to include in
  1616  	// API requests with the JSON null value. By default, fields with empty values
  1617  	// are omitted from API requests. See
  1618  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1619  	NullFields []string `json:"-"`
  1620  }
  1621  
  1622  func (s *GoogleCloudRunV2Probe) MarshalJSON() ([]byte, error) {
  1623  	type NoMethod GoogleCloudRunV2Probe
  1624  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1625  }
  1626  
  1627  // GoogleCloudRunV2ResourceRequirements: ResourceRequirements describes the
  1628  // compute resource requirements.
  1629  type GoogleCloudRunV2ResourceRequirements struct {
  1630  	// CpuIdle: Determines whether CPU is only allocated during requests (true by
  1631  	// default). However, if ResourceRequirements is set, the caller must
  1632  	// explicitly set this field to true to preserve the default behavior.
  1633  	CpuIdle bool `json:"cpuIdle,omitempty"`
  1634  	// Limits: Only `memory` and `cpu` keys in the map are supported. Notes: * The
  1635  	// only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU
  1636  	// requires at least 2Gi of memory. For more information, go to
  1637  	// https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory'
  1638  	// values and syntax, go to
  1639  	// https://cloud.google.com/run/docs/configuring/memory-limits
  1640  	Limits map[string]string `json:"limits,omitempty"`
  1641  	// StartupCpuBoost: Determines whether CPU should be boosted on startup of a
  1642  	// new container instance above the requested CPU threshold, this can help
  1643  	// reduce cold-start latency.
  1644  	StartupCpuBoost bool `json:"startupCpuBoost,omitempty"`
  1645  	// ForceSendFields is a list of field names (e.g. "CpuIdle") to unconditionally
  1646  	// include in API requests. By default, fields with empty or default values are
  1647  	// omitted from API requests. See
  1648  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1649  	// details.
  1650  	ForceSendFields []string `json:"-"`
  1651  	// NullFields is a list of field names (e.g. "CpuIdle") to include in API
  1652  	// requests with the JSON null value. By default, fields with empty values are
  1653  	// omitted from API requests. See
  1654  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1655  	NullFields []string `json:"-"`
  1656  }
  1657  
  1658  func (s *GoogleCloudRunV2ResourceRequirements) MarshalJSON() ([]byte, error) {
  1659  	type NoMethod GoogleCloudRunV2ResourceRequirements
  1660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1661  }
  1662  
  1663  // GoogleCloudRunV2Revision: A Revision is an immutable snapshot of code and
  1664  // configuration. A Revision references a container image. Revisions are only
  1665  // created by updates to its parent Service.
  1666  type GoogleCloudRunV2Revision struct {
  1667  	// Annotations: Output only. Unstructured key value map that may be set by
  1668  	// external tools to store and arbitrary metadata. They are not queryable and
  1669  	// should be preserved when modifying objects.
  1670  	Annotations map[string]string `json:"annotations,omitempty"`
  1671  	// Conditions: Output only. The Condition of this Revision, containing its
  1672  	// readiness status, and detailed error information in case it did not reach a
  1673  	// serving state.
  1674  	Conditions []*GoogleCloudRunV2Condition `json:"conditions,omitempty"`
  1675  	// Containers: Holds the single container that defines the unit of execution
  1676  	// for this Revision.
  1677  	Containers []*GoogleCloudRunV2Container `json:"containers,omitempty"`
  1678  	// CreateTime: Output only. The creation time.
  1679  	CreateTime string `json:"createTime,omitempty"`
  1680  	// DeleteTime: Output only. For a deleted resource, the deletion time. It is
  1681  	// only populated as a response to a Delete request.
  1682  	DeleteTime string `json:"deleteTime,omitempty"`
  1683  	// EncryptionKey: A reference to a customer managed encryption key (CMEK) to
  1684  	// use to encrypt this container image. For more information, go to
  1685  	// https://cloud.google.com/run/docs/securing/using-cmek
  1686  	EncryptionKey string `json:"encryptionKey,omitempty"`
  1687  	// EncryptionKeyRevocationAction: The action to take if the encryption key is
  1688  	// revoked.
  1689  	//
  1690  	// Possible values:
  1691  	//   "ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED" - Unspecified
  1692  	//   "PREVENT_NEW" - Prevents the creation of new instances.
  1693  	//   "SHUTDOWN" - Shuts down existing instances, and prevents creation of new
  1694  	// ones.
  1695  	EncryptionKeyRevocationAction string `json:"encryptionKeyRevocationAction,omitempty"`
  1696  	// EncryptionKeyShutdownDuration: If encryption_key_revocation_action is
  1697  	// SHUTDOWN, the duration before shutting down all instances. The minimum
  1698  	// increment is 1 hour.
  1699  	EncryptionKeyShutdownDuration string `json:"encryptionKeyShutdownDuration,omitempty"`
  1700  	// Etag: Output only. A system-generated fingerprint for this version of the
  1701  	// resource. May be used to detect modification conflict during updates.
  1702  	Etag string `json:"etag,omitempty"`
  1703  	// ExecutionEnvironment: The execution environment being used to host this
  1704  	// Revision.
  1705  	//
  1706  	// Possible values:
  1707  	//   "EXECUTION_ENVIRONMENT_UNSPECIFIED" - Unspecified
  1708  	//   "EXECUTION_ENVIRONMENT_GEN1" - Uses the First Generation environment.
  1709  	//   "EXECUTION_ENVIRONMENT_GEN2" - Uses Second Generation environment.
  1710  	ExecutionEnvironment string `json:"executionEnvironment,omitempty"`
  1711  	// ExpireTime: Output only. For a deleted resource, the time after which it
  1712  	// will be permamently deleted. It is only populated as a response to a Delete
  1713  	// request.
  1714  	ExpireTime string `json:"expireTime,omitempty"`
  1715  	// Generation: Output only. A number that monotonically increases every time
  1716  	// the user modifies the desired state.
  1717  	Generation int64 `json:"generation,omitempty,string"`
  1718  	// Labels: Output only. Unstructured key value map that can be used to organize
  1719  	// and categorize objects. User-provided labels are shared with Google's
  1720  	// billing system, so they can be used to filter, or break down billing charges
  1721  	// by team, component, environment, state, etc. For more information, visit
  1722  	// https://cloud.google.com/resource-manager/docs/creating-managing-labels or
  1723  	// https://cloud.google.com/run/docs/configuring/labels.
  1724  	Labels map[string]string `json:"labels,omitempty"`
  1725  	// LaunchStage: The least stable launch stage needed to create this resource,
  1726  	// as defined by Google Cloud Platform Launch Stages
  1727  	// (https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`,
  1728  	// `BETA`, and `GA`. Note that this value might not be what was used as input.
  1729  	// For example, if ALPHA was provided as input in the parent resource, but only
  1730  	// BETA and GA-level features are were, this field will be BETA.
  1731  	//
  1732  	// Possible values:
  1733  	//   "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value.
  1734  	//   "UNIMPLEMENTED" - The feature is not yet implemented. Users can not use
  1735  	// it.
  1736  	//   "PRELAUNCH" - Prelaunch features are hidden from users and are only
  1737  	// visible internally.
  1738  	//   "EARLY_ACCESS" - Early Access features are limited to a closed group of
  1739  	// testers. To use these features, you must sign up in advance and sign a
  1740  	// Trusted Tester agreement (which includes confidentiality provisions). These
  1741  	// features may be unstable, changed in backward-incompatible ways, and are not
  1742  	// guaranteed to be released.
  1743  	//   "ALPHA" - Alpha is a limited availability test for releases before they
  1744  	// are cleared for widespread use. By Alpha, all significant design issues are
  1745  	// resolved and we are in the process of verifying functionality. Alpha
  1746  	// customers need to apply for access, agree to applicable terms, and have
  1747  	// their projects allowlisted. Alpha releases don't have to be feature
  1748  	// complete, no SLAs are provided, and there are no technical support
  1749  	// obligations, but they will be far enough along that customers can actually
  1750  	// use them in test environments or for limited-use tests -- just like they
  1751  	// would in normal production cases.
  1752  	//   "BETA" - Beta is the point at which we are ready to open a release for any
  1753  	// customer to use. There are no SLA or technical support obligations in a Beta
  1754  	// release. Products will be complete from a feature perspective, but may have
  1755  	// some open outstanding issues. Beta releases are suitable for limited
  1756  	// production use cases.
  1757  	//   "GA" - GA features are open to all developers and are considered stable
  1758  	// and fully qualified for production use.
  1759  	//   "DEPRECATED" - Deprecated features are scheduled to be shut down and
  1760  	// removed. For more information, see the "Deprecation Policy" section of our
  1761  	// [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud
  1762  	// Platform Subject to the Deprecation
  1763  	// Policy](https://cloud.google.com/terms/deprecation) documentation.
  1764  	LaunchStage string `json:"launchStage,omitempty"`
  1765  	// LogUri: Output only. The Google Console URI to obtain logs for the Revision.
  1766  	LogUri string `json:"logUri,omitempty"`
  1767  	// MaxInstanceRequestConcurrency: Sets the maximum number of requests that each
  1768  	// serving instance can receive.
  1769  	MaxInstanceRequestConcurrency int64 `json:"maxInstanceRequestConcurrency,omitempty"`
  1770  	// Name: Output only. The unique name of this Revision.
  1771  	Name string `json:"name,omitempty"`
  1772  	// NodeSelector: The node selector for the revision.
  1773  	NodeSelector *GoogleCloudRunV2NodeSelector `json:"nodeSelector,omitempty"`
  1774  	// ObservedGeneration: Output only. The generation of this Revision currently
  1775  	// serving traffic. See comments in `reconciling` for additional information on
  1776  	// reconciliation process in Cloud Run.
  1777  	ObservedGeneration int64 `json:"observedGeneration,omitempty,string"`
  1778  	// Reconciling: Output only. Indicates whether the resource's reconciliation is
  1779  	// still in progress. See comments in `Service.reconciling` for additional
  1780  	// information on reconciliation process in Cloud Run.
  1781  	Reconciling bool `json:"reconciling,omitempty"`
  1782  	// SatisfiesPzs: Output only. Reserved for future use.
  1783  	SatisfiesPzs bool `json:"satisfiesPzs,omitempty"`
  1784  	// Scaling: Scaling settings for this revision.
  1785  	Scaling *GoogleCloudRunV2RevisionScaling `json:"scaling,omitempty"`
  1786  	// ScalingStatus: Output only. The current effective scaling settings for the
  1787  	// revision.
  1788  	ScalingStatus *GoogleCloudRunV2RevisionScalingStatus `json:"scalingStatus,omitempty"`
  1789  	// Service: Output only. The name of the parent service.
  1790  	Service string `json:"service,omitempty"`
  1791  	// ServiceAccount: Email address of the IAM service account associated with the
  1792  	// revision of the service. The service account represents the identity of the
  1793  	// running revision, and determines what permissions the revision has.
  1794  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1795  	// SessionAffinity: Enable session affinity.
  1796  	SessionAffinity bool `json:"sessionAffinity,omitempty"`
  1797  	// Timeout: Max allowed time for an instance to respond to a request.
  1798  	Timeout string `json:"timeout,omitempty"`
  1799  	// Uid: Output only. Server assigned unique identifier for the Revision. The
  1800  	// value is a UUID4 string and guaranteed to remain unchanged until the
  1801  	// resource is deleted.
  1802  	Uid string `json:"uid,omitempty"`
  1803  	// UpdateTime: Output only. The last-modified time.
  1804  	UpdateTime string `json:"updateTime,omitempty"`
  1805  	// Volumes: A list of Volumes to make available to containers.
  1806  	Volumes []*GoogleCloudRunV2Volume `json:"volumes,omitempty"`
  1807  	// VpcAccess: VPC Access configuration for this Revision. For more information,
  1808  	// visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
  1809  	VpcAccess *GoogleCloudRunV2VpcAccess `json:"vpcAccess,omitempty"`
  1810  
  1811  	// ServerResponse contains the HTTP response code and headers from the server.
  1812  	googleapi.ServerResponse `json:"-"`
  1813  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  1814  	// unconditionally include in API requests. By default, fields with empty or
  1815  	// default values are omitted from API requests. See
  1816  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1817  	// details.
  1818  	ForceSendFields []string `json:"-"`
  1819  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  1820  	// requests with the JSON null value. By default, fields with empty values are
  1821  	// omitted from API requests. See
  1822  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1823  	NullFields []string `json:"-"`
  1824  }
  1825  
  1826  func (s *GoogleCloudRunV2Revision) MarshalJSON() ([]byte, error) {
  1827  	type NoMethod GoogleCloudRunV2Revision
  1828  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1829  }
  1830  
  1831  // GoogleCloudRunV2RevisionScaling: Settings for revision-level scaling
  1832  // settings.
  1833  type GoogleCloudRunV2RevisionScaling struct {
  1834  	// MaxInstanceCount: Optional. Maximum number of serving instances that this
  1835  	// resource should have.
  1836  	MaxInstanceCount int64 `json:"maxInstanceCount,omitempty"`
  1837  	// MinInstanceCount: Optional. Minimum number of serving instances that this
  1838  	// resource should have.
  1839  	MinInstanceCount int64 `json:"minInstanceCount,omitempty"`
  1840  	// ForceSendFields is a list of field names (e.g. "MaxInstanceCount") to
  1841  	// unconditionally include in API requests. By default, fields with empty or
  1842  	// default values are omitted from API requests. See
  1843  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1844  	// details.
  1845  	ForceSendFields []string `json:"-"`
  1846  	// NullFields is a list of field names (e.g. "MaxInstanceCount") to include in
  1847  	// API requests with the JSON null value. By default, fields with empty values
  1848  	// are omitted from API requests. See
  1849  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1850  	NullFields []string `json:"-"`
  1851  }
  1852  
  1853  func (s *GoogleCloudRunV2RevisionScaling) MarshalJSON() ([]byte, error) {
  1854  	type NoMethod GoogleCloudRunV2RevisionScaling
  1855  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1856  }
  1857  
  1858  // GoogleCloudRunV2RevisionScalingStatus: Effective settings for the current
  1859  // revision
  1860  type GoogleCloudRunV2RevisionScalingStatus struct {
  1861  	// DesiredMinInstanceCount: The current number of min instances provisioned for
  1862  	// this revision.
  1863  	DesiredMinInstanceCount int64 `json:"desiredMinInstanceCount,omitempty"`
  1864  	// ForceSendFields is a list of field names (e.g. "DesiredMinInstanceCount") to
  1865  	// unconditionally include in API requests. By default, fields with empty or
  1866  	// default values are omitted from API requests. See
  1867  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1868  	// details.
  1869  	ForceSendFields []string `json:"-"`
  1870  	// NullFields is a list of field names (e.g. "DesiredMinInstanceCount") to
  1871  	// include in API requests with the JSON null value. By default, fields with
  1872  	// empty values are omitted from API requests. See
  1873  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1874  	NullFields []string `json:"-"`
  1875  }
  1876  
  1877  func (s *GoogleCloudRunV2RevisionScalingStatus) MarshalJSON() ([]byte, error) {
  1878  	type NoMethod GoogleCloudRunV2RevisionScalingStatus
  1879  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1880  }
  1881  
  1882  // GoogleCloudRunV2RevisionTemplate: RevisionTemplate describes the data a
  1883  // revision should have when created from a template.
  1884  type GoogleCloudRunV2RevisionTemplate struct {
  1885  	// Annotations: Optional. Unstructured key value map that may be set by
  1886  	// external tools to store and arbitrary metadata. They are not queryable and
  1887  	// should be preserved when modifying objects. Cloud Run API v2 does not
  1888  	// support annotations with `run.googleapis.com`, `cloud.googleapis.com`,
  1889  	// `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
  1890  	// will be rejected. All system annotations in v1 now have a corresponding
  1891  	// field in v2 RevisionTemplate. This field follows Kubernetes annotations'
  1892  	// namespacing, limits, and rules.
  1893  	Annotations map[string]string `json:"annotations,omitempty"`
  1894  	// Containers: Holds the single container that defines the unit of execution
  1895  	// for this Revision.
  1896  	Containers []*GoogleCloudRunV2Container `json:"containers,omitempty"`
  1897  	// EncryptionKey: A reference to a customer managed encryption key (CMEK) to
  1898  	// use to encrypt this container image. For more information, go to
  1899  	// https://cloud.google.com/run/docs/securing/using-cmek
  1900  	EncryptionKey string `json:"encryptionKey,omitempty"`
  1901  	// ExecutionEnvironment: Optional. The sandbox environment to host this
  1902  	// Revision.
  1903  	//
  1904  	// Possible values:
  1905  	//   "EXECUTION_ENVIRONMENT_UNSPECIFIED" - Unspecified
  1906  	//   "EXECUTION_ENVIRONMENT_GEN1" - Uses the First Generation environment.
  1907  	//   "EXECUTION_ENVIRONMENT_GEN2" - Uses Second Generation environment.
  1908  	ExecutionEnvironment string `json:"executionEnvironment,omitempty"`
  1909  	// HealthCheckDisabled: Optional. Disables health checking containers during
  1910  	// deployment.
  1911  	HealthCheckDisabled bool `json:"healthCheckDisabled,omitempty"`
  1912  	// Labels: Optional. Unstructured key value map that can be used to organize
  1913  	// and categorize objects. User-provided labels are shared with Google's
  1914  	// billing system, so they can be used to filter, or break down billing charges
  1915  	// by team, component, environment, state, etc. For more information, visit
  1916  	// https://cloud.google.com/resource-manager/docs/creating-managing-labels or
  1917  	// https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does
  1918  	// not support labels with `run.googleapis.com`, `cloud.googleapis.com`,
  1919  	// `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
  1920  	// will be rejected. All system labels in v1 now have a corresponding field in
  1921  	// v2 RevisionTemplate.
  1922  	Labels map[string]string `json:"labels,omitempty"`
  1923  	// MaxInstanceRequestConcurrency: Optional. Sets the maximum number of requests
  1924  	// that each serving instance can receive.
  1925  	MaxInstanceRequestConcurrency int64 `json:"maxInstanceRequestConcurrency,omitempty"`
  1926  	// NodeSelector: Optional. The node selector for the revision template.
  1927  	NodeSelector *GoogleCloudRunV2NodeSelector `json:"nodeSelector,omitempty"`
  1928  	// Revision: Optional. The unique name for the revision. If this field is
  1929  	// omitted, it will be automatically generated based on the Service name.
  1930  	Revision string `json:"revision,omitempty"`
  1931  	// Scaling: Optional. Scaling settings for this Revision.
  1932  	Scaling *GoogleCloudRunV2RevisionScaling `json:"scaling,omitempty"`
  1933  	// ServiceAccount: Optional. Email address of the IAM service account
  1934  	// associated with the revision of the service. The service account represents
  1935  	// the identity of the running revision, and determines what permissions the
  1936  	// revision has. If not provided, the revision will use the project's default
  1937  	// service account.
  1938  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1939  	// SessionAffinity: Optional. Enable session affinity.
  1940  	SessionAffinity bool `json:"sessionAffinity,omitempty"`
  1941  	// Timeout: Optional. Max allowed time for an instance to respond to a request.
  1942  	Timeout string `json:"timeout,omitempty"`
  1943  	// Volumes: Optional. A list of Volumes to make available to containers.
  1944  	Volumes []*GoogleCloudRunV2Volume `json:"volumes,omitempty"`
  1945  	// VpcAccess: Optional. VPC Access configuration to use for this Revision. For
  1946  	// more information, visit
  1947  	// https://cloud.google.com/run/docs/configuring/connecting-vpc.
  1948  	VpcAccess *GoogleCloudRunV2VpcAccess `json:"vpcAccess,omitempty"`
  1949  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  1950  	// unconditionally include in API requests. By default, fields with empty or
  1951  	// default values are omitted from API requests. See
  1952  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1953  	// details.
  1954  	ForceSendFields []string `json:"-"`
  1955  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  1956  	// requests with the JSON null value. By default, fields with empty values are
  1957  	// omitted from API requests. See
  1958  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1959  	NullFields []string `json:"-"`
  1960  }
  1961  
  1962  func (s *GoogleCloudRunV2RevisionTemplate) MarshalJSON() ([]byte, error) {
  1963  	type NoMethod GoogleCloudRunV2RevisionTemplate
  1964  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1965  }
  1966  
  1967  // GoogleCloudRunV2RunJobRequest: Request message to create a new Execution of
  1968  // a Job.
  1969  type GoogleCloudRunV2RunJobRequest struct {
  1970  	// Etag: A system-generated fingerprint for this version of the resource. May
  1971  	// be used to detect modification conflict during updates.
  1972  	Etag string `json:"etag,omitempty"`
  1973  	// Overrides: Overrides specification for a given execution of a job. If
  1974  	// provided, overrides will be applied to update the execution or task spec.
  1975  	Overrides *GoogleCloudRunV2Overrides `json:"overrides,omitempty"`
  1976  	// ValidateOnly: Indicates that the request should be validated without
  1977  	// actually deleting any resources.
  1978  	ValidateOnly bool `json:"validateOnly,omitempty"`
  1979  	// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally
  1980  	// include in API requests. By default, fields with empty or default values are
  1981  	// omitted from API requests. See
  1982  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1983  	// details.
  1984  	ForceSendFields []string `json:"-"`
  1985  	// NullFields is a list of field names (e.g. "Etag") to include in API requests
  1986  	// with the JSON null value. By default, fields with empty values are omitted
  1987  	// from API requests. See
  1988  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1989  	NullFields []string `json:"-"`
  1990  }
  1991  
  1992  func (s *GoogleCloudRunV2RunJobRequest) MarshalJSON() ([]byte, error) {
  1993  	type NoMethod GoogleCloudRunV2RunJobRequest
  1994  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1995  }
  1996  
  1997  // GoogleCloudRunV2SecretKeySelector: SecretEnvVarSource represents a source
  1998  // for the value of an EnvVar.
  1999  type GoogleCloudRunV2SecretKeySelector struct {
  2000  	// Secret: Required. The name of the secret in Cloud Secret Manager. Format:
  2001  	// {secret_name} if the secret is in the same project.
  2002  	// projects/{project}/secrets/{secret_name} if the secret is in a different
  2003  	// project.
  2004  	Secret string `json:"secret,omitempty"`
  2005  	// Version: The Cloud Secret Manager secret version. Can be 'latest' for the
  2006  	// latest version, an integer for a specific version, or a version alias.
  2007  	Version string `json:"version,omitempty"`
  2008  	// ForceSendFields is a list of field names (e.g. "Secret") to unconditionally
  2009  	// include in API requests. By default, fields with empty or default values are
  2010  	// omitted from API requests. See
  2011  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2012  	// details.
  2013  	ForceSendFields []string `json:"-"`
  2014  	// NullFields is a list of field names (e.g. "Secret") to include in API
  2015  	// requests with the JSON null value. By default, fields with empty values are
  2016  	// omitted from API requests. See
  2017  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2018  	NullFields []string `json:"-"`
  2019  }
  2020  
  2021  func (s *GoogleCloudRunV2SecretKeySelector) MarshalJSON() ([]byte, error) {
  2022  	type NoMethod GoogleCloudRunV2SecretKeySelector
  2023  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2024  }
  2025  
  2026  // GoogleCloudRunV2SecretVolumeSource: The secret's value will be presented as
  2027  // the content of a file whose name is defined in the item path. If no items
  2028  // are defined, the name of the file is the secret.
  2029  type GoogleCloudRunV2SecretVolumeSource struct {
  2030  	// DefaultMode: Integer representation of mode bits to use on created files by
  2031  	// default. Must be a value between 0000 and 0777 (octal), defaulting to 0444.
  2032  	// Directories within the path are not affected by this setting. Notes *
  2033  	// Internally, a umask of 0222 will be applied to any non-zero value. * This is
  2034  	// an integer representation of the mode bits. So, the octal integer value
  2035  	// should look exactly as the chmod numeric notation with a leading zero. Some
  2036  	// examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For
  2037  	// chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755
  2038  	// (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in
  2039  	// conflict with other options that affect the file mode, like fsGroup, and the
  2040  	// result can be other mode bits set. This might be in conflict with other
  2041  	// options that affect the file mode, like fsGroup, and as a result, other mode
  2042  	// bits could be set.
  2043  	DefaultMode int64 `json:"defaultMode,omitempty"`
  2044  	// Items: If unspecified, the volume will expose a file whose name is the
  2045  	// secret, relative to VolumeMount.mount_path. If specified, the key will be
  2046  	// used as the version to fetch from Cloud Secret Manager and the path will be
  2047  	// the name of the file exposed in the volume. When items are defined, they
  2048  	// must specify a path and a version.
  2049  	Items []*GoogleCloudRunV2VersionToPath `json:"items,omitempty"`
  2050  	// Secret: Required. The name of the secret in Cloud Secret Manager. Format:
  2051  	// {secret} if the secret is in the same project.
  2052  	// projects/{project}/secrets/{secret} if the secret is in a different project.
  2053  	Secret string `json:"secret,omitempty"`
  2054  	// ForceSendFields is a list of field names (e.g. "DefaultMode") to
  2055  	// unconditionally include in API requests. By default, fields with empty or
  2056  	// default values are omitted from API requests. See
  2057  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2058  	// details.
  2059  	ForceSendFields []string `json:"-"`
  2060  	// NullFields is a list of field names (e.g. "DefaultMode") to include in API
  2061  	// requests with the JSON null value. By default, fields with empty values are
  2062  	// omitted from API requests. See
  2063  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2064  	NullFields []string `json:"-"`
  2065  }
  2066  
  2067  func (s *GoogleCloudRunV2SecretVolumeSource) MarshalJSON() ([]byte, error) {
  2068  	type NoMethod GoogleCloudRunV2SecretVolumeSource
  2069  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2070  }
  2071  
  2072  // GoogleCloudRunV2Service: Service acts as a top-level container that manages
  2073  // a set of configurations and revision templates which implement a network
  2074  // service. Service exists to provide a singular abstraction which can be
  2075  // access controlled, reasoned about, and which encapsulates software lifecycle
  2076  // decisions such as rollout policy and team resource ownership.
  2077  type GoogleCloudRunV2Service struct {
  2078  	// Annotations: Optional. Unstructured key value map that may be set by
  2079  	// external tools to store and arbitrary metadata. They are not queryable and
  2080  	// should be preserved when modifying objects. Cloud Run API v2 does not
  2081  	// support annotations with `run.googleapis.com`, `cloud.googleapis.com`,
  2082  	// `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
  2083  	// will be rejected in new resources. All system annotations in v1 now have a
  2084  	// corresponding field in v2 Service. This field follows Kubernetes
  2085  	// annotations' namespacing, limits, and rules.
  2086  	Annotations map[string]string `json:"annotations,omitempty"`
  2087  	// BinaryAuthorization: Optional. Settings for the Binary Authorization
  2088  	// feature.
  2089  	BinaryAuthorization *GoogleCloudRunV2BinaryAuthorization `json:"binaryAuthorization,omitempty"`
  2090  	// Client: Arbitrary identifier for the API client.
  2091  	Client string `json:"client,omitempty"`
  2092  	// ClientVersion: Arbitrary version identifier for the API client.
  2093  	ClientVersion string `json:"clientVersion,omitempty"`
  2094  	// Conditions: Output only. The Conditions of all other associated
  2095  	// sub-resources. They contain additional diagnostics information in case the
  2096  	// Service does not reach its Serving state. See comments in `reconciling` for
  2097  	// additional information on reconciliation process in Cloud Run.
  2098  	Conditions []*GoogleCloudRunV2Condition `json:"conditions,omitempty"`
  2099  	// CreateTime: Output only. The creation time.
  2100  	CreateTime string `json:"createTime,omitempty"`
  2101  	// Creator: Output only. Email address of the authenticated creator.
  2102  	Creator string `json:"creator,omitempty"`
  2103  	// CustomAudiences: One or more custom audiences that you want this service to
  2104  	// support. Specify each custom audience as the full URL in a string. The
  2105  	// custom audiences are encoded in the token and used to authenticate requests.
  2106  	// For more information, see
  2107  	// https://cloud.google.com/run/docs/configuring/custom-audiences.
  2108  	CustomAudiences []string `json:"customAudiences,omitempty"`
  2109  	// DefaultUriDisabled: Optional. Disables public resolution of the default URI
  2110  	// of this service.
  2111  	DefaultUriDisabled bool `json:"defaultUriDisabled,omitempty"`
  2112  	// DeleteTime: Output only. The deletion time.
  2113  	DeleteTime string `json:"deleteTime,omitempty"`
  2114  	// Description: User-provided description of the Service. This field currently
  2115  	// has a 512-character limit.
  2116  	Description string `json:"description,omitempty"`
  2117  	// Etag: Output only. A system-generated fingerprint for this version of the
  2118  	// resource. May be used to detect modification conflict during updates.
  2119  	Etag string `json:"etag,omitempty"`
  2120  	// ExpireTime: Output only. For a deleted resource, the time after which it
  2121  	// will be permamently deleted.
  2122  	ExpireTime string `json:"expireTime,omitempty"`
  2123  	// Generation: Output only. A number that monotonically increases every time
  2124  	// the user modifies the desired state. Please note that unlike v1, this is an
  2125  	// int64 value. As with most Google APIs, its JSON representation will be a
  2126  	// `string` instead of an `integer`.
  2127  	Generation int64 `json:"generation,omitempty,string"`
  2128  	// Ingress: Optional. Provides the ingress settings for this Service. On
  2129  	// output, returns the currently observed ingress settings, or
  2130  	// INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
  2131  	//
  2132  	// Possible values:
  2133  	//   "INGRESS_TRAFFIC_UNSPECIFIED" - Unspecified
  2134  	//   "INGRESS_TRAFFIC_ALL" - All inbound traffic is allowed.
  2135  	//   "INGRESS_TRAFFIC_INTERNAL_ONLY" - Only internal traffic is allowed.
  2136  	//   "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER" - Both internal and Google Cloud
  2137  	// Load Balancer traffic is allowed.
  2138  	//   "INGRESS_TRAFFIC_NONE" - No ingress traffic is allowed.
  2139  	Ingress string `json:"ingress,omitempty"`
  2140  	// Labels: Optional. Unstructured key value map that can be used to organize
  2141  	// and categorize objects. User-provided labels are shared with Google's
  2142  	// billing system, so they can be used to filter, or break down billing charges
  2143  	// by team, component, environment, state, etc. For more information, visit
  2144  	// https://cloud.google.com/resource-manager/docs/creating-managing-labels or
  2145  	// https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does
  2146  	// not support labels with `run.googleapis.com`, `cloud.googleapis.com`,
  2147  	// `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they
  2148  	// will be rejected. All system labels in v1 now have a corresponding field in
  2149  	// v2 Service.
  2150  	Labels map[string]string `json:"labels,omitempty"`
  2151  	// LastModifier: Output only. Email address of the last authenticated modifier.
  2152  	LastModifier string `json:"lastModifier,omitempty"`
  2153  	// LatestCreatedRevision: Output only. Name of the last created revision. See
  2154  	// comments in `reconciling` for additional information on reconciliation
  2155  	// process in Cloud Run.
  2156  	LatestCreatedRevision string `json:"latestCreatedRevision,omitempty"`
  2157  	// LatestReadyRevision: Output only. Name of the latest revision that is
  2158  	// serving traffic. See comments in `reconciling` for additional information on
  2159  	// reconciliation process in Cloud Run.
  2160  	LatestReadyRevision string `json:"latestReadyRevision,omitempty"`
  2161  	// LaunchStage: Optional. The launch stage as defined by Google Cloud Platform
  2162  	// Launch Stages (https://cloud.google.com/terms/launch-stages). Cloud Run
  2163  	// supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed.
  2164  	// Set the launch stage to a preview stage on input to allow use of preview
  2165  	// features in that stage. On read (or output), describes whether the resource
  2166  	// uses preview features. For example, if ALPHA is provided as input, but only
  2167  	// BETA and GA-level features are used, this field will be BETA on output.
  2168  	//
  2169  	// Possible values:
  2170  	//   "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value.
  2171  	//   "UNIMPLEMENTED" - The feature is not yet implemented. Users can not use
  2172  	// it.
  2173  	//   "PRELAUNCH" - Prelaunch features are hidden from users and are only
  2174  	// visible internally.
  2175  	//   "EARLY_ACCESS" - Early Access features are limited to a closed group of
  2176  	// testers. To use these features, you must sign up in advance and sign a
  2177  	// Trusted Tester agreement (which includes confidentiality provisions). These
  2178  	// features may be unstable, changed in backward-incompatible ways, and are not
  2179  	// guaranteed to be released.
  2180  	//   "ALPHA" - Alpha is a limited availability test for releases before they
  2181  	// are cleared for widespread use. By Alpha, all significant design issues are
  2182  	// resolved and we are in the process of verifying functionality. Alpha
  2183  	// customers need to apply for access, agree to applicable terms, and have
  2184  	// their projects allowlisted. Alpha releases don't have to be feature
  2185  	// complete, no SLAs are provided, and there are no technical support
  2186  	// obligations, but they will be far enough along that customers can actually
  2187  	// use them in test environments or for limited-use tests -- just like they
  2188  	// would in normal production cases.
  2189  	//   "BETA" - Beta is the point at which we are ready to open a release for any
  2190  	// customer to use. There are no SLA or technical support obligations in a Beta
  2191  	// release. Products will be complete from a feature perspective, but may have
  2192  	// some open outstanding issues. Beta releases are suitable for limited
  2193  	// production use cases.
  2194  	//   "GA" - GA features are open to all developers and are considered stable
  2195  	// and fully qualified for production use.
  2196  	//   "DEPRECATED" - Deprecated features are scheduled to be shut down and
  2197  	// removed. For more information, see the "Deprecation Policy" section of our
  2198  	// [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud
  2199  	// Platform Subject to the Deprecation
  2200  	// Policy](https://cloud.google.com/terms/deprecation) documentation.
  2201  	LaunchStage string `json:"launchStage,omitempty"`
  2202  	// Name: The fully qualified name of this Service. In CreateServiceRequest,
  2203  	// this field is ignored, and instead composed from CreateServiceRequest.parent
  2204  	// and CreateServiceRequest.service_id. Format:
  2205  	// projects/{project}/locations/{location}/services/{service_id}
  2206  	Name string `json:"name,omitempty"`
  2207  	// ObservedGeneration: Output only. The generation of this Service currently
  2208  	// serving traffic. See comments in `reconciling` for additional information on
  2209  	// reconciliation process in Cloud Run. Please note that unlike v1, this is an
  2210  	// int64 value. As with most Google APIs, its JSON representation will be a
  2211  	// `string` instead of an `integer`.
  2212  	ObservedGeneration int64 `json:"observedGeneration,omitempty,string"`
  2213  	// Reconciling: Output only. Returns true if the Service is currently being
  2214  	// acted upon by the system to bring it into the desired state. When a new
  2215  	// Service is created, or an existing one is updated, Cloud Run will
  2216  	// asynchronously perform all necessary steps to bring the Service to the
  2217  	// desired serving state. This process is called reconciliation. While
  2218  	// reconciliation is in process, `observed_generation`, `latest_ready_revison`,
  2219  	// `traffic_statuses`, and `uri` will have transient values that might mismatch
  2220  	// the intended state: Once reconciliation is over (and this field is false),
  2221  	// there are two possible outcomes: reconciliation succeeded and the serving
  2222  	// state matches the Service, or there was an error, and reconciliation failed.
  2223  	// This state can be found in `terminal_condition.state`. If reconciliation
  2224  	// succeeded, the following fields will match: `traffic` and
  2225  	// `traffic_statuses`, `observed_generation` and `generation`,
  2226  	// `latest_ready_revision` and `latest_created_revision`. If reconciliation
  2227  	// failed, `traffic_statuses`, `observed_generation`, and
  2228  	// `latest_ready_revision` will have the state of the last serving revision, or
  2229  	// empty for newly created Services. Additional information on the failure can
  2230  	// be found in `terminal_condition` and `conditions`.
  2231  	Reconciling bool `json:"reconciling,omitempty"`
  2232  	// SatisfiesPzs: Output only. Reserved for future use.
  2233  	SatisfiesPzs bool `json:"satisfiesPzs,omitempty"`
  2234  	// Scaling: Optional. Specifies service-level scaling settings
  2235  	Scaling *GoogleCloudRunV2ServiceScaling `json:"scaling,omitempty"`
  2236  	// Template: Required. The template used to create revisions for this Service.
  2237  	Template *GoogleCloudRunV2RevisionTemplate `json:"template,omitempty"`
  2238  	// TerminalCondition: Output only. The Condition of this Service, containing
  2239  	// its readiness status, and detailed error information in case it did not
  2240  	// reach a serving state. See comments in `reconciling` for additional
  2241  	// information on reconciliation process in Cloud Run.
  2242  	TerminalCondition *GoogleCloudRunV2Condition `json:"terminalCondition,omitempty"`
  2243  	// Traffic: Optional. Specifies how to distribute traffic over a collection of
  2244  	// Revisions belonging to the Service. If traffic is empty or not provided,
  2245  	// defaults to 100% traffic to the latest `Ready` Revision.
  2246  	Traffic []*GoogleCloudRunV2TrafficTarget `json:"traffic,omitempty"`
  2247  	// TrafficStatuses: Output only. Detailed status information for corresponding
  2248  	// traffic targets. See comments in `reconciling` for additional information on
  2249  	// reconciliation process in Cloud Run.
  2250  	TrafficStatuses []*GoogleCloudRunV2TrafficTargetStatus `json:"trafficStatuses,omitempty"`
  2251  	// Uid: Output only. Server assigned unique identifier for the trigger. The
  2252  	// value is a UUID4 string and guaranteed to remain unchanged until the
  2253  	// resource is deleted.
  2254  	Uid string `json:"uid,omitempty"`
  2255  	// UpdateTime: Output only. The last-modified time.
  2256  	UpdateTime string `json:"updateTime,omitempty"`
  2257  	// Uri: Output only. The main URI in which this Service is serving traffic.
  2258  	Uri string `json:"uri,omitempty"`
  2259  
  2260  	// ServerResponse contains the HTTP response code and headers from the server.
  2261  	googleapi.ServerResponse `json:"-"`
  2262  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  2263  	// unconditionally include in API requests. By default, fields with empty or
  2264  	// default values are omitted from API requests. See
  2265  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2266  	// details.
  2267  	ForceSendFields []string `json:"-"`
  2268  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  2269  	// requests with the JSON null value. By default, fields with empty values are
  2270  	// omitted from API requests. See
  2271  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2272  	NullFields []string `json:"-"`
  2273  }
  2274  
  2275  func (s *GoogleCloudRunV2Service) MarshalJSON() ([]byte, error) {
  2276  	type NoMethod GoogleCloudRunV2Service
  2277  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2278  }
  2279  
  2280  // GoogleCloudRunV2ServiceScaling: Scaling settings applied at the service
  2281  // level rather than at the revision level.
  2282  type GoogleCloudRunV2ServiceScaling struct {
  2283  	// MinInstanceCount: Optional. total min instances for the service. This number
  2284  	// of instances is divided among all revisions with specified traffic based on
  2285  	// the percent of traffic they are receiving. (BETA)
  2286  	MinInstanceCount int64 `json:"minInstanceCount,omitempty"`
  2287  	// ForceSendFields is a list of field names (e.g. "MinInstanceCount") to
  2288  	// unconditionally include in API requests. By default, fields with empty or
  2289  	// default values are omitted from API requests. See
  2290  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2291  	// details.
  2292  	ForceSendFields []string `json:"-"`
  2293  	// NullFields is a list of field names (e.g. "MinInstanceCount") to include in
  2294  	// API requests with the JSON null value. By default, fields with empty values
  2295  	// are omitted from API requests. See
  2296  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2297  	NullFields []string `json:"-"`
  2298  }
  2299  
  2300  func (s *GoogleCloudRunV2ServiceScaling) MarshalJSON() ([]byte, error) {
  2301  	type NoMethod GoogleCloudRunV2ServiceScaling
  2302  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2303  }
  2304  
  2305  // GoogleCloudRunV2TCPSocketAction: TCPSocketAction describes an action based
  2306  // on opening a socket
  2307  type GoogleCloudRunV2TCPSocketAction struct {
  2308  	// Port: Optional. Port number to access on the container. Must be in the range
  2309  	// 1 to 65535. If not specified, defaults to the exposed port of the container,
  2310  	// which is the value of container.ports[0].containerPort.
  2311  	Port int64 `json:"port,omitempty"`
  2312  	// ForceSendFields is a list of field names (e.g. "Port") to unconditionally
  2313  	// include in API requests. By default, fields with empty or default values are
  2314  	// omitted from API requests. See
  2315  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2316  	// details.
  2317  	ForceSendFields []string `json:"-"`
  2318  	// NullFields is a list of field names (e.g. "Port") to include in API requests
  2319  	// with the JSON null value. By default, fields with empty values are omitted
  2320  	// from API requests. See
  2321  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2322  	NullFields []string `json:"-"`
  2323  }
  2324  
  2325  func (s *GoogleCloudRunV2TCPSocketAction) MarshalJSON() ([]byte, error) {
  2326  	type NoMethod GoogleCloudRunV2TCPSocketAction
  2327  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2328  }
  2329  
  2330  // GoogleCloudRunV2Task: Task represents a single run of a container to
  2331  // completion.
  2332  type GoogleCloudRunV2Task struct {
  2333  	// Annotations: Output only. Unstructured key value map that may be set by
  2334  	// external tools to store and arbitrary metadata. They are not queryable and
  2335  	// should be preserved when modifying objects.
  2336  	Annotations map[string]string `json:"annotations,omitempty"`
  2337  	// CompletionTime: Output only. Represents time when the Task was completed. It
  2338  	// is not guaranteed to be set in happens-before order across separate
  2339  	// operations.
  2340  	CompletionTime string `json:"completionTime,omitempty"`
  2341  	// Conditions: Output only. The Condition of this Task, containing its
  2342  	// readiness status, and detailed error information in case it did not reach
  2343  	// the desired state.
  2344  	Conditions []*GoogleCloudRunV2Condition `json:"conditions,omitempty"`
  2345  	// Containers: Holds the single container that defines the unit of execution
  2346  	// for this task.
  2347  	Containers []*GoogleCloudRunV2Container `json:"containers,omitempty"`
  2348  	// CreateTime: Output only. Represents time when the task was created by the
  2349  	// system. It is not guaranteed to be set in happens-before order across
  2350  	// separate operations.
  2351  	CreateTime string `json:"createTime,omitempty"`
  2352  	// DeleteTime: Output only. For a deleted resource, the deletion time. It is
  2353  	// only populated as a response to a Delete request.
  2354  	DeleteTime string `json:"deleteTime,omitempty"`
  2355  	// EncryptionKey: Output only. A reference to a customer managed encryption key
  2356  	// (CMEK) to use to encrypt this container image. For more information, go to
  2357  	// https://cloud.google.com/run/docs/securing/using-cmek
  2358  	EncryptionKey string `json:"encryptionKey,omitempty"`
  2359  	// Etag: Output only. A system-generated fingerprint for this version of the
  2360  	// resource. May be used to detect modification conflict during updates.
  2361  	Etag string `json:"etag,omitempty"`
  2362  	// Execution: Output only. The name of the parent Execution.
  2363  	Execution string `json:"execution,omitempty"`
  2364  	// ExecutionEnvironment: The execution environment being used to host this
  2365  	// Task.
  2366  	//
  2367  	// Possible values:
  2368  	//   "EXECUTION_ENVIRONMENT_UNSPECIFIED" - Unspecified
  2369  	//   "EXECUTION_ENVIRONMENT_GEN1" - Uses the First Generation environment.
  2370  	//   "EXECUTION_ENVIRONMENT_GEN2" - Uses Second Generation environment.
  2371  	ExecutionEnvironment string `json:"executionEnvironment,omitempty"`
  2372  	// ExpireTime: Output only. For a deleted resource, the time after which it
  2373  	// will be permamently deleted. It is only populated as a response to a Delete
  2374  	// request.
  2375  	ExpireTime string `json:"expireTime,omitempty"`
  2376  	// Generation: Output only. A number that monotonically increases every time
  2377  	// the user modifies the desired state.
  2378  	Generation int64 `json:"generation,omitempty,string"`
  2379  	// Index: Output only. Index of the Task, unique per execution, and beginning
  2380  	// at 0.
  2381  	Index int64 `json:"index,omitempty"`
  2382  	// Job: Output only. The name of the parent Job.
  2383  	Job string `json:"job,omitempty"`
  2384  	// Labels: Output only. Unstructured key value map that can be used to organize
  2385  	// and categorize objects. User-provided labels are shared with Google's
  2386  	// billing system, so they can be used to filter, or break down billing charges
  2387  	// by team, component, environment, state, etc. For more information, visit
  2388  	// https://cloud.google.com/resource-manager/docs/creating-managing-labels or
  2389  	// https://cloud.google.com/run/docs/configuring/labels
  2390  	Labels map[string]string `json:"labels,omitempty"`
  2391  	// LastAttemptResult: Output only. Result of the last attempt of this Task.
  2392  	LastAttemptResult *GoogleCloudRunV2TaskAttemptResult `json:"lastAttemptResult,omitempty"`
  2393  	// LogUri: Output only. URI where logs for this execution can be found in Cloud
  2394  	// Console.
  2395  	LogUri string `json:"logUri,omitempty"`
  2396  	// MaxRetries: Number of retries allowed per Task, before marking this Task
  2397  	// failed.
  2398  	MaxRetries int64 `json:"maxRetries,omitempty"`
  2399  	// Name: Output only. The unique name of this Task.
  2400  	Name string `json:"name,omitempty"`
  2401  	// ObservedGeneration: Output only. The generation of this Task. See comments
  2402  	// in `Job.reconciling` for additional information on reconciliation process in
  2403  	// Cloud Run.
  2404  	ObservedGeneration int64 `json:"observedGeneration,omitempty,string"`
  2405  	// Reconciling: Output only. Indicates whether the resource's reconciliation is
  2406  	// still in progress. See comments in `Job.reconciling` for additional
  2407  	// information on reconciliation process in Cloud Run.
  2408  	Reconciling bool `json:"reconciling,omitempty"`
  2409  	// Retried: Output only. The number of times this Task was retried. Tasks are
  2410  	// retried when they fail up to the maxRetries limit.
  2411  	Retried int64 `json:"retried,omitempty"`
  2412  	// SatisfiesPzs: Output only. Reserved for future use.
  2413  	SatisfiesPzs bool `json:"satisfiesPzs,omitempty"`
  2414  	// ScheduledTime: Output only. Represents time when the task was scheduled to
  2415  	// run by the system. It is not guaranteed to be set in happens-before order
  2416  	// across separate operations.
  2417  	ScheduledTime string `json:"scheduledTime,omitempty"`
  2418  	// ServiceAccount: Email address of the IAM service account associated with the
  2419  	// Task of a Job. The service account represents the identity of the running
  2420  	// task, and determines what permissions the task has. If not provided, the
  2421  	// task will use the project's default service account.
  2422  	ServiceAccount string `json:"serviceAccount,omitempty"`
  2423  	// StartTime: Output only. Represents time when the task started to run. It is
  2424  	// not guaranteed to be set in happens-before order across separate operations.
  2425  	StartTime string `json:"startTime,omitempty"`
  2426  	// Timeout: Max allowed time duration the Task may be active before the system
  2427  	// will actively try to mark it failed and kill associated containers. This
  2428  	// applies per attempt of a task, meaning each retry can run for the full
  2429  	// timeout.
  2430  	Timeout string `json:"timeout,omitempty"`
  2431  	// Uid: Output only. Server assigned unique identifier for the Task. The value
  2432  	// is a UUID4 string and guaranteed to remain unchanged until the resource is
  2433  	// deleted.
  2434  	Uid string `json:"uid,omitempty"`
  2435  	// UpdateTime: Output only. The last-modified time.
  2436  	UpdateTime string `json:"updateTime,omitempty"`
  2437  	// Volumes: A list of Volumes to make available to containers.
  2438  	Volumes []*GoogleCloudRunV2Volume `json:"volumes,omitempty"`
  2439  	// VpcAccess: Output only. VPC Access configuration to use for this Task. For
  2440  	// more information, visit
  2441  	// https://cloud.google.com/run/docs/configuring/connecting-vpc.
  2442  	VpcAccess *GoogleCloudRunV2VpcAccess `json:"vpcAccess,omitempty"`
  2443  
  2444  	// ServerResponse contains the HTTP response code and headers from the server.
  2445  	googleapi.ServerResponse `json:"-"`
  2446  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  2447  	// unconditionally include in API requests. By default, fields with empty or
  2448  	// default values are omitted from API requests. See
  2449  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2450  	// details.
  2451  	ForceSendFields []string `json:"-"`
  2452  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  2453  	// requests with the JSON null value. By default, fields with empty values are
  2454  	// omitted from API requests. See
  2455  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2456  	NullFields []string `json:"-"`
  2457  }
  2458  
  2459  func (s *GoogleCloudRunV2Task) MarshalJSON() ([]byte, error) {
  2460  	type NoMethod GoogleCloudRunV2Task
  2461  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2462  }
  2463  
  2464  // GoogleCloudRunV2TaskAttemptResult: Result of a task attempt.
  2465  type GoogleCloudRunV2TaskAttemptResult struct {
  2466  	// ExitCode: Output only. The exit code of this attempt. This may be unset if
  2467  	// the container was unable to exit cleanly with a code due to some other
  2468  	// failure. See status field for possible failure details.
  2469  	ExitCode int64 `json:"exitCode,omitempty"`
  2470  	// Status: Output only. The status of this attempt. If the status code is OK,
  2471  	// then the attempt succeeded.
  2472  	Status *GoogleRpcStatus `json:"status,omitempty"`
  2473  	// ForceSendFields is a list of field names (e.g. "ExitCode") to
  2474  	// unconditionally include in API requests. By default, fields with empty or
  2475  	// default values are omitted from API requests. See
  2476  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2477  	// details.
  2478  	ForceSendFields []string `json:"-"`
  2479  	// NullFields is a list of field names (e.g. "ExitCode") to include in API
  2480  	// requests with the JSON null value. By default, fields with empty values are
  2481  	// omitted from API requests. See
  2482  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2483  	NullFields []string `json:"-"`
  2484  }
  2485  
  2486  func (s *GoogleCloudRunV2TaskAttemptResult) MarshalJSON() ([]byte, error) {
  2487  	type NoMethod GoogleCloudRunV2TaskAttemptResult
  2488  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2489  }
  2490  
  2491  // GoogleCloudRunV2TaskTemplate: TaskTemplate describes the data a task should
  2492  // have when created from a template.
  2493  type GoogleCloudRunV2TaskTemplate struct {
  2494  	// Containers: Holds the single container that defines the unit of execution
  2495  	// for this task.
  2496  	Containers []*GoogleCloudRunV2Container `json:"containers,omitempty"`
  2497  	// EncryptionKey: A reference to a customer managed encryption key (CMEK) to
  2498  	// use to encrypt this container image. For more information, go to
  2499  	// https://cloud.google.com/run/docs/securing/using-cmek
  2500  	EncryptionKey string `json:"encryptionKey,omitempty"`
  2501  	// ExecutionEnvironment: Optional. The execution environment being used to host
  2502  	// this Task.
  2503  	//
  2504  	// Possible values:
  2505  	//   "EXECUTION_ENVIRONMENT_UNSPECIFIED" - Unspecified
  2506  	//   "EXECUTION_ENVIRONMENT_GEN1" - Uses the First Generation environment.
  2507  	//   "EXECUTION_ENVIRONMENT_GEN2" - Uses Second Generation environment.
  2508  	ExecutionEnvironment string `json:"executionEnvironment,omitempty"`
  2509  	// MaxRetries: Number of retries allowed per Task, before marking this Task
  2510  	// failed. Defaults to 3.
  2511  	MaxRetries int64 `json:"maxRetries,omitempty"`
  2512  	// ServiceAccount: Optional. Email address of the IAM service account
  2513  	// associated with the Task of a Job. The service account represents the
  2514  	// identity of the running task, and determines what permissions the task has.
  2515  	// If not provided, the task will use the project's default service account.
  2516  	ServiceAccount string `json:"serviceAccount,omitempty"`
  2517  	// Timeout: Optional. Max allowed time duration the Task may be active before
  2518  	// the system will actively try to mark it failed and kill associated
  2519  	// containers. This applies per attempt of a task, meaning each retry can run
  2520  	// for the full timeout. Defaults to 600 seconds.
  2521  	Timeout string `json:"timeout,omitempty"`
  2522  	// Volumes: Optional. A list of Volumes to make available to containers.
  2523  	Volumes []*GoogleCloudRunV2Volume `json:"volumes,omitempty"`
  2524  	// VpcAccess: Optional. VPC Access configuration to use for this Task. For more
  2525  	// information, visit
  2526  	// https://cloud.google.com/run/docs/configuring/connecting-vpc.
  2527  	VpcAccess *GoogleCloudRunV2VpcAccess `json:"vpcAccess,omitempty"`
  2528  	// ForceSendFields is a list of field names (e.g. "Containers") to
  2529  	// unconditionally include in API requests. By default, fields with empty or
  2530  	// default values are omitted from API requests. See
  2531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2532  	// details.
  2533  	ForceSendFields []string `json:"-"`
  2534  	// NullFields is a list of field names (e.g. "Containers") to include in API
  2535  	// requests with the JSON null value. By default, fields with empty values are
  2536  	// omitted from API requests. See
  2537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2538  	NullFields []string `json:"-"`
  2539  }
  2540  
  2541  func (s *GoogleCloudRunV2TaskTemplate) MarshalJSON() ([]byte, error) {
  2542  	type NoMethod GoogleCloudRunV2TaskTemplate
  2543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2544  }
  2545  
  2546  // GoogleCloudRunV2TrafficTarget: Holds a single traffic routing entry for the
  2547  // Service. Allocations can be done to a specific Revision name, or pointing to
  2548  // the latest Ready Revision.
  2549  type GoogleCloudRunV2TrafficTarget struct {
  2550  	// Percent: Specifies percent of the traffic to this Revision. This defaults to
  2551  	// zero if unspecified.
  2552  	Percent int64 `json:"percent,omitempty"`
  2553  	// Revision: Revision to which to send this portion of traffic, if traffic
  2554  	// allocation is by revision.
  2555  	Revision string `json:"revision,omitempty"`
  2556  	// Tag: Indicates a string to be part of the URI to exclusively reference this
  2557  	// target.
  2558  	Tag string `json:"tag,omitempty"`
  2559  	// Type: The allocation type for this traffic target.
  2560  	//
  2561  	// Possible values:
  2562  	//   "TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED" - Unspecified instance
  2563  	// allocation type.
  2564  	//   "TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST" - Allocates instances to the
  2565  	// Service's latest ready Revision.
  2566  	//   "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION" - Allocates instances to a
  2567  	// Revision by name.
  2568  	Type string `json:"type,omitempty"`
  2569  	// ForceSendFields is a list of field names (e.g. "Percent") to unconditionally
  2570  	// include in API requests. By default, fields with empty or default values are
  2571  	// omitted from API requests. See
  2572  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2573  	// details.
  2574  	ForceSendFields []string `json:"-"`
  2575  	// NullFields is a list of field names (e.g. "Percent") to include in API
  2576  	// requests with the JSON null value. By default, fields with empty values are
  2577  	// omitted from API requests. See
  2578  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2579  	NullFields []string `json:"-"`
  2580  }
  2581  
  2582  func (s *GoogleCloudRunV2TrafficTarget) MarshalJSON() ([]byte, error) {
  2583  	type NoMethod GoogleCloudRunV2TrafficTarget
  2584  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2585  }
  2586  
  2587  // GoogleCloudRunV2TrafficTargetStatus: Represents the observed state of a
  2588  // single `TrafficTarget` entry.
  2589  type GoogleCloudRunV2TrafficTargetStatus struct {
  2590  	// Percent: Specifies percent of the traffic to this Revision.
  2591  	Percent int64 `json:"percent,omitempty"`
  2592  	// Revision: Revision to which this traffic is sent.
  2593  	Revision string `json:"revision,omitempty"`
  2594  	// Tag: Indicates the string used in the URI to exclusively reference this
  2595  	// target.
  2596  	Tag string `json:"tag,omitempty"`
  2597  	// Type: The allocation type for this traffic target.
  2598  	//
  2599  	// Possible values:
  2600  	//   "TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED" - Unspecified instance
  2601  	// allocation type.
  2602  	//   "TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST" - Allocates instances to the
  2603  	// Service's latest ready Revision.
  2604  	//   "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION" - Allocates instances to a
  2605  	// Revision by name.
  2606  	Type string `json:"type,omitempty"`
  2607  	// Uri: Displays the target URI.
  2608  	Uri string `json:"uri,omitempty"`
  2609  	// ForceSendFields is a list of field names (e.g. "Percent") to unconditionally
  2610  	// include in API requests. By default, fields with empty or default values are
  2611  	// omitted from API requests. See
  2612  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2613  	// details.
  2614  	ForceSendFields []string `json:"-"`
  2615  	// NullFields is a list of field names (e.g. "Percent") to include in API
  2616  	// requests with the JSON null value. By default, fields with empty values are
  2617  	// omitted from API requests. See
  2618  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2619  	NullFields []string `json:"-"`
  2620  }
  2621  
  2622  func (s *GoogleCloudRunV2TrafficTargetStatus) MarshalJSON() ([]byte, error) {
  2623  	type NoMethod GoogleCloudRunV2TrafficTargetStatus
  2624  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2625  }
  2626  
  2627  // GoogleCloudRunV2VersionToPath: VersionToPath maps a specific version of a
  2628  // secret to a relative file to mount to, relative to VolumeMount's mount_path.
  2629  type GoogleCloudRunV2VersionToPath struct {
  2630  	// Mode: Integer octal mode bits to use on this file, must be a value between
  2631  	// 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
  2632  	// used. Notes * Internally, a umask of 0222 will be applied to any non-zero
  2633  	// value. * This is an integer representation of the mode bits. So, the octal
  2634  	// integer value should look exactly as the chmod numeric notation with a
  2635  	// leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or
  2636  	// 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416
  2637  	// (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493
  2638  	// (base-10). * This might be in conflict with other options that affect the
  2639  	// file mode, like fsGroup, and the result can be other mode bits set.
  2640  	Mode int64 `json:"mode,omitempty"`
  2641  	// Path: Required. The relative path of the secret in the container.
  2642  	Path string `json:"path,omitempty"`
  2643  	// Version: The Cloud Secret Manager secret version. Can be 'latest' for the
  2644  	// latest value, or an integer or a secret alias for a specific version.
  2645  	Version string `json:"version,omitempty"`
  2646  	// ForceSendFields is a list of field names (e.g. "Mode") to unconditionally
  2647  	// include in API requests. By default, fields with empty or default values are
  2648  	// omitted from API requests. See
  2649  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2650  	// details.
  2651  	ForceSendFields []string `json:"-"`
  2652  	// NullFields is a list of field names (e.g. "Mode") to include in API requests
  2653  	// with the JSON null value. By default, fields with empty values are omitted
  2654  	// from API requests. See
  2655  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2656  	NullFields []string `json:"-"`
  2657  }
  2658  
  2659  func (s *GoogleCloudRunV2VersionToPath) MarshalJSON() ([]byte, error) {
  2660  	type NoMethod GoogleCloudRunV2VersionToPath
  2661  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2662  }
  2663  
  2664  // GoogleCloudRunV2Volume: Volume represents a named volume in a container.
  2665  type GoogleCloudRunV2Volume struct {
  2666  	// CloudSqlInstance: For Cloud SQL volumes, contains the specific instances
  2667  	// that should be mounted. Visit
  2668  	// https://cloud.google.com/sql/docs/mysql/connect-run for more information on
  2669  	// how to connect Cloud SQL and Cloud Run.
  2670  	CloudSqlInstance *GoogleCloudRunV2CloudSqlInstance `json:"cloudSqlInstance,omitempty"`
  2671  	// EmptyDir: Ephemeral storage used as a shared volume.
  2672  	EmptyDir *GoogleCloudRunV2EmptyDirVolumeSource `json:"emptyDir,omitempty"`
  2673  	// Gcs: Persistent storage backed by a Google Cloud Storage bucket.
  2674  	Gcs *GoogleCloudRunV2GCSVolumeSource `json:"gcs,omitempty"`
  2675  	// Name: Required. Volume's name.
  2676  	Name string `json:"name,omitempty"`
  2677  	// Nfs: For NFS Voumes, contains the path to the nfs Volume
  2678  	Nfs *GoogleCloudRunV2NFSVolumeSource `json:"nfs,omitempty"`
  2679  	// Secret: Secret represents a secret that should populate this volume.
  2680  	Secret *GoogleCloudRunV2SecretVolumeSource `json:"secret,omitempty"`
  2681  	// ForceSendFields is a list of field names (e.g. "CloudSqlInstance") to
  2682  	// unconditionally include in API requests. By default, fields with empty or
  2683  	// default values are omitted from API requests. See
  2684  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2685  	// details.
  2686  	ForceSendFields []string `json:"-"`
  2687  	// NullFields is a list of field names (e.g. "CloudSqlInstance") to include in
  2688  	// API requests with the JSON null value. By default, fields with empty values
  2689  	// are omitted from API requests. See
  2690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2691  	NullFields []string `json:"-"`
  2692  }
  2693  
  2694  func (s *GoogleCloudRunV2Volume) MarshalJSON() ([]byte, error) {
  2695  	type NoMethod GoogleCloudRunV2Volume
  2696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2697  }
  2698  
  2699  // GoogleCloudRunV2VolumeMount: VolumeMount describes a mounting of a Volume
  2700  // within a container.
  2701  type GoogleCloudRunV2VolumeMount struct {
  2702  	// MountPath: Required. Path within the container at which the volume should be
  2703  	// mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty,
  2704  	// or must otherwise be `/cloudsql`. All instances defined in the Volume will
  2705  	// be available as `/cloudsql/[instance]`. For more information on Cloud SQL
  2706  	// volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
  2707  	MountPath string `json:"mountPath,omitempty"`
  2708  	// Name: Required. This must match the Name of a Volume.
  2709  	Name string `json:"name,omitempty"`
  2710  	// ForceSendFields is a list of field names (e.g. "MountPath") to
  2711  	// unconditionally include in API requests. By default, fields with empty or
  2712  	// default values are omitted from API requests. See
  2713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2714  	// details.
  2715  	ForceSendFields []string `json:"-"`
  2716  	// NullFields is a list of field names (e.g. "MountPath") to include in API
  2717  	// requests with the JSON null value. By default, fields with empty values are
  2718  	// omitted from API requests. See
  2719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2720  	NullFields []string `json:"-"`
  2721  }
  2722  
  2723  func (s *GoogleCloudRunV2VolumeMount) MarshalJSON() ([]byte, error) {
  2724  	type NoMethod GoogleCloudRunV2VolumeMount
  2725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2726  }
  2727  
  2728  // GoogleCloudRunV2VpcAccess: VPC Access settings. For more information on
  2729  // sending traffic to a VPC network, visit
  2730  // https://cloud.google.com/run/docs/configuring/connecting-vpc.
  2731  type GoogleCloudRunV2VpcAccess struct {
  2732  	// Connector: VPC Access connector name. Format:
  2733  	// projects/{project}/locations/{location}/connectors/{connector}, where
  2734  	// {project} can be project id or number. For more information on sending
  2735  	// traffic to a VPC network via a connector, visit
  2736  	// https://cloud.google.com/run/docs/configuring/vpc-connectors.
  2737  	Connector string `json:"connector,omitempty"`
  2738  	// Egress: Optional. Traffic VPC egress settings. If not provided, it defaults
  2739  	// to PRIVATE_RANGES_ONLY.
  2740  	//
  2741  	// Possible values:
  2742  	//   "VPC_EGRESS_UNSPECIFIED" - Unspecified
  2743  	//   "ALL_TRAFFIC" - All outbound traffic is routed through the VPC connector.
  2744  	//   "PRIVATE_RANGES_ONLY" - Only private IP ranges are routed through the VPC
  2745  	// connector.
  2746  	Egress string `json:"egress,omitempty"`
  2747  	// NetworkInterfaces: Optional. Direct VPC egress settings. Currently only
  2748  	// single network interface is supported.
  2749  	NetworkInterfaces []*GoogleCloudRunV2NetworkInterface `json:"networkInterfaces,omitempty"`
  2750  	// ForceSendFields is a list of field names (e.g. "Connector") to
  2751  	// unconditionally include in API requests. By default, fields with empty or
  2752  	// default values are omitted from API requests. See
  2753  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2754  	// details.
  2755  	ForceSendFields []string `json:"-"`
  2756  	// NullFields is a list of field names (e.g. "Connector") to include in API
  2757  	// requests with the JSON null value. By default, fields with empty values are
  2758  	// omitted from API requests. See
  2759  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2760  	NullFields []string `json:"-"`
  2761  }
  2762  
  2763  func (s *GoogleCloudRunV2VpcAccess) MarshalJSON() ([]byte, error) {
  2764  	type NoMethod GoogleCloudRunV2VpcAccess
  2765  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2766  }
  2767  
  2768  // GoogleDevtoolsCloudbuildV1ApprovalConfig: ApprovalConfig describes
  2769  // configuration for manual approval of a build.
  2770  type GoogleDevtoolsCloudbuildV1ApprovalConfig struct {
  2771  	// ApprovalRequired: Whether or not approval is needed. If this is set on a
  2772  	// build, it will become pending when created, and will need to be explicitly
  2773  	// approved to start.
  2774  	ApprovalRequired bool `json:"approvalRequired,omitempty"`
  2775  	// ForceSendFields is a list of field names (e.g. "ApprovalRequired") to
  2776  	// unconditionally include in API requests. By default, fields with empty or
  2777  	// default values are omitted from API requests. See
  2778  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2779  	// details.
  2780  	ForceSendFields []string `json:"-"`
  2781  	// NullFields is a list of field names (e.g. "ApprovalRequired") to include in
  2782  	// API requests with the JSON null value. By default, fields with empty values
  2783  	// are omitted from API requests. See
  2784  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2785  	NullFields []string `json:"-"`
  2786  }
  2787  
  2788  func (s *GoogleDevtoolsCloudbuildV1ApprovalConfig) MarshalJSON() ([]byte, error) {
  2789  	type NoMethod GoogleDevtoolsCloudbuildV1ApprovalConfig
  2790  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2791  }
  2792  
  2793  // GoogleDevtoolsCloudbuildV1ApprovalResult: ApprovalResult describes the
  2794  // decision and associated metadata of a manual approval of a build.
  2795  type GoogleDevtoolsCloudbuildV1ApprovalResult struct {
  2796  	// ApprovalTime: Output only. The time when the approval decision was made.
  2797  	ApprovalTime string `json:"approvalTime,omitempty"`
  2798  	// ApproverAccount: Output only. Email of the user that called the ApproveBuild
  2799  	// API to approve or reject a build at the time that the API was called.
  2800  	ApproverAccount string `json:"approverAccount,omitempty"`
  2801  	// Comment: Optional. An optional comment for this manual approval result.
  2802  	Comment string `json:"comment,omitempty"`
  2803  	// Decision: Required. The decision of this manual approval.
  2804  	//
  2805  	// Possible values:
  2806  	//   "DECISION_UNSPECIFIED" - Default enum type. This should not be used.
  2807  	//   "APPROVED" - Build is approved.
  2808  	//   "REJECTED" - Build is rejected.
  2809  	Decision string `json:"decision,omitempty"`
  2810  	// Url: Optional. An optional URL tied to this manual approval result. This
  2811  	// field is essentially the same as comment, except that it will be rendered by
  2812  	// the UI differently. An example use case is a link to an external job that
  2813  	// approved this Build.
  2814  	Url string `json:"url,omitempty"`
  2815  	// ForceSendFields is a list of field names (e.g. "ApprovalTime") to
  2816  	// unconditionally include in API requests. By default, fields with empty or
  2817  	// default values are omitted from API requests. See
  2818  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2819  	// details.
  2820  	ForceSendFields []string `json:"-"`
  2821  	// NullFields is a list of field names (e.g. "ApprovalTime") to include in API
  2822  	// requests with the JSON null value. By default, fields with empty values are
  2823  	// omitted from API requests. See
  2824  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2825  	NullFields []string `json:"-"`
  2826  }
  2827  
  2828  func (s *GoogleDevtoolsCloudbuildV1ApprovalResult) MarshalJSON() ([]byte, error) {
  2829  	type NoMethod GoogleDevtoolsCloudbuildV1ApprovalResult
  2830  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2831  }
  2832  
  2833  // GoogleDevtoolsCloudbuildV1ArtifactObjects: Files in the workspace to upload
  2834  // to Cloud Storage upon successful completion of all build steps.
  2835  type GoogleDevtoolsCloudbuildV1ArtifactObjects struct {
  2836  	// Location: Cloud Storage bucket and optional object path, in the form
  2837  	// "gs://bucket/path/to/somewhere/". (see Bucket Name Requirements
  2838  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files
  2839  	// in the workspace matching any path pattern will be uploaded to Cloud Storage
  2840  	// with this location as a prefix.
  2841  	Location string `json:"location,omitempty"`
  2842  	// Paths: Path globs used to match files in the build's workspace.
  2843  	Paths []string `json:"paths,omitempty"`
  2844  	// Timing: Output only. Stores timing information for pushing all artifact
  2845  	// objects.
  2846  	Timing *GoogleDevtoolsCloudbuildV1TimeSpan `json:"timing,omitempty"`
  2847  	// ForceSendFields is a list of field names (e.g. "Location") to
  2848  	// unconditionally include in API requests. By default, fields with empty or
  2849  	// default values are omitted from API requests. See
  2850  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2851  	// details.
  2852  	ForceSendFields []string `json:"-"`
  2853  	// NullFields is a list of field names (e.g. "Location") to include in API
  2854  	// requests with the JSON null value. By default, fields with empty values are
  2855  	// omitted from API requests. See
  2856  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2857  	NullFields []string `json:"-"`
  2858  }
  2859  
  2860  func (s *GoogleDevtoolsCloudbuildV1ArtifactObjects) MarshalJSON() ([]byte, error) {
  2861  	type NoMethod GoogleDevtoolsCloudbuildV1ArtifactObjects
  2862  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2863  }
  2864  
  2865  // GoogleDevtoolsCloudbuildV1Artifacts: Artifacts produced by a build that
  2866  // should be uploaded upon successful completion of all build steps.
  2867  type GoogleDevtoolsCloudbuildV1Artifacts struct {
  2868  	// Images: A list of images to be pushed upon the successful completion of all
  2869  	// build steps. The images will be pushed using the builder service account's
  2870  	// credentials. The digests of the pushed images will be stored in the Build
  2871  	// resource's results field. If any of the images fail to be pushed, the build
  2872  	// is marked FAILURE.
  2873  	Images []string `json:"images,omitempty"`
  2874  	// MavenArtifacts: A list of Maven artifacts to be uploaded to Artifact
  2875  	// Registry upon successful completion of all build steps. Artifacts in the
  2876  	// workspace matching specified paths globs will be uploaded to the specified
  2877  	// Artifact Registry repository using the builder service account's
  2878  	// credentials. If any artifacts fail to be pushed, the build is marked
  2879  	// FAILURE.
  2880  	MavenArtifacts []*GoogleDevtoolsCloudbuildV1MavenArtifact `json:"mavenArtifacts,omitempty"`
  2881  	// NpmPackages: A list of npm packages to be uploaded to Artifact Registry upon
  2882  	// successful completion of all build steps. Npm packages in the specified
  2883  	// paths will be uploaded to the specified Artifact Registry repository using
  2884  	// the builder service account's credentials. If any packages fail to be
  2885  	// pushed, the build is marked FAILURE.
  2886  	NpmPackages []*GoogleDevtoolsCloudbuildV1NpmPackage `json:"npmPackages,omitempty"`
  2887  	// Objects: A list of objects to be uploaded to Cloud Storage upon successful
  2888  	// completion of all build steps. Files in the workspace matching specified
  2889  	// paths globs will be uploaded to the specified Cloud Storage location using
  2890  	// the builder service account's credentials. The location and generation of
  2891  	// the uploaded objects will be stored in the Build resource's results field.
  2892  	// If any objects fail to be pushed, the build is marked FAILURE.
  2893  	Objects *GoogleDevtoolsCloudbuildV1ArtifactObjects `json:"objects,omitempty"`
  2894  	// PythonPackages: A list of Python packages to be uploaded to Artifact
  2895  	// Registry upon successful completion of all build steps. The build service
  2896  	// account credentials will be used to perform the upload. If any objects fail
  2897  	// to be pushed, the build is marked FAILURE.
  2898  	PythonPackages []*GoogleDevtoolsCloudbuildV1PythonPackage `json:"pythonPackages,omitempty"`
  2899  	// ForceSendFields is a list of field names (e.g. "Images") to unconditionally
  2900  	// include in API requests. By default, fields with empty or default values are
  2901  	// omitted from API requests. See
  2902  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2903  	// details.
  2904  	ForceSendFields []string `json:"-"`
  2905  	// NullFields is a list of field names (e.g. "Images") to include in API
  2906  	// requests with the JSON null value. By default, fields with empty values are
  2907  	// omitted from API requests. See
  2908  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2909  	NullFields []string `json:"-"`
  2910  }
  2911  
  2912  func (s *GoogleDevtoolsCloudbuildV1Artifacts) MarshalJSON() ([]byte, error) {
  2913  	type NoMethod GoogleDevtoolsCloudbuildV1Artifacts
  2914  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2915  }
  2916  
  2917  // GoogleDevtoolsCloudbuildV1Build: A build resource in the Cloud Build API. At
  2918  // a high level, a `Build` describes where to find source code, how to build it
  2919  // (for example, the builder image to run on the source), and where to store
  2920  // the built artifacts. Fields can include the following variables, which will
  2921  // be expanded when the build is created: - $PROJECT_ID: the project ID of the
  2922  // build. - $PROJECT_NUMBER: the project number of the build. - $LOCATION: the
  2923  // location/region of the build. - $BUILD_ID: the autogenerated ID of the
  2924  // build. - $REPO_NAME: the source repository name specified by RepoSource. -
  2925  // $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag
  2926  // name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA
  2927  // specified by RepoSource or resolved from the specified branch or tag. -
  2928  // $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
  2929  type GoogleDevtoolsCloudbuildV1Build struct {
  2930  	// Approval: Output only. Describes this build's approval configuration,
  2931  	// status, and result.
  2932  	Approval *GoogleDevtoolsCloudbuildV1BuildApproval `json:"approval,omitempty"`
  2933  	// Artifacts: Artifacts produced by the build that should be uploaded upon
  2934  	// successful completion of all build steps.
  2935  	Artifacts *GoogleDevtoolsCloudbuildV1Artifacts `json:"artifacts,omitempty"`
  2936  	// AvailableSecrets: Secrets and secret environment variables.
  2937  	AvailableSecrets *GoogleDevtoolsCloudbuildV1Secrets `json:"availableSecrets,omitempty"`
  2938  	// BuildTriggerId: Output only. The ID of the `BuildTrigger` that triggered
  2939  	// this build, if it was triggered automatically.
  2940  	BuildTriggerId string `json:"buildTriggerId,omitempty"`
  2941  	// CreateTime: Output only. Time at which the request to create the build was
  2942  	// received.
  2943  	CreateTime string `json:"createTime,omitempty"`
  2944  	// FailureInfo: Output only. Contains information about the build when
  2945  	// status=FAILURE.
  2946  	FailureInfo *GoogleDevtoolsCloudbuildV1FailureInfo `json:"failureInfo,omitempty"`
  2947  	// FinishTime: Output only. Time at which execution of the build was finished.
  2948  	// The difference between finish_time and start_time is the duration of the
  2949  	// build's execution.
  2950  	FinishTime string `json:"finishTime,omitempty"`
  2951  	// GitConfig: Optional. Configuration for git operations.
  2952  	GitConfig *GoogleDevtoolsCloudbuildV1GitConfig `json:"gitConfig,omitempty"`
  2953  	// Id: Output only. Unique identifier of the build.
  2954  	Id string `json:"id,omitempty"`
  2955  	// Images: A list of images to be pushed upon the successful completion of all
  2956  	// build steps. The images are pushed using the builder service account's
  2957  	// credentials. The digests of the pushed images will be stored in the `Build`
  2958  	// resource's results field. If any of the images fail to be pushed, the build
  2959  	// status is marked `FAILURE`.
  2960  	Images []string `json:"images,omitempty"`
  2961  	// LogUrl: Output only. URL to logs for this build in Google Cloud Console.
  2962  	LogUrl string `json:"logUrl,omitempty"`
  2963  	// LogsBucket: Cloud Storage bucket where logs should be written (see Bucket
  2964  	// Name Requirements
  2965  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs
  2966  	// file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
  2967  	LogsBucket string `json:"logsBucket,omitempty"`
  2968  	// Name: Output only. The 'Build' name with format:
  2969  	// `projects/{project}/locations/{location}/builds/{build}`, where {build} is a
  2970  	// unique identifier generated by the service.
  2971  	Name string `json:"name,omitempty"`
  2972  	// Options: Special options for this build.
  2973  	Options *GoogleDevtoolsCloudbuildV1BuildOptions `json:"options,omitempty"`
  2974  	// ProjectId: Output only. ID of the project.
  2975  	ProjectId string `json:"projectId,omitempty"`
  2976  	// QueueTtl: TTL in queue for this build. If provided and the build is enqueued
  2977  	// longer than this value, the build will expire and the build status will be
  2978  	// `EXPIRED`. The TTL starts ticking from create_time.
  2979  	QueueTtl string `json:"queueTtl,omitempty"`
  2980  	// Results: Output only. Results of the build.
  2981  	Results *GoogleDevtoolsCloudbuildV1Results `json:"results,omitempty"`
  2982  	// Secrets: Secrets to decrypt using Cloud Key Management Service. Note: Secret
  2983  	// Manager is the recommended technique for managing sensitive data with Cloud
  2984  	// Build. Use `available_secrets` to configure builds to access secrets from
  2985  	// Secret Manager. For instructions, see:
  2986  	// https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
  2987  	Secrets []*GoogleDevtoolsCloudbuildV1Secret `json:"secrets,omitempty"`
  2988  	// ServiceAccount: IAM service account whose credentials will be used at build
  2989  	// runtime. Must be of the format
  2990  	// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email
  2991  	// address or uniqueId of the service account.
  2992  	ServiceAccount string `json:"serviceAccount,omitempty"`
  2993  	// Source: The location of the source files to build.
  2994  	Source *GoogleDevtoolsCloudbuildV1Source `json:"source,omitempty"`
  2995  	// SourceProvenance: Output only. A permanent fixed identifier for source.
  2996  	SourceProvenance *GoogleDevtoolsCloudbuildV1SourceProvenance `json:"sourceProvenance,omitempty"`
  2997  	// StartTime: Output only. Time at which execution of the build was started.
  2998  	StartTime string `json:"startTime,omitempty"`
  2999  	// Status: Output only. Status of the build.
  3000  	//
  3001  	// Possible values:
  3002  	//   "STATUS_UNKNOWN" - Status of the build is unknown.
  3003  	//   "PENDING" - Build has been created and is pending execution and queuing.
  3004  	// It has not been queued.
  3005  	//   "QUEUED" - Build or step is queued; work has not yet begun.
  3006  	//   "WORKING" - Build or step is being executed.
  3007  	//   "SUCCESS" - Build or step finished successfully.
  3008  	//   "FAILURE" - Build or step failed to complete successfully.
  3009  	//   "INTERNAL_ERROR" - Build or step failed due to an internal cause.
  3010  	//   "TIMEOUT" - Build or step took longer than was allowed.
  3011  	//   "CANCELLED" - Build or step was canceled by a user.
  3012  	//   "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`.
  3013  	Status string `json:"status,omitempty"`
  3014  	// StatusDetail: Output only. Customer-readable message about the current
  3015  	// status.
  3016  	StatusDetail string `json:"statusDetail,omitempty"`
  3017  	// Steps: Required. The operations to be performed on the workspace.
  3018  	Steps []*GoogleDevtoolsCloudbuildV1BuildStep `json:"steps,omitempty"`
  3019  	// Substitutions: Substitutions data for `Build` resource.
  3020  	Substitutions map[string]string `json:"substitutions,omitempty"`
  3021  	// Tags: Tags for annotation of a `Build`. These are not docker tags.
  3022  	Tags []string `json:"tags,omitempty"`
  3023  	// Timeout: Amount of time that this build should be allowed to run, to second
  3024  	// granularity. If this amount of time elapses, work on the build will cease
  3025  	// and the build status will be `TIMEOUT`. `timeout` starts ticking from
  3026  	// `startTime`. Default time is 60 minutes.
  3027  	Timeout string `json:"timeout,omitempty"`
  3028  	// Timing: Output only. Stores timing information for phases of the build.
  3029  	// Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to
  3030  	// push all artifacts including docker images and non docker artifacts. *
  3031  	// FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If
  3032  	// the build does not specify source or images, these keys will not be
  3033  	// included.
  3034  	Timing map[string]GoogleDevtoolsCloudbuildV1TimeSpan `json:"timing,omitempty"`
  3035  	// Warnings: Output only. Non-fatal problems encountered during the execution
  3036  	// of the build.
  3037  	Warnings []*GoogleDevtoolsCloudbuildV1Warning `json:"warnings,omitempty"`
  3038  	// ForceSendFields is a list of field names (e.g. "Approval") to
  3039  	// unconditionally include in API requests. By default, fields with empty or
  3040  	// default values are omitted from API requests. See
  3041  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3042  	// details.
  3043  	ForceSendFields []string `json:"-"`
  3044  	// NullFields is a list of field names (e.g. "Approval") to include in API
  3045  	// requests with the JSON null value. By default, fields with empty values are
  3046  	// omitted from API requests. See
  3047  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3048  	NullFields []string `json:"-"`
  3049  }
  3050  
  3051  func (s *GoogleDevtoolsCloudbuildV1Build) MarshalJSON() ([]byte, error) {
  3052  	type NoMethod GoogleDevtoolsCloudbuildV1Build
  3053  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3054  }
  3055  
  3056  // GoogleDevtoolsCloudbuildV1BuildApproval: BuildApproval describes a build's
  3057  // approval configuration, state, and result.
  3058  type GoogleDevtoolsCloudbuildV1BuildApproval struct {
  3059  	// Config: Output only. Configuration for manual approval of this build.
  3060  	Config *GoogleDevtoolsCloudbuildV1ApprovalConfig `json:"config,omitempty"`
  3061  	// Result: Output only. Result of manual approval for this Build.
  3062  	Result *GoogleDevtoolsCloudbuildV1ApprovalResult `json:"result,omitempty"`
  3063  	// State: Output only. The state of this build's approval.
  3064  	//
  3065  	// Possible values:
  3066  	//   "STATE_UNSPECIFIED" - Default enum type. This should not be used.
  3067  	//   "PENDING" - Build approval is pending.
  3068  	//   "APPROVED" - Build approval has been approved.
  3069  	//   "REJECTED" - Build approval has been rejected.
  3070  	//   "CANCELLED" - Build was cancelled while it was still pending approval.
  3071  	State string `json:"state,omitempty"`
  3072  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  3073  	// include in API requests. By default, fields with empty or default values are
  3074  	// omitted from API requests. See
  3075  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3076  	// details.
  3077  	ForceSendFields []string `json:"-"`
  3078  	// NullFields is a list of field names (e.g. "Config") to include in API
  3079  	// requests with the JSON null value. By default, fields with empty values are
  3080  	// omitted from API requests. See
  3081  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3082  	NullFields []string `json:"-"`
  3083  }
  3084  
  3085  func (s *GoogleDevtoolsCloudbuildV1BuildApproval) MarshalJSON() ([]byte, error) {
  3086  	type NoMethod GoogleDevtoolsCloudbuildV1BuildApproval
  3087  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3088  }
  3089  
  3090  // GoogleDevtoolsCloudbuildV1BuildOperationMetadata: Metadata for build
  3091  // operations.
  3092  type GoogleDevtoolsCloudbuildV1BuildOperationMetadata struct {
  3093  	// Build: The build that the operation is tracking.
  3094  	Build *GoogleDevtoolsCloudbuildV1Build `json:"build,omitempty"`
  3095  	// ForceSendFields is a list of field names (e.g. "Build") to unconditionally
  3096  	// include in API requests. By default, fields with empty or default values are
  3097  	// omitted from API requests. See
  3098  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3099  	// details.
  3100  	ForceSendFields []string `json:"-"`
  3101  	// NullFields is a list of field names (e.g. "Build") to include in API
  3102  	// requests with the JSON null value. By default, fields with empty values are
  3103  	// omitted from API requests. See
  3104  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3105  	NullFields []string `json:"-"`
  3106  }
  3107  
  3108  func (s *GoogleDevtoolsCloudbuildV1BuildOperationMetadata) MarshalJSON() ([]byte, error) {
  3109  	type NoMethod GoogleDevtoolsCloudbuildV1BuildOperationMetadata
  3110  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3111  }
  3112  
  3113  // GoogleDevtoolsCloudbuildV1BuildOptions: Optional arguments to enable
  3114  // specific features of builds.
  3115  type GoogleDevtoolsCloudbuildV1BuildOptions struct {
  3116  	// AutomapSubstitutions: Option to include built-in and custom substitutions as
  3117  	// env variables for all build steps.
  3118  	AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"`
  3119  	// DefaultLogsBucketBehavior: Optional. Option to specify how default logs
  3120  	// buckets are setup.
  3121  	//
  3122  	// Possible values:
  3123  	//   "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED" - Unspecified.
  3124  	//   "REGIONAL_USER_OWNED_BUCKET" - Bucket is located in user-owned project in
  3125  	// the same region as the build. The builder service account must have access
  3126  	// to create and write to Cloud Storage buckets in the build project.
  3127  	DefaultLogsBucketBehavior string `json:"defaultLogsBucketBehavior,omitempty"`
  3128  	// DiskSizeGb: Requested disk size for the VM that runs the build. Note that
  3129  	// this is *NOT* "disk free"; some of the space will be used by the operating
  3130  	// system and build utilities. Also note that this is the minimum disk size
  3131  	// that will be allocated for the build -- the build may run with a larger disk
  3132  	// than requested. At present, the maximum disk size is 2000GB; builds that
  3133  	// request more than the maximum are rejected with an error.
  3134  	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
  3135  	// DynamicSubstitutions: Option to specify whether or not to apply bash style
  3136  	// string operations to the substitutions. NOTE: this is always enabled for
  3137  	// triggered builds and cannot be overridden in the build configuration file.
  3138  	DynamicSubstitutions bool `json:"dynamicSubstitutions,omitempty"`
  3139  	// Env: A list of global environment variable definitions that will exist for
  3140  	// all build steps in this build. If a variable is defined in both globally and
  3141  	// in a build step, the variable will use the build step value. The elements
  3142  	// are of the form "KEY=VALUE" for the environment variable "KEY" being given
  3143  	// the value "VALUE".
  3144  	Env []string `json:"env,omitempty"`
  3145  	// LogStreamingOption: Option to define build log streaming behavior to Cloud
  3146  	// Storage.
  3147  	//
  3148  	// Possible values:
  3149  	//   "STREAM_DEFAULT" - Service may automatically determine build log streaming
  3150  	// behavior.
  3151  	//   "STREAM_ON" - Build logs should be streamed to Cloud Storage.
  3152  	//   "STREAM_OFF" - Build logs should not be streamed to Cloud Storage; they
  3153  	// will be written when the build is completed.
  3154  	LogStreamingOption string `json:"logStreamingOption,omitempty"`
  3155  	// Logging: Option to specify the logging mode, which determines if and where
  3156  	// build logs are stored.
  3157  	//
  3158  	// Possible values:
  3159  	//   "LOGGING_UNSPECIFIED" - The service determines the logging mode. The
  3160  	// default is `LEGACY`. Do not rely on the default logging behavior as it may
  3161  	// change in the future.
  3162  	//   "LEGACY" - Build logs are stored in Cloud Logging and Cloud Storage.
  3163  	//   "GCS_ONLY" - Build logs are stored in Cloud Storage.
  3164  	//   "STACKDRIVER_ONLY" - This option is the same as CLOUD_LOGGING_ONLY.
  3165  	//   "CLOUD_LOGGING_ONLY" - Build logs are stored in Cloud Logging. Selecting
  3166  	// this option will not allow [logs
  3167  	// streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log).
  3168  	//   "NONE" - Turn off all logging. No build logs will be captured.
  3169  	Logging string `json:"logging,omitempty"`
  3170  	// MachineType: Compute Engine machine type on which to run the build.
  3171  	//
  3172  	// Possible values:
  3173  	//   "UNSPECIFIED" - Standard machine type.
  3174  	//   "N1_HIGHCPU_8" - Highcpu machine with 8 CPUs.
  3175  	//   "N1_HIGHCPU_32" - Highcpu machine with 32 CPUs.
  3176  	//   "E2_HIGHCPU_8" - Highcpu e2 machine with 8 CPUs.
  3177  	//   "E2_HIGHCPU_32" - Highcpu e2 machine with 32 CPUs.
  3178  	//   "E2_MEDIUM" - E2 machine with 1 CPU.
  3179  	MachineType string `json:"machineType,omitempty"`
  3180  	// Pool: Optional. Specification for execution on a `WorkerPool`. See running
  3181  	// builds in a private pool
  3182  	// (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
  3183  	// for more information.
  3184  	Pool *GoogleDevtoolsCloudbuildV1PoolOption `json:"pool,omitempty"`
  3185  	// RequestedVerifyOption: Requested verifiability options.
  3186  	//
  3187  	// Possible values:
  3188  	//   "NOT_VERIFIED" - Not a verifiable build (the default).
  3189  	//   "VERIFIED" - Build must be verified.
  3190  	RequestedVerifyOption string `json:"requestedVerifyOption,omitempty"`
  3191  	// SecretEnv: A list of global environment variables, which are encrypted using
  3192  	// a Cloud Key Management Service crypto key. These values must be specified in
  3193  	// the build's `Secret`. These variables will be available to all build steps
  3194  	// in this build.
  3195  	SecretEnv []string `json:"secretEnv,omitempty"`
  3196  	// SourceProvenanceHash: Requested hash for SourceProvenance.
  3197  	//
  3198  	// Possible values:
  3199  	//   "NONE" - No hash requested.
  3200  	//   "SHA256" - Use a sha256 hash.
  3201  	//   "MD5" - Use a md5 hash.
  3202  	//   "SHA512" - Use a sha512 hash.
  3203  	SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"`
  3204  	// SubstitutionOption: Option to specify behavior when there is an error in the
  3205  	// substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered
  3206  	// builds and cannot be overridden in the build configuration file.
  3207  	//
  3208  	// Possible values:
  3209  	//   "MUST_MATCH" - Fails the build if error in substitutions checks, like
  3210  	// missing a substitution in the template or in the map.
  3211  	//   "ALLOW_LOOSE" - Do not fail the build if error in substitutions checks.
  3212  	SubstitutionOption string `json:"substitutionOption,omitempty"`
  3213  	// Volumes: Global list of volumes to mount for ALL build steps Each volume is
  3214  	// created as an empty volume prior to starting the build process. Upon
  3215  	// completion of the build, volumes and their contents are discarded. Global
  3216  	// volume names and paths cannot conflict with the volumes defined a build
  3217  	// step. Using a global volume in a build with only one step is not valid as it
  3218  	// is indicative of a build request with an incorrect configuration.
  3219  	Volumes []*GoogleDevtoolsCloudbuildV1Volume `json:"volumes,omitempty"`
  3220  	// WorkerPool: This field deprecated; please use `pool.name` instead.
  3221  	WorkerPool string `json:"workerPool,omitempty"`
  3222  	// ForceSendFields is a list of field names (e.g. "AutomapSubstitutions") to
  3223  	// unconditionally include in API requests. By default, fields with empty or
  3224  	// default values are omitted from API requests. See
  3225  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3226  	// details.
  3227  	ForceSendFields []string `json:"-"`
  3228  	// NullFields is a list of field names (e.g. "AutomapSubstitutions") to include
  3229  	// in API requests with the JSON null value. By default, fields with empty
  3230  	// values are omitted from API requests. See
  3231  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3232  	NullFields []string `json:"-"`
  3233  }
  3234  
  3235  func (s *GoogleDevtoolsCloudbuildV1BuildOptions) MarshalJSON() ([]byte, error) {
  3236  	type NoMethod GoogleDevtoolsCloudbuildV1BuildOptions
  3237  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3238  }
  3239  
  3240  // GoogleDevtoolsCloudbuildV1BuildStep: A step in the build pipeline.
  3241  type GoogleDevtoolsCloudbuildV1BuildStep struct {
  3242  	// AllowExitCodes: Allow this build step to fail without failing the entire
  3243  	// build if and only if the exit code is one of the specified codes. If
  3244  	// allow_failure is also specified, this field will take precedence.
  3245  	AllowExitCodes []int64 `json:"allowExitCodes,omitempty"`
  3246  	// AllowFailure: Allow this build step to fail without failing the entire
  3247  	// build. If false, the entire build will fail if this step fails. Otherwise,
  3248  	// the build will succeed, but this step will still have a failure status.
  3249  	// Error information will be reported in the failure_detail field.
  3250  	AllowFailure bool `json:"allowFailure,omitempty"`
  3251  	// Args: A list of arguments that will be presented to the step when it is
  3252  	// started. If the image used to run the step's container has an entrypoint,
  3253  	// the `args` are used as arguments to that entrypoint. If the image does not
  3254  	// define an entrypoint, the first element in args is used as the entrypoint,
  3255  	// and the remainder will be used as arguments.
  3256  	Args []string `json:"args,omitempty"`
  3257  	// AutomapSubstitutions: Option to include built-in and custom substitutions as
  3258  	// env variables for this build step. This option will override the global
  3259  	// option in BuildOption.
  3260  	AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"`
  3261  	// Dir: Working directory to use when running this step's container. If this
  3262  	// value is a relative path, it is relative to the build's working directory.
  3263  	// If this value is absolute, it may be outside the build's working directory,
  3264  	// in which case the contents of the path may not be persisted across build
  3265  	// step executions, unless a `volume` for that path is specified. If the build
  3266  	// specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies
  3267  	// an absolute path, the `RepoSource` `dir` is ignored for the step's
  3268  	// execution.
  3269  	Dir string `json:"dir,omitempty"`
  3270  	// Entrypoint: Entrypoint to be used instead of the build step image's default
  3271  	// entrypoint. If unset, the image's default entrypoint is used.
  3272  	Entrypoint string `json:"entrypoint,omitempty"`
  3273  	// Env: A list of environment variable definitions to be used when running a
  3274  	// step. The elements are of the form "KEY=VALUE" for the environment variable
  3275  	// "KEY" being given the value "VALUE".
  3276  	Env []string `json:"env,omitempty"`
  3277  	// ExitCode: Output only. Return code from running the step.
  3278  	ExitCode int64 `json:"exitCode,omitempty"`
  3279  	// Id: Unique identifier for this build step, used in `wait_for` to reference
  3280  	// this build step as a dependency.
  3281  	Id string `json:"id,omitempty"`
  3282  	// Name: Required. The name of the container image that will run this
  3283  	// particular build step. If the image is available in the host's Docker
  3284  	// daemon's cache, it will be run directly. If not, the host will attempt to
  3285  	// pull the image first, using the builder service account's credentials if
  3286  	// necessary. The Docker daemon's cache will already have the latest versions
  3287  	// of all of the officially supported build steps
  3288  	// (https://github.com/GoogleCloudPlatform/cloud-builders
  3289  	// (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon
  3290  	// will also have cached many of the layers for some popular images, like
  3291  	// "ubuntu", "debian", but they will be refreshed at the time you attempt to
  3292  	// use them. If you built an image in a previous build step, it will be stored
  3293  	// in the host's Docker daemon's cache and is available to use as the name for
  3294  	// a later build step.
  3295  	Name string `json:"name,omitempty"`
  3296  	// PullTiming: Output only. Stores timing information for pulling this build
  3297  	// step's builder image only.
  3298  	PullTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"pullTiming,omitempty"`
  3299  	// Script: A shell script to be executed in the step. When script is provided,
  3300  	// the user cannot specify the entrypoint or args.
  3301  	Script string `json:"script,omitempty"`
  3302  	// SecretEnv: A list of environment variables which are encrypted using a Cloud
  3303  	// Key Management Service crypto key. These values must be specified in the
  3304  	// build's `Secret`.
  3305  	SecretEnv []string `json:"secretEnv,omitempty"`
  3306  	// Status: Output only. Status of the build step. At this time, build step
  3307  	// status is only updated on build completion; step status is not updated in
  3308  	// real-time as the build progresses.
  3309  	//
  3310  	// Possible values:
  3311  	//   "STATUS_UNKNOWN" - Status of the build is unknown.
  3312  	//   "PENDING" - Build has been created and is pending execution and queuing.
  3313  	// It has not been queued.
  3314  	//   "QUEUED" - Build or step is queued; work has not yet begun.
  3315  	//   "WORKING" - Build or step is being executed.
  3316  	//   "SUCCESS" - Build or step finished successfully.
  3317  	//   "FAILURE" - Build or step failed to complete successfully.
  3318  	//   "INTERNAL_ERROR" - Build or step failed due to an internal cause.
  3319  	//   "TIMEOUT" - Build or step took longer than was allowed.
  3320  	//   "CANCELLED" - Build or step was canceled by a user.
  3321  	//   "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`.
  3322  	Status string `json:"status,omitempty"`
  3323  	// Timeout: Time limit for executing this build step. If not defined, the step
  3324  	// has no time limit and will be allowed to continue to run until either it
  3325  	// completes or the build itself times out.
  3326  	Timeout string `json:"timeout,omitempty"`
  3327  	// Timing: Output only. Stores timing information for executing this build
  3328  	// step.
  3329  	Timing *GoogleDevtoolsCloudbuildV1TimeSpan `json:"timing,omitempty"`
  3330  	// Volumes: List of volumes to mount into the build step. Each volume is
  3331  	// created as an empty volume prior to execution of the build step. Upon
  3332  	// completion of the build, volumes and their contents are discarded. Using a
  3333  	// named volume in only one step is not valid as it is indicative of a build
  3334  	// request with an incorrect configuration.
  3335  	Volumes []*GoogleDevtoolsCloudbuildV1Volume `json:"volumes,omitempty"`
  3336  	// WaitFor: The ID(s) of the step(s) that this build step depends on. This
  3337  	// build step will not start until all the build steps in `wait_for` have
  3338  	// completed successfully. If `wait_for` is empty, this build step will start
  3339  	// when all previous build steps in the `Build.Steps` list have completed
  3340  	// successfully.
  3341  	WaitFor []string `json:"waitFor,omitempty"`
  3342  	// ForceSendFields is a list of field names (e.g. "AllowExitCodes") to
  3343  	// unconditionally include in API requests. By default, fields with empty or
  3344  	// default values are omitted from API requests. See
  3345  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3346  	// details.
  3347  	ForceSendFields []string `json:"-"`
  3348  	// NullFields is a list of field names (e.g. "AllowExitCodes") to include in
  3349  	// API requests with the JSON null value. By default, fields with empty values
  3350  	// are omitted from API requests. See
  3351  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3352  	NullFields []string `json:"-"`
  3353  }
  3354  
  3355  func (s *GoogleDevtoolsCloudbuildV1BuildStep) MarshalJSON() ([]byte, error) {
  3356  	type NoMethod GoogleDevtoolsCloudbuildV1BuildStep
  3357  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3358  }
  3359  
  3360  // GoogleDevtoolsCloudbuildV1BuiltImage: An image built by the pipeline.
  3361  type GoogleDevtoolsCloudbuildV1BuiltImage struct {
  3362  	// Digest: Docker Registry 2.0 digest.
  3363  	Digest string `json:"digest,omitempty"`
  3364  	// Name: Name used to push the container image to Google Container Registry, as
  3365  	// presented to `docker push`.
  3366  	Name string `json:"name,omitempty"`
  3367  	// PushTiming: Output only. Stores timing information for pushing the specified
  3368  	// image.
  3369  	PushTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"pushTiming,omitempty"`
  3370  	// ForceSendFields is a list of field names (e.g. "Digest") to unconditionally
  3371  	// include in API requests. By default, fields with empty or default values are
  3372  	// omitted from API requests. See
  3373  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3374  	// details.
  3375  	ForceSendFields []string `json:"-"`
  3376  	// NullFields is a list of field names (e.g. "Digest") to include in API
  3377  	// requests with the JSON null value. By default, fields with empty values are
  3378  	// omitted from API requests. See
  3379  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3380  	NullFields []string `json:"-"`
  3381  }
  3382  
  3383  func (s *GoogleDevtoolsCloudbuildV1BuiltImage) MarshalJSON() ([]byte, error) {
  3384  	type NoMethod GoogleDevtoolsCloudbuildV1BuiltImage
  3385  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3386  }
  3387  
  3388  // GoogleDevtoolsCloudbuildV1ConnectedRepository: Location of the source in a
  3389  // 2nd-gen Google Cloud Build repository resource.
  3390  type GoogleDevtoolsCloudbuildV1ConnectedRepository struct {
  3391  	// Dir: Directory, relative to the source root, in which to run the build.
  3392  	Dir string `json:"dir,omitempty"`
  3393  	// Repository: Required. Name of the Google Cloud Build repository, formatted
  3394  	// as `projects/*/locations/*/connections/*/repositories/*`.
  3395  	Repository string `json:"repository,omitempty"`
  3396  	// Revision: The revision to fetch from the Git repository such as a branch, a
  3397  	// tag, a commit SHA, or any Git ref.
  3398  	Revision string `json:"revision,omitempty"`
  3399  	// ForceSendFields is a list of field names (e.g. "Dir") to unconditionally
  3400  	// include in API requests. By default, fields with empty or default values are
  3401  	// omitted from API requests. See
  3402  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3403  	// details.
  3404  	ForceSendFields []string `json:"-"`
  3405  	// NullFields is a list of field names (e.g. "Dir") to include in API requests
  3406  	// with the JSON null value. By default, fields with empty values are omitted
  3407  	// from API requests. See
  3408  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3409  	NullFields []string `json:"-"`
  3410  }
  3411  
  3412  func (s *GoogleDevtoolsCloudbuildV1ConnectedRepository) MarshalJSON() ([]byte, error) {
  3413  	type NoMethod GoogleDevtoolsCloudbuildV1ConnectedRepository
  3414  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3415  }
  3416  
  3417  // GoogleDevtoolsCloudbuildV1DeveloperConnectConfig: This config defines the
  3418  // location of a source through Developer Connect.
  3419  type GoogleDevtoolsCloudbuildV1DeveloperConnectConfig struct {
  3420  	// Dir: Required. Directory, relative to the source root, in which to run the
  3421  	// build.
  3422  	Dir string `json:"dir,omitempty"`
  3423  	// GitRepositoryLink: Required. The Developer Connect Git repository link,
  3424  	// formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
  3425  	GitRepositoryLink string `json:"gitRepositoryLink,omitempty"`
  3426  	// Revision: Required. The revision to fetch from the Git repository such as a
  3427  	// branch, a tag, a commit SHA, or any Git ref.
  3428  	Revision string `json:"revision,omitempty"`
  3429  	// ForceSendFields is a list of field names (e.g. "Dir") to unconditionally
  3430  	// include in API requests. By default, fields with empty or default values are
  3431  	// omitted from API requests. See
  3432  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3433  	// details.
  3434  	ForceSendFields []string `json:"-"`
  3435  	// NullFields is a list of field names (e.g. "Dir") to include in API requests
  3436  	// with the JSON null value. By default, fields with empty values are omitted
  3437  	// from API requests. See
  3438  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3439  	NullFields []string `json:"-"`
  3440  }
  3441  
  3442  func (s *GoogleDevtoolsCloudbuildV1DeveloperConnectConfig) MarshalJSON() ([]byte, error) {
  3443  	type NoMethod GoogleDevtoolsCloudbuildV1DeveloperConnectConfig
  3444  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3445  }
  3446  
  3447  // GoogleDevtoolsCloudbuildV1FailureInfo: A fatal problem encountered during
  3448  // the execution of the build.
  3449  type GoogleDevtoolsCloudbuildV1FailureInfo struct {
  3450  	// Detail: Explains the failure issue in more detail using hard-coded text.
  3451  	Detail string `json:"detail,omitempty"`
  3452  	// Type: The name of the failure.
  3453  	//
  3454  	// Possible values:
  3455  	//   "FAILURE_TYPE_UNSPECIFIED" - Type unspecified
  3456  	//   "PUSH_FAILED" - Unable to push the image to the repository.
  3457  	//   "PUSH_IMAGE_NOT_FOUND" - Final image not found.
  3458  	//   "PUSH_NOT_AUTHORIZED" - Unauthorized push of the final image.
  3459  	//   "LOGGING_FAILURE" - Backend logging failures. Should retry.
  3460  	//   "USER_BUILD_STEP" - A build step has failed.
  3461  	//   "FETCH_SOURCE_FAILED" - The source fetching has failed.
  3462  	Type string `json:"type,omitempty"`
  3463  	// ForceSendFields is a list of field names (e.g. "Detail") to unconditionally
  3464  	// include in API requests. By default, fields with empty or default values are
  3465  	// omitted from API requests. See
  3466  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3467  	// details.
  3468  	ForceSendFields []string `json:"-"`
  3469  	// NullFields is a list of field names (e.g. "Detail") to include in API
  3470  	// requests with the JSON null value. By default, fields with empty values are
  3471  	// omitted from API requests. See
  3472  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3473  	NullFields []string `json:"-"`
  3474  }
  3475  
  3476  func (s *GoogleDevtoolsCloudbuildV1FailureInfo) MarshalJSON() ([]byte, error) {
  3477  	type NoMethod GoogleDevtoolsCloudbuildV1FailureInfo
  3478  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3479  }
  3480  
  3481  // GoogleDevtoolsCloudbuildV1FileHashes: Container message for hashes of byte
  3482  // content of files, used in SourceProvenance messages to verify integrity of
  3483  // source input to the build.
  3484  type GoogleDevtoolsCloudbuildV1FileHashes struct {
  3485  	// FileHash: Collection of file hashes.
  3486  	FileHash []*GoogleDevtoolsCloudbuildV1Hash `json:"fileHash,omitempty"`
  3487  	// ForceSendFields is a list of field names (e.g. "FileHash") to
  3488  	// unconditionally include in API requests. By default, fields with empty or
  3489  	// default values are omitted from API requests. See
  3490  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3491  	// details.
  3492  	ForceSendFields []string `json:"-"`
  3493  	// NullFields is a list of field names (e.g. "FileHash") to include in API
  3494  	// requests with the JSON null value. By default, fields with empty values are
  3495  	// omitted from API requests. See
  3496  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3497  	NullFields []string `json:"-"`
  3498  }
  3499  
  3500  func (s *GoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([]byte, error) {
  3501  	type NoMethod GoogleDevtoolsCloudbuildV1FileHashes
  3502  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3503  }
  3504  
  3505  // GoogleDevtoolsCloudbuildV1GCSLocation: Represents a storage location in
  3506  // Cloud Storage
  3507  type GoogleDevtoolsCloudbuildV1GCSLocation struct {
  3508  	// Bucket: Cloud Storage bucket. See
  3509  	// https://cloud.google.com/storage/docs/naming#requirements
  3510  	Bucket string `json:"bucket,omitempty"`
  3511  	// Generation: Cloud Storage generation for the object. If the generation is
  3512  	// omitted, the latest generation will be used.
  3513  	Generation int64 `json:"generation,omitempty,string"`
  3514  	// Object: Cloud Storage object. See
  3515  	// https://cloud.google.com/storage/docs/naming#objectnames
  3516  	Object string `json:"object,omitempty"`
  3517  	// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally
  3518  	// include in API requests. By default, fields with empty or default values are
  3519  	// omitted from API requests. See
  3520  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3521  	// details.
  3522  	ForceSendFields []string `json:"-"`
  3523  	// NullFields is a list of field names (e.g. "Bucket") to include in API
  3524  	// requests with the JSON null value. By default, fields with empty values are
  3525  	// omitted from API requests. See
  3526  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3527  	NullFields []string `json:"-"`
  3528  }
  3529  
  3530  func (s *GoogleDevtoolsCloudbuildV1GCSLocation) MarshalJSON() ([]byte, error) {
  3531  	type NoMethod GoogleDevtoolsCloudbuildV1GCSLocation
  3532  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3533  }
  3534  
  3535  // GoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a configuration for git
  3536  // operations.
  3537  type GoogleDevtoolsCloudbuildV1GitConfig struct {
  3538  	// Http: Configuration for HTTP related git operations.
  3539  	Http *GoogleDevtoolsCloudbuildV1HttpConfig `json:"http,omitempty"`
  3540  	// ForceSendFields is a list of field names (e.g. "Http") to unconditionally
  3541  	// include in API requests. By default, fields with empty or default values are
  3542  	// omitted from API requests. See
  3543  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3544  	// details.
  3545  	ForceSendFields []string `json:"-"`
  3546  	// NullFields is a list of field names (e.g. "Http") to include in API requests
  3547  	// with the JSON null value. By default, fields with empty values are omitted
  3548  	// from API requests. See
  3549  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3550  	NullFields []string `json:"-"`
  3551  }
  3552  
  3553  func (s *GoogleDevtoolsCloudbuildV1GitConfig) MarshalJSON() ([]byte, error) {
  3554  	type NoMethod GoogleDevtoolsCloudbuildV1GitConfig
  3555  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3556  }
  3557  
  3558  // GoogleDevtoolsCloudbuildV1GitSource: Location of the source in any
  3559  // accessible Git repository.
  3560  type GoogleDevtoolsCloudbuildV1GitSource struct {
  3561  	// Dir: Directory, relative to the source root, in which to run the build. This
  3562  	// must be a relative path. If a step's `dir` is specified and is an absolute
  3563  	// path, this value is ignored for that step's execution.
  3564  	Dir string `json:"dir,omitempty"`
  3565  	// Revision: The revision to fetch from the Git repository such as a branch, a
  3566  	// tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the
  3567  	// revision from the Git repository; therefore make sure that the string you
  3568  	// provide for `revision` is parsable by the command. For information on string
  3569  	// values accepted by `git fetch`, see
  3570  	// https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information
  3571  	// on `git fetch`, see https://git-scm.com/docs/git-fetch.
  3572  	Revision string `json:"revision,omitempty"`
  3573  	// Url: Location of the Git repo to build. This will be used as a `git remote`,
  3574  	// see https://git-scm.com/docs/git-remote.
  3575  	Url string `json:"url,omitempty"`
  3576  	// ForceSendFields is a list of field names (e.g. "Dir") to unconditionally
  3577  	// include in API requests. By default, fields with empty or default values are
  3578  	// omitted from API requests. See
  3579  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3580  	// details.
  3581  	ForceSendFields []string `json:"-"`
  3582  	// NullFields is a list of field names (e.g. "Dir") to include in API requests
  3583  	// with the JSON null value. By default, fields with empty values are omitted
  3584  	// from API requests. See
  3585  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3586  	NullFields []string `json:"-"`
  3587  }
  3588  
  3589  func (s *GoogleDevtoolsCloudbuildV1GitSource) MarshalJSON() ([]byte, error) {
  3590  	type NoMethod GoogleDevtoolsCloudbuildV1GitSource
  3591  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3592  }
  3593  
  3594  // GoogleDevtoolsCloudbuildV1Hash: Container message for hash values.
  3595  type GoogleDevtoolsCloudbuildV1Hash struct {
  3596  	// Type: The type of hash that was performed.
  3597  	//
  3598  	// Possible values:
  3599  	//   "NONE" - No hash requested.
  3600  	//   "SHA256" - Use a sha256 hash.
  3601  	//   "MD5" - Use a md5 hash.
  3602  	//   "SHA512" - Use a sha512 hash.
  3603  	Type string `json:"type,omitempty"`
  3604  	// Value: The hash value.
  3605  	Value string `json:"value,omitempty"`
  3606  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  3607  	// include in API requests. By default, fields with empty or default values are
  3608  	// omitted from API requests. See
  3609  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3610  	// details.
  3611  	ForceSendFields []string `json:"-"`
  3612  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  3613  	// with the JSON null value. By default, fields with empty values are omitted
  3614  	// from API requests. See
  3615  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3616  	NullFields []string `json:"-"`
  3617  }
  3618  
  3619  func (s *GoogleDevtoolsCloudbuildV1Hash) MarshalJSON() ([]byte, error) {
  3620  	type NoMethod GoogleDevtoolsCloudbuildV1Hash
  3621  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3622  }
  3623  
  3624  // GoogleDevtoolsCloudbuildV1HttpConfig: HttpConfig is a configuration for HTTP
  3625  // related git operations.
  3626  type GoogleDevtoolsCloudbuildV1HttpConfig struct {
  3627  	// ProxySecretVersionName: SecretVersion resource of the HTTP proxy URL. The
  3628  	// proxy URL should be in format protocol://@]proxyhost[:port].
  3629  	ProxySecretVersionName string `json:"proxySecretVersionName,omitempty"`
  3630  	// ProxySslCaInfo: Optional. Cloud Storage object storing the certificate to
  3631  	// use with the HTTP proxy.
  3632  	ProxySslCaInfo *GoogleDevtoolsCloudbuildV1GCSLocation `json:"proxySslCaInfo,omitempty"`
  3633  	// ForceSendFields is a list of field names (e.g. "ProxySecretVersionName") to
  3634  	// unconditionally include in API requests. By default, fields with empty or
  3635  	// default values are omitted from API requests. See
  3636  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3637  	// details.
  3638  	ForceSendFields []string `json:"-"`
  3639  	// NullFields is a list of field names (e.g. "ProxySecretVersionName") to
  3640  	// include in API requests with the JSON null value. By default, fields with
  3641  	// empty values are omitted from API requests. See
  3642  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3643  	NullFields []string `json:"-"`
  3644  }
  3645  
  3646  func (s *GoogleDevtoolsCloudbuildV1HttpConfig) MarshalJSON() ([]byte, error) {
  3647  	type NoMethod GoogleDevtoolsCloudbuildV1HttpConfig
  3648  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3649  }
  3650  
  3651  // GoogleDevtoolsCloudbuildV1InlineSecret: Pairs a set of secret environment
  3652  // variables mapped to encrypted values with the Cloud KMS key to use to
  3653  // decrypt the value.
  3654  type GoogleDevtoolsCloudbuildV1InlineSecret struct {
  3655  	// EnvMap: Map of environment variable name to its encrypted value. Secret
  3656  	// environment variables must be unique across all of a build's secrets, and
  3657  	// must be used by at least one build step. Values can be at most 64 KB in
  3658  	// size. There can be at most 100 secret values across all of a build's
  3659  	// secrets.
  3660  	EnvMap map[string]string `json:"envMap,omitempty"`
  3661  	// KmsKeyName: Resource name of Cloud KMS crypto key to decrypt the encrypted
  3662  	// value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*
  3663  	KmsKeyName string `json:"kmsKeyName,omitempty"`
  3664  	// ForceSendFields is a list of field names (e.g. "EnvMap") to unconditionally
  3665  	// include in API requests. By default, fields with empty or default values are
  3666  	// omitted from API requests. See
  3667  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3668  	// details.
  3669  	ForceSendFields []string `json:"-"`
  3670  	// NullFields is a list of field names (e.g. "EnvMap") to include in API
  3671  	// requests with the JSON null value. By default, fields with empty values are
  3672  	// omitted from API requests. See
  3673  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3674  	NullFields []string `json:"-"`
  3675  }
  3676  
  3677  func (s *GoogleDevtoolsCloudbuildV1InlineSecret) MarshalJSON() ([]byte, error) {
  3678  	type NoMethod GoogleDevtoolsCloudbuildV1InlineSecret
  3679  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3680  }
  3681  
  3682  // GoogleDevtoolsCloudbuildV1MavenArtifact: A Maven artifact to upload to
  3683  // Artifact Registry upon successful completion of all build steps.
  3684  type GoogleDevtoolsCloudbuildV1MavenArtifact struct {
  3685  	// ArtifactId: Maven `artifactId` value used when uploading the artifact to
  3686  	// Artifact Registry.
  3687  	ArtifactId string `json:"artifactId,omitempty"`
  3688  	// GroupId: Maven `groupId` value used when uploading the artifact to Artifact
  3689  	// Registry.
  3690  	GroupId string `json:"groupId,omitempty"`
  3691  	// Path: Path to an artifact in the build's workspace to be uploaded to
  3692  	// Artifact Registry. This can be either an absolute path, e.g.
  3693  	// /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from
  3694  	// /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
  3695  	Path string `json:"path,omitempty"`
  3696  	// Repository: Artifact Registry repository, in the form
  3697  	// "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the
  3698  	// workspace specified by path will be uploaded to Artifact Registry with this
  3699  	// location as a prefix.
  3700  	Repository string `json:"repository,omitempty"`
  3701  	// Version: Maven `version` value used when uploading the artifact to Artifact
  3702  	// Registry.
  3703  	Version string `json:"version,omitempty"`
  3704  	// ForceSendFields is a list of field names (e.g. "ArtifactId") to
  3705  	// unconditionally include in API requests. By default, fields with empty or
  3706  	// default values are omitted from API requests. See
  3707  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3708  	// details.
  3709  	ForceSendFields []string `json:"-"`
  3710  	// NullFields is a list of field names (e.g. "ArtifactId") to include in API
  3711  	// requests with the JSON null value. By default, fields with empty values are
  3712  	// omitted from API requests. See
  3713  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3714  	NullFields []string `json:"-"`
  3715  }
  3716  
  3717  func (s *GoogleDevtoolsCloudbuildV1MavenArtifact) MarshalJSON() ([]byte, error) {
  3718  	type NoMethod GoogleDevtoolsCloudbuildV1MavenArtifact
  3719  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3720  }
  3721  
  3722  // GoogleDevtoolsCloudbuildV1NpmPackage: Npm package to upload to Artifact
  3723  // Registry upon successful completion of all build steps.
  3724  type GoogleDevtoolsCloudbuildV1NpmPackage struct {
  3725  	// PackagePath: Path to the package.json. e.g. workspace/path/to/package
  3726  	PackagePath string `json:"packagePath,omitempty"`
  3727  	// Repository: Artifact Registry repository, in the form
  3728  	// "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the
  3729  	// workspace specified by path will be zipped and uploaded to Artifact Registry
  3730  	// with this location as a prefix.
  3731  	Repository string `json:"repository,omitempty"`
  3732  	// ForceSendFields is a list of field names (e.g. "PackagePath") to
  3733  	// unconditionally include in API requests. By default, fields with empty or
  3734  	// default values are omitted from API requests. See
  3735  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3736  	// details.
  3737  	ForceSendFields []string `json:"-"`
  3738  	// NullFields is a list of field names (e.g. "PackagePath") to include in API
  3739  	// requests with the JSON null value. By default, fields with empty values are
  3740  	// omitted from API requests. See
  3741  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3742  	NullFields []string `json:"-"`
  3743  }
  3744  
  3745  func (s *GoogleDevtoolsCloudbuildV1NpmPackage) MarshalJSON() ([]byte, error) {
  3746  	type NoMethod GoogleDevtoolsCloudbuildV1NpmPackage
  3747  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3748  }
  3749  
  3750  // GoogleDevtoolsCloudbuildV1PoolOption: Details about how a build should be
  3751  // executed on a `WorkerPool`. See running builds in a private pool
  3752  // (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
  3753  // for more information.
  3754  type GoogleDevtoolsCloudbuildV1PoolOption struct {
  3755  	// Name: The `WorkerPool` resource to execute the build on. You must have
  3756  	// `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format
  3757  	// projects/{project}/locations/{location}/workerPools/{workerPoolId}
  3758  	Name string `json:"name,omitempty"`
  3759  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  3760  	// include in API requests. By default, fields with empty or default values are
  3761  	// omitted from API requests. See
  3762  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3763  	// details.
  3764  	ForceSendFields []string `json:"-"`
  3765  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  3766  	// with the JSON null value. By default, fields with empty values are omitted
  3767  	// from API requests. See
  3768  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3769  	NullFields []string `json:"-"`
  3770  }
  3771  
  3772  func (s *GoogleDevtoolsCloudbuildV1PoolOption) MarshalJSON() ([]byte, error) {
  3773  	type NoMethod GoogleDevtoolsCloudbuildV1PoolOption
  3774  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3775  }
  3776  
  3777  // GoogleDevtoolsCloudbuildV1PythonPackage: Python package to upload to
  3778  // Artifact Registry upon successful completion of all build steps. A package
  3779  // can encapsulate multiple objects to be uploaded to a single repository.
  3780  type GoogleDevtoolsCloudbuildV1PythonPackage struct {
  3781  	// Paths: Path globs used to match files in the build's workspace. For Python/
  3782  	// Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.
  3783  	Paths []string `json:"paths,omitempty"`
  3784  	// Repository: Artifact Registry repository, in the form
  3785  	// "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace
  3786  	// matching any path pattern will be uploaded to Artifact Registry with this
  3787  	// location as a prefix.
  3788  	Repository string `json:"repository,omitempty"`
  3789  	// ForceSendFields is a list of field names (e.g. "Paths") to unconditionally
  3790  	// include in API requests. By default, fields with empty or default values are
  3791  	// omitted from API requests. See
  3792  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3793  	// details.
  3794  	ForceSendFields []string `json:"-"`
  3795  	// NullFields is a list of field names (e.g. "Paths") to include in API
  3796  	// requests with the JSON null value. By default, fields with empty values are
  3797  	// omitted from API requests. See
  3798  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3799  	NullFields []string `json:"-"`
  3800  }
  3801  
  3802  func (s *GoogleDevtoolsCloudbuildV1PythonPackage) MarshalJSON() ([]byte, error) {
  3803  	type NoMethod GoogleDevtoolsCloudbuildV1PythonPackage
  3804  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3805  }
  3806  
  3807  // GoogleDevtoolsCloudbuildV1RepoSource: Location of the source in a Google
  3808  // Cloud Source Repository.
  3809  type GoogleDevtoolsCloudbuildV1RepoSource struct {
  3810  	// BranchName: Regex matching branches to build. The syntax of the regular
  3811  	// expressions accepted is the syntax accepted by RE2 and described at
  3812  	// https://github.com/google/re2/wiki/Syntax
  3813  	BranchName string `json:"branchName,omitempty"`
  3814  	// CommitSha: Explicit commit SHA to build.
  3815  	CommitSha string `json:"commitSha,omitempty"`
  3816  	// Dir: Directory, relative to the source root, in which to run the build. This
  3817  	// must be a relative path. If a step's `dir` is specified and is an absolute
  3818  	// path, this value is ignored for that step's execution.
  3819  	Dir string `json:"dir,omitempty"`
  3820  	// InvertRegex: Only trigger a build if the revision regex does NOT match the
  3821  	// revision regex.
  3822  	InvertRegex bool `json:"invertRegex,omitempty"`
  3823  	// ProjectId: ID of the project that owns the Cloud Source Repository. If
  3824  	// omitted, the project ID requesting the build is assumed.
  3825  	ProjectId string `json:"projectId,omitempty"`
  3826  	// RepoName: Name of the Cloud Source Repository.
  3827  	RepoName string `json:"repoName,omitempty"`
  3828  	// Substitutions: Substitutions to use in a triggered build. Should only be
  3829  	// used with RunBuildTrigger
  3830  	Substitutions map[string]string `json:"substitutions,omitempty"`
  3831  	// TagName: Regex matching tags to build. The syntax of the regular expressions
  3832  	// accepted is the syntax accepted by RE2 and described at
  3833  	// https://github.com/google/re2/wiki/Syntax
  3834  	TagName string `json:"tagName,omitempty"`
  3835  	// ForceSendFields is a list of field names (e.g. "BranchName") to
  3836  	// unconditionally include in API requests. By default, fields with empty or
  3837  	// default values are omitted from API requests. See
  3838  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3839  	// details.
  3840  	ForceSendFields []string `json:"-"`
  3841  	// NullFields is a list of field names (e.g. "BranchName") to include in API
  3842  	// requests with the JSON null value. By default, fields with empty values are
  3843  	// omitted from API requests. See
  3844  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3845  	NullFields []string `json:"-"`
  3846  }
  3847  
  3848  func (s *GoogleDevtoolsCloudbuildV1RepoSource) MarshalJSON() ([]byte, error) {
  3849  	type NoMethod GoogleDevtoolsCloudbuildV1RepoSource
  3850  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3851  }
  3852  
  3853  // GoogleDevtoolsCloudbuildV1Results: Artifacts created by the build pipeline.
  3854  type GoogleDevtoolsCloudbuildV1Results struct {
  3855  	// ArtifactManifest: Path to the artifact manifest for non-container artifacts
  3856  	// uploaded to Cloud Storage. Only populated when artifacts are uploaded to
  3857  	// Cloud Storage.
  3858  	ArtifactManifest string `json:"artifactManifest,omitempty"`
  3859  	// ArtifactTiming: Time to push all non-container artifacts to Cloud Storage.
  3860  	ArtifactTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"artifactTiming,omitempty"`
  3861  	// BuildStepImages: List of build step digests, in the order corresponding to
  3862  	// build step indices.
  3863  	BuildStepImages []string `json:"buildStepImages,omitempty"`
  3864  	// BuildStepOutputs: List of build step outputs, produced by builder images, in
  3865  	// the order corresponding to build step indices. Cloud Builders
  3866  	// (https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this
  3867  	// output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data
  3868  	// is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't
  3869  	// be substituted.
  3870  	BuildStepOutputs []string `json:"buildStepOutputs,omitempty"`
  3871  	// Images: Container images that were built as a part of the build.
  3872  	Images []*GoogleDevtoolsCloudbuildV1BuiltImage `json:"images,omitempty"`
  3873  	// MavenArtifacts: Maven artifacts uploaded to Artifact Registry at the end of
  3874  	// the build.
  3875  	MavenArtifacts []*GoogleDevtoolsCloudbuildV1UploadedMavenArtifact `json:"mavenArtifacts,omitempty"`
  3876  	// NpmPackages: Npm packages uploaded to Artifact Registry at the end of the
  3877  	// build.
  3878  	NpmPackages []*GoogleDevtoolsCloudbuildV1UploadedNpmPackage `json:"npmPackages,omitempty"`
  3879  	// NumArtifacts: Number of non-container artifacts uploaded to Cloud Storage.
  3880  	// Only populated when artifacts are uploaded to Cloud Storage.
  3881  	NumArtifacts int64 `json:"numArtifacts,omitempty,string"`
  3882  	// PythonPackages: Python artifacts uploaded to Artifact Registry at the end of
  3883  	// the build.
  3884  	PythonPackages []*GoogleDevtoolsCloudbuildV1UploadedPythonPackage `json:"pythonPackages,omitempty"`
  3885  	// ForceSendFields is a list of field names (e.g. "ArtifactManifest") to
  3886  	// unconditionally include in API requests. By default, fields with empty or
  3887  	// default values are omitted from API requests. See
  3888  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3889  	// details.
  3890  	ForceSendFields []string `json:"-"`
  3891  	// NullFields is a list of field names (e.g. "ArtifactManifest") to include in
  3892  	// API requests with the JSON null value. By default, fields with empty values
  3893  	// are omitted from API requests. See
  3894  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3895  	NullFields []string `json:"-"`
  3896  }
  3897  
  3898  func (s *GoogleDevtoolsCloudbuildV1Results) MarshalJSON() ([]byte, error) {
  3899  	type NoMethod GoogleDevtoolsCloudbuildV1Results
  3900  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3901  }
  3902  
  3903  // GoogleDevtoolsCloudbuildV1Secret: Pairs a set of secret environment
  3904  // variables containing encrypted values with the Cloud KMS key to use to
  3905  // decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead
  3906  // of using `kmsKeyName` with `secret`. For instructions see:
  3907  // https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
  3908  type GoogleDevtoolsCloudbuildV1Secret struct {
  3909  	// KmsKeyName: Cloud KMS key name to use to decrypt these envs.
  3910  	KmsKeyName string `json:"kmsKeyName,omitempty"`
  3911  	// SecretEnv: Map of environment variable name to its encrypted value. Secret
  3912  	// environment variables must be unique across all of a build's secrets, and
  3913  	// must be used by at least one build step. Values can be at most 64 KB in
  3914  	// size. There can be at most 100 secret values across all of a build's
  3915  	// secrets.
  3916  	SecretEnv map[string]string `json:"secretEnv,omitempty"`
  3917  	// ForceSendFields is a list of field names (e.g. "KmsKeyName") to
  3918  	// unconditionally include in API requests. By default, fields with empty or
  3919  	// default values are omitted from API requests. See
  3920  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3921  	// details.
  3922  	ForceSendFields []string `json:"-"`
  3923  	// NullFields is a list of field names (e.g. "KmsKeyName") to include in API
  3924  	// requests with the JSON null value. By default, fields with empty values are
  3925  	// omitted from API requests. See
  3926  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3927  	NullFields []string `json:"-"`
  3928  }
  3929  
  3930  func (s *GoogleDevtoolsCloudbuildV1Secret) MarshalJSON() ([]byte, error) {
  3931  	type NoMethod GoogleDevtoolsCloudbuildV1Secret
  3932  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3933  }
  3934  
  3935  // GoogleDevtoolsCloudbuildV1SecretManagerSecret: Pairs a secret environment
  3936  // variable with a SecretVersion in Secret Manager.
  3937  type GoogleDevtoolsCloudbuildV1SecretManagerSecret struct {
  3938  	// Env: Environment variable name to associate with the secret. Secret
  3939  	// environment variables must be unique across all of a build's secrets, and
  3940  	// must be used by at least one build step.
  3941  	Env string `json:"env,omitempty"`
  3942  	// VersionName: Resource name of the SecretVersion. In format:
  3943  	// projects/*/secrets/*/versions/*
  3944  	VersionName string `json:"versionName,omitempty"`
  3945  	// ForceSendFields is a list of field names (e.g. "Env") to unconditionally
  3946  	// include in API requests. By default, fields with empty or default values are
  3947  	// omitted from API requests. See
  3948  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3949  	// details.
  3950  	ForceSendFields []string `json:"-"`
  3951  	// NullFields is a list of field names (e.g. "Env") to include in API requests
  3952  	// with the JSON null value. By default, fields with empty values are omitted
  3953  	// from API requests. See
  3954  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3955  	NullFields []string `json:"-"`
  3956  }
  3957  
  3958  func (s *GoogleDevtoolsCloudbuildV1SecretManagerSecret) MarshalJSON() ([]byte, error) {
  3959  	type NoMethod GoogleDevtoolsCloudbuildV1SecretManagerSecret
  3960  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3961  }
  3962  
  3963  // GoogleDevtoolsCloudbuildV1Secrets: Secrets and secret environment variables.
  3964  type GoogleDevtoolsCloudbuildV1Secrets struct {
  3965  	// Inline: Secrets encrypted with KMS key and the associated secret environment
  3966  	// variable.
  3967  	Inline []*GoogleDevtoolsCloudbuildV1InlineSecret `json:"inline,omitempty"`
  3968  	// SecretManager: Secrets in Secret Manager and associated secret environment
  3969  	// variable.
  3970  	SecretManager []*GoogleDevtoolsCloudbuildV1SecretManagerSecret `json:"secretManager,omitempty"`
  3971  	// ForceSendFields is a list of field names (e.g. "Inline") to unconditionally
  3972  	// include in API requests. By default, fields with empty or default values are
  3973  	// omitted from API requests. See
  3974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3975  	// details.
  3976  	ForceSendFields []string `json:"-"`
  3977  	// NullFields is a list of field names (e.g. "Inline") to include in API
  3978  	// requests with the JSON null value. By default, fields with empty values are
  3979  	// omitted from API requests. See
  3980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3981  	NullFields []string `json:"-"`
  3982  }
  3983  
  3984  func (s *GoogleDevtoolsCloudbuildV1Secrets) MarshalJSON() ([]byte, error) {
  3985  	type NoMethod GoogleDevtoolsCloudbuildV1Secrets
  3986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3987  }
  3988  
  3989  // GoogleDevtoolsCloudbuildV1Source: Location of the source in a supported
  3990  // storage service.
  3991  type GoogleDevtoolsCloudbuildV1Source struct {
  3992  	// ConnectedRepository: Optional. If provided, get the source from this 2nd-gen
  3993  	// Google Cloud Build repository resource.
  3994  	ConnectedRepository *GoogleDevtoolsCloudbuildV1ConnectedRepository `json:"connectedRepository,omitempty"`
  3995  	// DeveloperConnectConfig: If provided, get the source from this Developer
  3996  	// Connect config.
  3997  	DeveloperConnectConfig *GoogleDevtoolsCloudbuildV1DeveloperConnectConfig `json:"developerConnectConfig,omitempty"`
  3998  	// GitSource: If provided, get the source from this Git repository.
  3999  	GitSource *GoogleDevtoolsCloudbuildV1GitSource `json:"gitSource,omitempty"`
  4000  	// RepoSource: If provided, get the source from this location in a Cloud Source
  4001  	// Repository.
  4002  	RepoSource *GoogleDevtoolsCloudbuildV1RepoSource `json:"repoSource,omitempty"`
  4003  	// StorageSource: If provided, get the source from this location in Cloud
  4004  	// Storage.
  4005  	StorageSource *GoogleDevtoolsCloudbuildV1StorageSource `json:"storageSource,omitempty"`
  4006  	// StorageSourceManifest: If provided, get the source from this manifest in
  4007  	// Cloud Storage. This feature is in Preview; see description here
  4008  	// (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
  4009  	StorageSourceManifest *GoogleDevtoolsCloudbuildV1StorageSourceManifest `json:"storageSourceManifest,omitempty"`
  4010  	// ForceSendFields is a list of field names (e.g. "ConnectedRepository") to
  4011  	// unconditionally include in API requests. By default, fields with empty or
  4012  	// default values are omitted from API requests. See
  4013  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4014  	// details.
  4015  	ForceSendFields []string `json:"-"`
  4016  	// NullFields is a list of field names (e.g. "ConnectedRepository") to include
  4017  	// in API requests with the JSON null value. By default, fields with empty
  4018  	// values are omitted from API requests. See
  4019  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4020  	NullFields []string `json:"-"`
  4021  }
  4022  
  4023  func (s *GoogleDevtoolsCloudbuildV1Source) MarshalJSON() ([]byte, error) {
  4024  	type NoMethod GoogleDevtoolsCloudbuildV1Source
  4025  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4026  }
  4027  
  4028  // GoogleDevtoolsCloudbuildV1SourceProvenance: Provenance of the source. Ways
  4029  // to find the original source, or verify that some source was used for this
  4030  // build.
  4031  type GoogleDevtoolsCloudbuildV1SourceProvenance struct {
  4032  	// FileHashes: Output only. Hash(es) of the build source, which can be used to
  4033  	// verify that the original source integrity was maintained in the build. Note
  4034  	// that `FileHashes` will only be populated if `BuildOptions` has requested a
  4035  	// `SourceProvenanceHash`. The keys to this map are file paths used as build
  4036  	// source and the values contain the hash values for those files. If the build
  4037  	// source came in a single package such as a gzipped tarfile (`.tar.gz`), the
  4038  	// `FileHash` will be for the single path to that file.
  4039  	FileHashes map[string]GoogleDevtoolsCloudbuildV1FileHashes `json:"fileHashes,omitempty"`
  4040  	// ResolvedConnectedRepository: Output only. A copy of the build's
  4041  	// `source.connected_repository`, if exists, with any revisions resolved.
  4042  	ResolvedConnectedRepository *GoogleDevtoolsCloudbuildV1ConnectedRepository `json:"resolvedConnectedRepository,omitempty"`
  4043  	// ResolvedGitSource: Output only. A copy of the build's `source.git_source`,
  4044  	// if exists, with any revisions resolved.
  4045  	ResolvedGitSource *GoogleDevtoolsCloudbuildV1GitSource `json:"resolvedGitSource,omitempty"`
  4046  	// ResolvedRepoSource: A copy of the build's `source.repo_source`, if exists,
  4047  	// with any revisions resolved.
  4048  	ResolvedRepoSource *GoogleDevtoolsCloudbuildV1RepoSource `json:"resolvedRepoSource,omitempty"`
  4049  	// ResolvedStorageSource: A copy of the build's `source.storage_source`, if
  4050  	// exists, with any generations resolved.
  4051  	ResolvedStorageSource *GoogleDevtoolsCloudbuildV1StorageSource `json:"resolvedStorageSource,omitempty"`
  4052  	// ResolvedStorageSourceManifest: A copy of the build's
  4053  	// `source.storage_source_manifest`, if exists, with any revisions resolved.
  4054  	// This feature is in Preview.
  4055  	ResolvedStorageSourceManifest *GoogleDevtoolsCloudbuildV1StorageSourceManifest `json:"resolvedStorageSourceManifest,omitempty"`
  4056  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  4057  	// unconditionally include in API requests. By default, fields with empty or
  4058  	// default values are omitted from API requests. See
  4059  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4060  	// details.
  4061  	ForceSendFields []string `json:"-"`
  4062  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  4063  	// requests with the JSON null value. By default, fields with empty values are
  4064  	// omitted from API requests. See
  4065  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4066  	NullFields []string `json:"-"`
  4067  }
  4068  
  4069  func (s *GoogleDevtoolsCloudbuildV1SourceProvenance) MarshalJSON() ([]byte, error) {
  4070  	type NoMethod GoogleDevtoolsCloudbuildV1SourceProvenance
  4071  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4072  }
  4073  
  4074  // GoogleDevtoolsCloudbuildV1StorageSource: Location of the source in an
  4075  // archive file in Cloud Storage.
  4076  type GoogleDevtoolsCloudbuildV1StorageSource struct {
  4077  	// Bucket: Cloud Storage bucket containing the source (see Bucket Name
  4078  	// Requirements
  4079  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
  4080  	Bucket string `json:"bucket,omitempty"`
  4081  	// Generation: Cloud Storage generation for the object. If the generation is
  4082  	// omitted, the latest generation will be used.
  4083  	Generation int64 `json:"generation,omitempty,string"`
  4084  	// Object: Cloud Storage object containing the source. This object must be a
  4085  	// zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to
  4086  	// build.
  4087  	Object string `json:"object,omitempty"`
  4088  	// SourceFetcher: Optional. Option to specify the tool to fetch the source file
  4089  	// for the build.
  4090  	//
  4091  	// Possible values:
  4092  	//   "SOURCE_FETCHER_UNSPECIFIED" - Unspecified defaults to GSUTIL.
  4093  	//   "GSUTIL" - Use the "gsutil" tool to download the source file.
  4094  	//   "GCS_FETCHER" - Use the Cloud Storage Fetcher tool to download the source
  4095  	// file.
  4096  	SourceFetcher string `json:"sourceFetcher,omitempty"`
  4097  	// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally
  4098  	// include in API requests. By default, fields with empty or default values are
  4099  	// omitted from API requests. See
  4100  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4101  	// details.
  4102  	ForceSendFields []string `json:"-"`
  4103  	// NullFields is a list of field names (e.g. "Bucket") to include in API
  4104  	// requests with the JSON null value. By default, fields with empty values are
  4105  	// omitted from API requests. See
  4106  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4107  	NullFields []string `json:"-"`
  4108  }
  4109  
  4110  func (s *GoogleDevtoolsCloudbuildV1StorageSource) MarshalJSON() ([]byte, error) {
  4111  	type NoMethod GoogleDevtoolsCloudbuildV1StorageSource
  4112  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4113  }
  4114  
  4115  // GoogleDevtoolsCloudbuildV1StorageSourceManifest: Location of the source
  4116  // manifest in Cloud Storage. This feature is in Preview; see description here
  4117  // (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
  4118  type GoogleDevtoolsCloudbuildV1StorageSourceManifest struct {
  4119  	// Bucket: Cloud Storage bucket containing the source manifest (see Bucket Name
  4120  	// Requirements
  4121  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
  4122  	Bucket string `json:"bucket,omitempty"`
  4123  	// Generation: Cloud Storage generation for the object. If the generation is
  4124  	// omitted, the latest generation will be used.
  4125  	Generation int64 `json:"generation,omitempty,string"`
  4126  	// Object: Cloud Storage object containing the source manifest. This object
  4127  	// must be a JSON file.
  4128  	Object string `json:"object,omitempty"`
  4129  	// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally
  4130  	// include in API requests. By default, fields with empty or default values are
  4131  	// omitted from API requests. See
  4132  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4133  	// details.
  4134  	ForceSendFields []string `json:"-"`
  4135  	// NullFields is a list of field names (e.g. "Bucket") to include in API
  4136  	// requests with the JSON null value. By default, fields with empty values are
  4137  	// omitted from API requests. See
  4138  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4139  	NullFields []string `json:"-"`
  4140  }
  4141  
  4142  func (s *GoogleDevtoolsCloudbuildV1StorageSourceManifest) MarshalJSON() ([]byte, error) {
  4143  	type NoMethod GoogleDevtoolsCloudbuildV1StorageSourceManifest
  4144  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4145  }
  4146  
  4147  // GoogleDevtoolsCloudbuildV1TimeSpan: Start and end times for a build
  4148  // execution phase.
  4149  type GoogleDevtoolsCloudbuildV1TimeSpan struct {
  4150  	// EndTime: End of time span.
  4151  	EndTime string `json:"endTime,omitempty"`
  4152  	// StartTime: Start of time span.
  4153  	StartTime string `json:"startTime,omitempty"`
  4154  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  4155  	// include in API requests. By default, fields with empty or default values are
  4156  	// omitted from API requests. See
  4157  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4158  	// details.
  4159  	ForceSendFields []string `json:"-"`
  4160  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  4161  	// requests with the JSON null value. By default, fields with empty values are
  4162  	// omitted from API requests. See
  4163  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4164  	NullFields []string `json:"-"`
  4165  }
  4166  
  4167  func (s *GoogleDevtoolsCloudbuildV1TimeSpan) MarshalJSON() ([]byte, error) {
  4168  	type NoMethod GoogleDevtoolsCloudbuildV1TimeSpan
  4169  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4170  }
  4171  
  4172  // GoogleDevtoolsCloudbuildV1UploadedMavenArtifact: A Maven artifact uploaded
  4173  // using the MavenArtifact directive.
  4174  type GoogleDevtoolsCloudbuildV1UploadedMavenArtifact struct {
  4175  	// FileHashes: Hash types and values of the Maven Artifact.
  4176  	FileHashes *GoogleDevtoolsCloudbuildV1FileHashes `json:"fileHashes,omitempty"`
  4177  	// PushTiming: Output only. Stores timing information for pushing the specified
  4178  	// artifact.
  4179  	PushTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"pushTiming,omitempty"`
  4180  	// Uri: URI of the uploaded artifact.
  4181  	Uri string `json:"uri,omitempty"`
  4182  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  4183  	// unconditionally include in API requests. By default, fields with empty or
  4184  	// default values are omitted from API requests. See
  4185  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4186  	// details.
  4187  	ForceSendFields []string `json:"-"`
  4188  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  4189  	// requests with the JSON null value. By default, fields with empty values are
  4190  	// omitted from API requests. See
  4191  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4192  	NullFields []string `json:"-"`
  4193  }
  4194  
  4195  func (s *GoogleDevtoolsCloudbuildV1UploadedMavenArtifact) MarshalJSON() ([]byte, error) {
  4196  	type NoMethod GoogleDevtoolsCloudbuildV1UploadedMavenArtifact
  4197  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4198  }
  4199  
  4200  // GoogleDevtoolsCloudbuildV1UploadedNpmPackage: An npm package uploaded to
  4201  // Artifact Registry using the NpmPackage directive.
  4202  type GoogleDevtoolsCloudbuildV1UploadedNpmPackage struct {
  4203  	// FileHashes: Hash types and values of the npm package.
  4204  	FileHashes *GoogleDevtoolsCloudbuildV1FileHashes `json:"fileHashes,omitempty"`
  4205  	// PushTiming: Output only. Stores timing information for pushing the specified
  4206  	// artifact.
  4207  	PushTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"pushTiming,omitempty"`
  4208  	// Uri: URI of the uploaded npm package.
  4209  	Uri string `json:"uri,omitempty"`
  4210  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  4211  	// unconditionally include in API requests. By default, fields with empty or
  4212  	// default values are omitted from API requests. See
  4213  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4214  	// details.
  4215  	ForceSendFields []string `json:"-"`
  4216  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  4217  	// requests with the JSON null value. By default, fields with empty values are
  4218  	// omitted from API requests. See
  4219  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4220  	NullFields []string `json:"-"`
  4221  }
  4222  
  4223  func (s *GoogleDevtoolsCloudbuildV1UploadedNpmPackage) MarshalJSON() ([]byte, error) {
  4224  	type NoMethod GoogleDevtoolsCloudbuildV1UploadedNpmPackage
  4225  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4226  }
  4227  
  4228  // GoogleDevtoolsCloudbuildV1UploadedPythonPackage: Artifact uploaded using the
  4229  // PythonPackage directive.
  4230  type GoogleDevtoolsCloudbuildV1UploadedPythonPackage struct {
  4231  	// FileHashes: Hash types and values of the Python Artifact.
  4232  	FileHashes *GoogleDevtoolsCloudbuildV1FileHashes `json:"fileHashes,omitempty"`
  4233  	// PushTiming: Output only. Stores timing information for pushing the specified
  4234  	// artifact.
  4235  	PushTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"pushTiming,omitempty"`
  4236  	// Uri: URI of the uploaded artifact.
  4237  	Uri string `json:"uri,omitempty"`
  4238  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  4239  	// unconditionally include in API requests. By default, fields with empty or
  4240  	// default values are omitted from API requests. See
  4241  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4242  	// details.
  4243  	ForceSendFields []string `json:"-"`
  4244  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  4245  	// requests with the JSON null value. By default, fields with empty values are
  4246  	// omitted from API requests. See
  4247  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4248  	NullFields []string `json:"-"`
  4249  }
  4250  
  4251  func (s *GoogleDevtoolsCloudbuildV1UploadedPythonPackage) MarshalJSON() ([]byte, error) {
  4252  	type NoMethod GoogleDevtoolsCloudbuildV1UploadedPythonPackage
  4253  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4254  }
  4255  
  4256  // GoogleDevtoolsCloudbuildV1Volume: Volume describes a Docker container volume
  4257  // which is mounted into build steps in order to persist files across build
  4258  // step execution.
  4259  type GoogleDevtoolsCloudbuildV1Volume struct {
  4260  	// Name: Name of the volume to mount. Volume names must be unique per build
  4261  	// step and must be valid names for Docker volumes. Each named volume must be
  4262  	// used by at least two build steps.
  4263  	Name string `json:"name,omitempty"`
  4264  	// Path: Path at which to mount the volume. Paths must be absolute and cannot
  4265  	// conflict with other volume paths on the same build step or with certain
  4266  	// reserved volume paths.
  4267  	Path string `json:"path,omitempty"`
  4268  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  4269  	// include in API requests. By default, fields with empty or default values are
  4270  	// omitted from API requests. See
  4271  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4272  	// details.
  4273  	ForceSendFields []string `json:"-"`
  4274  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  4275  	// with the JSON null value. By default, fields with empty values are omitted
  4276  	// from API requests. See
  4277  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4278  	NullFields []string `json:"-"`
  4279  }
  4280  
  4281  func (s *GoogleDevtoolsCloudbuildV1Volume) MarshalJSON() ([]byte, error) {
  4282  	type NoMethod GoogleDevtoolsCloudbuildV1Volume
  4283  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4284  }
  4285  
  4286  // GoogleDevtoolsCloudbuildV1Warning: A non-fatal problem encountered during
  4287  // the execution of the build.
  4288  type GoogleDevtoolsCloudbuildV1Warning struct {
  4289  	// Priority: The priority for this warning.
  4290  	//
  4291  	// Possible values:
  4292  	//   "PRIORITY_UNSPECIFIED" - Should not be used.
  4293  	//   "INFO" - e.g. deprecation warnings and alternative feature highlights.
  4294  	//   "WARNING" - e.g. automated detection of possible issues with the build.
  4295  	//   "ALERT" - e.g. alerts that a feature used in the build is pending removal
  4296  	Priority string `json:"priority,omitempty"`
  4297  	// Text: Explanation of the warning generated.
  4298  	Text string `json:"text,omitempty"`
  4299  	// ForceSendFields is a list of field names (e.g. "Priority") to
  4300  	// unconditionally include in API requests. By default, fields with empty or
  4301  	// default values are omitted from API requests. See
  4302  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4303  	// details.
  4304  	ForceSendFields []string `json:"-"`
  4305  	// NullFields is a list of field names (e.g. "Priority") to include in API
  4306  	// requests with the JSON null value. By default, fields with empty values are
  4307  	// omitted from API requests. See
  4308  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4309  	NullFields []string `json:"-"`
  4310  }
  4311  
  4312  func (s *GoogleDevtoolsCloudbuildV1Warning) MarshalJSON() ([]byte, error) {
  4313  	type NoMethod GoogleDevtoolsCloudbuildV1Warning
  4314  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4315  }
  4316  
  4317  // GoogleIamV1AuditConfig: Specifies the audit configuration for a service. The
  4318  // configuration determines which permission types are logged, and what
  4319  // identities, if any, are exempted from logging. An AuditConfig must have one
  4320  // or more AuditLogConfigs. If there are AuditConfigs for both `allServices`
  4321  // and a specific service, the union of the two AuditConfigs is used for that
  4322  // service: the log_types specified in each AuditConfig are enabled, and the
  4323  // exempted_members in each AuditLogConfig are exempted. Example Policy with
  4324  // multiple AuditConfigs: { "audit_configs": [ { "service": "allServices",
  4325  // "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
  4326  // "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type":
  4327  // "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com",
  4328  // "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type":
  4329  // "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For
  4330  // sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
  4331  // logging. It also exempts `jose@example.com` from DATA_READ logging, and
  4332  // `aliya@example.com` from DATA_WRITE logging.
  4333  type GoogleIamV1AuditConfig struct {
  4334  	// AuditLogConfigs: The configuration for logging of each type of permission.
  4335  	AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
  4336  	// Service: Specifies a service that will be enabled for audit logging. For
  4337  	// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`
  4338  	// is a special value that covers all services.
  4339  	Service string `json:"service,omitempty"`
  4340  	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
  4341  	// unconditionally include in API requests. By default, fields with empty or
  4342  	// default values are omitted from API requests. See
  4343  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4344  	// details.
  4345  	ForceSendFields []string `json:"-"`
  4346  	// NullFields is a list of field names (e.g. "AuditLogConfigs") to include in
  4347  	// API requests with the JSON null value. By default, fields with empty values
  4348  	// are omitted from API requests. See
  4349  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4350  	NullFields []string `json:"-"`
  4351  }
  4352  
  4353  func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
  4354  	type NoMethod GoogleIamV1AuditConfig
  4355  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4356  }
  4357  
  4358  // GoogleIamV1AuditLogConfig: Provides the configuration for logging a type of
  4359  // permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ",
  4360  // "exempted_members": [ "user:jose@example.com" ] }, { "log_type":
  4361  // "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while
  4362  // exempting jose@example.com from DATA_READ logging.
  4363  type GoogleIamV1AuditLogConfig struct {
  4364  	// ExemptedMembers: Specifies the identities that do not cause logging for this
  4365  	// type of permission. Follows the same format of Binding.members.
  4366  	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
  4367  	// LogType: The log type that this config enables.
  4368  	//
  4369  	// Possible values:
  4370  	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
  4371  	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
  4372  	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
  4373  	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
  4374  	LogType string `json:"logType,omitempty"`
  4375  	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
  4376  	// unconditionally include in API requests. By default, fields with empty or
  4377  	// default values are omitted from API requests. See
  4378  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4379  	// details.
  4380  	ForceSendFields []string `json:"-"`
  4381  	// NullFields is a list of field names (e.g. "ExemptedMembers") to include in
  4382  	// API requests with the JSON null value. By default, fields with empty values
  4383  	// are omitted from API requests. See
  4384  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4385  	NullFields []string `json:"-"`
  4386  }
  4387  
  4388  func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
  4389  	type NoMethod GoogleIamV1AuditLogConfig
  4390  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4391  }
  4392  
  4393  // GoogleIamV1Binding: Associates `members`, or principals, with a `role`.
  4394  type GoogleIamV1Binding struct {
  4395  	// Condition: The condition that is associated with this binding. If the
  4396  	// condition evaluates to `true`, then this binding applies to the current
  4397  	// request. If the condition evaluates to `false`, then this binding does not
  4398  	// apply to the current request. However, a different role binding might grant
  4399  	// the same role to one or more of the principals in this binding. To learn
  4400  	// which resources support conditions in their IAM policies, see the IAM
  4401  	// documentation
  4402  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  4403  	Condition *GoogleTypeExpr `json:"condition,omitempty"`
  4404  	// Members: Specifies the principals requesting access for a Google Cloud
  4405  	// resource. `members` can have the following values: * `allUsers`: A special
  4406  	// identifier that represents anyone who is on the internet; with or without a
  4407  	// Google account. * `allAuthenticatedUsers`: A special identifier that
  4408  	// represents anyone who is authenticated with a Google account or a service
  4409  	// account. Does not include identities that come from external identity
  4410  	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
  4411  	// address that represents a specific Google account. For example,
  4412  	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
  4413  	// represents a Google service account. For example,
  4414  	// `my-other-app@appspot.gserviceaccount.com`. *
  4415  	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
  4416  	// identifier for a Kubernetes service account
  4417  	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
  4418  	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
  4419  	// `group:{emailid}`: An email address that represents a Google group. For
  4420  	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
  4421  	// (primary) that represents all the users of that domain. For example,
  4422  	// `google.com` or `example.com`. *
  4423  	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
  4424  	// ject/{subject_attribute_value}`: A single identity in a workforce identity
  4425  	// pool. *
  4426  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
  4427  	// group/{group_id}`: All workforce identities in a group. *
  4428  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
  4429  	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
  4430  	// a specific attribute value. *
  4431  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
  4432  	// *`: All identities in a workforce identity pool. *
  4433  	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
  4434  	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
  4435  	// identity in a workload identity pool. *
  4436  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
  4437  	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
  4438  	// group. *
  4439  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
  4440  	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
  4441  	// `: All identities in a workload identity pool with a certain attribute. *
  4442  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
  4443  	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
  4444  	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
  4445  	// unique identifier) representing a user that has been recently deleted. For
  4446  	// example, `alice@example.com?uid=123456789012345678901`. If the user is
  4447  	// recovered, this value reverts to `user:{emailid}` and the recovered user
  4448  	// retains the role in the binding. *
  4449  	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
  4450  	// unique identifier) representing a service account that has been recently
  4451  	// deleted. For example,
  4452  	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
  4453  	// service account is undeleted, this value reverts to
  4454  	// `serviceAccount:{emailid}` and the undeleted service account retains the
  4455  	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
  4456  	// address (plus unique identifier) representing a Google group that has been
  4457  	// recently deleted. For example,
  4458  	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
  4459  	// this value reverts to `group:{emailid}` and the recovered group retains the
  4460  	// role in the binding. *
  4461  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
  4462  	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
  4463  	// workforce identity pool. For example,
  4464  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
  4465  	// ol-id/subject/my-subject-attribute-value`.
  4466  	Members []string `json:"members,omitempty"`
  4467  	// Role: Role that is assigned to the list of `members`, or principals. For
  4468  	// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview
  4469  	// of the IAM roles and permissions, see the IAM documentation
  4470  	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
  4471  	// available pre-defined roles, see here
  4472  	// (https://cloud.google.com/iam/docs/understanding-roles).
  4473  	Role string `json:"role,omitempty"`
  4474  	// ForceSendFields is a list of field names (e.g. "Condition") to
  4475  	// unconditionally include in API requests. By default, fields with empty or
  4476  	// default values are omitted from API requests. See
  4477  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4478  	// details.
  4479  	ForceSendFields []string `json:"-"`
  4480  	// NullFields is a list of field names (e.g. "Condition") to include in API
  4481  	// requests with the JSON null value. By default, fields with empty values are
  4482  	// omitted from API requests. See
  4483  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4484  	NullFields []string `json:"-"`
  4485  }
  4486  
  4487  func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
  4488  	type NoMethod GoogleIamV1Binding
  4489  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4490  }
  4491  
  4492  // GoogleIamV1Policy: An Identity and Access Management (IAM) policy, which
  4493  // specifies access controls for Google Cloud resources. A `Policy` is a
  4494  // collection of `bindings`. A `binding` binds one or more `members`, or
  4495  // principals, to a single `role`. Principals can be user accounts, service
  4496  // accounts, Google groups, and domains (such as G Suite). A `role` is a named
  4497  // list of permissions; each `role` can be an IAM predefined role or a
  4498  // user-created custom role. For some types of Google Cloud resources, a
  4499  // `binding` can also specify a `condition`, which is a logical expression that
  4500  // allows access to a resource only if the expression evaluates to `true`. A
  4501  // condition can add constraints based on attributes of the request, the
  4502  // resource, or both. To learn which resources support conditions in their IAM
  4503  // policies, see the IAM documentation
  4504  // (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON
  4505  // example:** ``` { "bindings": [ { "role":
  4506  // "roles/resourcemanager.organizationAdmin", "members": [
  4507  // "user:mike@example.com", "group:admins@example.com", "domain:google.com",
  4508  // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":
  4509  // "roles/resourcemanager.organizationViewer", "members": [
  4510  // "user:eve@example.com" ], "condition": { "title": "expirable access",
  4511  // "description": "Does not grant access after Sep 2020", "expression":
  4512  // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":
  4513  // "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: -
  4514  // members: - user:mike@example.com - group:admins@example.com -
  4515  // domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
  4516  // role: roles/resourcemanager.organizationAdmin - members: -
  4517  // user:eve@example.com role: roles/resourcemanager.organizationViewer
  4518  // condition: title: expirable access description: Does not grant access after
  4519  // Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
  4520  // etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features,
  4521  // see the IAM documentation (https://cloud.google.com/iam/docs/).
  4522  type GoogleIamV1Policy struct {
  4523  	// AuditConfigs: Specifies cloud audit logging configuration for this policy.
  4524  	AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
  4525  	// Bindings: Associates a list of `members`, or principals, with a `role`.
  4526  	// Optionally, may specify a `condition` that determines how and when the
  4527  	// `bindings` are applied. Each of the `bindings` must contain at least one
  4528  	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
  4529  	// up to 250 of these principals can be Google groups. Each occurrence of a
  4530  	// principal counts towards these limits. For example, if the `bindings` grant
  4531  	// 50 different roles to `user:alice@example.com`, and not to any other
  4532  	// principal, then you can add another 1,450 principals to the `bindings` in
  4533  	// the `Policy`.
  4534  	Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
  4535  	// Etag: `etag` is used for optimistic concurrency control as a way to help
  4536  	// prevent simultaneous updates of a policy from overwriting each other. It is
  4537  	// strongly suggested that systems make use of the `etag` in the
  4538  	// read-modify-write cycle to perform policy updates in order to avoid race
  4539  	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
  4540  	// systems are expected to put that etag in the request to `setIamPolicy` to
  4541  	// ensure that their change will be applied to the same version of the policy.
  4542  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  4543  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  4544  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  4545  	// the conditions in the version `3` policy are lost.
  4546  	Etag string `json:"etag,omitempty"`
  4547  	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
  4548  	// `3`. Requests that specify an invalid value are rejected. Any operation that
  4549  	// affects conditional role bindings must specify version `3`. This requirement
  4550  	// applies to the following operations: * Getting a policy that includes a
  4551  	// conditional role binding * Adding a conditional role binding to a policy *
  4552  	// Changing a conditional role binding in a policy * Removing any role binding,
  4553  	// with or without a condition, from a policy that includes conditions
  4554  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  4555  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  4556  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  4557  	// the conditions in the version `3` policy are lost. If a policy does not
  4558  	// include any conditions, operations on that policy may specify any valid
  4559  	// version or leave the field unset. To learn which resources support
  4560  	// conditions in their IAM policies, see the IAM documentation
  4561  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  4562  	Version int64 `json:"version,omitempty"`
  4563  
  4564  	// ServerResponse contains the HTTP response code and headers from the server.
  4565  	googleapi.ServerResponse `json:"-"`
  4566  	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
  4567  	// unconditionally include in API requests. By default, fields with empty or
  4568  	// default values are omitted from API requests. See
  4569  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4570  	// details.
  4571  	ForceSendFields []string `json:"-"`
  4572  	// NullFields is a list of field names (e.g. "AuditConfigs") to include in API
  4573  	// requests with the JSON null value. By default, fields with empty values are
  4574  	// omitted from API requests. See
  4575  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4576  	NullFields []string `json:"-"`
  4577  }
  4578  
  4579  func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
  4580  	type NoMethod GoogleIamV1Policy
  4581  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4582  }
  4583  
  4584  // GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy` method.
  4585  type GoogleIamV1SetIamPolicyRequest struct {
  4586  	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
  4587  	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
  4588  	// policy but certain Google Cloud services (such as Projects) might reject
  4589  	// them.
  4590  	Policy *GoogleIamV1Policy `json:"policy,omitempty"`
  4591  	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to
  4592  	// modify. Only the fields in the mask will be modified. If no mask is
  4593  	// provided, the following default mask is used: `paths: "bindings, etag"
  4594  	UpdateMask string `json:"updateMask,omitempty"`
  4595  	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
  4596  	// include in API requests. By default, fields with empty or default values are
  4597  	// omitted from API requests. See
  4598  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4599  	// details.
  4600  	ForceSendFields []string `json:"-"`
  4601  	// NullFields is a list of field names (e.g. "Policy") to include in API
  4602  	// requests with the JSON null value. By default, fields with empty values are
  4603  	// omitted from API requests. See
  4604  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4605  	NullFields []string `json:"-"`
  4606  }
  4607  
  4608  func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  4609  	type NoMethod GoogleIamV1SetIamPolicyRequest
  4610  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4611  }
  4612  
  4613  // GoogleIamV1TestIamPermissionsRequest: Request message for
  4614  // `TestIamPermissions` method.
  4615  type GoogleIamV1TestIamPermissionsRequest struct {
  4616  	// Permissions: The set of permissions to check for the `resource`. Permissions
  4617  	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
  4618  	// information see IAM Overview
  4619  	// (https://cloud.google.com/iam/docs/overview#permissions).
  4620  	Permissions []string `json:"permissions,omitempty"`
  4621  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  4622  	// unconditionally include in API requests. By default, fields with empty or
  4623  	// default values are omitted from API requests. See
  4624  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4625  	// details.
  4626  	ForceSendFields []string `json:"-"`
  4627  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  4628  	// requests with the JSON null value. By default, fields with empty values are
  4629  	// omitted from API requests. See
  4630  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4631  	NullFields []string `json:"-"`
  4632  }
  4633  
  4634  func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
  4635  	type NoMethod GoogleIamV1TestIamPermissionsRequest
  4636  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4637  }
  4638  
  4639  // GoogleIamV1TestIamPermissionsResponse: Response message for
  4640  // `TestIamPermissions` method.
  4641  type GoogleIamV1TestIamPermissionsResponse struct {
  4642  	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
  4643  	// caller is allowed.
  4644  	Permissions []string `json:"permissions,omitempty"`
  4645  
  4646  	// ServerResponse contains the HTTP response code and headers from the server.
  4647  	googleapi.ServerResponse `json:"-"`
  4648  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  4649  	// unconditionally include in API requests. By default, fields with empty or
  4650  	// default values are omitted from API requests. See
  4651  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4652  	// details.
  4653  	ForceSendFields []string `json:"-"`
  4654  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  4655  	// requests with the JSON null value. By default, fields with empty values are
  4656  	// omitted from API requests. See
  4657  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4658  	NullFields []string `json:"-"`
  4659  }
  4660  
  4661  func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
  4662  	type NoMethod GoogleIamV1TestIamPermissionsResponse
  4663  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4664  }
  4665  
  4666  // GoogleLongrunningListOperationsResponse: The response message for
  4667  // Operations.ListOperations.
  4668  type GoogleLongrunningListOperationsResponse struct {
  4669  	// NextPageToken: The standard List next-page token.
  4670  	NextPageToken string `json:"nextPageToken,omitempty"`
  4671  	// Operations: A list of operations that matches the specified filter in the
  4672  	// request.
  4673  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
  4674  
  4675  	// ServerResponse contains the HTTP response code and headers from the server.
  4676  	googleapi.ServerResponse `json:"-"`
  4677  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  4678  	// unconditionally include in API requests. By default, fields with empty or
  4679  	// default values are omitted from API requests. See
  4680  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4681  	// details.
  4682  	ForceSendFields []string `json:"-"`
  4683  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  4684  	// requests with the JSON null value. By default, fields with empty values are
  4685  	// omitted from API requests. See
  4686  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4687  	NullFields []string `json:"-"`
  4688  }
  4689  
  4690  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
  4691  	type NoMethod GoogleLongrunningListOperationsResponse
  4692  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4693  }
  4694  
  4695  // GoogleLongrunningOperation: This resource represents a long-running
  4696  // operation that is the result of a network API call.
  4697  type GoogleLongrunningOperation struct {
  4698  	// Done: If the value is `false`, it means the operation is still in progress.
  4699  	// If `true`, the operation is completed, and either `error` or `response` is
  4700  	// available.
  4701  	Done bool `json:"done,omitempty"`
  4702  	// Error: The error result of the operation in case of failure or cancellation.
  4703  	Error *GoogleRpcStatus `json:"error,omitempty"`
  4704  	// Metadata: Service-specific metadata associated with the operation. It
  4705  	// typically contains progress information and common metadata such as create
  4706  	// time. Some services might not provide such metadata. Any method that returns
  4707  	// a long-running operation should document the metadata type, if any.
  4708  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  4709  	// Name: The server-assigned name, which is only unique within the same service
  4710  	// that originally returns it. If you use the default HTTP mapping, the `name`
  4711  	// should be a resource name ending with `operations/{unique_id}`.
  4712  	Name string `json:"name,omitempty"`
  4713  	// Response: The normal, successful response of the operation. If the original
  4714  	// method returns no data on success, such as `Delete`, the response is
  4715  	// `google.protobuf.Empty`. If the original method is standard
  4716  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  4717  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  4718  	// original method name. For example, if the original method name is
  4719  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  4720  	Response googleapi.RawMessage `json:"response,omitempty"`
  4721  
  4722  	// ServerResponse contains the HTTP response code and headers from the server.
  4723  	googleapi.ServerResponse `json:"-"`
  4724  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  4725  	// include in API requests. By default, fields with empty or default values are
  4726  	// omitted from API requests. See
  4727  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4728  	// details.
  4729  	ForceSendFields []string `json:"-"`
  4730  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  4731  	// with the JSON null value. By default, fields with empty values are omitted
  4732  	// from API requests. See
  4733  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4734  	NullFields []string `json:"-"`
  4735  }
  4736  
  4737  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
  4738  	type NoMethod GoogleLongrunningOperation
  4739  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4740  }
  4741  
  4742  // GoogleLongrunningWaitOperationRequest: The request message for
  4743  // Operations.WaitOperation.
  4744  type GoogleLongrunningWaitOperationRequest struct {
  4745  	// Timeout: The maximum duration to wait before timing out. If left blank, the
  4746  	// wait will be at most the time permitted by the underlying HTTP/RPC protocol.
  4747  	// If RPC context deadline is also specified, the shorter one will be used.
  4748  	Timeout string `json:"timeout,omitempty"`
  4749  	// ForceSendFields is a list of field names (e.g. "Timeout") to unconditionally
  4750  	// include in API requests. By default, fields with empty or default values are
  4751  	// omitted from API requests. See
  4752  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4753  	// details.
  4754  	ForceSendFields []string `json:"-"`
  4755  	// NullFields is a list of field names (e.g. "Timeout") to include in API
  4756  	// requests with the JSON null value. By default, fields with empty values are
  4757  	// omitted from API requests. See
  4758  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4759  	NullFields []string `json:"-"`
  4760  }
  4761  
  4762  func (s *GoogleLongrunningWaitOperationRequest) MarshalJSON() ([]byte, error) {
  4763  	type NoMethod GoogleLongrunningWaitOperationRequest
  4764  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4765  }
  4766  
  4767  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
  4768  // defining duplicated empty messages in your APIs. A typical example is to use
  4769  // it as the request or the response type of an API method. For instance:
  4770  // service Foo { rpc Bar(google.protobuf.Empty) returns
  4771  // (google.protobuf.Empty); }
  4772  type GoogleProtobufEmpty struct {
  4773  	// ServerResponse contains the HTTP response code and headers from the server.
  4774  	googleapi.ServerResponse `json:"-"`
  4775  }
  4776  
  4777  // GoogleRpcStatus: The `Status` type defines a logical error model that is
  4778  // suitable for different programming environments, including REST APIs and RPC
  4779  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
  4780  // contains three pieces of data: error code, error message, and error details.
  4781  // You can find out more about this error model and how to work with it in the
  4782  // API Design Guide (https://cloud.google.com/apis/design/errors).
  4783  type GoogleRpcStatus struct {
  4784  	// Code: The status code, which should be an enum value of google.rpc.Code.
  4785  	Code int64 `json:"code,omitempty"`
  4786  	// Details: A list of messages that carry the error details. There is a common
  4787  	// set of message types for APIs to use.
  4788  	Details []googleapi.RawMessage `json:"details,omitempty"`
  4789  	// Message: A developer-facing error message, which should be in English. Any
  4790  	// user-facing error message should be localized and sent in the
  4791  	// google.rpc.Status.details field, or localized by the client.
  4792  	Message string `json:"message,omitempty"`
  4793  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  4794  	// include in API requests. By default, fields with empty or default values are
  4795  	// omitted from API requests. See
  4796  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4797  	// details.
  4798  	ForceSendFields []string `json:"-"`
  4799  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  4800  	// with the JSON null value. By default, fields with empty values are omitted
  4801  	// from API requests. See
  4802  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4803  	NullFields []string `json:"-"`
  4804  }
  4805  
  4806  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
  4807  	type NoMethod GoogleRpcStatus
  4808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4809  }
  4810  
  4811  // GoogleTypeExpr: Represents a textual expression in the Common Expression
  4812  // Language (CEL) syntax. CEL is a C-like expression language. The syntax and
  4813  // semantics of CEL are documented at https://github.com/google/cel-spec.
  4814  // Example (Comparison): title: "Summary size limit" description: "Determines
  4815  // if a summary is less than 100 chars" expression: "document.summary.size() <
  4816  // 100" Example (Equality): title: "Requestor is owner" description:
  4817  // "Determines if requestor is the document owner" expression: "document.owner
  4818  // == request.auth.claims.email" Example (Logic): title: "Public documents"
  4819  // description: "Determine whether the document should be publicly visible"
  4820  // expression: "document.type != 'private' && document.type != 'internal'"
  4821  // Example (Data Manipulation): title: "Notification string" description:
  4822  // "Create a notification string with a timestamp." expression: "'New message
  4823  // received at ' + string(document.create_time)" The exact variables and
  4824  // functions that may be referenced within an expression are determined by the
  4825  // service that evaluates it. See the service documentation for additional
  4826  // information.
  4827  type GoogleTypeExpr struct {
  4828  	// Description: Optional. Description of the expression. This is a longer text
  4829  	// which describes the expression, e.g. when hovered over it in a UI.
  4830  	Description string `json:"description,omitempty"`
  4831  	// Expression: Textual representation of an expression in Common Expression
  4832  	// Language syntax.
  4833  	Expression string `json:"expression,omitempty"`
  4834  	// Location: Optional. String indicating the location of the expression for
  4835  	// error reporting, e.g. a file name and a position in the file.
  4836  	Location string `json:"location,omitempty"`
  4837  	// Title: Optional. Title for the expression, i.e. a short string describing
  4838  	// its purpose. This can be used e.g. in UIs which allow to enter the
  4839  	// expression.
  4840  	Title string `json:"title,omitempty"`
  4841  	// ForceSendFields is a list of field names (e.g. "Description") to
  4842  	// unconditionally include in API requests. By default, fields with empty or
  4843  	// default values are omitted from API requests. See
  4844  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4845  	// details.
  4846  	ForceSendFields []string `json:"-"`
  4847  	// NullFields is a list of field names (e.g. "Description") to include in API
  4848  	// requests with the JSON null value. By default, fields with empty values are
  4849  	// omitted from API requests. See
  4850  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4851  	NullFields []string `json:"-"`
  4852  }
  4853  
  4854  func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
  4855  	type NoMethod GoogleTypeExpr
  4856  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4857  }
  4858  
  4859  // Proto2BridgeMessageSet: This is proto2's version of MessageSet.
  4860  type Proto2BridgeMessageSet struct {
  4861  }
  4862  
  4863  // UtilStatusProto: Wire-format for a Status object
  4864  type UtilStatusProto struct {
  4865  	// CanonicalCode: The canonical error code (see codes.proto) that most closely
  4866  	// corresponds to this status. This may be missing, and in the common case of
  4867  	// the generic space, it definitely will be.
  4868  	CanonicalCode int64 `json:"canonicalCode,omitempty"`
  4869  	// Code: Numeric code drawn from the space specified below. Often, this is the
  4870  	// canonical error space, and code is drawn from google3/util/task/codes.proto
  4871  	Code int64 `json:"code,omitempty"`
  4872  	// Message: Detail message
  4873  	Message string `json:"message,omitempty"`
  4874  	// MessageSet: message_set associates an arbitrary proto message with the
  4875  	// status.
  4876  	MessageSet *Proto2BridgeMessageSet `json:"messageSet,omitempty"`
  4877  	// Space: The following are usually only present when code != 0 Space to which
  4878  	// this status belongs
  4879  	Space string `json:"space,omitempty"`
  4880  	// ForceSendFields is a list of field names (e.g. "CanonicalCode") to
  4881  	// unconditionally include in API requests. By default, fields with empty or
  4882  	// default values are omitted from API requests. See
  4883  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4884  	// details.
  4885  	ForceSendFields []string `json:"-"`
  4886  	// NullFields is a list of field names (e.g. "CanonicalCode") to include in API
  4887  	// requests with the JSON null value. By default, fields with empty values are
  4888  	// omitted from API requests. See
  4889  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4890  	NullFields []string `json:"-"`
  4891  }
  4892  
  4893  func (s *UtilStatusProto) MarshalJSON() ([]byte, error) {
  4894  	type NoMethod UtilStatusProto
  4895  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4896  }
  4897  
  4898  type ProjectsLocationsExportImageCall struct {
  4899  	s                                  *Service
  4900  	name                               string
  4901  	googlecloudrunv2exportimagerequest *GoogleCloudRunV2ExportImageRequest
  4902  	urlParams_                         gensupport.URLParams
  4903  	ctx_                               context.Context
  4904  	header_                            http.Header
  4905  }
  4906  
  4907  // ExportImage: Export image for a given resource.
  4908  //
  4909  //   - name: The name of the resource of which image metadata should be exported.
  4910  //     Format:
  4911  //     `projects/{project_id_or_number}/locations/{location}/services/{service}/re
  4912  //     visions/{revision}` for Revision
  4913  //     `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions
  4914  //     /{execution}` for Execution.
  4915  func (r *ProjectsLocationsService) ExportImage(name string, googlecloudrunv2exportimagerequest *GoogleCloudRunV2ExportImageRequest) *ProjectsLocationsExportImageCall {
  4916  	c := &ProjectsLocationsExportImageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4917  	c.name = name
  4918  	c.googlecloudrunv2exportimagerequest = googlecloudrunv2exportimagerequest
  4919  	return c
  4920  }
  4921  
  4922  // Fields allows partial responses to be retrieved. See
  4923  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4924  // details.
  4925  func (c *ProjectsLocationsExportImageCall) Fields(s ...googleapi.Field) *ProjectsLocationsExportImageCall {
  4926  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4927  	return c
  4928  }
  4929  
  4930  // Context sets the context to be used in this call's Do method.
  4931  func (c *ProjectsLocationsExportImageCall) Context(ctx context.Context) *ProjectsLocationsExportImageCall {
  4932  	c.ctx_ = ctx
  4933  	return c
  4934  }
  4935  
  4936  // Header returns a http.Header that can be modified by the caller to add
  4937  // headers to the request.
  4938  func (c *ProjectsLocationsExportImageCall) Header() http.Header {
  4939  	if c.header_ == nil {
  4940  		c.header_ = make(http.Header)
  4941  	}
  4942  	return c.header_
  4943  }
  4944  
  4945  func (c *ProjectsLocationsExportImageCall) doRequest(alt string) (*http.Response, error) {
  4946  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4947  	var body io.Reader = nil
  4948  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrunv2exportimagerequest)
  4949  	if err != nil {
  4950  		return nil, err
  4951  	}
  4952  	c.urlParams_.Set("alt", alt)
  4953  	c.urlParams_.Set("prettyPrint", "false")
  4954  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:exportImage")
  4955  	urls += "?" + c.urlParams_.Encode()
  4956  	req, err := http.NewRequest("POST", urls, body)
  4957  	if err != nil {
  4958  		return nil, err
  4959  	}
  4960  	req.Header = reqHeaders
  4961  	googleapi.Expand(req.URL, map[string]string{
  4962  		"name": c.name,
  4963  	})
  4964  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4965  }
  4966  
  4967  // Do executes the "run.projects.locations.exportImage" call.
  4968  // Any non-2xx status code is an error. Response headers are in either
  4969  // *GoogleCloudRunV2ExportImageResponse.ServerResponse.Header or (if a response
  4970  // was returned at all) in error.(*googleapi.Error).Header. Use
  4971  // googleapi.IsNotModified to check whether the returned error was because
  4972  // http.StatusNotModified was returned.
  4973  func (c *ProjectsLocationsExportImageCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2ExportImageResponse, error) {
  4974  	gensupport.SetOptions(c.urlParams_, opts...)
  4975  	res, err := c.doRequest("json")
  4976  	if res != nil && res.StatusCode == http.StatusNotModified {
  4977  		if res.Body != nil {
  4978  			res.Body.Close()
  4979  		}
  4980  		return nil, gensupport.WrapError(&googleapi.Error{
  4981  			Code:   res.StatusCode,
  4982  			Header: res.Header,
  4983  		})
  4984  	}
  4985  	if err != nil {
  4986  		return nil, err
  4987  	}
  4988  	defer googleapi.CloseBody(res)
  4989  	if err := googleapi.CheckResponse(res); err != nil {
  4990  		return nil, gensupport.WrapError(err)
  4991  	}
  4992  	ret := &GoogleCloudRunV2ExportImageResponse{
  4993  		ServerResponse: googleapi.ServerResponse{
  4994  			Header:         res.Header,
  4995  			HTTPStatusCode: res.StatusCode,
  4996  		},
  4997  	}
  4998  	target := &ret
  4999  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5000  		return nil, err
  5001  	}
  5002  	return ret, nil
  5003  }
  5004  
  5005  type ProjectsLocationsExportImageMetadataCall struct {
  5006  	s            *Service
  5007  	name         string
  5008  	urlParams_   gensupport.URLParams
  5009  	ifNoneMatch_ string
  5010  	ctx_         context.Context
  5011  	header_      http.Header
  5012  }
  5013  
  5014  // ExportImageMetadata: Export image metadata for a given resource.
  5015  //
  5016  //   - name: The name of the resource of which image metadata should be exported.
  5017  //     Format:
  5018  //     `projects/{project_id_or_number}/locations/{location}/services/{service}/re
  5019  //     visions/{revision}` for Revision
  5020  //     `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions
  5021  //     /{execution}` for Execution.
  5022  func (r *ProjectsLocationsService) ExportImageMetadata(name string) *ProjectsLocationsExportImageMetadataCall {
  5023  	c := &ProjectsLocationsExportImageMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5024  	c.name = name
  5025  	return c
  5026  }
  5027  
  5028  // Fields allows partial responses to be retrieved. See
  5029  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5030  // details.
  5031  func (c *ProjectsLocationsExportImageMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsExportImageMetadataCall {
  5032  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5033  	return c
  5034  }
  5035  
  5036  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5037  // object's ETag matches the given value. This is useful for getting updates
  5038  // only after the object has changed since the last request.
  5039  func (c *ProjectsLocationsExportImageMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsExportImageMetadataCall {
  5040  	c.ifNoneMatch_ = entityTag
  5041  	return c
  5042  }
  5043  
  5044  // Context sets the context to be used in this call's Do method.
  5045  func (c *ProjectsLocationsExportImageMetadataCall) Context(ctx context.Context) *ProjectsLocationsExportImageMetadataCall {
  5046  	c.ctx_ = ctx
  5047  	return c
  5048  }
  5049  
  5050  // Header returns a http.Header that can be modified by the caller to add
  5051  // headers to the request.
  5052  func (c *ProjectsLocationsExportImageMetadataCall) Header() http.Header {
  5053  	if c.header_ == nil {
  5054  		c.header_ = make(http.Header)
  5055  	}
  5056  	return c.header_
  5057  }
  5058  
  5059  func (c *ProjectsLocationsExportImageMetadataCall) doRequest(alt string) (*http.Response, error) {
  5060  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5061  	if c.ifNoneMatch_ != "" {
  5062  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5063  	}
  5064  	var body io.Reader = nil
  5065  	c.urlParams_.Set("alt", alt)
  5066  	c.urlParams_.Set("prettyPrint", "false")
  5067  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:exportImageMetadata")
  5068  	urls += "?" + c.urlParams_.Encode()
  5069  	req, err := http.NewRequest("GET", urls, body)
  5070  	if err != nil {
  5071  		return nil, err
  5072  	}
  5073  	req.Header = reqHeaders
  5074  	googleapi.Expand(req.URL, map[string]string{
  5075  		"name": c.name,
  5076  	})
  5077  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5078  }
  5079  
  5080  // Do executes the "run.projects.locations.exportImageMetadata" call.
  5081  // Any non-2xx status code is an error. Response headers are in either
  5082  // *GoogleCloudRunV2Metadata.ServerResponse.Header or (if a response was
  5083  // returned at all) in error.(*googleapi.Error).Header. Use
  5084  // googleapi.IsNotModified to check whether the returned error was because
  5085  // http.StatusNotModified was returned.
  5086  func (c *ProjectsLocationsExportImageMetadataCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2Metadata, error) {
  5087  	gensupport.SetOptions(c.urlParams_, opts...)
  5088  	res, err := c.doRequest("json")
  5089  	if res != nil && res.StatusCode == http.StatusNotModified {
  5090  		if res.Body != nil {
  5091  			res.Body.Close()
  5092  		}
  5093  		return nil, gensupport.WrapError(&googleapi.Error{
  5094  			Code:   res.StatusCode,
  5095  			Header: res.Header,
  5096  		})
  5097  	}
  5098  	if err != nil {
  5099  		return nil, err
  5100  	}
  5101  	defer googleapi.CloseBody(res)
  5102  	if err := googleapi.CheckResponse(res); err != nil {
  5103  		return nil, gensupport.WrapError(err)
  5104  	}
  5105  	ret := &GoogleCloudRunV2Metadata{
  5106  		ServerResponse: googleapi.ServerResponse{
  5107  			Header:         res.Header,
  5108  			HTTPStatusCode: res.StatusCode,
  5109  		},
  5110  	}
  5111  	target := &ret
  5112  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5113  		return nil, err
  5114  	}
  5115  	return ret, nil
  5116  }
  5117  
  5118  type ProjectsLocationsExportMetadataCall struct {
  5119  	s            *Service
  5120  	name         string
  5121  	urlParams_   gensupport.URLParams
  5122  	ifNoneMatch_ string
  5123  	ctx_         context.Context
  5124  	header_      http.Header
  5125  }
  5126  
  5127  // ExportMetadata: Export generated customer metadata for a given resource.
  5128  //
  5129  //   - name: The name of the resource of which metadata should be exported.
  5130  //     Format:
  5131  //     `projects/{project_id_or_number}/locations/{location}/services/{service}`
  5132  //     for Service
  5133  //     `projects/{project_id_or_number}/locations/{location}/services/{service}/re
  5134  //     visions/{revision}` for Revision
  5135  //     `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions
  5136  //     /{execution}` for Execution.
  5137  func (r *ProjectsLocationsService) ExportMetadata(name string) *ProjectsLocationsExportMetadataCall {
  5138  	c := &ProjectsLocationsExportMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5139  	c.name = name
  5140  	return c
  5141  }
  5142  
  5143  // Fields allows partial responses to be retrieved. See
  5144  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5145  // details.
  5146  func (c *ProjectsLocationsExportMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsExportMetadataCall {
  5147  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5148  	return c
  5149  }
  5150  
  5151  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5152  // object's ETag matches the given value. This is useful for getting updates
  5153  // only after the object has changed since the last request.
  5154  func (c *ProjectsLocationsExportMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsExportMetadataCall {
  5155  	c.ifNoneMatch_ = entityTag
  5156  	return c
  5157  }
  5158  
  5159  // Context sets the context to be used in this call's Do method.
  5160  func (c *ProjectsLocationsExportMetadataCall) Context(ctx context.Context) *ProjectsLocationsExportMetadataCall {
  5161  	c.ctx_ = ctx
  5162  	return c
  5163  }
  5164  
  5165  // Header returns a http.Header that can be modified by the caller to add
  5166  // headers to the request.
  5167  func (c *ProjectsLocationsExportMetadataCall) Header() http.Header {
  5168  	if c.header_ == nil {
  5169  		c.header_ = make(http.Header)
  5170  	}
  5171  	return c.header_
  5172  }
  5173  
  5174  func (c *ProjectsLocationsExportMetadataCall) doRequest(alt string) (*http.Response, error) {
  5175  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5176  	if c.ifNoneMatch_ != "" {
  5177  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5178  	}
  5179  	var body io.Reader = nil
  5180  	c.urlParams_.Set("alt", alt)
  5181  	c.urlParams_.Set("prettyPrint", "false")
  5182  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:exportMetadata")
  5183  	urls += "?" + c.urlParams_.Encode()
  5184  	req, err := http.NewRequest("GET", urls, body)
  5185  	if err != nil {
  5186  		return nil, err
  5187  	}
  5188  	req.Header = reqHeaders
  5189  	googleapi.Expand(req.URL, map[string]string{
  5190  		"name": c.name,
  5191  	})
  5192  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5193  }
  5194  
  5195  // Do executes the "run.projects.locations.exportMetadata" call.
  5196  // Any non-2xx status code is an error. Response headers are in either
  5197  // *GoogleCloudRunV2Metadata.ServerResponse.Header or (if a response was
  5198  // returned at all) in error.(*googleapi.Error).Header. Use
  5199  // googleapi.IsNotModified to check whether the returned error was because
  5200  // http.StatusNotModified was returned.
  5201  func (c *ProjectsLocationsExportMetadataCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2Metadata, error) {
  5202  	gensupport.SetOptions(c.urlParams_, opts...)
  5203  	res, err := c.doRequest("json")
  5204  	if res != nil && res.StatusCode == http.StatusNotModified {
  5205  		if res.Body != nil {
  5206  			res.Body.Close()
  5207  		}
  5208  		return nil, gensupport.WrapError(&googleapi.Error{
  5209  			Code:   res.StatusCode,
  5210  			Header: res.Header,
  5211  		})
  5212  	}
  5213  	if err != nil {
  5214  		return nil, err
  5215  	}
  5216  	defer googleapi.CloseBody(res)
  5217  	if err := googleapi.CheckResponse(res); err != nil {
  5218  		return nil, gensupport.WrapError(err)
  5219  	}
  5220  	ret := &GoogleCloudRunV2Metadata{
  5221  		ServerResponse: googleapi.ServerResponse{
  5222  			Header:         res.Header,
  5223  			HTTPStatusCode: res.StatusCode,
  5224  		},
  5225  	}
  5226  	target := &ret
  5227  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5228  		return nil, err
  5229  	}
  5230  	return ret, nil
  5231  }
  5232  
  5233  type ProjectsLocationsJobsCreateCall struct {
  5234  	s                   *Service
  5235  	parent              string
  5236  	googlecloudrunv2job *GoogleCloudRunV2Job
  5237  	urlParams_          gensupport.URLParams
  5238  	ctx_                context.Context
  5239  	header_             http.Header
  5240  }
  5241  
  5242  // Create: Creates a Job.
  5243  //
  5244  //   - parent: The location and project in which this Job should be created.
  5245  //     Format: projects/{project}/locations/{location}, where {project} can be
  5246  //     project id or number.
  5247  func (r *ProjectsLocationsJobsService) Create(parent string, googlecloudrunv2job *GoogleCloudRunV2Job) *ProjectsLocationsJobsCreateCall {
  5248  	c := &ProjectsLocationsJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5249  	c.parent = parent
  5250  	c.googlecloudrunv2job = googlecloudrunv2job
  5251  	return c
  5252  }
  5253  
  5254  // JobId sets the optional parameter "jobId": Required. The unique identifier
  5255  // for the Job. The name of the job becomes {parent}/jobs/{job_id}.
  5256  func (c *ProjectsLocationsJobsCreateCall) JobId(jobId string) *ProjectsLocationsJobsCreateCall {
  5257  	c.urlParams_.Set("jobId", jobId)
  5258  	return c
  5259  }
  5260  
  5261  // ValidateOnly sets the optional parameter "validateOnly": Indicates that the
  5262  // request should be validated and default values populated, without persisting
  5263  // the request or creating any resources.
  5264  func (c *ProjectsLocationsJobsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsJobsCreateCall {
  5265  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  5266  	return c
  5267  }
  5268  
  5269  // Fields allows partial responses to be retrieved. See
  5270  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5271  // details.
  5272  func (c *ProjectsLocationsJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsCreateCall {
  5273  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5274  	return c
  5275  }
  5276  
  5277  // Context sets the context to be used in this call's Do method.
  5278  func (c *ProjectsLocationsJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsJobsCreateCall {
  5279  	c.ctx_ = ctx
  5280  	return c
  5281  }
  5282  
  5283  // Header returns a http.Header that can be modified by the caller to add
  5284  // headers to the request.
  5285  func (c *ProjectsLocationsJobsCreateCall) Header() http.Header {
  5286  	if c.header_ == nil {
  5287  		c.header_ = make(http.Header)
  5288  	}
  5289  	return c.header_
  5290  }
  5291  
  5292  func (c *ProjectsLocationsJobsCreateCall) doRequest(alt string) (*http.Response, error) {
  5293  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5294  	var body io.Reader = nil
  5295  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrunv2job)
  5296  	if err != nil {
  5297  		return nil, err
  5298  	}
  5299  	c.urlParams_.Set("alt", alt)
  5300  	c.urlParams_.Set("prettyPrint", "false")
  5301  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobs")
  5302  	urls += "?" + c.urlParams_.Encode()
  5303  	req, err := http.NewRequest("POST", urls, body)
  5304  	if err != nil {
  5305  		return nil, err
  5306  	}
  5307  	req.Header = reqHeaders
  5308  	googleapi.Expand(req.URL, map[string]string{
  5309  		"parent": c.parent,
  5310  	})
  5311  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5312  }
  5313  
  5314  // Do executes the "run.projects.locations.jobs.create" call.
  5315  // Any non-2xx status code is an error. Response headers are in either
  5316  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  5317  // returned at all) in error.(*googleapi.Error).Header. Use
  5318  // googleapi.IsNotModified to check whether the returned error was because
  5319  // http.StatusNotModified was returned.
  5320  func (c *ProjectsLocationsJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  5321  	gensupport.SetOptions(c.urlParams_, opts...)
  5322  	res, err := c.doRequest("json")
  5323  	if res != nil && res.StatusCode == http.StatusNotModified {
  5324  		if res.Body != nil {
  5325  			res.Body.Close()
  5326  		}
  5327  		return nil, gensupport.WrapError(&googleapi.Error{
  5328  			Code:   res.StatusCode,
  5329  			Header: res.Header,
  5330  		})
  5331  	}
  5332  	if err != nil {
  5333  		return nil, err
  5334  	}
  5335  	defer googleapi.CloseBody(res)
  5336  	if err := googleapi.CheckResponse(res); err != nil {
  5337  		return nil, gensupport.WrapError(err)
  5338  	}
  5339  	ret := &GoogleLongrunningOperation{
  5340  		ServerResponse: googleapi.ServerResponse{
  5341  			Header:         res.Header,
  5342  			HTTPStatusCode: res.StatusCode,
  5343  		},
  5344  	}
  5345  	target := &ret
  5346  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5347  		return nil, err
  5348  	}
  5349  	return ret, nil
  5350  }
  5351  
  5352  type ProjectsLocationsJobsDeleteCall struct {
  5353  	s          *Service
  5354  	name       string
  5355  	urlParams_ gensupport.URLParams
  5356  	ctx_       context.Context
  5357  	header_    http.Header
  5358  }
  5359  
  5360  // Delete: Deletes a Job.
  5361  //
  5362  //   - name: The full name of the Job. Format:
  5363  //     projects/{project}/locations/{location}/jobs/{job}, where {project} can be
  5364  //     project id or number.
  5365  func (r *ProjectsLocationsJobsService) Delete(name string) *ProjectsLocationsJobsDeleteCall {
  5366  	c := &ProjectsLocationsJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5367  	c.name = name
  5368  	return c
  5369  }
  5370  
  5371  // Etag sets the optional parameter "etag": A system-generated fingerprint for
  5372  // this version of the resource. May be used to detect modification conflict
  5373  // during updates.
  5374  func (c *ProjectsLocationsJobsDeleteCall) Etag(etag string) *ProjectsLocationsJobsDeleteCall {
  5375  	c.urlParams_.Set("etag", etag)
  5376  	return c
  5377  }
  5378  
  5379  // ValidateOnly sets the optional parameter "validateOnly": Indicates that the
  5380  // request should be validated without actually deleting any resources.
  5381  func (c *ProjectsLocationsJobsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsJobsDeleteCall {
  5382  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  5383  	return c
  5384  }
  5385  
  5386  // Fields allows partial responses to be retrieved. See
  5387  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5388  // details.
  5389  func (c *ProjectsLocationsJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsDeleteCall {
  5390  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5391  	return c
  5392  }
  5393  
  5394  // Context sets the context to be used in this call's Do method.
  5395  func (c *ProjectsLocationsJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsJobsDeleteCall {
  5396  	c.ctx_ = ctx
  5397  	return c
  5398  }
  5399  
  5400  // Header returns a http.Header that can be modified by the caller to add
  5401  // headers to the request.
  5402  func (c *ProjectsLocationsJobsDeleteCall) Header() http.Header {
  5403  	if c.header_ == nil {
  5404  		c.header_ = make(http.Header)
  5405  	}
  5406  	return c.header_
  5407  }
  5408  
  5409  func (c *ProjectsLocationsJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
  5410  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5411  	var body io.Reader = nil
  5412  	c.urlParams_.Set("alt", alt)
  5413  	c.urlParams_.Set("prettyPrint", "false")
  5414  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  5415  	urls += "?" + c.urlParams_.Encode()
  5416  	req, err := http.NewRequest("DELETE", urls, body)
  5417  	if err != nil {
  5418  		return nil, err
  5419  	}
  5420  	req.Header = reqHeaders
  5421  	googleapi.Expand(req.URL, map[string]string{
  5422  		"name": c.name,
  5423  	})
  5424  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5425  }
  5426  
  5427  // Do executes the "run.projects.locations.jobs.delete" call.
  5428  // Any non-2xx status code is an error. Response headers are in either
  5429  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  5430  // returned at all) in error.(*googleapi.Error).Header. Use
  5431  // googleapi.IsNotModified to check whether the returned error was because
  5432  // http.StatusNotModified was returned.
  5433  func (c *ProjectsLocationsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  5434  	gensupport.SetOptions(c.urlParams_, opts...)
  5435  	res, err := c.doRequest("json")
  5436  	if res != nil && res.StatusCode == http.StatusNotModified {
  5437  		if res.Body != nil {
  5438  			res.Body.Close()
  5439  		}
  5440  		return nil, gensupport.WrapError(&googleapi.Error{
  5441  			Code:   res.StatusCode,
  5442  			Header: res.Header,
  5443  		})
  5444  	}
  5445  	if err != nil {
  5446  		return nil, err
  5447  	}
  5448  	defer googleapi.CloseBody(res)
  5449  	if err := googleapi.CheckResponse(res); err != nil {
  5450  		return nil, gensupport.WrapError(err)
  5451  	}
  5452  	ret := &GoogleLongrunningOperation{
  5453  		ServerResponse: googleapi.ServerResponse{
  5454  			Header:         res.Header,
  5455  			HTTPStatusCode: res.StatusCode,
  5456  		},
  5457  	}
  5458  	target := &ret
  5459  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5460  		return nil, err
  5461  	}
  5462  	return ret, nil
  5463  }
  5464  
  5465  type ProjectsLocationsJobsGetCall struct {
  5466  	s            *Service
  5467  	name         string
  5468  	urlParams_   gensupport.URLParams
  5469  	ifNoneMatch_ string
  5470  	ctx_         context.Context
  5471  	header_      http.Header
  5472  }
  5473  
  5474  // Get: Gets information about a Job.
  5475  //
  5476  //   - name: The full name of the Job. Format:
  5477  //     projects/{project}/locations/{location}/jobs/{job}, where {project} can be
  5478  //     project id or number.
  5479  func (r *ProjectsLocationsJobsService) Get(name string) *ProjectsLocationsJobsGetCall {
  5480  	c := &ProjectsLocationsJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5481  	c.name = name
  5482  	return c
  5483  }
  5484  
  5485  // Fields allows partial responses to be retrieved. See
  5486  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5487  // details.
  5488  func (c *ProjectsLocationsJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsGetCall {
  5489  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5490  	return c
  5491  }
  5492  
  5493  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5494  // object's ETag matches the given value. This is useful for getting updates
  5495  // only after the object has changed since the last request.
  5496  func (c *ProjectsLocationsJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsGetCall {
  5497  	c.ifNoneMatch_ = entityTag
  5498  	return c
  5499  }
  5500  
  5501  // Context sets the context to be used in this call's Do method.
  5502  func (c *ProjectsLocationsJobsGetCall) Context(ctx context.Context) *ProjectsLocationsJobsGetCall {
  5503  	c.ctx_ = ctx
  5504  	return c
  5505  }
  5506  
  5507  // Header returns a http.Header that can be modified by the caller to add
  5508  // headers to the request.
  5509  func (c *ProjectsLocationsJobsGetCall) Header() http.Header {
  5510  	if c.header_ == nil {
  5511  		c.header_ = make(http.Header)
  5512  	}
  5513  	return c.header_
  5514  }
  5515  
  5516  func (c *ProjectsLocationsJobsGetCall) doRequest(alt string) (*http.Response, error) {
  5517  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5518  	if c.ifNoneMatch_ != "" {
  5519  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5520  	}
  5521  	var body io.Reader = nil
  5522  	c.urlParams_.Set("alt", alt)
  5523  	c.urlParams_.Set("prettyPrint", "false")
  5524  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  5525  	urls += "?" + c.urlParams_.Encode()
  5526  	req, err := http.NewRequest("GET", urls, body)
  5527  	if err != nil {
  5528  		return nil, err
  5529  	}
  5530  	req.Header = reqHeaders
  5531  	googleapi.Expand(req.URL, map[string]string{
  5532  		"name": c.name,
  5533  	})
  5534  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5535  }
  5536  
  5537  // Do executes the "run.projects.locations.jobs.get" call.
  5538  // Any non-2xx status code is an error. Response headers are in either
  5539  // *GoogleCloudRunV2Job.ServerResponse.Header or (if a response was returned at
  5540  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5541  // check whether the returned error was because http.StatusNotModified was
  5542  // returned.
  5543  func (c *ProjectsLocationsJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2Job, error) {
  5544  	gensupport.SetOptions(c.urlParams_, opts...)
  5545  	res, err := c.doRequest("json")
  5546  	if res != nil && res.StatusCode == http.StatusNotModified {
  5547  		if res.Body != nil {
  5548  			res.Body.Close()
  5549  		}
  5550  		return nil, gensupport.WrapError(&googleapi.Error{
  5551  			Code:   res.StatusCode,
  5552  			Header: res.Header,
  5553  		})
  5554  	}
  5555  	if err != nil {
  5556  		return nil, err
  5557  	}
  5558  	defer googleapi.CloseBody(res)
  5559  	if err := googleapi.CheckResponse(res); err != nil {
  5560  		return nil, gensupport.WrapError(err)
  5561  	}
  5562  	ret := &GoogleCloudRunV2Job{
  5563  		ServerResponse: googleapi.ServerResponse{
  5564  			Header:         res.Header,
  5565  			HTTPStatusCode: res.StatusCode,
  5566  		},
  5567  	}
  5568  	target := &ret
  5569  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5570  		return nil, err
  5571  	}
  5572  	return ret, nil
  5573  }
  5574  
  5575  type ProjectsLocationsJobsGetIamPolicyCall struct {
  5576  	s            *Service
  5577  	resource     string
  5578  	urlParams_   gensupport.URLParams
  5579  	ifNoneMatch_ string
  5580  	ctx_         context.Context
  5581  	header_      http.Header
  5582  }
  5583  
  5584  // GetIamPolicy: Gets the IAM Access Control policy currently in effect for the
  5585  // given Job. This result does not include any inherited policies.
  5586  //
  5587  //   - resource: REQUIRED: The resource for which the policy is being requested.
  5588  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  5589  //     for the appropriate value for this field.
  5590  func (r *ProjectsLocationsJobsService) GetIamPolicy(resource string) *ProjectsLocationsJobsGetIamPolicyCall {
  5591  	c := &ProjectsLocationsJobsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5592  	c.resource = resource
  5593  	return c
  5594  }
  5595  
  5596  // OptionsRequestedPolicyVersion sets the optional parameter
  5597  // "options.requestedPolicyVersion": The maximum policy version that will be
  5598  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
  5599  // an invalid value will be rejected. Requests for policies with any
  5600  // conditional role bindings must specify version 3. Policies with no
  5601  // conditional role bindings may specify any valid value or leave the field
  5602  // unset. The policy in the response might use the policy version that you
  5603  // specified, or it might use a lower policy version. For example, if you
  5604  // specify version 3, but the policy has no conditional role bindings, the
  5605  // response uses version 1. To learn which resources support conditions in
  5606  // their IAM policies, see the IAM documentation
  5607  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  5608  func (c *ProjectsLocationsJobsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsJobsGetIamPolicyCall {
  5609  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  5610  	return c
  5611  }
  5612  
  5613  // Fields allows partial responses to be retrieved. See
  5614  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5615  // details.
  5616  func (c *ProjectsLocationsJobsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsGetIamPolicyCall {
  5617  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5618  	return c
  5619  }
  5620  
  5621  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5622  // object's ETag matches the given value. This is useful for getting updates
  5623  // only after the object has changed since the last request.
  5624  func (c *ProjectsLocationsJobsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsGetIamPolicyCall {
  5625  	c.ifNoneMatch_ = entityTag
  5626  	return c
  5627  }
  5628  
  5629  // Context sets the context to be used in this call's Do method.
  5630  func (c *ProjectsLocationsJobsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsJobsGetIamPolicyCall {
  5631  	c.ctx_ = ctx
  5632  	return c
  5633  }
  5634  
  5635  // Header returns a http.Header that can be modified by the caller to add
  5636  // headers to the request.
  5637  func (c *ProjectsLocationsJobsGetIamPolicyCall) Header() http.Header {
  5638  	if c.header_ == nil {
  5639  		c.header_ = make(http.Header)
  5640  	}
  5641  	return c.header_
  5642  }
  5643  
  5644  func (c *ProjectsLocationsJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  5645  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5646  	if c.ifNoneMatch_ != "" {
  5647  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5648  	}
  5649  	var body io.Reader = nil
  5650  	c.urlParams_.Set("alt", alt)
  5651  	c.urlParams_.Set("prettyPrint", "false")
  5652  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:getIamPolicy")
  5653  	urls += "?" + c.urlParams_.Encode()
  5654  	req, err := http.NewRequest("GET", urls, body)
  5655  	if err != nil {
  5656  		return nil, err
  5657  	}
  5658  	req.Header = reqHeaders
  5659  	googleapi.Expand(req.URL, map[string]string{
  5660  		"resource": c.resource,
  5661  	})
  5662  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5663  }
  5664  
  5665  // Do executes the "run.projects.locations.jobs.getIamPolicy" call.
  5666  // Any non-2xx status code is an error. Response headers are in either
  5667  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
  5668  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5669  // check whether the returned error was because http.StatusNotModified was
  5670  // returned.
  5671  func (c *ProjectsLocationsJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
  5672  	gensupport.SetOptions(c.urlParams_, opts...)
  5673  	res, err := c.doRequest("json")
  5674  	if res != nil && res.StatusCode == http.StatusNotModified {
  5675  		if res.Body != nil {
  5676  			res.Body.Close()
  5677  		}
  5678  		return nil, gensupport.WrapError(&googleapi.Error{
  5679  			Code:   res.StatusCode,
  5680  			Header: res.Header,
  5681  		})
  5682  	}
  5683  	if err != nil {
  5684  		return nil, err
  5685  	}
  5686  	defer googleapi.CloseBody(res)
  5687  	if err := googleapi.CheckResponse(res); err != nil {
  5688  		return nil, gensupport.WrapError(err)
  5689  	}
  5690  	ret := &GoogleIamV1Policy{
  5691  		ServerResponse: googleapi.ServerResponse{
  5692  			Header:         res.Header,
  5693  			HTTPStatusCode: res.StatusCode,
  5694  		},
  5695  	}
  5696  	target := &ret
  5697  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5698  		return nil, err
  5699  	}
  5700  	return ret, nil
  5701  }
  5702  
  5703  type ProjectsLocationsJobsListCall struct {
  5704  	s            *Service
  5705  	parent       string
  5706  	urlParams_   gensupport.URLParams
  5707  	ifNoneMatch_ string
  5708  	ctx_         context.Context
  5709  	header_      http.Header
  5710  }
  5711  
  5712  // List: Lists Jobs.
  5713  //
  5714  //   - parent: The location and project to list resources on. Format:
  5715  //     projects/{project}/locations/{location}, where {project} can be project id
  5716  //     or number.
  5717  func (r *ProjectsLocationsJobsService) List(parent string) *ProjectsLocationsJobsListCall {
  5718  	c := &ProjectsLocationsJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5719  	c.parent = parent
  5720  	return c
  5721  }
  5722  
  5723  // PageSize sets the optional parameter "pageSize": Maximum number of Jobs to
  5724  // return in this call.
  5725  func (c *ProjectsLocationsJobsListCall) PageSize(pageSize int64) *ProjectsLocationsJobsListCall {
  5726  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5727  	return c
  5728  }
  5729  
  5730  // PageToken sets the optional parameter "pageToken": A page token received
  5731  // from a previous call to ListJobs. All other parameters must match.
  5732  func (c *ProjectsLocationsJobsListCall) PageToken(pageToken string) *ProjectsLocationsJobsListCall {
  5733  	c.urlParams_.Set("pageToken", pageToken)
  5734  	return c
  5735  }
  5736  
  5737  // ShowDeleted sets the optional parameter "showDeleted": If true, returns
  5738  // deleted (but unexpired) resources along with active ones.
  5739  func (c *ProjectsLocationsJobsListCall) ShowDeleted(showDeleted bool) *ProjectsLocationsJobsListCall {
  5740  	c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted))
  5741  	return c
  5742  }
  5743  
  5744  // Fields allows partial responses to be retrieved. See
  5745  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5746  // details.
  5747  func (c *ProjectsLocationsJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsListCall {
  5748  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5749  	return c
  5750  }
  5751  
  5752  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5753  // object's ETag matches the given value. This is useful for getting updates
  5754  // only after the object has changed since the last request.
  5755  func (c *ProjectsLocationsJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsListCall {
  5756  	c.ifNoneMatch_ = entityTag
  5757  	return c
  5758  }
  5759  
  5760  // Context sets the context to be used in this call's Do method.
  5761  func (c *ProjectsLocationsJobsListCall) Context(ctx context.Context) *ProjectsLocationsJobsListCall {
  5762  	c.ctx_ = ctx
  5763  	return c
  5764  }
  5765  
  5766  // Header returns a http.Header that can be modified by the caller to add
  5767  // headers to the request.
  5768  func (c *ProjectsLocationsJobsListCall) Header() http.Header {
  5769  	if c.header_ == nil {
  5770  		c.header_ = make(http.Header)
  5771  	}
  5772  	return c.header_
  5773  }
  5774  
  5775  func (c *ProjectsLocationsJobsListCall) doRequest(alt string) (*http.Response, error) {
  5776  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5777  	if c.ifNoneMatch_ != "" {
  5778  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5779  	}
  5780  	var body io.Reader = nil
  5781  	c.urlParams_.Set("alt", alt)
  5782  	c.urlParams_.Set("prettyPrint", "false")
  5783  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobs")
  5784  	urls += "?" + c.urlParams_.Encode()
  5785  	req, err := http.NewRequest("GET", urls, body)
  5786  	if err != nil {
  5787  		return nil, err
  5788  	}
  5789  	req.Header = reqHeaders
  5790  	googleapi.Expand(req.URL, map[string]string{
  5791  		"parent": c.parent,
  5792  	})
  5793  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5794  }
  5795  
  5796  // Do executes the "run.projects.locations.jobs.list" call.
  5797  // Any non-2xx status code is an error. Response headers are in either
  5798  // *GoogleCloudRunV2ListJobsResponse.ServerResponse.Header or (if a response
  5799  // was returned at all) in error.(*googleapi.Error).Header. Use
  5800  // googleapi.IsNotModified to check whether the returned error was because
  5801  // http.StatusNotModified was returned.
  5802  func (c *ProjectsLocationsJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2ListJobsResponse, error) {
  5803  	gensupport.SetOptions(c.urlParams_, opts...)
  5804  	res, err := c.doRequest("json")
  5805  	if res != nil && res.StatusCode == http.StatusNotModified {
  5806  		if res.Body != nil {
  5807  			res.Body.Close()
  5808  		}
  5809  		return nil, gensupport.WrapError(&googleapi.Error{
  5810  			Code:   res.StatusCode,
  5811  			Header: res.Header,
  5812  		})
  5813  	}
  5814  	if err != nil {
  5815  		return nil, err
  5816  	}
  5817  	defer googleapi.CloseBody(res)
  5818  	if err := googleapi.CheckResponse(res); err != nil {
  5819  		return nil, gensupport.WrapError(err)
  5820  	}
  5821  	ret := &GoogleCloudRunV2ListJobsResponse{
  5822  		ServerResponse: googleapi.ServerResponse{
  5823  			Header:         res.Header,
  5824  			HTTPStatusCode: res.StatusCode,
  5825  		},
  5826  	}
  5827  	target := &ret
  5828  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5829  		return nil, err
  5830  	}
  5831  	return ret, nil
  5832  }
  5833  
  5834  // Pages invokes f for each page of results.
  5835  // A non-nil error returned from f will halt the iteration.
  5836  // The provided context supersedes any context provided to the Context method.
  5837  func (c *ProjectsLocationsJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudRunV2ListJobsResponse) error) error {
  5838  	c.ctx_ = ctx
  5839  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5840  	for {
  5841  		x, err := c.Do()
  5842  		if err != nil {
  5843  			return err
  5844  		}
  5845  		if err := f(x); err != nil {
  5846  			return err
  5847  		}
  5848  		if x.NextPageToken == "" {
  5849  			return nil
  5850  		}
  5851  		c.PageToken(x.NextPageToken)
  5852  	}
  5853  }
  5854  
  5855  type ProjectsLocationsJobsPatchCall struct {
  5856  	s                   *Service
  5857  	name                string
  5858  	googlecloudrunv2job *GoogleCloudRunV2Job
  5859  	urlParams_          gensupport.URLParams
  5860  	ctx_                context.Context
  5861  	header_             http.Header
  5862  }
  5863  
  5864  // Patch: Updates a Job.
  5865  //
  5866  //   - name: The fully qualified name of this Job. Format:
  5867  //     projects/{project}/locations/{location}/jobs/{job}.
  5868  func (r *ProjectsLocationsJobsService) Patch(name string, googlecloudrunv2job *GoogleCloudRunV2Job) *ProjectsLocationsJobsPatchCall {
  5869  	c := &ProjectsLocationsJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5870  	c.name = name
  5871  	c.googlecloudrunv2job = googlecloudrunv2job
  5872  	return c
  5873  }
  5874  
  5875  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
  5876  // if the Job does not exist, it will create a new one. Caller must have both
  5877  // create and update permissions for this call if this is set to true.
  5878  func (c *ProjectsLocationsJobsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsJobsPatchCall {
  5879  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
  5880  	return c
  5881  }
  5882  
  5883  // ValidateOnly sets the optional parameter "validateOnly": Indicates that the
  5884  // request should be validated and default values populated, without persisting
  5885  // the request or updating any resources.
  5886  func (c *ProjectsLocationsJobsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsJobsPatchCall {
  5887  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  5888  	return c
  5889  }
  5890  
  5891  // Fields allows partial responses to be retrieved. See
  5892  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5893  // details.
  5894  func (c *ProjectsLocationsJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsPatchCall {
  5895  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5896  	return c
  5897  }
  5898  
  5899  // Context sets the context to be used in this call's Do method.
  5900  func (c *ProjectsLocationsJobsPatchCall) Context(ctx context.Context) *ProjectsLocationsJobsPatchCall {
  5901  	c.ctx_ = ctx
  5902  	return c
  5903  }
  5904  
  5905  // Header returns a http.Header that can be modified by the caller to add
  5906  // headers to the request.
  5907  func (c *ProjectsLocationsJobsPatchCall) Header() http.Header {
  5908  	if c.header_ == nil {
  5909  		c.header_ = make(http.Header)
  5910  	}
  5911  	return c.header_
  5912  }
  5913  
  5914  func (c *ProjectsLocationsJobsPatchCall) doRequest(alt string) (*http.Response, error) {
  5915  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5916  	var body io.Reader = nil
  5917  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrunv2job)
  5918  	if err != nil {
  5919  		return nil, err
  5920  	}
  5921  	c.urlParams_.Set("alt", alt)
  5922  	c.urlParams_.Set("prettyPrint", "false")
  5923  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  5924  	urls += "?" + c.urlParams_.Encode()
  5925  	req, err := http.NewRequest("PATCH", urls, body)
  5926  	if err != nil {
  5927  		return nil, err
  5928  	}
  5929  	req.Header = reqHeaders
  5930  	googleapi.Expand(req.URL, map[string]string{
  5931  		"name": c.name,
  5932  	})
  5933  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5934  }
  5935  
  5936  // Do executes the "run.projects.locations.jobs.patch" call.
  5937  // Any non-2xx status code is an error. Response headers are in either
  5938  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  5939  // returned at all) in error.(*googleapi.Error).Header. Use
  5940  // googleapi.IsNotModified to check whether the returned error was because
  5941  // http.StatusNotModified was returned.
  5942  func (c *ProjectsLocationsJobsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  5943  	gensupport.SetOptions(c.urlParams_, opts...)
  5944  	res, err := c.doRequest("json")
  5945  	if res != nil && res.StatusCode == http.StatusNotModified {
  5946  		if res.Body != nil {
  5947  			res.Body.Close()
  5948  		}
  5949  		return nil, gensupport.WrapError(&googleapi.Error{
  5950  			Code:   res.StatusCode,
  5951  			Header: res.Header,
  5952  		})
  5953  	}
  5954  	if err != nil {
  5955  		return nil, err
  5956  	}
  5957  	defer googleapi.CloseBody(res)
  5958  	if err := googleapi.CheckResponse(res); err != nil {
  5959  		return nil, gensupport.WrapError(err)
  5960  	}
  5961  	ret := &GoogleLongrunningOperation{
  5962  		ServerResponse: googleapi.ServerResponse{
  5963  			Header:         res.Header,
  5964  			HTTPStatusCode: res.StatusCode,
  5965  		},
  5966  	}
  5967  	target := &ret
  5968  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5969  		return nil, err
  5970  	}
  5971  	return ret, nil
  5972  }
  5973  
  5974  type ProjectsLocationsJobsRunCall struct {
  5975  	s                             *Service
  5976  	name                          string
  5977  	googlecloudrunv2runjobrequest *GoogleCloudRunV2RunJobRequest
  5978  	urlParams_                    gensupport.URLParams
  5979  	ctx_                          context.Context
  5980  	header_                       http.Header
  5981  }
  5982  
  5983  // Run: Triggers creation of a new Execution of this Job.
  5984  //
  5985  //   - name: The full name of the Job. Format:
  5986  //     projects/{project}/locations/{location}/jobs/{job}, where {project} can be
  5987  //     project id or number.
  5988  func (r *ProjectsLocationsJobsService) Run(name string, googlecloudrunv2runjobrequest *GoogleCloudRunV2RunJobRequest) *ProjectsLocationsJobsRunCall {
  5989  	c := &ProjectsLocationsJobsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5990  	c.name = name
  5991  	c.googlecloudrunv2runjobrequest = googlecloudrunv2runjobrequest
  5992  	return c
  5993  }
  5994  
  5995  // Fields allows partial responses to be retrieved. See
  5996  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5997  // details.
  5998  func (c *ProjectsLocationsJobsRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsRunCall {
  5999  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6000  	return c
  6001  }
  6002  
  6003  // Context sets the context to be used in this call's Do method.
  6004  func (c *ProjectsLocationsJobsRunCall) Context(ctx context.Context) *ProjectsLocationsJobsRunCall {
  6005  	c.ctx_ = ctx
  6006  	return c
  6007  }
  6008  
  6009  // Header returns a http.Header that can be modified by the caller to add
  6010  // headers to the request.
  6011  func (c *ProjectsLocationsJobsRunCall) Header() http.Header {
  6012  	if c.header_ == nil {
  6013  		c.header_ = make(http.Header)
  6014  	}
  6015  	return c.header_
  6016  }
  6017  
  6018  func (c *ProjectsLocationsJobsRunCall) doRequest(alt string) (*http.Response, error) {
  6019  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6020  	var body io.Reader = nil
  6021  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrunv2runjobrequest)
  6022  	if err != nil {
  6023  		return nil, err
  6024  	}
  6025  	c.urlParams_.Set("alt", alt)
  6026  	c.urlParams_.Set("prettyPrint", "false")
  6027  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:run")
  6028  	urls += "?" + c.urlParams_.Encode()
  6029  	req, err := http.NewRequest("POST", urls, body)
  6030  	if err != nil {
  6031  		return nil, err
  6032  	}
  6033  	req.Header = reqHeaders
  6034  	googleapi.Expand(req.URL, map[string]string{
  6035  		"name": c.name,
  6036  	})
  6037  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6038  }
  6039  
  6040  // Do executes the "run.projects.locations.jobs.run" call.
  6041  // Any non-2xx status code is an error. Response headers are in either
  6042  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  6043  // returned at all) in error.(*googleapi.Error).Header. Use
  6044  // googleapi.IsNotModified to check whether the returned error was because
  6045  // http.StatusNotModified was returned.
  6046  func (c *ProjectsLocationsJobsRunCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  6047  	gensupport.SetOptions(c.urlParams_, opts...)
  6048  	res, err := c.doRequest("json")
  6049  	if res != nil && res.StatusCode == http.StatusNotModified {
  6050  		if res.Body != nil {
  6051  			res.Body.Close()
  6052  		}
  6053  		return nil, gensupport.WrapError(&googleapi.Error{
  6054  			Code:   res.StatusCode,
  6055  			Header: res.Header,
  6056  		})
  6057  	}
  6058  	if err != nil {
  6059  		return nil, err
  6060  	}
  6061  	defer googleapi.CloseBody(res)
  6062  	if err := googleapi.CheckResponse(res); err != nil {
  6063  		return nil, gensupport.WrapError(err)
  6064  	}
  6065  	ret := &GoogleLongrunningOperation{
  6066  		ServerResponse: googleapi.ServerResponse{
  6067  			Header:         res.Header,
  6068  			HTTPStatusCode: res.StatusCode,
  6069  		},
  6070  	}
  6071  	target := &ret
  6072  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6073  		return nil, err
  6074  	}
  6075  	return ret, nil
  6076  }
  6077  
  6078  type ProjectsLocationsJobsSetIamPolicyCall struct {
  6079  	s                              *Service
  6080  	resource                       string
  6081  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
  6082  	urlParams_                     gensupport.URLParams
  6083  	ctx_                           context.Context
  6084  	header_                        http.Header
  6085  }
  6086  
  6087  // SetIamPolicy: Sets the IAM Access control policy for the specified Job.
  6088  // Overwrites any existing policy.
  6089  //
  6090  //   - resource: REQUIRED: The resource for which the policy is being specified.
  6091  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  6092  //     for the appropriate value for this field.
  6093  func (r *ProjectsLocationsJobsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsJobsSetIamPolicyCall {
  6094  	c := &ProjectsLocationsJobsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6095  	c.resource = resource
  6096  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
  6097  	return c
  6098  }
  6099  
  6100  // Fields allows partial responses to be retrieved. See
  6101  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6102  // details.
  6103  func (c *ProjectsLocationsJobsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsSetIamPolicyCall {
  6104  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6105  	return c
  6106  }
  6107  
  6108  // Context sets the context to be used in this call's Do method.
  6109  func (c *ProjectsLocationsJobsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsJobsSetIamPolicyCall {
  6110  	c.ctx_ = ctx
  6111  	return c
  6112  }
  6113  
  6114  // Header returns a http.Header that can be modified by the caller to add
  6115  // headers to the request.
  6116  func (c *ProjectsLocationsJobsSetIamPolicyCall) Header() http.Header {
  6117  	if c.header_ == nil {
  6118  		c.header_ = make(http.Header)
  6119  	}
  6120  	return c.header_
  6121  }
  6122  
  6123  func (c *ProjectsLocationsJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  6124  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6125  	var body io.Reader = nil
  6126  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
  6127  	if err != nil {
  6128  		return nil, err
  6129  	}
  6130  	c.urlParams_.Set("alt", alt)
  6131  	c.urlParams_.Set("prettyPrint", "false")
  6132  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:setIamPolicy")
  6133  	urls += "?" + c.urlParams_.Encode()
  6134  	req, err := http.NewRequest("POST", urls, body)
  6135  	if err != nil {
  6136  		return nil, err
  6137  	}
  6138  	req.Header = reqHeaders
  6139  	googleapi.Expand(req.URL, map[string]string{
  6140  		"resource": c.resource,
  6141  	})
  6142  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6143  }
  6144  
  6145  // Do executes the "run.projects.locations.jobs.setIamPolicy" call.
  6146  // Any non-2xx status code is an error. Response headers are in either
  6147  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
  6148  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6149  // check whether the returned error was because http.StatusNotModified was
  6150  // returned.
  6151  func (c *ProjectsLocationsJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
  6152  	gensupport.SetOptions(c.urlParams_, opts...)
  6153  	res, err := c.doRequest("json")
  6154  	if res != nil && res.StatusCode == http.StatusNotModified {
  6155  		if res.Body != nil {
  6156  			res.Body.Close()
  6157  		}
  6158  		return nil, gensupport.WrapError(&googleapi.Error{
  6159  			Code:   res.StatusCode,
  6160  			Header: res.Header,
  6161  		})
  6162  	}
  6163  	if err != nil {
  6164  		return nil, err
  6165  	}
  6166  	defer googleapi.CloseBody(res)
  6167  	if err := googleapi.CheckResponse(res); err != nil {
  6168  		return nil, gensupport.WrapError(err)
  6169  	}
  6170  	ret := &GoogleIamV1Policy{
  6171  		ServerResponse: googleapi.ServerResponse{
  6172  			Header:         res.Header,
  6173  			HTTPStatusCode: res.StatusCode,
  6174  		},
  6175  	}
  6176  	target := &ret
  6177  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6178  		return nil, err
  6179  	}
  6180  	return ret, nil
  6181  }
  6182  
  6183  type ProjectsLocationsJobsTestIamPermissionsCall struct {
  6184  	s                                    *Service
  6185  	resource                             string
  6186  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
  6187  	urlParams_                           gensupport.URLParams
  6188  	ctx_                                 context.Context
  6189  	header_                              http.Header
  6190  }
  6191  
  6192  // TestIamPermissions: Returns permissions that a caller has on the specified
  6193  // Project. There are no permissions required for making this API call.
  6194  //
  6195  //   - resource: REQUIRED: The resource for which the policy detail is being
  6196  //     requested. See Resource names
  6197  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  6198  //     value for this field.
  6199  func (r *ProjectsLocationsJobsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsJobsTestIamPermissionsCall {
  6200  	c := &ProjectsLocationsJobsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6201  	c.resource = resource
  6202  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
  6203  	return c
  6204  }
  6205  
  6206  // Fields allows partial responses to be retrieved. See
  6207  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6208  // details.
  6209  func (c *ProjectsLocationsJobsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsTestIamPermissionsCall {
  6210  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6211  	return c
  6212  }
  6213  
  6214  // Context sets the context to be used in this call's Do method.
  6215  func (c *ProjectsLocationsJobsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsJobsTestIamPermissionsCall {
  6216  	c.ctx_ = ctx
  6217  	return c
  6218  }
  6219  
  6220  // Header returns a http.Header that can be modified by the caller to add
  6221  // headers to the request.
  6222  func (c *ProjectsLocationsJobsTestIamPermissionsCall) Header() http.Header {
  6223  	if c.header_ == nil {
  6224  		c.header_ = make(http.Header)
  6225  	}
  6226  	return c.header_
  6227  }
  6228  
  6229  func (c *ProjectsLocationsJobsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  6230  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6231  	var body io.Reader = nil
  6232  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
  6233  	if err != nil {
  6234  		return nil, err
  6235  	}
  6236  	c.urlParams_.Set("alt", alt)
  6237  	c.urlParams_.Set("prettyPrint", "false")
  6238  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:testIamPermissions")
  6239  	urls += "?" + c.urlParams_.Encode()
  6240  	req, err := http.NewRequest("POST", urls, body)
  6241  	if err != nil {
  6242  		return nil, err
  6243  	}
  6244  	req.Header = reqHeaders
  6245  	googleapi.Expand(req.URL, map[string]string{
  6246  		"resource": c.resource,
  6247  	})
  6248  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6249  }
  6250  
  6251  // Do executes the "run.projects.locations.jobs.testIamPermissions" call.
  6252  // Any non-2xx status code is an error. Response headers are in either
  6253  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
  6254  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6255  // googleapi.IsNotModified to check whether the returned error was because
  6256  // http.StatusNotModified was returned.
  6257  func (c *ProjectsLocationsJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
  6258  	gensupport.SetOptions(c.urlParams_, opts...)
  6259  	res, err := c.doRequest("json")
  6260  	if res != nil && res.StatusCode == http.StatusNotModified {
  6261  		if res.Body != nil {
  6262  			res.Body.Close()
  6263  		}
  6264  		return nil, gensupport.WrapError(&googleapi.Error{
  6265  			Code:   res.StatusCode,
  6266  			Header: res.Header,
  6267  		})
  6268  	}
  6269  	if err != nil {
  6270  		return nil, err
  6271  	}
  6272  	defer googleapi.CloseBody(res)
  6273  	if err := googleapi.CheckResponse(res); err != nil {
  6274  		return nil, gensupport.WrapError(err)
  6275  	}
  6276  	ret := &GoogleIamV1TestIamPermissionsResponse{
  6277  		ServerResponse: googleapi.ServerResponse{
  6278  			Header:         res.Header,
  6279  			HTTPStatusCode: res.StatusCode,
  6280  		},
  6281  	}
  6282  	target := &ret
  6283  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6284  		return nil, err
  6285  	}
  6286  	return ret, nil
  6287  }
  6288  
  6289  type ProjectsLocationsJobsExecutionsCancelCall struct {
  6290  	s                                      *Service
  6291  	name                                   string
  6292  	googlecloudrunv2cancelexecutionrequest *GoogleCloudRunV2CancelExecutionRequest
  6293  	urlParams_                             gensupport.URLParams
  6294  	ctx_                                   context.Context
  6295  	header_                                http.Header
  6296  }
  6297  
  6298  // Cancel: Cancels an Execution.
  6299  //
  6300  //   - name: The name of the Execution to cancel. Format:
  6301  //     `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`
  6302  //     , where `{project}` can be project id or number.
  6303  func (r *ProjectsLocationsJobsExecutionsService) Cancel(name string, googlecloudrunv2cancelexecutionrequest *GoogleCloudRunV2CancelExecutionRequest) *ProjectsLocationsJobsExecutionsCancelCall {
  6304  	c := &ProjectsLocationsJobsExecutionsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6305  	c.name = name
  6306  	c.googlecloudrunv2cancelexecutionrequest = googlecloudrunv2cancelexecutionrequest
  6307  	return c
  6308  }
  6309  
  6310  // Fields allows partial responses to be retrieved. See
  6311  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6312  // details.
  6313  func (c *ProjectsLocationsJobsExecutionsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsExecutionsCancelCall {
  6314  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6315  	return c
  6316  }
  6317  
  6318  // Context sets the context to be used in this call's Do method.
  6319  func (c *ProjectsLocationsJobsExecutionsCancelCall) Context(ctx context.Context) *ProjectsLocationsJobsExecutionsCancelCall {
  6320  	c.ctx_ = ctx
  6321  	return c
  6322  }
  6323  
  6324  // Header returns a http.Header that can be modified by the caller to add
  6325  // headers to the request.
  6326  func (c *ProjectsLocationsJobsExecutionsCancelCall) Header() http.Header {
  6327  	if c.header_ == nil {
  6328  		c.header_ = make(http.Header)
  6329  	}
  6330  	return c.header_
  6331  }
  6332  
  6333  func (c *ProjectsLocationsJobsExecutionsCancelCall) doRequest(alt string) (*http.Response, error) {
  6334  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6335  	var body io.Reader = nil
  6336  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrunv2cancelexecutionrequest)
  6337  	if err != nil {
  6338  		return nil, err
  6339  	}
  6340  	c.urlParams_.Set("alt", alt)
  6341  	c.urlParams_.Set("prettyPrint", "false")
  6342  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:cancel")
  6343  	urls += "?" + c.urlParams_.Encode()
  6344  	req, err := http.NewRequest("POST", urls, body)
  6345  	if err != nil {
  6346  		return nil, err
  6347  	}
  6348  	req.Header = reqHeaders
  6349  	googleapi.Expand(req.URL, map[string]string{
  6350  		"name": c.name,
  6351  	})
  6352  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6353  }
  6354  
  6355  // Do executes the "run.projects.locations.jobs.executions.cancel" call.
  6356  // Any non-2xx status code is an error. Response headers are in either
  6357  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  6358  // returned at all) in error.(*googleapi.Error).Header. Use
  6359  // googleapi.IsNotModified to check whether the returned error was because
  6360  // http.StatusNotModified was returned.
  6361  func (c *ProjectsLocationsJobsExecutionsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  6362  	gensupport.SetOptions(c.urlParams_, opts...)
  6363  	res, err := c.doRequest("json")
  6364  	if res != nil && res.StatusCode == http.StatusNotModified {
  6365  		if res.Body != nil {
  6366  			res.Body.Close()
  6367  		}
  6368  		return nil, gensupport.WrapError(&googleapi.Error{
  6369  			Code:   res.StatusCode,
  6370  			Header: res.Header,
  6371  		})
  6372  	}
  6373  	if err != nil {
  6374  		return nil, err
  6375  	}
  6376  	defer googleapi.CloseBody(res)
  6377  	if err := googleapi.CheckResponse(res); err != nil {
  6378  		return nil, gensupport.WrapError(err)
  6379  	}
  6380  	ret := &GoogleLongrunningOperation{
  6381  		ServerResponse: googleapi.ServerResponse{
  6382  			Header:         res.Header,
  6383  			HTTPStatusCode: res.StatusCode,
  6384  		},
  6385  	}
  6386  	target := &ret
  6387  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6388  		return nil, err
  6389  	}
  6390  	return ret, nil
  6391  }
  6392  
  6393  type ProjectsLocationsJobsExecutionsDeleteCall struct {
  6394  	s          *Service
  6395  	name       string
  6396  	urlParams_ gensupport.URLParams
  6397  	ctx_       context.Context
  6398  	header_    http.Header
  6399  }
  6400  
  6401  // Delete: Deletes an Execution.
  6402  //
  6403  //   - name: The name of the Execution to delete. Format:
  6404  //     `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`
  6405  //     , where `{project}` can be project id or number.
  6406  func (r *ProjectsLocationsJobsExecutionsService) Delete(name string) *ProjectsLocationsJobsExecutionsDeleteCall {
  6407  	c := &ProjectsLocationsJobsExecutionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6408  	c.name = name
  6409  	return c
  6410  }
  6411  
  6412  // Etag sets the optional parameter "etag": A system-generated fingerprint for
  6413  // this version of the resource. This may be used to detect modification
  6414  // conflict during updates.
  6415  func (c *ProjectsLocationsJobsExecutionsDeleteCall) Etag(etag string) *ProjectsLocationsJobsExecutionsDeleteCall {
  6416  	c.urlParams_.Set("etag", etag)
  6417  	return c
  6418  }
  6419  
  6420  // ValidateOnly sets the optional parameter "validateOnly": Indicates that the
  6421  // request should be validated without actually deleting any resources.
  6422  func (c *ProjectsLocationsJobsExecutionsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsJobsExecutionsDeleteCall {
  6423  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  6424  	return c
  6425  }
  6426  
  6427  // Fields allows partial responses to be retrieved. See
  6428  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6429  // details.
  6430  func (c *ProjectsLocationsJobsExecutionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsExecutionsDeleteCall {
  6431  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6432  	return c
  6433  }
  6434  
  6435  // Context sets the context to be used in this call's Do method.
  6436  func (c *ProjectsLocationsJobsExecutionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsJobsExecutionsDeleteCall {
  6437  	c.ctx_ = ctx
  6438  	return c
  6439  }
  6440  
  6441  // Header returns a http.Header that can be modified by the caller to add
  6442  // headers to the request.
  6443  func (c *ProjectsLocationsJobsExecutionsDeleteCall) Header() http.Header {
  6444  	if c.header_ == nil {
  6445  		c.header_ = make(http.Header)
  6446  	}
  6447  	return c.header_
  6448  }
  6449  
  6450  func (c *ProjectsLocationsJobsExecutionsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6451  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6452  	var body io.Reader = nil
  6453  	c.urlParams_.Set("alt", alt)
  6454  	c.urlParams_.Set("prettyPrint", "false")
  6455  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  6456  	urls += "?" + c.urlParams_.Encode()
  6457  	req, err := http.NewRequest("DELETE", urls, body)
  6458  	if err != nil {
  6459  		return nil, err
  6460  	}
  6461  	req.Header = reqHeaders
  6462  	googleapi.Expand(req.URL, map[string]string{
  6463  		"name": c.name,
  6464  	})
  6465  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6466  }
  6467  
  6468  // Do executes the "run.projects.locations.jobs.executions.delete" call.
  6469  // Any non-2xx status code is an error. Response headers are in either
  6470  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  6471  // returned at all) in error.(*googleapi.Error).Header. Use
  6472  // googleapi.IsNotModified to check whether the returned error was because
  6473  // http.StatusNotModified was returned.
  6474  func (c *ProjectsLocationsJobsExecutionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  6475  	gensupport.SetOptions(c.urlParams_, opts...)
  6476  	res, err := c.doRequest("json")
  6477  	if res != nil && res.StatusCode == http.StatusNotModified {
  6478  		if res.Body != nil {
  6479  			res.Body.Close()
  6480  		}
  6481  		return nil, gensupport.WrapError(&googleapi.Error{
  6482  			Code:   res.StatusCode,
  6483  			Header: res.Header,
  6484  		})
  6485  	}
  6486  	if err != nil {
  6487  		return nil, err
  6488  	}
  6489  	defer googleapi.CloseBody(res)
  6490  	if err := googleapi.CheckResponse(res); err != nil {
  6491  		return nil, gensupport.WrapError(err)
  6492  	}
  6493  	ret := &GoogleLongrunningOperation{
  6494  		ServerResponse: googleapi.ServerResponse{
  6495  			Header:         res.Header,
  6496  			HTTPStatusCode: res.StatusCode,
  6497  		},
  6498  	}
  6499  	target := &ret
  6500  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6501  		return nil, err
  6502  	}
  6503  	return ret, nil
  6504  }
  6505  
  6506  type ProjectsLocationsJobsExecutionsExportStatusCall struct {
  6507  	s            *Service
  6508  	name         string
  6509  	operationId  string
  6510  	urlParams_   gensupport.URLParams
  6511  	ifNoneMatch_ string
  6512  	ctx_         context.Context
  6513  	header_      http.Header
  6514  }
  6515  
  6516  // ExportStatus: Read the status of an image export operation.
  6517  //
  6518  //   - name: The name of the resource of which image export operation status has
  6519  //     to be fetched. Format:
  6520  //     `projects/{project_id_or_number}/locations/{location}/services/{service}/re
  6521  //     visions/{revision}` for Revision
  6522  //     `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions
  6523  //     /{execution}` for Execution.
  6524  //   - operationId: The operation id returned from ExportImage.
  6525  func (r *ProjectsLocationsJobsExecutionsService) ExportStatus(name string, operationId string) *ProjectsLocationsJobsExecutionsExportStatusCall {
  6526  	c := &ProjectsLocationsJobsExecutionsExportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6527  	c.name = name
  6528  	c.operationId = operationId
  6529  	return c
  6530  }
  6531  
  6532  // Fields allows partial responses to be retrieved. See
  6533  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6534  // details.
  6535  func (c *ProjectsLocationsJobsExecutionsExportStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsExecutionsExportStatusCall {
  6536  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6537  	return c
  6538  }
  6539  
  6540  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6541  // object's ETag matches the given value. This is useful for getting updates
  6542  // only after the object has changed since the last request.
  6543  func (c *ProjectsLocationsJobsExecutionsExportStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsExecutionsExportStatusCall {
  6544  	c.ifNoneMatch_ = entityTag
  6545  	return c
  6546  }
  6547  
  6548  // Context sets the context to be used in this call's Do method.
  6549  func (c *ProjectsLocationsJobsExecutionsExportStatusCall) Context(ctx context.Context) *ProjectsLocationsJobsExecutionsExportStatusCall {
  6550  	c.ctx_ = ctx
  6551  	return c
  6552  }
  6553  
  6554  // Header returns a http.Header that can be modified by the caller to add
  6555  // headers to the request.
  6556  func (c *ProjectsLocationsJobsExecutionsExportStatusCall) Header() http.Header {
  6557  	if c.header_ == nil {
  6558  		c.header_ = make(http.Header)
  6559  	}
  6560  	return c.header_
  6561  }
  6562  
  6563  func (c *ProjectsLocationsJobsExecutionsExportStatusCall) doRequest(alt string) (*http.Response, error) {
  6564  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6565  	if c.ifNoneMatch_ != "" {
  6566  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6567  	}
  6568  	var body io.Reader = nil
  6569  	c.urlParams_.Set("alt", alt)
  6570  	c.urlParams_.Set("prettyPrint", "false")
  6571  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/{+operationId}:exportStatus")
  6572  	urls += "?" + c.urlParams_.Encode()
  6573  	req, err := http.NewRequest("GET", urls, body)
  6574  	if err != nil {
  6575  		return nil, err
  6576  	}
  6577  	req.Header = reqHeaders
  6578  	googleapi.Expand(req.URL, map[string]string{
  6579  		"name":        c.name,
  6580  		"operationId": c.operationId,
  6581  	})
  6582  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6583  }
  6584  
  6585  // Do executes the "run.projects.locations.jobs.executions.exportStatus" call.
  6586  // Any non-2xx status code is an error. Response headers are in either
  6587  // *GoogleCloudRunV2ExportStatusResponse.ServerResponse.Header or (if a
  6588  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6589  // googleapi.IsNotModified to check whether the returned error was because
  6590  // http.StatusNotModified was returned.
  6591  func (c *ProjectsLocationsJobsExecutionsExportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2ExportStatusResponse, error) {
  6592  	gensupport.SetOptions(c.urlParams_, opts...)
  6593  	res, err := c.doRequest("json")
  6594  	if res != nil && res.StatusCode == http.StatusNotModified {
  6595  		if res.Body != nil {
  6596  			res.Body.Close()
  6597  		}
  6598  		return nil, gensupport.WrapError(&googleapi.Error{
  6599  			Code:   res.StatusCode,
  6600  			Header: res.Header,
  6601  		})
  6602  	}
  6603  	if err != nil {
  6604  		return nil, err
  6605  	}
  6606  	defer googleapi.CloseBody(res)
  6607  	if err := googleapi.CheckResponse(res); err != nil {
  6608  		return nil, gensupport.WrapError(err)
  6609  	}
  6610  	ret := &GoogleCloudRunV2ExportStatusResponse{
  6611  		ServerResponse: googleapi.ServerResponse{
  6612  			Header:         res.Header,
  6613  			HTTPStatusCode: res.StatusCode,
  6614  		},
  6615  	}
  6616  	target := &ret
  6617  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6618  		return nil, err
  6619  	}
  6620  	return ret, nil
  6621  }
  6622  
  6623  type ProjectsLocationsJobsExecutionsGetCall struct {
  6624  	s            *Service
  6625  	name         string
  6626  	urlParams_   gensupport.URLParams
  6627  	ifNoneMatch_ string
  6628  	ctx_         context.Context
  6629  	header_      http.Header
  6630  }
  6631  
  6632  // Get: Gets information about an Execution.
  6633  //
  6634  //   - name: The full name of the Execution. Format:
  6635  //     `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`
  6636  //     , where `{project}` can be project id or number.
  6637  func (r *ProjectsLocationsJobsExecutionsService) Get(name string) *ProjectsLocationsJobsExecutionsGetCall {
  6638  	c := &ProjectsLocationsJobsExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6639  	c.name = name
  6640  	return c
  6641  }
  6642  
  6643  // Fields allows partial responses to be retrieved. See
  6644  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6645  // details.
  6646  func (c *ProjectsLocationsJobsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsExecutionsGetCall {
  6647  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6648  	return c
  6649  }
  6650  
  6651  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6652  // object's ETag matches the given value. This is useful for getting updates
  6653  // only after the object has changed since the last request.
  6654  func (c *ProjectsLocationsJobsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsExecutionsGetCall {
  6655  	c.ifNoneMatch_ = entityTag
  6656  	return c
  6657  }
  6658  
  6659  // Context sets the context to be used in this call's Do method.
  6660  func (c *ProjectsLocationsJobsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsJobsExecutionsGetCall {
  6661  	c.ctx_ = ctx
  6662  	return c
  6663  }
  6664  
  6665  // Header returns a http.Header that can be modified by the caller to add
  6666  // headers to the request.
  6667  func (c *ProjectsLocationsJobsExecutionsGetCall) Header() http.Header {
  6668  	if c.header_ == nil {
  6669  		c.header_ = make(http.Header)
  6670  	}
  6671  	return c.header_
  6672  }
  6673  
  6674  func (c *ProjectsLocationsJobsExecutionsGetCall) doRequest(alt string) (*http.Response, error) {
  6675  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6676  	if c.ifNoneMatch_ != "" {
  6677  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6678  	}
  6679  	var body io.Reader = nil
  6680  	c.urlParams_.Set("alt", alt)
  6681  	c.urlParams_.Set("prettyPrint", "false")
  6682  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  6683  	urls += "?" + c.urlParams_.Encode()
  6684  	req, err := http.NewRequest("GET", urls, body)
  6685  	if err != nil {
  6686  		return nil, err
  6687  	}
  6688  	req.Header = reqHeaders
  6689  	googleapi.Expand(req.URL, map[string]string{
  6690  		"name": c.name,
  6691  	})
  6692  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6693  }
  6694  
  6695  // Do executes the "run.projects.locations.jobs.executions.get" call.
  6696  // Any non-2xx status code is an error. Response headers are in either
  6697  // *GoogleCloudRunV2Execution.ServerResponse.Header or (if a response was
  6698  // returned at all) in error.(*googleapi.Error).Header. Use
  6699  // googleapi.IsNotModified to check whether the returned error was because
  6700  // http.StatusNotModified was returned.
  6701  func (c *ProjectsLocationsJobsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2Execution, error) {
  6702  	gensupport.SetOptions(c.urlParams_, opts...)
  6703  	res, err := c.doRequest("json")
  6704  	if res != nil && res.StatusCode == http.StatusNotModified {
  6705  		if res.Body != nil {
  6706  			res.Body.Close()
  6707  		}
  6708  		return nil, gensupport.WrapError(&googleapi.Error{
  6709  			Code:   res.StatusCode,
  6710  			Header: res.Header,
  6711  		})
  6712  	}
  6713  	if err != nil {
  6714  		return nil, err
  6715  	}
  6716  	defer googleapi.CloseBody(res)
  6717  	if err := googleapi.CheckResponse(res); err != nil {
  6718  		return nil, gensupport.WrapError(err)
  6719  	}
  6720  	ret := &GoogleCloudRunV2Execution{
  6721  		ServerResponse: googleapi.ServerResponse{
  6722  			Header:         res.Header,
  6723  			HTTPStatusCode: res.StatusCode,
  6724  		},
  6725  	}
  6726  	target := &ret
  6727  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6728  		return nil, err
  6729  	}
  6730  	return ret, nil
  6731  }
  6732  
  6733  type ProjectsLocationsJobsExecutionsListCall struct {
  6734  	s            *Service
  6735  	parent       string
  6736  	urlParams_   gensupport.URLParams
  6737  	ifNoneMatch_ string
  6738  	ctx_         context.Context
  6739  	header_      http.Header
  6740  }
  6741  
  6742  // List: Lists Executions from a Job.
  6743  //
  6744  //   - parent: The Execution from which the Executions should be listed. To list
  6745  //     all Executions across Jobs, use "-" instead of Job name. Format:
  6746  //     `projects/{project}/locations/{location}/jobs/{job}`, where `{project}`
  6747  //     can be project id or number.
  6748  func (r *ProjectsLocationsJobsExecutionsService) List(parent string) *ProjectsLocationsJobsExecutionsListCall {
  6749  	c := &ProjectsLocationsJobsExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6750  	c.parent = parent
  6751  	return c
  6752  }
  6753  
  6754  // PageSize sets the optional parameter "pageSize": Maximum number of
  6755  // Executions to return in this call.
  6756  func (c *ProjectsLocationsJobsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsJobsExecutionsListCall {
  6757  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6758  	return c
  6759  }
  6760  
  6761  // PageToken sets the optional parameter "pageToken": A page token received
  6762  // from a previous call to ListExecutions. All other parameters must match.
  6763  func (c *ProjectsLocationsJobsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsJobsExecutionsListCall {
  6764  	c.urlParams_.Set("pageToken", pageToken)
  6765  	return c
  6766  }
  6767  
  6768  // ShowDeleted sets the optional parameter "showDeleted": If true, returns
  6769  // deleted (but unexpired) resources along with active ones.
  6770  func (c *ProjectsLocationsJobsExecutionsListCall) ShowDeleted(showDeleted bool) *ProjectsLocationsJobsExecutionsListCall {
  6771  	c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted))
  6772  	return c
  6773  }
  6774  
  6775  // Fields allows partial responses to be retrieved. See
  6776  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6777  // details.
  6778  func (c *ProjectsLocationsJobsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsExecutionsListCall {
  6779  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6780  	return c
  6781  }
  6782  
  6783  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6784  // object's ETag matches the given value. This is useful for getting updates
  6785  // only after the object has changed since the last request.
  6786  func (c *ProjectsLocationsJobsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsExecutionsListCall {
  6787  	c.ifNoneMatch_ = entityTag
  6788  	return c
  6789  }
  6790  
  6791  // Context sets the context to be used in this call's Do method.
  6792  func (c *ProjectsLocationsJobsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsJobsExecutionsListCall {
  6793  	c.ctx_ = ctx
  6794  	return c
  6795  }
  6796  
  6797  // Header returns a http.Header that can be modified by the caller to add
  6798  // headers to the request.
  6799  func (c *ProjectsLocationsJobsExecutionsListCall) Header() http.Header {
  6800  	if c.header_ == nil {
  6801  		c.header_ = make(http.Header)
  6802  	}
  6803  	return c.header_
  6804  }
  6805  
  6806  func (c *ProjectsLocationsJobsExecutionsListCall) doRequest(alt string) (*http.Response, error) {
  6807  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6808  	if c.ifNoneMatch_ != "" {
  6809  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6810  	}
  6811  	var body io.Reader = nil
  6812  	c.urlParams_.Set("alt", alt)
  6813  	c.urlParams_.Set("prettyPrint", "false")
  6814  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/executions")
  6815  	urls += "?" + c.urlParams_.Encode()
  6816  	req, err := http.NewRequest("GET", urls, body)
  6817  	if err != nil {
  6818  		return nil, err
  6819  	}
  6820  	req.Header = reqHeaders
  6821  	googleapi.Expand(req.URL, map[string]string{
  6822  		"parent": c.parent,
  6823  	})
  6824  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6825  }
  6826  
  6827  // Do executes the "run.projects.locations.jobs.executions.list" call.
  6828  // Any non-2xx status code is an error. Response headers are in either
  6829  // *GoogleCloudRunV2ListExecutionsResponse.ServerResponse.Header or (if a
  6830  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6831  // googleapi.IsNotModified to check whether the returned error was because
  6832  // http.StatusNotModified was returned.
  6833  func (c *ProjectsLocationsJobsExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2ListExecutionsResponse, error) {
  6834  	gensupport.SetOptions(c.urlParams_, opts...)
  6835  	res, err := c.doRequest("json")
  6836  	if res != nil && res.StatusCode == http.StatusNotModified {
  6837  		if res.Body != nil {
  6838  			res.Body.Close()
  6839  		}
  6840  		return nil, gensupport.WrapError(&googleapi.Error{
  6841  			Code:   res.StatusCode,
  6842  			Header: res.Header,
  6843  		})
  6844  	}
  6845  	if err != nil {
  6846  		return nil, err
  6847  	}
  6848  	defer googleapi.CloseBody(res)
  6849  	if err := googleapi.CheckResponse(res); err != nil {
  6850  		return nil, gensupport.WrapError(err)
  6851  	}
  6852  	ret := &GoogleCloudRunV2ListExecutionsResponse{
  6853  		ServerResponse: googleapi.ServerResponse{
  6854  			Header:         res.Header,
  6855  			HTTPStatusCode: res.StatusCode,
  6856  		},
  6857  	}
  6858  	target := &ret
  6859  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6860  		return nil, err
  6861  	}
  6862  	return ret, nil
  6863  }
  6864  
  6865  // Pages invokes f for each page of results.
  6866  // A non-nil error returned from f will halt the iteration.
  6867  // The provided context supersedes any context provided to the Context method.
  6868  func (c *ProjectsLocationsJobsExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudRunV2ListExecutionsResponse) error) error {
  6869  	c.ctx_ = ctx
  6870  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6871  	for {
  6872  		x, err := c.Do()
  6873  		if err != nil {
  6874  			return err
  6875  		}
  6876  		if err := f(x); err != nil {
  6877  			return err
  6878  		}
  6879  		if x.NextPageToken == "" {
  6880  			return nil
  6881  		}
  6882  		c.PageToken(x.NextPageToken)
  6883  	}
  6884  }
  6885  
  6886  type ProjectsLocationsJobsExecutionsTasksGetCall struct {
  6887  	s            *Service
  6888  	name         string
  6889  	urlParams_   gensupport.URLParams
  6890  	ifNoneMatch_ string
  6891  	ctx_         context.Context
  6892  	header_      http.Header
  6893  }
  6894  
  6895  // Get: Gets information about a Task.
  6896  //
  6897  //   - name: The full name of the Task. Format:
  6898  //     projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/t
  6899  //     asks/{task}.
  6900  func (r *ProjectsLocationsJobsExecutionsTasksService) Get(name string) *ProjectsLocationsJobsExecutionsTasksGetCall {
  6901  	c := &ProjectsLocationsJobsExecutionsTasksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6902  	c.name = name
  6903  	return c
  6904  }
  6905  
  6906  // Fields allows partial responses to be retrieved. See
  6907  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6908  // details.
  6909  func (c *ProjectsLocationsJobsExecutionsTasksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsExecutionsTasksGetCall {
  6910  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6911  	return c
  6912  }
  6913  
  6914  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6915  // object's ETag matches the given value. This is useful for getting updates
  6916  // only after the object has changed since the last request.
  6917  func (c *ProjectsLocationsJobsExecutionsTasksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsExecutionsTasksGetCall {
  6918  	c.ifNoneMatch_ = entityTag
  6919  	return c
  6920  }
  6921  
  6922  // Context sets the context to be used in this call's Do method.
  6923  func (c *ProjectsLocationsJobsExecutionsTasksGetCall) Context(ctx context.Context) *ProjectsLocationsJobsExecutionsTasksGetCall {
  6924  	c.ctx_ = ctx
  6925  	return c
  6926  }
  6927  
  6928  // Header returns a http.Header that can be modified by the caller to add
  6929  // headers to the request.
  6930  func (c *ProjectsLocationsJobsExecutionsTasksGetCall) Header() http.Header {
  6931  	if c.header_ == nil {
  6932  		c.header_ = make(http.Header)
  6933  	}
  6934  	return c.header_
  6935  }
  6936  
  6937  func (c *ProjectsLocationsJobsExecutionsTasksGetCall) doRequest(alt string) (*http.Response, error) {
  6938  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6939  	if c.ifNoneMatch_ != "" {
  6940  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6941  	}
  6942  	var body io.Reader = nil
  6943  	c.urlParams_.Set("alt", alt)
  6944  	c.urlParams_.Set("prettyPrint", "false")
  6945  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  6946  	urls += "?" + c.urlParams_.Encode()
  6947  	req, err := http.NewRequest("GET", urls, body)
  6948  	if err != nil {
  6949  		return nil, err
  6950  	}
  6951  	req.Header = reqHeaders
  6952  	googleapi.Expand(req.URL, map[string]string{
  6953  		"name": c.name,
  6954  	})
  6955  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6956  }
  6957  
  6958  // Do executes the "run.projects.locations.jobs.executions.tasks.get" call.
  6959  // Any non-2xx status code is an error. Response headers are in either
  6960  // *GoogleCloudRunV2Task.ServerResponse.Header or (if a response was returned
  6961  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6962  // check whether the returned error was because http.StatusNotModified was
  6963  // returned.
  6964  func (c *ProjectsLocationsJobsExecutionsTasksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2Task, error) {
  6965  	gensupport.SetOptions(c.urlParams_, opts...)
  6966  	res, err := c.doRequest("json")
  6967  	if res != nil && res.StatusCode == http.StatusNotModified {
  6968  		if res.Body != nil {
  6969  			res.Body.Close()
  6970  		}
  6971  		return nil, gensupport.WrapError(&googleapi.Error{
  6972  			Code:   res.StatusCode,
  6973  			Header: res.Header,
  6974  		})
  6975  	}
  6976  	if err != nil {
  6977  		return nil, err
  6978  	}
  6979  	defer googleapi.CloseBody(res)
  6980  	if err := googleapi.CheckResponse(res); err != nil {
  6981  		return nil, gensupport.WrapError(err)
  6982  	}
  6983  	ret := &GoogleCloudRunV2Task{
  6984  		ServerResponse: googleapi.ServerResponse{
  6985  			Header:         res.Header,
  6986  			HTTPStatusCode: res.StatusCode,
  6987  		},
  6988  	}
  6989  	target := &ret
  6990  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6991  		return nil, err
  6992  	}
  6993  	return ret, nil
  6994  }
  6995  
  6996  type ProjectsLocationsJobsExecutionsTasksListCall struct {
  6997  	s            *Service
  6998  	parent       string
  6999  	urlParams_   gensupport.URLParams
  7000  	ifNoneMatch_ string
  7001  	ctx_         context.Context
  7002  	header_      http.Header
  7003  }
  7004  
  7005  // List: Lists Tasks from an Execution of a Job.
  7006  //
  7007  //   - parent: The Execution from which the Tasks should be listed. To list all
  7008  //     Tasks across Executions of a Job, use "-" instead of Execution name. To
  7009  //     list all Tasks across Jobs, use "-" instead of Job name. Format:
  7010  //     projects/{project}/locations/{location}/jobs/{job}/executions/{execution}.
  7011  func (r *ProjectsLocationsJobsExecutionsTasksService) List(parent string) *ProjectsLocationsJobsExecutionsTasksListCall {
  7012  	c := &ProjectsLocationsJobsExecutionsTasksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7013  	c.parent = parent
  7014  	return c
  7015  }
  7016  
  7017  // PageSize sets the optional parameter "pageSize": Maximum number of Tasks to
  7018  // return in this call.
  7019  func (c *ProjectsLocationsJobsExecutionsTasksListCall) PageSize(pageSize int64) *ProjectsLocationsJobsExecutionsTasksListCall {
  7020  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7021  	return c
  7022  }
  7023  
  7024  // PageToken sets the optional parameter "pageToken": A page token received
  7025  // from a previous call to ListTasks. All other parameters must match.
  7026  func (c *ProjectsLocationsJobsExecutionsTasksListCall) PageToken(pageToken string) *ProjectsLocationsJobsExecutionsTasksListCall {
  7027  	c.urlParams_.Set("pageToken", pageToken)
  7028  	return c
  7029  }
  7030  
  7031  // ShowDeleted sets the optional parameter "showDeleted": If true, returns
  7032  // deleted (but unexpired) resources along with active ones.
  7033  func (c *ProjectsLocationsJobsExecutionsTasksListCall) ShowDeleted(showDeleted bool) *ProjectsLocationsJobsExecutionsTasksListCall {
  7034  	c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted))
  7035  	return c
  7036  }
  7037  
  7038  // Fields allows partial responses to be retrieved. See
  7039  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7040  // details.
  7041  func (c *ProjectsLocationsJobsExecutionsTasksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsExecutionsTasksListCall {
  7042  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7043  	return c
  7044  }
  7045  
  7046  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7047  // object's ETag matches the given value. This is useful for getting updates
  7048  // only after the object has changed since the last request.
  7049  func (c *ProjectsLocationsJobsExecutionsTasksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsExecutionsTasksListCall {
  7050  	c.ifNoneMatch_ = entityTag
  7051  	return c
  7052  }
  7053  
  7054  // Context sets the context to be used in this call's Do method.
  7055  func (c *ProjectsLocationsJobsExecutionsTasksListCall) Context(ctx context.Context) *ProjectsLocationsJobsExecutionsTasksListCall {
  7056  	c.ctx_ = ctx
  7057  	return c
  7058  }
  7059  
  7060  // Header returns a http.Header that can be modified by the caller to add
  7061  // headers to the request.
  7062  func (c *ProjectsLocationsJobsExecutionsTasksListCall) Header() http.Header {
  7063  	if c.header_ == nil {
  7064  		c.header_ = make(http.Header)
  7065  	}
  7066  	return c.header_
  7067  }
  7068  
  7069  func (c *ProjectsLocationsJobsExecutionsTasksListCall) doRequest(alt string) (*http.Response, error) {
  7070  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7071  	if c.ifNoneMatch_ != "" {
  7072  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7073  	}
  7074  	var body io.Reader = nil
  7075  	c.urlParams_.Set("alt", alt)
  7076  	c.urlParams_.Set("prettyPrint", "false")
  7077  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/tasks")
  7078  	urls += "?" + c.urlParams_.Encode()
  7079  	req, err := http.NewRequest("GET", urls, body)
  7080  	if err != nil {
  7081  		return nil, err
  7082  	}
  7083  	req.Header = reqHeaders
  7084  	googleapi.Expand(req.URL, map[string]string{
  7085  		"parent": c.parent,
  7086  	})
  7087  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7088  }
  7089  
  7090  // Do executes the "run.projects.locations.jobs.executions.tasks.list" call.
  7091  // Any non-2xx status code is an error. Response headers are in either
  7092  // *GoogleCloudRunV2ListTasksResponse.ServerResponse.Header or (if a response
  7093  // was returned at all) in error.(*googleapi.Error).Header. Use
  7094  // googleapi.IsNotModified to check whether the returned error was because
  7095  // http.StatusNotModified was returned.
  7096  func (c *ProjectsLocationsJobsExecutionsTasksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2ListTasksResponse, error) {
  7097  	gensupport.SetOptions(c.urlParams_, opts...)
  7098  	res, err := c.doRequest("json")
  7099  	if res != nil && res.StatusCode == http.StatusNotModified {
  7100  		if res.Body != nil {
  7101  			res.Body.Close()
  7102  		}
  7103  		return nil, gensupport.WrapError(&googleapi.Error{
  7104  			Code:   res.StatusCode,
  7105  			Header: res.Header,
  7106  		})
  7107  	}
  7108  	if err != nil {
  7109  		return nil, err
  7110  	}
  7111  	defer googleapi.CloseBody(res)
  7112  	if err := googleapi.CheckResponse(res); err != nil {
  7113  		return nil, gensupport.WrapError(err)
  7114  	}
  7115  	ret := &GoogleCloudRunV2ListTasksResponse{
  7116  		ServerResponse: googleapi.ServerResponse{
  7117  			Header:         res.Header,
  7118  			HTTPStatusCode: res.StatusCode,
  7119  		},
  7120  	}
  7121  	target := &ret
  7122  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7123  		return nil, err
  7124  	}
  7125  	return ret, nil
  7126  }
  7127  
  7128  // Pages invokes f for each page of results.
  7129  // A non-nil error returned from f will halt the iteration.
  7130  // The provided context supersedes any context provided to the Context method.
  7131  func (c *ProjectsLocationsJobsExecutionsTasksListCall) Pages(ctx context.Context, f func(*GoogleCloudRunV2ListTasksResponse) error) error {
  7132  	c.ctx_ = ctx
  7133  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7134  	for {
  7135  		x, err := c.Do()
  7136  		if err != nil {
  7137  			return err
  7138  		}
  7139  		if err := f(x); err != nil {
  7140  			return err
  7141  		}
  7142  		if x.NextPageToken == "" {
  7143  			return nil
  7144  		}
  7145  		c.PageToken(x.NextPageToken)
  7146  	}
  7147  }
  7148  
  7149  type ProjectsLocationsOperationsDeleteCall struct {
  7150  	s          *Service
  7151  	name       string
  7152  	urlParams_ gensupport.URLParams
  7153  	ctx_       context.Context
  7154  	header_    http.Header
  7155  }
  7156  
  7157  // Delete: Deletes a long-running operation. This method indicates that the
  7158  // client is no longer interested in the operation result. It does not cancel
  7159  // the operation. If the server doesn't support this method, it returns
  7160  // `google.rpc.Code.UNIMPLEMENTED`.
  7161  //
  7162  // - name: The name of the operation resource to be deleted.
  7163  func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
  7164  	c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7165  	c.name = name
  7166  	return c
  7167  }
  7168  
  7169  // Fields allows partial responses to be retrieved. See
  7170  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7171  // details.
  7172  func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
  7173  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7174  	return c
  7175  }
  7176  
  7177  // Context sets the context to be used in this call's Do method.
  7178  func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
  7179  	c.ctx_ = ctx
  7180  	return c
  7181  }
  7182  
  7183  // Header returns a http.Header that can be modified by the caller to add
  7184  // headers to the request.
  7185  func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
  7186  	if c.header_ == nil {
  7187  		c.header_ = make(http.Header)
  7188  	}
  7189  	return c.header_
  7190  }
  7191  
  7192  func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7193  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7194  	var body io.Reader = nil
  7195  	c.urlParams_.Set("alt", alt)
  7196  	c.urlParams_.Set("prettyPrint", "false")
  7197  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  7198  	urls += "?" + c.urlParams_.Encode()
  7199  	req, err := http.NewRequest("DELETE", urls, body)
  7200  	if err != nil {
  7201  		return nil, err
  7202  	}
  7203  	req.Header = reqHeaders
  7204  	googleapi.Expand(req.URL, map[string]string{
  7205  		"name": c.name,
  7206  	})
  7207  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7208  }
  7209  
  7210  // Do executes the "run.projects.locations.operations.delete" call.
  7211  // Any non-2xx status code is an error. Response headers are in either
  7212  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  7213  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7214  // check whether the returned error was because http.StatusNotModified was
  7215  // returned.
  7216  func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  7217  	gensupport.SetOptions(c.urlParams_, opts...)
  7218  	res, err := c.doRequest("json")
  7219  	if res != nil && res.StatusCode == http.StatusNotModified {
  7220  		if res.Body != nil {
  7221  			res.Body.Close()
  7222  		}
  7223  		return nil, gensupport.WrapError(&googleapi.Error{
  7224  			Code:   res.StatusCode,
  7225  			Header: res.Header,
  7226  		})
  7227  	}
  7228  	if err != nil {
  7229  		return nil, err
  7230  	}
  7231  	defer googleapi.CloseBody(res)
  7232  	if err := googleapi.CheckResponse(res); err != nil {
  7233  		return nil, gensupport.WrapError(err)
  7234  	}
  7235  	ret := &GoogleProtobufEmpty{
  7236  		ServerResponse: googleapi.ServerResponse{
  7237  			Header:         res.Header,
  7238  			HTTPStatusCode: res.StatusCode,
  7239  		},
  7240  	}
  7241  	target := &ret
  7242  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7243  		return nil, err
  7244  	}
  7245  	return ret, nil
  7246  }
  7247  
  7248  type ProjectsLocationsOperationsGetCall struct {
  7249  	s            *Service
  7250  	name         string
  7251  	urlParams_   gensupport.URLParams
  7252  	ifNoneMatch_ string
  7253  	ctx_         context.Context
  7254  	header_      http.Header
  7255  }
  7256  
  7257  // Get: Gets the latest state of a long-running operation. Clients can use this
  7258  // method to poll the operation result at intervals as recommended by the API
  7259  // service.
  7260  //
  7261  // - name: The name of the operation resource.
  7262  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
  7263  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7264  	c.name = name
  7265  	return c
  7266  }
  7267  
  7268  // Fields allows partial responses to be retrieved. See
  7269  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7270  // details.
  7271  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
  7272  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7273  	return c
  7274  }
  7275  
  7276  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7277  // object's ETag matches the given value. This is useful for getting updates
  7278  // only after the object has changed since the last request.
  7279  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
  7280  	c.ifNoneMatch_ = entityTag
  7281  	return c
  7282  }
  7283  
  7284  // Context sets the context to be used in this call's Do method.
  7285  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
  7286  	c.ctx_ = ctx
  7287  	return c
  7288  }
  7289  
  7290  // Header returns a http.Header that can be modified by the caller to add
  7291  // headers to the request.
  7292  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
  7293  	if c.header_ == nil {
  7294  		c.header_ = make(http.Header)
  7295  	}
  7296  	return c.header_
  7297  }
  7298  
  7299  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
  7300  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7301  	if c.ifNoneMatch_ != "" {
  7302  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7303  	}
  7304  	var body io.Reader = nil
  7305  	c.urlParams_.Set("alt", alt)
  7306  	c.urlParams_.Set("prettyPrint", "false")
  7307  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  7308  	urls += "?" + c.urlParams_.Encode()
  7309  	req, err := http.NewRequest("GET", urls, body)
  7310  	if err != nil {
  7311  		return nil, err
  7312  	}
  7313  	req.Header = reqHeaders
  7314  	googleapi.Expand(req.URL, map[string]string{
  7315  		"name": c.name,
  7316  	})
  7317  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7318  }
  7319  
  7320  // Do executes the "run.projects.locations.operations.get" call.
  7321  // Any non-2xx status code is an error. Response headers are in either
  7322  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  7323  // returned at all) in error.(*googleapi.Error).Header. Use
  7324  // googleapi.IsNotModified to check whether the returned error was because
  7325  // http.StatusNotModified was returned.
  7326  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  7327  	gensupport.SetOptions(c.urlParams_, opts...)
  7328  	res, err := c.doRequest("json")
  7329  	if res != nil && res.StatusCode == http.StatusNotModified {
  7330  		if res.Body != nil {
  7331  			res.Body.Close()
  7332  		}
  7333  		return nil, gensupport.WrapError(&googleapi.Error{
  7334  			Code:   res.StatusCode,
  7335  			Header: res.Header,
  7336  		})
  7337  	}
  7338  	if err != nil {
  7339  		return nil, err
  7340  	}
  7341  	defer googleapi.CloseBody(res)
  7342  	if err := googleapi.CheckResponse(res); err != nil {
  7343  		return nil, gensupport.WrapError(err)
  7344  	}
  7345  	ret := &GoogleLongrunningOperation{
  7346  		ServerResponse: googleapi.ServerResponse{
  7347  			Header:         res.Header,
  7348  			HTTPStatusCode: res.StatusCode,
  7349  		},
  7350  	}
  7351  	target := &ret
  7352  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7353  		return nil, err
  7354  	}
  7355  	return ret, nil
  7356  }
  7357  
  7358  type ProjectsLocationsOperationsListCall struct {
  7359  	s            *Service
  7360  	name         string
  7361  	urlParams_   gensupport.URLParams
  7362  	ifNoneMatch_ string
  7363  	ctx_         context.Context
  7364  	header_      http.Header
  7365  }
  7366  
  7367  // List: Lists operations that match the specified filter in the request. If
  7368  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
  7369  //
  7370  // - name: To query for all of the operations for a project.
  7371  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
  7372  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7373  	c.name = name
  7374  	return c
  7375  }
  7376  
  7377  // Filter sets the optional parameter "filter": A filter for matching the
  7378  // completed or in-progress operations. The supported formats of *filter* are:
  7379  // To query for only completed operations: done:true To query for only ongoing
  7380  // operations: done:false Must be empty to query for all of the latest
  7381  // operations for the given parent project.
  7382  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
  7383  	c.urlParams_.Set("filter", filter)
  7384  	return c
  7385  }
  7386  
  7387  // PageSize sets the optional parameter "pageSize": The maximum number of
  7388  // records that should be returned. Requested page size cannot exceed 100. If
  7389  // not set or set to less than or equal to 0, the default page size is 100. .
  7390  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
  7391  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7392  	return c
  7393  }
  7394  
  7395  // PageToken sets the optional parameter "pageToken": Token identifying which
  7396  // result to start with, which is returned by a previous list call.
  7397  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
  7398  	c.urlParams_.Set("pageToken", pageToken)
  7399  	return c
  7400  }
  7401  
  7402  // Fields allows partial responses to be retrieved. See
  7403  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7404  // details.
  7405  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
  7406  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7407  	return c
  7408  }
  7409  
  7410  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7411  // object's ETag matches the given value. This is useful for getting updates
  7412  // only after the object has changed since the last request.
  7413  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
  7414  	c.ifNoneMatch_ = entityTag
  7415  	return c
  7416  }
  7417  
  7418  // Context sets the context to be used in this call's Do method.
  7419  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
  7420  	c.ctx_ = ctx
  7421  	return c
  7422  }
  7423  
  7424  // Header returns a http.Header that can be modified by the caller to add
  7425  // headers to the request.
  7426  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
  7427  	if c.header_ == nil {
  7428  		c.header_ = make(http.Header)
  7429  	}
  7430  	return c.header_
  7431  }
  7432  
  7433  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
  7434  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7435  	if c.ifNoneMatch_ != "" {
  7436  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7437  	}
  7438  	var body io.Reader = nil
  7439  	c.urlParams_.Set("alt", alt)
  7440  	c.urlParams_.Set("prettyPrint", "false")
  7441  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/operations")
  7442  	urls += "?" + c.urlParams_.Encode()
  7443  	req, err := http.NewRequest("GET", urls, body)
  7444  	if err != nil {
  7445  		return nil, err
  7446  	}
  7447  	req.Header = reqHeaders
  7448  	googleapi.Expand(req.URL, map[string]string{
  7449  		"name": c.name,
  7450  	})
  7451  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7452  }
  7453  
  7454  // Do executes the "run.projects.locations.operations.list" call.
  7455  // Any non-2xx status code is an error. Response headers are in either
  7456  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
  7457  // response was returned at all) in error.(*googleapi.Error).Header. Use
  7458  // googleapi.IsNotModified to check whether the returned error was because
  7459  // http.StatusNotModified was returned.
  7460  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
  7461  	gensupport.SetOptions(c.urlParams_, opts...)
  7462  	res, err := c.doRequest("json")
  7463  	if res != nil && res.StatusCode == http.StatusNotModified {
  7464  		if res.Body != nil {
  7465  			res.Body.Close()
  7466  		}
  7467  		return nil, gensupport.WrapError(&googleapi.Error{
  7468  			Code:   res.StatusCode,
  7469  			Header: res.Header,
  7470  		})
  7471  	}
  7472  	if err != nil {
  7473  		return nil, err
  7474  	}
  7475  	defer googleapi.CloseBody(res)
  7476  	if err := googleapi.CheckResponse(res); err != nil {
  7477  		return nil, gensupport.WrapError(err)
  7478  	}
  7479  	ret := &GoogleLongrunningListOperationsResponse{
  7480  		ServerResponse: googleapi.ServerResponse{
  7481  			Header:         res.Header,
  7482  			HTTPStatusCode: res.StatusCode,
  7483  		},
  7484  	}
  7485  	target := &ret
  7486  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7487  		return nil, err
  7488  	}
  7489  	return ret, nil
  7490  }
  7491  
  7492  // Pages invokes f for each page of results.
  7493  // A non-nil error returned from f will halt the iteration.
  7494  // The provided context supersedes any context provided to the Context method.
  7495  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
  7496  	c.ctx_ = ctx
  7497  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7498  	for {
  7499  		x, err := c.Do()
  7500  		if err != nil {
  7501  			return err
  7502  		}
  7503  		if err := f(x); err != nil {
  7504  			return err
  7505  		}
  7506  		if x.NextPageToken == "" {
  7507  			return nil
  7508  		}
  7509  		c.PageToken(x.NextPageToken)
  7510  	}
  7511  }
  7512  
  7513  type ProjectsLocationsOperationsWaitCall struct {
  7514  	s                                     *Service
  7515  	name                                  string
  7516  	googlelongrunningwaitoperationrequest *GoogleLongrunningWaitOperationRequest
  7517  	urlParams_                            gensupport.URLParams
  7518  	ctx_                                  context.Context
  7519  	header_                               http.Header
  7520  }
  7521  
  7522  // Wait: Waits until the specified long-running operation is done or reaches at
  7523  // most a specified timeout, returning the latest state. If the operation is
  7524  // already done, the latest state is immediately returned. If the timeout
  7525  // specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout
  7526  // is used. If the server does not support this method, it returns
  7527  // `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort
  7528  // basis. It may return the latest state before the specified timeout
  7529  // (including immediately), meaning even an immediate response is no guarantee
  7530  // that the operation is done.
  7531  //
  7532  // - name: The name of the operation resource to wait on.
  7533  func (r *ProjectsLocationsOperationsService) Wait(name string, googlelongrunningwaitoperationrequest *GoogleLongrunningWaitOperationRequest) *ProjectsLocationsOperationsWaitCall {
  7534  	c := &ProjectsLocationsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7535  	c.name = name
  7536  	c.googlelongrunningwaitoperationrequest = googlelongrunningwaitoperationrequest
  7537  	return c
  7538  }
  7539  
  7540  // Fields allows partial responses to be retrieved. See
  7541  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7542  // details.
  7543  func (c *ProjectsLocationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsWaitCall {
  7544  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7545  	return c
  7546  }
  7547  
  7548  // Context sets the context to be used in this call's Do method.
  7549  func (c *ProjectsLocationsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsOperationsWaitCall {
  7550  	c.ctx_ = ctx
  7551  	return c
  7552  }
  7553  
  7554  // Header returns a http.Header that can be modified by the caller to add
  7555  // headers to the request.
  7556  func (c *ProjectsLocationsOperationsWaitCall) Header() http.Header {
  7557  	if c.header_ == nil {
  7558  		c.header_ = make(http.Header)
  7559  	}
  7560  	return c.header_
  7561  }
  7562  
  7563  func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Response, error) {
  7564  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7565  	var body io.Reader = nil
  7566  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningwaitoperationrequest)
  7567  	if err != nil {
  7568  		return nil, err
  7569  	}
  7570  	c.urlParams_.Set("alt", alt)
  7571  	c.urlParams_.Set("prettyPrint", "false")
  7572  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:wait")
  7573  	urls += "?" + c.urlParams_.Encode()
  7574  	req, err := http.NewRequest("POST", urls, body)
  7575  	if err != nil {
  7576  		return nil, err
  7577  	}
  7578  	req.Header = reqHeaders
  7579  	googleapi.Expand(req.URL, map[string]string{
  7580  		"name": c.name,
  7581  	})
  7582  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7583  }
  7584  
  7585  // Do executes the "run.projects.locations.operations.wait" call.
  7586  // Any non-2xx status code is an error. Response headers are in either
  7587  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  7588  // returned at all) in error.(*googleapi.Error).Header. Use
  7589  // googleapi.IsNotModified to check whether the returned error was because
  7590  // http.StatusNotModified was returned.
  7591  func (c *ProjectsLocationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  7592  	gensupport.SetOptions(c.urlParams_, opts...)
  7593  	res, err := c.doRequest("json")
  7594  	if res != nil && res.StatusCode == http.StatusNotModified {
  7595  		if res.Body != nil {
  7596  			res.Body.Close()
  7597  		}
  7598  		return nil, gensupport.WrapError(&googleapi.Error{
  7599  			Code:   res.StatusCode,
  7600  			Header: res.Header,
  7601  		})
  7602  	}
  7603  	if err != nil {
  7604  		return nil, err
  7605  	}
  7606  	defer googleapi.CloseBody(res)
  7607  	if err := googleapi.CheckResponse(res); err != nil {
  7608  		return nil, gensupport.WrapError(err)
  7609  	}
  7610  	ret := &GoogleLongrunningOperation{
  7611  		ServerResponse: googleapi.ServerResponse{
  7612  			Header:         res.Header,
  7613  			HTTPStatusCode: res.StatusCode,
  7614  		},
  7615  	}
  7616  	target := &ret
  7617  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7618  		return nil, err
  7619  	}
  7620  	return ret, nil
  7621  }
  7622  
  7623  type ProjectsLocationsServicesCreateCall struct {
  7624  	s                       *Service
  7625  	parent                  string
  7626  	googlecloudrunv2service *GoogleCloudRunV2Service
  7627  	urlParams_              gensupport.URLParams
  7628  	ctx_                    context.Context
  7629  	header_                 http.Header
  7630  }
  7631  
  7632  // Create: Creates a new Service in a given project and location.
  7633  //
  7634  //   - parent: The location and project in which this service should be created.
  7635  //     Format: projects/{project}/locations/{location}, where {project} can be
  7636  //     project id or number. Only lowercase characters, digits, and hyphens.
  7637  func (r *ProjectsLocationsServicesService) Create(parent string, googlecloudrunv2service *GoogleCloudRunV2Service) *ProjectsLocationsServicesCreateCall {
  7638  	c := &ProjectsLocationsServicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7639  	c.parent = parent
  7640  	c.googlecloudrunv2service = googlecloudrunv2service
  7641  	return c
  7642  }
  7643  
  7644  // ServiceId sets the optional parameter "serviceId": Required. The unique
  7645  // identifier for the Service. It must begin with letter, and cannot end with
  7646  // hyphen; must contain fewer than 50 characters. The name of the service
  7647  // becomes {parent}/services/{service_id}.
  7648  func (c *ProjectsLocationsServicesCreateCall) ServiceId(serviceId string) *ProjectsLocationsServicesCreateCall {
  7649  	c.urlParams_.Set("serviceId", serviceId)
  7650  	return c
  7651  }
  7652  
  7653  // ValidateOnly sets the optional parameter "validateOnly": Indicates that the
  7654  // request should be validated and default values populated, without persisting
  7655  // the request or creating any resources.
  7656  func (c *ProjectsLocationsServicesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsServicesCreateCall {
  7657  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  7658  	return c
  7659  }
  7660  
  7661  // Fields allows partial responses to be retrieved. See
  7662  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7663  // details.
  7664  func (c *ProjectsLocationsServicesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesCreateCall {
  7665  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7666  	return c
  7667  }
  7668  
  7669  // Context sets the context to be used in this call's Do method.
  7670  func (c *ProjectsLocationsServicesCreateCall) Context(ctx context.Context) *ProjectsLocationsServicesCreateCall {
  7671  	c.ctx_ = ctx
  7672  	return c
  7673  }
  7674  
  7675  // Header returns a http.Header that can be modified by the caller to add
  7676  // headers to the request.
  7677  func (c *ProjectsLocationsServicesCreateCall) Header() http.Header {
  7678  	if c.header_ == nil {
  7679  		c.header_ = make(http.Header)
  7680  	}
  7681  	return c.header_
  7682  }
  7683  
  7684  func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Response, error) {
  7685  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7686  	var body io.Reader = nil
  7687  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrunv2service)
  7688  	if err != nil {
  7689  		return nil, err
  7690  	}
  7691  	c.urlParams_.Set("alt", alt)
  7692  	c.urlParams_.Set("prettyPrint", "false")
  7693  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/services")
  7694  	urls += "?" + c.urlParams_.Encode()
  7695  	req, err := http.NewRequest("POST", urls, body)
  7696  	if err != nil {
  7697  		return nil, err
  7698  	}
  7699  	req.Header = reqHeaders
  7700  	googleapi.Expand(req.URL, map[string]string{
  7701  		"parent": c.parent,
  7702  	})
  7703  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7704  }
  7705  
  7706  // Do executes the "run.projects.locations.services.create" call.
  7707  // Any non-2xx status code is an error. Response headers are in either
  7708  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  7709  // returned at all) in error.(*googleapi.Error).Header. Use
  7710  // googleapi.IsNotModified to check whether the returned error was because
  7711  // http.StatusNotModified was returned.
  7712  func (c *ProjectsLocationsServicesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  7713  	gensupport.SetOptions(c.urlParams_, opts...)
  7714  	res, err := c.doRequest("json")
  7715  	if res != nil && res.StatusCode == http.StatusNotModified {
  7716  		if res.Body != nil {
  7717  			res.Body.Close()
  7718  		}
  7719  		return nil, gensupport.WrapError(&googleapi.Error{
  7720  			Code:   res.StatusCode,
  7721  			Header: res.Header,
  7722  		})
  7723  	}
  7724  	if err != nil {
  7725  		return nil, err
  7726  	}
  7727  	defer googleapi.CloseBody(res)
  7728  	if err := googleapi.CheckResponse(res); err != nil {
  7729  		return nil, gensupport.WrapError(err)
  7730  	}
  7731  	ret := &GoogleLongrunningOperation{
  7732  		ServerResponse: googleapi.ServerResponse{
  7733  			Header:         res.Header,
  7734  			HTTPStatusCode: res.StatusCode,
  7735  		},
  7736  	}
  7737  	target := &ret
  7738  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7739  		return nil, err
  7740  	}
  7741  	return ret, nil
  7742  }
  7743  
  7744  type ProjectsLocationsServicesDeleteCall struct {
  7745  	s          *Service
  7746  	name       string
  7747  	urlParams_ gensupport.URLParams
  7748  	ctx_       context.Context
  7749  	header_    http.Header
  7750  }
  7751  
  7752  // Delete: Deletes a Service. This will cause the Service to stop serving
  7753  // traffic and will delete all revisions.
  7754  //
  7755  //   - name: The full name of the Service. Format:
  7756  //     projects/{project}/locations/{location}/services/{service}, where
  7757  //     {project} can be project id or number.
  7758  func (r *ProjectsLocationsServicesService) Delete(name string) *ProjectsLocationsServicesDeleteCall {
  7759  	c := &ProjectsLocationsServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7760  	c.name = name
  7761  	return c
  7762  }
  7763  
  7764  // Etag sets the optional parameter "etag": A system-generated fingerprint for
  7765  // this version of the resource. May be used to detect modification conflict
  7766  // during updates.
  7767  func (c *ProjectsLocationsServicesDeleteCall) Etag(etag string) *ProjectsLocationsServicesDeleteCall {
  7768  	c.urlParams_.Set("etag", etag)
  7769  	return c
  7770  }
  7771  
  7772  // ValidateOnly sets the optional parameter "validateOnly": Indicates that the
  7773  // request should be validated without actually deleting any resources.
  7774  func (c *ProjectsLocationsServicesDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsServicesDeleteCall {
  7775  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  7776  	return c
  7777  }
  7778  
  7779  // Fields allows partial responses to be retrieved. See
  7780  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7781  // details.
  7782  func (c *ProjectsLocationsServicesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesDeleteCall {
  7783  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7784  	return c
  7785  }
  7786  
  7787  // Context sets the context to be used in this call's Do method.
  7788  func (c *ProjectsLocationsServicesDeleteCall) Context(ctx context.Context) *ProjectsLocationsServicesDeleteCall {
  7789  	c.ctx_ = ctx
  7790  	return c
  7791  }
  7792  
  7793  // Header returns a http.Header that can be modified by the caller to add
  7794  // headers to the request.
  7795  func (c *ProjectsLocationsServicesDeleteCall) Header() http.Header {
  7796  	if c.header_ == nil {
  7797  		c.header_ = make(http.Header)
  7798  	}
  7799  	return c.header_
  7800  }
  7801  
  7802  func (c *ProjectsLocationsServicesDeleteCall) doRequest(alt string) (*http.Response, error) {
  7803  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7804  	var body io.Reader = nil
  7805  	c.urlParams_.Set("alt", alt)
  7806  	c.urlParams_.Set("prettyPrint", "false")
  7807  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  7808  	urls += "?" + c.urlParams_.Encode()
  7809  	req, err := http.NewRequest("DELETE", urls, body)
  7810  	if err != nil {
  7811  		return nil, err
  7812  	}
  7813  	req.Header = reqHeaders
  7814  	googleapi.Expand(req.URL, map[string]string{
  7815  		"name": c.name,
  7816  	})
  7817  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7818  }
  7819  
  7820  // Do executes the "run.projects.locations.services.delete" call.
  7821  // Any non-2xx status code is an error. Response headers are in either
  7822  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  7823  // returned at all) in error.(*googleapi.Error).Header. Use
  7824  // googleapi.IsNotModified to check whether the returned error was because
  7825  // http.StatusNotModified was returned.
  7826  func (c *ProjectsLocationsServicesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  7827  	gensupport.SetOptions(c.urlParams_, opts...)
  7828  	res, err := c.doRequest("json")
  7829  	if res != nil && res.StatusCode == http.StatusNotModified {
  7830  		if res.Body != nil {
  7831  			res.Body.Close()
  7832  		}
  7833  		return nil, gensupport.WrapError(&googleapi.Error{
  7834  			Code:   res.StatusCode,
  7835  			Header: res.Header,
  7836  		})
  7837  	}
  7838  	if err != nil {
  7839  		return nil, err
  7840  	}
  7841  	defer googleapi.CloseBody(res)
  7842  	if err := googleapi.CheckResponse(res); err != nil {
  7843  		return nil, gensupport.WrapError(err)
  7844  	}
  7845  	ret := &GoogleLongrunningOperation{
  7846  		ServerResponse: googleapi.ServerResponse{
  7847  			Header:         res.Header,
  7848  			HTTPStatusCode: res.StatusCode,
  7849  		},
  7850  	}
  7851  	target := &ret
  7852  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7853  		return nil, err
  7854  	}
  7855  	return ret, nil
  7856  }
  7857  
  7858  type ProjectsLocationsServicesGetCall struct {
  7859  	s            *Service
  7860  	name         string
  7861  	urlParams_   gensupport.URLParams
  7862  	ifNoneMatch_ string
  7863  	ctx_         context.Context
  7864  	header_      http.Header
  7865  }
  7866  
  7867  // Get: Gets information about a Service.
  7868  //
  7869  //   - name: The full name of the Service. Format:
  7870  //     projects/{project}/locations/{location}/services/{service}, where
  7871  //     {project} can be project id or number.
  7872  func (r *ProjectsLocationsServicesService) Get(name string) *ProjectsLocationsServicesGetCall {
  7873  	c := &ProjectsLocationsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7874  	c.name = name
  7875  	return c
  7876  }
  7877  
  7878  // Fields allows partial responses to be retrieved. See
  7879  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7880  // details.
  7881  func (c *ProjectsLocationsServicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesGetCall {
  7882  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7883  	return c
  7884  }
  7885  
  7886  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7887  // object's ETag matches the given value. This is useful for getting updates
  7888  // only after the object has changed since the last request.
  7889  func (c *ProjectsLocationsServicesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesGetCall {
  7890  	c.ifNoneMatch_ = entityTag
  7891  	return c
  7892  }
  7893  
  7894  // Context sets the context to be used in this call's Do method.
  7895  func (c *ProjectsLocationsServicesGetCall) Context(ctx context.Context) *ProjectsLocationsServicesGetCall {
  7896  	c.ctx_ = ctx
  7897  	return c
  7898  }
  7899  
  7900  // Header returns a http.Header that can be modified by the caller to add
  7901  // headers to the request.
  7902  func (c *ProjectsLocationsServicesGetCall) Header() http.Header {
  7903  	if c.header_ == nil {
  7904  		c.header_ = make(http.Header)
  7905  	}
  7906  	return c.header_
  7907  }
  7908  
  7909  func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response, error) {
  7910  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7911  	if c.ifNoneMatch_ != "" {
  7912  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7913  	}
  7914  	var body io.Reader = nil
  7915  	c.urlParams_.Set("alt", alt)
  7916  	c.urlParams_.Set("prettyPrint", "false")
  7917  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  7918  	urls += "?" + c.urlParams_.Encode()
  7919  	req, err := http.NewRequest("GET", urls, body)
  7920  	if err != nil {
  7921  		return nil, err
  7922  	}
  7923  	req.Header = reqHeaders
  7924  	googleapi.Expand(req.URL, map[string]string{
  7925  		"name": c.name,
  7926  	})
  7927  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7928  }
  7929  
  7930  // Do executes the "run.projects.locations.services.get" call.
  7931  // Any non-2xx status code is an error. Response headers are in either
  7932  // *GoogleCloudRunV2Service.ServerResponse.Header or (if a response was
  7933  // returned at all) in error.(*googleapi.Error).Header. Use
  7934  // googleapi.IsNotModified to check whether the returned error was because
  7935  // http.StatusNotModified was returned.
  7936  func (c *ProjectsLocationsServicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2Service, error) {
  7937  	gensupport.SetOptions(c.urlParams_, opts...)
  7938  	res, err := c.doRequest("json")
  7939  	if res != nil && res.StatusCode == http.StatusNotModified {
  7940  		if res.Body != nil {
  7941  			res.Body.Close()
  7942  		}
  7943  		return nil, gensupport.WrapError(&googleapi.Error{
  7944  			Code:   res.StatusCode,
  7945  			Header: res.Header,
  7946  		})
  7947  	}
  7948  	if err != nil {
  7949  		return nil, err
  7950  	}
  7951  	defer googleapi.CloseBody(res)
  7952  	if err := googleapi.CheckResponse(res); err != nil {
  7953  		return nil, gensupport.WrapError(err)
  7954  	}
  7955  	ret := &GoogleCloudRunV2Service{
  7956  		ServerResponse: googleapi.ServerResponse{
  7957  			Header:         res.Header,
  7958  			HTTPStatusCode: res.StatusCode,
  7959  		},
  7960  	}
  7961  	target := &ret
  7962  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7963  		return nil, err
  7964  	}
  7965  	return ret, nil
  7966  }
  7967  
  7968  type ProjectsLocationsServicesGetIamPolicyCall struct {
  7969  	s            *Service
  7970  	resource     string
  7971  	urlParams_   gensupport.URLParams
  7972  	ifNoneMatch_ string
  7973  	ctx_         context.Context
  7974  	header_      http.Header
  7975  }
  7976  
  7977  // GetIamPolicy: Gets the IAM Access Control policy currently in effect for the
  7978  // given Cloud Run Service. This result does not include any inherited
  7979  // policies.
  7980  //
  7981  //   - resource: REQUIRED: The resource for which the policy is being requested.
  7982  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  7983  //     for the appropriate value for this field.
  7984  func (r *ProjectsLocationsServicesService) GetIamPolicy(resource string) *ProjectsLocationsServicesGetIamPolicyCall {
  7985  	c := &ProjectsLocationsServicesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7986  	c.resource = resource
  7987  	return c
  7988  }
  7989  
  7990  // OptionsRequestedPolicyVersion sets the optional parameter
  7991  // "options.requestedPolicyVersion": The maximum policy version that will be
  7992  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
  7993  // an invalid value will be rejected. Requests for policies with any
  7994  // conditional role bindings must specify version 3. Policies with no
  7995  // conditional role bindings may specify any valid value or leave the field
  7996  // unset. The policy in the response might use the policy version that you
  7997  // specified, or it might use a lower policy version. For example, if you
  7998  // specify version 3, but the policy has no conditional role bindings, the
  7999  // response uses version 1. To learn which resources support conditions in
  8000  // their IAM policies, see the IAM documentation
  8001  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  8002  func (c *ProjectsLocationsServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServicesGetIamPolicyCall {
  8003  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  8004  	return c
  8005  }
  8006  
  8007  // Fields allows partial responses to be retrieved. See
  8008  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8009  // details.
  8010  func (c *ProjectsLocationsServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesGetIamPolicyCall {
  8011  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8012  	return c
  8013  }
  8014  
  8015  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8016  // object's ETag matches the given value. This is useful for getting updates
  8017  // only after the object has changed since the last request.
  8018  func (c *ProjectsLocationsServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesGetIamPolicyCall {
  8019  	c.ifNoneMatch_ = entityTag
  8020  	return c
  8021  }
  8022  
  8023  // Context sets the context to be used in this call's Do method.
  8024  func (c *ProjectsLocationsServicesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesGetIamPolicyCall {
  8025  	c.ctx_ = ctx
  8026  	return c
  8027  }
  8028  
  8029  // Header returns a http.Header that can be modified by the caller to add
  8030  // headers to the request.
  8031  func (c *ProjectsLocationsServicesGetIamPolicyCall) Header() http.Header {
  8032  	if c.header_ == nil {
  8033  		c.header_ = make(http.Header)
  8034  	}
  8035  	return c.header_
  8036  }
  8037  
  8038  func (c *ProjectsLocationsServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  8039  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8040  	if c.ifNoneMatch_ != "" {
  8041  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8042  	}
  8043  	var body io.Reader = nil
  8044  	c.urlParams_.Set("alt", alt)
  8045  	c.urlParams_.Set("prettyPrint", "false")
  8046  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:getIamPolicy")
  8047  	urls += "?" + c.urlParams_.Encode()
  8048  	req, err := http.NewRequest("GET", urls, body)
  8049  	if err != nil {
  8050  		return nil, err
  8051  	}
  8052  	req.Header = reqHeaders
  8053  	googleapi.Expand(req.URL, map[string]string{
  8054  		"resource": c.resource,
  8055  	})
  8056  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8057  }
  8058  
  8059  // Do executes the "run.projects.locations.services.getIamPolicy" call.
  8060  // Any non-2xx status code is an error. Response headers are in either
  8061  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
  8062  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8063  // check whether the returned error was because http.StatusNotModified was
  8064  // returned.
  8065  func (c *ProjectsLocationsServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
  8066  	gensupport.SetOptions(c.urlParams_, opts...)
  8067  	res, err := c.doRequest("json")
  8068  	if res != nil && res.StatusCode == http.StatusNotModified {
  8069  		if res.Body != nil {
  8070  			res.Body.Close()
  8071  		}
  8072  		return nil, gensupport.WrapError(&googleapi.Error{
  8073  			Code:   res.StatusCode,
  8074  			Header: res.Header,
  8075  		})
  8076  	}
  8077  	if err != nil {
  8078  		return nil, err
  8079  	}
  8080  	defer googleapi.CloseBody(res)
  8081  	if err := googleapi.CheckResponse(res); err != nil {
  8082  		return nil, gensupport.WrapError(err)
  8083  	}
  8084  	ret := &GoogleIamV1Policy{
  8085  		ServerResponse: googleapi.ServerResponse{
  8086  			Header:         res.Header,
  8087  			HTTPStatusCode: res.StatusCode,
  8088  		},
  8089  	}
  8090  	target := &ret
  8091  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8092  		return nil, err
  8093  	}
  8094  	return ret, nil
  8095  }
  8096  
  8097  type ProjectsLocationsServicesListCall struct {
  8098  	s            *Service
  8099  	parent       string
  8100  	urlParams_   gensupport.URLParams
  8101  	ifNoneMatch_ string
  8102  	ctx_         context.Context
  8103  	header_      http.Header
  8104  }
  8105  
  8106  // List: Lists Services.
  8107  //
  8108  //   - parent: The location and project to list resources on. Location must be a
  8109  //     valid Google Cloud region, and cannot be the "-" wildcard. Format:
  8110  //     projects/{project}/locations/{location}, where {project} can be project id
  8111  //     or number.
  8112  func (r *ProjectsLocationsServicesService) List(parent string) *ProjectsLocationsServicesListCall {
  8113  	c := &ProjectsLocationsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8114  	c.parent = parent
  8115  	return c
  8116  }
  8117  
  8118  // PageSize sets the optional parameter "pageSize": Maximum number of Services
  8119  // to return in this call.
  8120  func (c *ProjectsLocationsServicesListCall) PageSize(pageSize int64) *ProjectsLocationsServicesListCall {
  8121  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8122  	return c
  8123  }
  8124  
  8125  // PageToken sets the optional parameter "pageToken": A page token received
  8126  // from a previous call to ListServices. All other parameters must match.
  8127  func (c *ProjectsLocationsServicesListCall) PageToken(pageToken string) *ProjectsLocationsServicesListCall {
  8128  	c.urlParams_.Set("pageToken", pageToken)
  8129  	return c
  8130  }
  8131  
  8132  // ShowDeleted sets the optional parameter "showDeleted": If true, returns
  8133  // deleted (but unexpired) resources along with active ones.
  8134  func (c *ProjectsLocationsServicesListCall) ShowDeleted(showDeleted bool) *ProjectsLocationsServicesListCall {
  8135  	c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted))
  8136  	return c
  8137  }
  8138  
  8139  // Fields allows partial responses to be retrieved. See
  8140  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8141  // details.
  8142  func (c *ProjectsLocationsServicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesListCall {
  8143  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8144  	return c
  8145  }
  8146  
  8147  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8148  // object's ETag matches the given value. This is useful for getting updates
  8149  // only after the object has changed since the last request.
  8150  func (c *ProjectsLocationsServicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesListCall {
  8151  	c.ifNoneMatch_ = entityTag
  8152  	return c
  8153  }
  8154  
  8155  // Context sets the context to be used in this call's Do method.
  8156  func (c *ProjectsLocationsServicesListCall) Context(ctx context.Context) *ProjectsLocationsServicesListCall {
  8157  	c.ctx_ = ctx
  8158  	return c
  8159  }
  8160  
  8161  // Header returns a http.Header that can be modified by the caller to add
  8162  // headers to the request.
  8163  func (c *ProjectsLocationsServicesListCall) Header() http.Header {
  8164  	if c.header_ == nil {
  8165  		c.header_ = make(http.Header)
  8166  	}
  8167  	return c.header_
  8168  }
  8169  
  8170  func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Response, error) {
  8171  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8172  	if c.ifNoneMatch_ != "" {
  8173  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8174  	}
  8175  	var body io.Reader = nil
  8176  	c.urlParams_.Set("alt", alt)
  8177  	c.urlParams_.Set("prettyPrint", "false")
  8178  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/services")
  8179  	urls += "?" + c.urlParams_.Encode()
  8180  	req, err := http.NewRequest("GET", urls, body)
  8181  	if err != nil {
  8182  		return nil, err
  8183  	}
  8184  	req.Header = reqHeaders
  8185  	googleapi.Expand(req.URL, map[string]string{
  8186  		"parent": c.parent,
  8187  	})
  8188  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8189  }
  8190  
  8191  // Do executes the "run.projects.locations.services.list" call.
  8192  // Any non-2xx status code is an error. Response headers are in either
  8193  // *GoogleCloudRunV2ListServicesResponse.ServerResponse.Header or (if a
  8194  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8195  // googleapi.IsNotModified to check whether the returned error was because
  8196  // http.StatusNotModified was returned.
  8197  func (c *ProjectsLocationsServicesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2ListServicesResponse, error) {
  8198  	gensupport.SetOptions(c.urlParams_, opts...)
  8199  	res, err := c.doRequest("json")
  8200  	if res != nil && res.StatusCode == http.StatusNotModified {
  8201  		if res.Body != nil {
  8202  			res.Body.Close()
  8203  		}
  8204  		return nil, gensupport.WrapError(&googleapi.Error{
  8205  			Code:   res.StatusCode,
  8206  			Header: res.Header,
  8207  		})
  8208  	}
  8209  	if err != nil {
  8210  		return nil, err
  8211  	}
  8212  	defer googleapi.CloseBody(res)
  8213  	if err := googleapi.CheckResponse(res); err != nil {
  8214  		return nil, gensupport.WrapError(err)
  8215  	}
  8216  	ret := &GoogleCloudRunV2ListServicesResponse{
  8217  		ServerResponse: googleapi.ServerResponse{
  8218  			Header:         res.Header,
  8219  			HTTPStatusCode: res.StatusCode,
  8220  		},
  8221  	}
  8222  	target := &ret
  8223  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8224  		return nil, err
  8225  	}
  8226  	return ret, nil
  8227  }
  8228  
  8229  // Pages invokes f for each page of results.
  8230  // A non-nil error returned from f will halt the iteration.
  8231  // The provided context supersedes any context provided to the Context method.
  8232  func (c *ProjectsLocationsServicesListCall) Pages(ctx context.Context, f func(*GoogleCloudRunV2ListServicesResponse) error) error {
  8233  	c.ctx_ = ctx
  8234  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8235  	for {
  8236  		x, err := c.Do()
  8237  		if err != nil {
  8238  			return err
  8239  		}
  8240  		if err := f(x); err != nil {
  8241  			return err
  8242  		}
  8243  		if x.NextPageToken == "" {
  8244  			return nil
  8245  		}
  8246  		c.PageToken(x.NextPageToken)
  8247  	}
  8248  }
  8249  
  8250  type ProjectsLocationsServicesPatchCall struct {
  8251  	s                       *Service
  8252  	name                    string
  8253  	googlecloudrunv2service *GoogleCloudRunV2Service
  8254  	urlParams_              gensupport.URLParams
  8255  	ctx_                    context.Context
  8256  	header_                 http.Header
  8257  }
  8258  
  8259  // Patch: Updates a Service.
  8260  //
  8261  //   - name: The fully qualified name of this Service. In CreateServiceRequest,
  8262  //     this field is ignored, and instead composed from
  8263  //     CreateServiceRequest.parent and CreateServiceRequest.service_id. Format:
  8264  //     projects/{project}/locations/{location}/services/{service_id}.
  8265  func (r *ProjectsLocationsServicesService) Patch(name string, googlecloudrunv2service *GoogleCloudRunV2Service) *ProjectsLocationsServicesPatchCall {
  8266  	c := &ProjectsLocationsServicesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8267  	c.name = name
  8268  	c.googlecloudrunv2service = googlecloudrunv2service
  8269  	return c
  8270  }
  8271  
  8272  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
  8273  // if the Service does not exist, it will create a new one. The caller must
  8274  // have 'run.services.create' permissions if this is set to true and the
  8275  // Service does not exist.
  8276  func (c *ProjectsLocationsServicesPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsServicesPatchCall {
  8277  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
  8278  	return c
  8279  }
  8280  
  8281  // UpdateMask sets the optional parameter "updateMask": The list of fields to
  8282  // be updated.
  8283  func (c *ProjectsLocationsServicesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsServicesPatchCall {
  8284  	c.urlParams_.Set("updateMask", updateMask)
  8285  	return c
  8286  }
  8287  
  8288  // ValidateOnly sets the optional parameter "validateOnly": Indicates that the
  8289  // request should be validated and default values populated, without persisting
  8290  // the request or updating any resources.
  8291  func (c *ProjectsLocationsServicesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsServicesPatchCall {
  8292  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  8293  	return c
  8294  }
  8295  
  8296  // Fields allows partial responses to be retrieved. See
  8297  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8298  // details.
  8299  func (c *ProjectsLocationsServicesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesPatchCall {
  8300  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8301  	return c
  8302  }
  8303  
  8304  // Context sets the context to be used in this call's Do method.
  8305  func (c *ProjectsLocationsServicesPatchCall) Context(ctx context.Context) *ProjectsLocationsServicesPatchCall {
  8306  	c.ctx_ = ctx
  8307  	return c
  8308  }
  8309  
  8310  // Header returns a http.Header that can be modified by the caller to add
  8311  // headers to the request.
  8312  func (c *ProjectsLocationsServicesPatchCall) Header() http.Header {
  8313  	if c.header_ == nil {
  8314  		c.header_ = make(http.Header)
  8315  	}
  8316  	return c.header_
  8317  }
  8318  
  8319  func (c *ProjectsLocationsServicesPatchCall) doRequest(alt string) (*http.Response, error) {
  8320  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8321  	var body io.Reader = nil
  8322  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrunv2service)
  8323  	if err != nil {
  8324  		return nil, err
  8325  	}
  8326  	c.urlParams_.Set("alt", alt)
  8327  	c.urlParams_.Set("prettyPrint", "false")
  8328  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  8329  	urls += "?" + c.urlParams_.Encode()
  8330  	req, err := http.NewRequest("PATCH", urls, body)
  8331  	if err != nil {
  8332  		return nil, err
  8333  	}
  8334  	req.Header = reqHeaders
  8335  	googleapi.Expand(req.URL, map[string]string{
  8336  		"name": c.name,
  8337  	})
  8338  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8339  }
  8340  
  8341  // Do executes the "run.projects.locations.services.patch" call.
  8342  // Any non-2xx status code is an error. Response headers are in either
  8343  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  8344  // returned at all) in error.(*googleapi.Error).Header. Use
  8345  // googleapi.IsNotModified to check whether the returned error was because
  8346  // http.StatusNotModified was returned.
  8347  func (c *ProjectsLocationsServicesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  8348  	gensupport.SetOptions(c.urlParams_, opts...)
  8349  	res, err := c.doRequest("json")
  8350  	if res != nil && res.StatusCode == http.StatusNotModified {
  8351  		if res.Body != nil {
  8352  			res.Body.Close()
  8353  		}
  8354  		return nil, gensupport.WrapError(&googleapi.Error{
  8355  			Code:   res.StatusCode,
  8356  			Header: res.Header,
  8357  		})
  8358  	}
  8359  	if err != nil {
  8360  		return nil, err
  8361  	}
  8362  	defer googleapi.CloseBody(res)
  8363  	if err := googleapi.CheckResponse(res); err != nil {
  8364  		return nil, gensupport.WrapError(err)
  8365  	}
  8366  	ret := &GoogleLongrunningOperation{
  8367  		ServerResponse: googleapi.ServerResponse{
  8368  			Header:         res.Header,
  8369  			HTTPStatusCode: res.StatusCode,
  8370  		},
  8371  	}
  8372  	target := &ret
  8373  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8374  		return nil, err
  8375  	}
  8376  	return ret, nil
  8377  }
  8378  
  8379  type ProjectsLocationsServicesSetIamPolicyCall struct {
  8380  	s                              *Service
  8381  	resource                       string
  8382  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
  8383  	urlParams_                     gensupport.URLParams
  8384  	ctx_                           context.Context
  8385  	header_                        http.Header
  8386  }
  8387  
  8388  // SetIamPolicy: Sets the IAM Access control policy for the specified Service.
  8389  // Overwrites any existing policy.
  8390  //
  8391  //   - resource: REQUIRED: The resource for which the policy is being specified.
  8392  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  8393  //     for the appropriate value for this field.
  8394  func (r *ProjectsLocationsServicesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsServicesSetIamPolicyCall {
  8395  	c := &ProjectsLocationsServicesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8396  	c.resource = resource
  8397  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
  8398  	return c
  8399  }
  8400  
  8401  // Fields allows partial responses to be retrieved. See
  8402  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8403  // details.
  8404  func (c *ProjectsLocationsServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesSetIamPolicyCall {
  8405  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8406  	return c
  8407  }
  8408  
  8409  // Context sets the context to be used in this call's Do method.
  8410  func (c *ProjectsLocationsServicesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesSetIamPolicyCall {
  8411  	c.ctx_ = ctx
  8412  	return c
  8413  }
  8414  
  8415  // Header returns a http.Header that can be modified by the caller to add
  8416  // headers to the request.
  8417  func (c *ProjectsLocationsServicesSetIamPolicyCall) Header() http.Header {
  8418  	if c.header_ == nil {
  8419  		c.header_ = make(http.Header)
  8420  	}
  8421  	return c.header_
  8422  }
  8423  
  8424  func (c *ProjectsLocationsServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  8425  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8426  	var body io.Reader = nil
  8427  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
  8428  	if err != nil {
  8429  		return nil, err
  8430  	}
  8431  	c.urlParams_.Set("alt", alt)
  8432  	c.urlParams_.Set("prettyPrint", "false")
  8433  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:setIamPolicy")
  8434  	urls += "?" + c.urlParams_.Encode()
  8435  	req, err := http.NewRequest("POST", urls, body)
  8436  	if err != nil {
  8437  		return nil, err
  8438  	}
  8439  	req.Header = reqHeaders
  8440  	googleapi.Expand(req.URL, map[string]string{
  8441  		"resource": c.resource,
  8442  	})
  8443  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8444  }
  8445  
  8446  // Do executes the "run.projects.locations.services.setIamPolicy" call.
  8447  // Any non-2xx status code is an error. Response headers are in either
  8448  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
  8449  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8450  // check whether the returned error was because http.StatusNotModified was
  8451  // returned.
  8452  func (c *ProjectsLocationsServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
  8453  	gensupport.SetOptions(c.urlParams_, opts...)
  8454  	res, err := c.doRequest("json")
  8455  	if res != nil && res.StatusCode == http.StatusNotModified {
  8456  		if res.Body != nil {
  8457  			res.Body.Close()
  8458  		}
  8459  		return nil, gensupport.WrapError(&googleapi.Error{
  8460  			Code:   res.StatusCode,
  8461  			Header: res.Header,
  8462  		})
  8463  	}
  8464  	if err != nil {
  8465  		return nil, err
  8466  	}
  8467  	defer googleapi.CloseBody(res)
  8468  	if err := googleapi.CheckResponse(res); err != nil {
  8469  		return nil, gensupport.WrapError(err)
  8470  	}
  8471  	ret := &GoogleIamV1Policy{
  8472  		ServerResponse: googleapi.ServerResponse{
  8473  			Header:         res.Header,
  8474  			HTTPStatusCode: res.StatusCode,
  8475  		},
  8476  	}
  8477  	target := &ret
  8478  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8479  		return nil, err
  8480  	}
  8481  	return ret, nil
  8482  }
  8483  
  8484  type ProjectsLocationsServicesTestIamPermissionsCall struct {
  8485  	s                                    *Service
  8486  	resource                             string
  8487  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
  8488  	urlParams_                           gensupport.URLParams
  8489  	ctx_                                 context.Context
  8490  	header_                              http.Header
  8491  }
  8492  
  8493  // TestIamPermissions: Returns permissions that a caller has on the specified
  8494  // Project. There are no permissions required for making this API call.
  8495  //
  8496  //   - resource: REQUIRED: The resource for which the policy detail is being
  8497  //     requested. See Resource names
  8498  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  8499  //     value for this field.
  8500  func (r *ProjectsLocationsServicesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsServicesTestIamPermissionsCall {
  8501  	c := &ProjectsLocationsServicesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8502  	c.resource = resource
  8503  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
  8504  	return c
  8505  }
  8506  
  8507  // Fields allows partial responses to be retrieved. See
  8508  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8509  // details.
  8510  func (c *ProjectsLocationsServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesTestIamPermissionsCall {
  8511  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8512  	return c
  8513  }
  8514  
  8515  // Context sets the context to be used in this call's Do method.
  8516  func (c *ProjectsLocationsServicesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServicesTestIamPermissionsCall {
  8517  	c.ctx_ = ctx
  8518  	return c
  8519  }
  8520  
  8521  // Header returns a http.Header that can be modified by the caller to add
  8522  // headers to the request.
  8523  func (c *ProjectsLocationsServicesTestIamPermissionsCall) Header() http.Header {
  8524  	if c.header_ == nil {
  8525  		c.header_ = make(http.Header)
  8526  	}
  8527  	return c.header_
  8528  }
  8529  
  8530  func (c *ProjectsLocationsServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  8531  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8532  	var body io.Reader = nil
  8533  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
  8534  	if err != nil {
  8535  		return nil, err
  8536  	}
  8537  	c.urlParams_.Set("alt", alt)
  8538  	c.urlParams_.Set("prettyPrint", "false")
  8539  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:testIamPermissions")
  8540  	urls += "?" + c.urlParams_.Encode()
  8541  	req, err := http.NewRequest("POST", urls, body)
  8542  	if err != nil {
  8543  		return nil, err
  8544  	}
  8545  	req.Header = reqHeaders
  8546  	googleapi.Expand(req.URL, map[string]string{
  8547  		"resource": c.resource,
  8548  	})
  8549  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8550  }
  8551  
  8552  // Do executes the "run.projects.locations.services.testIamPermissions" call.
  8553  // Any non-2xx status code is an error. Response headers are in either
  8554  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
  8555  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8556  // googleapi.IsNotModified to check whether the returned error was because
  8557  // http.StatusNotModified was returned.
  8558  func (c *ProjectsLocationsServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
  8559  	gensupport.SetOptions(c.urlParams_, opts...)
  8560  	res, err := c.doRequest("json")
  8561  	if res != nil && res.StatusCode == http.StatusNotModified {
  8562  		if res.Body != nil {
  8563  			res.Body.Close()
  8564  		}
  8565  		return nil, gensupport.WrapError(&googleapi.Error{
  8566  			Code:   res.StatusCode,
  8567  			Header: res.Header,
  8568  		})
  8569  	}
  8570  	if err != nil {
  8571  		return nil, err
  8572  	}
  8573  	defer googleapi.CloseBody(res)
  8574  	if err := googleapi.CheckResponse(res); err != nil {
  8575  		return nil, gensupport.WrapError(err)
  8576  	}
  8577  	ret := &GoogleIamV1TestIamPermissionsResponse{
  8578  		ServerResponse: googleapi.ServerResponse{
  8579  			Header:         res.Header,
  8580  			HTTPStatusCode: res.StatusCode,
  8581  		},
  8582  	}
  8583  	target := &ret
  8584  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8585  		return nil, err
  8586  	}
  8587  	return ret, nil
  8588  }
  8589  
  8590  type ProjectsLocationsServicesRevisionsDeleteCall struct {
  8591  	s          *Service
  8592  	name       string
  8593  	urlParams_ gensupport.URLParams
  8594  	ctx_       context.Context
  8595  	header_    http.Header
  8596  }
  8597  
  8598  // Delete: Deletes a Revision.
  8599  //
  8600  //   - name: The name of the Revision to delete. Format:
  8601  //     projects/{project}/locations/{location}/services/{service}/revisions/{revis
  8602  //     ion}.
  8603  func (r *ProjectsLocationsServicesRevisionsService) Delete(name string) *ProjectsLocationsServicesRevisionsDeleteCall {
  8604  	c := &ProjectsLocationsServicesRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8605  	c.name = name
  8606  	return c
  8607  }
  8608  
  8609  // Etag sets the optional parameter "etag": A system-generated fingerprint for
  8610  // this version of the resource. This may be used to detect modification
  8611  // conflict during updates.
  8612  func (c *ProjectsLocationsServicesRevisionsDeleteCall) Etag(etag string) *ProjectsLocationsServicesRevisionsDeleteCall {
  8613  	c.urlParams_.Set("etag", etag)
  8614  	return c
  8615  }
  8616  
  8617  // ValidateOnly sets the optional parameter "validateOnly": Indicates that the
  8618  // request should be validated without actually deleting any resources.
  8619  func (c *ProjectsLocationsServicesRevisionsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsServicesRevisionsDeleteCall {
  8620  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  8621  	return c
  8622  }
  8623  
  8624  // Fields allows partial responses to be retrieved. See
  8625  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8626  // details.
  8627  func (c *ProjectsLocationsServicesRevisionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesRevisionsDeleteCall {
  8628  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8629  	return c
  8630  }
  8631  
  8632  // Context sets the context to be used in this call's Do method.
  8633  func (c *ProjectsLocationsServicesRevisionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsServicesRevisionsDeleteCall {
  8634  	c.ctx_ = ctx
  8635  	return c
  8636  }
  8637  
  8638  // Header returns a http.Header that can be modified by the caller to add
  8639  // headers to the request.
  8640  func (c *ProjectsLocationsServicesRevisionsDeleteCall) Header() http.Header {
  8641  	if c.header_ == nil {
  8642  		c.header_ = make(http.Header)
  8643  	}
  8644  	return c.header_
  8645  }
  8646  
  8647  func (c *ProjectsLocationsServicesRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
  8648  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8649  	var body io.Reader = nil
  8650  	c.urlParams_.Set("alt", alt)
  8651  	c.urlParams_.Set("prettyPrint", "false")
  8652  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  8653  	urls += "?" + c.urlParams_.Encode()
  8654  	req, err := http.NewRequest("DELETE", urls, body)
  8655  	if err != nil {
  8656  		return nil, err
  8657  	}
  8658  	req.Header = reqHeaders
  8659  	googleapi.Expand(req.URL, map[string]string{
  8660  		"name": c.name,
  8661  	})
  8662  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8663  }
  8664  
  8665  // Do executes the "run.projects.locations.services.revisions.delete" call.
  8666  // Any non-2xx status code is an error. Response headers are in either
  8667  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  8668  // returned at all) in error.(*googleapi.Error).Header. Use
  8669  // googleapi.IsNotModified to check whether the returned error was because
  8670  // http.StatusNotModified was returned.
  8671  func (c *ProjectsLocationsServicesRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  8672  	gensupport.SetOptions(c.urlParams_, opts...)
  8673  	res, err := c.doRequest("json")
  8674  	if res != nil && res.StatusCode == http.StatusNotModified {
  8675  		if res.Body != nil {
  8676  			res.Body.Close()
  8677  		}
  8678  		return nil, gensupport.WrapError(&googleapi.Error{
  8679  			Code:   res.StatusCode,
  8680  			Header: res.Header,
  8681  		})
  8682  	}
  8683  	if err != nil {
  8684  		return nil, err
  8685  	}
  8686  	defer googleapi.CloseBody(res)
  8687  	if err := googleapi.CheckResponse(res); err != nil {
  8688  		return nil, gensupport.WrapError(err)
  8689  	}
  8690  	ret := &GoogleLongrunningOperation{
  8691  		ServerResponse: googleapi.ServerResponse{
  8692  			Header:         res.Header,
  8693  			HTTPStatusCode: res.StatusCode,
  8694  		},
  8695  	}
  8696  	target := &ret
  8697  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8698  		return nil, err
  8699  	}
  8700  	return ret, nil
  8701  }
  8702  
  8703  type ProjectsLocationsServicesRevisionsExportStatusCall struct {
  8704  	s            *Service
  8705  	name         string
  8706  	operationId  string
  8707  	urlParams_   gensupport.URLParams
  8708  	ifNoneMatch_ string
  8709  	ctx_         context.Context
  8710  	header_      http.Header
  8711  }
  8712  
  8713  // ExportStatus: Read the status of an image export operation.
  8714  //
  8715  //   - name: The name of the resource of which image export operation status has
  8716  //     to be fetched. Format:
  8717  //     `projects/{project_id_or_number}/locations/{location}/services/{service}/re
  8718  //     visions/{revision}` for Revision
  8719  //     `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions
  8720  //     /{execution}` for Execution.
  8721  //   - operationId: The operation id returned from ExportImage.
  8722  func (r *ProjectsLocationsServicesRevisionsService) ExportStatus(name string, operationId string) *ProjectsLocationsServicesRevisionsExportStatusCall {
  8723  	c := &ProjectsLocationsServicesRevisionsExportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8724  	c.name = name
  8725  	c.operationId = operationId
  8726  	return c
  8727  }
  8728  
  8729  // Fields allows partial responses to be retrieved. See
  8730  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8731  // details.
  8732  func (c *ProjectsLocationsServicesRevisionsExportStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesRevisionsExportStatusCall {
  8733  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8734  	return c
  8735  }
  8736  
  8737  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8738  // object's ETag matches the given value. This is useful for getting updates
  8739  // only after the object has changed since the last request.
  8740  func (c *ProjectsLocationsServicesRevisionsExportStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesRevisionsExportStatusCall {
  8741  	c.ifNoneMatch_ = entityTag
  8742  	return c
  8743  }
  8744  
  8745  // Context sets the context to be used in this call's Do method.
  8746  func (c *ProjectsLocationsServicesRevisionsExportStatusCall) Context(ctx context.Context) *ProjectsLocationsServicesRevisionsExportStatusCall {
  8747  	c.ctx_ = ctx
  8748  	return c
  8749  }
  8750  
  8751  // Header returns a http.Header that can be modified by the caller to add
  8752  // headers to the request.
  8753  func (c *ProjectsLocationsServicesRevisionsExportStatusCall) Header() http.Header {
  8754  	if c.header_ == nil {
  8755  		c.header_ = make(http.Header)
  8756  	}
  8757  	return c.header_
  8758  }
  8759  
  8760  func (c *ProjectsLocationsServicesRevisionsExportStatusCall) doRequest(alt string) (*http.Response, error) {
  8761  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8762  	if c.ifNoneMatch_ != "" {
  8763  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8764  	}
  8765  	var body io.Reader = nil
  8766  	c.urlParams_.Set("alt", alt)
  8767  	c.urlParams_.Set("prettyPrint", "false")
  8768  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/{+operationId}:exportStatus")
  8769  	urls += "?" + c.urlParams_.Encode()
  8770  	req, err := http.NewRequest("GET", urls, body)
  8771  	if err != nil {
  8772  		return nil, err
  8773  	}
  8774  	req.Header = reqHeaders
  8775  	googleapi.Expand(req.URL, map[string]string{
  8776  		"name":        c.name,
  8777  		"operationId": c.operationId,
  8778  	})
  8779  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8780  }
  8781  
  8782  // Do executes the "run.projects.locations.services.revisions.exportStatus" call.
  8783  // Any non-2xx status code is an error. Response headers are in either
  8784  // *GoogleCloudRunV2ExportStatusResponse.ServerResponse.Header or (if a
  8785  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8786  // googleapi.IsNotModified to check whether the returned error was because
  8787  // http.StatusNotModified was returned.
  8788  func (c *ProjectsLocationsServicesRevisionsExportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2ExportStatusResponse, error) {
  8789  	gensupport.SetOptions(c.urlParams_, opts...)
  8790  	res, err := c.doRequest("json")
  8791  	if res != nil && res.StatusCode == http.StatusNotModified {
  8792  		if res.Body != nil {
  8793  			res.Body.Close()
  8794  		}
  8795  		return nil, gensupport.WrapError(&googleapi.Error{
  8796  			Code:   res.StatusCode,
  8797  			Header: res.Header,
  8798  		})
  8799  	}
  8800  	if err != nil {
  8801  		return nil, err
  8802  	}
  8803  	defer googleapi.CloseBody(res)
  8804  	if err := googleapi.CheckResponse(res); err != nil {
  8805  		return nil, gensupport.WrapError(err)
  8806  	}
  8807  	ret := &GoogleCloudRunV2ExportStatusResponse{
  8808  		ServerResponse: googleapi.ServerResponse{
  8809  			Header:         res.Header,
  8810  			HTTPStatusCode: res.StatusCode,
  8811  		},
  8812  	}
  8813  	target := &ret
  8814  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8815  		return nil, err
  8816  	}
  8817  	return ret, nil
  8818  }
  8819  
  8820  type ProjectsLocationsServicesRevisionsGetCall struct {
  8821  	s            *Service
  8822  	name         string
  8823  	urlParams_   gensupport.URLParams
  8824  	ifNoneMatch_ string
  8825  	ctx_         context.Context
  8826  	header_      http.Header
  8827  }
  8828  
  8829  // Get: Gets information about a Revision.
  8830  //
  8831  //   - name: The full name of the Revision. Format:
  8832  //     projects/{project}/locations/{location}/services/{service}/revisions/{revis
  8833  //     ion}.
  8834  func (r *ProjectsLocationsServicesRevisionsService) Get(name string) *ProjectsLocationsServicesRevisionsGetCall {
  8835  	c := &ProjectsLocationsServicesRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8836  	c.name = name
  8837  	return c
  8838  }
  8839  
  8840  // Fields allows partial responses to be retrieved. See
  8841  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8842  // details.
  8843  func (c *ProjectsLocationsServicesRevisionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesRevisionsGetCall {
  8844  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8845  	return c
  8846  }
  8847  
  8848  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8849  // object's ETag matches the given value. This is useful for getting updates
  8850  // only after the object has changed since the last request.
  8851  func (c *ProjectsLocationsServicesRevisionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesRevisionsGetCall {
  8852  	c.ifNoneMatch_ = entityTag
  8853  	return c
  8854  }
  8855  
  8856  // Context sets the context to be used in this call's Do method.
  8857  func (c *ProjectsLocationsServicesRevisionsGetCall) Context(ctx context.Context) *ProjectsLocationsServicesRevisionsGetCall {
  8858  	c.ctx_ = ctx
  8859  	return c
  8860  }
  8861  
  8862  // Header returns a http.Header that can be modified by the caller to add
  8863  // headers to the request.
  8864  func (c *ProjectsLocationsServicesRevisionsGetCall) Header() http.Header {
  8865  	if c.header_ == nil {
  8866  		c.header_ = make(http.Header)
  8867  	}
  8868  	return c.header_
  8869  }
  8870  
  8871  func (c *ProjectsLocationsServicesRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
  8872  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8873  	if c.ifNoneMatch_ != "" {
  8874  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8875  	}
  8876  	var body io.Reader = nil
  8877  	c.urlParams_.Set("alt", alt)
  8878  	c.urlParams_.Set("prettyPrint", "false")
  8879  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  8880  	urls += "?" + c.urlParams_.Encode()
  8881  	req, err := http.NewRequest("GET", urls, body)
  8882  	if err != nil {
  8883  		return nil, err
  8884  	}
  8885  	req.Header = reqHeaders
  8886  	googleapi.Expand(req.URL, map[string]string{
  8887  		"name": c.name,
  8888  	})
  8889  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8890  }
  8891  
  8892  // Do executes the "run.projects.locations.services.revisions.get" call.
  8893  // Any non-2xx status code is an error. Response headers are in either
  8894  // *GoogleCloudRunV2Revision.ServerResponse.Header or (if a response was
  8895  // returned at all) in error.(*googleapi.Error).Header. Use
  8896  // googleapi.IsNotModified to check whether the returned error was because
  8897  // http.StatusNotModified was returned.
  8898  func (c *ProjectsLocationsServicesRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2Revision, error) {
  8899  	gensupport.SetOptions(c.urlParams_, opts...)
  8900  	res, err := c.doRequest("json")
  8901  	if res != nil && res.StatusCode == http.StatusNotModified {
  8902  		if res.Body != nil {
  8903  			res.Body.Close()
  8904  		}
  8905  		return nil, gensupport.WrapError(&googleapi.Error{
  8906  			Code:   res.StatusCode,
  8907  			Header: res.Header,
  8908  		})
  8909  	}
  8910  	if err != nil {
  8911  		return nil, err
  8912  	}
  8913  	defer googleapi.CloseBody(res)
  8914  	if err := googleapi.CheckResponse(res); err != nil {
  8915  		return nil, gensupport.WrapError(err)
  8916  	}
  8917  	ret := &GoogleCloudRunV2Revision{
  8918  		ServerResponse: googleapi.ServerResponse{
  8919  			Header:         res.Header,
  8920  			HTTPStatusCode: res.StatusCode,
  8921  		},
  8922  	}
  8923  	target := &ret
  8924  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8925  		return nil, err
  8926  	}
  8927  	return ret, nil
  8928  }
  8929  
  8930  type ProjectsLocationsServicesRevisionsListCall struct {
  8931  	s            *Service
  8932  	parent       string
  8933  	urlParams_   gensupport.URLParams
  8934  	ifNoneMatch_ string
  8935  	ctx_         context.Context
  8936  	header_      http.Header
  8937  }
  8938  
  8939  // List: Lists Revisions from a given Service, or from a given location.
  8940  //
  8941  //   - parent: The Service from which the Revisions should be listed. To list all
  8942  //     Revisions across Services, use "-" instead of Service name. Format:
  8943  //     projects/{project}/locations/{location}/services/{service}.
  8944  func (r *ProjectsLocationsServicesRevisionsService) List(parent string) *ProjectsLocationsServicesRevisionsListCall {
  8945  	c := &ProjectsLocationsServicesRevisionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8946  	c.parent = parent
  8947  	return c
  8948  }
  8949  
  8950  // PageSize sets the optional parameter "pageSize": Maximum number of revisions
  8951  // to return in this call.
  8952  func (c *ProjectsLocationsServicesRevisionsListCall) PageSize(pageSize int64) *ProjectsLocationsServicesRevisionsListCall {
  8953  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8954  	return c
  8955  }
  8956  
  8957  // PageToken sets the optional parameter "pageToken": A page token received
  8958  // from a previous call to ListRevisions. All other parameters must match.
  8959  func (c *ProjectsLocationsServicesRevisionsListCall) PageToken(pageToken string) *ProjectsLocationsServicesRevisionsListCall {
  8960  	c.urlParams_.Set("pageToken", pageToken)
  8961  	return c
  8962  }
  8963  
  8964  // ShowDeleted sets the optional parameter "showDeleted": If true, returns
  8965  // deleted (but unexpired) resources along with active ones.
  8966  func (c *ProjectsLocationsServicesRevisionsListCall) ShowDeleted(showDeleted bool) *ProjectsLocationsServicesRevisionsListCall {
  8967  	c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted))
  8968  	return c
  8969  }
  8970  
  8971  // Fields allows partial responses to be retrieved. See
  8972  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8973  // details.
  8974  func (c *ProjectsLocationsServicesRevisionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesRevisionsListCall {
  8975  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8976  	return c
  8977  }
  8978  
  8979  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8980  // object's ETag matches the given value. This is useful for getting updates
  8981  // only after the object has changed since the last request.
  8982  func (c *ProjectsLocationsServicesRevisionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesRevisionsListCall {
  8983  	c.ifNoneMatch_ = entityTag
  8984  	return c
  8985  }
  8986  
  8987  // Context sets the context to be used in this call's Do method.
  8988  func (c *ProjectsLocationsServicesRevisionsListCall) Context(ctx context.Context) *ProjectsLocationsServicesRevisionsListCall {
  8989  	c.ctx_ = ctx
  8990  	return c
  8991  }
  8992  
  8993  // Header returns a http.Header that can be modified by the caller to add
  8994  // headers to the request.
  8995  func (c *ProjectsLocationsServicesRevisionsListCall) Header() http.Header {
  8996  	if c.header_ == nil {
  8997  		c.header_ = make(http.Header)
  8998  	}
  8999  	return c.header_
  9000  }
  9001  
  9002  func (c *ProjectsLocationsServicesRevisionsListCall) doRequest(alt string) (*http.Response, error) {
  9003  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9004  	if c.ifNoneMatch_ != "" {
  9005  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9006  	}
  9007  	var body io.Reader = nil
  9008  	c.urlParams_.Set("alt", alt)
  9009  	c.urlParams_.Set("prettyPrint", "false")
  9010  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/revisions")
  9011  	urls += "?" + c.urlParams_.Encode()
  9012  	req, err := http.NewRequest("GET", urls, body)
  9013  	if err != nil {
  9014  		return nil, err
  9015  	}
  9016  	req.Header = reqHeaders
  9017  	googleapi.Expand(req.URL, map[string]string{
  9018  		"parent": c.parent,
  9019  	})
  9020  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9021  }
  9022  
  9023  // Do executes the "run.projects.locations.services.revisions.list" call.
  9024  // Any non-2xx status code is an error. Response headers are in either
  9025  // *GoogleCloudRunV2ListRevisionsResponse.ServerResponse.Header or (if a
  9026  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9027  // googleapi.IsNotModified to check whether the returned error was because
  9028  // http.StatusNotModified was returned.
  9029  func (c *ProjectsLocationsServicesRevisionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2ListRevisionsResponse, error) {
  9030  	gensupport.SetOptions(c.urlParams_, opts...)
  9031  	res, err := c.doRequest("json")
  9032  	if res != nil && res.StatusCode == http.StatusNotModified {
  9033  		if res.Body != nil {
  9034  			res.Body.Close()
  9035  		}
  9036  		return nil, gensupport.WrapError(&googleapi.Error{
  9037  			Code:   res.StatusCode,
  9038  			Header: res.Header,
  9039  		})
  9040  	}
  9041  	if err != nil {
  9042  		return nil, err
  9043  	}
  9044  	defer googleapi.CloseBody(res)
  9045  	if err := googleapi.CheckResponse(res); err != nil {
  9046  		return nil, gensupport.WrapError(err)
  9047  	}
  9048  	ret := &GoogleCloudRunV2ListRevisionsResponse{
  9049  		ServerResponse: googleapi.ServerResponse{
  9050  			Header:         res.Header,
  9051  			HTTPStatusCode: res.StatusCode,
  9052  		},
  9053  	}
  9054  	target := &ret
  9055  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9056  		return nil, err
  9057  	}
  9058  	return ret, nil
  9059  }
  9060  
  9061  // Pages invokes f for each page of results.
  9062  // A non-nil error returned from f will halt the iteration.
  9063  // The provided context supersedes any context provided to the Context method.
  9064  func (c *ProjectsLocationsServicesRevisionsListCall) Pages(ctx context.Context, f func(*GoogleCloudRunV2ListRevisionsResponse) error) error {
  9065  	c.ctx_ = ctx
  9066  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9067  	for {
  9068  		x, err := c.Do()
  9069  		if err != nil {
  9070  			return err
  9071  		}
  9072  		if err := f(x); err != nil {
  9073  			return err
  9074  		}
  9075  		if x.NextPageToken == "" {
  9076  			return nil
  9077  		}
  9078  		c.PageToken(x.NextPageToken)
  9079  	}
  9080  }
  9081  

View as plain text