...

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

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

     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/v1"
    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/v1"
    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:v1"
    90  const apiName = "run"
    91  const apiVersion = "v1"
    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 APIService.
   104  func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, 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 APIService. 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) (*APIService, error) {
   134  	if client == nil {
   135  		return nil, errors.New("client is nil")
   136  	}
   137  	s := &APIService{client: client, BasePath: basePath}
   138  	s.Namespaces = NewNamespacesService(s)
   139  	s.Projects = NewProjectsService(s)
   140  	return s, nil
   141  }
   142  
   143  type APIService struct {
   144  	client    *http.Client
   145  	BasePath  string // API endpoint base URL
   146  	UserAgent string // optional additional User-Agent fragment
   147  
   148  	Namespaces *NamespacesService
   149  
   150  	Projects *ProjectsService
   151  }
   152  
   153  func (s *APIService) userAgent() string {
   154  	if s.UserAgent == "" {
   155  		return googleapi.UserAgent
   156  	}
   157  	return googleapi.UserAgent + " " + s.UserAgent
   158  }
   159  
   160  func NewNamespacesService(s *APIService) *NamespacesService {
   161  	rs := &NamespacesService{s: s}
   162  	rs.Authorizeddomains = NewNamespacesAuthorizeddomainsService(s)
   163  	rs.Configurations = NewNamespacesConfigurationsService(s)
   164  	rs.Domainmappings = NewNamespacesDomainmappingsService(s)
   165  	rs.Executions = NewNamespacesExecutionsService(s)
   166  	rs.Jobs = NewNamespacesJobsService(s)
   167  	rs.Revisions = NewNamespacesRevisionsService(s)
   168  	rs.Routes = NewNamespacesRoutesService(s)
   169  	rs.Services = NewNamespacesServicesService(s)
   170  	rs.Tasks = NewNamespacesTasksService(s)
   171  	return rs
   172  }
   173  
   174  type NamespacesService struct {
   175  	s *APIService
   176  
   177  	Authorizeddomains *NamespacesAuthorizeddomainsService
   178  
   179  	Configurations *NamespacesConfigurationsService
   180  
   181  	Domainmappings *NamespacesDomainmappingsService
   182  
   183  	Executions *NamespacesExecutionsService
   184  
   185  	Jobs *NamespacesJobsService
   186  
   187  	Revisions *NamespacesRevisionsService
   188  
   189  	Routes *NamespacesRoutesService
   190  
   191  	Services *NamespacesServicesService
   192  
   193  	Tasks *NamespacesTasksService
   194  }
   195  
   196  func NewNamespacesAuthorizeddomainsService(s *APIService) *NamespacesAuthorizeddomainsService {
   197  	rs := &NamespacesAuthorizeddomainsService{s: s}
   198  	return rs
   199  }
   200  
   201  type NamespacesAuthorizeddomainsService struct {
   202  	s *APIService
   203  }
   204  
   205  func NewNamespacesConfigurationsService(s *APIService) *NamespacesConfigurationsService {
   206  	rs := &NamespacesConfigurationsService{s: s}
   207  	return rs
   208  }
   209  
   210  type NamespacesConfigurationsService struct {
   211  	s *APIService
   212  }
   213  
   214  func NewNamespacesDomainmappingsService(s *APIService) *NamespacesDomainmappingsService {
   215  	rs := &NamespacesDomainmappingsService{s: s}
   216  	return rs
   217  }
   218  
   219  type NamespacesDomainmappingsService struct {
   220  	s *APIService
   221  }
   222  
   223  func NewNamespacesExecutionsService(s *APIService) *NamespacesExecutionsService {
   224  	rs := &NamespacesExecutionsService{s: s}
   225  	return rs
   226  }
   227  
   228  type NamespacesExecutionsService struct {
   229  	s *APIService
   230  }
   231  
   232  func NewNamespacesJobsService(s *APIService) *NamespacesJobsService {
   233  	rs := &NamespacesJobsService{s: s}
   234  	return rs
   235  }
   236  
   237  type NamespacesJobsService struct {
   238  	s *APIService
   239  }
   240  
   241  func NewNamespacesRevisionsService(s *APIService) *NamespacesRevisionsService {
   242  	rs := &NamespacesRevisionsService{s: s}
   243  	return rs
   244  }
   245  
   246  type NamespacesRevisionsService struct {
   247  	s *APIService
   248  }
   249  
   250  func NewNamespacesRoutesService(s *APIService) *NamespacesRoutesService {
   251  	rs := &NamespacesRoutesService{s: s}
   252  	return rs
   253  }
   254  
   255  type NamespacesRoutesService struct {
   256  	s *APIService
   257  }
   258  
   259  func NewNamespacesServicesService(s *APIService) *NamespacesServicesService {
   260  	rs := &NamespacesServicesService{s: s}
   261  	return rs
   262  }
   263  
   264  type NamespacesServicesService struct {
   265  	s *APIService
   266  }
   267  
   268  func NewNamespacesTasksService(s *APIService) *NamespacesTasksService {
   269  	rs := &NamespacesTasksService{s: s}
   270  	return rs
   271  }
   272  
   273  type NamespacesTasksService struct {
   274  	s *APIService
   275  }
   276  
   277  func NewProjectsService(s *APIService) *ProjectsService {
   278  	rs := &ProjectsService{s: s}
   279  	rs.Authorizeddomains = NewProjectsAuthorizeddomainsService(s)
   280  	rs.Locations = NewProjectsLocationsService(s)
   281  	return rs
   282  }
   283  
   284  type ProjectsService struct {
   285  	s *APIService
   286  
   287  	Authorizeddomains *ProjectsAuthorizeddomainsService
   288  
   289  	Locations *ProjectsLocationsService
   290  }
   291  
   292  func NewProjectsAuthorizeddomainsService(s *APIService) *ProjectsAuthorizeddomainsService {
   293  	rs := &ProjectsAuthorizeddomainsService{s: s}
   294  	return rs
   295  }
   296  
   297  type ProjectsAuthorizeddomainsService struct {
   298  	s *APIService
   299  }
   300  
   301  func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService {
   302  	rs := &ProjectsLocationsService{s: s}
   303  	rs.Authorizeddomains = NewProjectsLocationsAuthorizeddomainsService(s)
   304  	rs.Configurations = NewProjectsLocationsConfigurationsService(s)
   305  	rs.Domainmappings = NewProjectsLocationsDomainmappingsService(s)
   306  	rs.Jobs = NewProjectsLocationsJobsService(s)
   307  	rs.Operations = NewProjectsLocationsOperationsService(s)
   308  	rs.Revisions = NewProjectsLocationsRevisionsService(s)
   309  	rs.Routes = NewProjectsLocationsRoutesService(s)
   310  	rs.Services = NewProjectsLocationsServicesService(s)
   311  	return rs
   312  }
   313  
   314  type ProjectsLocationsService struct {
   315  	s *APIService
   316  
   317  	Authorizeddomains *ProjectsLocationsAuthorizeddomainsService
   318  
   319  	Configurations *ProjectsLocationsConfigurationsService
   320  
   321  	Domainmappings *ProjectsLocationsDomainmappingsService
   322  
   323  	Jobs *ProjectsLocationsJobsService
   324  
   325  	Operations *ProjectsLocationsOperationsService
   326  
   327  	Revisions *ProjectsLocationsRevisionsService
   328  
   329  	Routes *ProjectsLocationsRoutesService
   330  
   331  	Services *ProjectsLocationsServicesService
   332  }
   333  
   334  func NewProjectsLocationsAuthorizeddomainsService(s *APIService) *ProjectsLocationsAuthorizeddomainsService {
   335  	rs := &ProjectsLocationsAuthorizeddomainsService{s: s}
   336  	return rs
   337  }
   338  
   339  type ProjectsLocationsAuthorizeddomainsService struct {
   340  	s *APIService
   341  }
   342  
   343  func NewProjectsLocationsConfigurationsService(s *APIService) *ProjectsLocationsConfigurationsService {
   344  	rs := &ProjectsLocationsConfigurationsService{s: s}
   345  	return rs
   346  }
   347  
   348  type ProjectsLocationsConfigurationsService struct {
   349  	s *APIService
   350  }
   351  
   352  func NewProjectsLocationsDomainmappingsService(s *APIService) *ProjectsLocationsDomainmappingsService {
   353  	rs := &ProjectsLocationsDomainmappingsService{s: s}
   354  	return rs
   355  }
   356  
   357  type ProjectsLocationsDomainmappingsService struct {
   358  	s *APIService
   359  }
   360  
   361  func NewProjectsLocationsJobsService(s *APIService) *ProjectsLocationsJobsService {
   362  	rs := &ProjectsLocationsJobsService{s: s}
   363  	return rs
   364  }
   365  
   366  type ProjectsLocationsJobsService struct {
   367  	s *APIService
   368  }
   369  
   370  func NewProjectsLocationsOperationsService(s *APIService) *ProjectsLocationsOperationsService {
   371  	rs := &ProjectsLocationsOperationsService{s: s}
   372  	return rs
   373  }
   374  
   375  type ProjectsLocationsOperationsService struct {
   376  	s *APIService
   377  }
   378  
   379  func NewProjectsLocationsRevisionsService(s *APIService) *ProjectsLocationsRevisionsService {
   380  	rs := &ProjectsLocationsRevisionsService{s: s}
   381  	return rs
   382  }
   383  
   384  type ProjectsLocationsRevisionsService struct {
   385  	s *APIService
   386  }
   387  
   388  func NewProjectsLocationsRoutesService(s *APIService) *ProjectsLocationsRoutesService {
   389  	rs := &ProjectsLocationsRoutesService{s: s}
   390  	return rs
   391  }
   392  
   393  type ProjectsLocationsRoutesService struct {
   394  	s *APIService
   395  }
   396  
   397  func NewProjectsLocationsServicesService(s *APIService) *ProjectsLocationsServicesService {
   398  	rs := &ProjectsLocationsServicesService{s: s}
   399  	return rs
   400  }
   401  
   402  type ProjectsLocationsServicesService struct {
   403  	s *APIService
   404  }
   405  
   406  // Addressable: Information for connecting over HTTP(s).
   407  type Addressable struct {
   408  	Url string `json:"url,omitempty"`
   409  	// ForceSendFields is a list of field names (e.g. "Url") to unconditionally
   410  	// include in API requests. By default, fields with empty or default values are
   411  	// omitted from API requests. See
   412  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   413  	// details.
   414  	ForceSendFields []string `json:"-"`
   415  	// NullFields is a list of field names (e.g. "Url") to include in API requests
   416  	// with the JSON null value. By default, fields with empty values are omitted
   417  	// from API requests. See
   418  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   419  	NullFields []string `json:"-"`
   420  }
   421  
   422  func (s *Addressable) MarshalJSON() ([]byte, error) {
   423  	type NoMethod Addressable
   424  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   425  }
   426  
   427  // AuditConfig: Specifies the audit configuration for a service. The
   428  // configuration determines which permission types are logged, and what
   429  // identities, if any, are exempted from logging. An AuditConfig must have one
   430  // or more AuditLogConfigs. If there are AuditConfigs for both `allServices`
   431  // and a specific service, the union of the two AuditConfigs is used for that
   432  // service: the log_types specified in each AuditConfig are enabled, and the
   433  // exempted_members in each AuditLogConfig are exempted. Example Policy with
   434  // multiple AuditConfigs: { "audit_configs": [ { "service": "allServices",
   435  // "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
   436  // "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type":
   437  // "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com",
   438  // "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type":
   439  // "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For
   440  // sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
   441  // logging. It also exempts `jose@example.com` from DATA_READ logging, and
   442  // `aliya@example.com` from DATA_WRITE logging.
   443  type AuditConfig struct {
   444  	// AuditLogConfigs: The configuration for logging of each type of permission.
   445  	AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
   446  	// Service: Specifies a service that will be enabled for audit logging. For
   447  	// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`
   448  	// is a special value that covers all services.
   449  	Service string `json:"service,omitempty"`
   450  	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
   451  	// unconditionally include in API requests. By default, fields with empty or
   452  	// default values are omitted from API requests. See
   453  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   454  	// details.
   455  	ForceSendFields []string `json:"-"`
   456  	// NullFields is a list of field names (e.g. "AuditLogConfigs") to include in
   457  	// API requests with the JSON null value. By default, fields with empty values
   458  	// are omitted from API requests. See
   459  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   460  	NullFields []string `json:"-"`
   461  }
   462  
   463  func (s *AuditConfig) MarshalJSON() ([]byte, error) {
   464  	type NoMethod AuditConfig
   465  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   466  }
   467  
   468  // AuditLogConfig: Provides the configuration for logging a type of
   469  // permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ",
   470  // "exempted_members": [ "user:jose@example.com" ] }, { "log_type":
   471  // "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while
   472  // exempting jose@example.com from DATA_READ logging.
   473  type AuditLogConfig struct {
   474  	// ExemptedMembers: Specifies the identities that do not cause logging for this
   475  	// type of permission. Follows the same format of Binding.members.
   476  	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
   477  	// LogType: The log type that this config enables.
   478  	//
   479  	// Possible values:
   480  	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
   481  	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
   482  	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
   483  	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
   484  	LogType string `json:"logType,omitempty"`
   485  	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
   486  	// unconditionally include in API requests. By default, fields with empty or
   487  	// default values are omitted from API requests. See
   488  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   489  	// details.
   490  	ForceSendFields []string `json:"-"`
   491  	// NullFields is a list of field names (e.g. "ExemptedMembers") to include in
   492  	// API requests with the JSON null value. By default, fields with empty values
   493  	// are omitted from API requests. See
   494  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   495  	NullFields []string `json:"-"`
   496  }
   497  
   498  func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
   499  	type NoMethod AuditLogConfig
   500  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   501  }
   502  
   503  // AuthorizedDomain: A domain that a user has been authorized to administer. To
   504  // authorize use of a domain, verify ownership via Search Console
   505  // (https://search.google.com/search-console/welcome).
   506  type AuthorizedDomain struct {
   507  	// Id: Relative name of the domain authorized for use. Example: `example.com`.
   508  	Id string `json:"id,omitempty"`
   509  	// Name: Deprecated Read only. Full path to the `AuthorizedDomain` resource in
   510  	// the API. Example: `projects/myproject/authorizedDomains/example.com`.
   511  	Name string `json:"name,omitempty"`
   512  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
   513  	// include in API requests. By default, fields with empty or default values are
   514  	// omitted from API requests. See
   515  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   516  	// details.
   517  	ForceSendFields []string `json:"-"`
   518  	// NullFields is a list of field names (e.g. "Id") to include in API requests
   519  	// with the JSON null value. By default, fields with empty values are omitted
   520  	// from API requests. See
   521  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   522  	NullFields []string `json:"-"`
   523  }
   524  
   525  func (s *AuthorizedDomain) MarshalJSON() ([]byte, error) {
   526  	type NoMethod AuthorizedDomain
   527  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   528  }
   529  
   530  // Binding: Associates `members`, or principals, with a `role`.
   531  type Binding struct {
   532  	// Condition: The condition that is associated with this binding. If the
   533  	// condition evaluates to `true`, then this binding applies to the current
   534  	// request. If the condition evaluates to `false`, then this binding does not
   535  	// apply to the current request. However, a different role binding might grant
   536  	// the same role to one or more of the principals in this binding. To learn
   537  	// which resources support conditions in their IAM policies, see the IAM
   538  	// documentation
   539  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
   540  	Condition *Expr `json:"condition,omitempty"`
   541  	// Members: Specifies the principals requesting access for a Google Cloud
   542  	// resource. `members` can have the following values: * `allUsers`: A special
   543  	// identifier that represents anyone who is on the internet; with or without a
   544  	// Google account. * `allAuthenticatedUsers`: A special identifier that
   545  	// represents anyone who is authenticated with a Google account or a service
   546  	// account. Does not include identities that come from external identity
   547  	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
   548  	// address that represents a specific Google account. For example,
   549  	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
   550  	// represents a Google service account. For example,
   551  	// `my-other-app@appspot.gserviceaccount.com`. *
   552  	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
   553  	// identifier for a Kubernetes service account
   554  	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
   555  	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
   556  	// `group:{emailid}`: An email address that represents a Google group. For
   557  	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
   558  	// (primary) that represents all the users of that domain. For example,
   559  	// `google.com` or `example.com`. *
   560  	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
   561  	// ject/{subject_attribute_value}`: A single identity in a workforce identity
   562  	// pool. *
   563  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   564  	// group/{group_id}`: All workforce identities in a group. *
   565  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   566  	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
   567  	// a specific attribute value. *
   568  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   569  	// *`: All identities in a workforce identity pool. *
   570  	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
   571  	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
   572  	// identity in a workload identity pool. *
   573  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   574  	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
   575  	// group. *
   576  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   577  	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
   578  	// `: All identities in a workload identity pool with a certain attribute. *
   579  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   580  	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
   581  	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
   582  	// unique identifier) representing a user that has been recently deleted. For
   583  	// example, `alice@example.com?uid=123456789012345678901`. If the user is
   584  	// recovered, this value reverts to `user:{emailid}` and the recovered user
   585  	// retains the role in the binding. *
   586  	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
   587  	// unique identifier) representing a service account that has been recently
   588  	// deleted. For example,
   589  	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
   590  	// service account is undeleted, this value reverts to
   591  	// `serviceAccount:{emailid}` and the undeleted service account retains the
   592  	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
   593  	// address (plus unique identifier) representing a Google group that has been
   594  	// recently deleted. For example,
   595  	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
   596  	// this value reverts to `group:{emailid}` and the recovered group retains the
   597  	// role in the binding. *
   598  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
   599  	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
   600  	// workforce identity pool. For example,
   601  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
   602  	// ol-id/subject/my-subject-attribute-value`.
   603  	Members []string `json:"members,omitempty"`
   604  	// Role: Role that is assigned to the list of `members`, or principals. For
   605  	// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview
   606  	// of the IAM roles and permissions, see the IAM documentation
   607  	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
   608  	// available pre-defined roles, see here
   609  	// (https://cloud.google.com/iam/docs/understanding-roles).
   610  	Role string `json:"role,omitempty"`
   611  	// ForceSendFields is a list of field names (e.g. "Condition") to
   612  	// unconditionally include in API requests. By default, fields with empty or
   613  	// default values are omitted from API requests. See
   614  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   615  	// details.
   616  	ForceSendFields []string `json:"-"`
   617  	// NullFields is a list of field names (e.g. "Condition") to include in API
   618  	// requests with the JSON null value. By default, fields with empty values are
   619  	// omitted from API requests. See
   620  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   621  	NullFields []string `json:"-"`
   622  }
   623  
   624  func (s *Binding) MarshalJSON() ([]byte, error) {
   625  	type NoMethod Binding
   626  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   627  }
   628  
   629  // CSIVolumeSource: Storage volume source using the Container Storage
   630  // Interface.
   631  type CSIVolumeSource struct {
   632  	// Driver: name of the CSI driver for the requested storage system. Cloud Run
   633  	// supports the following drivers: * gcsfuse.run.googleapis.com : Mount a Cloud
   634  	// Storage Bucket as a volume.
   635  	Driver string `json:"driver,omitempty"`
   636  	// ReadOnly: If true, mount the volume as read only. Defaults to false.
   637  	ReadOnly bool `json:"readOnly,omitempty"`
   638  	// VolumeAttributes: stores driver specific attributes. For Google Cloud
   639  	// Storage volumes, the following attributes are supported: * bucketName: the
   640  	// name of the Cloud Storage bucket to mount. The Cloud Run Service identity
   641  	// must have access to this bucket.
   642  	VolumeAttributes map[string]string `json:"volumeAttributes,omitempty"`
   643  	// ForceSendFields is a list of field names (e.g. "Driver") to unconditionally
   644  	// include in API requests. By default, fields with empty or default values are
   645  	// omitted from API requests. See
   646  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   647  	// details.
   648  	ForceSendFields []string `json:"-"`
   649  	// NullFields is a list of field names (e.g. "Driver") to include in API
   650  	// requests with the JSON null value. By default, fields with empty values are
   651  	// omitted from API requests. See
   652  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   653  	NullFields []string `json:"-"`
   654  }
   655  
   656  func (s *CSIVolumeSource) MarshalJSON() ([]byte, error) {
   657  	type NoMethod CSIVolumeSource
   658  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   659  }
   660  
   661  // CancelExecutionRequest: Request message for cancelling an execution.
   662  type CancelExecutionRequest struct {
   663  }
   664  
   665  // ConfigMapEnvSource: Not supported by Cloud Run. ConfigMapEnvSource selects a
   666  // ConfigMap to populate the environment variables with. The contents of the
   667  // target ConfigMap's Data field will represent the key-value pairs as
   668  // environment variables.
   669  type ConfigMapEnvSource struct {
   670  	// LocalObjectReference: This field should not be used directly as it is meant
   671  	// to be inlined directly into the message. Use the "name" field instead.
   672  	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
   673  	// Name: The ConfigMap to select from.
   674  	Name string `json:"name,omitempty"`
   675  	// Optional: Specify whether the ConfigMap must be defined.
   676  	Optional bool `json:"optional,omitempty"`
   677  	// ForceSendFields is a list of field names (e.g. "LocalObjectReference") to
   678  	// unconditionally include in API requests. By default, fields with empty or
   679  	// default values are omitted from API requests. See
   680  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   681  	// details.
   682  	ForceSendFields []string `json:"-"`
   683  	// NullFields is a list of field names (e.g. "LocalObjectReference") to include
   684  	// in API requests with the JSON null value. By default, fields with empty
   685  	// values are omitted from API requests. See
   686  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   687  	NullFields []string `json:"-"`
   688  }
   689  
   690  func (s *ConfigMapEnvSource) MarshalJSON() ([]byte, error) {
   691  	type NoMethod ConfigMapEnvSource
   692  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   693  }
   694  
   695  // ConfigMapKeySelector: Not supported by Cloud Run.
   696  type ConfigMapKeySelector struct {
   697  	// Key: Required. Not supported by Cloud Run.
   698  	Key string `json:"key,omitempty"`
   699  	// LocalObjectReference: Not supported by Cloud Run.
   700  	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
   701  	// Name: Required. Not supported by Cloud Run.
   702  	Name string `json:"name,omitempty"`
   703  	// Optional: Not supported by Cloud Run.
   704  	Optional bool `json:"optional,omitempty"`
   705  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
   706  	// include in API requests. By default, fields with empty or default values are
   707  	// omitted from API requests. See
   708  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   709  	// details.
   710  	ForceSendFields []string `json:"-"`
   711  	// NullFields is a list of field names (e.g. "Key") to include in API requests
   712  	// with the JSON null value. By default, fields with empty values are omitted
   713  	// from API requests. See
   714  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   715  	NullFields []string `json:"-"`
   716  }
   717  
   718  func (s *ConfigMapKeySelector) MarshalJSON() ([]byte, error) {
   719  	type NoMethod ConfigMapKeySelector
   720  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   721  }
   722  
   723  // ConfigMapVolumeSource: Not supported by Cloud Run. Adapts a ConfigMap into a
   724  // volume. The contents of the target ConfigMap's Data field will be presented
   725  // in a volume as files using the keys in the Data field as the file names,
   726  // unless the items element is populated with specific mappings of keys to
   727  // paths.
   728  type ConfigMapVolumeSource struct {
   729  	// DefaultMode: (Optional) Integer representation of mode bits to use on
   730  	// created files by default. Must be a value between 01 and 0777 (octal). If 0
   731  	// or not set, it will default to 0644. Directories within the path are not
   732  	// affected by this setting. Notes * Internally, a umask of 0222 will be
   733  	// applied to any non-zero value. * This is an integer representation of the
   734  	// mode bits. So, the octal integer value should look exactly as the chmod
   735  	// numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx),
   736  	// set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640
   737  	// (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755
   738  	// (octal) or 493 (base-10). * This might be in conflict with other options
   739  	// that affect the file mode, like fsGroup, and the result can be other mode
   740  	// bits set.
   741  	DefaultMode int64 `json:"defaultMode,omitempty"`
   742  	// Items: (Optional) If unspecified, each key-value pair in the Data field of
   743  	// the referenced Secret will be projected into the volume as a file whose name
   744  	// is the key and content is the value. If specified, the listed keys will be
   745  	// projected into the specified paths, and unlisted keys will not be present.
   746  	// If a key is specified that is not present in the Secret, the volume setup
   747  	// will error unless it is marked optional.
   748  	Items []*KeyToPath `json:"items,omitempty"`
   749  	// Name: Name of the config.
   750  	Name string `json:"name,omitempty"`
   751  	// Optional: (Optional) Specify whether the Secret or its keys must be defined.
   752  	Optional bool `json:"optional,omitempty"`
   753  	// ForceSendFields is a list of field names (e.g. "DefaultMode") to
   754  	// unconditionally include in API requests. By default, fields with empty or
   755  	// default values are omitted from API requests. See
   756  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   757  	// details.
   758  	ForceSendFields []string `json:"-"`
   759  	// NullFields is a list of field names (e.g. "DefaultMode") to include in API
   760  	// requests with the JSON null value. By default, fields with empty values are
   761  	// omitted from API requests. See
   762  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   763  	NullFields []string `json:"-"`
   764  }
   765  
   766  func (s *ConfigMapVolumeSource) MarshalJSON() ([]byte, error) {
   767  	type NoMethod ConfigMapVolumeSource
   768  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   769  }
   770  
   771  // Configuration: Configuration represents the "floating HEAD" of a linear
   772  // history of Revisions, and optionally how the containers those revisions
   773  // reference are built. Users create new Revisions by updating the
   774  // Configuration's spec. The "latest created" revision's name is available
   775  // under status, as is the "latest ready" revision's name.
   776  type Configuration struct {
   777  	// ApiVersion: The API version for this call such as "serving.knative.dev/v1".
   778  	ApiVersion string `json:"apiVersion,omitempty"`
   779  	// Kind: The kind of resource, in this case always "Configuration".
   780  	Kind string `json:"kind,omitempty"`
   781  	// Metadata: Metadata associated with this Configuration, including name,
   782  	// namespace, labels, and annotations.
   783  	Metadata *ObjectMeta `json:"metadata,omitempty"`
   784  	// Spec: Spec holds the desired state of the Configuration (from the client).
   785  	Spec *ConfigurationSpec `json:"spec,omitempty"`
   786  	// Status: Status communicates the observed state of the Configuration (from
   787  	// the controller).
   788  	Status *ConfigurationStatus `json:"status,omitempty"`
   789  
   790  	// ServerResponse contains the HTTP response code and headers from the server.
   791  	googleapi.ServerResponse `json:"-"`
   792  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
   793  	// unconditionally include in API requests. By default, fields with empty or
   794  	// default values are omitted from API requests. See
   795  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   796  	// details.
   797  	ForceSendFields []string `json:"-"`
   798  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
   799  	// requests with the JSON null value. By default, fields with empty values are
   800  	// omitted from API requests. See
   801  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   802  	NullFields []string `json:"-"`
   803  }
   804  
   805  func (s *Configuration) MarshalJSON() ([]byte, error) {
   806  	type NoMethod Configuration
   807  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   808  }
   809  
   810  // ConfigurationSpec: ConfigurationSpec holds the desired state of the
   811  // Configuration (from the client).
   812  type ConfigurationSpec struct {
   813  	// Template: Template holds the latest specification for the Revision to be
   814  	// stamped out.
   815  	Template *RevisionTemplate `json:"template,omitempty"`
   816  	// ForceSendFields is a list of field names (e.g. "Template") to
   817  	// unconditionally include in API requests. By default, fields with empty or
   818  	// default values are omitted from API requests. See
   819  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   820  	// details.
   821  	ForceSendFields []string `json:"-"`
   822  	// NullFields is a list of field names (e.g. "Template") to include in API
   823  	// requests with the JSON null value. By default, fields with empty values are
   824  	// omitted from API requests. See
   825  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   826  	NullFields []string `json:"-"`
   827  }
   828  
   829  func (s *ConfigurationSpec) MarshalJSON() ([]byte, error) {
   830  	type NoMethod ConfigurationSpec
   831  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   832  }
   833  
   834  // ConfigurationStatus: ConfigurationStatus communicates the observed state of
   835  // the Configuration (from the controller).
   836  type ConfigurationStatus struct {
   837  	// Conditions: Conditions communicate information about ongoing/complete
   838  	// reconciliation processes that bring the "spec" inline with the observed
   839  	// state of the world.
   840  	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
   841  	// LatestCreatedRevisionName: LatestCreatedRevisionName is the last revision
   842  	// that was created from this Configuration. It might not be ready yet, so for
   843  	// the latest ready revision, use LatestReadyRevisionName.
   844  	LatestCreatedRevisionName string `json:"latestCreatedRevisionName,omitempty"`
   845  	// LatestReadyRevisionName: LatestReadyRevisionName holds the name of the
   846  	// latest Revision stamped out from this Configuration that has had its "Ready"
   847  	// condition become "True".
   848  	LatestReadyRevisionName string `json:"latestReadyRevisionName,omitempty"`
   849  	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
   850  	// Configuration that was last processed by the controller. The observed
   851  	// generation is updated even if the controller failed to process the spec and
   852  	// create the Revision. Clients polling for completed reconciliation should
   853  	// poll until observedGeneration = metadata.generation, and the Ready
   854  	// condition's status is True or False.
   855  	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
   856  	// ForceSendFields is a list of field names (e.g. "Conditions") to
   857  	// unconditionally include in API requests. By default, fields with empty or
   858  	// default values are omitted from API requests. See
   859  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   860  	// details.
   861  	ForceSendFields []string `json:"-"`
   862  	// NullFields is a list of field names (e.g. "Conditions") to include in API
   863  	// requests with the JSON null value. By default, fields with empty values are
   864  	// omitted from API requests. See
   865  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   866  	NullFields []string `json:"-"`
   867  }
   868  
   869  func (s *ConfigurationStatus) MarshalJSON() ([]byte, error) {
   870  	type NoMethod ConfigurationStatus
   871  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   872  }
   873  
   874  // Container: A single application container. This specifies both the container
   875  // to run, the command to run in the container and the arguments to supply to
   876  // it. Note that additional arguments may be supplied by the system to the
   877  // container at runtime.
   878  type Container struct {
   879  	// Args: Arguments to the entrypoint. The docker image's CMD is used if this is
   880  	// not provided. Variable references are not supported in Cloud Run.
   881  	Args []string `json:"args,omitempty"`
   882  	// Command: Entrypoint array. Not executed within a shell. The docker image's
   883  	// ENTRYPOINT is used if this is not provided. Variable references are not
   884  	// supported in Cloud Run.
   885  	Command []string `json:"command,omitempty"`
   886  	// Env: List of environment variables to set in the container. EnvVar with
   887  	// duplicate names are generally allowed; if referencing a secret, the name
   888  	// must be unique for the container. For non-secret EnvVar names, the Container
   889  	// will only get the last-declared one.
   890  	Env []*EnvVar `json:"env,omitempty"`
   891  	// EnvFrom: Not supported by Cloud Run.
   892  	EnvFrom []*EnvFromSource `json:"envFrom,omitempty"`
   893  	// Image: Required. Name of the container image in Dockerhub, Google Artifact
   894  	// Registry, or Google Container Registry. If the host is not provided,
   895  	// Dockerhub is assumed.
   896  	Image string `json:"image,omitempty"`
   897  	// ImagePullPolicy: Image pull policy. One of Always, Never, IfNotPresent.
   898  	// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
   899  	ImagePullPolicy string `json:"imagePullPolicy,omitempty"`
   900  	// LivenessProbe: Periodic probe of container liveness. Container will be
   901  	// restarted if the probe fails.
   902  	LivenessProbe *Probe `json:"livenessProbe,omitempty"`
   903  	// Name: Name of the container specified as a DNS_LABEL (RFC 1123).
   904  	Name string `json:"name,omitempty"`
   905  	// Ports: List of ports to expose from the container. Only a single port can be
   906  	// specified. The specified ports must be listening on all interfaces (0.0.0.0)
   907  	// within the container to be accessible. If omitted, a port number will be
   908  	// chosen and passed to the container through the PORT environment variable for
   909  	// the container to listen on.
   910  	Ports []*ContainerPort `json:"ports,omitempty"`
   911  	// ReadinessProbe: Not supported by Cloud Run.
   912  	ReadinessProbe *Probe `json:"readinessProbe,omitempty"`
   913  	// Resources: Compute Resources required by this container.
   914  	Resources *ResourceRequirements `json:"resources,omitempty"`
   915  	// SecurityContext: Not supported by Cloud Run.
   916  	SecurityContext *SecurityContext `json:"securityContext,omitempty"`
   917  	// StartupProbe: Startup probe of application within the container. All other
   918  	// probes are disabled if a startup probe is provided, until it succeeds.
   919  	// Container will not receive traffic if the probe fails. If not provided, a
   920  	// default startup probe with TCP socket action is used.
   921  	StartupProbe *Probe `json:"startupProbe,omitempty"`
   922  	// TerminationMessagePath: Path at which the file to which the container's
   923  	// termination message will be written is mounted into the container's
   924  	// filesystem. Message written is intended to be brief final status, such as an
   925  	// assertion failure message. Will be truncated by the node if greater than
   926  	// 4096 bytes. The total message length across all containers will be limited
   927  	// to 12kb. Defaults to /dev/termination-log.
   928  	TerminationMessagePath string `json:"terminationMessagePath,omitempty"`
   929  	// TerminationMessagePolicy: Indicate how the termination message should be
   930  	// populated. File will use the contents of terminationMessagePath to populate
   931  	// the container status message on both success and failure.
   932  	// FallbackToLogsOnError will use the last chunk of container log output if the
   933  	// termination message file is empty and the container exited with an error.
   934  	// The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
   935  	// Defaults to File. Cannot be updated.
   936  	TerminationMessagePolicy string `json:"terminationMessagePolicy,omitempty"`
   937  	// VolumeMounts: Volume to mount into the container's filesystem. Only supports
   938  	// SecretVolumeSources. Pod volumes to mount into the container's filesystem.
   939  	VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"`
   940  	// WorkingDir: Container's working directory. If not specified, the container
   941  	// runtime's default will be used, which might be configured in the container
   942  	// image.
   943  	WorkingDir string `json:"workingDir,omitempty"`
   944  	// ForceSendFields is a list of field names (e.g. "Args") to unconditionally
   945  	// include in API requests. By default, fields with empty or default values are
   946  	// omitted from API requests. See
   947  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   948  	// details.
   949  	ForceSendFields []string `json:"-"`
   950  	// NullFields is a list of field names (e.g. "Args") to include in API requests
   951  	// with the JSON null value. By default, fields with empty values are omitted
   952  	// from API requests. See
   953  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   954  	NullFields []string `json:"-"`
   955  }
   956  
   957  func (s *Container) MarshalJSON() ([]byte, error) {
   958  	type NoMethod Container
   959  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   960  }
   961  
   962  // ContainerOverride: Per container override specification.
   963  type ContainerOverride struct {
   964  	// Args: Arguments to the entrypoint. The specified arguments replace and
   965  	// override any existing entrypoint arguments. Must be empty if `clear_args` is
   966  	// set to true.
   967  	Args []string `json:"args,omitempty"`
   968  	// ClearArgs: Optional. Set to True to clear all existing arguments.
   969  	ClearArgs bool `json:"clearArgs,omitempty"`
   970  	// Env: List of environment variables to set in the container. All specified
   971  	// environment variables are merged with existing environment variables. When
   972  	// the specified environment variables exist, these values override any
   973  	// existing values.
   974  	Env []*EnvVar `json:"env,omitempty"`
   975  	// Name: The name of the container specified as a DNS_LABEL.
   976  	Name string `json:"name,omitempty"`
   977  	// ForceSendFields is a list of field names (e.g. "Args") to unconditionally
   978  	// include in API requests. By default, fields with empty or default values are
   979  	// omitted from API requests. See
   980  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   981  	// details.
   982  	ForceSendFields []string `json:"-"`
   983  	// NullFields is a list of field names (e.g. "Args") to include in API requests
   984  	// with the JSON null value. By default, fields with empty values are omitted
   985  	// from API requests. See
   986  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   987  	NullFields []string `json:"-"`
   988  }
   989  
   990  func (s *ContainerOverride) MarshalJSON() ([]byte, error) {
   991  	type NoMethod ContainerOverride
   992  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   993  }
   994  
   995  // ContainerPort: ContainerPort represents a network port in a single
   996  // container.
   997  type ContainerPort struct {
   998  	// ContainerPort: Port number the container listens on. If present, this must
   999  	// be a valid port number, 0 < x < 65536. If not present, it will default to
  1000  	// port 8080. For more information, see
  1001  	// https://cloud.google.com/run/docs/container-contract#port
  1002  	ContainerPort int64 `json:"containerPort,omitempty"`
  1003  	// Name: If specified, used to specify which protocol to use. Allowed values
  1004  	// are "http1" and "h2c".
  1005  	Name string `json:"name,omitempty"`
  1006  	// Protocol: Protocol for port. Must be "TCP". Defaults to "TCP".
  1007  	Protocol string `json:"protocol,omitempty"`
  1008  	// ForceSendFields is a list of field names (e.g. "ContainerPort") to
  1009  	// unconditionally include in API requests. By default, fields with empty or
  1010  	// default values are omitted from API requests. See
  1011  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1012  	// details.
  1013  	ForceSendFields []string `json:"-"`
  1014  	// NullFields is a list of field names (e.g. "ContainerPort") to include in API
  1015  	// requests with the JSON null value. By default, fields with empty values are
  1016  	// omitted from API requests. See
  1017  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1018  	NullFields []string `json:"-"`
  1019  }
  1020  
  1021  func (s *ContainerPort) MarshalJSON() ([]byte, error) {
  1022  	type NoMethod ContainerPort
  1023  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1024  }
  1025  
  1026  // DomainMapping: Resource to hold the state and status of a user's domain
  1027  // mapping. NOTE: This resource is currently in Beta.
  1028  type DomainMapping struct {
  1029  	// ApiVersion: The API version for this call such as "domains.cloudrun.com/v1".
  1030  	ApiVersion string `json:"apiVersion,omitempty"`
  1031  	// Kind: The kind of resource, in this case "DomainMapping".
  1032  	Kind string `json:"kind,omitempty"`
  1033  	// Metadata: Metadata associated with this BuildTemplate.
  1034  	Metadata *ObjectMeta `json:"metadata,omitempty"`
  1035  	// Spec: The spec for this DomainMapping.
  1036  	Spec *DomainMappingSpec `json:"spec,omitempty"`
  1037  	// Status: The current status of the DomainMapping.
  1038  	Status *DomainMappingStatus `json:"status,omitempty"`
  1039  
  1040  	// ServerResponse contains the HTTP response code and headers from the server.
  1041  	googleapi.ServerResponse `json:"-"`
  1042  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  1043  	// unconditionally include in API requests. By default, fields with empty or
  1044  	// default values are omitted from API requests. See
  1045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1046  	// details.
  1047  	ForceSendFields []string `json:"-"`
  1048  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  1049  	// requests with the JSON null value. By default, fields with empty values are
  1050  	// omitted from API requests. See
  1051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1052  	NullFields []string `json:"-"`
  1053  }
  1054  
  1055  func (s *DomainMapping) MarshalJSON() ([]byte, error) {
  1056  	type NoMethod DomainMapping
  1057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1058  }
  1059  
  1060  // DomainMappingSpec: The desired state of the Domain Mapping.
  1061  type DomainMappingSpec struct {
  1062  	// CertificateMode: The mode of the certificate.
  1063  	//
  1064  	// Possible values:
  1065  	//   "CERTIFICATE_MODE_UNSPECIFIED"
  1066  	//   "NONE" - Do not provision an HTTPS certificate.
  1067  	//   "AUTOMATIC" - Automatically provisions an HTTPS certificate via GoogleCA.
  1068  	CertificateMode string `json:"certificateMode,omitempty"`
  1069  	// ForceOverride: If set, the mapping will override any mapping set before this
  1070  	// spec was set. It is recommended that the user leaves this empty to receive
  1071  	// an error warning about a potential conflict and only set it once the
  1072  	// respective UI has given such a warning.
  1073  	ForceOverride bool `json:"forceOverride,omitempty"`
  1074  	// RouteName: The name of the Knative Route that this DomainMapping applies to.
  1075  	// The route must exist.
  1076  	RouteName string `json:"routeName,omitempty"`
  1077  	// ForceSendFields is a list of field names (e.g. "CertificateMode") to
  1078  	// unconditionally include in API requests. By default, fields with empty or
  1079  	// default values are omitted from API requests. See
  1080  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1081  	// details.
  1082  	ForceSendFields []string `json:"-"`
  1083  	// NullFields is a list of field names (e.g. "CertificateMode") to include in
  1084  	// API requests with the JSON null value. By default, fields with empty values
  1085  	// are omitted from API requests. See
  1086  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1087  	NullFields []string `json:"-"`
  1088  }
  1089  
  1090  func (s *DomainMappingSpec) MarshalJSON() ([]byte, error) {
  1091  	type NoMethod DomainMappingSpec
  1092  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1093  }
  1094  
  1095  // DomainMappingStatus: The current state of the Domain Mapping.
  1096  type DomainMappingStatus struct {
  1097  	// Conditions: Array of observed DomainMappingConditions, indicating the
  1098  	// current state of the DomainMapping.
  1099  	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
  1100  	// MappedRouteName: The name of the route that the mapping currently points to.
  1101  	MappedRouteName string `json:"mappedRouteName,omitempty"`
  1102  	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
  1103  	// DomainMapping that was last processed by the controller. Clients polling for
  1104  	// completed reconciliation should poll until observedGeneration =
  1105  	// metadata.generation and the Ready condition's status is True or False.
  1106  	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
  1107  	// ResourceRecords: The resource records required to configure this domain
  1108  	// mapping. These records must be added to the domain's DNS configuration in
  1109  	// order to serve the application via this domain mapping.
  1110  	ResourceRecords []*ResourceRecord `json:"resourceRecords,omitempty"`
  1111  	// Url: Optional. Not supported by Cloud Run.
  1112  	Url string `json:"url,omitempty"`
  1113  	// ForceSendFields is a list of field names (e.g. "Conditions") to
  1114  	// unconditionally include in API requests. By default, fields with empty or
  1115  	// default values are omitted from API requests. See
  1116  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1117  	// details.
  1118  	ForceSendFields []string `json:"-"`
  1119  	// NullFields is a list of field names (e.g. "Conditions") to include in API
  1120  	// requests with the JSON null value. By default, fields with empty values are
  1121  	// omitted from API requests. See
  1122  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1123  	NullFields []string `json:"-"`
  1124  }
  1125  
  1126  func (s *DomainMappingStatus) MarshalJSON() ([]byte, error) {
  1127  	type NoMethod DomainMappingStatus
  1128  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1129  }
  1130  
  1131  // Empty: A generic empty message that you can re-use to avoid defining
  1132  // duplicated empty messages in your APIs. A typical example is to use it as
  1133  // the request or the response type of an API method. For instance: service Foo
  1134  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
  1135  type Empty struct {
  1136  	// ServerResponse contains the HTTP response code and headers from the server.
  1137  	googleapi.ServerResponse `json:"-"`
  1138  }
  1139  
  1140  // EmptyDirVolumeSource: In memory (tmpfs) ephemeral storage. It is ephemeral
  1141  // in the sense that when the sandbox is taken down, the data is destroyed with
  1142  // it (it does not persist across sandbox runs).
  1143  type EmptyDirVolumeSource struct {
  1144  	// Medium: The medium on which the data is stored. The default is "" which
  1145  	// means to use the node's default medium. Must be an empty string (default) or
  1146  	// Memory. More info:
  1147  	// https://kubernetes.io/docs/concepts/storage/volumes#emptydir
  1148  	Medium string `json:"medium,omitempty"`
  1149  	// SizeLimit: Limit on the storage usable by this EmptyDir volume. The size
  1150  	// limit is also applicable for memory medium. The maximum usage on memory
  1151  	// medium EmptyDir would be the minimum value between the SizeLimit specified
  1152  	// here and the sum of memory limits of all containers. The default is nil
  1153  	// which means that the limit is undefined. More info:
  1154  	// https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume.
  1155  	// Info in Kubernetes:
  1156  	// https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
  1157  	SizeLimit string `json:"sizeLimit,omitempty"`
  1158  	// ForceSendFields is a list of field names (e.g. "Medium") to unconditionally
  1159  	// include in API requests. By default, fields with empty or default values are
  1160  	// omitted from API requests. See
  1161  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1162  	// details.
  1163  	ForceSendFields []string `json:"-"`
  1164  	// NullFields is a list of field names (e.g. "Medium") to include in API
  1165  	// requests with the JSON null value. By default, fields with empty values are
  1166  	// omitted from API requests. See
  1167  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1168  	NullFields []string `json:"-"`
  1169  }
  1170  
  1171  func (s *EmptyDirVolumeSource) MarshalJSON() ([]byte, error) {
  1172  	type NoMethod EmptyDirVolumeSource
  1173  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1174  }
  1175  
  1176  // EnvFromSource: Not supported by Cloud Run. EnvFromSource represents the
  1177  // source of a set of ConfigMaps
  1178  type EnvFromSource struct {
  1179  	// ConfigMapRef: The ConfigMap to select from
  1180  	ConfigMapRef *ConfigMapEnvSource `json:"configMapRef,omitempty"`
  1181  	// Prefix: An optional identifier to prepend to each key in the ConfigMap. Must
  1182  	// be a C_IDENTIFIER.
  1183  	Prefix string `json:"prefix,omitempty"`
  1184  	// SecretRef: The Secret to select from
  1185  	SecretRef *SecretEnvSource `json:"secretRef,omitempty"`
  1186  	// ForceSendFields is a list of field names (e.g. "ConfigMapRef") to
  1187  	// unconditionally include in API requests. By default, fields with empty or
  1188  	// default values are omitted from API requests. See
  1189  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1190  	// details.
  1191  	ForceSendFields []string `json:"-"`
  1192  	// NullFields is a list of field names (e.g. "ConfigMapRef") to include in API
  1193  	// requests with the JSON null value. By default, fields with empty values are
  1194  	// omitted from API requests. See
  1195  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1196  	NullFields []string `json:"-"`
  1197  }
  1198  
  1199  func (s *EnvFromSource) MarshalJSON() ([]byte, error) {
  1200  	type NoMethod EnvFromSource
  1201  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1202  }
  1203  
  1204  // EnvVar: EnvVar represents an environment variable present in a Container.
  1205  type EnvVar struct {
  1206  	// Name: Required. Name of the environment variable.
  1207  	Name string `json:"name,omitempty"`
  1208  	// Value: Value of the environment variable. Defaults to "". Variable
  1209  	// references are not supported in Cloud Run.
  1210  	Value string `json:"value,omitempty"`
  1211  	// ValueFrom: Source for the environment variable's value. Only supports
  1212  	// secret_key_ref. Cannot be used if value is not empty.
  1213  	ValueFrom *EnvVarSource `json:"valueFrom,omitempty"`
  1214  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1215  	// include in API requests. By default, fields with empty or default values are
  1216  	// omitted from API requests. See
  1217  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1218  	// details.
  1219  	ForceSendFields []string `json:"-"`
  1220  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1221  	// with the JSON null value. By default, fields with empty values are omitted
  1222  	// from API requests. See
  1223  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1224  	NullFields []string `json:"-"`
  1225  }
  1226  
  1227  func (s *EnvVar) MarshalJSON() ([]byte, error) {
  1228  	type NoMethod EnvVar
  1229  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1230  }
  1231  
  1232  // EnvVarSource: EnvVarSource represents a source for the value of an EnvVar.
  1233  type EnvVarSource struct {
  1234  	// ConfigMapKeyRef: Not supported by Cloud Run. Not supported in Cloud Run.
  1235  	ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
  1236  	// SecretKeyRef: Selects a key (version) of a secret in Secret Manager.
  1237  	SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty"`
  1238  	// ForceSendFields is a list of field names (e.g. "ConfigMapKeyRef") to
  1239  	// unconditionally include in API requests. By default, fields with empty or
  1240  	// default values are omitted from API requests. See
  1241  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1242  	// details.
  1243  	ForceSendFields []string `json:"-"`
  1244  	// NullFields is a list of field names (e.g. "ConfigMapKeyRef") to include in
  1245  	// API requests with the JSON null value. By default, fields with empty values
  1246  	// are omitted from API requests. See
  1247  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1248  	NullFields []string `json:"-"`
  1249  }
  1250  
  1251  func (s *EnvVarSource) MarshalJSON() ([]byte, error) {
  1252  	type NoMethod EnvVarSource
  1253  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1254  }
  1255  
  1256  // ExecAction: Not supported by Cloud Run. ExecAction describes a "run in
  1257  // container" action.
  1258  type ExecAction struct {
  1259  	// Command: Command is the command line to execute inside the container, the
  1260  	// working directory for the command is root ('/') in the container's
  1261  	// filesystem. The command is simply exec'd, it is not run inside a shell, so
  1262  	// traditional shell instructions ('|', etc) won't work. To use a shell, you
  1263  	// need to explicitly call out to that shell. Exit status of 0 is treated as
  1264  	// live/healthy and non-zero is unhealthy.
  1265  	Command []string `json:"command,omitempty"`
  1266  	// ForceSendFields is a list of field names (e.g. "Command") to unconditionally
  1267  	// include in API requests. By default, fields with empty or default values are
  1268  	// omitted from API requests. See
  1269  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1270  	// details.
  1271  	ForceSendFields []string `json:"-"`
  1272  	// NullFields is a list of field names (e.g. "Command") to include in API
  1273  	// requests with the JSON null value. By default, fields with empty values are
  1274  	// omitted from API requests. See
  1275  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1276  	NullFields []string `json:"-"`
  1277  }
  1278  
  1279  func (s *ExecAction) MarshalJSON() ([]byte, error) {
  1280  	type NoMethod ExecAction
  1281  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1282  }
  1283  
  1284  // Execution: Execution represents the configuration of a single execution. An
  1285  // execution is an immutable resource that references a container image which
  1286  // is run to completion.
  1287  type Execution struct {
  1288  	// ApiVersion: Optional. APIVersion defines the versioned schema of this
  1289  	// representation of an object. Servers should convert recognized schemas to
  1290  	// the latest internal value, and may reject unrecognized values.
  1291  	ApiVersion string `json:"apiVersion,omitempty"`
  1292  	// Kind: Optional. Kind is a string value representing the REST resource this
  1293  	// object represents. Servers may infer this from the endpoint the client
  1294  	// submits requests to. Cannot be updated. In CamelCase.
  1295  	Kind string `json:"kind,omitempty"`
  1296  	// Metadata: Optional. Standard object's metadata.
  1297  	Metadata *ObjectMeta `json:"metadata,omitempty"`
  1298  	// Spec: Optional. Specification of the desired behavior of an execution.
  1299  	Spec *ExecutionSpec `json:"spec,omitempty"`
  1300  	// Status: Output only. Current status of an execution.
  1301  	Status *ExecutionStatus `json:"status,omitempty"`
  1302  
  1303  	// ServerResponse contains the HTTP response code and headers from the server.
  1304  	googleapi.ServerResponse `json:"-"`
  1305  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  1306  	// unconditionally include in API requests. By default, fields with empty or
  1307  	// default values are omitted from API requests. See
  1308  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1309  	// details.
  1310  	ForceSendFields []string `json:"-"`
  1311  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  1312  	// requests with the JSON null value. By default, fields with empty values are
  1313  	// omitted from API requests. See
  1314  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1315  	NullFields []string `json:"-"`
  1316  }
  1317  
  1318  func (s *Execution) MarshalJSON() ([]byte, error) {
  1319  	type NoMethod Execution
  1320  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1321  }
  1322  
  1323  // ExecutionReference: Reference to an Execution. Use /Executions.GetExecution
  1324  // with the given name to get full execution including the latest status.
  1325  type ExecutionReference struct {
  1326  	// CompletionTimestamp: Optional. Completion timestamp of the execution.
  1327  	CompletionTimestamp string `json:"completionTimestamp,omitempty"`
  1328  	// CreationTimestamp: Optional. Creation timestamp of the execution.
  1329  	CreationTimestamp string `json:"creationTimestamp,omitempty"`
  1330  	// Name: Optional. Name of the execution.
  1331  	Name string `json:"name,omitempty"`
  1332  	// ForceSendFields is a list of field names (e.g. "CompletionTimestamp") to
  1333  	// unconditionally include in API requests. By default, fields with empty or
  1334  	// default values are omitted from API requests. See
  1335  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1336  	// details.
  1337  	ForceSendFields []string `json:"-"`
  1338  	// NullFields is a list of field names (e.g. "CompletionTimestamp") to include
  1339  	// in API requests with the JSON null value. By default, fields with empty
  1340  	// values are omitted from API requests. See
  1341  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1342  	NullFields []string `json:"-"`
  1343  }
  1344  
  1345  func (s *ExecutionReference) MarshalJSON() ([]byte, error) {
  1346  	type NoMethod ExecutionReference
  1347  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1348  }
  1349  
  1350  // ExecutionSpec: ExecutionSpec describes how the execution will look.
  1351  type ExecutionSpec struct {
  1352  	// Parallelism: Optional. Specifies the maximum desired number of tasks the
  1353  	// execution should run at given time. Must be <= task_count. When the job is
  1354  	// run, if this field is 0 or unset, the maximum possible value will be used
  1355  	// for that execution. The actual number of tasks running in steady state will
  1356  	// be less than this number when there are fewer tasks waiting to be completed,
  1357  	// i.e. when the work left to do is less than max parallelism.
  1358  	Parallelism int64 `json:"parallelism,omitempty"`
  1359  	// TaskCount: Optional. Specifies the desired number of tasks the execution
  1360  	// should run. Setting to 1 means that parallelism is limited to 1 and the
  1361  	// success of that task signals the success of the execution. Defaults to 1.
  1362  	TaskCount int64 `json:"taskCount,omitempty"`
  1363  	// Template: Optional. The template used to create tasks for this execution.
  1364  	Template *TaskTemplateSpec `json:"template,omitempty"`
  1365  	// ForceSendFields is a list of field names (e.g. "Parallelism") to
  1366  	// unconditionally include in API requests. By default, fields with empty or
  1367  	// default values are omitted from API requests. See
  1368  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1369  	// details.
  1370  	ForceSendFields []string `json:"-"`
  1371  	// NullFields is a list of field names (e.g. "Parallelism") to include in API
  1372  	// requests with the JSON null value. By default, fields with empty values are
  1373  	// omitted from API requests. See
  1374  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1375  	NullFields []string `json:"-"`
  1376  }
  1377  
  1378  func (s *ExecutionSpec) MarshalJSON() ([]byte, error) {
  1379  	type NoMethod ExecutionSpec
  1380  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1381  }
  1382  
  1383  // ExecutionStatus: ExecutionStatus represents the current state of an
  1384  // Execution.
  1385  type ExecutionStatus struct {
  1386  	// CancelledCount: Optional. The number of tasks which reached phase Cancelled.
  1387  	CancelledCount int64 `json:"cancelledCount,omitempty"`
  1388  	// CompletionTime: Optional. Represents the time that the execution was
  1389  	// completed. It is not guaranteed to be set in happens-before order across
  1390  	// separate operations. It is represented in RFC3339 form and is in UTC.
  1391  	// +optional
  1392  	CompletionTime string `json:"completionTime,omitempty"`
  1393  	// Conditions: Optional. Conditions communicate information about
  1394  	// ongoing/complete reconciliation processes that bring the "spec" inline with
  1395  	// the observed state of the world. Execution-specific conditions include: *
  1396  	// `ResourcesAvailable`: `True` when underlying resources have been
  1397  	// provisioned. * `Started`: `True` when the execution has started to execute.
  1398  	// * `Completed`: `True` when the execution has succeeded. `False` when the
  1399  	// execution has failed.
  1400  	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
  1401  	// FailedCount: Optional. The number of tasks which reached phase Failed.
  1402  	FailedCount int64 `json:"failedCount,omitempty"`
  1403  	// LogUri: Optional. URI where logs for this execution can be found in Cloud
  1404  	// Console.
  1405  	LogUri string `json:"logUri,omitempty"`
  1406  	// ObservedGeneration: Optional. The 'generation' of the execution that was
  1407  	// last processed by the controller.
  1408  	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
  1409  	// RetriedCount: Optional. The number of tasks which have retried at least
  1410  	// once.
  1411  	RetriedCount int64 `json:"retriedCount,omitempty"`
  1412  	// RunningCount: Optional. The number of actively running tasks.
  1413  	RunningCount int64 `json:"runningCount,omitempty"`
  1414  	// StartTime: Optional. Represents the time that the execution started to run.
  1415  	// It is not guaranteed to be set in happens-before order across separate
  1416  	// operations. It is represented in RFC3339 form and is in UTC.
  1417  	StartTime string `json:"startTime,omitempty"`
  1418  	// SucceededCount: Optional. The number of tasks which reached phase Succeeded.
  1419  	SucceededCount int64 `json:"succeededCount,omitempty"`
  1420  	// ForceSendFields is a list of field names (e.g. "CancelledCount") to
  1421  	// unconditionally include in API requests. By default, fields with empty or
  1422  	// default values are omitted from API requests. See
  1423  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1424  	// details.
  1425  	ForceSendFields []string `json:"-"`
  1426  	// NullFields is a list of field names (e.g. "CancelledCount") to include in
  1427  	// API requests with the JSON null value. By default, fields with empty values
  1428  	// are omitted from API requests. See
  1429  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1430  	NullFields []string `json:"-"`
  1431  }
  1432  
  1433  func (s *ExecutionStatus) MarshalJSON() ([]byte, error) {
  1434  	type NoMethod ExecutionStatus
  1435  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1436  }
  1437  
  1438  // ExecutionTemplateSpec: ExecutionTemplateSpec describes the metadata and spec
  1439  // an Execution should have when created from a job.
  1440  type ExecutionTemplateSpec struct {
  1441  	// Metadata: Optional. Optional metadata for this Execution, including labels
  1442  	// and annotations. The following annotation keys set properties of the created
  1443  	// execution: * `run.googleapis.com/cloudsql-instances` sets Cloud SQL
  1444  	// connections. Multiple values should be comma separated. *
  1445  	// `run.googleapis.com/vpc-access-connector` sets a Serverless VPC Access
  1446  	// connector. * `run.googleapis.com/vpc-access-egress` sets VPC egress.
  1447  	// Supported values are `all-traffic`, `all` (deprecated), and
  1448  	// `private-ranges-only`. `all-traffic` and `all` provide the same
  1449  	// functionality. `all` is deprecated but will continue to be supported. Prefer
  1450  	// `all-traffic`.
  1451  	Metadata *ObjectMeta `json:"metadata,omitempty"`
  1452  	// Spec: Required. ExecutionSpec holds the desired configuration for executions
  1453  	// of this job.
  1454  	Spec *ExecutionSpec `json:"spec,omitempty"`
  1455  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  1456  	// unconditionally include in API requests. By default, fields with empty or
  1457  	// default values are omitted from API requests. See
  1458  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1459  	// details.
  1460  	ForceSendFields []string `json:"-"`
  1461  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  1462  	// requests with the JSON null value. By default, fields with empty values are
  1463  	// omitted from API requests. See
  1464  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1465  	NullFields []string `json:"-"`
  1466  }
  1467  
  1468  func (s *ExecutionTemplateSpec) MarshalJSON() ([]byte, error) {
  1469  	type NoMethod ExecutionTemplateSpec
  1470  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1471  }
  1472  
  1473  // Expr: Represents a textual expression in the Common Expression Language
  1474  // (CEL) syntax. CEL is a C-like expression language. The syntax and semantics
  1475  // of CEL are documented at https://github.com/google/cel-spec. Example
  1476  // (Comparison): title: "Summary size limit" description: "Determines if a
  1477  // summary is less than 100 chars" expression: "document.summary.size() < 100"
  1478  // Example (Equality): title: "Requestor is owner" description: "Determines if
  1479  // requestor is the document owner" expression: "document.owner ==
  1480  // request.auth.claims.email" Example (Logic): title: "Public documents"
  1481  // description: "Determine whether the document should be publicly visible"
  1482  // expression: "document.type != 'private' && document.type != 'internal'"
  1483  // Example (Data Manipulation): title: "Notification string" description:
  1484  // "Create a notification string with a timestamp." expression: "'New message
  1485  // received at ' + string(document.create_time)" The exact variables and
  1486  // functions that may be referenced within an expression are determined by the
  1487  // service that evaluates it. See the service documentation for additional
  1488  // information.
  1489  type Expr struct {
  1490  	// Description: Optional. Description of the expression. This is a longer text
  1491  	// which describes the expression, e.g. when hovered over it in a UI.
  1492  	Description string `json:"description,omitempty"`
  1493  	// Expression: Textual representation of an expression in Common Expression
  1494  	// Language syntax.
  1495  	Expression string `json:"expression,omitempty"`
  1496  	// Location: Optional. String indicating the location of the expression for
  1497  	// error reporting, e.g. a file name and a position in the file.
  1498  	Location string `json:"location,omitempty"`
  1499  	// Title: Optional. Title for the expression, i.e. a short string describing
  1500  	// its purpose. This can be used e.g. in UIs which allow to enter the
  1501  	// expression.
  1502  	Title string `json:"title,omitempty"`
  1503  	// ForceSendFields is a list of field names (e.g. "Description") to
  1504  	// unconditionally include in API requests. By default, fields with empty or
  1505  	// default values are omitted from API requests. See
  1506  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1507  	// details.
  1508  	ForceSendFields []string `json:"-"`
  1509  	// NullFields is a list of field names (e.g. "Description") to include in API
  1510  	// requests with the JSON null value. By default, fields with empty values are
  1511  	// omitted from API requests. See
  1512  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1513  	NullFields []string `json:"-"`
  1514  }
  1515  
  1516  func (s *Expr) MarshalJSON() ([]byte, error) {
  1517  	type NoMethod Expr
  1518  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1519  }
  1520  
  1521  // GRPCAction: GRPCAction describes an action involving a GRPC port.
  1522  type GRPCAction struct {
  1523  	// Port: Port number of the gRPC service. Number must be in the range 1 to
  1524  	// 65535.
  1525  	Port int64 `json:"port,omitempty"`
  1526  	// Service: Service is the name of the service to place in the gRPC
  1527  	// HealthCheckRequest. If this is not specified, the default behavior is
  1528  	// defined by gRPC.
  1529  	Service string `json:"service,omitempty"`
  1530  	// ForceSendFields is a list of field names (e.g. "Port") to unconditionally
  1531  	// include in API requests. By default, fields with empty or default values are
  1532  	// omitted from API requests. See
  1533  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1534  	// details.
  1535  	ForceSendFields []string `json:"-"`
  1536  	// NullFields is a list of field names (e.g. "Port") to include in API requests
  1537  	// with the JSON null value. By default, fields with empty values are omitted
  1538  	// from API requests. See
  1539  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1540  	NullFields []string `json:"-"`
  1541  }
  1542  
  1543  func (s *GRPCAction) MarshalJSON() ([]byte, error) {
  1544  	type NoMethod GRPCAction
  1545  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1546  }
  1547  
  1548  // GoogleCloudRunV1Condition: Conditions show the status of reconciliation
  1549  // progress on a given resource. Most resource use a top-level condition type
  1550  // "Ready" or "Completed" to show overall status with other conditions to
  1551  // checkpoint each stage of reconciliation. Note that if metadata.Generation
  1552  // does not equal status.ObservedGeneration, the conditions shown may not be
  1553  // relevant for the current spec.
  1554  type GoogleCloudRunV1Condition struct {
  1555  	// LastTransitionTime: Optional. Last time the condition transitioned from one
  1556  	// status to another.
  1557  	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
  1558  	// Message: Optional. Human readable message indicating details about the
  1559  	// current status.
  1560  	Message string `json:"message,omitempty"`
  1561  	// Reason: Optional. One-word CamelCase reason for the condition's last
  1562  	// transition. These are intended to be stable, unique values which the client
  1563  	// may use to trigger error handling logic, whereas messages which may be
  1564  	// changed later by the server.
  1565  	Reason string `json:"reason,omitempty"`
  1566  	// Severity: Optional. How to interpret this condition. One of Error, Warning,
  1567  	// or Info. Conditions of severity Info do not contribute to resource
  1568  	// readiness.
  1569  	Severity string `json:"severity,omitempty"`
  1570  	// Status: Status of the condition, one of True, False, Unknown.
  1571  	Status string `json:"status,omitempty"`
  1572  	// Type: type is used to communicate the status of the reconciliation process.
  1573  	// Types common to all resources include: * "Ready" or "Completed": True when
  1574  	// the Resource is ready.
  1575  	Type string `json:"type,omitempty"`
  1576  	// ForceSendFields is a list of field names (e.g. "LastTransitionTime") to
  1577  	// unconditionally include in API requests. By default, fields with empty or
  1578  	// default values are omitted from API requests. See
  1579  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1580  	// details.
  1581  	ForceSendFields []string `json:"-"`
  1582  	// NullFields is a list of field names (e.g. "LastTransitionTime") to include
  1583  	// in API requests with the JSON null value. By default, fields with empty
  1584  	// values are omitted from API requests. See
  1585  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1586  	NullFields []string `json:"-"`
  1587  }
  1588  
  1589  func (s *GoogleCloudRunV1Condition) MarshalJSON() ([]byte, error) {
  1590  	type NoMethod GoogleCloudRunV1Condition
  1591  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1592  }
  1593  
  1594  // GoogleDevtoolsCloudbuildV1ApprovalConfig: ApprovalConfig describes
  1595  // configuration for manual approval of a build.
  1596  type GoogleDevtoolsCloudbuildV1ApprovalConfig struct {
  1597  	// ApprovalRequired: Whether or not approval is needed. If this is set on a
  1598  	// build, it will become pending when created, and will need to be explicitly
  1599  	// approved to start.
  1600  	ApprovalRequired bool `json:"approvalRequired,omitempty"`
  1601  	// ForceSendFields is a list of field names (e.g. "ApprovalRequired") to
  1602  	// unconditionally include in API requests. By default, fields with empty or
  1603  	// default values are omitted from API requests. See
  1604  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1605  	// details.
  1606  	ForceSendFields []string `json:"-"`
  1607  	// NullFields is a list of field names (e.g. "ApprovalRequired") to include in
  1608  	// API requests with the JSON null value. By default, fields with empty values
  1609  	// are omitted from API requests. See
  1610  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1611  	NullFields []string `json:"-"`
  1612  }
  1613  
  1614  func (s *GoogleDevtoolsCloudbuildV1ApprovalConfig) MarshalJSON() ([]byte, error) {
  1615  	type NoMethod GoogleDevtoolsCloudbuildV1ApprovalConfig
  1616  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1617  }
  1618  
  1619  // GoogleDevtoolsCloudbuildV1ApprovalResult: ApprovalResult describes the
  1620  // decision and associated metadata of a manual approval of a build.
  1621  type GoogleDevtoolsCloudbuildV1ApprovalResult struct {
  1622  	// ApprovalTime: Output only. The time when the approval decision was made.
  1623  	ApprovalTime string `json:"approvalTime,omitempty"`
  1624  	// ApproverAccount: Output only. Email of the user that called the ApproveBuild
  1625  	// API to approve or reject a build at the time that the API was called.
  1626  	ApproverAccount string `json:"approverAccount,omitempty"`
  1627  	// Comment: Optional. An optional comment for this manual approval result.
  1628  	Comment string `json:"comment,omitempty"`
  1629  	// Decision: Required. The decision of this manual approval.
  1630  	//
  1631  	// Possible values:
  1632  	//   "DECISION_UNSPECIFIED" - Default enum type. This should not be used.
  1633  	//   "APPROVED" - Build is approved.
  1634  	//   "REJECTED" - Build is rejected.
  1635  	Decision string `json:"decision,omitempty"`
  1636  	// Url: Optional. An optional URL tied to this manual approval result. This
  1637  	// field is essentially the same as comment, except that it will be rendered by
  1638  	// the UI differently. An example use case is a link to an external job that
  1639  	// approved this Build.
  1640  	Url string `json:"url,omitempty"`
  1641  	// ForceSendFields is a list of field names (e.g. "ApprovalTime") to
  1642  	// unconditionally include in API requests. By default, fields with empty or
  1643  	// default values are omitted from API requests. See
  1644  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1645  	// details.
  1646  	ForceSendFields []string `json:"-"`
  1647  	// NullFields is a list of field names (e.g. "ApprovalTime") to include in API
  1648  	// requests with the JSON null value. By default, fields with empty values are
  1649  	// omitted from API requests. See
  1650  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1651  	NullFields []string `json:"-"`
  1652  }
  1653  
  1654  func (s *GoogleDevtoolsCloudbuildV1ApprovalResult) MarshalJSON() ([]byte, error) {
  1655  	type NoMethod GoogleDevtoolsCloudbuildV1ApprovalResult
  1656  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1657  }
  1658  
  1659  // GoogleDevtoolsCloudbuildV1ArtifactObjects: Files in the workspace to upload
  1660  // to Cloud Storage upon successful completion of all build steps.
  1661  type GoogleDevtoolsCloudbuildV1ArtifactObjects struct {
  1662  	// Location: Cloud Storage bucket and optional object path, in the form
  1663  	// "gs://bucket/path/to/somewhere/". (see Bucket Name Requirements
  1664  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files
  1665  	// in the workspace matching any path pattern will be uploaded to Cloud Storage
  1666  	// with this location as a prefix.
  1667  	Location string `json:"location,omitempty"`
  1668  	// Paths: Path globs used to match files in the build's workspace.
  1669  	Paths []string `json:"paths,omitempty"`
  1670  	// Timing: Output only. Stores timing information for pushing all artifact
  1671  	// objects.
  1672  	Timing *GoogleDevtoolsCloudbuildV1TimeSpan `json:"timing,omitempty"`
  1673  	// ForceSendFields is a list of field names (e.g. "Location") to
  1674  	// unconditionally include in API requests. By default, fields with empty or
  1675  	// default values are omitted from API requests. See
  1676  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1677  	// details.
  1678  	ForceSendFields []string `json:"-"`
  1679  	// NullFields is a list of field names (e.g. "Location") to include in API
  1680  	// requests with the JSON null value. By default, fields with empty values are
  1681  	// omitted from API requests. See
  1682  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1683  	NullFields []string `json:"-"`
  1684  }
  1685  
  1686  func (s *GoogleDevtoolsCloudbuildV1ArtifactObjects) MarshalJSON() ([]byte, error) {
  1687  	type NoMethod GoogleDevtoolsCloudbuildV1ArtifactObjects
  1688  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1689  }
  1690  
  1691  // GoogleDevtoolsCloudbuildV1Artifacts: Artifacts produced by a build that
  1692  // should be uploaded upon successful completion of all build steps.
  1693  type GoogleDevtoolsCloudbuildV1Artifacts struct {
  1694  	// Images: A list of images to be pushed upon the successful completion of all
  1695  	// build steps. The images will be pushed using the builder service account's
  1696  	// credentials. The digests of the pushed images will be stored in the Build
  1697  	// resource's results field. If any of the images fail to be pushed, the build
  1698  	// is marked FAILURE.
  1699  	Images []string `json:"images,omitempty"`
  1700  	// MavenArtifacts: A list of Maven artifacts to be uploaded to Artifact
  1701  	// Registry upon successful completion of all build steps. Artifacts in the
  1702  	// workspace matching specified paths globs will be uploaded to the specified
  1703  	// Artifact Registry repository using the builder service account's
  1704  	// credentials. If any artifacts fail to be pushed, the build is marked
  1705  	// FAILURE.
  1706  	MavenArtifacts []*GoogleDevtoolsCloudbuildV1MavenArtifact `json:"mavenArtifacts,omitempty"`
  1707  	// NpmPackages: A list of npm packages to be uploaded to Artifact Registry upon
  1708  	// successful completion of all build steps. Npm packages in the specified
  1709  	// paths will be uploaded to the specified Artifact Registry repository using
  1710  	// the builder service account's credentials. If any packages fail to be
  1711  	// pushed, the build is marked FAILURE.
  1712  	NpmPackages []*GoogleDevtoolsCloudbuildV1NpmPackage `json:"npmPackages,omitempty"`
  1713  	// Objects: A list of objects to be uploaded to Cloud Storage upon successful
  1714  	// completion of all build steps. Files in the workspace matching specified
  1715  	// paths globs will be uploaded to the specified Cloud Storage location using
  1716  	// the builder service account's credentials. The location and generation of
  1717  	// the uploaded objects will be stored in the Build resource's results field.
  1718  	// If any objects fail to be pushed, the build is marked FAILURE.
  1719  	Objects *GoogleDevtoolsCloudbuildV1ArtifactObjects `json:"objects,omitempty"`
  1720  	// PythonPackages: A list of Python packages to be uploaded to Artifact
  1721  	// Registry upon successful completion of all build steps. The build service
  1722  	// account credentials will be used to perform the upload. If any objects fail
  1723  	// to be pushed, the build is marked FAILURE.
  1724  	PythonPackages []*GoogleDevtoolsCloudbuildV1PythonPackage `json:"pythonPackages,omitempty"`
  1725  	// ForceSendFields is a list of field names (e.g. "Images") to unconditionally
  1726  	// include in API requests. By default, fields with empty or default values are
  1727  	// omitted from API requests. See
  1728  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1729  	// details.
  1730  	ForceSendFields []string `json:"-"`
  1731  	// NullFields is a list of field names (e.g. "Images") to include in API
  1732  	// requests with the JSON null value. By default, fields with empty values are
  1733  	// omitted from API requests. See
  1734  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1735  	NullFields []string `json:"-"`
  1736  }
  1737  
  1738  func (s *GoogleDevtoolsCloudbuildV1Artifacts) MarshalJSON() ([]byte, error) {
  1739  	type NoMethod GoogleDevtoolsCloudbuildV1Artifacts
  1740  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1741  }
  1742  
  1743  // GoogleDevtoolsCloudbuildV1Build: A build resource in the Cloud Build API. At
  1744  // a high level, a `Build` describes where to find source code, how to build it
  1745  // (for example, the builder image to run on the source), and where to store
  1746  // the built artifacts. Fields can include the following variables, which will
  1747  // be expanded when the build is created: - $PROJECT_ID: the project ID of the
  1748  // build. - $PROJECT_NUMBER: the project number of the build. - $LOCATION: the
  1749  // location/region of the build. - $BUILD_ID: the autogenerated ID of the
  1750  // build. - $REPO_NAME: the source repository name specified by RepoSource. -
  1751  // $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag
  1752  // name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA
  1753  // specified by RepoSource or resolved from the specified branch or tag. -
  1754  // $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
  1755  type GoogleDevtoolsCloudbuildV1Build struct {
  1756  	// Approval: Output only. Describes this build's approval configuration,
  1757  	// status, and result.
  1758  	Approval *GoogleDevtoolsCloudbuildV1BuildApproval `json:"approval,omitempty"`
  1759  	// Artifacts: Artifacts produced by the build that should be uploaded upon
  1760  	// successful completion of all build steps.
  1761  	Artifacts *GoogleDevtoolsCloudbuildV1Artifacts `json:"artifacts,omitempty"`
  1762  	// AvailableSecrets: Secrets and secret environment variables.
  1763  	AvailableSecrets *GoogleDevtoolsCloudbuildV1Secrets `json:"availableSecrets,omitempty"`
  1764  	// BuildTriggerId: Output only. The ID of the `BuildTrigger` that triggered
  1765  	// this build, if it was triggered automatically.
  1766  	BuildTriggerId string `json:"buildTriggerId,omitempty"`
  1767  	// CreateTime: Output only. Time at which the request to create the build was
  1768  	// received.
  1769  	CreateTime string `json:"createTime,omitempty"`
  1770  	// FailureInfo: Output only. Contains information about the build when
  1771  	// status=FAILURE.
  1772  	FailureInfo *GoogleDevtoolsCloudbuildV1FailureInfo `json:"failureInfo,omitempty"`
  1773  	// FinishTime: Output only. Time at which execution of the build was finished.
  1774  	// The difference between finish_time and start_time is the duration of the
  1775  	// build's execution.
  1776  	FinishTime string `json:"finishTime,omitempty"`
  1777  	// GitConfig: Optional. Configuration for git operations.
  1778  	GitConfig *GoogleDevtoolsCloudbuildV1GitConfig `json:"gitConfig,omitempty"`
  1779  	// Id: Output only. Unique identifier of the build.
  1780  	Id string `json:"id,omitempty"`
  1781  	// Images: A list of images to be pushed upon the successful completion of all
  1782  	// build steps. The images are pushed using the builder service account's
  1783  	// credentials. The digests of the pushed images will be stored in the `Build`
  1784  	// resource's results field. If any of the images fail to be pushed, the build
  1785  	// status is marked `FAILURE`.
  1786  	Images []string `json:"images,omitempty"`
  1787  	// LogUrl: Output only. URL to logs for this build in Google Cloud Console.
  1788  	LogUrl string `json:"logUrl,omitempty"`
  1789  	// LogsBucket: Cloud Storage bucket where logs should be written (see Bucket
  1790  	// Name Requirements
  1791  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs
  1792  	// file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
  1793  	LogsBucket string `json:"logsBucket,omitempty"`
  1794  	// Name: Output only. The 'Build' name with format:
  1795  	// `projects/{project}/locations/{location}/builds/{build}`, where {build} is a
  1796  	// unique identifier generated by the service.
  1797  	Name string `json:"name,omitempty"`
  1798  	// Options: Special options for this build.
  1799  	Options *GoogleDevtoolsCloudbuildV1BuildOptions `json:"options,omitempty"`
  1800  	// ProjectId: Output only. ID of the project.
  1801  	ProjectId string `json:"projectId,omitempty"`
  1802  	// QueueTtl: TTL in queue for this build. If provided and the build is enqueued
  1803  	// longer than this value, the build will expire and the build status will be
  1804  	// `EXPIRED`. The TTL starts ticking from create_time.
  1805  	QueueTtl string `json:"queueTtl,omitempty"`
  1806  	// Results: Output only. Results of the build.
  1807  	Results *GoogleDevtoolsCloudbuildV1Results `json:"results,omitempty"`
  1808  	// Secrets: Secrets to decrypt using Cloud Key Management Service. Note: Secret
  1809  	// Manager is the recommended technique for managing sensitive data with Cloud
  1810  	// Build. Use `available_secrets` to configure builds to access secrets from
  1811  	// Secret Manager. For instructions, see:
  1812  	// https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
  1813  	Secrets []*GoogleDevtoolsCloudbuildV1Secret `json:"secrets,omitempty"`
  1814  	// ServiceAccount: IAM service account whose credentials will be used at build
  1815  	// runtime. Must be of the format
  1816  	// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email
  1817  	// address or uniqueId of the service account.
  1818  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1819  	// Source: The location of the source files to build.
  1820  	Source *GoogleDevtoolsCloudbuildV1Source `json:"source,omitempty"`
  1821  	// SourceProvenance: Output only. A permanent fixed identifier for source.
  1822  	SourceProvenance *GoogleDevtoolsCloudbuildV1SourceProvenance `json:"sourceProvenance,omitempty"`
  1823  	// StartTime: Output only. Time at which execution of the build was started.
  1824  	StartTime string `json:"startTime,omitempty"`
  1825  	// Status: Output only. Status of the build.
  1826  	//
  1827  	// Possible values:
  1828  	//   "STATUS_UNKNOWN" - Status of the build is unknown.
  1829  	//   "PENDING" - Build has been created and is pending execution and queuing.
  1830  	// It has not been queued.
  1831  	//   "QUEUED" - Build or step is queued; work has not yet begun.
  1832  	//   "WORKING" - Build or step is being executed.
  1833  	//   "SUCCESS" - Build or step finished successfully.
  1834  	//   "FAILURE" - Build or step failed to complete successfully.
  1835  	//   "INTERNAL_ERROR" - Build or step failed due to an internal cause.
  1836  	//   "TIMEOUT" - Build or step took longer than was allowed.
  1837  	//   "CANCELLED" - Build or step was canceled by a user.
  1838  	//   "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`.
  1839  	Status string `json:"status,omitempty"`
  1840  	// StatusDetail: Output only. Customer-readable message about the current
  1841  	// status.
  1842  	StatusDetail string `json:"statusDetail,omitempty"`
  1843  	// Steps: Required. The operations to be performed on the workspace.
  1844  	Steps []*GoogleDevtoolsCloudbuildV1BuildStep `json:"steps,omitempty"`
  1845  	// Substitutions: Substitutions data for `Build` resource.
  1846  	Substitutions map[string]string `json:"substitutions,omitempty"`
  1847  	// Tags: Tags for annotation of a `Build`. These are not docker tags.
  1848  	Tags []string `json:"tags,omitempty"`
  1849  	// Timeout: Amount of time that this build should be allowed to run, to second
  1850  	// granularity. If this amount of time elapses, work on the build will cease
  1851  	// and the build status will be `TIMEOUT`. `timeout` starts ticking from
  1852  	// `startTime`. Default time is 60 minutes.
  1853  	Timeout string `json:"timeout,omitempty"`
  1854  	// Timing: Output only. Stores timing information for phases of the build.
  1855  	// Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to
  1856  	// push all artifacts including docker images and non docker artifacts. *
  1857  	// FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If
  1858  	// the build does not specify source or images, these keys will not be
  1859  	// included.
  1860  	Timing map[string]GoogleDevtoolsCloudbuildV1TimeSpan `json:"timing,omitempty"`
  1861  	// Warnings: Output only. Non-fatal problems encountered during the execution
  1862  	// of the build.
  1863  	Warnings []*GoogleDevtoolsCloudbuildV1Warning `json:"warnings,omitempty"`
  1864  	// ForceSendFields is a list of field names (e.g. "Approval") 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. "Approval") to include in API
  1871  	// requests with the JSON null value. By default, fields with empty values are
  1872  	// 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 *GoogleDevtoolsCloudbuildV1Build) MarshalJSON() ([]byte, error) {
  1878  	type NoMethod GoogleDevtoolsCloudbuildV1Build
  1879  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1880  }
  1881  
  1882  // GoogleDevtoolsCloudbuildV1BuildApproval: BuildApproval describes a build's
  1883  // approval configuration, state, and result.
  1884  type GoogleDevtoolsCloudbuildV1BuildApproval struct {
  1885  	// Config: Output only. Configuration for manual approval of this build.
  1886  	Config *GoogleDevtoolsCloudbuildV1ApprovalConfig `json:"config,omitempty"`
  1887  	// Result: Output only. Result of manual approval for this Build.
  1888  	Result *GoogleDevtoolsCloudbuildV1ApprovalResult `json:"result,omitempty"`
  1889  	// State: Output only. The state of this build's approval.
  1890  	//
  1891  	// Possible values:
  1892  	//   "STATE_UNSPECIFIED" - Default enum type. This should not be used.
  1893  	//   "PENDING" - Build approval is pending.
  1894  	//   "APPROVED" - Build approval has been approved.
  1895  	//   "REJECTED" - Build approval has been rejected.
  1896  	//   "CANCELLED" - Build was cancelled while it was still pending approval.
  1897  	State string `json:"state,omitempty"`
  1898  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  1899  	// include in API requests. By default, fields with empty or default values are
  1900  	// omitted from API requests. See
  1901  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1902  	// details.
  1903  	ForceSendFields []string `json:"-"`
  1904  	// NullFields is a list of field names (e.g. "Config") to include in API
  1905  	// requests with the JSON null value. By default, fields with empty values are
  1906  	// omitted from API requests. See
  1907  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1908  	NullFields []string `json:"-"`
  1909  }
  1910  
  1911  func (s *GoogleDevtoolsCloudbuildV1BuildApproval) MarshalJSON() ([]byte, error) {
  1912  	type NoMethod GoogleDevtoolsCloudbuildV1BuildApproval
  1913  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1914  }
  1915  
  1916  // GoogleDevtoolsCloudbuildV1BuildOperationMetadata: Metadata for build
  1917  // operations.
  1918  type GoogleDevtoolsCloudbuildV1BuildOperationMetadata struct {
  1919  	// Build: The build that the operation is tracking.
  1920  	Build *GoogleDevtoolsCloudbuildV1Build `json:"build,omitempty"`
  1921  	// ForceSendFields is a list of field names (e.g. "Build") to unconditionally
  1922  	// include in API requests. By default, fields with empty or default values are
  1923  	// omitted from API requests. See
  1924  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1925  	// details.
  1926  	ForceSendFields []string `json:"-"`
  1927  	// NullFields is a list of field names (e.g. "Build") to include in API
  1928  	// requests with the JSON null value. By default, fields with empty values are
  1929  	// omitted from API requests. See
  1930  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1931  	NullFields []string `json:"-"`
  1932  }
  1933  
  1934  func (s *GoogleDevtoolsCloudbuildV1BuildOperationMetadata) MarshalJSON() ([]byte, error) {
  1935  	type NoMethod GoogleDevtoolsCloudbuildV1BuildOperationMetadata
  1936  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1937  }
  1938  
  1939  // GoogleDevtoolsCloudbuildV1BuildOptions: Optional arguments to enable
  1940  // specific features of builds.
  1941  type GoogleDevtoolsCloudbuildV1BuildOptions struct {
  1942  	// AutomapSubstitutions: Option to include built-in and custom substitutions as
  1943  	// env variables for all build steps.
  1944  	AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"`
  1945  	// DefaultLogsBucketBehavior: Optional. Option to specify how default logs
  1946  	// buckets are setup.
  1947  	//
  1948  	// Possible values:
  1949  	//   "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED" - Unspecified.
  1950  	//   "REGIONAL_USER_OWNED_BUCKET" - Bucket is located in user-owned project in
  1951  	// the same region as the build. The builder service account must have access
  1952  	// to create and write to Cloud Storage buckets in the build project.
  1953  	DefaultLogsBucketBehavior string `json:"defaultLogsBucketBehavior,omitempty"`
  1954  	// DiskSizeGb: Requested disk size for the VM that runs the build. Note that
  1955  	// this is *NOT* "disk free"; some of the space will be used by the operating
  1956  	// system and build utilities. Also note that this is the minimum disk size
  1957  	// that will be allocated for the build -- the build may run with a larger disk
  1958  	// than requested. At present, the maximum disk size is 2000GB; builds that
  1959  	// request more than the maximum are rejected with an error.
  1960  	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
  1961  	// DynamicSubstitutions: Option to specify whether or not to apply bash style
  1962  	// string operations to the substitutions. NOTE: this is always enabled for
  1963  	// triggered builds and cannot be overridden in the build configuration file.
  1964  	DynamicSubstitutions bool `json:"dynamicSubstitutions,omitempty"`
  1965  	// Env: A list of global environment variable definitions that will exist for
  1966  	// all build steps in this build. If a variable is defined in both globally and
  1967  	// in a build step, the variable will use the build step value. The elements
  1968  	// are of the form "KEY=VALUE" for the environment variable "KEY" being given
  1969  	// the value "VALUE".
  1970  	Env []string `json:"env,omitempty"`
  1971  	// LogStreamingOption: Option to define build log streaming behavior to Cloud
  1972  	// Storage.
  1973  	//
  1974  	// Possible values:
  1975  	//   "STREAM_DEFAULT" - Service may automatically determine build log streaming
  1976  	// behavior.
  1977  	//   "STREAM_ON" - Build logs should be streamed to Cloud Storage.
  1978  	//   "STREAM_OFF" - Build logs should not be streamed to Cloud Storage; they
  1979  	// will be written when the build is completed.
  1980  	LogStreamingOption string `json:"logStreamingOption,omitempty"`
  1981  	// Logging: Option to specify the logging mode, which determines if and where
  1982  	// build logs are stored.
  1983  	//
  1984  	// Possible values:
  1985  	//   "LOGGING_UNSPECIFIED" - The service determines the logging mode. The
  1986  	// default is `LEGACY`. Do not rely on the default logging behavior as it may
  1987  	// change in the future.
  1988  	//   "LEGACY" - Build logs are stored in Cloud Logging and Cloud Storage.
  1989  	//   "GCS_ONLY" - Build logs are stored in Cloud Storage.
  1990  	//   "STACKDRIVER_ONLY" - This option is the same as CLOUD_LOGGING_ONLY.
  1991  	//   "CLOUD_LOGGING_ONLY" - Build logs are stored in Cloud Logging. Selecting
  1992  	// this option will not allow [logs
  1993  	// streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log).
  1994  	//   "NONE" - Turn off all logging. No build logs will be captured.
  1995  	Logging string `json:"logging,omitempty"`
  1996  	// MachineType: Compute Engine machine type on which to run the build.
  1997  	//
  1998  	// Possible values:
  1999  	//   "UNSPECIFIED" - Standard machine type.
  2000  	//   "N1_HIGHCPU_8" - Highcpu machine with 8 CPUs.
  2001  	//   "N1_HIGHCPU_32" - Highcpu machine with 32 CPUs.
  2002  	//   "E2_HIGHCPU_8" - Highcpu e2 machine with 8 CPUs.
  2003  	//   "E2_HIGHCPU_32" - Highcpu e2 machine with 32 CPUs.
  2004  	//   "E2_MEDIUM" - E2 machine with 1 CPU.
  2005  	MachineType string `json:"machineType,omitempty"`
  2006  	// Pool: Optional. Specification for execution on a `WorkerPool`. See running
  2007  	// builds in a private pool
  2008  	// (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
  2009  	// for more information.
  2010  	Pool *GoogleDevtoolsCloudbuildV1PoolOption `json:"pool,omitempty"`
  2011  	// RequestedVerifyOption: Requested verifiability options.
  2012  	//
  2013  	// Possible values:
  2014  	//   "NOT_VERIFIED" - Not a verifiable build (the default).
  2015  	//   "VERIFIED" - Build must be verified.
  2016  	RequestedVerifyOption string `json:"requestedVerifyOption,omitempty"`
  2017  	// SecretEnv: A list of global environment variables, which are encrypted using
  2018  	// a Cloud Key Management Service crypto key. These values must be specified in
  2019  	// the build's `Secret`. These variables will be available to all build steps
  2020  	// in this build.
  2021  	SecretEnv []string `json:"secretEnv,omitempty"`
  2022  	// SourceProvenanceHash: Requested hash for SourceProvenance.
  2023  	//
  2024  	// Possible values:
  2025  	//   "NONE" - No hash requested.
  2026  	//   "SHA256" - Use a sha256 hash.
  2027  	//   "MD5" - Use a md5 hash.
  2028  	//   "SHA512" - Use a sha512 hash.
  2029  	SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"`
  2030  	// SubstitutionOption: Option to specify behavior when there is an error in the
  2031  	// substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered
  2032  	// builds and cannot be overridden in the build configuration file.
  2033  	//
  2034  	// Possible values:
  2035  	//   "MUST_MATCH" - Fails the build if error in substitutions checks, like
  2036  	// missing a substitution in the template or in the map.
  2037  	//   "ALLOW_LOOSE" - Do not fail the build if error in substitutions checks.
  2038  	SubstitutionOption string `json:"substitutionOption,omitempty"`
  2039  	// Volumes: Global list of volumes to mount for ALL build steps Each volume is
  2040  	// created as an empty volume prior to starting the build process. Upon
  2041  	// completion of the build, volumes and their contents are discarded. Global
  2042  	// volume names and paths cannot conflict with the volumes defined a build
  2043  	// step. Using a global volume in a build with only one step is not valid as it
  2044  	// is indicative of a build request with an incorrect configuration.
  2045  	Volumes []*GoogleDevtoolsCloudbuildV1Volume `json:"volumes,omitempty"`
  2046  	// WorkerPool: This field deprecated; please use `pool.name` instead.
  2047  	WorkerPool string `json:"workerPool,omitempty"`
  2048  	// ForceSendFields is a list of field names (e.g. "AutomapSubstitutions") to
  2049  	// unconditionally include in API requests. By default, fields with empty or
  2050  	// default values are omitted from API requests. See
  2051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2052  	// details.
  2053  	ForceSendFields []string `json:"-"`
  2054  	// NullFields is a list of field names (e.g. "AutomapSubstitutions") to include
  2055  	// in API requests with the JSON null value. By default, fields with empty
  2056  	// values are omitted from API requests. See
  2057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2058  	NullFields []string `json:"-"`
  2059  }
  2060  
  2061  func (s *GoogleDevtoolsCloudbuildV1BuildOptions) MarshalJSON() ([]byte, error) {
  2062  	type NoMethod GoogleDevtoolsCloudbuildV1BuildOptions
  2063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2064  }
  2065  
  2066  // GoogleDevtoolsCloudbuildV1BuildStep: A step in the build pipeline.
  2067  type GoogleDevtoolsCloudbuildV1BuildStep struct {
  2068  	// AllowExitCodes: Allow this build step to fail without failing the entire
  2069  	// build if and only if the exit code is one of the specified codes. If
  2070  	// allow_failure is also specified, this field will take precedence.
  2071  	AllowExitCodes []int64 `json:"allowExitCodes,omitempty"`
  2072  	// AllowFailure: Allow this build step to fail without failing the entire
  2073  	// build. If false, the entire build will fail if this step fails. Otherwise,
  2074  	// the build will succeed, but this step will still have a failure status.
  2075  	// Error information will be reported in the failure_detail field.
  2076  	AllowFailure bool `json:"allowFailure,omitempty"`
  2077  	// Args: A list of arguments that will be presented to the step when it is
  2078  	// started. If the image used to run the step's container has an entrypoint,
  2079  	// the `args` are used as arguments to that entrypoint. If the image does not
  2080  	// define an entrypoint, the first element in args is used as the entrypoint,
  2081  	// and the remainder will be used as arguments.
  2082  	Args []string `json:"args,omitempty"`
  2083  	// AutomapSubstitutions: Option to include built-in and custom substitutions as
  2084  	// env variables for this build step. This option will override the global
  2085  	// option in BuildOption.
  2086  	AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"`
  2087  	// Dir: Working directory to use when running this step's container. If this
  2088  	// value is a relative path, it is relative to the build's working directory.
  2089  	// If this value is absolute, it may be outside the build's working directory,
  2090  	// in which case the contents of the path may not be persisted across build
  2091  	// step executions, unless a `volume` for that path is specified. If the build
  2092  	// specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies
  2093  	// an absolute path, the `RepoSource` `dir` is ignored for the step's
  2094  	// execution.
  2095  	Dir string `json:"dir,omitempty"`
  2096  	// Entrypoint: Entrypoint to be used instead of the build step image's default
  2097  	// entrypoint. If unset, the image's default entrypoint is used.
  2098  	Entrypoint string `json:"entrypoint,omitempty"`
  2099  	// Env: A list of environment variable definitions to be used when running a
  2100  	// step. The elements are of the form "KEY=VALUE" for the environment variable
  2101  	// "KEY" being given the value "VALUE".
  2102  	Env []string `json:"env,omitempty"`
  2103  	// ExitCode: Output only. Return code from running the step.
  2104  	ExitCode int64 `json:"exitCode,omitempty"`
  2105  	// Id: Unique identifier for this build step, used in `wait_for` to reference
  2106  	// this build step as a dependency.
  2107  	Id string `json:"id,omitempty"`
  2108  	// Name: Required. The name of the container image that will run this
  2109  	// particular build step. If the image is available in the host's Docker
  2110  	// daemon's cache, it will be run directly. If not, the host will attempt to
  2111  	// pull the image first, using the builder service account's credentials if
  2112  	// necessary. The Docker daemon's cache will already have the latest versions
  2113  	// of all of the officially supported build steps
  2114  	// (https://github.com/GoogleCloudPlatform/cloud-builders
  2115  	// (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon
  2116  	// will also have cached many of the layers for some popular images, like
  2117  	// "ubuntu", "debian", but they will be refreshed at the time you attempt to
  2118  	// use them. If you built an image in a previous build step, it will be stored
  2119  	// in the host's Docker daemon's cache and is available to use as the name for
  2120  	// a later build step.
  2121  	Name string `json:"name,omitempty"`
  2122  	// PullTiming: Output only. Stores timing information for pulling this build
  2123  	// step's builder image only.
  2124  	PullTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"pullTiming,omitempty"`
  2125  	// Script: A shell script to be executed in the step. When script is provided,
  2126  	// the user cannot specify the entrypoint or args.
  2127  	Script string `json:"script,omitempty"`
  2128  	// SecretEnv: A list of environment variables which are encrypted using a Cloud
  2129  	// Key Management Service crypto key. These values must be specified in the
  2130  	// build's `Secret`.
  2131  	SecretEnv []string `json:"secretEnv,omitempty"`
  2132  	// Status: Output only. Status of the build step. At this time, build step
  2133  	// status is only updated on build completion; step status is not updated in
  2134  	// real-time as the build progresses.
  2135  	//
  2136  	// Possible values:
  2137  	//   "STATUS_UNKNOWN" - Status of the build is unknown.
  2138  	//   "PENDING" - Build has been created and is pending execution and queuing.
  2139  	// It has not been queued.
  2140  	//   "QUEUED" - Build or step is queued; work has not yet begun.
  2141  	//   "WORKING" - Build or step is being executed.
  2142  	//   "SUCCESS" - Build or step finished successfully.
  2143  	//   "FAILURE" - Build or step failed to complete successfully.
  2144  	//   "INTERNAL_ERROR" - Build or step failed due to an internal cause.
  2145  	//   "TIMEOUT" - Build or step took longer than was allowed.
  2146  	//   "CANCELLED" - Build or step was canceled by a user.
  2147  	//   "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`.
  2148  	Status string `json:"status,omitempty"`
  2149  	// Timeout: Time limit for executing this build step. If not defined, the step
  2150  	// has no time limit and will be allowed to continue to run until either it
  2151  	// completes or the build itself times out.
  2152  	Timeout string `json:"timeout,omitempty"`
  2153  	// Timing: Output only. Stores timing information for executing this build
  2154  	// step.
  2155  	Timing *GoogleDevtoolsCloudbuildV1TimeSpan `json:"timing,omitempty"`
  2156  	// Volumes: List of volumes to mount into the build step. Each volume is
  2157  	// created as an empty volume prior to execution of the build step. Upon
  2158  	// completion of the build, volumes and their contents are discarded. Using a
  2159  	// named volume in only one step is not valid as it is indicative of a build
  2160  	// request with an incorrect configuration.
  2161  	Volumes []*GoogleDevtoolsCloudbuildV1Volume `json:"volumes,omitempty"`
  2162  	// WaitFor: The ID(s) of the step(s) that this build step depends on. This
  2163  	// build step will not start until all the build steps in `wait_for` have
  2164  	// completed successfully. If `wait_for` is empty, this build step will start
  2165  	// when all previous build steps in the `Build.Steps` list have completed
  2166  	// successfully.
  2167  	WaitFor []string `json:"waitFor,omitempty"`
  2168  	// ForceSendFields is a list of field names (e.g. "AllowExitCodes") to
  2169  	// unconditionally include in API requests. By default, fields with empty or
  2170  	// default values are omitted from API requests. See
  2171  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2172  	// details.
  2173  	ForceSendFields []string `json:"-"`
  2174  	// NullFields is a list of field names (e.g. "AllowExitCodes") to include in
  2175  	// API requests with the JSON null value. By default, fields with empty values
  2176  	// are omitted from API requests. See
  2177  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2178  	NullFields []string `json:"-"`
  2179  }
  2180  
  2181  func (s *GoogleDevtoolsCloudbuildV1BuildStep) MarshalJSON() ([]byte, error) {
  2182  	type NoMethod GoogleDevtoolsCloudbuildV1BuildStep
  2183  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2184  }
  2185  
  2186  // GoogleDevtoolsCloudbuildV1BuiltImage: An image built by the pipeline.
  2187  type GoogleDevtoolsCloudbuildV1BuiltImage struct {
  2188  	// Digest: Docker Registry 2.0 digest.
  2189  	Digest string `json:"digest,omitempty"`
  2190  	// Name: Name used to push the container image to Google Container Registry, as
  2191  	// presented to `docker push`.
  2192  	Name string `json:"name,omitempty"`
  2193  	// PushTiming: Output only. Stores timing information for pushing the specified
  2194  	// image.
  2195  	PushTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"pushTiming,omitempty"`
  2196  	// ForceSendFields is a list of field names (e.g. "Digest") to unconditionally
  2197  	// include in API requests. By default, fields with empty or default values are
  2198  	// omitted from API requests. See
  2199  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2200  	// details.
  2201  	ForceSendFields []string `json:"-"`
  2202  	// NullFields is a list of field names (e.g. "Digest") to include in API
  2203  	// requests with the JSON null value. By default, fields with empty values are
  2204  	// omitted from API requests. See
  2205  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2206  	NullFields []string `json:"-"`
  2207  }
  2208  
  2209  func (s *GoogleDevtoolsCloudbuildV1BuiltImage) MarshalJSON() ([]byte, error) {
  2210  	type NoMethod GoogleDevtoolsCloudbuildV1BuiltImage
  2211  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2212  }
  2213  
  2214  // GoogleDevtoolsCloudbuildV1ConnectedRepository: Location of the source in a
  2215  // 2nd-gen Google Cloud Build repository resource.
  2216  type GoogleDevtoolsCloudbuildV1ConnectedRepository struct {
  2217  	// Dir: Directory, relative to the source root, in which to run the build.
  2218  	Dir string `json:"dir,omitempty"`
  2219  	// Repository: Required. Name of the Google Cloud Build repository, formatted
  2220  	// as `projects/*/locations/*/connections/*/repositories/*`.
  2221  	Repository string `json:"repository,omitempty"`
  2222  	// Revision: The revision to fetch from the Git repository such as a branch, a
  2223  	// tag, a commit SHA, or any Git ref.
  2224  	Revision string `json:"revision,omitempty"`
  2225  	// ForceSendFields is a list of field names (e.g. "Dir") to unconditionally
  2226  	// include in API requests. By default, fields with empty or default values are
  2227  	// omitted from API requests. See
  2228  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2229  	// details.
  2230  	ForceSendFields []string `json:"-"`
  2231  	// NullFields is a list of field names (e.g. "Dir") to include in API requests
  2232  	// with the JSON null value. By default, fields with empty values are omitted
  2233  	// from API requests. See
  2234  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2235  	NullFields []string `json:"-"`
  2236  }
  2237  
  2238  func (s *GoogleDevtoolsCloudbuildV1ConnectedRepository) MarshalJSON() ([]byte, error) {
  2239  	type NoMethod GoogleDevtoolsCloudbuildV1ConnectedRepository
  2240  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2241  }
  2242  
  2243  // GoogleDevtoolsCloudbuildV1DeveloperConnectConfig: This config defines the
  2244  // location of a source through Developer Connect.
  2245  type GoogleDevtoolsCloudbuildV1DeveloperConnectConfig struct {
  2246  	// Dir: Required. Directory, relative to the source root, in which to run the
  2247  	// build.
  2248  	Dir string `json:"dir,omitempty"`
  2249  	// GitRepositoryLink: Required. The Developer Connect Git repository link,
  2250  	// formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
  2251  	GitRepositoryLink string `json:"gitRepositoryLink,omitempty"`
  2252  	// Revision: Required. The revision to fetch from the Git repository such as a
  2253  	// branch, a tag, a commit SHA, or any Git ref.
  2254  	Revision string `json:"revision,omitempty"`
  2255  	// ForceSendFields is a list of field names (e.g. "Dir") to unconditionally
  2256  	// include in API requests. By default, fields with empty or default values are
  2257  	// omitted from API requests. See
  2258  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2259  	// details.
  2260  	ForceSendFields []string `json:"-"`
  2261  	// NullFields is a list of field names (e.g. "Dir") to include in API requests
  2262  	// with the JSON null value. By default, fields with empty values are omitted
  2263  	// from API requests. See
  2264  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2265  	NullFields []string `json:"-"`
  2266  }
  2267  
  2268  func (s *GoogleDevtoolsCloudbuildV1DeveloperConnectConfig) MarshalJSON() ([]byte, error) {
  2269  	type NoMethod GoogleDevtoolsCloudbuildV1DeveloperConnectConfig
  2270  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2271  }
  2272  
  2273  // GoogleDevtoolsCloudbuildV1FailureInfo: A fatal problem encountered during
  2274  // the execution of the build.
  2275  type GoogleDevtoolsCloudbuildV1FailureInfo struct {
  2276  	// Detail: Explains the failure issue in more detail using hard-coded text.
  2277  	Detail string `json:"detail,omitempty"`
  2278  	// Type: The name of the failure.
  2279  	//
  2280  	// Possible values:
  2281  	//   "FAILURE_TYPE_UNSPECIFIED" - Type unspecified
  2282  	//   "PUSH_FAILED" - Unable to push the image to the repository.
  2283  	//   "PUSH_IMAGE_NOT_FOUND" - Final image not found.
  2284  	//   "PUSH_NOT_AUTHORIZED" - Unauthorized push of the final image.
  2285  	//   "LOGGING_FAILURE" - Backend logging failures. Should retry.
  2286  	//   "USER_BUILD_STEP" - A build step has failed.
  2287  	//   "FETCH_SOURCE_FAILED" - The source fetching has failed.
  2288  	Type string `json:"type,omitempty"`
  2289  	// ForceSendFields is a list of field names (e.g. "Detail") to unconditionally
  2290  	// include in API requests. By default, fields with empty or default values are
  2291  	// omitted from API requests. See
  2292  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2293  	// details.
  2294  	ForceSendFields []string `json:"-"`
  2295  	// NullFields is a list of field names (e.g. "Detail") to include in API
  2296  	// requests with the JSON null value. By default, fields with empty values are
  2297  	// omitted from API requests. See
  2298  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2299  	NullFields []string `json:"-"`
  2300  }
  2301  
  2302  func (s *GoogleDevtoolsCloudbuildV1FailureInfo) MarshalJSON() ([]byte, error) {
  2303  	type NoMethod GoogleDevtoolsCloudbuildV1FailureInfo
  2304  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2305  }
  2306  
  2307  // GoogleDevtoolsCloudbuildV1FileHashes: Container message for hashes of byte
  2308  // content of files, used in SourceProvenance messages to verify integrity of
  2309  // source input to the build.
  2310  type GoogleDevtoolsCloudbuildV1FileHashes struct {
  2311  	// FileHash: Collection of file hashes.
  2312  	FileHash []*GoogleDevtoolsCloudbuildV1Hash `json:"fileHash,omitempty"`
  2313  	// ForceSendFields is a list of field names (e.g. "FileHash") to
  2314  	// unconditionally include in API requests. By default, fields with empty or
  2315  	// default values are omitted from API requests. See
  2316  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2317  	// details.
  2318  	ForceSendFields []string `json:"-"`
  2319  	// NullFields is a list of field names (e.g. "FileHash") to include in API
  2320  	// requests with the JSON null value. By default, fields with empty values are
  2321  	// omitted from API requests. See
  2322  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2323  	NullFields []string `json:"-"`
  2324  }
  2325  
  2326  func (s *GoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([]byte, error) {
  2327  	type NoMethod GoogleDevtoolsCloudbuildV1FileHashes
  2328  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2329  }
  2330  
  2331  // GoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a configuration for git
  2332  // operations.
  2333  type GoogleDevtoolsCloudbuildV1GitConfig struct {
  2334  	// Http: Configuration for HTTP related git operations.
  2335  	Http *GoogleDevtoolsCloudbuildV1HttpConfig `json:"http,omitempty"`
  2336  	// ForceSendFields is a list of field names (e.g. "Http") to unconditionally
  2337  	// include in API requests. By default, fields with empty or default values are
  2338  	// omitted from API requests. See
  2339  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2340  	// details.
  2341  	ForceSendFields []string `json:"-"`
  2342  	// NullFields is a list of field names (e.g. "Http") to include in API requests
  2343  	// with the JSON null value. By default, fields with empty values are omitted
  2344  	// from API requests. See
  2345  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2346  	NullFields []string `json:"-"`
  2347  }
  2348  
  2349  func (s *GoogleDevtoolsCloudbuildV1GitConfig) MarshalJSON() ([]byte, error) {
  2350  	type NoMethod GoogleDevtoolsCloudbuildV1GitConfig
  2351  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2352  }
  2353  
  2354  // GoogleDevtoolsCloudbuildV1GitSource: Location of the source in any
  2355  // accessible Git repository.
  2356  type GoogleDevtoolsCloudbuildV1GitSource struct {
  2357  	// Dir: Directory, relative to the source root, in which to run the build. This
  2358  	// must be a relative path. If a step's `dir` is specified and is an absolute
  2359  	// path, this value is ignored for that step's execution.
  2360  	Dir string `json:"dir,omitempty"`
  2361  	// Revision: The revision to fetch from the Git repository such as a branch, a
  2362  	// tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the
  2363  	// revision from the Git repository; therefore make sure that the string you
  2364  	// provide for `revision` is parsable by the command. For information on string
  2365  	// values accepted by `git fetch`, see
  2366  	// https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information
  2367  	// on `git fetch`, see https://git-scm.com/docs/git-fetch.
  2368  	Revision string `json:"revision,omitempty"`
  2369  	// Url: Location of the Git repo to build. This will be used as a `git remote`,
  2370  	// see https://git-scm.com/docs/git-remote.
  2371  	Url string `json:"url,omitempty"`
  2372  	// ForceSendFields is a list of field names (e.g. "Dir") to unconditionally
  2373  	// include in API requests. By default, fields with empty or default values are
  2374  	// omitted from API requests. See
  2375  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2376  	// details.
  2377  	ForceSendFields []string `json:"-"`
  2378  	// NullFields is a list of field names (e.g. "Dir") to include in API requests
  2379  	// with the JSON null value. By default, fields with empty values are omitted
  2380  	// from API requests. See
  2381  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2382  	NullFields []string `json:"-"`
  2383  }
  2384  
  2385  func (s *GoogleDevtoolsCloudbuildV1GitSource) MarshalJSON() ([]byte, error) {
  2386  	type NoMethod GoogleDevtoolsCloudbuildV1GitSource
  2387  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2388  }
  2389  
  2390  // GoogleDevtoolsCloudbuildV1Hash: Container message for hash values.
  2391  type GoogleDevtoolsCloudbuildV1Hash struct {
  2392  	// Type: The type of hash that was performed.
  2393  	//
  2394  	// Possible values:
  2395  	//   "NONE" - No hash requested.
  2396  	//   "SHA256" - Use a sha256 hash.
  2397  	//   "MD5" - Use a md5 hash.
  2398  	//   "SHA512" - Use a sha512 hash.
  2399  	Type string `json:"type,omitempty"`
  2400  	// Value: The hash value.
  2401  	Value string `json:"value,omitempty"`
  2402  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  2403  	// include in API requests. By default, fields with empty or default values are
  2404  	// omitted from API requests. See
  2405  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2406  	// details.
  2407  	ForceSendFields []string `json:"-"`
  2408  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  2409  	// with the JSON null value. By default, fields with empty values are omitted
  2410  	// from API requests. See
  2411  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2412  	NullFields []string `json:"-"`
  2413  }
  2414  
  2415  func (s *GoogleDevtoolsCloudbuildV1Hash) MarshalJSON() ([]byte, error) {
  2416  	type NoMethod GoogleDevtoolsCloudbuildV1Hash
  2417  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2418  }
  2419  
  2420  // GoogleDevtoolsCloudbuildV1HttpConfig: HttpConfig is a configuration for HTTP
  2421  // related git operations.
  2422  type GoogleDevtoolsCloudbuildV1HttpConfig struct {
  2423  	// ProxySecretVersionName: SecretVersion resource of the HTTP proxy URL. The
  2424  	// proxy URL should be in format protocol://@]proxyhost[:port].
  2425  	ProxySecretVersionName string `json:"proxySecretVersionName,omitempty"`
  2426  	// ForceSendFields is a list of field names (e.g. "ProxySecretVersionName") to
  2427  	// unconditionally include in API requests. By default, fields with empty or
  2428  	// default values are omitted from API requests. See
  2429  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2430  	// details.
  2431  	ForceSendFields []string `json:"-"`
  2432  	// NullFields is a list of field names (e.g. "ProxySecretVersionName") to
  2433  	// include in API requests with the JSON null value. By default, fields with
  2434  	// empty values are omitted from API requests. See
  2435  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2436  	NullFields []string `json:"-"`
  2437  }
  2438  
  2439  func (s *GoogleDevtoolsCloudbuildV1HttpConfig) MarshalJSON() ([]byte, error) {
  2440  	type NoMethod GoogleDevtoolsCloudbuildV1HttpConfig
  2441  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2442  }
  2443  
  2444  // GoogleDevtoolsCloudbuildV1InlineSecret: Pairs a set of secret environment
  2445  // variables mapped to encrypted values with the Cloud KMS key to use to
  2446  // decrypt the value.
  2447  type GoogleDevtoolsCloudbuildV1InlineSecret struct {
  2448  	// EnvMap: Map of environment variable name to its encrypted value. Secret
  2449  	// environment variables must be unique across all of a build's secrets, and
  2450  	// must be used by at least one build step. Values can be at most 64 KB in
  2451  	// size. There can be at most 100 secret values across all of a build's
  2452  	// secrets.
  2453  	EnvMap map[string]string `json:"envMap,omitempty"`
  2454  	// KmsKeyName: Resource name of Cloud KMS crypto key to decrypt the encrypted
  2455  	// value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*
  2456  	KmsKeyName string `json:"kmsKeyName,omitempty"`
  2457  	// ForceSendFields is a list of field names (e.g. "EnvMap") to unconditionally
  2458  	// include in API requests. By default, fields with empty or default values are
  2459  	// omitted from API requests. See
  2460  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2461  	// details.
  2462  	ForceSendFields []string `json:"-"`
  2463  	// NullFields is a list of field names (e.g. "EnvMap") to include in API
  2464  	// requests with the JSON null value. By default, fields with empty values are
  2465  	// omitted from API requests. See
  2466  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2467  	NullFields []string `json:"-"`
  2468  }
  2469  
  2470  func (s *GoogleDevtoolsCloudbuildV1InlineSecret) MarshalJSON() ([]byte, error) {
  2471  	type NoMethod GoogleDevtoolsCloudbuildV1InlineSecret
  2472  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2473  }
  2474  
  2475  // GoogleDevtoolsCloudbuildV1MavenArtifact: A Maven artifact to upload to
  2476  // Artifact Registry upon successful completion of all build steps.
  2477  type GoogleDevtoolsCloudbuildV1MavenArtifact struct {
  2478  	// ArtifactId: Maven `artifactId` value used when uploading the artifact to
  2479  	// Artifact Registry.
  2480  	ArtifactId string `json:"artifactId,omitempty"`
  2481  	// GroupId: Maven `groupId` value used when uploading the artifact to Artifact
  2482  	// Registry.
  2483  	GroupId string `json:"groupId,omitempty"`
  2484  	// Path: Path to an artifact in the build's workspace to be uploaded to
  2485  	// Artifact Registry. This can be either an absolute path, e.g.
  2486  	// /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from
  2487  	// /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
  2488  	Path string `json:"path,omitempty"`
  2489  	// Repository: Artifact Registry repository, in the form
  2490  	// "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the
  2491  	// workspace specified by path will be uploaded to Artifact Registry with this
  2492  	// location as a prefix.
  2493  	Repository string `json:"repository,omitempty"`
  2494  	// Version: Maven `version` value used when uploading the artifact to Artifact
  2495  	// Registry.
  2496  	Version string `json:"version,omitempty"`
  2497  	// ForceSendFields is a list of field names (e.g. "ArtifactId") to
  2498  	// unconditionally include in API requests. By default, fields with empty or
  2499  	// default values are omitted from API requests. See
  2500  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2501  	// details.
  2502  	ForceSendFields []string `json:"-"`
  2503  	// NullFields is a list of field names (e.g. "ArtifactId") to include in API
  2504  	// requests with the JSON null value. By default, fields with empty values are
  2505  	// omitted from API requests. See
  2506  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2507  	NullFields []string `json:"-"`
  2508  }
  2509  
  2510  func (s *GoogleDevtoolsCloudbuildV1MavenArtifact) MarshalJSON() ([]byte, error) {
  2511  	type NoMethod GoogleDevtoolsCloudbuildV1MavenArtifact
  2512  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2513  }
  2514  
  2515  // GoogleDevtoolsCloudbuildV1NpmPackage: Npm package to upload to Artifact
  2516  // Registry upon successful completion of all build steps.
  2517  type GoogleDevtoolsCloudbuildV1NpmPackage struct {
  2518  	// PackagePath: Path to the package.json. e.g. workspace/path/to/package
  2519  	PackagePath string `json:"packagePath,omitempty"`
  2520  	// Repository: Artifact Registry repository, in the form
  2521  	// "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the
  2522  	// workspace specified by path will be zipped and uploaded to Artifact Registry
  2523  	// with this location as a prefix.
  2524  	Repository string `json:"repository,omitempty"`
  2525  	// ForceSendFields is a list of field names (e.g. "PackagePath") to
  2526  	// unconditionally include in API requests. By default, fields with empty or
  2527  	// default values are omitted from API requests. See
  2528  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2529  	// details.
  2530  	ForceSendFields []string `json:"-"`
  2531  	// NullFields is a list of field names (e.g. "PackagePath") to include in API
  2532  	// requests with the JSON null value. By default, fields with empty values are
  2533  	// omitted from API requests. See
  2534  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2535  	NullFields []string `json:"-"`
  2536  }
  2537  
  2538  func (s *GoogleDevtoolsCloudbuildV1NpmPackage) MarshalJSON() ([]byte, error) {
  2539  	type NoMethod GoogleDevtoolsCloudbuildV1NpmPackage
  2540  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2541  }
  2542  
  2543  // GoogleDevtoolsCloudbuildV1PoolOption: Details about how a build should be
  2544  // executed on a `WorkerPool`. See running builds in a private pool
  2545  // (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
  2546  // for more information.
  2547  type GoogleDevtoolsCloudbuildV1PoolOption struct {
  2548  	// Name: The `WorkerPool` resource to execute the build on. You must have
  2549  	// `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format
  2550  	// projects/{project}/locations/{location}/workerPools/{workerPoolId}
  2551  	Name string `json:"name,omitempty"`
  2552  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  2553  	// include in API requests. By default, fields with empty or default values are
  2554  	// omitted from API requests. See
  2555  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2556  	// details.
  2557  	ForceSendFields []string `json:"-"`
  2558  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  2559  	// with the JSON null value. By default, fields with empty values are omitted
  2560  	// from API requests. See
  2561  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2562  	NullFields []string `json:"-"`
  2563  }
  2564  
  2565  func (s *GoogleDevtoolsCloudbuildV1PoolOption) MarshalJSON() ([]byte, error) {
  2566  	type NoMethod GoogleDevtoolsCloudbuildV1PoolOption
  2567  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2568  }
  2569  
  2570  // GoogleDevtoolsCloudbuildV1PythonPackage: Python package to upload to
  2571  // Artifact Registry upon successful completion of all build steps. A package
  2572  // can encapsulate multiple objects to be uploaded to a single repository.
  2573  type GoogleDevtoolsCloudbuildV1PythonPackage struct {
  2574  	// Paths: Path globs used to match files in the build's workspace. For Python/
  2575  	// Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.
  2576  	Paths []string `json:"paths,omitempty"`
  2577  	// Repository: Artifact Registry repository, in the form
  2578  	// "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace
  2579  	// matching any path pattern will be uploaded to Artifact Registry with this
  2580  	// location as a prefix.
  2581  	Repository string `json:"repository,omitempty"`
  2582  	// ForceSendFields is a list of field names (e.g. "Paths") to unconditionally
  2583  	// include in API requests. By default, fields with empty or default values are
  2584  	// omitted from API requests. See
  2585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2586  	// details.
  2587  	ForceSendFields []string `json:"-"`
  2588  	// NullFields is a list of field names (e.g. "Paths") to include in API
  2589  	// requests with the JSON null value. By default, fields with empty values are
  2590  	// omitted from API requests. See
  2591  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2592  	NullFields []string `json:"-"`
  2593  }
  2594  
  2595  func (s *GoogleDevtoolsCloudbuildV1PythonPackage) MarshalJSON() ([]byte, error) {
  2596  	type NoMethod GoogleDevtoolsCloudbuildV1PythonPackage
  2597  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2598  }
  2599  
  2600  // GoogleDevtoolsCloudbuildV1RepoSource: Location of the source in a Google
  2601  // Cloud Source Repository.
  2602  type GoogleDevtoolsCloudbuildV1RepoSource struct {
  2603  	// BranchName: Regex matching branches to build. The syntax of the regular
  2604  	// expressions accepted is the syntax accepted by RE2 and described at
  2605  	// https://github.com/google/re2/wiki/Syntax
  2606  	BranchName string `json:"branchName,omitempty"`
  2607  	// CommitSha: Explicit commit SHA to build.
  2608  	CommitSha string `json:"commitSha,omitempty"`
  2609  	// Dir: Directory, relative to the source root, in which to run the build. This
  2610  	// must be a relative path. If a step's `dir` is specified and is an absolute
  2611  	// path, this value is ignored for that step's execution.
  2612  	Dir string `json:"dir,omitempty"`
  2613  	// InvertRegex: Only trigger a build if the revision regex does NOT match the
  2614  	// revision regex.
  2615  	InvertRegex bool `json:"invertRegex,omitempty"`
  2616  	// ProjectId: ID of the project that owns the Cloud Source Repository. If
  2617  	// omitted, the project ID requesting the build is assumed.
  2618  	ProjectId string `json:"projectId,omitempty"`
  2619  	// RepoName: Name of the Cloud Source Repository.
  2620  	RepoName string `json:"repoName,omitempty"`
  2621  	// Substitutions: Substitutions to use in a triggered build. Should only be
  2622  	// used with RunBuildTrigger
  2623  	Substitutions map[string]string `json:"substitutions,omitempty"`
  2624  	// TagName: Regex matching tags to build. The syntax of the regular expressions
  2625  	// accepted is the syntax accepted by RE2 and described at
  2626  	// https://github.com/google/re2/wiki/Syntax
  2627  	TagName string `json:"tagName,omitempty"`
  2628  	// ForceSendFields is a list of field names (e.g. "BranchName") to
  2629  	// unconditionally include in API requests. By default, fields with empty or
  2630  	// default values are omitted from API requests. See
  2631  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2632  	// details.
  2633  	ForceSendFields []string `json:"-"`
  2634  	// NullFields is a list of field names (e.g. "BranchName") to include in API
  2635  	// requests with the JSON null value. By default, fields with empty values are
  2636  	// omitted from API requests. See
  2637  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2638  	NullFields []string `json:"-"`
  2639  }
  2640  
  2641  func (s *GoogleDevtoolsCloudbuildV1RepoSource) MarshalJSON() ([]byte, error) {
  2642  	type NoMethod GoogleDevtoolsCloudbuildV1RepoSource
  2643  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2644  }
  2645  
  2646  // GoogleDevtoolsCloudbuildV1Results: Artifacts created by the build pipeline.
  2647  type GoogleDevtoolsCloudbuildV1Results struct {
  2648  	// ArtifactManifest: Path to the artifact manifest for non-container artifacts
  2649  	// uploaded to Cloud Storage. Only populated when artifacts are uploaded to
  2650  	// Cloud Storage.
  2651  	ArtifactManifest string `json:"artifactManifest,omitempty"`
  2652  	// ArtifactTiming: Time to push all non-container artifacts to Cloud Storage.
  2653  	ArtifactTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"artifactTiming,omitempty"`
  2654  	// BuildStepImages: List of build step digests, in the order corresponding to
  2655  	// build step indices.
  2656  	BuildStepImages []string `json:"buildStepImages,omitempty"`
  2657  	// BuildStepOutputs: List of build step outputs, produced by builder images, in
  2658  	// the order corresponding to build step indices. Cloud Builders
  2659  	// (https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this
  2660  	// output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data
  2661  	// is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't
  2662  	// be substituted.
  2663  	BuildStepOutputs []string `json:"buildStepOutputs,omitempty"`
  2664  	// Images: Container images that were built as a part of the build.
  2665  	Images []*GoogleDevtoolsCloudbuildV1BuiltImage `json:"images,omitempty"`
  2666  	// MavenArtifacts: Maven artifacts uploaded to Artifact Registry at the end of
  2667  	// the build.
  2668  	MavenArtifacts []*GoogleDevtoolsCloudbuildV1UploadedMavenArtifact `json:"mavenArtifacts,omitempty"`
  2669  	// NpmPackages: Npm packages uploaded to Artifact Registry at the end of the
  2670  	// build.
  2671  	NpmPackages []*GoogleDevtoolsCloudbuildV1UploadedNpmPackage `json:"npmPackages,omitempty"`
  2672  	// NumArtifacts: Number of non-container artifacts uploaded to Cloud Storage.
  2673  	// Only populated when artifacts are uploaded to Cloud Storage.
  2674  	NumArtifacts int64 `json:"numArtifacts,omitempty,string"`
  2675  	// PythonPackages: Python artifacts uploaded to Artifact Registry at the end of
  2676  	// the build.
  2677  	PythonPackages []*GoogleDevtoolsCloudbuildV1UploadedPythonPackage `json:"pythonPackages,omitempty"`
  2678  	// ForceSendFields is a list of field names (e.g. "ArtifactManifest") to
  2679  	// unconditionally include in API requests. By default, fields with empty or
  2680  	// default values are omitted from API requests. See
  2681  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2682  	// details.
  2683  	ForceSendFields []string `json:"-"`
  2684  	// NullFields is a list of field names (e.g. "ArtifactManifest") to include in
  2685  	// API requests with the JSON null value. By default, fields with empty values
  2686  	// are omitted from API requests. See
  2687  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2688  	NullFields []string `json:"-"`
  2689  }
  2690  
  2691  func (s *GoogleDevtoolsCloudbuildV1Results) MarshalJSON() ([]byte, error) {
  2692  	type NoMethod GoogleDevtoolsCloudbuildV1Results
  2693  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2694  }
  2695  
  2696  // GoogleDevtoolsCloudbuildV1Secret: Pairs a set of secret environment
  2697  // variables containing encrypted values with the Cloud KMS key to use to
  2698  // decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead
  2699  // of using `kmsKeyName` with `secret`. For instructions see:
  2700  // https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
  2701  type GoogleDevtoolsCloudbuildV1Secret struct {
  2702  	// KmsKeyName: Cloud KMS key name to use to decrypt these envs.
  2703  	KmsKeyName string `json:"kmsKeyName,omitempty"`
  2704  	// SecretEnv: Map of environment variable name to its encrypted value. Secret
  2705  	// environment variables must be unique across all of a build's secrets, and
  2706  	// must be used by at least one build step. Values can be at most 64 KB in
  2707  	// size. There can be at most 100 secret values across all of a build's
  2708  	// secrets.
  2709  	SecretEnv map[string]string `json:"secretEnv,omitempty"`
  2710  	// ForceSendFields is a list of field names (e.g. "KmsKeyName") 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. "KmsKeyName") 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 *GoogleDevtoolsCloudbuildV1Secret) MarshalJSON() ([]byte, error) {
  2724  	type NoMethod GoogleDevtoolsCloudbuildV1Secret
  2725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2726  }
  2727  
  2728  // GoogleDevtoolsCloudbuildV1SecretManagerSecret: Pairs a secret environment
  2729  // variable with a SecretVersion in Secret Manager.
  2730  type GoogleDevtoolsCloudbuildV1SecretManagerSecret struct {
  2731  	// Env: Environment variable name to associate with the secret. Secret
  2732  	// environment variables must be unique across all of a build's secrets, and
  2733  	// must be used by at least one build step.
  2734  	Env string `json:"env,omitempty"`
  2735  	// VersionName: Resource name of the SecretVersion. In format:
  2736  	// projects/*/secrets/*/versions/*
  2737  	VersionName string `json:"versionName,omitempty"`
  2738  	// ForceSendFields is a list of field names (e.g. "Env") to unconditionally
  2739  	// include in API requests. By default, fields with empty or default values are
  2740  	// omitted from API requests. See
  2741  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2742  	// details.
  2743  	ForceSendFields []string `json:"-"`
  2744  	// NullFields is a list of field names (e.g. "Env") to include in API requests
  2745  	// with the JSON null value. By default, fields with empty values are omitted
  2746  	// from API requests. See
  2747  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2748  	NullFields []string `json:"-"`
  2749  }
  2750  
  2751  func (s *GoogleDevtoolsCloudbuildV1SecretManagerSecret) MarshalJSON() ([]byte, error) {
  2752  	type NoMethod GoogleDevtoolsCloudbuildV1SecretManagerSecret
  2753  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2754  }
  2755  
  2756  // GoogleDevtoolsCloudbuildV1Secrets: Secrets and secret environment variables.
  2757  type GoogleDevtoolsCloudbuildV1Secrets struct {
  2758  	// Inline: Secrets encrypted with KMS key and the associated secret environment
  2759  	// variable.
  2760  	Inline []*GoogleDevtoolsCloudbuildV1InlineSecret `json:"inline,omitempty"`
  2761  	// SecretManager: Secrets in Secret Manager and associated secret environment
  2762  	// variable.
  2763  	SecretManager []*GoogleDevtoolsCloudbuildV1SecretManagerSecret `json:"secretManager,omitempty"`
  2764  	// ForceSendFields is a list of field names (e.g. "Inline") to unconditionally
  2765  	// include in API requests. By default, fields with empty or default values are
  2766  	// omitted from API requests. See
  2767  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2768  	// details.
  2769  	ForceSendFields []string `json:"-"`
  2770  	// NullFields is a list of field names (e.g. "Inline") to include in API
  2771  	// requests with the JSON null value. By default, fields with empty values are
  2772  	// omitted from API requests. See
  2773  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2774  	NullFields []string `json:"-"`
  2775  }
  2776  
  2777  func (s *GoogleDevtoolsCloudbuildV1Secrets) MarshalJSON() ([]byte, error) {
  2778  	type NoMethod GoogleDevtoolsCloudbuildV1Secrets
  2779  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2780  }
  2781  
  2782  // GoogleDevtoolsCloudbuildV1Source: Location of the source in a supported
  2783  // storage service.
  2784  type GoogleDevtoolsCloudbuildV1Source struct {
  2785  	// ConnectedRepository: Optional. If provided, get the source from this 2nd-gen
  2786  	// Google Cloud Build repository resource.
  2787  	ConnectedRepository *GoogleDevtoolsCloudbuildV1ConnectedRepository `json:"connectedRepository,omitempty"`
  2788  	// DeveloperConnectConfig: If provided, get the source from this Developer
  2789  	// Connect config.
  2790  	DeveloperConnectConfig *GoogleDevtoolsCloudbuildV1DeveloperConnectConfig `json:"developerConnectConfig,omitempty"`
  2791  	// GitSource: If provided, get the source from this Git repository.
  2792  	GitSource *GoogleDevtoolsCloudbuildV1GitSource `json:"gitSource,omitempty"`
  2793  	// RepoSource: If provided, get the source from this location in a Cloud Source
  2794  	// Repository.
  2795  	RepoSource *GoogleDevtoolsCloudbuildV1RepoSource `json:"repoSource,omitempty"`
  2796  	// StorageSource: If provided, get the source from this location in Cloud
  2797  	// Storage.
  2798  	StorageSource *GoogleDevtoolsCloudbuildV1StorageSource `json:"storageSource,omitempty"`
  2799  	// StorageSourceManifest: If provided, get the source from this manifest in
  2800  	// Cloud Storage. This feature is in Preview; see description here
  2801  	// (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
  2802  	StorageSourceManifest *GoogleDevtoolsCloudbuildV1StorageSourceManifest `json:"storageSourceManifest,omitempty"`
  2803  	// ForceSendFields is a list of field names (e.g. "ConnectedRepository") to
  2804  	// unconditionally include in API requests. By default, fields with empty or
  2805  	// default values are omitted from API requests. See
  2806  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2807  	// details.
  2808  	ForceSendFields []string `json:"-"`
  2809  	// NullFields is a list of field names (e.g. "ConnectedRepository") to include
  2810  	// in API requests with the JSON null value. By default, fields with empty
  2811  	// values are omitted from API requests. See
  2812  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2813  	NullFields []string `json:"-"`
  2814  }
  2815  
  2816  func (s *GoogleDevtoolsCloudbuildV1Source) MarshalJSON() ([]byte, error) {
  2817  	type NoMethod GoogleDevtoolsCloudbuildV1Source
  2818  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2819  }
  2820  
  2821  // GoogleDevtoolsCloudbuildV1SourceProvenance: Provenance of the source. Ways
  2822  // to find the original source, or verify that some source was used for this
  2823  // build.
  2824  type GoogleDevtoolsCloudbuildV1SourceProvenance struct {
  2825  	// FileHashes: Output only. Hash(es) of the build source, which can be used to
  2826  	// verify that the original source integrity was maintained in the build. Note
  2827  	// that `FileHashes` will only be populated if `BuildOptions` has requested a
  2828  	// `SourceProvenanceHash`. The keys to this map are file paths used as build
  2829  	// source and the values contain the hash values for those files. If the build
  2830  	// source came in a single package such as a gzipped tarfile (`.tar.gz`), the
  2831  	// `FileHash` will be for the single path to that file.
  2832  	FileHashes map[string]GoogleDevtoolsCloudbuildV1FileHashes `json:"fileHashes,omitempty"`
  2833  	// ResolvedConnectedRepository: Output only. A copy of the build's
  2834  	// `source.connected_repository`, if exists, with any revisions resolved.
  2835  	ResolvedConnectedRepository *GoogleDevtoolsCloudbuildV1ConnectedRepository `json:"resolvedConnectedRepository,omitempty"`
  2836  	// ResolvedGitSource: Output only. A copy of the build's `source.git_source`,
  2837  	// if exists, with any revisions resolved.
  2838  	ResolvedGitSource *GoogleDevtoolsCloudbuildV1GitSource `json:"resolvedGitSource,omitempty"`
  2839  	// ResolvedRepoSource: A copy of the build's `source.repo_source`, if exists,
  2840  	// with any revisions resolved.
  2841  	ResolvedRepoSource *GoogleDevtoolsCloudbuildV1RepoSource `json:"resolvedRepoSource,omitempty"`
  2842  	// ResolvedStorageSource: A copy of the build's `source.storage_source`, if
  2843  	// exists, with any generations resolved.
  2844  	ResolvedStorageSource *GoogleDevtoolsCloudbuildV1StorageSource `json:"resolvedStorageSource,omitempty"`
  2845  	// ResolvedStorageSourceManifest: A copy of the build's
  2846  	// `source.storage_source_manifest`, if exists, with any revisions resolved.
  2847  	// This feature is in Preview.
  2848  	ResolvedStorageSourceManifest *GoogleDevtoolsCloudbuildV1StorageSourceManifest `json:"resolvedStorageSourceManifest,omitempty"`
  2849  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  2850  	// unconditionally include in API requests. By default, fields with empty or
  2851  	// default values are omitted from API requests. See
  2852  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2853  	// details.
  2854  	ForceSendFields []string `json:"-"`
  2855  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  2856  	// requests with the JSON null value. By default, fields with empty values are
  2857  	// omitted from API requests. See
  2858  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2859  	NullFields []string `json:"-"`
  2860  }
  2861  
  2862  func (s *GoogleDevtoolsCloudbuildV1SourceProvenance) MarshalJSON() ([]byte, error) {
  2863  	type NoMethod GoogleDevtoolsCloudbuildV1SourceProvenance
  2864  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2865  }
  2866  
  2867  // GoogleDevtoolsCloudbuildV1StorageSource: Location of the source in an
  2868  // archive file in Cloud Storage.
  2869  type GoogleDevtoolsCloudbuildV1StorageSource struct {
  2870  	// Bucket: Cloud Storage bucket containing the source (see Bucket Name
  2871  	// Requirements
  2872  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
  2873  	Bucket string `json:"bucket,omitempty"`
  2874  	// Generation: Cloud Storage generation for the object. If the generation is
  2875  	// omitted, the latest generation will be used.
  2876  	Generation int64 `json:"generation,omitempty,string"`
  2877  	// Object: Cloud Storage object containing the source. This object must be a
  2878  	// zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to
  2879  	// build.
  2880  	Object string `json:"object,omitempty"`
  2881  	// SourceFetcher: Optional. Option to specify the tool to fetch the source file
  2882  	// for the build.
  2883  	//
  2884  	// Possible values:
  2885  	//   "SOURCE_FETCHER_UNSPECIFIED" - Unspecified defaults to GSUTIL.
  2886  	//   "GSUTIL" - Use the "gsutil" tool to download the source file.
  2887  	//   "GCS_FETCHER" - Use the Cloud Storage Fetcher tool to download the source
  2888  	// file.
  2889  	SourceFetcher string `json:"sourceFetcher,omitempty"`
  2890  	// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally
  2891  	// include in API requests. By default, fields with empty or default values are
  2892  	// omitted from API requests. See
  2893  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2894  	// details.
  2895  	ForceSendFields []string `json:"-"`
  2896  	// NullFields is a list of field names (e.g. "Bucket") to include in API
  2897  	// requests with the JSON null value. By default, fields with empty values are
  2898  	// omitted from API requests. See
  2899  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2900  	NullFields []string `json:"-"`
  2901  }
  2902  
  2903  func (s *GoogleDevtoolsCloudbuildV1StorageSource) MarshalJSON() ([]byte, error) {
  2904  	type NoMethod GoogleDevtoolsCloudbuildV1StorageSource
  2905  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2906  }
  2907  
  2908  // GoogleDevtoolsCloudbuildV1StorageSourceManifest: Location of the source
  2909  // manifest in Cloud Storage. This feature is in Preview; see description here
  2910  // (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
  2911  type GoogleDevtoolsCloudbuildV1StorageSourceManifest struct {
  2912  	// Bucket: Cloud Storage bucket containing the source manifest (see Bucket Name
  2913  	// Requirements
  2914  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
  2915  	Bucket string `json:"bucket,omitempty"`
  2916  	// Generation: Cloud Storage generation for the object. If the generation is
  2917  	// omitted, the latest generation will be used.
  2918  	Generation int64 `json:"generation,omitempty,string"`
  2919  	// Object: Cloud Storage object containing the source manifest. This object
  2920  	// must be a JSON file.
  2921  	Object string `json:"object,omitempty"`
  2922  	// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally
  2923  	// include in API requests. By default, fields with empty or default values are
  2924  	// omitted from API requests. See
  2925  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2926  	// details.
  2927  	ForceSendFields []string `json:"-"`
  2928  	// NullFields is a list of field names (e.g. "Bucket") to include in API
  2929  	// requests with the JSON null value. By default, fields with empty values are
  2930  	// omitted from API requests. See
  2931  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2932  	NullFields []string `json:"-"`
  2933  }
  2934  
  2935  func (s *GoogleDevtoolsCloudbuildV1StorageSourceManifest) MarshalJSON() ([]byte, error) {
  2936  	type NoMethod GoogleDevtoolsCloudbuildV1StorageSourceManifest
  2937  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2938  }
  2939  
  2940  // GoogleDevtoolsCloudbuildV1TimeSpan: Start and end times for a build
  2941  // execution phase.
  2942  type GoogleDevtoolsCloudbuildV1TimeSpan struct {
  2943  	// EndTime: End of time span.
  2944  	EndTime string `json:"endTime,omitempty"`
  2945  	// StartTime: Start of time span.
  2946  	StartTime string `json:"startTime,omitempty"`
  2947  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  2948  	// include in API requests. By default, fields with empty or default values are
  2949  	// omitted from API requests. See
  2950  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2951  	// details.
  2952  	ForceSendFields []string `json:"-"`
  2953  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  2954  	// requests with the JSON null value. By default, fields with empty values are
  2955  	// omitted from API requests. See
  2956  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2957  	NullFields []string `json:"-"`
  2958  }
  2959  
  2960  func (s *GoogleDevtoolsCloudbuildV1TimeSpan) MarshalJSON() ([]byte, error) {
  2961  	type NoMethod GoogleDevtoolsCloudbuildV1TimeSpan
  2962  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2963  }
  2964  
  2965  // GoogleDevtoolsCloudbuildV1UploadedMavenArtifact: A Maven artifact uploaded
  2966  // using the MavenArtifact directive.
  2967  type GoogleDevtoolsCloudbuildV1UploadedMavenArtifact struct {
  2968  	// FileHashes: Hash types and values of the Maven Artifact.
  2969  	FileHashes *GoogleDevtoolsCloudbuildV1FileHashes `json:"fileHashes,omitempty"`
  2970  	// PushTiming: Output only. Stores timing information for pushing the specified
  2971  	// artifact.
  2972  	PushTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"pushTiming,omitempty"`
  2973  	// Uri: URI of the uploaded artifact.
  2974  	Uri string `json:"uri,omitempty"`
  2975  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  2976  	// unconditionally include in API requests. By default, fields with empty or
  2977  	// default values are omitted from API requests. See
  2978  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2979  	// details.
  2980  	ForceSendFields []string `json:"-"`
  2981  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  2982  	// requests with the JSON null value. By default, fields with empty values are
  2983  	// omitted from API requests. See
  2984  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2985  	NullFields []string `json:"-"`
  2986  }
  2987  
  2988  func (s *GoogleDevtoolsCloudbuildV1UploadedMavenArtifact) MarshalJSON() ([]byte, error) {
  2989  	type NoMethod GoogleDevtoolsCloudbuildV1UploadedMavenArtifact
  2990  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2991  }
  2992  
  2993  // GoogleDevtoolsCloudbuildV1UploadedNpmPackage: An npm package uploaded to
  2994  // Artifact Registry using the NpmPackage directive.
  2995  type GoogleDevtoolsCloudbuildV1UploadedNpmPackage struct {
  2996  	// FileHashes: Hash types and values of the npm package.
  2997  	FileHashes *GoogleDevtoolsCloudbuildV1FileHashes `json:"fileHashes,omitempty"`
  2998  	// PushTiming: Output only. Stores timing information for pushing the specified
  2999  	// artifact.
  3000  	PushTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"pushTiming,omitempty"`
  3001  	// Uri: URI of the uploaded npm package.
  3002  	Uri string `json:"uri,omitempty"`
  3003  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  3004  	// unconditionally include in API requests. By default, fields with empty or
  3005  	// default values are omitted from API requests. See
  3006  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3007  	// details.
  3008  	ForceSendFields []string `json:"-"`
  3009  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  3010  	// requests with the JSON null value. By default, fields with empty values are
  3011  	// omitted from API requests. See
  3012  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3013  	NullFields []string `json:"-"`
  3014  }
  3015  
  3016  func (s *GoogleDevtoolsCloudbuildV1UploadedNpmPackage) MarshalJSON() ([]byte, error) {
  3017  	type NoMethod GoogleDevtoolsCloudbuildV1UploadedNpmPackage
  3018  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3019  }
  3020  
  3021  // GoogleDevtoolsCloudbuildV1UploadedPythonPackage: Artifact uploaded using the
  3022  // PythonPackage directive.
  3023  type GoogleDevtoolsCloudbuildV1UploadedPythonPackage struct {
  3024  	// FileHashes: Hash types and values of the Python Artifact.
  3025  	FileHashes *GoogleDevtoolsCloudbuildV1FileHashes `json:"fileHashes,omitempty"`
  3026  	// PushTiming: Output only. Stores timing information for pushing the specified
  3027  	// artifact.
  3028  	PushTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"pushTiming,omitempty"`
  3029  	// Uri: URI of the uploaded artifact.
  3030  	Uri string `json:"uri,omitempty"`
  3031  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  3032  	// unconditionally include in API requests. By default, fields with empty or
  3033  	// default values are omitted from API requests. See
  3034  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3035  	// details.
  3036  	ForceSendFields []string `json:"-"`
  3037  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  3038  	// requests with the JSON null value. By default, fields with empty values are
  3039  	// omitted from API requests. See
  3040  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3041  	NullFields []string `json:"-"`
  3042  }
  3043  
  3044  func (s *GoogleDevtoolsCloudbuildV1UploadedPythonPackage) MarshalJSON() ([]byte, error) {
  3045  	type NoMethod GoogleDevtoolsCloudbuildV1UploadedPythonPackage
  3046  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3047  }
  3048  
  3049  // GoogleDevtoolsCloudbuildV1Volume: Volume describes a Docker container volume
  3050  // which is mounted into build steps in order to persist files across build
  3051  // step execution.
  3052  type GoogleDevtoolsCloudbuildV1Volume struct {
  3053  	// Name: Name of the volume to mount. Volume names must be unique per build
  3054  	// step and must be valid names for Docker volumes. Each named volume must be
  3055  	// used by at least two build steps.
  3056  	Name string `json:"name,omitempty"`
  3057  	// Path: Path at which to mount the volume. Paths must be absolute and cannot
  3058  	// conflict with other volume paths on the same build step or with certain
  3059  	// reserved volume paths.
  3060  	Path string `json:"path,omitempty"`
  3061  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  3062  	// include in API requests. By default, fields with empty or default values are
  3063  	// omitted from API requests. See
  3064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3065  	// details.
  3066  	ForceSendFields []string `json:"-"`
  3067  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  3068  	// with the JSON null value. By default, fields with empty values are omitted
  3069  	// from API requests. See
  3070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3071  	NullFields []string `json:"-"`
  3072  }
  3073  
  3074  func (s *GoogleDevtoolsCloudbuildV1Volume) MarshalJSON() ([]byte, error) {
  3075  	type NoMethod GoogleDevtoolsCloudbuildV1Volume
  3076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3077  }
  3078  
  3079  // GoogleDevtoolsCloudbuildV1Warning: A non-fatal problem encountered during
  3080  // the execution of the build.
  3081  type GoogleDevtoolsCloudbuildV1Warning struct {
  3082  	// Priority: The priority for this warning.
  3083  	//
  3084  	// Possible values:
  3085  	//   "PRIORITY_UNSPECIFIED" - Should not be used.
  3086  	//   "INFO" - e.g. deprecation warnings and alternative feature highlights.
  3087  	//   "WARNING" - e.g. automated detection of possible issues with the build.
  3088  	//   "ALERT" - e.g. alerts that a feature used in the build is pending removal
  3089  	Priority string `json:"priority,omitempty"`
  3090  	// Text: Explanation of the warning generated.
  3091  	Text string `json:"text,omitempty"`
  3092  	// ForceSendFields is a list of field names (e.g. "Priority") to
  3093  	// unconditionally include in API requests. By default, fields with empty or
  3094  	// default values are omitted from API requests. See
  3095  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3096  	// details.
  3097  	ForceSendFields []string `json:"-"`
  3098  	// NullFields is a list of field names (e.g. "Priority") to include in API
  3099  	// requests with the JSON null value. By default, fields with empty values are
  3100  	// omitted from API requests. See
  3101  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3102  	NullFields []string `json:"-"`
  3103  }
  3104  
  3105  func (s *GoogleDevtoolsCloudbuildV1Warning) MarshalJSON() ([]byte, error) {
  3106  	type NoMethod GoogleDevtoolsCloudbuildV1Warning
  3107  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3108  }
  3109  
  3110  // GoogleLongrunningListOperationsResponse: The response message for
  3111  // Operations.ListOperations.
  3112  type GoogleLongrunningListOperationsResponse struct {
  3113  	// NextPageToken: The standard List next-page token.
  3114  	NextPageToken string `json:"nextPageToken,omitempty"`
  3115  	// Operations: A list of operations that matches the specified filter in the
  3116  	// request.
  3117  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
  3118  
  3119  	// ServerResponse contains the HTTP response code and headers from the server.
  3120  	googleapi.ServerResponse `json:"-"`
  3121  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3122  	// unconditionally include in API requests. By default, fields with empty or
  3123  	// default values are omitted from API requests. See
  3124  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3125  	// details.
  3126  	ForceSendFields []string `json:"-"`
  3127  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3128  	// requests with the JSON null value. By default, fields with empty values are
  3129  	// omitted from API requests. See
  3130  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3131  	NullFields []string `json:"-"`
  3132  }
  3133  
  3134  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
  3135  	type NoMethod GoogleLongrunningListOperationsResponse
  3136  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3137  }
  3138  
  3139  // GoogleLongrunningOperation: This resource represents a long-running
  3140  // operation that is the result of a network API call.
  3141  type GoogleLongrunningOperation struct {
  3142  	// Done: If the value is `false`, it means the operation is still in progress.
  3143  	// If `true`, the operation is completed, and either `error` or `response` is
  3144  	// available.
  3145  	Done bool `json:"done,omitempty"`
  3146  	// Error: The error result of the operation in case of failure or cancellation.
  3147  	Error *GoogleRpcStatus `json:"error,omitempty"`
  3148  	// Metadata: Service-specific metadata associated with the operation. It
  3149  	// typically contains progress information and common metadata such as create
  3150  	// time. Some services might not provide such metadata. Any method that returns
  3151  	// a long-running operation should document the metadata type, if any.
  3152  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3153  	// Name: The server-assigned name, which is only unique within the same service
  3154  	// that originally returns it. If you use the default HTTP mapping, the `name`
  3155  	// should be a resource name ending with `operations/{unique_id}`.
  3156  	Name string `json:"name,omitempty"`
  3157  	// Response: The normal, successful response of the operation. If the original
  3158  	// method returns no data on success, such as `Delete`, the response is
  3159  	// `google.protobuf.Empty`. If the original method is standard
  3160  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  3161  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  3162  	// original method name. For example, if the original method name is
  3163  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  3164  	Response googleapi.RawMessage `json:"response,omitempty"`
  3165  
  3166  	// ServerResponse contains the HTTP response code and headers from the server.
  3167  	googleapi.ServerResponse `json:"-"`
  3168  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  3169  	// include in API requests. By default, fields with empty or default values are
  3170  	// omitted from API requests. See
  3171  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3172  	// details.
  3173  	ForceSendFields []string `json:"-"`
  3174  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  3175  	// with the JSON null value. By default, fields with empty values are omitted
  3176  	// from API requests. See
  3177  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3178  	NullFields []string `json:"-"`
  3179  }
  3180  
  3181  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
  3182  	type NoMethod GoogleLongrunningOperation
  3183  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3184  }
  3185  
  3186  // GoogleLongrunningWaitOperationRequest: The request message for
  3187  // Operations.WaitOperation.
  3188  type GoogleLongrunningWaitOperationRequest struct {
  3189  	// Timeout: The maximum duration to wait before timing out. If left blank, the
  3190  	// wait will be at most the time permitted by the underlying HTTP/RPC protocol.
  3191  	// If RPC context deadline is also specified, the shorter one will be used.
  3192  	Timeout string `json:"timeout,omitempty"`
  3193  	// ForceSendFields is a list of field names (e.g. "Timeout") to unconditionally
  3194  	// include in API requests. By default, fields with empty or default values are
  3195  	// omitted from API requests. See
  3196  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3197  	// details.
  3198  	ForceSendFields []string `json:"-"`
  3199  	// NullFields is a list of field names (e.g. "Timeout") to include in API
  3200  	// requests with the JSON null value. By default, fields with empty values are
  3201  	// omitted from API requests. See
  3202  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3203  	NullFields []string `json:"-"`
  3204  }
  3205  
  3206  func (s *GoogleLongrunningWaitOperationRequest) MarshalJSON() ([]byte, error) {
  3207  	type NoMethod GoogleLongrunningWaitOperationRequest
  3208  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3209  }
  3210  
  3211  // GoogleRpcStatus: The `Status` type defines a logical error model that is
  3212  // suitable for different programming environments, including REST APIs and RPC
  3213  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
  3214  // contains three pieces of data: error code, error message, and error details.
  3215  // You can find out more about this error model and how to work with it in the
  3216  // API Design Guide (https://cloud.google.com/apis/design/errors).
  3217  type GoogleRpcStatus struct {
  3218  	// Code: The status code, which should be an enum value of google.rpc.Code.
  3219  	Code int64 `json:"code,omitempty"`
  3220  	// Details: A list of messages that carry the error details. There is a common
  3221  	// set of message types for APIs to use.
  3222  	Details []googleapi.RawMessage `json:"details,omitempty"`
  3223  	// Message: A developer-facing error message, which should be in English. Any
  3224  	// user-facing error message should be localized and sent in the
  3225  	// google.rpc.Status.details field, or localized by the client.
  3226  	Message string `json:"message,omitempty"`
  3227  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  3228  	// include in API requests. By default, fields with empty or default values are
  3229  	// omitted from API requests. See
  3230  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3231  	// details.
  3232  	ForceSendFields []string `json:"-"`
  3233  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  3234  	// with the JSON null value. By default, fields with empty values are omitted
  3235  	// from API requests. See
  3236  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3237  	NullFields []string `json:"-"`
  3238  }
  3239  
  3240  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
  3241  	type NoMethod GoogleRpcStatus
  3242  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3243  }
  3244  
  3245  // HTTPGetAction: HTTPGetAction describes an action based on HTTP Get requests.
  3246  type HTTPGetAction struct {
  3247  	// Host: Not supported by Cloud Run.
  3248  	Host string `json:"host,omitempty"`
  3249  	// HttpHeaders: Custom headers to set in the request. HTTP allows repeated
  3250  	// headers.
  3251  	HttpHeaders []*HTTPHeader `json:"httpHeaders,omitempty"`
  3252  	// Path: Path to access on the HTTP server.
  3253  	Path string `json:"path,omitempty"`
  3254  	// Port: Port number to access on the container. Number must be in the range 1
  3255  	// to 65535.
  3256  	Port int64 `json:"port,omitempty"`
  3257  	// Scheme: Not supported by Cloud Run.
  3258  	Scheme string `json:"scheme,omitempty"`
  3259  	// ForceSendFields is a list of field names (e.g. "Host") to unconditionally
  3260  	// include in API requests. By default, fields with empty or default values are
  3261  	// omitted from API requests. See
  3262  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3263  	// details.
  3264  	ForceSendFields []string `json:"-"`
  3265  	// NullFields is a list of field names (e.g. "Host") to include in API requests
  3266  	// with the JSON null value. By default, fields with empty values are omitted
  3267  	// from API requests. See
  3268  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3269  	NullFields []string `json:"-"`
  3270  }
  3271  
  3272  func (s *HTTPGetAction) MarshalJSON() ([]byte, error) {
  3273  	type NoMethod HTTPGetAction
  3274  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3275  }
  3276  
  3277  // HTTPHeader: HTTPHeader describes a custom header to be used in HTTP probes
  3278  type HTTPHeader struct {
  3279  	// Name: Required. The header field name
  3280  	Name string `json:"name,omitempty"`
  3281  	// Value: The header field value
  3282  	Value string `json:"value,omitempty"`
  3283  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  3284  	// include in API requests. By default, fields with empty or default values are
  3285  	// omitted from API requests. See
  3286  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3287  	// details.
  3288  	ForceSendFields []string `json:"-"`
  3289  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  3290  	// with the JSON null value. By default, fields with empty values are omitted
  3291  	// from API requests. See
  3292  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3293  	NullFields []string `json:"-"`
  3294  }
  3295  
  3296  func (s *HTTPHeader) MarshalJSON() ([]byte, error) {
  3297  	type NoMethod HTTPHeader
  3298  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3299  }
  3300  
  3301  // Job: Job represents the configuration of a single job, which references a
  3302  // container image which is run to completion.
  3303  type Job struct {
  3304  	// ApiVersion: Optional. APIVersion defines the versioned schema of this
  3305  	// representation of an object. Servers should convert recognized schemas to
  3306  	// the latest internal value, and may reject unrecognized values.
  3307  	ApiVersion string `json:"apiVersion,omitempty"`
  3308  	// Kind: Optional. Kind is a string value representing the REST resource this
  3309  	// object represents. Servers may infer this from the endpoint the client
  3310  	// submits requests to. Cannot be updated. In CamelCase.
  3311  	Kind string `json:"kind,omitempty"`
  3312  	// Metadata: Optional. Standard object's metadata.
  3313  	Metadata *ObjectMeta `json:"metadata,omitempty"`
  3314  	// Spec: Optional. Specification of the desired behavior of a job.
  3315  	Spec *JobSpec `json:"spec,omitempty"`
  3316  	// Status: Output only. Current status of a job.
  3317  	Status *JobStatus `json:"status,omitempty"`
  3318  
  3319  	// ServerResponse contains the HTTP response code and headers from the server.
  3320  	googleapi.ServerResponse `json:"-"`
  3321  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  3322  	// unconditionally include in API requests. By default, fields with empty or
  3323  	// default values are omitted from API requests. See
  3324  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3325  	// details.
  3326  	ForceSendFields []string `json:"-"`
  3327  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  3328  	// requests with the JSON null value. By default, fields with empty values are
  3329  	// omitted from API requests. See
  3330  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3331  	NullFields []string `json:"-"`
  3332  }
  3333  
  3334  func (s *Job) MarshalJSON() ([]byte, error) {
  3335  	type NoMethod Job
  3336  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3337  }
  3338  
  3339  // JobSpec: JobSpec describes how the job will look.
  3340  type JobSpec struct {
  3341  	// RunExecutionToken: A unique string used as a suffix for creating a new
  3342  	// execution. The Job will become ready when the execution is successfully
  3343  	// completed. The sum of job name and token length must be fewer than 63
  3344  	// characters.
  3345  	RunExecutionToken string `json:"runExecutionToken,omitempty"`
  3346  	// StartExecutionToken: A unique string used as a suffix for creating a new
  3347  	// execution. The Job will become ready when the execution is successfully
  3348  	// started. The sum of job name and token length must be fewer than 63
  3349  	// characters.
  3350  	StartExecutionToken string `json:"startExecutionToken,omitempty"`
  3351  	// Template: Optional. Describes the execution that will be created when
  3352  	// running a job.
  3353  	Template *ExecutionTemplateSpec `json:"template,omitempty"`
  3354  	// ForceSendFields is a list of field names (e.g. "RunExecutionToken") to
  3355  	// unconditionally include in API requests. By default, fields with empty or
  3356  	// default values are omitted from API requests. See
  3357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3358  	// details.
  3359  	ForceSendFields []string `json:"-"`
  3360  	// NullFields is a list of field names (e.g. "RunExecutionToken") to include in
  3361  	// API requests with the JSON null value. By default, fields with empty values
  3362  	// are omitted from API requests. See
  3363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3364  	NullFields []string `json:"-"`
  3365  }
  3366  
  3367  func (s *JobSpec) MarshalJSON() ([]byte, error) {
  3368  	type NoMethod JobSpec
  3369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3370  }
  3371  
  3372  // JobStatus: JobStatus represents the current state of a Job.
  3373  type JobStatus struct {
  3374  	// Conditions: Conditions communicate information about ongoing/complete
  3375  	// reconciliation processes that bring the "spec" inline with the observed
  3376  	// state of the world. Job-specific conditions include: * `Ready`: `True` when
  3377  	// the job is ready to be executed.
  3378  	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
  3379  	// ExecutionCount: Number of executions created for this job.
  3380  	ExecutionCount int64 `json:"executionCount,omitempty"`
  3381  	// LatestCreatedExecution: A pointer to the most recently created execution for
  3382  	// this job. This is set regardless of the eventual state of the execution.
  3383  	LatestCreatedExecution *ExecutionReference `json:"latestCreatedExecution,omitempty"`
  3384  	// ObservedGeneration: The 'generation' of the job that was last processed by
  3385  	// the controller.
  3386  	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
  3387  	// ForceSendFields is a list of field names (e.g. "Conditions") to
  3388  	// unconditionally include in API requests. By default, fields with empty or
  3389  	// default values are omitted from API requests. See
  3390  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3391  	// details.
  3392  	ForceSendFields []string `json:"-"`
  3393  	// NullFields is a list of field names (e.g. "Conditions") to include in API
  3394  	// requests with the JSON null value. By default, fields with empty values are
  3395  	// omitted from API requests. See
  3396  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3397  	NullFields []string `json:"-"`
  3398  }
  3399  
  3400  func (s *JobStatus) MarshalJSON() ([]byte, error) {
  3401  	type NoMethod JobStatus
  3402  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3403  }
  3404  
  3405  // KeyToPath: Maps a string key to a path within a volume.
  3406  type KeyToPath struct {
  3407  	// Key: The Cloud Secret Manager secret version. Can be 'latest' for the latest
  3408  	// value, or an integer or a secret alias for a specific version. The key to
  3409  	// project.
  3410  	Key string `json:"key,omitempty"`
  3411  	// Mode: (Optional) Mode bits to use on this file, must be a value between 01
  3412  	// and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
  3413  	// Notes * Internally, a umask of 0222 will be applied to any non-zero value. *
  3414  	// This is an integer representation of the mode bits. So, the octal integer
  3415  	// value should look exactly as the chmod numeric notation with a leading zero.
  3416  	// Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10).
  3417  	// For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod
  3418  	// 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be
  3419  	// in conflict with other options that affect the file mode, like fsGroup, and
  3420  	// the result can be other mode bits set.
  3421  	Mode int64 `json:"mode,omitempty"`
  3422  	// Path: The relative path of the file to map the key to. May not be an
  3423  	// absolute path. May not contain the path element '..'. May not start with the
  3424  	// string '..'.
  3425  	Path string `json:"path,omitempty"`
  3426  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
  3427  	// include in API requests. By default, fields with empty or default values are
  3428  	// omitted from API requests. See
  3429  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3430  	// details.
  3431  	ForceSendFields []string `json:"-"`
  3432  	// NullFields is a list of field names (e.g. "Key") to include in API requests
  3433  	// with the JSON null value. By default, fields with empty values are omitted
  3434  	// from API requests. See
  3435  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3436  	NullFields []string `json:"-"`
  3437  }
  3438  
  3439  func (s *KeyToPath) MarshalJSON() ([]byte, error) {
  3440  	type NoMethod KeyToPath
  3441  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3442  }
  3443  
  3444  // ListAuthorizedDomainsResponse: A list of Authorized Domains.
  3445  type ListAuthorizedDomainsResponse struct {
  3446  	// Domains: The authorized domains belonging to the user.
  3447  	Domains []*AuthorizedDomain `json:"domains,omitempty"`
  3448  	// NextPageToken: Continuation token for fetching the next page of results.
  3449  	NextPageToken string `json:"nextPageToken,omitempty"`
  3450  
  3451  	// ServerResponse contains the HTTP response code and headers from the server.
  3452  	googleapi.ServerResponse `json:"-"`
  3453  	// ForceSendFields is a list of field names (e.g. "Domains") to unconditionally
  3454  	// include in API requests. By default, fields with empty or default values are
  3455  	// omitted from API requests. See
  3456  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3457  	// details.
  3458  	ForceSendFields []string `json:"-"`
  3459  	// NullFields is a list of field names (e.g. "Domains") to include in API
  3460  	// requests with the JSON null value. By default, fields with empty values are
  3461  	// omitted from API requests. See
  3462  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3463  	NullFields []string `json:"-"`
  3464  }
  3465  
  3466  func (s *ListAuthorizedDomainsResponse) MarshalJSON() ([]byte, error) {
  3467  	type NoMethod ListAuthorizedDomainsResponse
  3468  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3469  }
  3470  
  3471  // ListConfigurationsResponse: ListConfigurationsResponse is a list of
  3472  // Configuration resources.
  3473  type ListConfigurationsResponse struct {
  3474  	// ApiVersion: The API version for this call such as "serving.knative.dev/v1".
  3475  	ApiVersion string `json:"apiVersion,omitempty"`
  3476  	// Items: List of Configurations.
  3477  	Items []*Configuration `json:"items,omitempty"`
  3478  	// Kind: The kind of this resource, in this case "ConfigurationList".
  3479  	Kind string `json:"kind,omitempty"`
  3480  	// Metadata: Metadata associated with this Configuration list.
  3481  	Metadata *ListMeta `json:"metadata,omitempty"`
  3482  	// Unreachable: Locations that could not be reached.
  3483  	Unreachable []string `json:"unreachable,omitempty"`
  3484  
  3485  	// ServerResponse contains the HTTP response code and headers from the server.
  3486  	googleapi.ServerResponse `json:"-"`
  3487  	// ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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 *ListConfigurationsResponse) MarshalJSON() ([]byte, error) {
  3501  	type NoMethod ListConfigurationsResponse
  3502  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3503  }
  3504  
  3505  // ListDomainMappingsResponse: ListDomainMappingsResponse is a list of
  3506  // DomainMapping resources.
  3507  type ListDomainMappingsResponse struct {
  3508  	// ApiVersion: The API version for this call such as "domains.cloudrun.com/v1".
  3509  	ApiVersion string `json:"apiVersion,omitempty"`
  3510  	// Items: List of DomainMappings.
  3511  	Items []*DomainMapping `json:"items,omitempty"`
  3512  	// Kind: The kind of this resource, in this case "DomainMappingList".
  3513  	Kind string `json:"kind,omitempty"`
  3514  	// Metadata: Metadata associated with this DomainMapping list.
  3515  	Metadata *ListMeta `json:"metadata,omitempty"`
  3516  	// Unreachable: Locations that could not be reached.
  3517  	Unreachable []string `json:"unreachable,omitempty"`
  3518  
  3519  	// ServerResponse contains the HTTP response code and headers from the server.
  3520  	googleapi.ServerResponse `json:"-"`
  3521  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  3522  	// unconditionally include in API requests. By default, fields with empty or
  3523  	// default values are omitted from API requests. See
  3524  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3525  	// details.
  3526  	ForceSendFields []string `json:"-"`
  3527  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  3528  	// requests with the JSON null value. By default, fields with empty values are
  3529  	// omitted from API requests. See
  3530  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3531  	NullFields []string `json:"-"`
  3532  }
  3533  
  3534  func (s *ListDomainMappingsResponse) MarshalJSON() ([]byte, error) {
  3535  	type NoMethod ListDomainMappingsResponse
  3536  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3537  }
  3538  
  3539  // ListExecutionsResponse: ListExecutionsResponse is a list of Executions
  3540  // resources.
  3541  type ListExecutionsResponse struct {
  3542  	// ApiVersion: The API version for this call such as "run.googleapis.com/v1".
  3543  	ApiVersion string `json:"apiVersion,omitempty"`
  3544  	// Items: List of Executions.
  3545  	Items []*Execution `json:"items,omitempty"`
  3546  	// Kind: The kind of this resource, in this case "ExecutionsList".
  3547  	Kind string `json:"kind,omitempty"`
  3548  	// Metadata: Metadata associated with this executions list.
  3549  	Metadata *ListMeta `json:"metadata,omitempty"`
  3550  	// Unreachable: Locations that could not be reached.
  3551  	Unreachable []string `json:"unreachable,omitempty"`
  3552  
  3553  	// ServerResponse contains the HTTP response code and headers from the server.
  3554  	googleapi.ServerResponse `json:"-"`
  3555  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  3556  	// unconditionally include in API requests. By default, fields with empty or
  3557  	// default values are omitted from API requests. See
  3558  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3559  	// details.
  3560  	ForceSendFields []string `json:"-"`
  3561  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  3562  	// requests with the JSON null value. By default, fields with empty values are
  3563  	// omitted from API requests. See
  3564  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3565  	NullFields []string `json:"-"`
  3566  }
  3567  
  3568  func (s *ListExecutionsResponse) MarshalJSON() ([]byte, error) {
  3569  	type NoMethod ListExecutionsResponse
  3570  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3571  }
  3572  
  3573  // ListJobsResponse: ListJobsResponse is a list of Jobs resources.
  3574  type ListJobsResponse struct {
  3575  	// ApiVersion: The API version for this call such as "run.googleapis.com/v1".
  3576  	ApiVersion string `json:"apiVersion,omitempty"`
  3577  	// Items: List of Jobs.
  3578  	Items []*Job `json:"items,omitempty"`
  3579  	// Kind: The kind of this resource, in this case "JobsList".
  3580  	Kind string `json:"kind,omitempty"`
  3581  	// Metadata: Metadata associated with this jobs list.
  3582  	Metadata *ListMeta `json:"metadata,omitempty"`
  3583  	// Unreachable: Locations that could not be reached.
  3584  	Unreachable []string `json:"unreachable,omitempty"`
  3585  
  3586  	// ServerResponse contains the HTTP response code and headers from the server.
  3587  	googleapi.ServerResponse `json:"-"`
  3588  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  3589  	// unconditionally include in API requests. By default, fields with empty or
  3590  	// default values are omitted from API requests. See
  3591  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3592  	// details.
  3593  	ForceSendFields []string `json:"-"`
  3594  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  3595  	// requests with the JSON null value. By default, fields with empty values are
  3596  	// omitted from API requests. See
  3597  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3598  	NullFields []string `json:"-"`
  3599  }
  3600  
  3601  func (s *ListJobsResponse) MarshalJSON() ([]byte, error) {
  3602  	type NoMethod ListJobsResponse
  3603  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3604  }
  3605  
  3606  // ListLocationsResponse: The response message for Locations.ListLocations.
  3607  type ListLocationsResponse struct {
  3608  	// Locations: A list of locations that matches the specified filter in the
  3609  	// request.
  3610  	Locations []*Location `json:"locations,omitempty"`
  3611  	// NextPageToken: The standard List next-page token.
  3612  	NextPageToken string `json:"nextPageToken,omitempty"`
  3613  
  3614  	// ServerResponse contains the HTTP response code and headers from the server.
  3615  	googleapi.ServerResponse `json:"-"`
  3616  	// ForceSendFields is a list of field names (e.g. "Locations") to
  3617  	// unconditionally include in API requests. By default, fields with empty or
  3618  	// default values are omitted from API requests. See
  3619  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3620  	// details.
  3621  	ForceSendFields []string `json:"-"`
  3622  	// NullFields is a list of field names (e.g. "Locations") to include in API
  3623  	// requests with the JSON null value. By default, fields with empty values are
  3624  	// omitted from API requests. See
  3625  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3626  	NullFields []string `json:"-"`
  3627  }
  3628  
  3629  func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
  3630  	type NoMethod ListLocationsResponse
  3631  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3632  }
  3633  
  3634  // ListMeta: Metadata for synthetic resources like List. In Cloud Run, all List
  3635  // Resources Responses will have a ListMeta instead of ObjectMeta.
  3636  type ListMeta struct {
  3637  	// Continue: Continuation token is a value emitted when the count of items is
  3638  	// larger than the user/system limit. To retrieve the next page of items, pass
  3639  	// the value of `continue` as the next request's `page_token`.
  3640  	Continue string `json:"continue,omitempty"`
  3641  	// ResourceVersion: Opaque string that identifies the server's internal version
  3642  	// of this object. It can be used by clients to determine when objects have
  3643  	// changed. If the message is passed back to the server, it must be left
  3644  	// unmodified.
  3645  	ResourceVersion string `json:"resourceVersion,omitempty"`
  3646  	// SelfLink: URL representing this object.
  3647  	SelfLink string `json:"selfLink,omitempty"`
  3648  	// ForceSendFields is a list of field names (e.g. "Continue") to
  3649  	// unconditionally include in API requests. By default, fields with empty or
  3650  	// default values are omitted from API requests. See
  3651  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3652  	// details.
  3653  	ForceSendFields []string `json:"-"`
  3654  	// NullFields is a list of field names (e.g. "Continue") to include in API
  3655  	// requests with the JSON null value. By default, fields with empty values are
  3656  	// omitted from API requests. See
  3657  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3658  	NullFields []string `json:"-"`
  3659  }
  3660  
  3661  func (s *ListMeta) MarshalJSON() ([]byte, error) {
  3662  	type NoMethod ListMeta
  3663  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3664  }
  3665  
  3666  // ListRevisionsResponse: ListRevisionsResponse is a list of Revision
  3667  // resources.
  3668  type ListRevisionsResponse struct {
  3669  	// ApiVersion: The API version for this call such as "serving.knative.dev/v1".
  3670  	ApiVersion string `json:"apiVersion,omitempty"`
  3671  	// Items: List of Revisions.
  3672  	Items []*Revision `json:"items,omitempty"`
  3673  	// Kind: The kind of this resource, in this case "RevisionList".
  3674  	Kind string `json:"kind,omitempty"`
  3675  	// Metadata: Metadata associated with this revision list.
  3676  	Metadata *ListMeta `json:"metadata,omitempty"`
  3677  	// Unreachable: Locations that could not be reached.
  3678  	Unreachable []string `json:"unreachable,omitempty"`
  3679  
  3680  	// ServerResponse contains the HTTP response code and headers from the server.
  3681  	googleapi.ServerResponse `json:"-"`
  3682  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  3683  	// unconditionally include in API requests. By default, fields with empty or
  3684  	// default values are omitted from API requests. See
  3685  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3686  	// details.
  3687  	ForceSendFields []string `json:"-"`
  3688  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  3689  	// requests with the JSON null value. By default, fields with empty values are
  3690  	// omitted from API requests. See
  3691  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3692  	NullFields []string `json:"-"`
  3693  }
  3694  
  3695  func (s *ListRevisionsResponse) MarshalJSON() ([]byte, error) {
  3696  	type NoMethod ListRevisionsResponse
  3697  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3698  }
  3699  
  3700  // ListRoutesResponse: ListRoutesResponse is a list of Route resources.
  3701  type ListRoutesResponse struct {
  3702  	// ApiVersion: The API version for this call such as "serving.knative.dev/v1".
  3703  	ApiVersion string `json:"apiVersion,omitempty"`
  3704  	// Items: List of Routes.
  3705  	Items []*Route `json:"items,omitempty"`
  3706  	// Kind: The kind of this resource, in this case always "RouteList".
  3707  	Kind string `json:"kind,omitempty"`
  3708  	// Metadata: Metadata associated with this Route list.
  3709  	Metadata *ListMeta `json:"metadata,omitempty"`
  3710  	// Unreachable: Locations that could not be reached.
  3711  	Unreachable []string `json:"unreachable,omitempty"`
  3712  
  3713  	// ServerResponse contains the HTTP response code and headers from the server.
  3714  	googleapi.ServerResponse `json:"-"`
  3715  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  3716  	// unconditionally include in API requests. By default, fields with empty or
  3717  	// default values are omitted from API requests. See
  3718  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3719  	// details.
  3720  	ForceSendFields []string `json:"-"`
  3721  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  3722  	// requests with the JSON null value. By default, fields with empty values are
  3723  	// omitted from API requests. See
  3724  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3725  	NullFields []string `json:"-"`
  3726  }
  3727  
  3728  func (s *ListRoutesResponse) MarshalJSON() ([]byte, error) {
  3729  	type NoMethod ListRoutesResponse
  3730  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3731  }
  3732  
  3733  // ListServicesResponse: A list of Service resources.
  3734  type ListServicesResponse struct {
  3735  	// ApiVersion: The API version for this call; returns "serving.knative.dev/v1".
  3736  	ApiVersion string `json:"apiVersion,omitempty"`
  3737  	// Items: List of Services.
  3738  	Items []*Service `json:"items,omitempty"`
  3739  	// Kind: The kind of this resource; returns "ServiceList".
  3740  	Kind string `json:"kind,omitempty"`
  3741  	// Metadata: Metadata associated with this Service list.
  3742  	Metadata *ListMeta `json:"metadata,omitempty"`
  3743  	// Unreachable: For calls against the global endpoint, returns the list of
  3744  	// Cloud locations that could not be reached. For regional calls, this field is
  3745  	// not used.
  3746  	Unreachable []string `json:"unreachable,omitempty"`
  3747  
  3748  	// ServerResponse contains the HTTP response code and headers from the server.
  3749  	googleapi.ServerResponse `json:"-"`
  3750  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  3751  	// unconditionally include in API requests. By default, fields with empty or
  3752  	// default values are omitted from API requests. See
  3753  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3754  	// details.
  3755  	ForceSendFields []string `json:"-"`
  3756  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  3757  	// requests with the JSON null value. By default, fields with empty values are
  3758  	// omitted from API requests. See
  3759  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3760  	NullFields []string `json:"-"`
  3761  }
  3762  
  3763  func (s *ListServicesResponse) MarshalJSON() ([]byte, error) {
  3764  	type NoMethod ListServicesResponse
  3765  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3766  }
  3767  
  3768  // ListTasksResponse: ListTasksResponse is a list of Tasks resources.
  3769  type ListTasksResponse struct {
  3770  	// ApiVersion: The API version for this call such as "run.googleapis.com/v1".
  3771  	ApiVersion string `json:"apiVersion,omitempty"`
  3772  	// Items: List of Tasks.
  3773  	Items []*Task `json:"items,omitempty"`
  3774  	// Kind: The kind of this resource, in this case "TasksList".
  3775  	Kind string `json:"kind,omitempty"`
  3776  	// Metadata: Metadata associated with this tasks list.
  3777  	Metadata *ListMeta `json:"metadata,omitempty"`
  3778  	// Unreachable: Locations that could not be reached.
  3779  	Unreachable []string `json:"unreachable,omitempty"`
  3780  
  3781  	// ServerResponse contains the HTTP response code and headers from the server.
  3782  	googleapi.ServerResponse `json:"-"`
  3783  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  3784  	// unconditionally include in API requests. By default, fields with empty or
  3785  	// default values are omitted from API requests. See
  3786  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3787  	// details.
  3788  	ForceSendFields []string `json:"-"`
  3789  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  3790  	// requests with the JSON null value. By default, fields with empty values are
  3791  	// omitted from API requests. See
  3792  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3793  	NullFields []string `json:"-"`
  3794  }
  3795  
  3796  func (s *ListTasksResponse) MarshalJSON() ([]byte, error) {
  3797  	type NoMethod ListTasksResponse
  3798  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3799  }
  3800  
  3801  // LocalObjectReference: Not supported by Cloud Run. LocalObjectReference
  3802  // contains enough information to let you locate the referenced object inside
  3803  // the same namespace.
  3804  type LocalObjectReference struct {
  3805  	// Name: Name of the referent.
  3806  	Name string `json:"name,omitempty"`
  3807  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  3808  	// include in API requests. By default, fields with empty or default values are
  3809  	// omitted from API requests. See
  3810  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3811  	// details.
  3812  	ForceSendFields []string `json:"-"`
  3813  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  3814  	// with the JSON null value. By default, fields with empty values are omitted
  3815  	// from API requests. See
  3816  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3817  	NullFields []string `json:"-"`
  3818  }
  3819  
  3820  func (s *LocalObjectReference) MarshalJSON() ([]byte, error) {
  3821  	type NoMethod LocalObjectReference
  3822  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3823  }
  3824  
  3825  // Location: A resource that represents a Google Cloud location.
  3826  type Location struct {
  3827  	// DisplayName: The friendly name for this location, typically a nearby city
  3828  	// name. For example, "Tokyo".
  3829  	DisplayName string `json:"displayName,omitempty"`
  3830  	// Labels: Cross-service attributes for the location. For example
  3831  	// {"cloud.googleapis.com/region": "us-east1"}
  3832  	Labels map[string]string `json:"labels,omitempty"`
  3833  	// LocationId: The canonical id for this location. For example: "us-east1".
  3834  	LocationId string `json:"locationId,omitempty"`
  3835  	// Metadata: Service-specific metadata. For example the available capacity at
  3836  	// the given location.
  3837  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3838  	// Name: Resource name for the location, which may vary between
  3839  	// implementations. For example:
  3840  	// "projects/example-project/locations/us-east1"
  3841  	Name string `json:"name,omitempty"`
  3842  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  3843  	// unconditionally include in API requests. By default, fields with empty or
  3844  	// default values are omitted from API requests. See
  3845  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3846  	// details.
  3847  	ForceSendFields []string `json:"-"`
  3848  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  3849  	// requests with the JSON null value. By default, fields with empty values are
  3850  	// omitted from API requests. See
  3851  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3852  	NullFields []string `json:"-"`
  3853  }
  3854  
  3855  func (s *Location) MarshalJSON() ([]byte, error) {
  3856  	type NoMethod Location
  3857  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3858  }
  3859  
  3860  // NFSVolumeSource: Represents a persistent volume that will be mounted using
  3861  // NFS. This volume will be shared between all instances of the resource and
  3862  // data will not be deleted when the instance is shut down.
  3863  type NFSVolumeSource struct {
  3864  	// Path: Path that is exported by the NFS server.
  3865  	Path string `json:"path,omitempty"`
  3866  	// ReadOnly: If true, mount the NFS volume as read only. Defaults to false.
  3867  	ReadOnly bool `json:"readOnly,omitempty"`
  3868  	// Server: Hostname or IP address of the NFS server.
  3869  	Server string `json:"server,omitempty"`
  3870  	// ForceSendFields is a list of field names (e.g. "Path") to unconditionally
  3871  	// include in API requests. By default, fields with empty or default values are
  3872  	// omitted from API requests. See
  3873  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3874  	// details.
  3875  	ForceSendFields []string `json:"-"`
  3876  	// NullFields is a list of field names (e.g. "Path") to include in API requests
  3877  	// with the JSON null value. By default, fields with empty values are omitted
  3878  	// from API requests. See
  3879  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3880  	NullFields []string `json:"-"`
  3881  }
  3882  
  3883  func (s *NFSVolumeSource) MarshalJSON() ([]byte, error) {
  3884  	type NoMethod NFSVolumeSource
  3885  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3886  }
  3887  
  3888  // ObjectMeta: google.cloud.run.meta.v1.ObjectMeta is metadata that all
  3889  // persisted resources must have, which includes all objects users must create.
  3890  type ObjectMeta struct {
  3891  	// Annotations: Unstructured key value map stored with a resource that may be
  3892  	// set by external tools to store and retrieve arbitrary metadata. They are not
  3893  	// queryable and should be preserved when modifying objects. In Cloud Run,
  3894  	// annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are
  3895  	// restricted, and the accepted annotations will be different depending on the
  3896  	// resource type. * `autoscaling.knative.dev/maxScale`: Revision. *
  3897  	// `autoscaling.knative.dev/minScale`: Revision. *
  3898  	// `run.googleapis.com/binary-authorization-breakglass`: Service, Job, *
  3899  	// `run.googleapis.com/binary-authorization`: Service, Job, Execution. *
  3900  	// `run.googleapis.com/client-name`: All resources. *
  3901  	// `run.googleapis.com/cloudsql-instances`: Revision, Execution. *
  3902  	// `run.googleapis.com/container-dependencies`: Revision . *
  3903  	// `run.googleapis.com/cpu-throttling`: Revision. *
  3904  	// `run.googleapis.com/custom-audiences`: Service. *
  3905  	// `run.googleapis.com/default-url-disabled`: Service. *
  3906  	// `run.googleapis.com/description`: Service. *
  3907  	// `run.googleapis.com/encryption-key-shutdown-hours`: Revision *
  3908  	// `run.googleapis.com/encryption-key`: Revision, Execution. *
  3909  	// `run.googleapis.com/execution-environment`: Revision, Execution. *
  3910  	// `run.googleapis.com/gc-traffic-tags`: Service. *
  3911  	// `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`:
  3912  	// Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) *
  3913  	// `run.googleapis.com/network-interfaces`: Revision, Execution. *
  3914  	// `run.googleapis.com/post-key-revocation-action-type`: Revision. *
  3915  	// `run.googleapis.com/secrets`: Revision, Execution. *
  3916  	// `run.googleapis.com/secure-session-agent`: Revision. *
  3917  	// `run.googleapis.com/sessionAffinity`: Revision. *
  3918  	// `run.googleapis.com/startup-cpu-boost`: Revision. *
  3919  	// `run.googleapis.com/vpc-access-connector`: Revision, Execution. *
  3920  	// `run.googleapis.com/vpc-access-egress`: Revision, Execution.
  3921  	Annotations map[string]string `json:"annotations,omitempty"`
  3922  	// ClusterName: Not supported by Cloud Run
  3923  	ClusterName string `json:"clusterName,omitempty"`
  3924  	// CreationTimestamp: UTC timestamp representing the server time when this
  3925  	// object was created.
  3926  	CreationTimestamp string `json:"creationTimestamp,omitempty"`
  3927  	// DeletionGracePeriodSeconds: Not supported by Cloud Run
  3928  	DeletionGracePeriodSeconds int64 `json:"deletionGracePeriodSeconds,omitempty"`
  3929  	// DeletionTimestamp: The read-only soft deletion timestamp for this resource.
  3930  	// In Cloud Run, users are not able to set this field. Instead, they must call
  3931  	// the corresponding Delete API.
  3932  	DeletionTimestamp string `json:"deletionTimestamp,omitempty"`
  3933  	// Finalizers: Not supported by Cloud Run
  3934  	Finalizers []string `json:"finalizers,omitempty"`
  3935  	// GenerateName: Not supported by Cloud Run
  3936  	GenerateName string `json:"generateName,omitempty"`
  3937  	// Generation: A system-provided sequence number representing a specific
  3938  	// generation of the desired state.
  3939  	Generation int64 `json:"generation,omitempty"`
  3940  	// Labels: Map of string keys and values that can be used to organize and
  3941  	// categorize (scope and select) objects. May match selectors of replication
  3942  	// controllers and routes.
  3943  	Labels map[string]string `json:"labels,omitempty"`
  3944  	// Name: Required. The name of the resource. Name is required when creating
  3945  	// top-level resources (Service, Job), must be unique within a Cloud Run
  3946  	// project/region, and cannot be changed once created.
  3947  	Name string `json:"name,omitempty"`
  3948  	// Namespace: Required. Defines the space within each name must be unique
  3949  	// within a Cloud Run region. In Cloud Run, it must be project ID or number.
  3950  	Namespace string `json:"namespace,omitempty"`
  3951  	// OwnerReferences: Not supported by Cloud Run
  3952  	OwnerReferences []*OwnerReference `json:"ownerReferences,omitempty"`
  3953  	// ResourceVersion: Opaque, system-generated value that represents the internal
  3954  	// version of this object that can be used by clients to determine when objects
  3955  	// have changed. May be used for optimistic concurrency, change detection, and
  3956  	// the watch operation on a resource or set of resources. Clients must treat
  3957  	// these values as opaque and passed unmodified back to the server or omit the
  3958  	// value to disable conflict-detection.
  3959  	ResourceVersion string `json:"resourceVersion,omitempty"`
  3960  	// SelfLink: URL representing this object.
  3961  	SelfLink string `json:"selfLink,omitempty"`
  3962  	// Uid: Unique, system-generated identifier for this resource.
  3963  	Uid string `json:"uid,omitempty"`
  3964  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  3965  	// unconditionally include in API requests. By default, fields with empty or
  3966  	// default values are omitted from API requests. See
  3967  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3968  	// details.
  3969  	ForceSendFields []string `json:"-"`
  3970  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  3971  	// requests with the JSON null value. By default, fields with empty values are
  3972  	// omitted from API requests. See
  3973  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3974  	NullFields []string `json:"-"`
  3975  }
  3976  
  3977  func (s *ObjectMeta) MarshalJSON() ([]byte, error) {
  3978  	type NoMethod ObjectMeta
  3979  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3980  }
  3981  
  3982  // Overrides: RunJob Overrides that contains Execution fields to be overridden
  3983  // on the go.
  3984  type Overrides struct {
  3985  	// ContainerOverrides: Per container override specification.
  3986  	ContainerOverrides []*ContainerOverride `json:"containerOverrides,omitempty"`
  3987  	// TaskCount: The desired number of tasks the execution should run. Will
  3988  	// replace existing task_count value.
  3989  	TaskCount int64 `json:"taskCount,omitempty"`
  3990  	// TimeoutSeconds: Duration in seconds the task may be active before the system
  3991  	// will actively try to mark it failed and kill associated containers. Will
  3992  	// replace existing timeout_seconds value.
  3993  	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
  3994  	// ForceSendFields is a list of field names (e.g. "ContainerOverrides") to
  3995  	// unconditionally include in API requests. By default, fields with empty or
  3996  	// default values are omitted from API requests. See
  3997  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3998  	// details.
  3999  	ForceSendFields []string `json:"-"`
  4000  	// NullFields is a list of field names (e.g. "ContainerOverrides") to include
  4001  	// in API requests with the JSON null value. By default, fields with empty
  4002  	// values are omitted from API requests. See
  4003  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4004  	NullFields []string `json:"-"`
  4005  }
  4006  
  4007  func (s *Overrides) MarshalJSON() ([]byte, error) {
  4008  	type NoMethod Overrides
  4009  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4010  }
  4011  
  4012  // OwnerReference: This is not supported or used by Cloud Run.
  4013  type OwnerReference struct {
  4014  	// ApiVersion: This is not supported or used by Cloud Run.
  4015  	ApiVersion string `json:"apiVersion,omitempty"`
  4016  	// BlockOwnerDeletion: This is not supported or used by Cloud Run.
  4017  	BlockOwnerDeletion bool `json:"blockOwnerDeletion,omitempty"`
  4018  	// Controller: This is not supported or used by Cloud Run.
  4019  	Controller bool `json:"controller,omitempty"`
  4020  	// Kind: This is not supported or used by Cloud Run.
  4021  	Kind string `json:"kind,omitempty"`
  4022  	// Name: This is not supported or used by Cloud Run.
  4023  	Name string `json:"name,omitempty"`
  4024  	// Uid: This is not supported or used by Cloud Run.
  4025  	Uid string `json:"uid,omitempty"`
  4026  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  4027  	// unconditionally include in API requests. By default, fields with empty or
  4028  	// default values are omitted from API requests. See
  4029  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4030  	// details.
  4031  	ForceSendFields []string `json:"-"`
  4032  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  4033  	// requests with the JSON null value. By default, fields with empty values are
  4034  	// omitted from API requests. See
  4035  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4036  	NullFields []string `json:"-"`
  4037  }
  4038  
  4039  func (s *OwnerReference) MarshalJSON() ([]byte, error) {
  4040  	type NoMethod OwnerReference
  4041  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4042  }
  4043  
  4044  // Policy: An Identity and Access Management (IAM) policy, which specifies
  4045  // access controls for Google Cloud resources. A `Policy` is a collection of
  4046  // `bindings`. A `binding` binds one or more `members`, or principals, to a
  4047  // single `role`. Principals can be user accounts, service accounts, Google
  4048  // groups, and domains (such as G Suite). A `role` is a named list of
  4049  // permissions; each `role` can be an IAM predefined role or a user-created
  4050  // custom role. For some types of Google Cloud resources, a `binding` can also
  4051  // specify a `condition`, which is a logical expression that allows access to a
  4052  // resource only if the expression evaluates to `true`. A condition can add
  4053  // constraints based on attributes of the request, the resource, or both. To
  4054  // learn which resources support conditions in their IAM policies, see the IAM
  4055  // documentation
  4056  // (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON
  4057  // example:** ``` { "bindings": [ { "role":
  4058  // "roles/resourcemanager.organizationAdmin", "members": [
  4059  // "user:mike@example.com", "group:admins@example.com", "domain:google.com",
  4060  // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":
  4061  // "roles/resourcemanager.organizationViewer", "members": [
  4062  // "user:eve@example.com" ], "condition": { "title": "expirable access",
  4063  // "description": "Does not grant access after Sep 2020", "expression":
  4064  // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":
  4065  // "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: -
  4066  // members: - user:mike@example.com - group:admins@example.com -
  4067  // domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
  4068  // role: roles/resourcemanager.organizationAdmin - members: -
  4069  // user:eve@example.com role: roles/resourcemanager.organizationViewer
  4070  // condition: title: expirable access description: Does not grant access after
  4071  // Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
  4072  // etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features,
  4073  // see the IAM documentation (https://cloud.google.com/iam/docs/).
  4074  type Policy struct {
  4075  	// AuditConfigs: Specifies cloud audit logging configuration for this policy.
  4076  	AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
  4077  	// Bindings: Associates a list of `members`, or principals, with a `role`.
  4078  	// Optionally, may specify a `condition` that determines how and when the
  4079  	// `bindings` are applied. Each of the `bindings` must contain at least one
  4080  	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
  4081  	// up to 250 of these principals can be Google groups. Each occurrence of a
  4082  	// principal counts towards these limits. For example, if the `bindings` grant
  4083  	// 50 different roles to `user:alice@example.com`, and not to any other
  4084  	// principal, then you can add another 1,450 principals to the `bindings` in
  4085  	// the `Policy`.
  4086  	Bindings []*Binding `json:"bindings,omitempty"`
  4087  	// Etag: `etag` is used for optimistic concurrency control as a way to help
  4088  	// prevent simultaneous updates of a policy from overwriting each other. It is
  4089  	// strongly suggested that systems make use of the `etag` in the
  4090  	// read-modify-write cycle to perform policy updates in order to avoid race
  4091  	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
  4092  	// systems are expected to put that etag in the request to `setIamPolicy` to
  4093  	// ensure that their change will be applied to the same version of the policy.
  4094  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  4095  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  4096  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  4097  	// the conditions in the version `3` policy are lost.
  4098  	Etag string `json:"etag,omitempty"`
  4099  	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
  4100  	// `3`. Requests that specify an invalid value are rejected. Any operation that
  4101  	// affects conditional role bindings must specify version `3`. This requirement
  4102  	// applies to the following operations: * Getting a policy that includes a
  4103  	// conditional role binding * Adding a conditional role binding to a policy *
  4104  	// Changing a conditional role binding in a policy * Removing any role binding,
  4105  	// with or without a condition, from a policy that includes conditions
  4106  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  4107  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  4108  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  4109  	// the conditions in the version `3` policy are lost. If a policy does not
  4110  	// include any conditions, operations on that policy may specify any valid
  4111  	// version or leave the field unset. To learn which resources support
  4112  	// conditions in their IAM policies, see the IAM documentation
  4113  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  4114  	Version int64 `json:"version,omitempty"`
  4115  
  4116  	// ServerResponse contains the HTTP response code and headers from the server.
  4117  	googleapi.ServerResponse `json:"-"`
  4118  	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
  4119  	// unconditionally include in API requests. By default, fields with empty or
  4120  	// default values are omitted from API requests. See
  4121  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4122  	// details.
  4123  	ForceSendFields []string `json:"-"`
  4124  	// NullFields is a list of field names (e.g. "AuditConfigs") to include in API
  4125  	// requests with the JSON null value. By default, fields with empty values are
  4126  	// omitted from API requests. See
  4127  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4128  	NullFields []string `json:"-"`
  4129  }
  4130  
  4131  func (s *Policy) MarshalJSON() ([]byte, error) {
  4132  	type NoMethod Policy
  4133  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4134  }
  4135  
  4136  // Probe: Probe describes a health check to be performed against a container to
  4137  // determine whether it is alive or ready to receive traffic.
  4138  type Probe struct {
  4139  	// Exec: Not supported by Cloud Run.
  4140  	Exec *ExecAction `json:"exec,omitempty"`
  4141  	// FailureThreshold: Minimum consecutive failures for the probe to be
  4142  	// considered failed after having succeeded. Defaults to 3. Minimum value is 1.
  4143  	FailureThreshold int64 `json:"failureThreshold,omitempty"`
  4144  	// Grpc: GRPCAction specifies an action involving a GRPC port.
  4145  	Grpc *GRPCAction `json:"grpc,omitempty"`
  4146  	// HttpGet: HTTPGet specifies the http request to perform.
  4147  	HttpGet *HTTPGetAction `json:"httpGet,omitempty"`
  4148  	// InitialDelaySeconds: Number of seconds after the container has started
  4149  	// before the probe is initiated. Defaults to 0 seconds. Minimum value is 0.
  4150  	// Maximum value for liveness probe is 3600. Maximum value for startup probe is
  4151  	// 240.
  4152  	InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"`
  4153  	// PeriodSeconds: How often (in seconds) to perform the probe. Default to 10
  4154  	// seconds. Minimum value is 1. Maximum value for liveness probe is 3600.
  4155  	// Maximum value for startup probe is 240. Must be greater or equal than
  4156  	// timeout_seconds.
  4157  	PeriodSeconds int64 `json:"periodSeconds,omitempty"`
  4158  	// SuccessThreshold: Minimum consecutive successes for the probe to be
  4159  	// considered successful after having failed. Must be 1 if set.
  4160  	SuccessThreshold int64 `json:"successThreshold,omitempty"`
  4161  	// TcpSocket: TCPSocket specifies an action involving a TCP port.
  4162  	TcpSocket *TCPSocketAction `json:"tcpSocket,omitempty"`
  4163  	// TimeoutSeconds: Number of seconds after which the probe times out. Defaults
  4164  	// to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than
  4165  	// period_seconds; if period_seconds is not set, must be less or equal than 10.
  4166  	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
  4167  	// ForceSendFields is a list of field names (e.g. "Exec") to unconditionally
  4168  	// include in API requests. By default, fields with empty or default values are
  4169  	// omitted from API requests. See
  4170  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4171  	// details.
  4172  	ForceSendFields []string `json:"-"`
  4173  	// NullFields is a list of field names (e.g. "Exec") to include in API requests
  4174  	// with the JSON null value. By default, fields with empty values are omitted
  4175  	// from API requests. See
  4176  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4177  	NullFields []string `json:"-"`
  4178  }
  4179  
  4180  func (s *Probe) MarshalJSON() ([]byte, error) {
  4181  	type NoMethod Probe
  4182  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4183  }
  4184  
  4185  // ResourceRecord: A DNS resource record.
  4186  type ResourceRecord struct {
  4187  	// Name: Relative name of the object affected by this record. Only applicable
  4188  	// for `CNAME` records. Example: 'www'.
  4189  	Name string `json:"name,omitempty"`
  4190  	// Rrdata: Data for this record. Values vary by record type, as defined in RFC
  4191  	// 1035 (section 5) and RFC 1034 (section 3.6.1).
  4192  	Rrdata string `json:"rrdata,omitempty"`
  4193  	// Type: Resource record type. Example: `AAAA`.
  4194  	//
  4195  	// Possible values:
  4196  	//   "RECORD_TYPE_UNSPECIFIED" - An unknown resource record.
  4197  	//   "A" - An A resource record. Data is an IPv4 address.
  4198  	//   "AAAA" - An AAAA resource record. Data is an IPv6 address.
  4199  	//   "CNAME" - A CNAME resource record. Data is a domain name to be aliased.
  4200  	Type string `json:"type,omitempty"`
  4201  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  4202  	// include in API requests. By default, fields with empty or default values are
  4203  	// omitted from API requests. See
  4204  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4205  	// details.
  4206  	ForceSendFields []string `json:"-"`
  4207  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  4208  	// with the JSON null value. By default, fields with empty values are omitted
  4209  	// from API requests. See
  4210  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4211  	NullFields []string `json:"-"`
  4212  }
  4213  
  4214  func (s *ResourceRecord) MarshalJSON() ([]byte, error) {
  4215  	type NoMethod ResourceRecord
  4216  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4217  }
  4218  
  4219  // ResourceRequirements: ResourceRequirements describes the compute resource
  4220  // requirements.
  4221  type ResourceRequirements struct {
  4222  	// Limits: Limits describes the maximum amount of compute resources allowed.
  4223  	// Only 'cpu' and 'memory' keys are supported. * For supported 'cpu' values, go
  4224  	// to https://cloud.google.com/run/docs/configuring/cpu. * For supported
  4225  	// 'memory' values and syntax, go to
  4226  	// https://cloud.google.com/run/docs/configuring/memory-limits
  4227  	Limits map[string]string `json:"limits,omitempty"`
  4228  	// Requests: Requests describes the minimum amount of compute resources
  4229  	// required. Only `cpu` and `memory` are supported. If Requests is omitted for
  4230  	// a container, it defaults to Limits if that is explicitly specified,
  4231  	// otherwise to an implementation-defined value. * For supported 'cpu' values,
  4232  	// go to https://cloud.google.com/run/docs/configuring/cpu. * For supported
  4233  	// 'memory' values and syntax, go to
  4234  	// https://cloud.google.com/run/docs/configuring/memory-limits
  4235  	Requests map[string]string `json:"requests,omitempty"`
  4236  	// ForceSendFields is a list of field names (e.g. "Limits") to unconditionally
  4237  	// include in API requests. By default, fields with empty or default values are
  4238  	// omitted from API requests. See
  4239  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4240  	// details.
  4241  	ForceSendFields []string `json:"-"`
  4242  	// NullFields is a list of field names (e.g. "Limits") to include in API
  4243  	// requests with the JSON null value. By default, fields with empty values are
  4244  	// omitted from API requests. See
  4245  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4246  	NullFields []string `json:"-"`
  4247  }
  4248  
  4249  func (s *ResourceRequirements) MarshalJSON() ([]byte, error) {
  4250  	type NoMethod ResourceRequirements
  4251  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4252  }
  4253  
  4254  // Revision: Revision is an immutable snapshot of code and configuration. A
  4255  // revision references a container image. Revisions are created by updates to a
  4256  // Configuration. See also:
  4257  // https://github.com/knative/specs/blob/main/specs/serving/overview.md#revision
  4258  type Revision struct {
  4259  	// ApiVersion: The API version for this call such as "serving.knative.dev/v1".
  4260  	ApiVersion string `json:"apiVersion,omitempty"`
  4261  	// Kind: The kind of this resource, in this case "Revision".
  4262  	Kind string `json:"kind,omitempty"`
  4263  	// Metadata: Metadata associated with this Revision, including name, namespace,
  4264  	// labels, and annotations.
  4265  	Metadata *ObjectMeta `json:"metadata,omitempty"`
  4266  	// Spec: Spec holds the desired state of the Revision (from the client).
  4267  	Spec *RevisionSpec `json:"spec,omitempty"`
  4268  	// Status: Status communicates the observed state of the Revision (from the
  4269  	// controller).
  4270  	Status *RevisionStatus `json:"status,omitempty"`
  4271  
  4272  	// ServerResponse contains the HTTP response code and headers from the server.
  4273  	googleapi.ServerResponse `json:"-"`
  4274  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  4275  	// unconditionally include in API requests. By default, fields with empty or
  4276  	// default values are omitted from API requests. See
  4277  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4278  	// details.
  4279  	ForceSendFields []string `json:"-"`
  4280  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  4281  	// requests with the JSON null value. By default, fields with empty values are
  4282  	// omitted from API requests. See
  4283  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4284  	NullFields []string `json:"-"`
  4285  }
  4286  
  4287  func (s *Revision) MarshalJSON() ([]byte, error) {
  4288  	type NoMethod Revision
  4289  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4290  }
  4291  
  4292  // RevisionSpec: RevisionSpec holds the desired state of the Revision (from the
  4293  // client).
  4294  type RevisionSpec struct {
  4295  	// ContainerConcurrency: ContainerConcurrency specifies the maximum allowed
  4296  	// in-flight (concurrent) requests per container instance of the Revision. If
  4297  	// not specified, defaults to 80.
  4298  	ContainerConcurrency int64 `json:"containerConcurrency,omitempty"`
  4299  	// Containers: Required. Containers holds the single container that defines the
  4300  	// unit of execution for this Revision. In the context of a Revision, we
  4301  	// disallow a number of fields on this Container, including: name and
  4302  	// lifecycle. In Cloud Run, only a single container may be provided.
  4303  	Containers []*Container `json:"containers,omitempty"`
  4304  	// EnableServiceLinks: Not supported by Cloud Run.
  4305  	EnableServiceLinks bool `json:"enableServiceLinks,omitempty"`
  4306  	// ImagePullSecrets: Not supported by Cloud Run.
  4307  	ImagePullSecrets []*LocalObjectReference `json:"imagePullSecrets,omitempty"`
  4308  	// NodeSelector: Optional. The Node Selector configuration. Map of selector key
  4309  	// to a value which matches a node.
  4310  	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
  4311  	// RuntimeClassName: Runtime. Leave unset for default.
  4312  	RuntimeClassName string `json:"runtimeClassName,omitempty"`
  4313  	// ServiceAccountName: Email address of the IAM service account associated with
  4314  	// the revision of the service. The service account represents the identity of
  4315  	// the running revision, and determines what permissions the revision has. If
  4316  	// not provided, the revision will use the project's default service account.
  4317  	ServiceAccountName string `json:"serviceAccountName,omitempty"`
  4318  	// TimeoutSeconds: TimeoutSeconds holds the max duration the instance is
  4319  	// allowed for responding to a request. Cloud Run: defaults to 300 seconds (5
  4320  	// minutes). Maximum allowed value is 3600 seconds (1 hour).
  4321  	TimeoutSeconds int64     `json:"timeoutSeconds,omitempty"`
  4322  	Volumes        []*Volume `json:"volumes,omitempty"`
  4323  	// ForceSendFields is a list of field names (e.g. "ContainerConcurrency") to
  4324  	// unconditionally include in API requests. By default, fields with empty or
  4325  	// default values are omitted from API requests. See
  4326  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4327  	// details.
  4328  	ForceSendFields []string `json:"-"`
  4329  	// NullFields is a list of field names (e.g. "ContainerConcurrency") to include
  4330  	// in API requests with the JSON null value. By default, fields with empty
  4331  	// values are omitted from API requests. See
  4332  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4333  	NullFields []string `json:"-"`
  4334  }
  4335  
  4336  func (s *RevisionSpec) MarshalJSON() ([]byte, error) {
  4337  	type NoMethod RevisionSpec
  4338  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4339  }
  4340  
  4341  // RevisionStatus: RevisionStatus communicates the observed state of the
  4342  // Revision (from the controller).
  4343  type RevisionStatus struct {
  4344  	// Conditions: Conditions communicate information about ongoing/complete
  4345  	// reconciliation processes that bring the "spec" inline with the observed
  4346  	// state of the world. As a Revision is being prepared, it will incrementally
  4347  	// update conditions. Revision-specific conditions include: *
  4348  	// `ResourcesAvailable`: `True` when underlying resources have been
  4349  	// provisioned. * `ContainerHealthy`: `True` when the Revision readiness check
  4350  	// completes. * `Active`: `True` when the Revision may receive traffic.
  4351  	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
  4352  	// DesiredReplicas: Output only. The configured number of instances running
  4353  	// this revision. For Cloud Run, this only includes instances provisioned using
  4354  	// the minScale annotation. It does not include instances created by
  4355  	// autoscaling.
  4356  	DesiredReplicas int64 `json:"desiredReplicas,omitempty"`
  4357  	// ImageDigest: ImageDigest holds the resolved digest for the image specified
  4358  	// within .Spec.Container.Image. The digest is resolved during the creation of
  4359  	// Revision. This field holds the digest value regardless of whether a tag or
  4360  	// digest was originally specified in the Container object.
  4361  	ImageDigest string `json:"imageDigest,omitempty"`
  4362  	// LogUrl: Optional. Specifies the generated logging url for this particular
  4363  	// revision based on the revision url template specified in the controller's
  4364  	// config.
  4365  	LogUrl string `json:"logUrl,omitempty"`
  4366  	// ObservedGeneration: ObservedGeneration is the 'Generation' of the Revision
  4367  	// that was last processed by the controller. Clients polling for completed
  4368  	// reconciliation should poll until observedGeneration = metadata.generation,
  4369  	// and the Ready condition's status is True or False.
  4370  	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
  4371  	// ServiceName: Not currently used by Cloud Run.
  4372  	ServiceName string `json:"serviceName,omitempty"`
  4373  	// ForceSendFields is a list of field names (e.g. "Conditions") to
  4374  	// unconditionally include in API requests. By default, fields with empty or
  4375  	// default values are omitted from API requests. See
  4376  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4377  	// details.
  4378  	ForceSendFields []string `json:"-"`
  4379  	// NullFields is a list of field names (e.g. "Conditions") to include in API
  4380  	// requests with the JSON null value. By default, fields with empty values are
  4381  	// omitted from API requests. See
  4382  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4383  	NullFields []string `json:"-"`
  4384  }
  4385  
  4386  func (s *RevisionStatus) MarshalJSON() ([]byte, error) {
  4387  	type NoMethod RevisionStatus
  4388  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4389  }
  4390  
  4391  // RevisionTemplate: RevisionTemplateSpec describes the data a revision should
  4392  // have when created from a template.
  4393  type RevisionTemplate struct {
  4394  	// Metadata: Optional metadata for this Revision, including labels and
  4395  	// annotations. Name will be generated by the Configuration. The following
  4396  	// annotation keys set properties of the created revision: *
  4397  	// `autoscaling.knative.dev/minScale` sets the minimum number of instances. *
  4398  	// `autoscaling.knative.dev/maxScale` sets the maximum number of instances. *
  4399  	// `run.googleapis.com/cloudsql-instances` sets Cloud SQL connections. Multiple
  4400  	// values should be comma separated. *
  4401  	// `run.googleapis.com/vpc-access-connector` sets a Serverless VPC Access
  4402  	// connector. * `run.googleapis.com/vpc-access-egress` sets VPC egress.
  4403  	// Supported values are `all-traffic`, `all` (deprecated), and
  4404  	// `private-ranges-only`. `all-traffic` and `all` provide the same
  4405  	// functionality. `all` is deprecated but will continue to be supported. Prefer
  4406  	// `all-traffic`.
  4407  	Metadata *ObjectMeta `json:"metadata,omitempty"`
  4408  	// Spec: RevisionSpec holds the desired state of the Revision (from the
  4409  	// client).
  4410  	Spec *RevisionSpec `json:"spec,omitempty"`
  4411  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  4412  	// unconditionally include in API requests. By default, fields with empty or
  4413  	// default values are omitted from API requests. See
  4414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4415  	// details.
  4416  	ForceSendFields []string `json:"-"`
  4417  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  4418  	// requests with the JSON null value. By default, fields with empty values are
  4419  	// omitted from API requests. See
  4420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4421  	NullFields []string `json:"-"`
  4422  }
  4423  
  4424  func (s *RevisionTemplate) MarshalJSON() ([]byte, error) {
  4425  	type NoMethod RevisionTemplate
  4426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4427  }
  4428  
  4429  // Route: Route is responsible for configuring ingress over a collection of
  4430  // Revisions. Some of the Revisions a Route distributes traffic over may be
  4431  // specified by referencing the Configuration responsible for creating them; in
  4432  // these cases the Route is additionally responsible for monitoring the
  4433  // Configuration for "latest ready" revision changes, and smoothly rolling out
  4434  // latest revisions. Cloud Run currently supports referencing a single
  4435  // Configuration to automatically deploy the "latest ready" Revision from that
  4436  // Configuration.
  4437  type Route struct {
  4438  	// ApiVersion: The API version for this call such as "serving.knative.dev/v1".
  4439  	ApiVersion string `json:"apiVersion,omitempty"`
  4440  	// Kind: The kind of this resource, in this case always "Route".
  4441  	Kind string `json:"kind,omitempty"`
  4442  	// Metadata: Metadata associated with this Route, including name, namespace,
  4443  	// labels, and annotations.
  4444  	Metadata *ObjectMeta `json:"metadata,omitempty"`
  4445  	// Spec: Spec holds the desired state of the Route (from the client).
  4446  	Spec *RouteSpec `json:"spec,omitempty"`
  4447  	// Status: Status communicates the observed state of the Route (from the
  4448  	// controller).
  4449  	Status *RouteStatus `json:"status,omitempty"`
  4450  
  4451  	// ServerResponse contains the HTTP response code and headers from the server.
  4452  	googleapi.ServerResponse `json:"-"`
  4453  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  4454  	// unconditionally include in API requests. By default, fields with empty or
  4455  	// default values are omitted from API requests. See
  4456  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4457  	// details.
  4458  	ForceSendFields []string `json:"-"`
  4459  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  4460  	// requests with the JSON null value. By default, fields with empty values are
  4461  	// omitted from API requests. See
  4462  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4463  	NullFields []string `json:"-"`
  4464  }
  4465  
  4466  func (s *Route) MarshalJSON() ([]byte, error) {
  4467  	type NoMethod Route
  4468  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4469  }
  4470  
  4471  // RouteSpec: RouteSpec holds the desired state of the Route (from the client).
  4472  type RouteSpec struct {
  4473  	// Traffic: Traffic specifies how to distribute traffic over a collection of
  4474  	// Knative Revisions and Configurations. Cloud Run currently supports a single
  4475  	// configurationName.
  4476  	Traffic []*TrafficTarget `json:"traffic,omitempty"`
  4477  	// ForceSendFields is a list of field names (e.g. "Traffic") to unconditionally
  4478  	// include in API requests. By default, fields with empty or default values are
  4479  	// omitted from API requests. See
  4480  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4481  	// details.
  4482  	ForceSendFields []string `json:"-"`
  4483  	// NullFields is a list of field names (e.g. "Traffic") to include in API
  4484  	// requests with the JSON null value. By default, fields with empty values are
  4485  	// omitted from API requests. See
  4486  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4487  	NullFields []string `json:"-"`
  4488  }
  4489  
  4490  func (s *RouteSpec) MarshalJSON() ([]byte, error) {
  4491  	type NoMethod RouteSpec
  4492  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4493  }
  4494  
  4495  // RouteStatus: RouteStatus communicates the observed state of the Route (from
  4496  // the controller).
  4497  type RouteStatus struct {
  4498  	// Address: Similar to url, information on where the service is available on
  4499  	// HTTP.
  4500  	Address *Addressable `json:"address,omitempty"`
  4501  	// Conditions: Conditions communicates information about ongoing/complete
  4502  	// reconciliation processes that bring the "spec" inline with the observed
  4503  	// state of the world.
  4504  	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
  4505  	// ObservedGeneration: ObservedGeneration is the 'Generation' of the Route that
  4506  	// was last processed by the controller. Clients polling for completed
  4507  	// reconciliation should poll until observedGeneration = metadata.generation
  4508  	// and the Ready condition's status is True or False. Note that providing a
  4509  	// TrafficTarget that has latest_revision=True will result in a Route that does
  4510  	// not increment either its metadata.generation or its observedGeneration, as
  4511  	// new "latest ready" revisions from the Configuration are processed without an
  4512  	// update to the Route's spec.
  4513  	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
  4514  	// Traffic: Traffic holds the configured traffic distribution. These entries
  4515  	// will always contain RevisionName references. When ConfigurationName appears
  4516  	// in the spec, this will hold the LatestReadyRevisionName that was last
  4517  	// observed.
  4518  	Traffic []*TrafficTarget `json:"traffic,omitempty"`
  4519  	// Url: URL holds the url that will distribute traffic over the provided
  4520  	// traffic targets. It generally has the form:
  4521  	// `https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app`
  4522  	Url string `json:"url,omitempty"`
  4523  	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
  4524  	// include in API requests. By default, fields with empty or default values are
  4525  	// omitted from API requests. See
  4526  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4527  	// details.
  4528  	ForceSendFields []string `json:"-"`
  4529  	// NullFields is a list of field names (e.g. "Address") to include in API
  4530  	// requests with the JSON null value. By default, fields with empty values are
  4531  	// omitted from API requests. See
  4532  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4533  	NullFields []string `json:"-"`
  4534  }
  4535  
  4536  func (s *RouteStatus) MarshalJSON() ([]byte, error) {
  4537  	type NoMethod RouteStatus
  4538  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4539  }
  4540  
  4541  // RunJobRequest: Request message for creating a new execution of a job.
  4542  type RunJobRequest struct {
  4543  	// Overrides: Optional. Overrides existing job configuration for one specific
  4544  	// new job execution only, using the specified values to update the job
  4545  	// configuration for the new execution.
  4546  	Overrides *Overrides `json:"overrides,omitempty"`
  4547  	// ForceSendFields is a list of field names (e.g. "Overrides") to
  4548  	// unconditionally include in API requests. By default, fields with empty or
  4549  	// default values are omitted from API requests. See
  4550  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4551  	// details.
  4552  	ForceSendFields []string `json:"-"`
  4553  	// NullFields is a list of field names (e.g. "Overrides") to include in API
  4554  	// requests with the JSON null value. By default, fields with empty values are
  4555  	// omitted from API requests. See
  4556  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4557  	NullFields []string `json:"-"`
  4558  }
  4559  
  4560  func (s *RunJobRequest) MarshalJSON() ([]byte, error) {
  4561  	type NoMethod RunJobRequest
  4562  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4563  }
  4564  
  4565  // SecretEnvSource: Not supported by Cloud Run. SecretEnvSource selects a
  4566  // Secret to populate the environment variables with. The contents of the
  4567  // target Secret's Data field will represent the key-value pairs as environment
  4568  // variables.
  4569  type SecretEnvSource struct {
  4570  	// LocalObjectReference: This field should not be used directly as it is meant
  4571  	// to be inlined directly into the message. Use the "name" field instead.
  4572  	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
  4573  	// Name: The Secret to select from.
  4574  	Name string `json:"name,omitempty"`
  4575  	// Optional: Specify whether the Secret must be defined
  4576  	Optional bool `json:"optional,omitempty"`
  4577  	// ForceSendFields is a list of field names (e.g. "LocalObjectReference") to
  4578  	// unconditionally include in API requests. By default, fields with empty or
  4579  	// default values are omitted from API requests. See
  4580  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4581  	// details.
  4582  	ForceSendFields []string `json:"-"`
  4583  	// NullFields is a list of field names (e.g. "LocalObjectReference") to include
  4584  	// in API requests with the JSON null value. By default, fields with empty
  4585  	// values are omitted from API requests. See
  4586  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4587  	NullFields []string `json:"-"`
  4588  }
  4589  
  4590  func (s *SecretEnvSource) MarshalJSON() ([]byte, error) {
  4591  	type NoMethod SecretEnvSource
  4592  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4593  }
  4594  
  4595  // SecretKeySelector: SecretKeySelector selects a key of a Secret.
  4596  type SecretKeySelector struct {
  4597  	// Key: Required. A Cloud Secret Manager secret version. Must be 'latest' for
  4598  	// the latest version, an integer for a specific version, or a version alias.
  4599  	// The key of the secret to select from. Must be a valid secret key.
  4600  	Key string `json:"key,omitempty"`
  4601  	// LocalObjectReference: This field should not be used directly as it is meant
  4602  	// to be inlined directly into the message. Use the "name" field instead.
  4603  	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
  4604  	// Name: The name of the secret in Cloud Secret Manager. By default, the secret
  4605  	// is assumed to be in the same project. If the secret is in another project,
  4606  	// you must define an alias. An alias definition has the form:
  4607  	// :projects//secrets/. If multiple alias definitions are needed, they must be
  4608  	// separated by commas. The alias definitions must be set on the
  4609  	// run.googleapis.com/secrets annotation. The name of the secret in the pod's
  4610  	// namespace to select from.
  4611  	Name string `json:"name,omitempty"`
  4612  	// Optional: Specify whether the Secret or its key must be defined.
  4613  	Optional bool `json:"optional,omitempty"`
  4614  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
  4615  	// include in API requests. By default, fields with empty or default values are
  4616  	// omitted from API requests. See
  4617  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4618  	// details.
  4619  	ForceSendFields []string `json:"-"`
  4620  	// NullFields is a list of field names (e.g. "Key") to include in API requests
  4621  	// with the JSON null value. By default, fields with empty values are omitted
  4622  	// from API requests. See
  4623  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4624  	NullFields []string `json:"-"`
  4625  }
  4626  
  4627  func (s *SecretKeySelector) MarshalJSON() ([]byte, error) {
  4628  	type NoMethod SecretKeySelector
  4629  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4630  }
  4631  
  4632  // SecretVolumeSource: A volume representing a secret stored in Google Secret
  4633  // Manager. The secret's value will be presented as the content of a file whose
  4634  // name is defined in the item path. If no items are defined, the name of the
  4635  // file is the secret_name. The contents of the target Secret's Data field will
  4636  // be presented in a volume as files using the keys in the Data field as the
  4637  // file names.
  4638  type SecretVolumeSource struct {
  4639  	// DefaultMode: Integer representation of mode bits to use on created files by
  4640  	// default. Must be a value between 01 and 0777 (octal). If 0 or not set, it
  4641  	// will default to 0444. Directories within the path are not affected by this
  4642  	// setting. Notes * Internally, a umask of 0222 will be applied to any non-zero
  4643  	// value. * This is an integer representation of the mode bits. So, the octal
  4644  	// integer value should look exactly as the chmod numeric notation with a
  4645  	// leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or
  4646  	// 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416
  4647  	// (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493
  4648  	// (base-10). * This might be in conflict with other options that affect the
  4649  	// file mode, like fsGroup, and the result can be other mode bits set.
  4650  	DefaultMode int64 `json:"defaultMode,omitempty"`
  4651  	// Items: A list of secret versions to mount in the volume. If no items are
  4652  	// specified, the volume will expose a file with the same name as the secret
  4653  	// name. The contents of the file will be the data in the latest version of the
  4654  	// secret. If items are specified, the key will be used as the version to fetch
  4655  	// from Cloud Secret Manager and the path will be the name of the file exposed
  4656  	// in the volume. When items are defined, they must specify both a key and a
  4657  	// path.
  4658  	Items []*KeyToPath `json:"items,omitempty"`
  4659  	// Optional: Not supported by Cloud Run.
  4660  	Optional bool `json:"optional,omitempty"`
  4661  	// SecretName: The name of the secret in Cloud Secret Manager. By default, the
  4662  	// secret is assumed to be in the same project. If the secret is in another
  4663  	// project, you must define an alias. An alias definition has the form:
  4664  	// :projects//secrets/. If multiple alias definitions are needed, they must be
  4665  	// separated by commas. The alias definitions must be set on the
  4666  	// run.googleapis.com/secrets annotation. Name of the secret in the container's
  4667  	// namespace to use.
  4668  	SecretName string `json:"secretName,omitempty"`
  4669  	// ForceSendFields is a list of field names (e.g. "DefaultMode") to
  4670  	// unconditionally include in API requests. By default, fields with empty or
  4671  	// default values are omitted from API requests. See
  4672  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4673  	// details.
  4674  	ForceSendFields []string `json:"-"`
  4675  	// NullFields is a list of field names (e.g. "DefaultMode") to include in API
  4676  	// requests with the JSON null value. By default, fields with empty values are
  4677  	// omitted from API requests. See
  4678  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4679  	NullFields []string `json:"-"`
  4680  }
  4681  
  4682  func (s *SecretVolumeSource) MarshalJSON() ([]byte, error) {
  4683  	type NoMethod SecretVolumeSource
  4684  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4685  }
  4686  
  4687  // SecurityContext: Not supported by Cloud Run. SecurityContext holds security
  4688  // configuration that will be applied to a container. Some fields are present
  4689  // in both SecurityContext and PodSecurityContext. When both are set, the
  4690  // values in SecurityContext take precedence.
  4691  type SecurityContext struct {
  4692  	// RunAsUser: The UID to run the entrypoint of the container process. Defaults
  4693  	// to user specified in image metadata if unspecified. May also be set in
  4694  	// PodSecurityContext. If set in both SecurityContext and PodSecurityContext,
  4695  	// the value specified in SecurityContext takes precedence.
  4696  	RunAsUser int64 `json:"runAsUser,omitempty"`
  4697  	// ForceSendFields is a list of field names (e.g. "RunAsUser") to
  4698  	// unconditionally include in API requests. By default, fields with empty or
  4699  	// default values are omitted from API requests. See
  4700  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4701  	// details.
  4702  	ForceSendFields []string `json:"-"`
  4703  	// NullFields is a list of field names (e.g. "RunAsUser") to include in API
  4704  	// requests with the JSON null value. By default, fields with empty values are
  4705  	// omitted from API requests. See
  4706  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4707  	NullFields []string `json:"-"`
  4708  }
  4709  
  4710  func (s *SecurityContext) MarshalJSON() ([]byte, error) {
  4711  	type NoMethod SecurityContext
  4712  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4713  }
  4714  
  4715  // Service: Service acts as a top-level container that manages a set of Routes
  4716  // and Configurations which implement a network service. Service exists to
  4717  // provide a singular abstraction which can be access controlled, reasoned
  4718  // about, and which encapsulates software lifecycle decisions such as rollout
  4719  // policy and team resource ownership. Service acts only as an orchestrator of
  4720  // the underlying Routes and Configurations (much as a kubernetes Deployment
  4721  // orchestrates ReplicaSets). The Service's controller will track the statuses
  4722  // of its owned Configuration and Route, reflecting their statuses and
  4723  // conditions as its own.
  4724  type Service struct {
  4725  	// ApiVersion: The API version for this call. It must be
  4726  	// "serving.knative.dev/v1".
  4727  	ApiVersion string `json:"apiVersion,omitempty"`
  4728  	// Kind: The kind of resource. It must be "Service".
  4729  	Kind string `json:"kind,omitempty"`
  4730  	// Metadata: Metadata associated with this Service, including name, namespace,
  4731  	// labels, and annotations. In Cloud Run, annotations with
  4732  	// 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the
  4733  	// accepted annotations will be different depending on the resource type. The
  4734  	// following Cloud Run-specific annotations are accepted in
  4735  	// Service.metadata.annotations. *
  4736  	// `run.googleapis.com/binary-authorization-breakglass` *
  4737  	// `run.googleapis.com/binary-authorization` * `run.googleapis.com/client-name`
  4738  	// * `run.googleapis.com/custom-audiences` *
  4739  	// `run.googleapis.com/default-url-disabled` * `run.googleapis.com/description`
  4740  	// * `run.googleapis.com/gc-traffic-tags` * `run.googleapis.com/ingress` *
  4741  	// `run.googleapis.com/ingress` sets the ingress settings for the Service. See
  4742  	// the ingress settings documentation (/run/docs/securing/ingress) for details
  4743  	// on configuring ingress settings. * `run.googleapis.com/ingress-status` is
  4744  	// output-only and contains the currently active ingress settings for the
  4745  	// Service. `run.googleapis.com/ingress-status` may differ from
  4746  	// `run.googleapis.com/ingress` while the system is processing a change to
  4747  	// `run.googleapis.com/ingress` or if the system failed to process a change to
  4748  	// `run.googleapis.com/ingress`. When the system has processed all changes
  4749  	// successfully `run.googleapis.com/ingress-status` and
  4750  	// `run.googleapis.com/ingress` are equal.
  4751  	Metadata *ObjectMeta `json:"metadata,omitempty"`
  4752  	// Spec: Holds the desired state of the Service (from the client).
  4753  	Spec *ServiceSpec `json:"spec,omitempty"`
  4754  	// Status: Communicates the system-controlled state of the Service.
  4755  	Status *ServiceStatus `json:"status,omitempty"`
  4756  
  4757  	// ServerResponse contains the HTTP response code and headers from the server.
  4758  	googleapi.ServerResponse `json:"-"`
  4759  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  4760  	// unconditionally include in API requests. By default, fields with empty or
  4761  	// default values are omitted from API requests. See
  4762  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4763  	// details.
  4764  	ForceSendFields []string `json:"-"`
  4765  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  4766  	// requests with the JSON null value. By default, fields with empty values are
  4767  	// omitted from API requests. See
  4768  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4769  	NullFields []string `json:"-"`
  4770  }
  4771  
  4772  func (s *Service) MarshalJSON() ([]byte, error) {
  4773  	type NoMethod Service
  4774  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4775  }
  4776  
  4777  // ServiceSpec: ServiceSpec holds the desired state of the Route (from the
  4778  // client), which is used to manipulate the underlying Route and
  4779  // Configuration(s).
  4780  type ServiceSpec struct {
  4781  	// Template: Holds the latest specification for the Revision to be stamped out.
  4782  	Template *RevisionTemplate `json:"template,omitempty"`
  4783  	// Traffic: Specifies how to distribute traffic over a collection of Knative
  4784  	// Revisions and Configurations to the Service's main URL.
  4785  	Traffic []*TrafficTarget `json:"traffic,omitempty"`
  4786  	// ForceSendFields is a list of field names (e.g. "Template") to
  4787  	// unconditionally include in API requests. By default, fields with empty or
  4788  	// default values are omitted from API requests. See
  4789  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4790  	// details.
  4791  	ForceSendFields []string `json:"-"`
  4792  	// NullFields is a list of field names (e.g. "Template") to include in API
  4793  	// requests with the JSON null value. By default, fields with empty values are
  4794  	// omitted from API requests. See
  4795  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4796  	NullFields []string `json:"-"`
  4797  }
  4798  
  4799  func (s *ServiceSpec) MarshalJSON() ([]byte, error) {
  4800  	type NoMethod ServiceSpec
  4801  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4802  }
  4803  
  4804  // ServiceStatus: The current state of the Service. Output only.
  4805  type ServiceStatus struct {
  4806  	// Address: Similar to url, information on where the service is available on
  4807  	// HTTP.
  4808  	Address *Addressable `json:"address,omitempty"`
  4809  	// Conditions: Conditions communicate information about ongoing/complete
  4810  	// reconciliation processes that bring the `spec` inline with the observed
  4811  	// state of the world. Service-specific conditions include: *
  4812  	// `ConfigurationsReady`: `True` when the underlying Configuration is ready. *
  4813  	// `RoutesReady`: `True` when the underlying Route is ready. * `Ready`: `True`
  4814  	// when all underlying resources are ready.
  4815  	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
  4816  	// LatestCreatedRevisionName: Name of the last revision that was created from
  4817  	// this Service's Configuration. It might not be ready yet, for that use
  4818  	// LatestReadyRevisionName.
  4819  	LatestCreatedRevisionName string `json:"latestCreatedRevisionName,omitempty"`
  4820  	// LatestReadyRevisionName: Name of the latest Revision from this Service's
  4821  	// Configuration that has had its `Ready` condition become `True`.
  4822  	LatestReadyRevisionName string `json:"latestReadyRevisionName,omitempty"`
  4823  	// ObservedGeneration: Returns the generation last seen by the system. Clients
  4824  	// polling for completed reconciliation should poll until observedGeneration =
  4825  	// metadata.generation and the Ready condition's status is True or False.
  4826  	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
  4827  	// Traffic: Holds the configured traffic distribution. These entries will
  4828  	// always contain RevisionName references. When ConfigurationName appears in
  4829  	// the spec, this will hold the LatestReadyRevisionName that we last observed.
  4830  	Traffic []*TrafficTarget `json:"traffic,omitempty"`
  4831  	// Url: URL that will distribute traffic over the provided traffic targets. It
  4832  	// generally has the form
  4833  	// `https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app`
  4834  	Url string `json:"url,omitempty"`
  4835  	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
  4836  	// include in API requests. By default, fields with empty or default values are
  4837  	// omitted from API requests. See
  4838  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4839  	// details.
  4840  	ForceSendFields []string `json:"-"`
  4841  	// NullFields is a list of field names (e.g. "Address") to include in API
  4842  	// requests with the JSON null value. By default, fields with empty values are
  4843  	// omitted from API requests. See
  4844  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4845  	NullFields []string `json:"-"`
  4846  }
  4847  
  4848  func (s *ServiceStatus) MarshalJSON() ([]byte, error) {
  4849  	type NoMethod ServiceStatus
  4850  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4851  }
  4852  
  4853  // SetIamPolicyRequest: Request message for `SetIamPolicy` method.
  4854  type SetIamPolicyRequest struct {
  4855  	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
  4856  	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
  4857  	// policy but certain Google Cloud services (such as Projects) might reject
  4858  	// them.
  4859  	Policy *Policy `json:"policy,omitempty"`
  4860  	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to
  4861  	// modify. Only the fields in the mask will be modified. If no mask is
  4862  	// provided, the following default mask is used: `paths: "bindings, etag"
  4863  	UpdateMask string `json:"updateMask,omitempty"`
  4864  	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
  4865  	// include in API requests. By default, fields with empty or default values are
  4866  	// omitted from API requests. See
  4867  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4868  	// details.
  4869  	ForceSendFields []string `json:"-"`
  4870  	// NullFields is a list of field names (e.g. "Policy") to include in API
  4871  	// requests with the JSON null value. By default, fields with empty values are
  4872  	// omitted from API requests. See
  4873  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4874  	NullFields []string `json:"-"`
  4875  }
  4876  
  4877  func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  4878  	type NoMethod SetIamPolicyRequest
  4879  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4880  }
  4881  
  4882  // Status: Status is a return value for calls that don't return other objects.
  4883  type Status struct {
  4884  	// Code: Suggested HTTP return code for this status, 0 if not set.
  4885  	Code int64 `json:"code,omitempty"`
  4886  	// Details: Extended data associated with the reason. Each reason may define
  4887  	// its own extended details. This field is optional and the data returned is
  4888  	// not guaranteed to conform to any schema except that defined by the reason
  4889  	// type.
  4890  	Details *StatusDetails `json:"details,omitempty"`
  4891  	// Message: A human-readable description of the status of this operation.
  4892  	Message string `json:"message,omitempty"`
  4893  	// Metadata: Standard list metadata.
  4894  	Metadata *ListMeta `json:"metadata,omitempty"`
  4895  	// Reason: A machine-readable description of why this operation is in the
  4896  	// "Failure" status. If this value is empty there is no information available.
  4897  	// A Reason clarifies an HTTP status code but does not override it.
  4898  	Reason string `json:"reason,omitempty"`
  4899  	// Status: Status of the operation. One of: "Success" or "Failure".
  4900  	Status string `json:"status,omitempty"`
  4901  
  4902  	// ServerResponse contains the HTTP response code and headers from the server.
  4903  	googleapi.ServerResponse `json:"-"`
  4904  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  4905  	// include in API requests. By default, fields with empty or default values are
  4906  	// omitted from API requests. See
  4907  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4908  	// details.
  4909  	ForceSendFields []string `json:"-"`
  4910  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  4911  	// with the JSON null value. By default, fields with empty values are omitted
  4912  	// from API requests. See
  4913  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4914  	NullFields []string `json:"-"`
  4915  }
  4916  
  4917  func (s *Status) MarshalJSON() ([]byte, error) {
  4918  	type NoMethod Status
  4919  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4920  }
  4921  
  4922  // StatusCause: StatusCause provides more information about an api.Status
  4923  // failure, including cases when multiple errors are encountered.
  4924  type StatusCause struct {
  4925  	// Field: The field of the resource that has caused this error, as named by its
  4926  	// JSON serialization. May include dot and postfix notation for nested
  4927  	// attributes. Arrays are zero-indexed. Fields may appear more than once in an
  4928  	// array of causes due to fields having multiple errors. Examples: "name" - the
  4929  	// field "name" on the current resource "items[0].name" - the field "name" on
  4930  	// the first array entry in "items"
  4931  	Field string `json:"field,omitempty"`
  4932  	// Message: A human-readable description of the cause of the error. This field
  4933  	// may be presented as-is to a reader.
  4934  	Message string `json:"message,omitempty"`
  4935  	// Reason: A machine-readable description of the cause of the error. If this
  4936  	// value is empty there is no information available.
  4937  	Reason string `json:"reason,omitempty"`
  4938  	// ForceSendFields is a list of field names (e.g. "Field") to unconditionally
  4939  	// include in API requests. By default, fields with empty or default values are
  4940  	// omitted from API requests. See
  4941  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4942  	// details.
  4943  	ForceSendFields []string `json:"-"`
  4944  	// NullFields is a list of field names (e.g. "Field") to include in API
  4945  	// requests with the JSON null value. By default, fields with empty values are
  4946  	// omitted from API requests. See
  4947  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4948  	NullFields []string `json:"-"`
  4949  }
  4950  
  4951  func (s *StatusCause) MarshalJSON() ([]byte, error) {
  4952  	type NoMethod StatusCause
  4953  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4954  }
  4955  
  4956  // StatusDetails: StatusDetails is a set of additional properties that MAY be
  4957  // set by the server to provide additional information about a response. The
  4958  // Reason field of a Status object defines what attributes will be set. Clients
  4959  // must ignore fields that do not match the defined type of each attribute, and
  4960  // should assume that any attribute may be empty, invalid, or under defined.
  4961  type StatusDetails struct {
  4962  	// Causes: The Causes array includes more details associated with the
  4963  	// StatusReason failure. Not all StatusReasons may provide detailed causes.
  4964  	Causes []*StatusCause `json:"causes,omitempty"`
  4965  	// Group: The group attribute of the resource associated with the status
  4966  	// StatusReason.
  4967  	Group string `json:"group,omitempty"`
  4968  	// Kind: The kind attribute of the resource associated with the status
  4969  	// StatusReason. On some operations may differ from the requested resource
  4970  	// Kind.
  4971  	Kind string `json:"kind,omitempty"`
  4972  	// Name: The name attribute of the resource associated with the status
  4973  	// StatusReason (when there is a single name which can be described).
  4974  	Name string `json:"name,omitempty"`
  4975  	// RetryAfterSeconds: If specified, the time in seconds before the operation
  4976  	// should be retried. Some errors may indicate the client must take an
  4977  	// alternate action - for those errors this field may indicate how long to wait
  4978  	// before taking the alternate action.
  4979  	RetryAfterSeconds int64 `json:"retryAfterSeconds,omitempty"`
  4980  	// Uid: UID of the resource. (when there is a single resource which can be
  4981  	// described).
  4982  	Uid string `json:"uid,omitempty"`
  4983  	// ForceSendFields is a list of field names (e.g. "Causes") to unconditionally
  4984  	// include in API requests. By default, fields with empty or default values are
  4985  	// omitted from API requests. See
  4986  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4987  	// details.
  4988  	ForceSendFields []string `json:"-"`
  4989  	// NullFields is a list of field names (e.g. "Causes") to include in API
  4990  	// requests with the JSON null value. By default, fields with empty values are
  4991  	// omitted from API requests. See
  4992  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4993  	NullFields []string `json:"-"`
  4994  }
  4995  
  4996  func (s *StatusDetails) MarshalJSON() ([]byte, error) {
  4997  	type NoMethod StatusDetails
  4998  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4999  }
  5000  
  5001  // TCPSocketAction: TCPSocketAction describes an action based on opening a
  5002  // socket
  5003  type TCPSocketAction struct {
  5004  	// Host: Not supported by Cloud Run.
  5005  	Host string `json:"host,omitempty"`
  5006  	// Port: Port number to access on the container. Number must be in the range 1
  5007  	// to 65535.
  5008  	Port int64 `json:"port,omitempty"`
  5009  	// ForceSendFields is a list of field names (e.g. "Host") to unconditionally
  5010  	// include in API requests. By default, fields with empty or default values are
  5011  	// omitted from API requests. See
  5012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5013  	// details.
  5014  	ForceSendFields []string `json:"-"`
  5015  	// NullFields is a list of field names (e.g. "Host") to include in API requests
  5016  	// with the JSON null value. By default, fields with empty values are omitted
  5017  	// from API requests. See
  5018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5019  	NullFields []string `json:"-"`
  5020  }
  5021  
  5022  func (s *TCPSocketAction) MarshalJSON() ([]byte, error) {
  5023  	type NoMethod TCPSocketAction
  5024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5025  }
  5026  
  5027  // Task: Task represents a single run of a container to completion.
  5028  type Task struct {
  5029  	// ApiVersion: Optional. APIVersion defines the versioned schema of this
  5030  	// representation of an object. Servers should convert recognized schemas to
  5031  	// the latest internal value, and may reject unrecognized values.
  5032  	ApiVersion string `json:"apiVersion,omitempty"`
  5033  	// Kind: Optional. Kind is a string value representing the REST resource this
  5034  	// object represents. Servers may infer this from the endpoint the client
  5035  	// submits requests to. Cannot be updated. In CamelCase.
  5036  	Kind string `json:"kind,omitempty"`
  5037  	// Metadata: Optional. Standard object's metadata.
  5038  	Metadata *ObjectMeta `json:"metadata,omitempty"`
  5039  	// Spec: Optional. Specification of the desired behavior of a task.
  5040  	Spec *TaskSpec `json:"spec,omitempty"`
  5041  	// Status: Output only. Current status of a task.
  5042  	Status *TaskStatus `json:"status,omitempty"`
  5043  
  5044  	// ServerResponse contains the HTTP response code and headers from the server.
  5045  	googleapi.ServerResponse `json:"-"`
  5046  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  5047  	// unconditionally include in API requests. By default, fields with empty or
  5048  	// default values are omitted from API requests. See
  5049  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5050  	// details.
  5051  	ForceSendFields []string `json:"-"`
  5052  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  5053  	// requests with the JSON null value. By default, fields with empty values are
  5054  	// omitted from API requests. See
  5055  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5056  	NullFields []string `json:"-"`
  5057  }
  5058  
  5059  func (s *Task) MarshalJSON() ([]byte, error) {
  5060  	type NoMethod Task
  5061  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5062  }
  5063  
  5064  // TaskAttemptResult: Result of a task attempt.
  5065  type TaskAttemptResult struct {
  5066  	// ExitCode: Optional. The exit code of this attempt. This may be unset if the
  5067  	// container was unable to exit cleanly with a code due to some other failure.
  5068  	// See status field for possible failure details.
  5069  	ExitCode int64 `json:"exitCode,omitempty"`
  5070  	// Status: Optional. The status of this attempt. If the status code is OK, then
  5071  	// the attempt succeeded.
  5072  	Status *GoogleRpcStatus `json:"status,omitempty"`
  5073  	// ForceSendFields is a list of field names (e.g. "ExitCode") to
  5074  	// unconditionally include in API requests. By default, fields with empty or
  5075  	// default values are omitted from API requests. See
  5076  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5077  	// details.
  5078  	ForceSendFields []string `json:"-"`
  5079  	// NullFields is a list of field names (e.g. "ExitCode") to include in API
  5080  	// requests with the JSON null value. By default, fields with empty values are
  5081  	// omitted from API requests. See
  5082  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5083  	NullFields []string `json:"-"`
  5084  }
  5085  
  5086  func (s *TaskAttemptResult) MarshalJSON() ([]byte, error) {
  5087  	type NoMethod TaskAttemptResult
  5088  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5089  }
  5090  
  5091  // TaskSpec: TaskSpec is a description of a task.
  5092  type TaskSpec struct {
  5093  	// Containers: Optional. List of containers belonging to the task. We disallow
  5094  	// a number of fields on this Container.
  5095  	Containers []*Container `json:"containers,omitempty"`
  5096  	// MaxRetries: Optional. Number of retries allowed per task, before marking
  5097  	// this job failed. Defaults to 3.
  5098  	MaxRetries int64 `json:"maxRetries,omitempty"`
  5099  	// ServiceAccountName: Optional. Email address of the IAM service account
  5100  	// associated with the task of a job execution. The service account represents
  5101  	// the identity of the running task, and determines what permissions the task
  5102  	// has. If not provided, the task will use the project's default service
  5103  	// account.
  5104  	ServiceAccountName string `json:"serviceAccountName,omitempty"`
  5105  	// TimeoutSeconds: Optional. Duration in seconds the task may be active before
  5106  	// the system will actively try to mark it failed and kill associated
  5107  	// containers. This applies per attempt of a task, meaning each retry can run
  5108  	// for the full timeout. Defaults to 600 seconds.
  5109  	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty,string"`
  5110  	// Volumes: Optional. List of volumes that can be mounted by containers
  5111  	// belonging to the task.
  5112  	Volumes []*Volume `json:"volumes,omitempty"`
  5113  	// ForceSendFields is a list of field names (e.g. "Containers") to
  5114  	// unconditionally include in API requests. By default, fields with empty or
  5115  	// default values are omitted from API requests. See
  5116  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5117  	// details.
  5118  	ForceSendFields []string `json:"-"`
  5119  	// NullFields is a list of field names (e.g. "Containers") to include in API
  5120  	// requests with the JSON null value. By default, fields with empty values are
  5121  	// omitted from API requests. See
  5122  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5123  	NullFields []string `json:"-"`
  5124  }
  5125  
  5126  func (s *TaskSpec) MarshalJSON() ([]byte, error) {
  5127  	type NoMethod TaskSpec
  5128  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5129  }
  5130  
  5131  // TaskStatus: TaskStatus represents the status of a task.
  5132  type TaskStatus struct {
  5133  	// CompletionTime: Optional. Represents time when the task was completed. It is
  5134  	// not guaranteed to be set in happens-before order across separate operations.
  5135  	// It is represented in RFC3339 form and is in UTC.
  5136  	CompletionTime string `json:"completionTime,omitempty"`
  5137  	// Conditions: Optional. Conditions communicate information about
  5138  	// ongoing/complete reconciliation processes that bring the "spec" inline with
  5139  	// the observed state of the world. Task-specific conditions include: *
  5140  	// `Started`: `True` when the task has started to execute. * `Completed`:
  5141  	// `True` when the task has succeeded. `False` when the task has failed.
  5142  	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
  5143  	// Index: Required. Index of the task, unique per execution, and beginning at
  5144  	// 0.
  5145  	Index int64 `json:"index,omitempty"`
  5146  	// LastAttemptResult: Optional. Result of the last attempt of this task.
  5147  	LastAttemptResult *TaskAttemptResult `json:"lastAttemptResult,omitempty"`
  5148  	// LogUri: Optional. URI where logs for this task can be found in Cloud
  5149  	// Console.
  5150  	LogUri string `json:"logUri,omitempty"`
  5151  	// ObservedGeneration: Optional. The 'generation' of the task that was last
  5152  	// processed by the controller.
  5153  	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
  5154  	// Retried: Optional. The number of times this task was retried. Instances are
  5155  	// retried when they fail up to the maxRetries limit.
  5156  	Retried int64 `json:"retried,omitempty"`
  5157  	// StartTime: Optional. Represents time when the task started to run. It is not
  5158  	// guaranteed to be set in happens-before order across separate operations. It
  5159  	// is represented in RFC3339 form and is in UTC.
  5160  	StartTime string `json:"startTime,omitempty"`
  5161  	// ForceSendFields is a list of field names (e.g. "CompletionTime") to
  5162  	// unconditionally include in API requests. By default, fields with empty or
  5163  	// default values are omitted from API requests. See
  5164  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5165  	// details.
  5166  	ForceSendFields []string `json:"-"`
  5167  	// NullFields is a list of field names (e.g. "CompletionTime") to include in
  5168  	// API requests with the JSON null value. By default, fields with empty values
  5169  	// are omitted from API requests. See
  5170  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5171  	NullFields []string `json:"-"`
  5172  }
  5173  
  5174  func (s *TaskStatus) MarshalJSON() ([]byte, error) {
  5175  	type NoMethod TaskStatus
  5176  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5177  }
  5178  
  5179  // TaskTemplateSpec: TaskTemplateSpec describes the data a task should have
  5180  // when created from a template.
  5181  type TaskTemplateSpec struct {
  5182  	// Spec: Optional. Specification of the desired behavior of the task.
  5183  	Spec *TaskSpec `json:"spec,omitempty"`
  5184  	// ForceSendFields is a list of field names (e.g. "Spec") to unconditionally
  5185  	// include in API requests. By default, fields with empty or default values are
  5186  	// omitted from API requests. See
  5187  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5188  	// details.
  5189  	ForceSendFields []string `json:"-"`
  5190  	// NullFields is a list of field names (e.g. "Spec") to include in API requests
  5191  	// with the JSON null value. By default, fields with empty values are omitted
  5192  	// from API requests. See
  5193  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5194  	NullFields []string `json:"-"`
  5195  }
  5196  
  5197  func (s *TaskTemplateSpec) MarshalJSON() ([]byte, error) {
  5198  	type NoMethod TaskTemplateSpec
  5199  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5200  }
  5201  
  5202  // TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
  5203  type TestIamPermissionsRequest struct {
  5204  	// Permissions: The set of permissions to check for the `resource`. Permissions
  5205  	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
  5206  	// information see IAM Overview
  5207  	// (https://cloud.google.com/iam/docs/overview#permissions).
  5208  	Permissions []string `json:"permissions,omitempty"`
  5209  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  5210  	// unconditionally include in API requests. By default, fields with empty or
  5211  	// default values are omitted from API requests. See
  5212  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5213  	// details.
  5214  	ForceSendFields []string `json:"-"`
  5215  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  5216  	// requests with the JSON null value. By default, fields with empty values are
  5217  	// omitted from API requests. See
  5218  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5219  	NullFields []string `json:"-"`
  5220  }
  5221  
  5222  func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
  5223  	type NoMethod TestIamPermissionsRequest
  5224  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5225  }
  5226  
  5227  // TestIamPermissionsResponse: Response message for `TestIamPermissions`
  5228  // method.
  5229  type TestIamPermissionsResponse struct {
  5230  	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
  5231  	// caller is allowed.
  5232  	Permissions []string `json:"permissions,omitempty"`
  5233  
  5234  	// ServerResponse contains the HTTP response code and headers from the server.
  5235  	googleapi.ServerResponse `json:"-"`
  5236  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  5237  	// unconditionally include in API requests. By default, fields with empty or
  5238  	// default values are omitted from API requests. See
  5239  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5240  	// details.
  5241  	ForceSendFields []string `json:"-"`
  5242  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  5243  	// requests with the JSON null value. By default, fields with empty values are
  5244  	// omitted from API requests. See
  5245  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5246  	NullFields []string `json:"-"`
  5247  }
  5248  
  5249  func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
  5250  	type NoMethod TestIamPermissionsResponse
  5251  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5252  }
  5253  
  5254  // TrafficTarget: TrafficTarget holds a single entry of the routing table for a
  5255  // Route.
  5256  type TrafficTarget struct {
  5257  	// ConfigurationName: [Deprecated] Not supported in Cloud Run. It must be
  5258  	// empty.
  5259  	ConfigurationName string `json:"configurationName,omitempty"`
  5260  	// LatestRevision: Uses the "status.latestReadyRevisionName" of the Service to
  5261  	// determine the traffic target. When it changes, traffic will automatically
  5262  	// migrate from the prior "latest ready" revision to the new one. This field
  5263  	// must be false if RevisionName is set. This field defaults to true otherwise.
  5264  	// If the field is set to true on Status, this means that the Revision was
  5265  	// resolved from the Service's latest ready revision.
  5266  	LatestRevision bool `json:"latestRevision,omitempty"`
  5267  	// Percent: Percent specifies percent of the traffic to this Revision or
  5268  	// Configuration. This defaults to zero if unspecified.
  5269  	Percent int64 `json:"percent,omitempty"`
  5270  	// RevisionName: Points this traffic target to a specific Revision. This field
  5271  	// is mutually exclusive with latest_revision.
  5272  	RevisionName string `json:"revisionName,omitempty"`
  5273  	// Tag: Tag is used to expose a dedicated url for referencing this target
  5274  	// exclusively.
  5275  	Tag string `json:"tag,omitempty"`
  5276  	// Url: Output only. URL displays the URL for accessing tagged traffic targets.
  5277  	// URL is displayed in status, and is disallowed on spec. URL must contain a
  5278  	// scheme (e.g. https://) and a hostname, but may not contain anything else
  5279  	// (e.g. basic auth, url path, etc.)
  5280  	Url string `json:"url,omitempty"`
  5281  	// ForceSendFields is a list of field names (e.g. "ConfigurationName") to
  5282  	// unconditionally include in API requests. By default, fields with empty or
  5283  	// default values are omitted from API requests. See
  5284  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5285  	// details.
  5286  	ForceSendFields []string `json:"-"`
  5287  	// NullFields is a list of field names (e.g. "ConfigurationName") to include in
  5288  	// API requests with the JSON null value. By default, fields with empty values
  5289  	// are omitted from API requests. See
  5290  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5291  	NullFields []string `json:"-"`
  5292  }
  5293  
  5294  func (s *TrafficTarget) MarshalJSON() ([]byte, error) {
  5295  	type NoMethod TrafficTarget
  5296  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5297  }
  5298  
  5299  // Volume: Volume represents a named volume in a container.
  5300  type Volume struct {
  5301  	// ConfigMap: Not supported in Cloud Run.
  5302  	ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"`
  5303  	// Csi: Volume specified by the Container Storage Interface driver
  5304  	Csi *CSIVolumeSource `json:"csi,omitempty"`
  5305  	// EmptyDir: Ephemeral storage used as a shared volume.
  5306  	EmptyDir *EmptyDirVolumeSource `json:"emptyDir,omitempty"`
  5307  	// Name: Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' is
  5308  	// reserved.
  5309  	Name string           `json:"name,omitempty"`
  5310  	Nfs  *NFSVolumeSource `json:"nfs,omitempty"`
  5311  	// Secret: The secret's value will be presented as the content of a file whose
  5312  	// name is defined in the item path. If no items are defined, the name of the
  5313  	// file is the secretName.
  5314  	Secret *SecretVolumeSource `json:"secret,omitempty"`
  5315  	// ForceSendFields is a list of field names (e.g. "ConfigMap") to
  5316  	// unconditionally include in API requests. By default, fields with empty or
  5317  	// default values are omitted from API requests. See
  5318  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5319  	// details.
  5320  	ForceSendFields []string `json:"-"`
  5321  	// NullFields is a list of field names (e.g. "ConfigMap") to include in API
  5322  	// requests with the JSON null value. By default, fields with empty values are
  5323  	// omitted from API requests. See
  5324  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5325  	NullFields []string `json:"-"`
  5326  }
  5327  
  5328  func (s *Volume) MarshalJSON() ([]byte, error) {
  5329  	type NoMethod Volume
  5330  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5331  }
  5332  
  5333  // VolumeMount: VolumeMount describes a mounting of a Volume within a
  5334  // container.
  5335  type VolumeMount struct {
  5336  	// MountPath: Required. Path within the container at which the volume should be
  5337  	// mounted. Must not contain ':'.
  5338  	MountPath string `json:"mountPath,omitempty"`
  5339  	// Name: Required. The name of the volume. There must be a corresponding Volume
  5340  	// with the same name.
  5341  	Name string `json:"name,omitempty"`
  5342  	// ReadOnly: Sets the mount to be read-only or read-write. Not used by Cloud
  5343  	// Run.
  5344  	ReadOnly bool `json:"readOnly,omitempty"`
  5345  	// SubPath: Path within the volume from which the container's volume should be
  5346  	// mounted. Defaults to "" (volume's root).
  5347  	SubPath string `json:"subPath,omitempty"`
  5348  	// ForceSendFields is a list of field names (e.g. "MountPath") to
  5349  	// unconditionally include in API requests. By default, fields with empty or
  5350  	// default values are omitted from API requests. See
  5351  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5352  	// details.
  5353  	ForceSendFields []string `json:"-"`
  5354  	// NullFields is a list of field names (e.g. "MountPath") to include in API
  5355  	// requests with the JSON null value. By default, fields with empty values are
  5356  	// omitted from API requests. See
  5357  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5358  	NullFields []string `json:"-"`
  5359  }
  5360  
  5361  func (s *VolumeMount) MarshalJSON() ([]byte, error) {
  5362  	type NoMethod VolumeMount
  5363  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5364  }
  5365  
  5366  type NamespacesAuthorizeddomainsListCall struct {
  5367  	s            *APIService
  5368  	parent       string
  5369  	urlParams_   gensupport.URLParams
  5370  	ifNoneMatch_ string
  5371  	ctx_         context.Context
  5372  	header_      http.Header
  5373  }
  5374  
  5375  // List: List authorized domains.
  5376  //
  5377  //   - parent: Name of the parent Project resource. Example:
  5378  //     `projects/myproject`.
  5379  func (r *NamespacesAuthorizeddomainsService) List(parent string) *NamespacesAuthorizeddomainsListCall {
  5380  	c := &NamespacesAuthorizeddomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5381  	c.parent = parent
  5382  	return c
  5383  }
  5384  
  5385  // PageSize sets the optional parameter "pageSize": Maximum results to return
  5386  // per page.
  5387  func (c *NamespacesAuthorizeddomainsListCall) PageSize(pageSize int64) *NamespacesAuthorizeddomainsListCall {
  5388  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5389  	return c
  5390  }
  5391  
  5392  // PageToken sets the optional parameter "pageToken": Continuation token for
  5393  // fetching the next page of results.
  5394  func (c *NamespacesAuthorizeddomainsListCall) PageToken(pageToken string) *NamespacesAuthorizeddomainsListCall {
  5395  	c.urlParams_.Set("pageToken", pageToken)
  5396  	return c
  5397  }
  5398  
  5399  // Fields allows partial responses to be retrieved. See
  5400  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5401  // details.
  5402  func (c *NamespacesAuthorizeddomainsListCall) Fields(s ...googleapi.Field) *NamespacesAuthorizeddomainsListCall {
  5403  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5404  	return c
  5405  }
  5406  
  5407  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5408  // object's ETag matches the given value. This is useful for getting updates
  5409  // only after the object has changed since the last request.
  5410  func (c *NamespacesAuthorizeddomainsListCall) IfNoneMatch(entityTag string) *NamespacesAuthorizeddomainsListCall {
  5411  	c.ifNoneMatch_ = entityTag
  5412  	return c
  5413  }
  5414  
  5415  // Context sets the context to be used in this call's Do method.
  5416  func (c *NamespacesAuthorizeddomainsListCall) Context(ctx context.Context) *NamespacesAuthorizeddomainsListCall {
  5417  	c.ctx_ = ctx
  5418  	return c
  5419  }
  5420  
  5421  // Header returns a http.Header that can be modified by the caller to add
  5422  // headers to the request.
  5423  func (c *NamespacesAuthorizeddomainsListCall) Header() http.Header {
  5424  	if c.header_ == nil {
  5425  		c.header_ = make(http.Header)
  5426  	}
  5427  	return c.header_
  5428  }
  5429  
  5430  func (c *NamespacesAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) {
  5431  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5432  	if c.ifNoneMatch_ != "" {
  5433  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5434  	}
  5435  	var body io.Reader = nil
  5436  	c.urlParams_.Set("alt", alt)
  5437  	c.urlParams_.Set("prettyPrint", "false")
  5438  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains")
  5439  	urls += "?" + c.urlParams_.Encode()
  5440  	req, err := http.NewRequest("GET", urls, body)
  5441  	if err != nil {
  5442  		return nil, err
  5443  	}
  5444  	req.Header = reqHeaders
  5445  	googleapi.Expand(req.URL, map[string]string{
  5446  		"parent": c.parent,
  5447  	})
  5448  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5449  }
  5450  
  5451  // Do executes the "run.namespaces.authorizeddomains.list" call.
  5452  // Any non-2xx status code is an error. Response headers are in either
  5453  // *ListAuthorizedDomainsResponse.ServerResponse.Header or (if a response was
  5454  // returned at all) in error.(*googleapi.Error).Header. Use
  5455  // googleapi.IsNotModified to check whether the returned error was because
  5456  // http.StatusNotModified was returned.
  5457  func (c *NamespacesAuthorizeddomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
  5458  	gensupport.SetOptions(c.urlParams_, opts...)
  5459  	res, err := c.doRequest("json")
  5460  	if res != nil && res.StatusCode == http.StatusNotModified {
  5461  		if res.Body != nil {
  5462  			res.Body.Close()
  5463  		}
  5464  		return nil, gensupport.WrapError(&googleapi.Error{
  5465  			Code:   res.StatusCode,
  5466  			Header: res.Header,
  5467  		})
  5468  	}
  5469  	if err != nil {
  5470  		return nil, err
  5471  	}
  5472  	defer googleapi.CloseBody(res)
  5473  	if err := googleapi.CheckResponse(res); err != nil {
  5474  		return nil, gensupport.WrapError(err)
  5475  	}
  5476  	ret := &ListAuthorizedDomainsResponse{
  5477  		ServerResponse: googleapi.ServerResponse{
  5478  			Header:         res.Header,
  5479  			HTTPStatusCode: res.StatusCode,
  5480  		},
  5481  	}
  5482  	target := &ret
  5483  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5484  		return nil, err
  5485  	}
  5486  	return ret, nil
  5487  }
  5488  
  5489  // Pages invokes f for each page of results.
  5490  // A non-nil error returned from f will halt the iteration.
  5491  // The provided context supersedes any context provided to the Context method.
  5492  func (c *NamespacesAuthorizeddomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
  5493  	c.ctx_ = ctx
  5494  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5495  	for {
  5496  		x, err := c.Do()
  5497  		if err != nil {
  5498  			return err
  5499  		}
  5500  		if err := f(x); err != nil {
  5501  			return err
  5502  		}
  5503  		if x.NextPageToken == "" {
  5504  			return nil
  5505  		}
  5506  		c.PageToken(x.NextPageToken)
  5507  	}
  5508  }
  5509  
  5510  type NamespacesConfigurationsGetCall struct {
  5511  	s            *APIService
  5512  	name         string
  5513  	urlParams_   gensupport.URLParams
  5514  	ifNoneMatch_ string
  5515  	ctx_         context.Context
  5516  	header_      http.Header
  5517  }
  5518  
  5519  // Get: Get information about a configuration.
  5520  //
  5521  //   - name: The name of the configuration to retrieve. For Cloud Run, replace
  5522  //     {namespace_id} with the project ID or number.
  5523  func (r *NamespacesConfigurationsService) Get(name string) *NamespacesConfigurationsGetCall {
  5524  	c := &NamespacesConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5525  	c.name = name
  5526  	return c
  5527  }
  5528  
  5529  // Fields allows partial responses to be retrieved. See
  5530  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5531  // details.
  5532  func (c *NamespacesConfigurationsGetCall) Fields(s ...googleapi.Field) *NamespacesConfigurationsGetCall {
  5533  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5534  	return c
  5535  }
  5536  
  5537  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5538  // object's ETag matches the given value. This is useful for getting updates
  5539  // only after the object has changed since the last request.
  5540  func (c *NamespacesConfigurationsGetCall) IfNoneMatch(entityTag string) *NamespacesConfigurationsGetCall {
  5541  	c.ifNoneMatch_ = entityTag
  5542  	return c
  5543  }
  5544  
  5545  // Context sets the context to be used in this call's Do method.
  5546  func (c *NamespacesConfigurationsGetCall) Context(ctx context.Context) *NamespacesConfigurationsGetCall {
  5547  	c.ctx_ = ctx
  5548  	return c
  5549  }
  5550  
  5551  // Header returns a http.Header that can be modified by the caller to add
  5552  // headers to the request.
  5553  func (c *NamespacesConfigurationsGetCall) Header() http.Header {
  5554  	if c.header_ == nil {
  5555  		c.header_ = make(http.Header)
  5556  	}
  5557  	return c.header_
  5558  }
  5559  
  5560  func (c *NamespacesConfigurationsGetCall) doRequest(alt string) (*http.Response, error) {
  5561  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5562  	if c.ifNoneMatch_ != "" {
  5563  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5564  	}
  5565  	var body io.Reader = nil
  5566  	c.urlParams_.Set("alt", alt)
  5567  	c.urlParams_.Set("prettyPrint", "false")
  5568  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
  5569  	urls += "?" + c.urlParams_.Encode()
  5570  	req, err := http.NewRequest("GET", urls, body)
  5571  	if err != nil {
  5572  		return nil, err
  5573  	}
  5574  	req.Header = reqHeaders
  5575  	googleapi.Expand(req.URL, map[string]string{
  5576  		"name": c.name,
  5577  	})
  5578  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5579  }
  5580  
  5581  // Do executes the "run.namespaces.configurations.get" call.
  5582  // Any non-2xx status code is an error. Response headers are in either
  5583  // *Configuration.ServerResponse.Header or (if a response was returned at all)
  5584  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5585  // whether the returned error was because http.StatusNotModified was returned.
  5586  func (c *NamespacesConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Configuration, error) {
  5587  	gensupport.SetOptions(c.urlParams_, opts...)
  5588  	res, err := c.doRequest("json")
  5589  	if res != nil && res.StatusCode == http.StatusNotModified {
  5590  		if res.Body != nil {
  5591  			res.Body.Close()
  5592  		}
  5593  		return nil, gensupport.WrapError(&googleapi.Error{
  5594  			Code:   res.StatusCode,
  5595  			Header: res.Header,
  5596  		})
  5597  	}
  5598  	if err != nil {
  5599  		return nil, err
  5600  	}
  5601  	defer googleapi.CloseBody(res)
  5602  	if err := googleapi.CheckResponse(res); err != nil {
  5603  		return nil, gensupport.WrapError(err)
  5604  	}
  5605  	ret := &Configuration{
  5606  		ServerResponse: googleapi.ServerResponse{
  5607  			Header:         res.Header,
  5608  			HTTPStatusCode: res.StatusCode,
  5609  		},
  5610  	}
  5611  	target := &ret
  5612  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5613  		return nil, err
  5614  	}
  5615  	return ret, nil
  5616  }
  5617  
  5618  type NamespacesConfigurationsListCall struct {
  5619  	s            *APIService
  5620  	parent       string
  5621  	urlParams_   gensupport.URLParams
  5622  	ifNoneMatch_ string
  5623  	ctx_         context.Context
  5624  	header_      http.Header
  5625  }
  5626  
  5627  // List: List configurations.
  5628  //
  5629  //   - parent: The namespace from which the configurations should be listed. For
  5630  //     Cloud Run, replace {namespace_id} with the project ID or number.
  5631  func (r *NamespacesConfigurationsService) List(parent string) *NamespacesConfigurationsListCall {
  5632  	c := &NamespacesConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5633  	c.parent = parent
  5634  	return c
  5635  }
  5636  
  5637  // Continue sets the optional parameter "continue": Encoded string to continue
  5638  // paging.
  5639  func (c *NamespacesConfigurationsListCall) Continue(continue_ string) *NamespacesConfigurationsListCall {
  5640  	c.urlParams_.Set("continue", continue_)
  5641  	return c
  5642  }
  5643  
  5644  // FieldSelector sets the optional parameter "fieldSelector": Not supported by
  5645  // Cloud Run.
  5646  func (c *NamespacesConfigurationsListCall) FieldSelector(fieldSelector string) *NamespacesConfigurationsListCall {
  5647  	c.urlParams_.Set("fieldSelector", fieldSelector)
  5648  	return c
  5649  }
  5650  
  5651  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
  5652  // supported by Cloud Run.
  5653  func (c *NamespacesConfigurationsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesConfigurationsListCall {
  5654  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
  5655  	return c
  5656  }
  5657  
  5658  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
  5659  // resources based on a label. Supported operations are =, !=, exists, in, and
  5660  // notIn.
  5661  func (c *NamespacesConfigurationsListCall) LabelSelector(labelSelector string) *NamespacesConfigurationsListCall {
  5662  	c.urlParams_.Set("labelSelector", labelSelector)
  5663  	return c
  5664  }
  5665  
  5666  // Limit sets the optional parameter "limit": The maximum number of the records
  5667  // that should be returned.
  5668  func (c *NamespacesConfigurationsListCall) Limit(limit int64) *NamespacesConfigurationsListCall {
  5669  	c.urlParams_.Set("limit", fmt.Sprint(limit))
  5670  	return c
  5671  }
  5672  
  5673  // ResourceVersion sets the optional parameter "resourceVersion": Not supported
  5674  // by Cloud Run.
  5675  func (c *NamespacesConfigurationsListCall) ResourceVersion(resourceVersion string) *NamespacesConfigurationsListCall {
  5676  	c.urlParams_.Set("resourceVersion", resourceVersion)
  5677  	return c
  5678  }
  5679  
  5680  // Watch sets the optional parameter "watch": Not supported by Cloud Run.
  5681  func (c *NamespacesConfigurationsListCall) Watch(watch bool) *NamespacesConfigurationsListCall {
  5682  	c.urlParams_.Set("watch", fmt.Sprint(watch))
  5683  	return c
  5684  }
  5685  
  5686  // Fields allows partial responses to be retrieved. See
  5687  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5688  // details.
  5689  func (c *NamespacesConfigurationsListCall) Fields(s ...googleapi.Field) *NamespacesConfigurationsListCall {
  5690  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5691  	return c
  5692  }
  5693  
  5694  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5695  // object's ETag matches the given value. This is useful for getting updates
  5696  // only after the object has changed since the last request.
  5697  func (c *NamespacesConfigurationsListCall) IfNoneMatch(entityTag string) *NamespacesConfigurationsListCall {
  5698  	c.ifNoneMatch_ = entityTag
  5699  	return c
  5700  }
  5701  
  5702  // Context sets the context to be used in this call's Do method.
  5703  func (c *NamespacesConfigurationsListCall) Context(ctx context.Context) *NamespacesConfigurationsListCall {
  5704  	c.ctx_ = ctx
  5705  	return c
  5706  }
  5707  
  5708  // Header returns a http.Header that can be modified by the caller to add
  5709  // headers to the request.
  5710  func (c *NamespacesConfigurationsListCall) Header() http.Header {
  5711  	if c.header_ == nil {
  5712  		c.header_ = make(http.Header)
  5713  	}
  5714  	return c.header_
  5715  }
  5716  
  5717  func (c *NamespacesConfigurationsListCall) doRequest(alt string) (*http.Response, error) {
  5718  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5719  	if c.ifNoneMatch_ != "" {
  5720  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5721  	}
  5722  	var body io.Reader = nil
  5723  	c.urlParams_.Set("alt", alt)
  5724  	c.urlParams_.Set("prettyPrint", "false")
  5725  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/configurations")
  5726  	urls += "?" + c.urlParams_.Encode()
  5727  	req, err := http.NewRequest("GET", urls, body)
  5728  	if err != nil {
  5729  		return nil, err
  5730  	}
  5731  	req.Header = reqHeaders
  5732  	googleapi.Expand(req.URL, map[string]string{
  5733  		"parent": c.parent,
  5734  	})
  5735  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5736  }
  5737  
  5738  // Do executes the "run.namespaces.configurations.list" call.
  5739  // Any non-2xx status code is an error. Response headers are in either
  5740  // *ListConfigurationsResponse.ServerResponse.Header or (if a response was
  5741  // returned at all) in error.(*googleapi.Error).Header. Use
  5742  // googleapi.IsNotModified to check whether the returned error was because
  5743  // http.StatusNotModified was returned.
  5744  func (c *NamespacesConfigurationsListCall) Do(opts ...googleapi.CallOption) (*ListConfigurationsResponse, error) {
  5745  	gensupport.SetOptions(c.urlParams_, opts...)
  5746  	res, err := c.doRequest("json")
  5747  	if res != nil && res.StatusCode == http.StatusNotModified {
  5748  		if res.Body != nil {
  5749  			res.Body.Close()
  5750  		}
  5751  		return nil, gensupport.WrapError(&googleapi.Error{
  5752  			Code:   res.StatusCode,
  5753  			Header: res.Header,
  5754  		})
  5755  	}
  5756  	if err != nil {
  5757  		return nil, err
  5758  	}
  5759  	defer googleapi.CloseBody(res)
  5760  	if err := googleapi.CheckResponse(res); err != nil {
  5761  		return nil, gensupport.WrapError(err)
  5762  	}
  5763  	ret := &ListConfigurationsResponse{
  5764  		ServerResponse: googleapi.ServerResponse{
  5765  			Header:         res.Header,
  5766  			HTTPStatusCode: res.StatusCode,
  5767  		},
  5768  	}
  5769  	target := &ret
  5770  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5771  		return nil, err
  5772  	}
  5773  	return ret, nil
  5774  }
  5775  
  5776  type NamespacesDomainmappingsCreateCall struct {
  5777  	s             *APIService
  5778  	parent        string
  5779  	domainmapping *DomainMapping
  5780  	urlParams_    gensupport.URLParams
  5781  	ctx_          context.Context
  5782  	header_       http.Header
  5783  }
  5784  
  5785  // Create: Create a new domain mapping.
  5786  //
  5787  //   - parent: The namespace in which the domain mapping should be created. For
  5788  //     Cloud Run (fully managed), replace {namespace} with the project ID or
  5789  //     number. It takes the form namespaces/{namespace}. For example:
  5790  //     namespaces/PROJECT_ID.
  5791  func (r *NamespacesDomainmappingsService) Create(parent string, domainmapping *DomainMapping) *NamespacesDomainmappingsCreateCall {
  5792  	c := &NamespacesDomainmappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5793  	c.parent = parent
  5794  	c.domainmapping = domainmapping
  5795  	return c
  5796  }
  5797  
  5798  // DryRun sets the optional parameter "dryRun": Indicates that the server
  5799  // should validate the request and populate default values without persisting
  5800  // the request. Supported values: `all`
  5801  func (c *NamespacesDomainmappingsCreateCall) DryRun(dryRun string) *NamespacesDomainmappingsCreateCall {
  5802  	c.urlParams_.Set("dryRun", dryRun)
  5803  	return c
  5804  }
  5805  
  5806  // Fields allows partial responses to be retrieved. See
  5807  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5808  // details.
  5809  func (c *NamespacesDomainmappingsCreateCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsCreateCall {
  5810  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5811  	return c
  5812  }
  5813  
  5814  // Context sets the context to be used in this call's Do method.
  5815  func (c *NamespacesDomainmappingsCreateCall) Context(ctx context.Context) *NamespacesDomainmappingsCreateCall {
  5816  	c.ctx_ = ctx
  5817  	return c
  5818  }
  5819  
  5820  // Header returns a http.Header that can be modified by the caller to add
  5821  // headers to the request.
  5822  func (c *NamespacesDomainmappingsCreateCall) Header() http.Header {
  5823  	if c.header_ == nil {
  5824  		c.header_ = make(http.Header)
  5825  	}
  5826  	return c.header_
  5827  }
  5828  
  5829  func (c *NamespacesDomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) {
  5830  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5831  	var body io.Reader = nil
  5832  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
  5833  	if err != nil {
  5834  		return nil, err
  5835  	}
  5836  	c.urlParams_.Set("alt", alt)
  5837  	c.urlParams_.Set("prettyPrint", "false")
  5838  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+parent}/domainmappings")
  5839  	urls += "?" + c.urlParams_.Encode()
  5840  	req, err := http.NewRequest("POST", urls, body)
  5841  	if err != nil {
  5842  		return nil, err
  5843  	}
  5844  	req.Header = reqHeaders
  5845  	googleapi.Expand(req.URL, map[string]string{
  5846  		"parent": c.parent,
  5847  	})
  5848  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5849  }
  5850  
  5851  // Do executes the "run.namespaces.domainmappings.create" call.
  5852  // Any non-2xx status code is an error. Response headers are in either
  5853  // *DomainMapping.ServerResponse.Header or (if a response was returned at all)
  5854  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5855  // whether the returned error was because http.StatusNotModified was returned.
  5856  func (c *NamespacesDomainmappingsCreateCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
  5857  	gensupport.SetOptions(c.urlParams_, opts...)
  5858  	res, err := c.doRequest("json")
  5859  	if res != nil && res.StatusCode == http.StatusNotModified {
  5860  		if res.Body != nil {
  5861  			res.Body.Close()
  5862  		}
  5863  		return nil, gensupport.WrapError(&googleapi.Error{
  5864  			Code:   res.StatusCode,
  5865  			Header: res.Header,
  5866  		})
  5867  	}
  5868  	if err != nil {
  5869  		return nil, err
  5870  	}
  5871  	defer googleapi.CloseBody(res)
  5872  	if err := googleapi.CheckResponse(res); err != nil {
  5873  		return nil, gensupport.WrapError(err)
  5874  	}
  5875  	ret := &DomainMapping{
  5876  		ServerResponse: googleapi.ServerResponse{
  5877  			Header:         res.Header,
  5878  			HTTPStatusCode: res.StatusCode,
  5879  		},
  5880  	}
  5881  	target := &ret
  5882  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5883  		return nil, err
  5884  	}
  5885  	return ret, nil
  5886  }
  5887  
  5888  type NamespacesDomainmappingsDeleteCall struct {
  5889  	s          *APIService
  5890  	name       string
  5891  	urlParams_ gensupport.URLParams
  5892  	ctx_       context.Context
  5893  	header_    http.Header
  5894  }
  5895  
  5896  // Delete: Delete a domain mapping.
  5897  //
  5898  //   - name: The name of the domain mapping to delete. For Cloud Run (fully
  5899  //     managed), replace {namespace} with the project ID or number. It takes the
  5900  //     form namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  5901  func (r *NamespacesDomainmappingsService) Delete(name string) *NamespacesDomainmappingsDeleteCall {
  5902  	c := &NamespacesDomainmappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5903  	c.name = name
  5904  	return c
  5905  }
  5906  
  5907  // ApiVersion sets the optional parameter "apiVersion": Cloud Run currently
  5908  // ignores this parameter.
  5909  func (c *NamespacesDomainmappingsDeleteCall) ApiVersion(apiVersion string) *NamespacesDomainmappingsDeleteCall {
  5910  	c.urlParams_.Set("apiVersion", apiVersion)
  5911  	return c
  5912  }
  5913  
  5914  // DryRun sets the optional parameter "dryRun": Indicates that the server
  5915  // should validate the request and populate default values without persisting
  5916  // the request. Supported values: `all`
  5917  func (c *NamespacesDomainmappingsDeleteCall) DryRun(dryRun string) *NamespacesDomainmappingsDeleteCall {
  5918  	c.urlParams_.Set("dryRun", dryRun)
  5919  	return c
  5920  }
  5921  
  5922  // Kind sets the optional parameter "kind": Cloud Run currently ignores this
  5923  // parameter.
  5924  func (c *NamespacesDomainmappingsDeleteCall) Kind(kind string) *NamespacesDomainmappingsDeleteCall {
  5925  	c.urlParams_.Set("kind", kind)
  5926  	return c
  5927  }
  5928  
  5929  // PropagationPolicy sets the optional parameter "propagationPolicy": Specifies
  5930  // the propagation policy of delete. Cloud Run currently ignores this setting,
  5931  // and deletes in the background. Please see
  5932  // kubernetes.io/docs/concepts/architecture/garbage-collection/ for more
  5933  // information.
  5934  func (c *NamespacesDomainmappingsDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesDomainmappingsDeleteCall {
  5935  	c.urlParams_.Set("propagationPolicy", propagationPolicy)
  5936  	return c
  5937  }
  5938  
  5939  // Fields allows partial responses to be retrieved. See
  5940  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5941  // details.
  5942  func (c *NamespacesDomainmappingsDeleteCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsDeleteCall {
  5943  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5944  	return c
  5945  }
  5946  
  5947  // Context sets the context to be used in this call's Do method.
  5948  func (c *NamespacesDomainmappingsDeleteCall) Context(ctx context.Context) *NamespacesDomainmappingsDeleteCall {
  5949  	c.ctx_ = ctx
  5950  	return c
  5951  }
  5952  
  5953  // Header returns a http.Header that can be modified by the caller to add
  5954  // headers to the request.
  5955  func (c *NamespacesDomainmappingsDeleteCall) Header() http.Header {
  5956  	if c.header_ == nil {
  5957  		c.header_ = make(http.Header)
  5958  	}
  5959  	return c.header_
  5960  }
  5961  
  5962  func (c *NamespacesDomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
  5963  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5964  	var body io.Reader = nil
  5965  	c.urlParams_.Set("alt", alt)
  5966  	c.urlParams_.Set("prettyPrint", "false")
  5967  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+name}")
  5968  	urls += "?" + c.urlParams_.Encode()
  5969  	req, err := http.NewRequest("DELETE", urls, body)
  5970  	if err != nil {
  5971  		return nil, err
  5972  	}
  5973  	req.Header = reqHeaders
  5974  	googleapi.Expand(req.URL, map[string]string{
  5975  		"name": c.name,
  5976  	})
  5977  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5978  }
  5979  
  5980  // Do executes the "run.namespaces.domainmappings.delete" call.
  5981  // Any non-2xx status code is an error. Response headers are in either
  5982  // *Status.ServerResponse.Header or (if a response was returned at all) in
  5983  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5984  // whether the returned error was because http.StatusNotModified was returned.
  5985  func (c *NamespacesDomainmappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
  5986  	gensupport.SetOptions(c.urlParams_, opts...)
  5987  	res, err := c.doRequest("json")
  5988  	if res != nil && res.StatusCode == http.StatusNotModified {
  5989  		if res.Body != nil {
  5990  			res.Body.Close()
  5991  		}
  5992  		return nil, gensupport.WrapError(&googleapi.Error{
  5993  			Code:   res.StatusCode,
  5994  			Header: res.Header,
  5995  		})
  5996  	}
  5997  	if err != nil {
  5998  		return nil, err
  5999  	}
  6000  	defer googleapi.CloseBody(res)
  6001  	if err := googleapi.CheckResponse(res); err != nil {
  6002  		return nil, gensupport.WrapError(err)
  6003  	}
  6004  	ret := &Status{
  6005  		ServerResponse: googleapi.ServerResponse{
  6006  			Header:         res.Header,
  6007  			HTTPStatusCode: res.StatusCode,
  6008  		},
  6009  	}
  6010  	target := &ret
  6011  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6012  		return nil, err
  6013  	}
  6014  	return ret, nil
  6015  }
  6016  
  6017  type NamespacesDomainmappingsGetCall struct {
  6018  	s            *APIService
  6019  	name         string
  6020  	urlParams_   gensupport.URLParams
  6021  	ifNoneMatch_ string
  6022  	ctx_         context.Context
  6023  	header_      http.Header
  6024  }
  6025  
  6026  // Get: Get information about a domain mapping.
  6027  //
  6028  //   - name: The name of the domain mapping to retrieve. For Cloud Run (fully
  6029  //     managed), replace {namespace} with the project ID or number. It takes the
  6030  //     form namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  6031  func (r *NamespacesDomainmappingsService) Get(name string) *NamespacesDomainmappingsGetCall {
  6032  	c := &NamespacesDomainmappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6033  	c.name = name
  6034  	return c
  6035  }
  6036  
  6037  // Fields allows partial responses to be retrieved. See
  6038  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6039  // details.
  6040  func (c *NamespacesDomainmappingsGetCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsGetCall {
  6041  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6042  	return c
  6043  }
  6044  
  6045  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6046  // object's ETag matches the given value. This is useful for getting updates
  6047  // only after the object has changed since the last request.
  6048  func (c *NamespacesDomainmappingsGetCall) IfNoneMatch(entityTag string) *NamespacesDomainmappingsGetCall {
  6049  	c.ifNoneMatch_ = entityTag
  6050  	return c
  6051  }
  6052  
  6053  // Context sets the context to be used in this call's Do method.
  6054  func (c *NamespacesDomainmappingsGetCall) Context(ctx context.Context) *NamespacesDomainmappingsGetCall {
  6055  	c.ctx_ = ctx
  6056  	return c
  6057  }
  6058  
  6059  // Header returns a http.Header that can be modified by the caller to add
  6060  // headers to the request.
  6061  func (c *NamespacesDomainmappingsGetCall) Header() http.Header {
  6062  	if c.header_ == nil {
  6063  		c.header_ = make(http.Header)
  6064  	}
  6065  	return c.header_
  6066  }
  6067  
  6068  func (c *NamespacesDomainmappingsGetCall) doRequest(alt string) (*http.Response, error) {
  6069  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6070  	if c.ifNoneMatch_ != "" {
  6071  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6072  	}
  6073  	var body io.Reader = nil
  6074  	c.urlParams_.Set("alt", alt)
  6075  	c.urlParams_.Set("prettyPrint", "false")
  6076  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+name}")
  6077  	urls += "?" + c.urlParams_.Encode()
  6078  	req, err := http.NewRequest("GET", urls, body)
  6079  	if err != nil {
  6080  		return nil, err
  6081  	}
  6082  	req.Header = reqHeaders
  6083  	googleapi.Expand(req.URL, map[string]string{
  6084  		"name": c.name,
  6085  	})
  6086  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6087  }
  6088  
  6089  // Do executes the "run.namespaces.domainmappings.get" call.
  6090  // Any non-2xx status code is an error. Response headers are in either
  6091  // *DomainMapping.ServerResponse.Header or (if a response was returned at all)
  6092  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6093  // whether the returned error was because http.StatusNotModified was returned.
  6094  func (c *NamespacesDomainmappingsGetCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
  6095  	gensupport.SetOptions(c.urlParams_, opts...)
  6096  	res, err := c.doRequest("json")
  6097  	if res != nil && res.StatusCode == http.StatusNotModified {
  6098  		if res.Body != nil {
  6099  			res.Body.Close()
  6100  		}
  6101  		return nil, gensupport.WrapError(&googleapi.Error{
  6102  			Code:   res.StatusCode,
  6103  			Header: res.Header,
  6104  		})
  6105  	}
  6106  	if err != nil {
  6107  		return nil, err
  6108  	}
  6109  	defer googleapi.CloseBody(res)
  6110  	if err := googleapi.CheckResponse(res); err != nil {
  6111  		return nil, gensupport.WrapError(err)
  6112  	}
  6113  	ret := &DomainMapping{
  6114  		ServerResponse: googleapi.ServerResponse{
  6115  			Header:         res.Header,
  6116  			HTTPStatusCode: res.StatusCode,
  6117  		},
  6118  	}
  6119  	target := &ret
  6120  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6121  		return nil, err
  6122  	}
  6123  	return ret, nil
  6124  }
  6125  
  6126  type NamespacesDomainmappingsListCall struct {
  6127  	s            *APIService
  6128  	parent       string
  6129  	urlParams_   gensupport.URLParams
  6130  	ifNoneMatch_ string
  6131  	ctx_         context.Context
  6132  	header_      http.Header
  6133  }
  6134  
  6135  // List: List all domain mappings.
  6136  //
  6137  //   - parent: The namespace from which the domain mappings should be listed. For
  6138  //     Cloud Run (fully managed), replace {namespace} with the project ID or
  6139  //     number. It takes the form namespaces/{namespace}. For example:
  6140  //     namespaces/PROJECT_ID.
  6141  func (r *NamespacesDomainmappingsService) List(parent string) *NamespacesDomainmappingsListCall {
  6142  	c := &NamespacesDomainmappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6143  	c.parent = parent
  6144  	return c
  6145  }
  6146  
  6147  // Continue sets the optional parameter "continue": Encoded string to continue
  6148  // paging.
  6149  func (c *NamespacesDomainmappingsListCall) Continue(continue_ string) *NamespacesDomainmappingsListCall {
  6150  	c.urlParams_.Set("continue", continue_)
  6151  	return c
  6152  }
  6153  
  6154  // FieldSelector sets the optional parameter "fieldSelector": Allows to filter
  6155  // resources based on a specific value for a field name. Send this in a query
  6156  // string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud
  6157  // Run.
  6158  func (c *NamespacesDomainmappingsListCall) FieldSelector(fieldSelector string) *NamespacesDomainmappingsListCall {
  6159  	c.urlParams_.Set("fieldSelector", fieldSelector)
  6160  	return c
  6161  }
  6162  
  6163  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
  6164  // currently used by Cloud Run.
  6165  func (c *NamespacesDomainmappingsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesDomainmappingsListCall {
  6166  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
  6167  	return c
  6168  }
  6169  
  6170  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
  6171  // resources based on a label. Supported operations are =, !=, exists, in, and
  6172  // notIn.
  6173  func (c *NamespacesDomainmappingsListCall) LabelSelector(labelSelector string) *NamespacesDomainmappingsListCall {
  6174  	c.urlParams_.Set("labelSelector", labelSelector)
  6175  	return c
  6176  }
  6177  
  6178  // Limit sets the optional parameter "limit": The maximum number of records
  6179  // that should be returned.
  6180  func (c *NamespacesDomainmappingsListCall) Limit(limit int64) *NamespacesDomainmappingsListCall {
  6181  	c.urlParams_.Set("limit", fmt.Sprint(limit))
  6182  	return c
  6183  }
  6184  
  6185  // ResourceVersion sets the optional parameter "resourceVersion": The baseline
  6186  // resource version from which the list or watch operation should start. Not
  6187  // currently used by Cloud Run.
  6188  func (c *NamespacesDomainmappingsListCall) ResourceVersion(resourceVersion string) *NamespacesDomainmappingsListCall {
  6189  	c.urlParams_.Set("resourceVersion", resourceVersion)
  6190  	return c
  6191  }
  6192  
  6193  // Watch sets the optional parameter "watch": Flag that indicates that the
  6194  // client expects to watch this resource as well. Not currently used by Cloud
  6195  // Run.
  6196  func (c *NamespacesDomainmappingsListCall) Watch(watch bool) *NamespacesDomainmappingsListCall {
  6197  	c.urlParams_.Set("watch", fmt.Sprint(watch))
  6198  	return c
  6199  }
  6200  
  6201  // Fields allows partial responses to be retrieved. See
  6202  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6203  // details.
  6204  func (c *NamespacesDomainmappingsListCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsListCall {
  6205  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6206  	return c
  6207  }
  6208  
  6209  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6210  // object's ETag matches the given value. This is useful for getting updates
  6211  // only after the object has changed since the last request.
  6212  func (c *NamespacesDomainmappingsListCall) IfNoneMatch(entityTag string) *NamespacesDomainmappingsListCall {
  6213  	c.ifNoneMatch_ = entityTag
  6214  	return c
  6215  }
  6216  
  6217  // Context sets the context to be used in this call's Do method.
  6218  func (c *NamespacesDomainmappingsListCall) Context(ctx context.Context) *NamespacesDomainmappingsListCall {
  6219  	c.ctx_ = ctx
  6220  	return c
  6221  }
  6222  
  6223  // Header returns a http.Header that can be modified by the caller to add
  6224  // headers to the request.
  6225  func (c *NamespacesDomainmappingsListCall) Header() http.Header {
  6226  	if c.header_ == nil {
  6227  		c.header_ = make(http.Header)
  6228  	}
  6229  	return c.header_
  6230  }
  6231  
  6232  func (c *NamespacesDomainmappingsListCall) doRequest(alt string) (*http.Response, error) {
  6233  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6234  	if c.ifNoneMatch_ != "" {
  6235  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6236  	}
  6237  	var body io.Reader = nil
  6238  	c.urlParams_.Set("alt", alt)
  6239  	c.urlParams_.Set("prettyPrint", "false")
  6240  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+parent}/domainmappings")
  6241  	urls += "?" + c.urlParams_.Encode()
  6242  	req, err := http.NewRequest("GET", urls, body)
  6243  	if err != nil {
  6244  		return nil, err
  6245  	}
  6246  	req.Header = reqHeaders
  6247  	googleapi.Expand(req.URL, map[string]string{
  6248  		"parent": c.parent,
  6249  	})
  6250  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6251  }
  6252  
  6253  // Do executes the "run.namespaces.domainmappings.list" call.
  6254  // Any non-2xx status code is an error. Response headers are in either
  6255  // *ListDomainMappingsResponse.ServerResponse.Header or (if a response was
  6256  // returned at all) in error.(*googleapi.Error).Header. Use
  6257  // googleapi.IsNotModified to check whether the returned error was because
  6258  // http.StatusNotModified was returned.
  6259  func (c *NamespacesDomainmappingsListCall) Do(opts ...googleapi.CallOption) (*ListDomainMappingsResponse, error) {
  6260  	gensupport.SetOptions(c.urlParams_, opts...)
  6261  	res, err := c.doRequest("json")
  6262  	if res != nil && res.StatusCode == http.StatusNotModified {
  6263  		if res.Body != nil {
  6264  			res.Body.Close()
  6265  		}
  6266  		return nil, gensupport.WrapError(&googleapi.Error{
  6267  			Code:   res.StatusCode,
  6268  			Header: res.Header,
  6269  		})
  6270  	}
  6271  	if err != nil {
  6272  		return nil, err
  6273  	}
  6274  	defer googleapi.CloseBody(res)
  6275  	if err := googleapi.CheckResponse(res); err != nil {
  6276  		return nil, gensupport.WrapError(err)
  6277  	}
  6278  	ret := &ListDomainMappingsResponse{
  6279  		ServerResponse: googleapi.ServerResponse{
  6280  			Header:         res.Header,
  6281  			HTTPStatusCode: res.StatusCode,
  6282  		},
  6283  	}
  6284  	target := &ret
  6285  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6286  		return nil, err
  6287  	}
  6288  	return ret, nil
  6289  }
  6290  
  6291  type NamespacesExecutionsCancelCall struct {
  6292  	s                      *APIService
  6293  	name                   string
  6294  	cancelexecutionrequest *CancelExecutionRequest
  6295  	urlParams_             gensupport.URLParams
  6296  	ctx_                   context.Context
  6297  	header_                http.Header
  6298  }
  6299  
  6300  // Cancel: Cancel an execution.
  6301  //
  6302  //   - name: The name of the execution to cancel. Replace {namespace} with the
  6303  //     project ID or number. It takes the form namespaces/{namespace}. For
  6304  //     example: namespaces/PROJECT_ID.
  6305  func (r *NamespacesExecutionsService) Cancel(name string, cancelexecutionrequest *CancelExecutionRequest) *NamespacesExecutionsCancelCall {
  6306  	c := &NamespacesExecutionsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6307  	c.name = name
  6308  	c.cancelexecutionrequest = cancelexecutionrequest
  6309  	return c
  6310  }
  6311  
  6312  // Fields allows partial responses to be retrieved. See
  6313  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6314  // details.
  6315  func (c *NamespacesExecutionsCancelCall) Fields(s ...googleapi.Field) *NamespacesExecutionsCancelCall {
  6316  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6317  	return c
  6318  }
  6319  
  6320  // Context sets the context to be used in this call's Do method.
  6321  func (c *NamespacesExecutionsCancelCall) Context(ctx context.Context) *NamespacesExecutionsCancelCall {
  6322  	c.ctx_ = ctx
  6323  	return c
  6324  }
  6325  
  6326  // Header returns a http.Header that can be modified by the caller to add
  6327  // headers to the request.
  6328  func (c *NamespacesExecutionsCancelCall) Header() http.Header {
  6329  	if c.header_ == nil {
  6330  		c.header_ = make(http.Header)
  6331  	}
  6332  	return c.header_
  6333  }
  6334  
  6335  func (c *NamespacesExecutionsCancelCall) doRequest(alt string) (*http.Response, error) {
  6336  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6337  	var body io.Reader = nil
  6338  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cancelexecutionrequest)
  6339  	if err != nil {
  6340  		return nil, err
  6341  	}
  6342  	c.urlParams_.Set("alt", alt)
  6343  	c.urlParams_.Set("prettyPrint", "false")
  6344  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1/{+name}:cancel")
  6345  	urls += "?" + c.urlParams_.Encode()
  6346  	req, err := http.NewRequest("POST", urls, body)
  6347  	if err != nil {
  6348  		return nil, err
  6349  	}
  6350  	req.Header = reqHeaders
  6351  	googleapi.Expand(req.URL, map[string]string{
  6352  		"name": c.name,
  6353  	})
  6354  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6355  }
  6356  
  6357  // Do executes the "run.namespaces.executions.cancel" call.
  6358  // Any non-2xx status code is an error. Response headers are in either
  6359  // *Execution.ServerResponse.Header or (if a response was returned at all) in
  6360  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6361  // whether the returned error was because http.StatusNotModified was returned.
  6362  func (c *NamespacesExecutionsCancelCall) Do(opts ...googleapi.CallOption) (*Execution, error) {
  6363  	gensupport.SetOptions(c.urlParams_, opts...)
  6364  	res, err := c.doRequest("json")
  6365  	if res != nil && res.StatusCode == http.StatusNotModified {
  6366  		if res.Body != nil {
  6367  			res.Body.Close()
  6368  		}
  6369  		return nil, gensupport.WrapError(&googleapi.Error{
  6370  			Code:   res.StatusCode,
  6371  			Header: res.Header,
  6372  		})
  6373  	}
  6374  	if err != nil {
  6375  		return nil, err
  6376  	}
  6377  	defer googleapi.CloseBody(res)
  6378  	if err := googleapi.CheckResponse(res); err != nil {
  6379  		return nil, gensupport.WrapError(err)
  6380  	}
  6381  	ret := &Execution{
  6382  		ServerResponse: googleapi.ServerResponse{
  6383  			Header:         res.Header,
  6384  			HTTPStatusCode: res.StatusCode,
  6385  		},
  6386  	}
  6387  	target := &ret
  6388  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6389  		return nil, err
  6390  	}
  6391  	return ret, nil
  6392  }
  6393  
  6394  type NamespacesExecutionsDeleteCall struct {
  6395  	s          *APIService
  6396  	name       string
  6397  	urlParams_ gensupport.URLParams
  6398  	ctx_       context.Context
  6399  	header_    http.Header
  6400  }
  6401  
  6402  // Delete: Delete an execution.
  6403  //
  6404  //   - name: The name of the execution to delete. Replace {namespace} with the
  6405  //     project ID or number. It takes the form namespaces/{namespace}. For
  6406  //     example: namespaces/PROJECT_ID.
  6407  func (r *NamespacesExecutionsService) Delete(name string) *NamespacesExecutionsDeleteCall {
  6408  	c := &NamespacesExecutionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6409  	c.name = name
  6410  	return c
  6411  }
  6412  
  6413  // ApiVersion sets the optional parameter "apiVersion": Cloud Run currently
  6414  // ignores this parameter.
  6415  func (c *NamespacesExecutionsDeleteCall) ApiVersion(apiVersion string) *NamespacesExecutionsDeleteCall {
  6416  	c.urlParams_.Set("apiVersion", apiVersion)
  6417  	return c
  6418  }
  6419  
  6420  // Kind sets the optional parameter "kind": Cloud Run currently ignores this
  6421  // parameter.
  6422  func (c *NamespacesExecutionsDeleteCall) Kind(kind string) *NamespacesExecutionsDeleteCall {
  6423  	c.urlParams_.Set("kind", kind)
  6424  	return c
  6425  }
  6426  
  6427  // PropagationPolicy sets the optional parameter "propagationPolicy": Specifies
  6428  // the propagation policy of delete. Cloud Run currently ignores this setting.
  6429  func (c *NamespacesExecutionsDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesExecutionsDeleteCall {
  6430  	c.urlParams_.Set("propagationPolicy", propagationPolicy)
  6431  	return c
  6432  }
  6433  
  6434  // Fields allows partial responses to be retrieved. See
  6435  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6436  // details.
  6437  func (c *NamespacesExecutionsDeleteCall) Fields(s ...googleapi.Field) *NamespacesExecutionsDeleteCall {
  6438  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6439  	return c
  6440  }
  6441  
  6442  // Context sets the context to be used in this call's Do method.
  6443  func (c *NamespacesExecutionsDeleteCall) Context(ctx context.Context) *NamespacesExecutionsDeleteCall {
  6444  	c.ctx_ = ctx
  6445  	return c
  6446  }
  6447  
  6448  // Header returns a http.Header that can be modified by the caller to add
  6449  // headers to the request.
  6450  func (c *NamespacesExecutionsDeleteCall) Header() http.Header {
  6451  	if c.header_ == nil {
  6452  		c.header_ = make(http.Header)
  6453  	}
  6454  	return c.header_
  6455  }
  6456  
  6457  func (c *NamespacesExecutionsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6458  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6459  	var body io.Reader = nil
  6460  	c.urlParams_.Set("alt", alt)
  6461  	c.urlParams_.Set("prettyPrint", "false")
  6462  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1/{+name}")
  6463  	urls += "?" + c.urlParams_.Encode()
  6464  	req, err := http.NewRequest("DELETE", urls, body)
  6465  	if err != nil {
  6466  		return nil, err
  6467  	}
  6468  	req.Header = reqHeaders
  6469  	googleapi.Expand(req.URL, map[string]string{
  6470  		"name": c.name,
  6471  	})
  6472  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6473  }
  6474  
  6475  // Do executes the "run.namespaces.executions.delete" call.
  6476  // Any non-2xx status code is an error. Response headers are in either
  6477  // *Status.ServerResponse.Header or (if a response was returned at all) in
  6478  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6479  // whether the returned error was because http.StatusNotModified was returned.
  6480  func (c *NamespacesExecutionsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
  6481  	gensupport.SetOptions(c.urlParams_, opts...)
  6482  	res, err := c.doRequest("json")
  6483  	if res != nil && res.StatusCode == http.StatusNotModified {
  6484  		if res.Body != nil {
  6485  			res.Body.Close()
  6486  		}
  6487  		return nil, gensupport.WrapError(&googleapi.Error{
  6488  			Code:   res.StatusCode,
  6489  			Header: res.Header,
  6490  		})
  6491  	}
  6492  	if err != nil {
  6493  		return nil, err
  6494  	}
  6495  	defer googleapi.CloseBody(res)
  6496  	if err := googleapi.CheckResponse(res); err != nil {
  6497  		return nil, gensupport.WrapError(err)
  6498  	}
  6499  	ret := &Status{
  6500  		ServerResponse: googleapi.ServerResponse{
  6501  			Header:         res.Header,
  6502  			HTTPStatusCode: res.StatusCode,
  6503  		},
  6504  	}
  6505  	target := &ret
  6506  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6507  		return nil, err
  6508  	}
  6509  	return ret, nil
  6510  }
  6511  
  6512  type NamespacesExecutionsGetCall struct {
  6513  	s            *APIService
  6514  	name         string
  6515  	urlParams_   gensupport.URLParams
  6516  	ifNoneMatch_ string
  6517  	ctx_         context.Context
  6518  	header_      http.Header
  6519  }
  6520  
  6521  // Get: Get information about an execution.
  6522  //
  6523  //   - name: The name of the execution to retrieve. Replace {namespace} with the
  6524  //     project ID or number. It takes the form namespaces/{namespace}. For
  6525  //     example: namespaces/PROJECT_ID.
  6526  func (r *NamespacesExecutionsService) Get(name string) *NamespacesExecutionsGetCall {
  6527  	c := &NamespacesExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6528  	c.name = name
  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 *NamespacesExecutionsGetCall) Fields(s ...googleapi.Field) *NamespacesExecutionsGetCall {
  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 *NamespacesExecutionsGetCall) IfNoneMatch(entityTag string) *NamespacesExecutionsGetCall {
  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 *NamespacesExecutionsGetCall) Context(ctx context.Context) *NamespacesExecutionsGetCall {
  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 *NamespacesExecutionsGetCall) Header() http.Header {
  6557  	if c.header_ == nil {
  6558  		c.header_ = make(http.Header)
  6559  	}
  6560  	return c.header_
  6561  }
  6562  
  6563  func (c *NamespacesExecutionsGetCall) 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, "apis/run.googleapis.com/v1/{+name}")
  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  	})
  6581  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6582  }
  6583  
  6584  // Do executes the "run.namespaces.executions.get" call.
  6585  // Any non-2xx status code is an error. Response headers are in either
  6586  // *Execution.ServerResponse.Header or (if a response was returned at all) in
  6587  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6588  // whether the returned error was because http.StatusNotModified was returned.
  6589  func (c *NamespacesExecutionsGetCall) Do(opts ...googleapi.CallOption) (*Execution, error) {
  6590  	gensupport.SetOptions(c.urlParams_, opts...)
  6591  	res, err := c.doRequest("json")
  6592  	if res != nil && res.StatusCode == http.StatusNotModified {
  6593  		if res.Body != nil {
  6594  			res.Body.Close()
  6595  		}
  6596  		return nil, gensupport.WrapError(&googleapi.Error{
  6597  			Code:   res.StatusCode,
  6598  			Header: res.Header,
  6599  		})
  6600  	}
  6601  	if err != nil {
  6602  		return nil, err
  6603  	}
  6604  	defer googleapi.CloseBody(res)
  6605  	if err := googleapi.CheckResponse(res); err != nil {
  6606  		return nil, gensupport.WrapError(err)
  6607  	}
  6608  	ret := &Execution{
  6609  		ServerResponse: googleapi.ServerResponse{
  6610  			Header:         res.Header,
  6611  			HTTPStatusCode: res.StatusCode,
  6612  		},
  6613  	}
  6614  	target := &ret
  6615  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6616  		return nil, err
  6617  	}
  6618  	return ret, nil
  6619  }
  6620  
  6621  type NamespacesExecutionsListCall struct {
  6622  	s            *APIService
  6623  	parent       string
  6624  	urlParams_   gensupport.URLParams
  6625  	ifNoneMatch_ string
  6626  	ctx_         context.Context
  6627  	header_      http.Header
  6628  }
  6629  
  6630  // List: List executions.
  6631  //
  6632  //   - parent: The namespace from which the executions should be listed. Replace
  6633  //     {namespace} with the project ID or number. It takes the form
  6634  //     namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  6635  func (r *NamespacesExecutionsService) List(parent string) *NamespacesExecutionsListCall {
  6636  	c := &NamespacesExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6637  	c.parent = parent
  6638  	return c
  6639  }
  6640  
  6641  // Continue sets the optional parameter "continue": Optional encoded string to
  6642  // continue paging.
  6643  func (c *NamespacesExecutionsListCall) Continue(continue_ string) *NamespacesExecutionsListCall {
  6644  	c.urlParams_.Set("continue", continue_)
  6645  	return c
  6646  }
  6647  
  6648  // FieldSelector sets the optional parameter "fieldSelector": Not supported by
  6649  // Cloud Run.
  6650  func (c *NamespacesExecutionsListCall) FieldSelector(fieldSelector string) *NamespacesExecutionsListCall {
  6651  	c.urlParams_.Set("fieldSelector", fieldSelector)
  6652  	return c
  6653  }
  6654  
  6655  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
  6656  // supported by Cloud Run.
  6657  func (c *NamespacesExecutionsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesExecutionsListCall {
  6658  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
  6659  	return c
  6660  }
  6661  
  6662  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
  6663  // resources based on a label. Supported operations are =, !=, exists, in, and
  6664  // notIn.
  6665  func (c *NamespacesExecutionsListCall) LabelSelector(labelSelector string) *NamespacesExecutionsListCall {
  6666  	c.urlParams_.Set("labelSelector", labelSelector)
  6667  	return c
  6668  }
  6669  
  6670  // Limit sets the optional parameter "limit": The maximum number of the records
  6671  // that should be returned.
  6672  func (c *NamespacesExecutionsListCall) Limit(limit int64) *NamespacesExecutionsListCall {
  6673  	c.urlParams_.Set("limit", fmt.Sprint(limit))
  6674  	return c
  6675  }
  6676  
  6677  // ResourceVersion sets the optional parameter "resourceVersion": Not supported
  6678  // by Cloud Run.
  6679  func (c *NamespacesExecutionsListCall) ResourceVersion(resourceVersion string) *NamespacesExecutionsListCall {
  6680  	c.urlParams_.Set("resourceVersion", resourceVersion)
  6681  	return c
  6682  }
  6683  
  6684  // Watch sets the optional parameter "watch": Not supported by Cloud Run.
  6685  func (c *NamespacesExecutionsListCall) Watch(watch bool) *NamespacesExecutionsListCall {
  6686  	c.urlParams_.Set("watch", fmt.Sprint(watch))
  6687  	return c
  6688  }
  6689  
  6690  // Fields allows partial responses to be retrieved. See
  6691  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6692  // details.
  6693  func (c *NamespacesExecutionsListCall) Fields(s ...googleapi.Field) *NamespacesExecutionsListCall {
  6694  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6695  	return c
  6696  }
  6697  
  6698  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6699  // object's ETag matches the given value. This is useful for getting updates
  6700  // only after the object has changed since the last request.
  6701  func (c *NamespacesExecutionsListCall) IfNoneMatch(entityTag string) *NamespacesExecutionsListCall {
  6702  	c.ifNoneMatch_ = entityTag
  6703  	return c
  6704  }
  6705  
  6706  // Context sets the context to be used in this call's Do method.
  6707  func (c *NamespacesExecutionsListCall) Context(ctx context.Context) *NamespacesExecutionsListCall {
  6708  	c.ctx_ = ctx
  6709  	return c
  6710  }
  6711  
  6712  // Header returns a http.Header that can be modified by the caller to add
  6713  // headers to the request.
  6714  func (c *NamespacesExecutionsListCall) Header() http.Header {
  6715  	if c.header_ == nil {
  6716  		c.header_ = make(http.Header)
  6717  	}
  6718  	return c.header_
  6719  }
  6720  
  6721  func (c *NamespacesExecutionsListCall) doRequest(alt string) (*http.Response, error) {
  6722  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6723  	if c.ifNoneMatch_ != "" {
  6724  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6725  	}
  6726  	var body io.Reader = nil
  6727  	c.urlParams_.Set("alt", alt)
  6728  	c.urlParams_.Set("prettyPrint", "false")
  6729  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1/{+parent}/executions")
  6730  	urls += "?" + c.urlParams_.Encode()
  6731  	req, err := http.NewRequest("GET", urls, body)
  6732  	if err != nil {
  6733  		return nil, err
  6734  	}
  6735  	req.Header = reqHeaders
  6736  	googleapi.Expand(req.URL, map[string]string{
  6737  		"parent": c.parent,
  6738  	})
  6739  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6740  }
  6741  
  6742  // Do executes the "run.namespaces.executions.list" call.
  6743  // Any non-2xx status code is an error. Response headers are in either
  6744  // *ListExecutionsResponse.ServerResponse.Header or (if a response was returned
  6745  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6746  // check whether the returned error was because http.StatusNotModified was
  6747  // returned.
  6748  func (c *NamespacesExecutionsListCall) Do(opts ...googleapi.CallOption) (*ListExecutionsResponse, error) {
  6749  	gensupport.SetOptions(c.urlParams_, opts...)
  6750  	res, err := c.doRequest("json")
  6751  	if res != nil && res.StatusCode == http.StatusNotModified {
  6752  		if res.Body != nil {
  6753  			res.Body.Close()
  6754  		}
  6755  		return nil, gensupport.WrapError(&googleapi.Error{
  6756  			Code:   res.StatusCode,
  6757  			Header: res.Header,
  6758  		})
  6759  	}
  6760  	if err != nil {
  6761  		return nil, err
  6762  	}
  6763  	defer googleapi.CloseBody(res)
  6764  	if err := googleapi.CheckResponse(res); err != nil {
  6765  		return nil, gensupport.WrapError(err)
  6766  	}
  6767  	ret := &ListExecutionsResponse{
  6768  		ServerResponse: googleapi.ServerResponse{
  6769  			Header:         res.Header,
  6770  			HTTPStatusCode: res.StatusCode,
  6771  		},
  6772  	}
  6773  	target := &ret
  6774  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6775  		return nil, err
  6776  	}
  6777  	return ret, nil
  6778  }
  6779  
  6780  type NamespacesJobsCreateCall struct {
  6781  	s          *APIService
  6782  	parent     string
  6783  	job        *Job
  6784  	urlParams_ gensupport.URLParams
  6785  	ctx_       context.Context
  6786  	header_    http.Header
  6787  }
  6788  
  6789  // Create: Create a job.
  6790  //
  6791  //   - parent: The namespace in which the job should be created. Replace
  6792  //     {namespace} with the project ID or number. It takes the form
  6793  //     namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  6794  func (r *NamespacesJobsService) Create(parent string, job *Job) *NamespacesJobsCreateCall {
  6795  	c := &NamespacesJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6796  	c.parent = parent
  6797  	c.job = job
  6798  	return c
  6799  }
  6800  
  6801  // Fields allows partial responses to be retrieved. See
  6802  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6803  // details.
  6804  func (c *NamespacesJobsCreateCall) Fields(s ...googleapi.Field) *NamespacesJobsCreateCall {
  6805  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6806  	return c
  6807  }
  6808  
  6809  // Context sets the context to be used in this call's Do method.
  6810  func (c *NamespacesJobsCreateCall) Context(ctx context.Context) *NamespacesJobsCreateCall {
  6811  	c.ctx_ = ctx
  6812  	return c
  6813  }
  6814  
  6815  // Header returns a http.Header that can be modified by the caller to add
  6816  // headers to the request.
  6817  func (c *NamespacesJobsCreateCall) Header() http.Header {
  6818  	if c.header_ == nil {
  6819  		c.header_ = make(http.Header)
  6820  	}
  6821  	return c.header_
  6822  }
  6823  
  6824  func (c *NamespacesJobsCreateCall) doRequest(alt string) (*http.Response, error) {
  6825  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6826  	var body io.Reader = nil
  6827  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.job)
  6828  	if err != nil {
  6829  		return nil, err
  6830  	}
  6831  	c.urlParams_.Set("alt", alt)
  6832  	c.urlParams_.Set("prettyPrint", "false")
  6833  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1/{+parent}/jobs")
  6834  	urls += "?" + c.urlParams_.Encode()
  6835  	req, err := http.NewRequest("POST", urls, body)
  6836  	if err != nil {
  6837  		return nil, err
  6838  	}
  6839  	req.Header = reqHeaders
  6840  	googleapi.Expand(req.URL, map[string]string{
  6841  		"parent": c.parent,
  6842  	})
  6843  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6844  }
  6845  
  6846  // Do executes the "run.namespaces.jobs.create" call.
  6847  // Any non-2xx status code is an error. Response headers are in either
  6848  // *Job.ServerResponse.Header or (if a response was returned at all) in
  6849  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6850  // whether the returned error was because http.StatusNotModified was returned.
  6851  func (c *NamespacesJobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error) {
  6852  	gensupport.SetOptions(c.urlParams_, opts...)
  6853  	res, err := c.doRequest("json")
  6854  	if res != nil && res.StatusCode == http.StatusNotModified {
  6855  		if res.Body != nil {
  6856  			res.Body.Close()
  6857  		}
  6858  		return nil, gensupport.WrapError(&googleapi.Error{
  6859  			Code:   res.StatusCode,
  6860  			Header: res.Header,
  6861  		})
  6862  	}
  6863  	if err != nil {
  6864  		return nil, err
  6865  	}
  6866  	defer googleapi.CloseBody(res)
  6867  	if err := googleapi.CheckResponse(res); err != nil {
  6868  		return nil, gensupport.WrapError(err)
  6869  	}
  6870  	ret := &Job{
  6871  		ServerResponse: googleapi.ServerResponse{
  6872  			Header:         res.Header,
  6873  			HTTPStatusCode: res.StatusCode,
  6874  		},
  6875  	}
  6876  	target := &ret
  6877  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6878  		return nil, err
  6879  	}
  6880  	return ret, nil
  6881  }
  6882  
  6883  type NamespacesJobsDeleteCall struct {
  6884  	s          *APIService
  6885  	name       string
  6886  	urlParams_ gensupport.URLParams
  6887  	ctx_       context.Context
  6888  	header_    http.Header
  6889  }
  6890  
  6891  // Delete: Delete a job.
  6892  //
  6893  //   - name: The name of the job to delete. Replace {namespace} with the project
  6894  //     ID or number. It takes the form namespaces/{namespace}. For example:
  6895  //     namespaces/PROJECT_ID.
  6896  func (r *NamespacesJobsService) Delete(name string) *NamespacesJobsDeleteCall {
  6897  	c := &NamespacesJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6898  	c.name = name
  6899  	return c
  6900  }
  6901  
  6902  // ApiVersion sets the optional parameter "apiVersion": Cloud Run currently
  6903  // ignores this parameter.
  6904  func (c *NamespacesJobsDeleteCall) ApiVersion(apiVersion string) *NamespacesJobsDeleteCall {
  6905  	c.urlParams_.Set("apiVersion", apiVersion)
  6906  	return c
  6907  }
  6908  
  6909  // Kind sets the optional parameter "kind": Cloud Run currently ignores this
  6910  // parameter.
  6911  func (c *NamespacesJobsDeleteCall) Kind(kind string) *NamespacesJobsDeleteCall {
  6912  	c.urlParams_.Set("kind", kind)
  6913  	return c
  6914  }
  6915  
  6916  // PropagationPolicy sets the optional parameter "propagationPolicy": Specifies
  6917  // the propagation policy of delete. Cloud Run currently ignores this setting,
  6918  // and deletes in the background. Please see
  6919  // kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for
  6920  // more information.
  6921  func (c *NamespacesJobsDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesJobsDeleteCall {
  6922  	c.urlParams_.Set("propagationPolicy", propagationPolicy)
  6923  	return c
  6924  }
  6925  
  6926  // Fields allows partial responses to be retrieved. See
  6927  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6928  // details.
  6929  func (c *NamespacesJobsDeleteCall) Fields(s ...googleapi.Field) *NamespacesJobsDeleteCall {
  6930  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6931  	return c
  6932  }
  6933  
  6934  // Context sets the context to be used in this call's Do method.
  6935  func (c *NamespacesJobsDeleteCall) Context(ctx context.Context) *NamespacesJobsDeleteCall {
  6936  	c.ctx_ = ctx
  6937  	return c
  6938  }
  6939  
  6940  // Header returns a http.Header that can be modified by the caller to add
  6941  // headers to the request.
  6942  func (c *NamespacesJobsDeleteCall) Header() http.Header {
  6943  	if c.header_ == nil {
  6944  		c.header_ = make(http.Header)
  6945  	}
  6946  	return c.header_
  6947  }
  6948  
  6949  func (c *NamespacesJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6950  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6951  	var body io.Reader = nil
  6952  	c.urlParams_.Set("alt", alt)
  6953  	c.urlParams_.Set("prettyPrint", "false")
  6954  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1/{+name}")
  6955  	urls += "?" + c.urlParams_.Encode()
  6956  	req, err := http.NewRequest("DELETE", urls, body)
  6957  	if err != nil {
  6958  		return nil, err
  6959  	}
  6960  	req.Header = reqHeaders
  6961  	googleapi.Expand(req.URL, map[string]string{
  6962  		"name": c.name,
  6963  	})
  6964  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6965  }
  6966  
  6967  // Do executes the "run.namespaces.jobs.delete" call.
  6968  // Any non-2xx status code is an error. Response headers are in either
  6969  // *Status.ServerResponse.Header or (if a response was returned at all) in
  6970  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6971  // whether the returned error was because http.StatusNotModified was returned.
  6972  func (c *NamespacesJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
  6973  	gensupport.SetOptions(c.urlParams_, opts...)
  6974  	res, err := c.doRequest("json")
  6975  	if res != nil && res.StatusCode == http.StatusNotModified {
  6976  		if res.Body != nil {
  6977  			res.Body.Close()
  6978  		}
  6979  		return nil, gensupport.WrapError(&googleapi.Error{
  6980  			Code:   res.StatusCode,
  6981  			Header: res.Header,
  6982  		})
  6983  	}
  6984  	if err != nil {
  6985  		return nil, err
  6986  	}
  6987  	defer googleapi.CloseBody(res)
  6988  	if err := googleapi.CheckResponse(res); err != nil {
  6989  		return nil, gensupport.WrapError(err)
  6990  	}
  6991  	ret := &Status{
  6992  		ServerResponse: googleapi.ServerResponse{
  6993  			Header:         res.Header,
  6994  			HTTPStatusCode: res.StatusCode,
  6995  		},
  6996  	}
  6997  	target := &ret
  6998  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6999  		return nil, err
  7000  	}
  7001  	return ret, nil
  7002  }
  7003  
  7004  type NamespacesJobsGetCall struct {
  7005  	s            *APIService
  7006  	name         string
  7007  	urlParams_   gensupport.URLParams
  7008  	ifNoneMatch_ string
  7009  	ctx_         context.Context
  7010  	header_      http.Header
  7011  }
  7012  
  7013  // Get: Get information about a job.
  7014  //
  7015  //   - name: The name of the job to retrieve. Replace {namespace} with the
  7016  //     project ID or number. It takes the form namespaces/{namespace}. For
  7017  //     example: namespaces/PROJECT_ID.
  7018  func (r *NamespacesJobsService) Get(name string) *NamespacesJobsGetCall {
  7019  	c := &NamespacesJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7020  	c.name = name
  7021  	return c
  7022  }
  7023  
  7024  // Fields allows partial responses to be retrieved. See
  7025  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7026  // details.
  7027  func (c *NamespacesJobsGetCall) Fields(s ...googleapi.Field) *NamespacesJobsGetCall {
  7028  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7029  	return c
  7030  }
  7031  
  7032  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7033  // object's ETag matches the given value. This is useful for getting updates
  7034  // only after the object has changed since the last request.
  7035  func (c *NamespacesJobsGetCall) IfNoneMatch(entityTag string) *NamespacesJobsGetCall {
  7036  	c.ifNoneMatch_ = entityTag
  7037  	return c
  7038  }
  7039  
  7040  // Context sets the context to be used in this call's Do method.
  7041  func (c *NamespacesJobsGetCall) Context(ctx context.Context) *NamespacesJobsGetCall {
  7042  	c.ctx_ = ctx
  7043  	return c
  7044  }
  7045  
  7046  // Header returns a http.Header that can be modified by the caller to add
  7047  // headers to the request.
  7048  func (c *NamespacesJobsGetCall) Header() http.Header {
  7049  	if c.header_ == nil {
  7050  		c.header_ = make(http.Header)
  7051  	}
  7052  	return c.header_
  7053  }
  7054  
  7055  func (c *NamespacesJobsGetCall) doRequest(alt string) (*http.Response, error) {
  7056  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7057  	if c.ifNoneMatch_ != "" {
  7058  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7059  	}
  7060  	var body io.Reader = nil
  7061  	c.urlParams_.Set("alt", alt)
  7062  	c.urlParams_.Set("prettyPrint", "false")
  7063  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1/{+name}")
  7064  	urls += "?" + c.urlParams_.Encode()
  7065  	req, err := http.NewRequest("GET", urls, body)
  7066  	if err != nil {
  7067  		return nil, err
  7068  	}
  7069  	req.Header = reqHeaders
  7070  	googleapi.Expand(req.URL, map[string]string{
  7071  		"name": c.name,
  7072  	})
  7073  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7074  }
  7075  
  7076  // Do executes the "run.namespaces.jobs.get" call.
  7077  // Any non-2xx status code is an error. Response headers are in either
  7078  // *Job.ServerResponse.Header or (if a response was returned at all) in
  7079  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7080  // whether the returned error was because http.StatusNotModified was returned.
  7081  func (c *NamespacesJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) {
  7082  	gensupport.SetOptions(c.urlParams_, opts...)
  7083  	res, err := c.doRequest("json")
  7084  	if res != nil && res.StatusCode == http.StatusNotModified {
  7085  		if res.Body != nil {
  7086  			res.Body.Close()
  7087  		}
  7088  		return nil, gensupport.WrapError(&googleapi.Error{
  7089  			Code:   res.StatusCode,
  7090  			Header: res.Header,
  7091  		})
  7092  	}
  7093  	if err != nil {
  7094  		return nil, err
  7095  	}
  7096  	defer googleapi.CloseBody(res)
  7097  	if err := googleapi.CheckResponse(res); err != nil {
  7098  		return nil, gensupport.WrapError(err)
  7099  	}
  7100  	ret := &Job{
  7101  		ServerResponse: googleapi.ServerResponse{
  7102  			Header:         res.Header,
  7103  			HTTPStatusCode: res.StatusCode,
  7104  		},
  7105  	}
  7106  	target := &ret
  7107  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7108  		return nil, err
  7109  	}
  7110  	return ret, nil
  7111  }
  7112  
  7113  type NamespacesJobsListCall struct {
  7114  	s            *APIService
  7115  	parent       string
  7116  	urlParams_   gensupport.URLParams
  7117  	ifNoneMatch_ string
  7118  	ctx_         context.Context
  7119  	header_      http.Header
  7120  }
  7121  
  7122  // List: List jobs.
  7123  //
  7124  //   - parent: The namespace from which the jobs should be listed. Replace
  7125  //     {namespace} with the project ID or number. It takes the form
  7126  //     namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  7127  func (r *NamespacesJobsService) List(parent string) *NamespacesJobsListCall {
  7128  	c := &NamespacesJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7129  	c.parent = parent
  7130  	return c
  7131  }
  7132  
  7133  // Continue sets the optional parameter "continue": Optional encoded string to
  7134  // continue paging.
  7135  func (c *NamespacesJobsListCall) Continue(continue_ string) *NamespacesJobsListCall {
  7136  	c.urlParams_.Set("continue", continue_)
  7137  	return c
  7138  }
  7139  
  7140  // FieldSelector sets the optional parameter "fieldSelector": Not supported by
  7141  // Cloud Run.
  7142  func (c *NamespacesJobsListCall) FieldSelector(fieldSelector string) *NamespacesJobsListCall {
  7143  	c.urlParams_.Set("fieldSelector", fieldSelector)
  7144  	return c
  7145  }
  7146  
  7147  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
  7148  // supported by Cloud Run.
  7149  func (c *NamespacesJobsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesJobsListCall {
  7150  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
  7151  	return c
  7152  }
  7153  
  7154  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
  7155  // resources based on a label. Supported operations are =, !=, exists, in, and
  7156  // notIn.
  7157  func (c *NamespacesJobsListCall) LabelSelector(labelSelector string) *NamespacesJobsListCall {
  7158  	c.urlParams_.Set("labelSelector", labelSelector)
  7159  	return c
  7160  }
  7161  
  7162  // Limit sets the optional parameter "limit": The maximum number of records
  7163  // that should be returned.
  7164  func (c *NamespacesJobsListCall) Limit(limit int64) *NamespacesJobsListCall {
  7165  	c.urlParams_.Set("limit", fmt.Sprint(limit))
  7166  	return c
  7167  }
  7168  
  7169  // ResourceVersion sets the optional parameter "resourceVersion": Not supported
  7170  // by Cloud Run.
  7171  func (c *NamespacesJobsListCall) ResourceVersion(resourceVersion string) *NamespacesJobsListCall {
  7172  	c.urlParams_.Set("resourceVersion", resourceVersion)
  7173  	return c
  7174  }
  7175  
  7176  // Watch sets the optional parameter "watch": Not supported by Cloud Run.
  7177  func (c *NamespacesJobsListCall) Watch(watch bool) *NamespacesJobsListCall {
  7178  	c.urlParams_.Set("watch", fmt.Sprint(watch))
  7179  	return c
  7180  }
  7181  
  7182  // Fields allows partial responses to be retrieved. See
  7183  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7184  // details.
  7185  func (c *NamespacesJobsListCall) Fields(s ...googleapi.Field) *NamespacesJobsListCall {
  7186  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7187  	return c
  7188  }
  7189  
  7190  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7191  // object's ETag matches the given value. This is useful for getting updates
  7192  // only after the object has changed since the last request.
  7193  func (c *NamespacesJobsListCall) IfNoneMatch(entityTag string) *NamespacesJobsListCall {
  7194  	c.ifNoneMatch_ = entityTag
  7195  	return c
  7196  }
  7197  
  7198  // Context sets the context to be used in this call's Do method.
  7199  func (c *NamespacesJobsListCall) Context(ctx context.Context) *NamespacesJobsListCall {
  7200  	c.ctx_ = ctx
  7201  	return c
  7202  }
  7203  
  7204  // Header returns a http.Header that can be modified by the caller to add
  7205  // headers to the request.
  7206  func (c *NamespacesJobsListCall) Header() http.Header {
  7207  	if c.header_ == nil {
  7208  		c.header_ = make(http.Header)
  7209  	}
  7210  	return c.header_
  7211  }
  7212  
  7213  func (c *NamespacesJobsListCall) doRequest(alt string) (*http.Response, error) {
  7214  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7215  	if c.ifNoneMatch_ != "" {
  7216  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7217  	}
  7218  	var body io.Reader = nil
  7219  	c.urlParams_.Set("alt", alt)
  7220  	c.urlParams_.Set("prettyPrint", "false")
  7221  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1/{+parent}/jobs")
  7222  	urls += "?" + c.urlParams_.Encode()
  7223  	req, err := http.NewRequest("GET", urls, body)
  7224  	if err != nil {
  7225  		return nil, err
  7226  	}
  7227  	req.Header = reqHeaders
  7228  	googleapi.Expand(req.URL, map[string]string{
  7229  		"parent": c.parent,
  7230  	})
  7231  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7232  }
  7233  
  7234  // Do executes the "run.namespaces.jobs.list" call.
  7235  // Any non-2xx status code is an error. Response headers are in either
  7236  // *ListJobsResponse.ServerResponse.Header or (if a response was returned at
  7237  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7238  // check whether the returned error was because http.StatusNotModified was
  7239  // returned.
  7240  func (c *NamespacesJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error) {
  7241  	gensupport.SetOptions(c.urlParams_, opts...)
  7242  	res, err := c.doRequest("json")
  7243  	if res != nil && res.StatusCode == http.StatusNotModified {
  7244  		if res.Body != nil {
  7245  			res.Body.Close()
  7246  		}
  7247  		return nil, gensupport.WrapError(&googleapi.Error{
  7248  			Code:   res.StatusCode,
  7249  			Header: res.Header,
  7250  		})
  7251  	}
  7252  	if err != nil {
  7253  		return nil, err
  7254  	}
  7255  	defer googleapi.CloseBody(res)
  7256  	if err := googleapi.CheckResponse(res); err != nil {
  7257  		return nil, gensupport.WrapError(err)
  7258  	}
  7259  	ret := &ListJobsResponse{
  7260  		ServerResponse: googleapi.ServerResponse{
  7261  			Header:         res.Header,
  7262  			HTTPStatusCode: res.StatusCode,
  7263  		},
  7264  	}
  7265  	target := &ret
  7266  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7267  		return nil, err
  7268  	}
  7269  	return ret, nil
  7270  }
  7271  
  7272  type NamespacesJobsReplaceJobCall struct {
  7273  	s          *APIService
  7274  	name       string
  7275  	job        *Job
  7276  	urlParams_ gensupport.URLParams
  7277  	ctx_       context.Context
  7278  	header_    http.Header
  7279  }
  7280  
  7281  // ReplaceJob: Replace a job. Only the spec and metadata labels and annotations
  7282  // are modifiable. After the Replace request, Cloud Run will work to make the
  7283  // 'status' match the requested 'spec'. May provide metadata.resourceVersion to
  7284  // enforce update from last read for optimistic concurrency control.
  7285  //
  7286  //   - name: The name of the job being replaced. Replace {namespace} with the
  7287  //     project ID or number. It takes the form namespaces/{namespace}. For
  7288  //     example: namespaces/PROJECT_ID.
  7289  func (r *NamespacesJobsService) ReplaceJob(name string, job *Job) *NamespacesJobsReplaceJobCall {
  7290  	c := &NamespacesJobsReplaceJobCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7291  	c.name = name
  7292  	c.job = job
  7293  	return c
  7294  }
  7295  
  7296  // Fields allows partial responses to be retrieved. See
  7297  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7298  // details.
  7299  func (c *NamespacesJobsReplaceJobCall) Fields(s ...googleapi.Field) *NamespacesJobsReplaceJobCall {
  7300  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7301  	return c
  7302  }
  7303  
  7304  // Context sets the context to be used in this call's Do method.
  7305  func (c *NamespacesJobsReplaceJobCall) Context(ctx context.Context) *NamespacesJobsReplaceJobCall {
  7306  	c.ctx_ = ctx
  7307  	return c
  7308  }
  7309  
  7310  // Header returns a http.Header that can be modified by the caller to add
  7311  // headers to the request.
  7312  func (c *NamespacesJobsReplaceJobCall) Header() http.Header {
  7313  	if c.header_ == nil {
  7314  		c.header_ = make(http.Header)
  7315  	}
  7316  	return c.header_
  7317  }
  7318  
  7319  func (c *NamespacesJobsReplaceJobCall) doRequest(alt string) (*http.Response, error) {
  7320  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7321  	var body io.Reader = nil
  7322  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.job)
  7323  	if err != nil {
  7324  		return nil, err
  7325  	}
  7326  	c.urlParams_.Set("alt", alt)
  7327  	c.urlParams_.Set("prettyPrint", "false")
  7328  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1/{+name}")
  7329  	urls += "?" + c.urlParams_.Encode()
  7330  	req, err := http.NewRequest("PUT", urls, body)
  7331  	if err != nil {
  7332  		return nil, err
  7333  	}
  7334  	req.Header = reqHeaders
  7335  	googleapi.Expand(req.URL, map[string]string{
  7336  		"name": c.name,
  7337  	})
  7338  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7339  }
  7340  
  7341  // Do executes the "run.namespaces.jobs.replaceJob" call.
  7342  // Any non-2xx status code is an error. Response headers are in either
  7343  // *Job.ServerResponse.Header or (if a response was returned at all) in
  7344  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7345  // whether the returned error was because http.StatusNotModified was returned.
  7346  func (c *NamespacesJobsReplaceJobCall) Do(opts ...googleapi.CallOption) (*Job, error) {
  7347  	gensupport.SetOptions(c.urlParams_, opts...)
  7348  	res, err := c.doRequest("json")
  7349  	if res != nil && res.StatusCode == http.StatusNotModified {
  7350  		if res.Body != nil {
  7351  			res.Body.Close()
  7352  		}
  7353  		return nil, gensupport.WrapError(&googleapi.Error{
  7354  			Code:   res.StatusCode,
  7355  			Header: res.Header,
  7356  		})
  7357  	}
  7358  	if err != nil {
  7359  		return nil, err
  7360  	}
  7361  	defer googleapi.CloseBody(res)
  7362  	if err := googleapi.CheckResponse(res); err != nil {
  7363  		return nil, gensupport.WrapError(err)
  7364  	}
  7365  	ret := &Job{
  7366  		ServerResponse: googleapi.ServerResponse{
  7367  			Header:         res.Header,
  7368  			HTTPStatusCode: res.StatusCode,
  7369  		},
  7370  	}
  7371  	target := &ret
  7372  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7373  		return nil, err
  7374  	}
  7375  	return ret, nil
  7376  }
  7377  
  7378  type NamespacesJobsRunCall struct {
  7379  	s             *APIService
  7380  	name          string
  7381  	runjobrequest *RunJobRequest
  7382  	urlParams_    gensupport.URLParams
  7383  	ctx_          context.Context
  7384  	header_       http.Header
  7385  }
  7386  
  7387  // Run: Trigger creation of a new execution of this job.
  7388  //
  7389  //   - name: The name of the job to run. Replace {namespace} with the project ID
  7390  //     or number. It takes the form namespaces/{namespace}. For example:
  7391  //     namespaces/PROJECT_ID.
  7392  func (r *NamespacesJobsService) Run(name string, runjobrequest *RunJobRequest) *NamespacesJobsRunCall {
  7393  	c := &NamespacesJobsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7394  	c.name = name
  7395  	c.runjobrequest = runjobrequest
  7396  	return c
  7397  }
  7398  
  7399  // Fields allows partial responses to be retrieved. See
  7400  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7401  // details.
  7402  func (c *NamespacesJobsRunCall) Fields(s ...googleapi.Field) *NamespacesJobsRunCall {
  7403  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7404  	return c
  7405  }
  7406  
  7407  // Context sets the context to be used in this call's Do method.
  7408  func (c *NamespacesJobsRunCall) Context(ctx context.Context) *NamespacesJobsRunCall {
  7409  	c.ctx_ = ctx
  7410  	return c
  7411  }
  7412  
  7413  // Header returns a http.Header that can be modified by the caller to add
  7414  // headers to the request.
  7415  func (c *NamespacesJobsRunCall) Header() http.Header {
  7416  	if c.header_ == nil {
  7417  		c.header_ = make(http.Header)
  7418  	}
  7419  	return c.header_
  7420  }
  7421  
  7422  func (c *NamespacesJobsRunCall) doRequest(alt string) (*http.Response, error) {
  7423  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7424  	var body io.Reader = nil
  7425  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.runjobrequest)
  7426  	if err != nil {
  7427  		return nil, err
  7428  	}
  7429  	c.urlParams_.Set("alt", alt)
  7430  	c.urlParams_.Set("prettyPrint", "false")
  7431  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1/{+name}:run")
  7432  	urls += "?" + c.urlParams_.Encode()
  7433  	req, err := http.NewRequest("POST", urls, body)
  7434  	if err != nil {
  7435  		return nil, err
  7436  	}
  7437  	req.Header = reqHeaders
  7438  	googleapi.Expand(req.URL, map[string]string{
  7439  		"name": c.name,
  7440  	})
  7441  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7442  }
  7443  
  7444  // Do executes the "run.namespaces.jobs.run" call.
  7445  // Any non-2xx status code is an error. Response headers are in either
  7446  // *Execution.ServerResponse.Header or (if a response was returned at all) in
  7447  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7448  // whether the returned error was because http.StatusNotModified was returned.
  7449  func (c *NamespacesJobsRunCall) Do(opts ...googleapi.CallOption) (*Execution, error) {
  7450  	gensupport.SetOptions(c.urlParams_, opts...)
  7451  	res, err := c.doRequest("json")
  7452  	if res != nil && res.StatusCode == http.StatusNotModified {
  7453  		if res.Body != nil {
  7454  			res.Body.Close()
  7455  		}
  7456  		return nil, gensupport.WrapError(&googleapi.Error{
  7457  			Code:   res.StatusCode,
  7458  			Header: res.Header,
  7459  		})
  7460  	}
  7461  	if err != nil {
  7462  		return nil, err
  7463  	}
  7464  	defer googleapi.CloseBody(res)
  7465  	if err := googleapi.CheckResponse(res); err != nil {
  7466  		return nil, gensupport.WrapError(err)
  7467  	}
  7468  	ret := &Execution{
  7469  		ServerResponse: googleapi.ServerResponse{
  7470  			Header:         res.Header,
  7471  			HTTPStatusCode: res.StatusCode,
  7472  		},
  7473  	}
  7474  	target := &ret
  7475  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7476  		return nil, err
  7477  	}
  7478  	return ret, nil
  7479  }
  7480  
  7481  type NamespacesRevisionsDeleteCall struct {
  7482  	s          *APIService
  7483  	name       string
  7484  	urlParams_ gensupport.URLParams
  7485  	ctx_       context.Context
  7486  	header_    http.Header
  7487  }
  7488  
  7489  // Delete: Delete a revision.
  7490  //
  7491  //   - name: The name of the revision to delete. For Cloud Run (fully managed),
  7492  //     replace {namespace} with the project ID or number. It takes the form
  7493  //     namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  7494  func (r *NamespacesRevisionsService) Delete(name string) *NamespacesRevisionsDeleteCall {
  7495  	c := &NamespacesRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7496  	c.name = name
  7497  	return c
  7498  }
  7499  
  7500  // ApiVersion sets the optional parameter "apiVersion": Cloud Run currently
  7501  // ignores this parameter.
  7502  func (c *NamespacesRevisionsDeleteCall) ApiVersion(apiVersion string) *NamespacesRevisionsDeleteCall {
  7503  	c.urlParams_.Set("apiVersion", apiVersion)
  7504  	return c
  7505  }
  7506  
  7507  // DryRun sets the optional parameter "dryRun": Indicates that the server
  7508  // should validate the request and populate default values without persisting
  7509  // the request. Supported values: `all`
  7510  func (c *NamespacesRevisionsDeleteCall) DryRun(dryRun string) *NamespacesRevisionsDeleteCall {
  7511  	c.urlParams_.Set("dryRun", dryRun)
  7512  	return c
  7513  }
  7514  
  7515  // Kind sets the optional parameter "kind": Cloud Run currently ignores this
  7516  // parameter.
  7517  func (c *NamespacesRevisionsDeleteCall) Kind(kind string) *NamespacesRevisionsDeleteCall {
  7518  	c.urlParams_.Set("kind", kind)
  7519  	return c
  7520  }
  7521  
  7522  // PropagationPolicy sets the optional parameter "propagationPolicy": Specifies
  7523  // the propagation policy of delete. Cloud Run currently ignores this setting,
  7524  // and deletes in the background.
  7525  func (c *NamespacesRevisionsDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesRevisionsDeleteCall {
  7526  	c.urlParams_.Set("propagationPolicy", propagationPolicy)
  7527  	return c
  7528  }
  7529  
  7530  // Fields allows partial responses to be retrieved. See
  7531  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7532  // details.
  7533  func (c *NamespacesRevisionsDeleteCall) Fields(s ...googleapi.Field) *NamespacesRevisionsDeleteCall {
  7534  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7535  	return c
  7536  }
  7537  
  7538  // Context sets the context to be used in this call's Do method.
  7539  func (c *NamespacesRevisionsDeleteCall) Context(ctx context.Context) *NamespacesRevisionsDeleteCall {
  7540  	c.ctx_ = ctx
  7541  	return c
  7542  }
  7543  
  7544  // Header returns a http.Header that can be modified by the caller to add
  7545  // headers to the request.
  7546  func (c *NamespacesRevisionsDeleteCall) Header() http.Header {
  7547  	if c.header_ == nil {
  7548  		c.header_ = make(http.Header)
  7549  	}
  7550  	return c.header_
  7551  }
  7552  
  7553  func (c *NamespacesRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7554  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7555  	var body io.Reader = nil
  7556  	c.urlParams_.Set("alt", alt)
  7557  	c.urlParams_.Set("prettyPrint", "false")
  7558  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
  7559  	urls += "?" + c.urlParams_.Encode()
  7560  	req, err := http.NewRequest("DELETE", urls, body)
  7561  	if err != nil {
  7562  		return nil, err
  7563  	}
  7564  	req.Header = reqHeaders
  7565  	googleapi.Expand(req.URL, map[string]string{
  7566  		"name": c.name,
  7567  	})
  7568  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7569  }
  7570  
  7571  // Do executes the "run.namespaces.revisions.delete" call.
  7572  // Any non-2xx status code is an error. Response headers are in either
  7573  // *Status.ServerResponse.Header or (if a response was returned at all) in
  7574  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7575  // whether the returned error was because http.StatusNotModified was returned.
  7576  func (c *NamespacesRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
  7577  	gensupport.SetOptions(c.urlParams_, opts...)
  7578  	res, err := c.doRequest("json")
  7579  	if res != nil && res.StatusCode == http.StatusNotModified {
  7580  		if res.Body != nil {
  7581  			res.Body.Close()
  7582  		}
  7583  		return nil, gensupport.WrapError(&googleapi.Error{
  7584  			Code:   res.StatusCode,
  7585  			Header: res.Header,
  7586  		})
  7587  	}
  7588  	if err != nil {
  7589  		return nil, err
  7590  	}
  7591  	defer googleapi.CloseBody(res)
  7592  	if err := googleapi.CheckResponse(res); err != nil {
  7593  		return nil, gensupport.WrapError(err)
  7594  	}
  7595  	ret := &Status{
  7596  		ServerResponse: googleapi.ServerResponse{
  7597  			Header:         res.Header,
  7598  			HTTPStatusCode: res.StatusCode,
  7599  		},
  7600  	}
  7601  	target := &ret
  7602  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7603  		return nil, err
  7604  	}
  7605  	return ret, nil
  7606  }
  7607  
  7608  type NamespacesRevisionsGetCall struct {
  7609  	s            *APIService
  7610  	name         string
  7611  	urlParams_   gensupport.URLParams
  7612  	ifNoneMatch_ string
  7613  	ctx_         context.Context
  7614  	header_      http.Header
  7615  }
  7616  
  7617  // Get: Get information about a revision.
  7618  //
  7619  //   - name: The name of the revision to retrieve. For Cloud Run (fully managed),
  7620  //     replace {namespace} with the project ID or number. It takes the form
  7621  //     namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  7622  func (r *NamespacesRevisionsService) Get(name string) *NamespacesRevisionsGetCall {
  7623  	c := &NamespacesRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7624  	c.name = name
  7625  	return c
  7626  }
  7627  
  7628  // Fields allows partial responses to be retrieved. See
  7629  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7630  // details.
  7631  func (c *NamespacesRevisionsGetCall) Fields(s ...googleapi.Field) *NamespacesRevisionsGetCall {
  7632  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7633  	return c
  7634  }
  7635  
  7636  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7637  // object's ETag matches the given value. This is useful for getting updates
  7638  // only after the object has changed since the last request.
  7639  func (c *NamespacesRevisionsGetCall) IfNoneMatch(entityTag string) *NamespacesRevisionsGetCall {
  7640  	c.ifNoneMatch_ = entityTag
  7641  	return c
  7642  }
  7643  
  7644  // Context sets the context to be used in this call's Do method.
  7645  func (c *NamespacesRevisionsGetCall) Context(ctx context.Context) *NamespacesRevisionsGetCall {
  7646  	c.ctx_ = ctx
  7647  	return c
  7648  }
  7649  
  7650  // Header returns a http.Header that can be modified by the caller to add
  7651  // headers to the request.
  7652  func (c *NamespacesRevisionsGetCall) Header() http.Header {
  7653  	if c.header_ == nil {
  7654  		c.header_ = make(http.Header)
  7655  	}
  7656  	return c.header_
  7657  }
  7658  
  7659  func (c *NamespacesRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
  7660  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7661  	if c.ifNoneMatch_ != "" {
  7662  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7663  	}
  7664  	var body io.Reader = nil
  7665  	c.urlParams_.Set("alt", alt)
  7666  	c.urlParams_.Set("prettyPrint", "false")
  7667  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
  7668  	urls += "?" + c.urlParams_.Encode()
  7669  	req, err := http.NewRequest("GET", urls, body)
  7670  	if err != nil {
  7671  		return nil, err
  7672  	}
  7673  	req.Header = reqHeaders
  7674  	googleapi.Expand(req.URL, map[string]string{
  7675  		"name": c.name,
  7676  	})
  7677  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7678  }
  7679  
  7680  // Do executes the "run.namespaces.revisions.get" call.
  7681  // Any non-2xx status code is an error. Response headers are in either
  7682  // *Revision.ServerResponse.Header or (if a response was returned at all) in
  7683  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7684  // whether the returned error was because http.StatusNotModified was returned.
  7685  func (c *NamespacesRevisionsGetCall) Do(opts ...googleapi.CallOption) (*Revision, error) {
  7686  	gensupport.SetOptions(c.urlParams_, opts...)
  7687  	res, err := c.doRequest("json")
  7688  	if res != nil && res.StatusCode == http.StatusNotModified {
  7689  		if res.Body != nil {
  7690  			res.Body.Close()
  7691  		}
  7692  		return nil, gensupport.WrapError(&googleapi.Error{
  7693  			Code:   res.StatusCode,
  7694  			Header: res.Header,
  7695  		})
  7696  	}
  7697  	if err != nil {
  7698  		return nil, err
  7699  	}
  7700  	defer googleapi.CloseBody(res)
  7701  	if err := googleapi.CheckResponse(res); err != nil {
  7702  		return nil, gensupport.WrapError(err)
  7703  	}
  7704  	ret := &Revision{
  7705  		ServerResponse: googleapi.ServerResponse{
  7706  			Header:         res.Header,
  7707  			HTTPStatusCode: res.StatusCode,
  7708  		},
  7709  	}
  7710  	target := &ret
  7711  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7712  		return nil, err
  7713  	}
  7714  	return ret, nil
  7715  }
  7716  
  7717  type NamespacesRevisionsListCall struct {
  7718  	s            *APIService
  7719  	parent       string
  7720  	urlParams_   gensupport.URLParams
  7721  	ifNoneMatch_ string
  7722  	ctx_         context.Context
  7723  	header_      http.Header
  7724  }
  7725  
  7726  // List: List revisions.
  7727  //
  7728  //   - parent: The namespace from which the revisions should be listed. For Cloud
  7729  //     Run (fully managed), replace {namespace} with the project ID or number. It
  7730  //     takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  7731  func (r *NamespacesRevisionsService) List(parent string) *NamespacesRevisionsListCall {
  7732  	c := &NamespacesRevisionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7733  	c.parent = parent
  7734  	return c
  7735  }
  7736  
  7737  // Continue sets the optional parameter "continue": Encoded string to continue
  7738  // paging.
  7739  func (c *NamespacesRevisionsListCall) Continue(continue_ string) *NamespacesRevisionsListCall {
  7740  	c.urlParams_.Set("continue", continue_)
  7741  	return c
  7742  }
  7743  
  7744  // FieldSelector sets the optional parameter "fieldSelector": Allows to filter
  7745  // resources based on a specific value for a field name. Send this in a query
  7746  // string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud
  7747  // Run.
  7748  func (c *NamespacesRevisionsListCall) FieldSelector(fieldSelector string) *NamespacesRevisionsListCall {
  7749  	c.urlParams_.Set("fieldSelector", fieldSelector)
  7750  	return c
  7751  }
  7752  
  7753  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
  7754  // currently used by Cloud Run.
  7755  func (c *NamespacesRevisionsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesRevisionsListCall {
  7756  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
  7757  	return c
  7758  }
  7759  
  7760  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
  7761  // resources based on a label. Supported operations are =, !=, exists, in, and
  7762  // notIn.
  7763  func (c *NamespacesRevisionsListCall) LabelSelector(labelSelector string) *NamespacesRevisionsListCall {
  7764  	c.urlParams_.Set("labelSelector", labelSelector)
  7765  	return c
  7766  }
  7767  
  7768  // Limit sets the optional parameter "limit": The maximum number of records
  7769  // that should be returned.
  7770  func (c *NamespacesRevisionsListCall) Limit(limit int64) *NamespacesRevisionsListCall {
  7771  	c.urlParams_.Set("limit", fmt.Sprint(limit))
  7772  	return c
  7773  }
  7774  
  7775  // ResourceVersion sets the optional parameter "resourceVersion": The baseline
  7776  // resource version from which the list or watch operation should start. Not
  7777  // currently used by Cloud Run.
  7778  func (c *NamespacesRevisionsListCall) ResourceVersion(resourceVersion string) *NamespacesRevisionsListCall {
  7779  	c.urlParams_.Set("resourceVersion", resourceVersion)
  7780  	return c
  7781  }
  7782  
  7783  // Watch sets the optional parameter "watch": Flag that indicates that the
  7784  // client expects to watch this resource as well. Not currently used by Cloud
  7785  // Run.
  7786  func (c *NamespacesRevisionsListCall) Watch(watch bool) *NamespacesRevisionsListCall {
  7787  	c.urlParams_.Set("watch", fmt.Sprint(watch))
  7788  	return c
  7789  }
  7790  
  7791  // Fields allows partial responses to be retrieved. See
  7792  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7793  // details.
  7794  func (c *NamespacesRevisionsListCall) Fields(s ...googleapi.Field) *NamespacesRevisionsListCall {
  7795  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7796  	return c
  7797  }
  7798  
  7799  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7800  // object's ETag matches the given value. This is useful for getting updates
  7801  // only after the object has changed since the last request.
  7802  func (c *NamespacesRevisionsListCall) IfNoneMatch(entityTag string) *NamespacesRevisionsListCall {
  7803  	c.ifNoneMatch_ = entityTag
  7804  	return c
  7805  }
  7806  
  7807  // Context sets the context to be used in this call's Do method.
  7808  func (c *NamespacesRevisionsListCall) Context(ctx context.Context) *NamespacesRevisionsListCall {
  7809  	c.ctx_ = ctx
  7810  	return c
  7811  }
  7812  
  7813  // Header returns a http.Header that can be modified by the caller to add
  7814  // headers to the request.
  7815  func (c *NamespacesRevisionsListCall) Header() http.Header {
  7816  	if c.header_ == nil {
  7817  		c.header_ = make(http.Header)
  7818  	}
  7819  	return c.header_
  7820  }
  7821  
  7822  func (c *NamespacesRevisionsListCall) doRequest(alt string) (*http.Response, error) {
  7823  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7824  	if c.ifNoneMatch_ != "" {
  7825  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7826  	}
  7827  	var body io.Reader = nil
  7828  	c.urlParams_.Set("alt", alt)
  7829  	c.urlParams_.Set("prettyPrint", "false")
  7830  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/revisions")
  7831  	urls += "?" + c.urlParams_.Encode()
  7832  	req, err := http.NewRequest("GET", urls, body)
  7833  	if err != nil {
  7834  		return nil, err
  7835  	}
  7836  	req.Header = reqHeaders
  7837  	googleapi.Expand(req.URL, map[string]string{
  7838  		"parent": c.parent,
  7839  	})
  7840  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7841  }
  7842  
  7843  // Do executes the "run.namespaces.revisions.list" call.
  7844  // Any non-2xx status code is an error. Response headers are in either
  7845  // *ListRevisionsResponse.ServerResponse.Header or (if a response was returned
  7846  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7847  // check whether the returned error was because http.StatusNotModified was
  7848  // returned.
  7849  func (c *NamespacesRevisionsListCall) Do(opts ...googleapi.CallOption) (*ListRevisionsResponse, error) {
  7850  	gensupport.SetOptions(c.urlParams_, opts...)
  7851  	res, err := c.doRequest("json")
  7852  	if res != nil && res.StatusCode == http.StatusNotModified {
  7853  		if res.Body != nil {
  7854  			res.Body.Close()
  7855  		}
  7856  		return nil, gensupport.WrapError(&googleapi.Error{
  7857  			Code:   res.StatusCode,
  7858  			Header: res.Header,
  7859  		})
  7860  	}
  7861  	if err != nil {
  7862  		return nil, err
  7863  	}
  7864  	defer googleapi.CloseBody(res)
  7865  	if err := googleapi.CheckResponse(res); err != nil {
  7866  		return nil, gensupport.WrapError(err)
  7867  	}
  7868  	ret := &ListRevisionsResponse{
  7869  		ServerResponse: googleapi.ServerResponse{
  7870  			Header:         res.Header,
  7871  			HTTPStatusCode: res.StatusCode,
  7872  		},
  7873  	}
  7874  	target := &ret
  7875  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7876  		return nil, err
  7877  	}
  7878  	return ret, nil
  7879  }
  7880  
  7881  type NamespacesRoutesGetCall struct {
  7882  	s            *APIService
  7883  	name         string
  7884  	urlParams_   gensupport.URLParams
  7885  	ifNoneMatch_ string
  7886  	ctx_         context.Context
  7887  	header_      http.Header
  7888  }
  7889  
  7890  // Get: Get information about a route.
  7891  //
  7892  //   - name: The name of the route to retrieve. For Cloud Run (fully managed),
  7893  //     replace {namespace} with the project ID or number. It takes the form
  7894  //     namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  7895  func (r *NamespacesRoutesService) Get(name string) *NamespacesRoutesGetCall {
  7896  	c := &NamespacesRoutesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7897  	c.name = name
  7898  	return c
  7899  }
  7900  
  7901  // Fields allows partial responses to be retrieved. See
  7902  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7903  // details.
  7904  func (c *NamespacesRoutesGetCall) Fields(s ...googleapi.Field) *NamespacesRoutesGetCall {
  7905  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7906  	return c
  7907  }
  7908  
  7909  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7910  // object's ETag matches the given value. This is useful for getting updates
  7911  // only after the object has changed since the last request.
  7912  func (c *NamespacesRoutesGetCall) IfNoneMatch(entityTag string) *NamespacesRoutesGetCall {
  7913  	c.ifNoneMatch_ = entityTag
  7914  	return c
  7915  }
  7916  
  7917  // Context sets the context to be used in this call's Do method.
  7918  func (c *NamespacesRoutesGetCall) Context(ctx context.Context) *NamespacesRoutesGetCall {
  7919  	c.ctx_ = ctx
  7920  	return c
  7921  }
  7922  
  7923  // Header returns a http.Header that can be modified by the caller to add
  7924  // headers to the request.
  7925  func (c *NamespacesRoutesGetCall) Header() http.Header {
  7926  	if c.header_ == nil {
  7927  		c.header_ = make(http.Header)
  7928  	}
  7929  	return c.header_
  7930  }
  7931  
  7932  func (c *NamespacesRoutesGetCall) doRequest(alt string) (*http.Response, error) {
  7933  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7934  	if c.ifNoneMatch_ != "" {
  7935  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7936  	}
  7937  	var body io.Reader = nil
  7938  	c.urlParams_.Set("alt", alt)
  7939  	c.urlParams_.Set("prettyPrint", "false")
  7940  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
  7941  	urls += "?" + c.urlParams_.Encode()
  7942  	req, err := http.NewRequest("GET", urls, body)
  7943  	if err != nil {
  7944  		return nil, err
  7945  	}
  7946  	req.Header = reqHeaders
  7947  	googleapi.Expand(req.URL, map[string]string{
  7948  		"name": c.name,
  7949  	})
  7950  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7951  }
  7952  
  7953  // Do executes the "run.namespaces.routes.get" call.
  7954  // Any non-2xx status code is an error. Response headers are in either
  7955  // *Route.ServerResponse.Header or (if a response was returned at all) in
  7956  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7957  // whether the returned error was because http.StatusNotModified was returned.
  7958  func (c *NamespacesRoutesGetCall) Do(opts ...googleapi.CallOption) (*Route, error) {
  7959  	gensupport.SetOptions(c.urlParams_, opts...)
  7960  	res, err := c.doRequest("json")
  7961  	if res != nil && res.StatusCode == http.StatusNotModified {
  7962  		if res.Body != nil {
  7963  			res.Body.Close()
  7964  		}
  7965  		return nil, gensupport.WrapError(&googleapi.Error{
  7966  			Code:   res.StatusCode,
  7967  			Header: res.Header,
  7968  		})
  7969  	}
  7970  	if err != nil {
  7971  		return nil, err
  7972  	}
  7973  	defer googleapi.CloseBody(res)
  7974  	if err := googleapi.CheckResponse(res); err != nil {
  7975  		return nil, gensupport.WrapError(err)
  7976  	}
  7977  	ret := &Route{
  7978  		ServerResponse: googleapi.ServerResponse{
  7979  			Header:         res.Header,
  7980  			HTTPStatusCode: res.StatusCode,
  7981  		},
  7982  	}
  7983  	target := &ret
  7984  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7985  		return nil, err
  7986  	}
  7987  	return ret, nil
  7988  }
  7989  
  7990  type NamespacesRoutesListCall struct {
  7991  	s            *APIService
  7992  	parent       string
  7993  	urlParams_   gensupport.URLParams
  7994  	ifNoneMatch_ string
  7995  	ctx_         context.Context
  7996  	header_      http.Header
  7997  }
  7998  
  7999  // List: List routes.
  8000  //
  8001  //   - parent: The namespace from which the routes should be listed. For Cloud
  8002  //     Run (fully managed), replace {namespace} with the project ID or number. It
  8003  //     takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  8004  func (r *NamespacesRoutesService) List(parent string) *NamespacesRoutesListCall {
  8005  	c := &NamespacesRoutesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8006  	c.parent = parent
  8007  	return c
  8008  }
  8009  
  8010  // Continue sets the optional parameter "continue": Encoded string to continue
  8011  // paging.
  8012  func (c *NamespacesRoutesListCall) Continue(continue_ string) *NamespacesRoutesListCall {
  8013  	c.urlParams_.Set("continue", continue_)
  8014  	return c
  8015  }
  8016  
  8017  // FieldSelector sets the optional parameter "fieldSelector": Allows to filter
  8018  // resources based on a specific value for a field name. Send this in a query
  8019  // string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud
  8020  // Run.
  8021  func (c *NamespacesRoutesListCall) FieldSelector(fieldSelector string) *NamespacesRoutesListCall {
  8022  	c.urlParams_.Set("fieldSelector", fieldSelector)
  8023  	return c
  8024  }
  8025  
  8026  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
  8027  // currently used by Cloud Run.
  8028  func (c *NamespacesRoutesListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesRoutesListCall {
  8029  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
  8030  	return c
  8031  }
  8032  
  8033  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
  8034  // resources based on a label. Supported operations are =, !=, exists, in, and
  8035  // notIn.
  8036  func (c *NamespacesRoutesListCall) LabelSelector(labelSelector string) *NamespacesRoutesListCall {
  8037  	c.urlParams_.Set("labelSelector", labelSelector)
  8038  	return c
  8039  }
  8040  
  8041  // Limit sets the optional parameter "limit": The maximum number of records
  8042  // that should be returned.
  8043  func (c *NamespacesRoutesListCall) Limit(limit int64) *NamespacesRoutesListCall {
  8044  	c.urlParams_.Set("limit", fmt.Sprint(limit))
  8045  	return c
  8046  }
  8047  
  8048  // ResourceVersion sets the optional parameter "resourceVersion": The baseline
  8049  // resource version from which the list or watch operation should start. Not
  8050  // currently used by Cloud Run.
  8051  func (c *NamespacesRoutesListCall) ResourceVersion(resourceVersion string) *NamespacesRoutesListCall {
  8052  	c.urlParams_.Set("resourceVersion", resourceVersion)
  8053  	return c
  8054  }
  8055  
  8056  // Watch sets the optional parameter "watch": Flag that indicates that the
  8057  // client expects to watch this resource as well. Not currently used by Cloud
  8058  // Run.
  8059  func (c *NamespacesRoutesListCall) Watch(watch bool) *NamespacesRoutesListCall {
  8060  	c.urlParams_.Set("watch", fmt.Sprint(watch))
  8061  	return c
  8062  }
  8063  
  8064  // Fields allows partial responses to be retrieved. See
  8065  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8066  // details.
  8067  func (c *NamespacesRoutesListCall) Fields(s ...googleapi.Field) *NamespacesRoutesListCall {
  8068  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8069  	return c
  8070  }
  8071  
  8072  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8073  // object's ETag matches the given value. This is useful for getting updates
  8074  // only after the object has changed since the last request.
  8075  func (c *NamespacesRoutesListCall) IfNoneMatch(entityTag string) *NamespacesRoutesListCall {
  8076  	c.ifNoneMatch_ = entityTag
  8077  	return c
  8078  }
  8079  
  8080  // Context sets the context to be used in this call's Do method.
  8081  func (c *NamespacesRoutesListCall) Context(ctx context.Context) *NamespacesRoutesListCall {
  8082  	c.ctx_ = ctx
  8083  	return c
  8084  }
  8085  
  8086  // Header returns a http.Header that can be modified by the caller to add
  8087  // headers to the request.
  8088  func (c *NamespacesRoutesListCall) Header() http.Header {
  8089  	if c.header_ == nil {
  8090  		c.header_ = make(http.Header)
  8091  	}
  8092  	return c.header_
  8093  }
  8094  
  8095  func (c *NamespacesRoutesListCall) doRequest(alt string) (*http.Response, error) {
  8096  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8097  	if c.ifNoneMatch_ != "" {
  8098  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8099  	}
  8100  	var body io.Reader = nil
  8101  	c.urlParams_.Set("alt", alt)
  8102  	c.urlParams_.Set("prettyPrint", "false")
  8103  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/routes")
  8104  	urls += "?" + c.urlParams_.Encode()
  8105  	req, err := http.NewRequest("GET", urls, body)
  8106  	if err != nil {
  8107  		return nil, err
  8108  	}
  8109  	req.Header = reqHeaders
  8110  	googleapi.Expand(req.URL, map[string]string{
  8111  		"parent": c.parent,
  8112  	})
  8113  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8114  }
  8115  
  8116  // Do executes the "run.namespaces.routes.list" call.
  8117  // Any non-2xx status code is an error. Response headers are in either
  8118  // *ListRoutesResponse.ServerResponse.Header or (if a response was returned at
  8119  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8120  // check whether the returned error was because http.StatusNotModified was
  8121  // returned.
  8122  func (c *NamespacesRoutesListCall) Do(opts ...googleapi.CallOption) (*ListRoutesResponse, error) {
  8123  	gensupport.SetOptions(c.urlParams_, opts...)
  8124  	res, err := c.doRequest("json")
  8125  	if res != nil && res.StatusCode == http.StatusNotModified {
  8126  		if res.Body != nil {
  8127  			res.Body.Close()
  8128  		}
  8129  		return nil, gensupport.WrapError(&googleapi.Error{
  8130  			Code:   res.StatusCode,
  8131  			Header: res.Header,
  8132  		})
  8133  	}
  8134  	if err != nil {
  8135  		return nil, err
  8136  	}
  8137  	defer googleapi.CloseBody(res)
  8138  	if err := googleapi.CheckResponse(res); err != nil {
  8139  		return nil, gensupport.WrapError(err)
  8140  	}
  8141  	ret := &ListRoutesResponse{
  8142  		ServerResponse: googleapi.ServerResponse{
  8143  			Header:         res.Header,
  8144  			HTTPStatusCode: res.StatusCode,
  8145  		},
  8146  	}
  8147  	target := &ret
  8148  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8149  		return nil, err
  8150  	}
  8151  	return ret, nil
  8152  }
  8153  
  8154  type NamespacesServicesCreateCall struct {
  8155  	s          *APIService
  8156  	parent     string
  8157  	service    *Service
  8158  	urlParams_ gensupport.URLParams
  8159  	ctx_       context.Context
  8160  	header_    http.Header
  8161  }
  8162  
  8163  // Create: Creates a new Service. Service creation will trigger a new
  8164  // deployment. Use GetService, and check service.status to determine if the
  8165  // Service is ready.
  8166  //
  8167  //   - parent: The resource's parent. In Cloud Run, it may be one of the
  8168  //     following: * `{project_id_or_number}` *
  8169  //     `namespaces/{project_id_or_number}` *
  8170  //     `namespaces/{project_id_or_number}/services` *
  8171  //     `projects/{project_id_or_number}/locations/{region}` *
  8172  //     `projects/{project_id_or_number}/regions/{region}`.
  8173  func (r *NamespacesServicesService) Create(parent string, service *Service) *NamespacesServicesCreateCall {
  8174  	c := &NamespacesServicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8175  	c.parent = parent
  8176  	c.service = service
  8177  	return c
  8178  }
  8179  
  8180  // DryRun sets the optional parameter "dryRun": Indicates that the server
  8181  // should validate the request and populate default values without persisting
  8182  // the request. Supported values: `all`
  8183  func (c *NamespacesServicesCreateCall) DryRun(dryRun string) *NamespacesServicesCreateCall {
  8184  	c.urlParams_.Set("dryRun", dryRun)
  8185  	return c
  8186  }
  8187  
  8188  // Fields allows partial responses to be retrieved. See
  8189  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8190  // details.
  8191  func (c *NamespacesServicesCreateCall) Fields(s ...googleapi.Field) *NamespacesServicesCreateCall {
  8192  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8193  	return c
  8194  }
  8195  
  8196  // Context sets the context to be used in this call's Do method.
  8197  func (c *NamespacesServicesCreateCall) Context(ctx context.Context) *NamespacesServicesCreateCall {
  8198  	c.ctx_ = ctx
  8199  	return c
  8200  }
  8201  
  8202  // Header returns a http.Header that can be modified by the caller to add
  8203  // headers to the request.
  8204  func (c *NamespacesServicesCreateCall) Header() http.Header {
  8205  	if c.header_ == nil {
  8206  		c.header_ = make(http.Header)
  8207  	}
  8208  	return c.header_
  8209  }
  8210  
  8211  func (c *NamespacesServicesCreateCall) doRequest(alt string) (*http.Response, error) {
  8212  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8213  	var body io.Reader = nil
  8214  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
  8215  	if err != nil {
  8216  		return nil, err
  8217  	}
  8218  	c.urlParams_.Set("alt", alt)
  8219  	c.urlParams_.Set("prettyPrint", "false")
  8220  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/services")
  8221  	urls += "?" + c.urlParams_.Encode()
  8222  	req, err := http.NewRequest("POST", urls, body)
  8223  	if err != nil {
  8224  		return nil, err
  8225  	}
  8226  	req.Header = reqHeaders
  8227  	googleapi.Expand(req.URL, map[string]string{
  8228  		"parent": c.parent,
  8229  	})
  8230  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8231  }
  8232  
  8233  // Do executes the "run.namespaces.services.create" call.
  8234  // Any non-2xx status code is an error. Response headers are in either
  8235  // *Service.ServerResponse.Header or (if a response was returned at all) in
  8236  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8237  // whether the returned error was because http.StatusNotModified was returned.
  8238  func (c *NamespacesServicesCreateCall) Do(opts ...googleapi.CallOption) (*Service, error) {
  8239  	gensupport.SetOptions(c.urlParams_, opts...)
  8240  	res, err := c.doRequest("json")
  8241  	if res != nil && res.StatusCode == http.StatusNotModified {
  8242  		if res.Body != nil {
  8243  			res.Body.Close()
  8244  		}
  8245  		return nil, gensupport.WrapError(&googleapi.Error{
  8246  			Code:   res.StatusCode,
  8247  			Header: res.Header,
  8248  		})
  8249  	}
  8250  	if err != nil {
  8251  		return nil, err
  8252  	}
  8253  	defer googleapi.CloseBody(res)
  8254  	if err := googleapi.CheckResponse(res); err != nil {
  8255  		return nil, gensupport.WrapError(err)
  8256  	}
  8257  	ret := &Service{
  8258  		ServerResponse: googleapi.ServerResponse{
  8259  			Header:         res.Header,
  8260  			HTTPStatusCode: res.StatusCode,
  8261  		},
  8262  	}
  8263  	target := &ret
  8264  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8265  		return nil, err
  8266  	}
  8267  	return ret, nil
  8268  }
  8269  
  8270  type NamespacesServicesDeleteCall struct {
  8271  	s          *APIService
  8272  	name       string
  8273  	urlParams_ gensupport.URLParams
  8274  	ctx_       context.Context
  8275  	header_    http.Header
  8276  }
  8277  
  8278  // Delete: Deletes the provided service. This will cause the Service to stop
  8279  // serving traffic and will delete all associated Revisions.
  8280  //
  8281  //   - name: The fully qualified name of the service to delete. It can be any of
  8282  //     the following forms: *
  8283  //     `namespaces/{project_id_or_number}/services/{service_name}` (only when the
  8284  //     `endpoint` is regional) *
  8285  //     `projects/{project_id_or_number}/locations/{region}/services/{service_name}
  8286  //     ` *
  8287  //     `projects/{project_id_or_number}/regions/{region}/services/{service_name}`.
  8288  func (r *NamespacesServicesService) Delete(name string) *NamespacesServicesDeleteCall {
  8289  	c := &NamespacesServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8290  	c.name = name
  8291  	return c
  8292  }
  8293  
  8294  // ApiVersion sets the optional parameter "apiVersion": Not supported, and
  8295  // ignored by Cloud Run.
  8296  func (c *NamespacesServicesDeleteCall) ApiVersion(apiVersion string) *NamespacesServicesDeleteCall {
  8297  	c.urlParams_.Set("apiVersion", apiVersion)
  8298  	return c
  8299  }
  8300  
  8301  // DryRun sets the optional parameter "dryRun": Indicates that the server
  8302  // should validate the request and populate default values without persisting
  8303  // the request. Supported values: `all`
  8304  func (c *NamespacesServicesDeleteCall) DryRun(dryRun string) *NamespacesServicesDeleteCall {
  8305  	c.urlParams_.Set("dryRun", dryRun)
  8306  	return c
  8307  }
  8308  
  8309  // Kind sets the optional parameter "kind": Not supported, and ignored by Cloud
  8310  // Run.
  8311  func (c *NamespacesServicesDeleteCall) Kind(kind string) *NamespacesServicesDeleteCall {
  8312  	c.urlParams_.Set("kind", kind)
  8313  	return c
  8314  }
  8315  
  8316  // PropagationPolicy sets the optional parameter "propagationPolicy": Not
  8317  // supported, and ignored by Cloud Run.
  8318  func (c *NamespacesServicesDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesServicesDeleteCall {
  8319  	c.urlParams_.Set("propagationPolicy", propagationPolicy)
  8320  	return c
  8321  }
  8322  
  8323  // Fields allows partial responses to be retrieved. See
  8324  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8325  // details.
  8326  func (c *NamespacesServicesDeleteCall) Fields(s ...googleapi.Field) *NamespacesServicesDeleteCall {
  8327  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8328  	return c
  8329  }
  8330  
  8331  // Context sets the context to be used in this call's Do method.
  8332  func (c *NamespacesServicesDeleteCall) Context(ctx context.Context) *NamespacesServicesDeleteCall {
  8333  	c.ctx_ = ctx
  8334  	return c
  8335  }
  8336  
  8337  // Header returns a http.Header that can be modified by the caller to add
  8338  // headers to the request.
  8339  func (c *NamespacesServicesDeleteCall) Header() http.Header {
  8340  	if c.header_ == nil {
  8341  		c.header_ = make(http.Header)
  8342  	}
  8343  	return c.header_
  8344  }
  8345  
  8346  func (c *NamespacesServicesDeleteCall) doRequest(alt string) (*http.Response, error) {
  8347  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8348  	var body io.Reader = nil
  8349  	c.urlParams_.Set("alt", alt)
  8350  	c.urlParams_.Set("prettyPrint", "false")
  8351  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
  8352  	urls += "?" + c.urlParams_.Encode()
  8353  	req, err := http.NewRequest("DELETE", urls, body)
  8354  	if err != nil {
  8355  		return nil, err
  8356  	}
  8357  	req.Header = reqHeaders
  8358  	googleapi.Expand(req.URL, map[string]string{
  8359  		"name": c.name,
  8360  	})
  8361  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8362  }
  8363  
  8364  // Do executes the "run.namespaces.services.delete" call.
  8365  // Any non-2xx status code is an error. Response headers are in either
  8366  // *Status.ServerResponse.Header or (if a response was returned at all) in
  8367  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8368  // whether the returned error was because http.StatusNotModified was returned.
  8369  func (c *NamespacesServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
  8370  	gensupport.SetOptions(c.urlParams_, opts...)
  8371  	res, err := c.doRequest("json")
  8372  	if res != nil && res.StatusCode == http.StatusNotModified {
  8373  		if res.Body != nil {
  8374  			res.Body.Close()
  8375  		}
  8376  		return nil, gensupport.WrapError(&googleapi.Error{
  8377  			Code:   res.StatusCode,
  8378  			Header: res.Header,
  8379  		})
  8380  	}
  8381  	if err != nil {
  8382  		return nil, err
  8383  	}
  8384  	defer googleapi.CloseBody(res)
  8385  	if err := googleapi.CheckResponse(res); err != nil {
  8386  		return nil, gensupport.WrapError(err)
  8387  	}
  8388  	ret := &Status{
  8389  		ServerResponse: googleapi.ServerResponse{
  8390  			Header:         res.Header,
  8391  			HTTPStatusCode: res.StatusCode,
  8392  		},
  8393  	}
  8394  	target := &ret
  8395  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8396  		return nil, err
  8397  	}
  8398  	return ret, nil
  8399  }
  8400  
  8401  type NamespacesServicesGetCall struct {
  8402  	s            *APIService
  8403  	name         string
  8404  	urlParams_   gensupport.URLParams
  8405  	ifNoneMatch_ string
  8406  	ctx_         context.Context
  8407  	header_      http.Header
  8408  }
  8409  
  8410  // Get: Gets information about a service.
  8411  //
  8412  //   - name: The fully qualified name of the service to retrieve. It can be any
  8413  //     of the following forms: *
  8414  //     `namespaces/{project_id_or_number}/services/{service_name}` (only when the
  8415  //     `endpoint` is regional) *
  8416  //     `projects/{project_id_or_number}/locations/{region}/services/{service_name}
  8417  //     ` *
  8418  //     `projects/{project_id_or_number}/regions/{region}/services/{service_name}`.
  8419  func (r *NamespacesServicesService) Get(name string) *NamespacesServicesGetCall {
  8420  	c := &NamespacesServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8421  	c.name = name
  8422  	return c
  8423  }
  8424  
  8425  // Fields allows partial responses to be retrieved. See
  8426  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8427  // details.
  8428  func (c *NamespacesServicesGetCall) Fields(s ...googleapi.Field) *NamespacesServicesGetCall {
  8429  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8430  	return c
  8431  }
  8432  
  8433  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8434  // object's ETag matches the given value. This is useful for getting updates
  8435  // only after the object has changed since the last request.
  8436  func (c *NamespacesServicesGetCall) IfNoneMatch(entityTag string) *NamespacesServicesGetCall {
  8437  	c.ifNoneMatch_ = entityTag
  8438  	return c
  8439  }
  8440  
  8441  // Context sets the context to be used in this call's Do method.
  8442  func (c *NamespacesServicesGetCall) Context(ctx context.Context) *NamespacesServicesGetCall {
  8443  	c.ctx_ = ctx
  8444  	return c
  8445  }
  8446  
  8447  // Header returns a http.Header that can be modified by the caller to add
  8448  // headers to the request.
  8449  func (c *NamespacesServicesGetCall) Header() http.Header {
  8450  	if c.header_ == nil {
  8451  		c.header_ = make(http.Header)
  8452  	}
  8453  	return c.header_
  8454  }
  8455  
  8456  func (c *NamespacesServicesGetCall) doRequest(alt string) (*http.Response, error) {
  8457  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8458  	if c.ifNoneMatch_ != "" {
  8459  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8460  	}
  8461  	var body io.Reader = nil
  8462  	c.urlParams_.Set("alt", alt)
  8463  	c.urlParams_.Set("prettyPrint", "false")
  8464  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
  8465  	urls += "?" + c.urlParams_.Encode()
  8466  	req, err := http.NewRequest("GET", urls, body)
  8467  	if err != nil {
  8468  		return nil, err
  8469  	}
  8470  	req.Header = reqHeaders
  8471  	googleapi.Expand(req.URL, map[string]string{
  8472  		"name": c.name,
  8473  	})
  8474  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8475  }
  8476  
  8477  // Do executes the "run.namespaces.services.get" call.
  8478  // Any non-2xx status code is an error. Response headers are in either
  8479  // *Service.ServerResponse.Header or (if a response was returned at all) in
  8480  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8481  // whether the returned error was because http.StatusNotModified was returned.
  8482  func (c *NamespacesServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error) {
  8483  	gensupport.SetOptions(c.urlParams_, opts...)
  8484  	res, err := c.doRequest("json")
  8485  	if res != nil && res.StatusCode == http.StatusNotModified {
  8486  		if res.Body != nil {
  8487  			res.Body.Close()
  8488  		}
  8489  		return nil, gensupport.WrapError(&googleapi.Error{
  8490  			Code:   res.StatusCode,
  8491  			Header: res.Header,
  8492  		})
  8493  	}
  8494  	if err != nil {
  8495  		return nil, err
  8496  	}
  8497  	defer googleapi.CloseBody(res)
  8498  	if err := googleapi.CheckResponse(res); err != nil {
  8499  		return nil, gensupport.WrapError(err)
  8500  	}
  8501  	ret := &Service{
  8502  		ServerResponse: googleapi.ServerResponse{
  8503  			Header:         res.Header,
  8504  			HTTPStatusCode: res.StatusCode,
  8505  		},
  8506  	}
  8507  	target := &ret
  8508  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8509  		return nil, err
  8510  	}
  8511  	return ret, nil
  8512  }
  8513  
  8514  type NamespacesServicesListCall struct {
  8515  	s            *APIService
  8516  	parent       string
  8517  	urlParams_   gensupport.URLParams
  8518  	ifNoneMatch_ string
  8519  	ctx_         context.Context
  8520  	header_      http.Header
  8521  }
  8522  
  8523  // List: Lists services for the given project and region.
  8524  //
  8525  //   - parent: The parent from where the resources should be listed. In Cloud
  8526  //     Run, it may be one of the following: * `{project_id_or_number}` *
  8527  //     `namespaces/{project_id_or_number}` *
  8528  //     `namespaces/{project_id_or_number}/services` *
  8529  //     `projects/{project_id_or_number}/locations/{region}` *
  8530  //     `projects/{project_id_or_number}/regions/{region}`.
  8531  func (r *NamespacesServicesService) List(parent string) *NamespacesServicesListCall {
  8532  	c := &NamespacesServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8533  	c.parent = parent
  8534  	return c
  8535  }
  8536  
  8537  // Continue sets the optional parameter "continue": Encoded string to continue
  8538  // paging.
  8539  func (c *NamespacesServicesListCall) Continue(continue_ string) *NamespacesServicesListCall {
  8540  	c.urlParams_.Set("continue", continue_)
  8541  	return c
  8542  }
  8543  
  8544  // FieldSelector sets the optional parameter "fieldSelector": Not supported,
  8545  // and ignored by Cloud Run.
  8546  func (c *NamespacesServicesListCall) FieldSelector(fieldSelector string) *NamespacesServicesListCall {
  8547  	c.urlParams_.Set("fieldSelector", fieldSelector)
  8548  	return c
  8549  }
  8550  
  8551  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
  8552  // supported, and ignored by Cloud Run.
  8553  func (c *NamespacesServicesListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesServicesListCall {
  8554  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
  8555  	return c
  8556  }
  8557  
  8558  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
  8559  // resources based on a label. Supported operations are =, !=, exists, in, and
  8560  // notIn.
  8561  func (c *NamespacesServicesListCall) LabelSelector(labelSelector string) *NamespacesServicesListCall {
  8562  	c.urlParams_.Set("labelSelector", labelSelector)
  8563  	return c
  8564  }
  8565  
  8566  // Limit sets the optional parameter "limit": The maximum number of records
  8567  // that should be returned.
  8568  func (c *NamespacesServicesListCall) Limit(limit int64) *NamespacesServicesListCall {
  8569  	c.urlParams_.Set("limit", fmt.Sprint(limit))
  8570  	return c
  8571  }
  8572  
  8573  // ResourceVersion sets the optional parameter "resourceVersion": Not
  8574  // supported, and ignored by Cloud Run.
  8575  func (c *NamespacesServicesListCall) ResourceVersion(resourceVersion string) *NamespacesServicesListCall {
  8576  	c.urlParams_.Set("resourceVersion", resourceVersion)
  8577  	return c
  8578  }
  8579  
  8580  // Watch sets the optional parameter "watch": Not supported, and ignored by
  8581  // Cloud Run.
  8582  func (c *NamespacesServicesListCall) Watch(watch bool) *NamespacesServicesListCall {
  8583  	c.urlParams_.Set("watch", fmt.Sprint(watch))
  8584  	return c
  8585  }
  8586  
  8587  // Fields allows partial responses to be retrieved. See
  8588  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8589  // details.
  8590  func (c *NamespacesServicesListCall) Fields(s ...googleapi.Field) *NamespacesServicesListCall {
  8591  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8592  	return c
  8593  }
  8594  
  8595  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8596  // object's ETag matches the given value. This is useful for getting updates
  8597  // only after the object has changed since the last request.
  8598  func (c *NamespacesServicesListCall) IfNoneMatch(entityTag string) *NamespacesServicesListCall {
  8599  	c.ifNoneMatch_ = entityTag
  8600  	return c
  8601  }
  8602  
  8603  // Context sets the context to be used in this call's Do method.
  8604  func (c *NamespacesServicesListCall) Context(ctx context.Context) *NamespacesServicesListCall {
  8605  	c.ctx_ = ctx
  8606  	return c
  8607  }
  8608  
  8609  // Header returns a http.Header that can be modified by the caller to add
  8610  // headers to the request.
  8611  func (c *NamespacesServicesListCall) Header() http.Header {
  8612  	if c.header_ == nil {
  8613  		c.header_ = make(http.Header)
  8614  	}
  8615  	return c.header_
  8616  }
  8617  
  8618  func (c *NamespacesServicesListCall) doRequest(alt string) (*http.Response, error) {
  8619  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8620  	if c.ifNoneMatch_ != "" {
  8621  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8622  	}
  8623  	var body io.Reader = nil
  8624  	c.urlParams_.Set("alt", alt)
  8625  	c.urlParams_.Set("prettyPrint", "false")
  8626  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/services")
  8627  	urls += "?" + c.urlParams_.Encode()
  8628  	req, err := http.NewRequest("GET", urls, body)
  8629  	if err != nil {
  8630  		return nil, err
  8631  	}
  8632  	req.Header = reqHeaders
  8633  	googleapi.Expand(req.URL, map[string]string{
  8634  		"parent": c.parent,
  8635  	})
  8636  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8637  }
  8638  
  8639  // Do executes the "run.namespaces.services.list" call.
  8640  // Any non-2xx status code is an error. Response headers are in either
  8641  // *ListServicesResponse.ServerResponse.Header or (if a response was returned
  8642  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8643  // check whether the returned error was because http.StatusNotModified was
  8644  // returned.
  8645  func (c *NamespacesServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, error) {
  8646  	gensupport.SetOptions(c.urlParams_, opts...)
  8647  	res, err := c.doRequest("json")
  8648  	if res != nil && res.StatusCode == http.StatusNotModified {
  8649  		if res.Body != nil {
  8650  			res.Body.Close()
  8651  		}
  8652  		return nil, gensupport.WrapError(&googleapi.Error{
  8653  			Code:   res.StatusCode,
  8654  			Header: res.Header,
  8655  		})
  8656  	}
  8657  	if err != nil {
  8658  		return nil, err
  8659  	}
  8660  	defer googleapi.CloseBody(res)
  8661  	if err := googleapi.CheckResponse(res); err != nil {
  8662  		return nil, gensupport.WrapError(err)
  8663  	}
  8664  	ret := &ListServicesResponse{
  8665  		ServerResponse: googleapi.ServerResponse{
  8666  			Header:         res.Header,
  8667  			HTTPStatusCode: res.StatusCode,
  8668  		},
  8669  	}
  8670  	target := &ret
  8671  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8672  		return nil, err
  8673  	}
  8674  	return ret, nil
  8675  }
  8676  
  8677  type NamespacesServicesReplaceServiceCall struct {
  8678  	s          *APIService
  8679  	name       string
  8680  	service    *Service
  8681  	urlParams_ gensupport.URLParams
  8682  	ctx_       context.Context
  8683  	header_    http.Header
  8684  }
  8685  
  8686  // ReplaceService: Replaces a service. Only the spec and metadata labels and
  8687  // annotations are modifiable. After the Update request, Cloud Run will work to
  8688  // make the 'status' match the requested 'spec'. May provide
  8689  // metadata.resourceVersion to enforce update from last read for optimistic
  8690  // concurrency control.
  8691  //
  8692  //   - name: The fully qualified name of the service to replace. It can be any of
  8693  //     the following forms: *
  8694  //     `namespaces/{project_id_or_number}/services/{service_name}` (only when the
  8695  //     `endpoint` is regional) *
  8696  //     `projects/{project_id_or_number}/locations/{region}/services/{service_name}
  8697  //     ` *
  8698  //     `projects/{project_id_or_number}/regions/{region}/services/{service_name}`.
  8699  func (r *NamespacesServicesService) ReplaceService(name string, service *Service) *NamespacesServicesReplaceServiceCall {
  8700  	c := &NamespacesServicesReplaceServiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8701  	c.name = name
  8702  	c.service = service
  8703  	return c
  8704  }
  8705  
  8706  // DryRun sets the optional parameter "dryRun": Indicates that the server
  8707  // should validate the request and populate default values without persisting
  8708  // the request. Supported values: `all`
  8709  func (c *NamespacesServicesReplaceServiceCall) DryRun(dryRun string) *NamespacesServicesReplaceServiceCall {
  8710  	c.urlParams_.Set("dryRun", dryRun)
  8711  	return c
  8712  }
  8713  
  8714  // Fields allows partial responses to be retrieved. See
  8715  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8716  // details.
  8717  func (c *NamespacesServicesReplaceServiceCall) Fields(s ...googleapi.Field) *NamespacesServicesReplaceServiceCall {
  8718  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8719  	return c
  8720  }
  8721  
  8722  // Context sets the context to be used in this call's Do method.
  8723  func (c *NamespacesServicesReplaceServiceCall) Context(ctx context.Context) *NamespacesServicesReplaceServiceCall {
  8724  	c.ctx_ = ctx
  8725  	return c
  8726  }
  8727  
  8728  // Header returns a http.Header that can be modified by the caller to add
  8729  // headers to the request.
  8730  func (c *NamespacesServicesReplaceServiceCall) Header() http.Header {
  8731  	if c.header_ == nil {
  8732  		c.header_ = make(http.Header)
  8733  	}
  8734  	return c.header_
  8735  }
  8736  
  8737  func (c *NamespacesServicesReplaceServiceCall) doRequest(alt string) (*http.Response, error) {
  8738  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8739  	var body io.Reader = nil
  8740  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
  8741  	if err != nil {
  8742  		return nil, err
  8743  	}
  8744  	c.urlParams_.Set("alt", alt)
  8745  	c.urlParams_.Set("prettyPrint", "false")
  8746  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
  8747  	urls += "?" + c.urlParams_.Encode()
  8748  	req, err := http.NewRequest("PUT", urls, body)
  8749  	if err != nil {
  8750  		return nil, err
  8751  	}
  8752  	req.Header = reqHeaders
  8753  	googleapi.Expand(req.URL, map[string]string{
  8754  		"name": c.name,
  8755  	})
  8756  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8757  }
  8758  
  8759  // Do executes the "run.namespaces.services.replaceService" call.
  8760  // Any non-2xx status code is an error. Response headers are in either
  8761  // *Service.ServerResponse.Header or (if a response was returned at all) in
  8762  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8763  // whether the returned error was because http.StatusNotModified was returned.
  8764  func (c *NamespacesServicesReplaceServiceCall) Do(opts ...googleapi.CallOption) (*Service, error) {
  8765  	gensupport.SetOptions(c.urlParams_, opts...)
  8766  	res, err := c.doRequest("json")
  8767  	if res != nil && res.StatusCode == http.StatusNotModified {
  8768  		if res.Body != nil {
  8769  			res.Body.Close()
  8770  		}
  8771  		return nil, gensupport.WrapError(&googleapi.Error{
  8772  			Code:   res.StatusCode,
  8773  			Header: res.Header,
  8774  		})
  8775  	}
  8776  	if err != nil {
  8777  		return nil, err
  8778  	}
  8779  	defer googleapi.CloseBody(res)
  8780  	if err := googleapi.CheckResponse(res); err != nil {
  8781  		return nil, gensupport.WrapError(err)
  8782  	}
  8783  	ret := &Service{
  8784  		ServerResponse: googleapi.ServerResponse{
  8785  			Header:         res.Header,
  8786  			HTTPStatusCode: res.StatusCode,
  8787  		},
  8788  	}
  8789  	target := &ret
  8790  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8791  		return nil, err
  8792  	}
  8793  	return ret, nil
  8794  }
  8795  
  8796  type NamespacesTasksGetCall struct {
  8797  	s            *APIService
  8798  	name         string
  8799  	urlParams_   gensupport.URLParams
  8800  	ifNoneMatch_ string
  8801  	ctx_         context.Context
  8802  	header_      http.Header
  8803  }
  8804  
  8805  // Get: Get information about a task.
  8806  //
  8807  //   - name: The name of the task to retrieve. Replace {namespace} with the
  8808  //     project ID or number. It takes the form namespaces/{namespace}. For
  8809  //     example: namespaces/PROJECT_ID.
  8810  func (r *NamespacesTasksService) Get(name string) *NamespacesTasksGetCall {
  8811  	c := &NamespacesTasksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8812  	c.name = name
  8813  	return c
  8814  }
  8815  
  8816  // Fields allows partial responses to be retrieved. See
  8817  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8818  // details.
  8819  func (c *NamespacesTasksGetCall) Fields(s ...googleapi.Field) *NamespacesTasksGetCall {
  8820  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8821  	return c
  8822  }
  8823  
  8824  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8825  // object's ETag matches the given value. This is useful for getting updates
  8826  // only after the object has changed since the last request.
  8827  func (c *NamespacesTasksGetCall) IfNoneMatch(entityTag string) *NamespacesTasksGetCall {
  8828  	c.ifNoneMatch_ = entityTag
  8829  	return c
  8830  }
  8831  
  8832  // Context sets the context to be used in this call's Do method.
  8833  func (c *NamespacesTasksGetCall) Context(ctx context.Context) *NamespacesTasksGetCall {
  8834  	c.ctx_ = ctx
  8835  	return c
  8836  }
  8837  
  8838  // Header returns a http.Header that can be modified by the caller to add
  8839  // headers to the request.
  8840  func (c *NamespacesTasksGetCall) Header() http.Header {
  8841  	if c.header_ == nil {
  8842  		c.header_ = make(http.Header)
  8843  	}
  8844  	return c.header_
  8845  }
  8846  
  8847  func (c *NamespacesTasksGetCall) doRequest(alt string) (*http.Response, error) {
  8848  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8849  	if c.ifNoneMatch_ != "" {
  8850  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8851  	}
  8852  	var body io.Reader = nil
  8853  	c.urlParams_.Set("alt", alt)
  8854  	c.urlParams_.Set("prettyPrint", "false")
  8855  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1/{+name}")
  8856  	urls += "?" + c.urlParams_.Encode()
  8857  	req, err := http.NewRequest("GET", urls, body)
  8858  	if err != nil {
  8859  		return nil, err
  8860  	}
  8861  	req.Header = reqHeaders
  8862  	googleapi.Expand(req.URL, map[string]string{
  8863  		"name": c.name,
  8864  	})
  8865  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8866  }
  8867  
  8868  // Do executes the "run.namespaces.tasks.get" call.
  8869  // Any non-2xx status code is an error. Response headers are in either
  8870  // *Task.ServerResponse.Header or (if a response was returned at all) in
  8871  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8872  // whether the returned error was because http.StatusNotModified was returned.
  8873  func (c *NamespacesTasksGetCall) Do(opts ...googleapi.CallOption) (*Task, error) {
  8874  	gensupport.SetOptions(c.urlParams_, opts...)
  8875  	res, err := c.doRequest("json")
  8876  	if res != nil && res.StatusCode == http.StatusNotModified {
  8877  		if res.Body != nil {
  8878  			res.Body.Close()
  8879  		}
  8880  		return nil, gensupport.WrapError(&googleapi.Error{
  8881  			Code:   res.StatusCode,
  8882  			Header: res.Header,
  8883  		})
  8884  	}
  8885  	if err != nil {
  8886  		return nil, err
  8887  	}
  8888  	defer googleapi.CloseBody(res)
  8889  	if err := googleapi.CheckResponse(res); err != nil {
  8890  		return nil, gensupport.WrapError(err)
  8891  	}
  8892  	ret := &Task{
  8893  		ServerResponse: googleapi.ServerResponse{
  8894  			Header:         res.Header,
  8895  			HTTPStatusCode: res.StatusCode,
  8896  		},
  8897  	}
  8898  	target := &ret
  8899  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8900  		return nil, err
  8901  	}
  8902  	return ret, nil
  8903  }
  8904  
  8905  type NamespacesTasksListCall struct {
  8906  	s            *APIService
  8907  	parent       string
  8908  	urlParams_   gensupport.URLParams
  8909  	ifNoneMatch_ string
  8910  	ctx_         context.Context
  8911  	header_      http.Header
  8912  }
  8913  
  8914  // List: List tasks.
  8915  //
  8916  //   - parent: The namespace from which the tasks should be listed. Replace
  8917  //     {namespace} with the project ID or number. It takes the form
  8918  //     namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  8919  func (r *NamespacesTasksService) List(parent string) *NamespacesTasksListCall {
  8920  	c := &NamespacesTasksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8921  	c.parent = parent
  8922  	return c
  8923  }
  8924  
  8925  // Continue sets the optional parameter "continue": Optional encoded string to
  8926  // continue paging.
  8927  func (c *NamespacesTasksListCall) Continue(continue_ string) *NamespacesTasksListCall {
  8928  	c.urlParams_.Set("continue", continue_)
  8929  	return c
  8930  }
  8931  
  8932  // FieldSelector sets the optional parameter "fieldSelector": Not supported by
  8933  // Cloud Run.
  8934  func (c *NamespacesTasksListCall) FieldSelector(fieldSelector string) *NamespacesTasksListCall {
  8935  	c.urlParams_.Set("fieldSelector", fieldSelector)
  8936  	return c
  8937  }
  8938  
  8939  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
  8940  // supported by Cloud Run.
  8941  func (c *NamespacesTasksListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesTasksListCall {
  8942  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
  8943  	return c
  8944  }
  8945  
  8946  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
  8947  // resources based on a label. Supported operations are =, !=, exists, in, and
  8948  // notIn. For example, to list all tasks of execution "foo" in succeeded state:
  8949  // `run.googleapis.com/execution=foo,run.googleapis.com/runningState=Succeeded`.
  8950  //
  8951  //	Supported states are: * `Pending`: Initial state of all tasks. The task has
  8952  //
  8953  // not yet started but eventually will. * `Running`: Container instances for
  8954  // this task are running or will be running shortly. * `Succeeded`: No more
  8955  // container instances to run for the task, and the last attempt succeeded. *
  8956  // `Failed`: No more container instances to run for the task, and the last
  8957  // attempt failed. This task has run out of retry attempts. * `Cancelled`: Task
  8958  // was running but got stopped because its parent execution has been aborted. *
  8959  // `Abandoned`: The task has not yet started and never will because its parent
  8960  // execution has been aborted.
  8961  func (c *NamespacesTasksListCall) LabelSelector(labelSelector string) *NamespacesTasksListCall {
  8962  	c.urlParams_.Set("labelSelector", labelSelector)
  8963  	return c
  8964  }
  8965  
  8966  // Limit sets the optional parameter "limit": The maximum number of records
  8967  // that should be returned.
  8968  func (c *NamespacesTasksListCall) Limit(limit int64) *NamespacesTasksListCall {
  8969  	c.urlParams_.Set("limit", fmt.Sprint(limit))
  8970  	return c
  8971  }
  8972  
  8973  // ResourceVersion sets the optional parameter "resourceVersion": Not supported
  8974  // by Cloud Run.
  8975  func (c *NamespacesTasksListCall) ResourceVersion(resourceVersion string) *NamespacesTasksListCall {
  8976  	c.urlParams_.Set("resourceVersion", resourceVersion)
  8977  	return c
  8978  }
  8979  
  8980  // Watch sets the optional parameter "watch": Not supported by Cloud Run.
  8981  func (c *NamespacesTasksListCall) Watch(watch bool) *NamespacesTasksListCall {
  8982  	c.urlParams_.Set("watch", fmt.Sprint(watch))
  8983  	return c
  8984  }
  8985  
  8986  // Fields allows partial responses to be retrieved. See
  8987  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8988  // details.
  8989  func (c *NamespacesTasksListCall) Fields(s ...googleapi.Field) *NamespacesTasksListCall {
  8990  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8991  	return c
  8992  }
  8993  
  8994  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8995  // object's ETag matches the given value. This is useful for getting updates
  8996  // only after the object has changed since the last request.
  8997  func (c *NamespacesTasksListCall) IfNoneMatch(entityTag string) *NamespacesTasksListCall {
  8998  	c.ifNoneMatch_ = entityTag
  8999  	return c
  9000  }
  9001  
  9002  // Context sets the context to be used in this call's Do method.
  9003  func (c *NamespacesTasksListCall) Context(ctx context.Context) *NamespacesTasksListCall {
  9004  	c.ctx_ = ctx
  9005  	return c
  9006  }
  9007  
  9008  // Header returns a http.Header that can be modified by the caller to add
  9009  // headers to the request.
  9010  func (c *NamespacesTasksListCall) Header() http.Header {
  9011  	if c.header_ == nil {
  9012  		c.header_ = make(http.Header)
  9013  	}
  9014  	return c.header_
  9015  }
  9016  
  9017  func (c *NamespacesTasksListCall) doRequest(alt string) (*http.Response, error) {
  9018  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9019  	if c.ifNoneMatch_ != "" {
  9020  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9021  	}
  9022  	var body io.Reader = nil
  9023  	c.urlParams_.Set("alt", alt)
  9024  	c.urlParams_.Set("prettyPrint", "false")
  9025  	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/run.googleapis.com/v1/{+parent}/tasks")
  9026  	urls += "?" + c.urlParams_.Encode()
  9027  	req, err := http.NewRequest("GET", urls, body)
  9028  	if err != nil {
  9029  		return nil, err
  9030  	}
  9031  	req.Header = reqHeaders
  9032  	googleapi.Expand(req.URL, map[string]string{
  9033  		"parent": c.parent,
  9034  	})
  9035  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9036  }
  9037  
  9038  // Do executes the "run.namespaces.tasks.list" call.
  9039  // Any non-2xx status code is an error. Response headers are in either
  9040  // *ListTasksResponse.ServerResponse.Header or (if a response was returned at
  9041  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9042  // check whether the returned error was because http.StatusNotModified was
  9043  // returned.
  9044  func (c *NamespacesTasksListCall) Do(opts ...googleapi.CallOption) (*ListTasksResponse, error) {
  9045  	gensupport.SetOptions(c.urlParams_, opts...)
  9046  	res, err := c.doRequest("json")
  9047  	if res != nil && res.StatusCode == http.StatusNotModified {
  9048  		if res.Body != nil {
  9049  			res.Body.Close()
  9050  		}
  9051  		return nil, gensupport.WrapError(&googleapi.Error{
  9052  			Code:   res.StatusCode,
  9053  			Header: res.Header,
  9054  		})
  9055  	}
  9056  	if err != nil {
  9057  		return nil, err
  9058  	}
  9059  	defer googleapi.CloseBody(res)
  9060  	if err := googleapi.CheckResponse(res); err != nil {
  9061  		return nil, gensupport.WrapError(err)
  9062  	}
  9063  	ret := &ListTasksResponse{
  9064  		ServerResponse: googleapi.ServerResponse{
  9065  			Header:         res.Header,
  9066  			HTTPStatusCode: res.StatusCode,
  9067  		},
  9068  	}
  9069  	target := &ret
  9070  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9071  		return nil, err
  9072  	}
  9073  	return ret, nil
  9074  }
  9075  
  9076  type ProjectsAuthorizeddomainsListCall struct {
  9077  	s            *APIService
  9078  	parent       string
  9079  	urlParams_   gensupport.URLParams
  9080  	ifNoneMatch_ string
  9081  	ctx_         context.Context
  9082  	header_      http.Header
  9083  }
  9084  
  9085  // List: List authorized domains.
  9086  //
  9087  //   - parent: Name of the parent Project resource. Example:
  9088  //     `projects/myproject`.
  9089  func (r *ProjectsAuthorizeddomainsService) List(parent string) *ProjectsAuthorizeddomainsListCall {
  9090  	c := &ProjectsAuthorizeddomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9091  	c.parent = parent
  9092  	return c
  9093  }
  9094  
  9095  // PageSize sets the optional parameter "pageSize": Maximum results to return
  9096  // per page.
  9097  func (c *ProjectsAuthorizeddomainsListCall) PageSize(pageSize int64) *ProjectsAuthorizeddomainsListCall {
  9098  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9099  	return c
  9100  }
  9101  
  9102  // PageToken sets the optional parameter "pageToken": Continuation token for
  9103  // fetching the next page of results.
  9104  func (c *ProjectsAuthorizeddomainsListCall) PageToken(pageToken string) *ProjectsAuthorizeddomainsListCall {
  9105  	c.urlParams_.Set("pageToken", pageToken)
  9106  	return c
  9107  }
  9108  
  9109  // Fields allows partial responses to be retrieved. See
  9110  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9111  // details.
  9112  func (c *ProjectsAuthorizeddomainsListCall) Fields(s ...googleapi.Field) *ProjectsAuthorizeddomainsListCall {
  9113  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9114  	return c
  9115  }
  9116  
  9117  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9118  // object's ETag matches the given value. This is useful for getting updates
  9119  // only after the object has changed since the last request.
  9120  func (c *ProjectsAuthorizeddomainsListCall) IfNoneMatch(entityTag string) *ProjectsAuthorizeddomainsListCall {
  9121  	c.ifNoneMatch_ = entityTag
  9122  	return c
  9123  }
  9124  
  9125  // Context sets the context to be used in this call's Do method.
  9126  func (c *ProjectsAuthorizeddomainsListCall) Context(ctx context.Context) *ProjectsAuthorizeddomainsListCall {
  9127  	c.ctx_ = ctx
  9128  	return c
  9129  }
  9130  
  9131  // Header returns a http.Header that can be modified by the caller to add
  9132  // headers to the request.
  9133  func (c *ProjectsAuthorizeddomainsListCall) Header() http.Header {
  9134  	if c.header_ == nil {
  9135  		c.header_ = make(http.Header)
  9136  	}
  9137  	return c.header_
  9138  }
  9139  
  9140  func (c *ProjectsAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) {
  9141  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9142  	if c.ifNoneMatch_ != "" {
  9143  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9144  	}
  9145  	var body io.Reader = nil
  9146  	c.urlParams_.Set("alt", alt)
  9147  	c.urlParams_.Set("prettyPrint", "false")
  9148  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authorizeddomains")
  9149  	urls += "?" + c.urlParams_.Encode()
  9150  	req, err := http.NewRequest("GET", urls, body)
  9151  	if err != nil {
  9152  		return nil, err
  9153  	}
  9154  	req.Header = reqHeaders
  9155  	googleapi.Expand(req.URL, map[string]string{
  9156  		"parent": c.parent,
  9157  	})
  9158  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9159  }
  9160  
  9161  // Do executes the "run.projects.authorizeddomains.list" call.
  9162  // Any non-2xx status code is an error. Response headers are in either
  9163  // *ListAuthorizedDomainsResponse.ServerResponse.Header or (if a response was
  9164  // returned at all) in error.(*googleapi.Error).Header. Use
  9165  // googleapi.IsNotModified to check whether the returned error was because
  9166  // http.StatusNotModified was returned.
  9167  func (c *ProjectsAuthorizeddomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
  9168  	gensupport.SetOptions(c.urlParams_, opts...)
  9169  	res, err := c.doRequest("json")
  9170  	if res != nil && res.StatusCode == http.StatusNotModified {
  9171  		if res.Body != nil {
  9172  			res.Body.Close()
  9173  		}
  9174  		return nil, gensupport.WrapError(&googleapi.Error{
  9175  			Code:   res.StatusCode,
  9176  			Header: res.Header,
  9177  		})
  9178  	}
  9179  	if err != nil {
  9180  		return nil, err
  9181  	}
  9182  	defer googleapi.CloseBody(res)
  9183  	if err := googleapi.CheckResponse(res); err != nil {
  9184  		return nil, gensupport.WrapError(err)
  9185  	}
  9186  	ret := &ListAuthorizedDomainsResponse{
  9187  		ServerResponse: googleapi.ServerResponse{
  9188  			Header:         res.Header,
  9189  			HTTPStatusCode: res.StatusCode,
  9190  		},
  9191  	}
  9192  	target := &ret
  9193  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9194  		return nil, err
  9195  	}
  9196  	return ret, nil
  9197  }
  9198  
  9199  // Pages invokes f for each page of results.
  9200  // A non-nil error returned from f will halt the iteration.
  9201  // The provided context supersedes any context provided to the Context method.
  9202  func (c *ProjectsAuthorizeddomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
  9203  	c.ctx_ = ctx
  9204  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9205  	for {
  9206  		x, err := c.Do()
  9207  		if err != nil {
  9208  			return err
  9209  		}
  9210  		if err := f(x); err != nil {
  9211  			return err
  9212  		}
  9213  		if x.NextPageToken == "" {
  9214  			return nil
  9215  		}
  9216  		c.PageToken(x.NextPageToken)
  9217  	}
  9218  }
  9219  
  9220  type ProjectsLocationsListCall struct {
  9221  	s            *APIService
  9222  	name         string
  9223  	urlParams_   gensupport.URLParams
  9224  	ifNoneMatch_ string
  9225  	ctx_         context.Context
  9226  	header_      http.Header
  9227  }
  9228  
  9229  // List: Lists information about the supported locations for this service.
  9230  //
  9231  // - name: The resource that owns the locations collection, if applicable.
  9232  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
  9233  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9234  	c.name = name
  9235  	return c
  9236  }
  9237  
  9238  // Filter sets the optional parameter "filter": A filter to narrow down results
  9239  // to a preferred subset. The filtering language accepts strings like
  9240  // "displayName=tokyo", and is documented in more detail in AIP-160
  9241  // (https://google.aip.dev/160).
  9242  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  9243  	c.urlParams_.Set("filter", filter)
  9244  	return c
  9245  }
  9246  
  9247  // PageSize sets the optional parameter "pageSize": The maximum number of
  9248  // results to return. If not set, the service selects a default.
  9249  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  9250  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9251  	return c
  9252  }
  9253  
  9254  // PageToken sets the optional parameter "pageToken": A page token received
  9255  // from the `next_page_token` field in the response. Send that page token to
  9256  // receive the subsequent page.
  9257  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  9258  	c.urlParams_.Set("pageToken", pageToken)
  9259  	return c
  9260  }
  9261  
  9262  // Fields allows partial responses to be retrieved. See
  9263  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9264  // details.
  9265  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  9266  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9267  	return c
  9268  }
  9269  
  9270  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9271  // object's ETag matches the given value. This is useful for getting updates
  9272  // only after the object has changed since the last request.
  9273  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  9274  	c.ifNoneMatch_ = entityTag
  9275  	return c
  9276  }
  9277  
  9278  // Context sets the context to be used in this call's Do method.
  9279  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  9280  	c.ctx_ = ctx
  9281  	return c
  9282  }
  9283  
  9284  // Header returns a http.Header that can be modified by the caller to add
  9285  // headers to the request.
  9286  func (c *ProjectsLocationsListCall) Header() http.Header {
  9287  	if c.header_ == nil {
  9288  		c.header_ = make(http.Header)
  9289  	}
  9290  	return c.header_
  9291  }
  9292  
  9293  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  9294  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9295  	if c.ifNoneMatch_ != "" {
  9296  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9297  	}
  9298  	var body io.Reader = nil
  9299  	c.urlParams_.Set("alt", alt)
  9300  	c.urlParams_.Set("prettyPrint", "false")
  9301  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
  9302  	urls += "?" + c.urlParams_.Encode()
  9303  	req, err := http.NewRequest("GET", urls, body)
  9304  	if err != nil {
  9305  		return nil, err
  9306  	}
  9307  	req.Header = reqHeaders
  9308  	googleapi.Expand(req.URL, map[string]string{
  9309  		"name": c.name,
  9310  	})
  9311  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9312  }
  9313  
  9314  // Do executes the "run.projects.locations.list" call.
  9315  // Any non-2xx status code is an error. Response headers are in either
  9316  // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
  9317  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9318  // check whether the returned error was because http.StatusNotModified was
  9319  // returned.
  9320  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  9321  	gensupport.SetOptions(c.urlParams_, opts...)
  9322  	res, err := c.doRequest("json")
  9323  	if res != nil && res.StatusCode == http.StatusNotModified {
  9324  		if res.Body != nil {
  9325  			res.Body.Close()
  9326  		}
  9327  		return nil, gensupport.WrapError(&googleapi.Error{
  9328  			Code:   res.StatusCode,
  9329  			Header: res.Header,
  9330  		})
  9331  	}
  9332  	if err != nil {
  9333  		return nil, err
  9334  	}
  9335  	defer googleapi.CloseBody(res)
  9336  	if err := googleapi.CheckResponse(res); err != nil {
  9337  		return nil, gensupport.WrapError(err)
  9338  	}
  9339  	ret := &ListLocationsResponse{
  9340  		ServerResponse: googleapi.ServerResponse{
  9341  			Header:         res.Header,
  9342  			HTTPStatusCode: res.StatusCode,
  9343  		},
  9344  	}
  9345  	target := &ret
  9346  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9347  		return nil, err
  9348  	}
  9349  	return ret, nil
  9350  }
  9351  
  9352  // Pages invokes f for each page of results.
  9353  // A non-nil error returned from f will halt the iteration.
  9354  // The provided context supersedes any context provided to the Context method.
  9355  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  9356  	c.ctx_ = ctx
  9357  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9358  	for {
  9359  		x, err := c.Do()
  9360  		if err != nil {
  9361  			return err
  9362  		}
  9363  		if err := f(x); err != nil {
  9364  			return err
  9365  		}
  9366  		if x.NextPageToken == "" {
  9367  			return nil
  9368  		}
  9369  		c.PageToken(x.NextPageToken)
  9370  	}
  9371  }
  9372  
  9373  type ProjectsLocationsAuthorizeddomainsListCall struct {
  9374  	s            *APIService
  9375  	parent       string
  9376  	urlParams_   gensupport.URLParams
  9377  	ifNoneMatch_ string
  9378  	ctx_         context.Context
  9379  	header_      http.Header
  9380  }
  9381  
  9382  // List: List authorized domains.
  9383  //
  9384  //   - parent: Name of the parent Project resource. Example:
  9385  //     `projects/myproject`.
  9386  func (r *ProjectsLocationsAuthorizeddomainsService) List(parent string) *ProjectsLocationsAuthorizeddomainsListCall {
  9387  	c := &ProjectsLocationsAuthorizeddomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9388  	c.parent = parent
  9389  	return c
  9390  }
  9391  
  9392  // PageSize sets the optional parameter "pageSize": Maximum results to return
  9393  // per page.
  9394  func (c *ProjectsLocationsAuthorizeddomainsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizeddomainsListCall {
  9395  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9396  	return c
  9397  }
  9398  
  9399  // PageToken sets the optional parameter "pageToken": Continuation token for
  9400  // fetching the next page of results.
  9401  func (c *ProjectsLocationsAuthorizeddomainsListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizeddomainsListCall {
  9402  	c.urlParams_.Set("pageToken", pageToken)
  9403  	return c
  9404  }
  9405  
  9406  // Fields allows partial responses to be retrieved. See
  9407  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9408  // details.
  9409  func (c *ProjectsLocationsAuthorizeddomainsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizeddomainsListCall {
  9410  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9411  	return c
  9412  }
  9413  
  9414  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9415  // object's ETag matches the given value. This is useful for getting updates
  9416  // only after the object has changed since the last request.
  9417  func (c *ProjectsLocationsAuthorizeddomainsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizeddomainsListCall {
  9418  	c.ifNoneMatch_ = entityTag
  9419  	return c
  9420  }
  9421  
  9422  // Context sets the context to be used in this call's Do method.
  9423  func (c *ProjectsLocationsAuthorizeddomainsListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizeddomainsListCall {
  9424  	c.ctx_ = ctx
  9425  	return c
  9426  }
  9427  
  9428  // Header returns a http.Header that can be modified by the caller to add
  9429  // headers to the request.
  9430  func (c *ProjectsLocationsAuthorizeddomainsListCall) Header() http.Header {
  9431  	if c.header_ == nil {
  9432  		c.header_ = make(http.Header)
  9433  	}
  9434  	return c.header_
  9435  }
  9436  
  9437  func (c *ProjectsLocationsAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) {
  9438  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9439  	if c.ifNoneMatch_ != "" {
  9440  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9441  	}
  9442  	var body io.Reader = nil
  9443  	c.urlParams_.Set("alt", alt)
  9444  	c.urlParams_.Set("prettyPrint", "false")
  9445  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authorizeddomains")
  9446  	urls += "?" + c.urlParams_.Encode()
  9447  	req, err := http.NewRequest("GET", urls, body)
  9448  	if err != nil {
  9449  		return nil, err
  9450  	}
  9451  	req.Header = reqHeaders
  9452  	googleapi.Expand(req.URL, map[string]string{
  9453  		"parent": c.parent,
  9454  	})
  9455  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9456  }
  9457  
  9458  // Do executes the "run.projects.locations.authorizeddomains.list" call.
  9459  // Any non-2xx status code is an error. Response headers are in either
  9460  // *ListAuthorizedDomainsResponse.ServerResponse.Header or (if a response was
  9461  // returned at all) in error.(*googleapi.Error).Header. Use
  9462  // googleapi.IsNotModified to check whether the returned error was because
  9463  // http.StatusNotModified was returned.
  9464  func (c *ProjectsLocationsAuthorizeddomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
  9465  	gensupport.SetOptions(c.urlParams_, opts...)
  9466  	res, err := c.doRequest("json")
  9467  	if res != nil && res.StatusCode == http.StatusNotModified {
  9468  		if res.Body != nil {
  9469  			res.Body.Close()
  9470  		}
  9471  		return nil, gensupport.WrapError(&googleapi.Error{
  9472  			Code:   res.StatusCode,
  9473  			Header: res.Header,
  9474  		})
  9475  	}
  9476  	if err != nil {
  9477  		return nil, err
  9478  	}
  9479  	defer googleapi.CloseBody(res)
  9480  	if err := googleapi.CheckResponse(res); err != nil {
  9481  		return nil, gensupport.WrapError(err)
  9482  	}
  9483  	ret := &ListAuthorizedDomainsResponse{
  9484  		ServerResponse: googleapi.ServerResponse{
  9485  			Header:         res.Header,
  9486  			HTTPStatusCode: res.StatusCode,
  9487  		},
  9488  	}
  9489  	target := &ret
  9490  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9491  		return nil, err
  9492  	}
  9493  	return ret, nil
  9494  }
  9495  
  9496  // Pages invokes f for each page of results.
  9497  // A non-nil error returned from f will halt the iteration.
  9498  // The provided context supersedes any context provided to the Context method.
  9499  func (c *ProjectsLocationsAuthorizeddomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
  9500  	c.ctx_ = ctx
  9501  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9502  	for {
  9503  		x, err := c.Do()
  9504  		if err != nil {
  9505  			return err
  9506  		}
  9507  		if err := f(x); err != nil {
  9508  			return err
  9509  		}
  9510  		if x.NextPageToken == "" {
  9511  			return nil
  9512  		}
  9513  		c.PageToken(x.NextPageToken)
  9514  	}
  9515  }
  9516  
  9517  type ProjectsLocationsConfigurationsGetCall struct {
  9518  	s            *APIService
  9519  	name         string
  9520  	urlParams_   gensupport.URLParams
  9521  	ifNoneMatch_ string
  9522  	ctx_         context.Context
  9523  	header_      http.Header
  9524  }
  9525  
  9526  // Get: Get information about a configuration.
  9527  //
  9528  //   - name: The name of the configuration to retrieve. For Cloud Run, replace
  9529  //     {namespace_id} with the project ID or number.
  9530  func (r *ProjectsLocationsConfigurationsService) Get(name string) *ProjectsLocationsConfigurationsGetCall {
  9531  	c := &ProjectsLocationsConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9532  	c.name = name
  9533  	return c
  9534  }
  9535  
  9536  // Fields allows partial responses to be retrieved. See
  9537  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9538  // details.
  9539  func (c *ProjectsLocationsConfigurationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConfigurationsGetCall {
  9540  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9541  	return c
  9542  }
  9543  
  9544  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9545  // object's ETag matches the given value. This is useful for getting updates
  9546  // only after the object has changed since the last request.
  9547  func (c *ProjectsLocationsConfigurationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConfigurationsGetCall {
  9548  	c.ifNoneMatch_ = entityTag
  9549  	return c
  9550  }
  9551  
  9552  // Context sets the context to be used in this call's Do method.
  9553  func (c *ProjectsLocationsConfigurationsGetCall) Context(ctx context.Context) *ProjectsLocationsConfigurationsGetCall {
  9554  	c.ctx_ = ctx
  9555  	return c
  9556  }
  9557  
  9558  // Header returns a http.Header that can be modified by the caller to add
  9559  // headers to the request.
  9560  func (c *ProjectsLocationsConfigurationsGetCall) Header() http.Header {
  9561  	if c.header_ == nil {
  9562  		c.header_ = make(http.Header)
  9563  	}
  9564  	return c.header_
  9565  }
  9566  
  9567  func (c *ProjectsLocationsConfigurationsGetCall) doRequest(alt string) (*http.Response, error) {
  9568  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9569  	if c.ifNoneMatch_ != "" {
  9570  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9571  	}
  9572  	var body io.Reader = nil
  9573  	c.urlParams_.Set("alt", alt)
  9574  	c.urlParams_.Set("prettyPrint", "false")
  9575  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9576  	urls += "?" + c.urlParams_.Encode()
  9577  	req, err := http.NewRequest("GET", urls, body)
  9578  	if err != nil {
  9579  		return nil, err
  9580  	}
  9581  	req.Header = reqHeaders
  9582  	googleapi.Expand(req.URL, map[string]string{
  9583  		"name": c.name,
  9584  	})
  9585  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9586  }
  9587  
  9588  // Do executes the "run.projects.locations.configurations.get" call.
  9589  // Any non-2xx status code is an error. Response headers are in either
  9590  // *Configuration.ServerResponse.Header or (if a response was returned at all)
  9591  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9592  // whether the returned error was because http.StatusNotModified was returned.
  9593  func (c *ProjectsLocationsConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Configuration, error) {
  9594  	gensupport.SetOptions(c.urlParams_, opts...)
  9595  	res, err := c.doRequest("json")
  9596  	if res != nil && res.StatusCode == http.StatusNotModified {
  9597  		if res.Body != nil {
  9598  			res.Body.Close()
  9599  		}
  9600  		return nil, gensupport.WrapError(&googleapi.Error{
  9601  			Code:   res.StatusCode,
  9602  			Header: res.Header,
  9603  		})
  9604  	}
  9605  	if err != nil {
  9606  		return nil, err
  9607  	}
  9608  	defer googleapi.CloseBody(res)
  9609  	if err := googleapi.CheckResponse(res); err != nil {
  9610  		return nil, gensupport.WrapError(err)
  9611  	}
  9612  	ret := &Configuration{
  9613  		ServerResponse: googleapi.ServerResponse{
  9614  			Header:         res.Header,
  9615  			HTTPStatusCode: res.StatusCode,
  9616  		},
  9617  	}
  9618  	target := &ret
  9619  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9620  		return nil, err
  9621  	}
  9622  	return ret, nil
  9623  }
  9624  
  9625  type ProjectsLocationsConfigurationsListCall struct {
  9626  	s            *APIService
  9627  	parent       string
  9628  	urlParams_   gensupport.URLParams
  9629  	ifNoneMatch_ string
  9630  	ctx_         context.Context
  9631  	header_      http.Header
  9632  }
  9633  
  9634  // List: List configurations.
  9635  //
  9636  //   - parent: The namespace from which the configurations should be listed. For
  9637  //     Cloud Run, replace {namespace_id} with the project ID or number.
  9638  func (r *ProjectsLocationsConfigurationsService) List(parent string) *ProjectsLocationsConfigurationsListCall {
  9639  	c := &ProjectsLocationsConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9640  	c.parent = parent
  9641  	return c
  9642  }
  9643  
  9644  // Continue sets the optional parameter "continue": Encoded string to continue
  9645  // paging.
  9646  func (c *ProjectsLocationsConfigurationsListCall) Continue(continue_ string) *ProjectsLocationsConfigurationsListCall {
  9647  	c.urlParams_.Set("continue", continue_)
  9648  	return c
  9649  }
  9650  
  9651  // FieldSelector sets the optional parameter "fieldSelector": Not supported by
  9652  // Cloud Run.
  9653  func (c *ProjectsLocationsConfigurationsListCall) FieldSelector(fieldSelector string) *ProjectsLocationsConfigurationsListCall {
  9654  	c.urlParams_.Set("fieldSelector", fieldSelector)
  9655  	return c
  9656  }
  9657  
  9658  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
  9659  // supported by Cloud Run.
  9660  func (c *ProjectsLocationsConfigurationsListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsConfigurationsListCall {
  9661  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
  9662  	return c
  9663  }
  9664  
  9665  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
  9666  // resources based on a label. Supported operations are =, !=, exists, in, and
  9667  // notIn.
  9668  func (c *ProjectsLocationsConfigurationsListCall) LabelSelector(labelSelector string) *ProjectsLocationsConfigurationsListCall {
  9669  	c.urlParams_.Set("labelSelector", labelSelector)
  9670  	return c
  9671  }
  9672  
  9673  // Limit sets the optional parameter "limit": The maximum number of the records
  9674  // that should be returned.
  9675  func (c *ProjectsLocationsConfigurationsListCall) Limit(limit int64) *ProjectsLocationsConfigurationsListCall {
  9676  	c.urlParams_.Set("limit", fmt.Sprint(limit))
  9677  	return c
  9678  }
  9679  
  9680  // ResourceVersion sets the optional parameter "resourceVersion": Not supported
  9681  // by Cloud Run.
  9682  func (c *ProjectsLocationsConfigurationsListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsConfigurationsListCall {
  9683  	c.urlParams_.Set("resourceVersion", resourceVersion)
  9684  	return c
  9685  }
  9686  
  9687  // Watch sets the optional parameter "watch": Not supported by Cloud Run.
  9688  func (c *ProjectsLocationsConfigurationsListCall) Watch(watch bool) *ProjectsLocationsConfigurationsListCall {
  9689  	c.urlParams_.Set("watch", fmt.Sprint(watch))
  9690  	return c
  9691  }
  9692  
  9693  // Fields allows partial responses to be retrieved. See
  9694  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9695  // details.
  9696  func (c *ProjectsLocationsConfigurationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConfigurationsListCall {
  9697  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9698  	return c
  9699  }
  9700  
  9701  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9702  // object's ETag matches the given value. This is useful for getting updates
  9703  // only after the object has changed since the last request.
  9704  func (c *ProjectsLocationsConfigurationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConfigurationsListCall {
  9705  	c.ifNoneMatch_ = entityTag
  9706  	return c
  9707  }
  9708  
  9709  // Context sets the context to be used in this call's Do method.
  9710  func (c *ProjectsLocationsConfigurationsListCall) Context(ctx context.Context) *ProjectsLocationsConfigurationsListCall {
  9711  	c.ctx_ = ctx
  9712  	return c
  9713  }
  9714  
  9715  // Header returns a http.Header that can be modified by the caller to add
  9716  // headers to the request.
  9717  func (c *ProjectsLocationsConfigurationsListCall) Header() http.Header {
  9718  	if c.header_ == nil {
  9719  		c.header_ = make(http.Header)
  9720  	}
  9721  	return c.header_
  9722  }
  9723  
  9724  func (c *ProjectsLocationsConfigurationsListCall) doRequest(alt string) (*http.Response, error) {
  9725  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9726  	if c.ifNoneMatch_ != "" {
  9727  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9728  	}
  9729  	var body io.Reader = nil
  9730  	c.urlParams_.Set("alt", alt)
  9731  	c.urlParams_.Set("prettyPrint", "false")
  9732  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/configurations")
  9733  	urls += "?" + c.urlParams_.Encode()
  9734  	req, err := http.NewRequest("GET", urls, body)
  9735  	if err != nil {
  9736  		return nil, err
  9737  	}
  9738  	req.Header = reqHeaders
  9739  	googleapi.Expand(req.URL, map[string]string{
  9740  		"parent": c.parent,
  9741  	})
  9742  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9743  }
  9744  
  9745  // Do executes the "run.projects.locations.configurations.list" call.
  9746  // Any non-2xx status code is an error. Response headers are in either
  9747  // *ListConfigurationsResponse.ServerResponse.Header or (if a response was
  9748  // returned at all) in error.(*googleapi.Error).Header. Use
  9749  // googleapi.IsNotModified to check whether the returned error was because
  9750  // http.StatusNotModified was returned.
  9751  func (c *ProjectsLocationsConfigurationsListCall) Do(opts ...googleapi.CallOption) (*ListConfigurationsResponse, error) {
  9752  	gensupport.SetOptions(c.urlParams_, opts...)
  9753  	res, err := c.doRequest("json")
  9754  	if res != nil && res.StatusCode == http.StatusNotModified {
  9755  		if res.Body != nil {
  9756  			res.Body.Close()
  9757  		}
  9758  		return nil, gensupport.WrapError(&googleapi.Error{
  9759  			Code:   res.StatusCode,
  9760  			Header: res.Header,
  9761  		})
  9762  	}
  9763  	if err != nil {
  9764  		return nil, err
  9765  	}
  9766  	defer googleapi.CloseBody(res)
  9767  	if err := googleapi.CheckResponse(res); err != nil {
  9768  		return nil, gensupport.WrapError(err)
  9769  	}
  9770  	ret := &ListConfigurationsResponse{
  9771  		ServerResponse: googleapi.ServerResponse{
  9772  			Header:         res.Header,
  9773  			HTTPStatusCode: res.StatusCode,
  9774  		},
  9775  	}
  9776  	target := &ret
  9777  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9778  		return nil, err
  9779  	}
  9780  	return ret, nil
  9781  }
  9782  
  9783  type ProjectsLocationsDomainmappingsCreateCall struct {
  9784  	s             *APIService
  9785  	parent        string
  9786  	domainmapping *DomainMapping
  9787  	urlParams_    gensupport.URLParams
  9788  	ctx_          context.Context
  9789  	header_       http.Header
  9790  }
  9791  
  9792  // Create: Create a new domain mapping.
  9793  //
  9794  //   - parent: The namespace in which the domain mapping should be created. For
  9795  //     Cloud Run (fully managed), replace {namespace} with the project ID or
  9796  //     number. It takes the form namespaces/{namespace}. For example:
  9797  //     namespaces/PROJECT_ID.
  9798  func (r *ProjectsLocationsDomainmappingsService) Create(parent string, domainmapping *DomainMapping) *ProjectsLocationsDomainmappingsCreateCall {
  9799  	c := &ProjectsLocationsDomainmappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9800  	c.parent = parent
  9801  	c.domainmapping = domainmapping
  9802  	return c
  9803  }
  9804  
  9805  // DryRun sets the optional parameter "dryRun": Indicates that the server
  9806  // should validate the request and populate default values without persisting
  9807  // the request. Supported values: `all`
  9808  func (c *ProjectsLocationsDomainmappingsCreateCall) DryRun(dryRun string) *ProjectsLocationsDomainmappingsCreateCall {
  9809  	c.urlParams_.Set("dryRun", dryRun)
  9810  	return c
  9811  }
  9812  
  9813  // Fields allows partial responses to be retrieved. See
  9814  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9815  // details.
  9816  func (c *ProjectsLocationsDomainmappingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsCreateCall {
  9817  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9818  	return c
  9819  }
  9820  
  9821  // Context sets the context to be used in this call's Do method.
  9822  func (c *ProjectsLocationsDomainmappingsCreateCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsCreateCall {
  9823  	c.ctx_ = ctx
  9824  	return c
  9825  }
  9826  
  9827  // Header returns a http.Header that can be modified by the caller to add
  9828  // headers to the request.
  9829  func (c *ProjectsLocationsDomainmappingsCreateCall) Header() http.Header {
  9830  	if c.header_ == nil {
  9831  		c.header_ = make(http.Header)
  9832  	}
  9833  	return c.header_
  9834  }
  9835  
  9836  func (c *ProjectsLocationsDomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) {
  9837  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9838  	var body io.Reader = nil
  9839  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
  9840  	if err != nil {
  9841  		return nil, err
  9842  	}
  9843  	c.urlParams_.Set("alt", alt)
  9844  	c.urlParams_.Set("prettyPrint", "false")
  9845  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/domainmappings")
  9846  	urls += "?" + c.urlParams_.Encode()
  9847  	req, err := http.NewRequest("POST", urls, body)
  9848  	if err != nil {
  9849  		return nil, err
  9850  	}
  9851  	req.Header = reqHeaders
  9852  	googleapi.Expand(req.URL, map[string]string{
  9853  		"parent": c.parent,
  9854  	})
  9855  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9856  }
  9857  
  9858  // Do executes the "run.projects.locations.domainmappings.create" call.
  9859  // Any non-2xx status code is an error. Response headers are in either
  9860  // *DomainMapping.ServerResponse.Header or (if a response was returned at all)
  9861  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9862  // whether the returned error was because http.StatusNotModified was returned.
  9863  func (c *ProjectsLocationsDomainmappingsCreateCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
  9864  	gensupport.SetOptions(c.urlParams_, opts...)
  9865  	res, err := c.doRequest("json")
  9866  	if res != nil && res.StatusCode == http.StatusNotModified {
  9867  		if res.Body != nil {
  9868  			res.Body.Close()
  9869  		}
  9870  		return nil, gensupport.WrapError(&googleapi.Error{
  9871  			Code:   res.StatusCode,
  9872  			Header: res.Header,
  9873  		})
  9874  	}
  9875  	if err != nil {
  9876  		return nil, err
  9877  	}
  9878  	defer googleapi.CloseBody(res)
  9879  	if err := googleapi.CheckResponse(res); err != nil {
  9880  		return nil, gensupport.WrapError(err)
  9881  	}
  9882  	ret := &DomainMapping{
  9883  		ServerResponse: googleapi.ServerResponse{
  9884  			Header:         res.Header,
  9885  			HTTPStatusCode: res.StatusCode,
  9886  		},
  9887  	}
  9888  	target := &ret
  9889  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9890  		return nil, err
  9891  	}
  9892  	return ret, nil
  9893  }
  9894  
  9895  type ProjectsLocationsDomainmappingsDeleteCall struct {
  9896  	s          *APIService
  9897  	name       string
  9898  	urlParams_ gensupport.URLParams
  9899  	ctx_       context.Context
  9900  	header_    http.Header
  9901  }
  9902  
  9903  // Delete: Delete a domain mapping.
  9904  //
  9905  //   - name: The name of the domain mapping to delete. For Cloud Run (fully
  9906  //     managed), replace {namespace} with the project ID or number. It takes the
  9907  //     form namespaces/{namespace}. For example: namespaces/PROJECT_ID.
  9908  func (r *ProjectsLocationsDomainmappingsService) Delete(name string) *ProjectsLocationsDomainmappingsDeleteCall {
  9909  	c := &ProjectsLocationsDomainmappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9910  	c.name = name
  9911  	return c
  9912  }
  9913  
  9914  // ApiVersion sets the optional parameter "apiVersion": Cloud Run currently
  9915  // ignores this parameter.
  9916  func (c *ProjectsLocationsDomainmappingsDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsDomainmappingsDeleteCall {
  9917  	c.urlParams_.Set("apiVersion", apiVersion)
  9918  	return c
  9919  }
  9920  
  9921  // DryRun sets the optional parameter "dryRun": Indicates that the server
  9922  // should validate the request and populate default values without persisting
  9923  // the request. Supported values: `all`
  9924  func (c *ProjectsLocationsDomainmappingsDeleteCall) DryRun(dryRun string) *ProjectsLocationsDomainmappingsDeleteCall {
  9925  	c.urlParams_.Set("dryRun", dryRun)
  9926  	return c
  9927  }
  9928  
  9929  // Kind sets the optional parameter "kind": Cloud Run currently ignores this
  9930  // parameter.
  9931  func (c *ProjectsLocationsDomainmappingsDeleteCall) Kind(kind string) *ProjectsLocationsDomainmappingsDeleteCall {
  9932  	c.urlParams_.Set("kind", kind)
  9933  	return c
  9934  }
  9935  
  9936  // PropagationPolicy sets the optional parameter "propagationPolicy": Specifies
  9937  // the propagation policy of delete. Cloud Run currently ignores this setting,
  9938  // and deletes in the background. Please see
  9939  // kubernetes.io/docs/concepts/architecture/garbage-collection/ for more
  9940  // information.
  9941  func (c *ProjectsLocationsDomainmappingsDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsDomainmappingsDeleteCall {
  9942  	c.urlParams_.Set("propagationPolicy", propagationPolicy)
  9943  	return c
  9944  }
  9945  
  9946  // Fields allows partial responses to be retrieved. See
  9947  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9948  // details.
  9949  func (c *ProjectsLocationsDomainmappingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsDeleteCall {
  9950  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9951  	return c
  9952  }
  9953  
  9954  // Context sets the context to be used in this call's Do method.
  9955  func (c *ProjectsLocationsDomainmappingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsDeleteCall {
  9956  	c.ctx_ = ctx
  9957  	return c
  9958  }
  9959  
  9960  // Header returns a http.Header that can be modified by the caller to add
  9961  // headers to the request.
  9962  func (c *ProjectsLocationsDomainmappingsDeleteCall) Header() http.Header {
  9963  	if c.header_ == nil {
  9964  		c.header_ = make(http.Header)
  9965  	}
  9966  	return c.header_
  9967  }
  9968  
  9969  func (c *ProjectsLocationsDomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
  9970  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9971  	var body io.Reader = nil
  9972  	c.urlParams_.Set("alt", alt)
  9973  	c.urlParams_.Set("prettyPrint", "false")
  9974  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9975  	urls += "?" + c.urlParams_.Encode()
  9976  	req, err := http.NewRequest("DELETE", urls, body)
  9977  	if err != nil {
  9978  		return nil, err
  9979  	}
  9980  	req.Header = reqHeaders
  9981  	googleapi.Expand(req.URL, map[string]string{
  9982  		"name": c.name,
  9983  	})
  9984  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9985  }
  9986  
  9987  // Do executes the "run.projects.locations.domainmappings.delete" call.
  9988  // Any non-2xx status code is an error. Response headers are in either
  9989  // *Status.ServerResponse.Header or (if a response was returned at all) in
  9990  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9991  // whether the returned error was because http.StatusNotModified was returned.
  9992  func (c *ProjectsLocationsDomainmappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
  9993  	gensupport.SetOptions(c.urlParams_, opts...)
  9994  	res, err := c.doRequest("json")
  9995  	if res != nil && res.StatusCode == http.StatusNotModified {
  9996  		if res.Body != nil {
  9997  			res.Body.Close()
  9998  		}
  9999  		return nil, gensupport.WrapError(&googleapi.Error{
 10000  			Code:   res.StatusCode,
 10001  			Header: res.Header,
 10002  		})
 10003  	}
 10004  	if err != nil {
 10005  		return nil, err
 10006  	}
 10007  	defer googleapi.CloseBody(res)
 10008  	if err := googleapi.CheckResponse(res); err != nil {
 10009  		return nil, gensupport.WrapError(err)
 10010  	}
 10011  	ret := &Status{
 10012  		ServerResponse: googleapi.ServerResponse{
 10013  			Header:         res.Header,
 10014  			HTTPStatusCode: res.StatusCode,
 10015  		},
 10016  	}
 10017  	target := &ret
 10018  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10019  		return nil, err
 10020  	}
 10021  	return ret, nil
 10022  }
 10023  
 10024  type ProjectsLocationsDomainmappingsGetCall struct {
 10025  	s            *APIService
 10026  	name         string
 10027  	urlParams_   gensupport.URLParams
 10028  	ifNoneMatch_ string
 10029  	ctx_         context.Context
 10030  	header_      http.Header
 10031  }
 10032  
 10033  // Get: Get information about a domain mapping.
 10034  //
 10035  //   - name: The name of the domain mapping to retrieve. For Cloud Run (fully
 10036  //     managed), replace {namespace} with the project ID or number. It takes the
 10037  //     form namespaces/{namespace}. For example: namespaces/PROJECT_ID.
 10038  func (r *ProjectsLocationsDomainmappingsService) Get(name string) *ProjectsLocationsDomainmappingsGetCall {
 10039  	c := &ProjectsLocationsDomainmappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10040  	c.name = name
 10041  	return c
 10042  }
 10043  
 10044  // Fields allows partial responses to be retrieved. See
 10045  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10046  // details.
 10047  func (c *ProjectsLocationsDomainmappingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsGetCall {
 10048  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10049  	return c
 10050  }
 10051  
 10052  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10053  // object's ETag matches the given value. This is useful for getting updates
 10054  // only after the object has changed since the last request.
 10055  func (c *ProjectsLocationsDomainmappingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDomainmappingsGetCall {
 10056  	c.ifNoneMatch_ = entityTag
 10057  	return c
 10058  }
 10059  
 10060  // Context sets the context to be used in this call's Do method.
 10061  func (c *ProjectsLocationsDomainmappingsGetCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsGetCall {
 10062  	c.ctx_ = ctx
 10063  	return c
 10064  }
 10065  
 10066  // Header returns a http.Header that can be modified by the caller to add
 10067  // headers to the request.
 10068  func (c *ProjectsLocationsDomainmappingsGetCall) Header() http.Header {
 10069  	if c.header_ == nil {
 10070  		c.header_ = make(http.Header)
 10071  	}
 10072  	return c.header_
 10073  }
 10074  
 10075  func (c *ProjectsLocationsDomainmappingsGetCall) doRequest(alt string) (*http.Response, error) {
 10076  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10077  	if c.ifNoneMatch_ != "" {
 10078  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10079  	}
 10080  	var body io.Reader = nil
 10081  	c.urlParams_.Set("alt", alt)
 10082  	c.urlParams_.Set("prettyPrint", "false")
 10083  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10084  	urls += "?" + c.urlParams_.Encode()
 10085  	req, err := http.NewRequest("GET", urls, body)
 10086  	if err != nil {
 10087  		return nil, err
 10088  	}
 10089  	req.Header = reqHeaders
 10090  	googleapi.Expand(req.URL, map[string]string{
 10091  		"name": c.name,
 10092  	})
 10093  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10094  }
 10095  
 10096  // Do executes the "run.projects.locations.domainmappings.get" call.
 10097  // Any non-2xx status code is an error. Response headers are in either
 10098  // *DomainMapping.ServerResponse.Header or (if a response was returned at all)
 10099  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10100  // whether the returned error was because http.StatusNotModified was returned.
 10101  func (c *ProjectsLocationsDomainmappingsGetCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
 10102  	gensupport.SetOptions(c.urlParams_, opts...)
 10103  	res, err := c.doRequest("json")
 10104  	if res != nil && res.StatusCode == http.StatusNotModified {
 10105  		if res.Body != nil {
 10106  			res.Body.Close()
 10107  		}
 10108  		return nil, gensupport.WrapError(&googleapi.Error{
 10109  			Code:   res.StatusCode,
 10110  			Header: res.Header,
 10111  		})
 10112  	}
 10113  	if err != nil {
 10114  		return nil, err
 10115  	}
 10116  	defer googleapi.CloseBody(res)
 10117  	if err := googleapi.CheckResponse(res); err != nil {
 10118  		return nil, gensupport.WrapError(err)
 10119  	}
 10120  	ret := &DomainMapping{
 10121  		ServerResponse: googleapi.ServerResponse{
 10122  			Header:         res.Header,
 10123  			HTTPStatusCode: res.StatusCode,
 10124  		},
 10125  	}
 10126  	target := &ret
 10127  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10128  		return nil, err
 10129  	}
 10130  	return ret, nil
 10131  }
 10132  
 10133  type ProjectsLocationsDomainmappingsListCall struct {
 10134  	s            *APIService
 10135  	parent       string
 10136  	urlParams_   gensupport.URLParams
 10137  	ifNoneMatch_ string
 10138  	ctx_         context.Context
 10139  	header_      http.Header
 10140  }
 10141  
 10142  // List: List all domain mappings.
 10143  //
 10144  //   - parent: The namespace from which the domain mappings should be listed. For
 10145  //     Cloud Run (fully managed), replace {namespace} with the project ID or
 10146  //     number. It takes the form namespaces/{namespace}. For example:
 10147  //     namespaces/PROJECT_ID.
 10148  func (r *ProjectsLocationsDomainmappingsService) List(parent string) *ProjectsLocationsDomainmappingsListCall {
 10149  	c := &ProjectsLocationsDomainmappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10150  	c.parent = parent
 10151  	return c
 10152  }
 10153  
 10154  // Continue sets the optional parameter "continue": Encoded string to continue
 10155  // paging.
 10156  func (c *ProjectsLocationsDomainmappingsListCall) Continue(continue_ string) *ProjectsLocationsDomainmappingsListCall {
 10157  	c.urlParams_.Set("continue", continue_)
 10158  	return c
 10159  }
 10160  
 10161  // FieldSelector sets the optional parameter "fieldSelector": Allows to filter
 10162  // resources based on a specific value for a field name. Send this in a query
 10163  // string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud
 10164  // Run.
 10165  func (c *ProjectsLocationsDomainmappingsListCall) FieldSelector(fieldSelector string) *ProjectsLocationsDomainmappingsListCall {
 10166  	c.urlParams_.Set("fieldSelector", fieldSelector)
 10167  	return c
 10168  }
 10169  
 10170  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
 10171  // currently used by Cloud Run.
 10172  func (c *ProjectsLocationsDomainmappingsListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsDomainmappingsListCall {
 10173  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
 10174  	return c
 10175  }
 10176  
 10177  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
 10178  // resources based on a label. Supported operations are =, !=, exists, in, and
 10179  // notIn.
 10180  func (c *ProjectsLocationsDomainmappingsListCall) LabelSelector(labelSelector string) *ProjectsLocationsDomainmappingsListCall {
 10181  	c.urlParams_.Set("labelSelector", labelSelector)
 10182  	return c
 10183  }
 10184  
 10185  // Limit sets the optional parameter "limit": The maximum number of records
 10186  // that should be returned.
 10187  func (c *ProjectsLocationsDomainmappingsListCall) Limit(limit int64) *ProjectsLocationsDomainmappingsListCall {
 10188  	c.urlParams_.Set("limit", fmt.Sprint(limit))
 10189  	return c
 10190  }
 10191  
 10192  // ResourceVersion sets the optional parameter "resourceVersion": The baseline
 10193  // resource version from which the list or watch operation should start. Not
 10194  // currently used by Cloud Run.
 10195  func (c *ProjectsLocationsDomainmappingsListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsDomainmappingsListCall {
 10196  	c.urlParams_.Set("resourceVersion", resourceVersion)
 10197  	return c
 10198  }
 10199  
 10200  // Watch sets the optional parameter "watch": Flag that indicates that the
 10201  // client expects to watch this resource as well. Not currently used by Cloud
 10202  // Run.
 10203  func (c *ProjectsLocationsDomainmappingsListCall) Watch(watch bool) *ProjectsLocationsDomainmappingsListCall {
 10204  	c.urlParams_.Set("watch", fmt.Sprint(watch))
 10205  	return c
 10206  }
 10207  
 10208  // Fields allows partial responses to be retrieved. See
 10209  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10210  // details.
 10211  func (c *ProjectsLocationsDomainmappingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsListCall {
 10212  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10213  	return c
 10214  }
 10215  
 10216  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10217  // object's ETag matches the given value. This is useful for getting updates
 10218  // only after the object has changed since the last request.
 10219  func (c *ProjectsLocationsDomainmappingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDomainmappingsListCall {
 10220  	c.ifNoneMatch_ = entityTag
 10221  	return c
 10222  }
 10223  
 10224  // Context sets the context to be used in this call's Do method.
 10225  func (c *ProjectsLocationsDomainmappingsListCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsListCall {
 10226  	c.ctx_ = ctx
 10227  	return c
 10228  }
 10229  
 10230  // Header returns a http.Header that can be modified by the caller to add
 10231  // headers to the request.
 10232  func (c *ProjectsLocationsDomainmappingsListCall) Header() http.Header {
 10233  	if c.header_ == nil {
 10234  		c.header_ = make(http.Header)
 10235  	}
 10236  	return c.header_
 10237  }
 10238  
 10239  func (c *ProjectsLocationsDomainmappingsListCall) doRequest(alt string) (*http.Response, error) {
 10240  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10241  	if c.ifNoneMatch_ != "" {
 10242  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10243  	}
 10244  	var body io.Reader = nil
 10245  	c.urlParams_.Set("alt", alt)
 10246  	c.urlParams_.Set("prettyPrint", "false")
 10247  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/domainmappings")
 10248  	urls += "?" + c.urlParams_.Encode()
 10249  	req, err := http.NewRequest("GET", urls, body)
 10250  	if err != nil {
 10251  		return nil, err
 10252  	}
 10253  	req.Header = reqHeaders
 10254  	googleapi.Expand(req.URL, map[string]string{
 10255  		"parent": c.parent,
 10256  	})
 10257  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10258  }
 10259  
 10260  // Do executes the "run.projects.locations.domainmappings.list" call.
 10261  // Any non-2xx status code is an error. Response headers are in either
 10262  // *ListDomainMappingsResponse.ServerResponse.Header or (if a response was
 10263  // returned at all) in error.(*googleapi.Error).Header. Use
 10264  // googleapi.IsNotModified to check whether the returned error was because
 10265  // http.StatusNotModified was returned.
 10266  func (c *ProjectsLocationsDomainmappingsListCall) Do(opts ...googleapi.CallOption) (*ListDomainMappingsResponse, error) {
 10267  	gensupport.SetOptions(c.urlParams_, opts...)
 10268  	res, err := c.doRequest("json")
 10269  	if res != nil && res.StatusCode == http.StatusNotModified {
 10270  		if res.Body != nil {
 10271  			res.Body.Close()
 10272  		}
 10273  		return nil, gensupport.WrapError(&googleapi.Error{
 10274  			Code:   res.StatusCode,
 10275  			Header: res.Header,
 10276  		})
 10277  	}
 10278  	if err != nil {
 10279  		return nil, err
 10280  	}
 10281  	defer googleapi.CloseBody(res)
 10282  	if err := googleapi.CheckResponse(res); err != nil {
 10283  		return nil, gensupport.WrapError(err)
 10284  	}
 10285  	ret := &ListDomainMappingsResponse{
 10286  		ServerResponse: googleapi.ServerResponse{
 10287  			Header:         res.Header,
 10288  			HTTPStatusCode: res.StatusCode,
 10289  		},
 10290  	}
 10291  	target := &ret
 10292  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10293  		return nil, err
 10294  	}
 10295  	return ret, nil
 10296  }
 10297  
 10298  type ProjectsLocationsJobsGetIamPolicyCall struct {
 10299  	s            *APIService
 10300  	resource     string
 10301  	urlParams_   gensupport.URLParams
 10302  	ifNoneMatch_ string
 10303  	ctx_         context.Context
 10304  	header_      http.Header
 10305  }
 10306  
 10307  // GetIamPolicy: Get the IAM Access Control policy currently in effect for the
 10308  // given job. This result does not include any inherited policies.
 10309  //
 10310  //   - resource: REQUIRED: The resource for which the policy is being requested.
 10311  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 10312  //     for the appropriate value for this field.
 10313  func (r *ProjectsLocationsJobsService) GetIamPolicy(resource string) *ProjectsLocationsJobsGetIamPolicyCall {
 10314  	c := &ProjectsLocationsJobsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10315  	c.resource = resource
 10316  	return c
 10317  }
 10318  
 10319  // OptionsRequestedPolicyVersion sets the optional parameter
 10320  // "options.requestedPolicyVersion": The maximum policy version that will be
 10321  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
 10322  // an invalid value will be rejected. Requests for policies with any
 10323  // conditional role bindings must specify version 3. Policies with no
 10324  // conditional role bindings may specify any valid value or leave the field
 10325  // unset. The policy in the response might use the policy version that you
 10326  // specified, or it might use a lower policy version. For example, if you
 10327  // specify version 3, but the policy has no conditional role bindings, the
 10328  // response uses version 1. To learn which resources support conditions in
 10329  // their IAM policies, see the IAM documentation
 10330  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 10331  func (c *ProjectsLocationsJobsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsJobsGetIamPolicyCall {
 10332  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 10333  	return c
 10334  }
 10335  
 10336  // Fields allows partial responses to be retrieved. See
 10337  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10338  // details.
 10339  func (c *ProjectsLocationsJobsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsGetIamPolicyCall {
 10340  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10341  	return c
 10342  }
 10343  
 10344  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10345  // object's ETag matches the given value. This is useful for getting updates
 10346  // only after the object has changed since the last request.
 10347  func (c *ProjectsLocationsJobsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobsGetIamPolicyCall {
 10348  	c.ifNoneMatch_ = entityTag
 10349  	return c
 10350  }
 10351  
 10352  // Context sets the context to be used in this call's Do method.
 10353  func (c *ProjectsLocationsJobsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsJobsGetIamPolicyCall {
 10354  	c.ctx_ = ctx
 10355  	return c
 10356  }
 10357  
 10358  // Header returns a http.Header that can be modified by the caller to add
 10359  // headers to the request.
 10360  func (c *ProjectsLocationsJobsGetIamPolicyCall) Header() http.Header {
 10361  	if c.header_ == nil {
 10362  		c.header_ = make(http.Header)
 10363  	}
 10364  	return c.header_
 10365  }
 10366  
 10367  func (c *ProjectsLocationsJobsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 10368  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10369  	if c.ifNoneMatch_ != "" {
 10370  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10371  	}
 10372  	var body io.Reader = nil
 10373  	c.urlParams_.Set("alt", alt)
 10374  	c.urlParams_.Set("prettyPrint", "false")
 10375  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 10376  	urls += "?" + c.urlParams_.Encode()
 10377  	req, err := http.NewRequest("GET", urls, body)
 10378  	if err != nil {
 10379  		return nil, err
 10380  	}
 10381  	req.Header = reqHeaders
 10382  	googleapi.Expand(req.URL, map[string]string{
 10383  		"resource": c.resource,
 10384  	})
 10385  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10386  }
 10387  
 10388  // Do executes the "run.projects.locations.jobs.getIamPolicy" call.
 10389  // Any non-2xx status code is an error. Response headers are in either
 10390  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 10391  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10392  // whether the returned error was because http.StatusNotModified was returned.
 10393  func (c *ProjectsLocationsJobsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 10394  	gensupport.SetOptions(c.urlParams_, opts...)
 10395  	res, err := c.doRequest("json")
 10396  	if res != nil && res.StatusCode == http.StatusNotModified {
 10397  		if res.Body != nil {
 10398  			res.Body.Close()
 10399  		}
 10400  		return nil, gensupport.WrapError(&googleapi.Error{
 10401  			Code:   res.StatusCode,
 10402  			Header: res.Header,
 10403  		})
 10404  	}
 10405  	if err != nil {
 10406  		return nil, err
 10407  	}
 10408  	defer googleapi.CloseBody(res)
 10409  	if err := googleapi.CheckResponse(res); err != nil {
 10410  		return nil, gensupport.WrapError(err)
 10411  	}
 10412  	ret := &Policy{
 10413  		ServerResponse: googleapi.ServerResponse{
 10414  			Header:         res.Header,
 10415  			HTTPStatusCode: res.StatusCode,
 10416  		},
 10417  	}
 10418  	target := &ret
 10419  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10420  		return nil, err
 10421  	}
 10422  	return ret, nil
 10423  }
 10424  
 10425  type ProjectsLocationsJobsSetIamPolicyCall struct {
 10426  	s                   *APIService
 10427  	resource            string
 10428  	setiampolicyrequest *SetIamPolicyRequest
 10429  	urlParams_          gensupport.URLParams
 10430  	ctx_                context.Context
 10431  	header_             http.Header
 10432  }
 10433  
 10434  // SetIamPolicy: Sets the IAM Access control policy for the specified job.
 10435  // Overwrites any existing policy.
 10436  //
 10437  //   - resource: REQUIRED: The resource for which the policy is being specified.
 10438  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 10439  //     for the appropriate value for this field.
 10440  func (r *ProjectsLocationsJobsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsJobsSetIamPolicyCall {
 10441  	c := &ProjectsLocationsJobsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10442  	c.resource = resource
 10443  	c.setiampolicyrequest = setiampolicyrequest
 10444  	return c
 10445  }
 10446  
 10447  // Fields allows partial responses to be retrieved. See
 10448  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10449  // details.
 10450  func (c *ProjectsLocationsJobsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsSetIamPolicyCall {
 10451  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10452  	return c
 10453  }
 10454  
 10455  // Context sets the context to be used in this call's Do method.
 10456  func (c *ProjectsLocationsJobsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsJobsSetIamPolicyCall {
 10457  	c.ctx_ = ctx
 10458  	return c
 10459  }
 10460  
 10461  // Header returns a http.Header that can be modified by the caller to add
 10462  // headers to the request.
 10463  func (c *ProjectsLocationsJobsSetIamPolicyCall) Header() http.Header {
 10464  	if c.header_ == nil {
 10465  		c.header_ = make(http.Header)
 10466  	}
 10467  	return c.header_
 10468  }
 10469  
 10470  func (c *ProjectsLocationsJobsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 10471  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10472  	var body io.Reader = nil
 10473  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 10474  	if err != nil {
 10475  		return nil, err
 10476  	}
 10477  	c.urlParams_.Set("alt", alt)
 10478  	c.urlParams_.Set("prettyPrint", "false")
 10479  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 10480  	urls += "?" + c.urlParams_.Encode()
 10481  	req, err := http.NewRequest("POST", urls, body)
 10482  	if err != nil {
 10483  		return nil, err
 10484  	}
 10485  	req.Header = reqHeaders
 10486  	googleapi.Expand(req.URL, map[string]string{
 10487  		"resource": c.resource,
 10488  	})
 10489  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10490  }
 10491  
 10492  // Do executes the "run.projects.locations.jobs.setIamPolicy" call.
 10493  // Any non-2xx status code is an error. Response headers are in either
 10494  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 10495  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10496  // whether the returned error was because http.StatusNotModified was returned.
 10497  func (c *ProjectsLocationsJobsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 10498  	gensupport.SetOptions(c.urlParams_, opts...)
 10499  	res, err := c.doRequest("json")
 10500  	if res != nil && res.StatusCode == http.StatusNotModified {
 10501  		if res.Body != nil {
 10502  			res.Body.Close()
 10503  		}
 10504  		return nil, gensupport.WrapError(&googleapi.Error{
 10505  			Code:   res.StatusCode,
 10506  			Header: res.Header,
 10507  		})
 10508  	}
 10509  	if err != nil {
 10510  		return nil, err
 10511  	}
 10512  	defer googleapi.CloseBody(res)
 10513  	if err := googleapi.CheckResponse(res); err != nil {
 10514  		return nil, gensupport.WrapError(err)
 10515  	}
 10516  	ret := &Policy{
 10517  		ServerResponse: googleapi.ServerResponse{
 10518  			Header:         res.Header,
 10519  			HTTPStatusCode: res.StatusCode,
 10520  		},
 10521  	}
 10522  	target := &ret
 10523  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10524  		return nil, err
 10525  	}
 10526  	return ret, nil
 10527  }
 10528  
 10529  type ProjectsLocationsJobsTestIamPermissionsCall struct {
 10530  	s                         *APIService
 10531  	resource                  string
 10532  	testiampermissionsrequest *TestIamPermissionsRequest
 10533  	urlParams_                gensupport.URLParams
 10534  	ctx_                      context.Context
 10535  	header_                   http.Header
 10536  }
 10537  
 10538  // TestIamPermissions: Returns permissions that a caller has on the specified
 10539  // job. There are no permissions required for making this API call.
 10540  //
 10541  //   - resource: REQUIRED: The resource for which the policy detail is being
 10542  //     requested. See Resource names
 10543  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 10544  //     value for this field.
 10545  func (r *ProjectsLocationsJobsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsJobsTestIamPermissionsCall {
 10546  	c := &ProjectsLocationsJobsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10547  	c.resource = resource
 10548  	c.testiampermissionsrequest = testiampermissionsrequest
 10549  	return c
 10550  }
 10551  
 10552  // Fields allows partial responses to be retrieved. See
 10553  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10554  // details.
 10555  func (c *ProjectsLocationsJobsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobsTestIamPermissionsCall {
 10556  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10557  	return c
 10558  }
 10559  
 10560  // Context sets the context to be used in this call's Do method.
 10561  func (c *ProjectsLocationsJobsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsJobsTestIamPermissionsCall {
 10562  	c.ctx_ = ctx
 10563  	return c
 10564  }
 10565  
 10566  // Header returns a http.Header that can be modified by the caller to add
 10567  // headers to the request.
 10568  func (c *ProjectsLocationsJobsTestIamPermissionsCall) Header() http.Header {
 10569  	if c.header_ == nil {
 10570  		c.header_ = make(http.Header)
 10571  	}
 10572  	return c.header_
 10573  }
 10574  
 10575  func (c *ProjectsLocationsJobsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 10576  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10577  	var body io.Reader = nil
 10578  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 10579  	if err != nil {
 10580  		return nil, err
 10581  	}
 10582  	c.urlParams_.Set("alt", alt)
 10583  	c.urlParams_.Set("prettyPrint", "false")
 10584  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 10585  	urls += "?" + c.urlParams_.Encode()
 10586  	req, err := http.NewRequest("POST", urls, body)
 10587  	if err != nil {
 10588  		return nil, err
 10589  	}
 10590  	req.Header = reqHeaders
 10591  	googleapi.Expand(req.URL, map[string]string{
 10592  		"resource": c.resource,
 10593  	})
 10594  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10595  }
 10596  
 10597  // Do executes the "run.projects.locations.jobs.testIamPermissions" call.
 10598  // Any non-2xx status code is an error. Response headers are in either
 10599  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 10600  // returned at all) in error.(*googleapi.Error).Header. Use
 10601  // googleapi.IsNotModified to check whether the returned error was because
 10602  // http.StatusNotModified was returned.
 10603  func (c *ProjectsLocationsJobsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 10604  	gensupport.SetOptions(c.urlParams_, opts...)
 10605  	res, err := c.doRequest("json")
 10606  	if res != nil && res.StatusCode == http.StatusNotModified {
 10607  		if res.Body != nil {
 10608  			res.Body.Close()
 10609  		}
 10610  		return nil, gensupport.WrapError(&googleapi.Error{
 10611  			Code:   res.StatusCode,
 10612  			Header: res.Header,
 10613  		})
 10614  	}
 10615  	if err != nil {
 10616  		return nil, err
 10617  	}
 10618  	defer googleapi.CloseBody(res)
 10619  	if err := googleapi.CheckResponse(res); err != nil {
 10620  		return nil, gensupport.WrapError(err)
 10621  	}
 10622  	ret := &TestIamPermissionsResponse{
 10623  		ServerResponse: googleapi.ServerResponse{
 10624  			Header:         res.Header,
 10625  			HTTPStatusCode: res.StatusCode,
 10626  		},
 10627  	}
 10628  	target := &ret
 10629  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10630  		return nil, err
 10631  	}
 10632  	return ret, nil
 10633  }
 10634  
 10635  type ProjectsLocationsOperationsDeleteCall struct {
 10636  	s          *APIService
 10637  	name       string
 10638  	urlParams_ gensupport.URLParams
 10639  	ctx_       context.Context
 10640  	header_    http.Header
 10641  }
 10642  
 10643  // Delete: Deletes a long-running operation. This method indicates that the
 10644  // client is no longer interested in the operation result. It does not cancel
 10645  // the operation. If the server doesn't support this method, it returns
 10646  // `google.rpc.Code.UNIMPLEMENTED`.
 10647  //
 10648  // - name: The name of the operation resource to be deleted.
 10649  func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
 10650  	c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10651  	c.name = name
 10652  	return c
 10653  }
 10654  
 10655  // Fields allows partial responses to be retrieved. See
 10656  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10657  // details.
 10658  func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
 10659  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10660  	return c
 10661  }
 10662  
 10663  // Context sets the context to be used in this call's Do method.
 10664  func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
 10665  	c.ctx_ = ctx
 10666  	return c
 10667  }
 10668  
 10669  // Header returns a http.Header that can be modified by the caller to add
 10670  // headers to the request.
 10671  func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
 10672  	if c.header_ == nil {
 10673  		c.header_ = make(http.Header)
 10674  	}
 10675  	return c.header_
 10676  }
 10677  
 10678  func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 10679  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10680  	var body io.Reader = nil
 10681  	c.urlParams_.Set("alt", alt)
 10682  	c.urlParams_.Set("prettyPrint", "false")
 10683  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10684  	urls += "?" + c.urlParams_.Encode()
 10685  	req, err := http.NewRequest("DELETE", urls, body)
 10686  	if err != nil {
 10687  		return nil, err
 10688  	}
 10689  	req.Header = reqHeaders
 10690  	googleapi.Expand(req.URL, map[string]string{
 10691  		"name": c.name,
 10692  	})
 10693  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10694  }
 10695  
 10696  // Do executes the "run.projects.locations.operations.delete" call.
 10697  // Any non-2xx status code is an error. Response headers are in either
 10698  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 10699  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10700  // whether the returned error was because http.StatusNotModified was returned.
 10701  func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 10702  	gensupport.SetOptions(c.urlParams_, opts...)
 10703  	res, err := c.doRequest("json")
 10704  	if res != nil && res.StatusCode == http.StatusNotModified {
 10705  		if res.Body != nil {
 10706  			res.Body.Close()
 10707  		}
 10708  		return nil, gensupport.WrapError(&googleapi.Error{
 10709  			Code:   res.StatusCode,
 10710  			Header: res.Header,
 10711  		})
 10712  	}
 10713  	if err != nil {
 10714  		return nil, err
 10715  	}
 10716  	defer googleapi.CloseBody(res)
 10717  	if err := googleapi.CheckResponse(res); err != nil {
 10718  		return nil, gensupport.WrapError(err)
 10719  	}
 10720  	ret := &Empty{
 10721  		ServerResponse: googleapi.ServerResponse{
 10722  			Header:         res.Header,
 10723  			HTTPStatusCode: res.StatusCode,
 10724  		},
 10725  	}
 10726  	target := &ret
 10727  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10728  		return nil, err
 10729  	}
 10730  	return ret, nil
 10731  }
 10732  
 10733  type ProjectsLocationsOperationsGetCall struct {
 10734  	s            *APIService
 10735  	name         string
 10736  	urlParams_   gensupport.URLParams
 10737  	ifNoneMatch_ string
 10738  	ctx_         context.Context
 10739  	header_      http.Header
 10740  }
 10741  
 10742  // Get: Gets the latest state of a long-running operation. Clients can use this
 10743  // method to poll the operation result at intervals as recommended by the API
 10744  // service.
 10745  //
 10746  // - name: The name of the operation resource.
 10747  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 10748  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10749  	c.name = name
 10750  	return c
 10751  }
 10752  
 10753  // Fields allows partial responses to be retrieved. See
 10754  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10755  // details.
 10756  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 10757  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10758  	return c
 10759  }
 10760  
 10761  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10762  // object's ETag matches the given value. This is useful for getting updates
 10763  // only after the object has changed since the last request.
 10764  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 10765  	c.ifNoneMatch_ = entityTag
 10766  	return c
 10767  }
 10768  
 10769  // Context sets the context to be used in this call's Do method.
 10770  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 10771  	c.ctx_ = ctx
 10772  	return c
 10773  }
 10774  
 10775  // Header returns a http.Header that can be modified by the caller to add
 10776  // headers to the request.
 10777  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 10778  	if c.header_ == nil {
 10779  		c.header_ = make(http.Header)
 10780  	}
 10781  	return c.header_
 10782  }
 10783  
 10784  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 10785  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10786  	if c.ifNoneMatch_ != "" {
 10787  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10788  	}
 10789  	var body io.Reader = nil
 10790  	c.urlParams_.Set("alt", alt)
 10791  	c.urlParams_.Set("prettyPrint", "false")
 10792  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10793  	urls += "?" + c.urlParams_.Encode()
 10794  	req, err := http.NewRequest("GET", urls, body)
 10795  	if err != nil {
 10796  		return nil, err
 10797  	}
 10798  	req.Header = reqHeaders
 10799  	googleapi.Expand(req.URL, map[string]string{
 10800  		"name": c.name,
 10801  	})
 10802  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10803  }
 10804  
 10805  // Do executes the "run.projects.locations.operations.get" call.
 10806  // Any non-2xx status code is an error. Response headers are in either
 10807  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 10808  // returned at all) in error.(*googleapi.Error).Header. Use
 10809  // googleapi.IsNotModified to check whether the returned error was because
 10810  // http.StatusNotModified was returned.
 10811  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 10812  	gensupport.SetOptions(c.urlParams_, opts...)
 10813  	res, err := c.doRequest("json")
 10814  	if res != nil && res.StatusCode == http.StatusNotModified {
 10815  		if res.Body != nil {
 10816  			res.Body.Close()
 10817  		}
 10818  		return nil, gensupport.WrapError(&googleapi.Error{
 10819  			Code:   res.StatusCode,
 10820  			Header: res.Header,
 10821  		})
 10822  	}
 10823  	if err != nil {
 10824  		return nil, err
 10825  	}
 10826  	defer googleapi.CloseBody(res)
 10827  	if err := googleapi.CheckResponse(res); err != nil {
 10828  		return nil, gensupport.WrapError(err)
 10829  	}
 10830  	ret := &GoogleLongrunningOperation{
 10831  		ServerResponse: googleapi.ServerResponse{
 10832  			Header:         res.Header,
 10833  			HTTPStatusCode: res.StatusCode,
 10834  		},
 10835  	}
 10836  	target := &ret
 10837  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10838  		return nil, err
 10839  	}
 10840  	return ret, nil
 10841  }
 10842  
 10843  type ProjectsLocationsOperationsListCall struct {
 10844  	s            *APIService
 10845  	name         string
 10846  	urlParams_   gensupport.URLParams
 10847  	ifNoneMatch_ string
 10848  	ctx_         context.Context
 10849  	header_      http.Header
 10850  }
 10851  
 10852  // List: Lists operations that match the specified filter in the request. If
 10853  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 10854  //
 10855  // - name: To query for all of the operations for a project.
 10856  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 10857  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10858  	c.name = name
 10859  	return c
 10860  }
 10861  
 10862  // Filter sets the optional parameter "filter": A filter for matching the
 10863  // completed or in-progress operations. The supported formats of *filter* are:
 10864  // To query for only completed operations: done:true To query for only ongoing
 10865  // operations: done:false Must be empty to query for all of the latest
 10866  // operations for the given parent project.
 10867  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 10868  	c.urlParams_.Set("filter", filter)
 10869  	return c
 10870  }
 10871  
 10872  // PageSize sets the optional parameter "pageSize": The maximum number of
 10873  // records that should be returned. Requested page size cannot exceed 100. If
 10874  // not set or set to less than or equal to 0, the default page size is 100. .
 10875  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 10876  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10877  	return c
 10878  }
 10879  
 10880  // PageToken sets the optional parameter "pageToken": Token identifying which
 10881  // result to start with, which is returned by a previous list call.
 10882  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 10883  	c.urlParams_.Set("pageToken", pageToken)
 10884  	return c
 10885  }
 10886  
 10887  // Fields allows partial responses to be retrieved. See
 10888  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10889  // details.
 10890  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 10891  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10892  	return c
 10893  }
 10894  
 10895  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10896  // object's ETag matches the given value. This is useful for getting updates
 10897  // only after the object has changed since the last request.
 10898  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 10899  	c.ifNoneMatch_ = entityTag
 10900  	return c
 10901  }
 10902  
 10903  // Context sets the context to be used in this call's Do method.
 10904  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 10905  	c.ctx_ = ctx
 10906  	return c
 10907  }
 10908  
 10909  // Header returns a http.Header that can be modified by the caller to add
 10910  // headers to the request.
 10911  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 10912  	if c.header_ == nil {
 10913  		c.header_ = make(http.Header)
 10914  	}
 10915  	return c.header_
 10916  }
 10917  
 10918  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 10919  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10920  	if c.ifNoneMatch_ != "" {
 10921  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10922  	}
 10923  	var body io.Reader = nil
 10924  	c.urlParams_.Set("alt", alt)
 10925  	c.urlParams_.Set("prettyPrint", "false")
 10926  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 10927  	urls += "?" + c.urlParams_.Encode()
 10928  	req, err := http.NewRequest("GET", urls, body)
 10929  	if err != nil {
 10930  		return nil, err
 10931  	}
 10932  	req.Header = reqHeaders
 10933  	googleapi.Expand(req.URL, map[string]string{
 10934  		"name": c.name,
 10935  	})
 10936  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10937  }
 10938  
 10939  // Do executes the "run.projects.locations.operations.list" call.
 10940  // Any non-2xx status code is an error. Response headers are in either
 10941  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 10942  // response was returned at all) in error.(*googleapi.Error).Header. Use
 10943  // googleapi.IsNotModified to check whether the returned error was because
 10944  // http.StatusNotModified was returned.
 10945  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 10946  	gensupport.SetOptions(c.urlParams_, opts...)
 10947  	res, err := c.doRequest("json")
 10948  	if res != nil && res.StatusCode == http.StatusNotModified {
 10949  		if res.Body != nil {
 10950  			res.Body.Close()
 10951  		}
 10952  		return nil, gensupport.WrapError(&googleapi.Error{
 10953  			Code:   res.StatusCode,
 10954  			Header: res.Header,
 10955  		})
 10956  	}
 10957  	if err != nil {
 10958  		return nil, err
 10959  	}
 10960  	defer googleapi.CloseBody(res)
 10961  	if err := googleapi.CheckResponse(res); err != nil {
 10962  		return nil, gensupport.WrapError(err)
 10963  	}
 10964  	ret := &GoogleLongrunningListOperationsResponse{
 10965  		ServerResponse: googleapi.ServerResponse{
 10966  			Header:         res.Header,
 10967  			HTTPStatusCode: res.StatusCode,
 10968  		},
 10969  	}
 10970  	target := &ret
 10971  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10972  		return nil, err
 10973  	}
 10974  	return ret, nil
 10975  }
 10976  
 10977  // Pages invokes f for each page of results.
 10978  // A non-nil error returned from f will halt the iteration.
 10979  // The provided context supersedes any context provided to the Context method.
 10980  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 10981  	c.ctx_ = ctx
 10982  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10983  	for {
 10984  		x, err := c.Do()
 10985  		if err != nil {
 10986  			return err
 10987  		}
 10988  		if err := f(x); err != nil {
 10989  			return err
 10990  		}
 10991  		if x.NextPageToken == "" {
 10992  			return nil
 10993  		}
 10994  		c.PageToken(x.NextPageToken)
 10995  	}
 10996  }
 10997  
 10998  type ProjectsLocationsOperationsWaitCall struct {
 10999  	s                                     *APIService
 11000  	name                                  string
 11001  	googlelongrunningwaitoperationrequest *GoogleLongrunningWaitOperationRequest
 11002  	urlParams_                            gensupport.URLParams
 11003  	ctx_                                  context.Context
 11004  	header_                               http.Header
 11005  }
 11006  
 11007  // Wait: Waits until the specified long-running operation is done or reaches at
 11008  // most a specified timeout, returning the latest state. If the operation is
 11009  // already done, the latest state is immediately returned. If the timeout
 11010  // specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout
 11011  // is used. If the server does not support this method, it returns
 11012  // `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort
 11013  // basis. It may return the latest state before the specified timeout
 11014  // (including immediately), meaning even an immediate response is no guarantee
 11015  // that the operation is done.
 11016  //
 11017  // - name: The name of the operation resource to wait on.
 11018  func (r *ProjectsLocationsOperationsService) Wait(name string, googlelongrunningwaitoperationrequest *GoogleLongrunningWaitOperationRequest) *ProjectsLocationsOperationsWaitCall {
 11019  	c := &ProjectsLocationsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11020  	c.name = name
 11021  	c.googlelongrunningwaitoperationrequest = googlelongrunningwaitoperationrequest
 11022  	return c
 11023  }
 11024  
 11025  // Fields allows partial responses to be retrieved. See
 11026  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11027  // details.
 11028  func (c *ProjectsLocationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsWaitCall {
 11029  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11030  	return c
 11031  }
 11032  
 11033  // Context sets the context to be used in this call's Do method.
 11034  func (c *ProjectsLocationsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsOperationsWaitCall {
 11035  	c.ctx_ = ctx
 11036  	return c
 11037  }
 11038  
 11039  // Header returns a http.Header that can be modified by the caller to add
 11040  // headers to the request.
 11041  func (c *ProjectsLocationsOperationsWaitCall) Header() http.Header {
 11042  	if c.header_ == nil {
 11043  		c.header_ = make(http.Header)
 11044  	}
 11045  	return c.header_
 11046  }
 11047  
 11048  func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Response, error) {
 11049  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11050  	var body io.Reader = nil
 11051  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningwaitoperationrequest)
 11052  	if err != nil {
 11053  		return nil, err
 11054  	}
 11055  	c.urlParams_.Set("alt", alt)
 11056  	c.urlParams_.Set("prettyPrint", "false")
 11057  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait")
 11058  	urls += "?" + c.urlParams_.Encode()
 11059  	req, err := http.NewRequest("POST", urls, body)
 11060  	if err != nil {
 11061  		return nil, err
 11062  	}
 11063  	req.Header = reqHeaders
 11064  	googleapi.Expand(req.URL, map[string]string{
 11065  		"name": c.name,
 11066  	})
 11067  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11068  }
 11069  
 11070  // Do executes the "run.projects.locations.operations.wait" call.
 11071  // Any non-2xx status code is an error. Response headers are in either
 11072  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 11073  // returned at all) in error.(*googleapi.Error).Header. Use
 11074  // googleapi.IsNotModified to check whether the returned error was because
 11075  // http.StatusNotModified was returned.
 11076  func (c *ProjectsLocationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 11077  	gensupport.SetOptions(c.urlParams_, opts...)
 11078  	res, err := c.doRequest("json")
 11079  	if res != nil && res.StatusCode == http.StatusNotModified {
 11080  		if res.Body != nil {
 11081  			res.Body.Close()
 11082  		}
 11083  		return nil, gensupport.WrapError(&googleapi.Error{
 11084  			Code:   res.StatusCode,
 11085  			Header: res.Header,
 11086  		})
 11087  	}
 11088  	if err != nil {
 11089  		return nil, err
 11090  	}
 11091  	defer googleapi.CloseBody(res)
 11092  	if err := googleapi.CheckResponse(res); err != nil {
 11093  		return nil, gensupport.WrapError(err)
 11094  	}
 11095  	ret := &GoogleLongrunningOperation{
 11096  		ServerResponse: googleapi.ServerResponse{
 11097  			Header:         res.Header,
 11098  			HTTPStatusCode: res.StatusCode,
 11099  		},
 11100  	}
 11101  	target := &ret
 11102  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11103  		return nil, err
 11104  	}
 11105  	return ret, nil
 11106  }
 11107  
 11108  type ProjectsLocationsRevisionsDeleteCall struct {
 11109  	s          *APIService
 11110  	name       string
 11111  	urlParams_ gensupport.URLParams
 11112  	ctx_       context.Context
 11113  	header_    http.Header
 11114  }
 11115  
 11116  // Delete: Delete a revision.
 11117  //
 11118  //   - name: The name of the revision to delete. For Cloud Run (fully managed),
 11119  //     replace {namespace} with the project ID or number. It takes the form
 11120  //     namespaces/{namespace}. For example: namespaces/PROJECT_ID.
 11121  func (r *ProjectsLocationsRevisionsService) Delete(name string) *ProjectsLocationsRevisionsDeleteCall {
 11122  	c := &ProjectsLocationsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11123  	c.name = name
 11124  	return c
 11125  }
 11126  
 11127  // ApiVersion sets the optional parameter "apiVersion": Cloud Run currently
 11128  // ignores this parameter.
 11129  func (c *ProjectsLocationsRevisionsDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsRevisionsDeleteCall {
 11130  	c.urlParams_.Set("apiVersion", apiVersion)
 11131  	return c
 11132  }
 11133  
 11134  // DryRun sets the optional parameter "dryRun": Indicates that the server
 11135  // should validate the request and populate default values without persisting
 11136  // the request. Supported values: `all`
 11137  func (c *ProjectsLocationsRevisionsDeleteCall) DryRun(dryRun string) *ProjectsLocationsRevisionsDeleteCall {
 11138  	c.urlParams_.Set("dryRun", dryRun)
 11139  	return c
 11140  }
 11141  
 11142  // Kind sets the optional parameter "kind": Cloud Run currently ignores this
 11143  // parameter.
 11144  func (c *ProjectsLocationsRevisionsDeleteCall) Kind(kind string) *ProjectsLocationsRevisionsDeleteCall {
 11145  	c.urlParams_.Set("kind", kind)
 11146  	return c
 11147  }
 11148  
 11149  // PropagationPolicy sets the optional parameter "propagationPolicy": Specifies
 11150  // the propagation policy of delete. Cloud Run currently ignores this setting,
 11151  // and deletes in the background.
 11152  func (c *ProjectsLocationsRevisionsDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsRevisionsDeleteCall {
 11153  	c.urlParams_.Set("propagationPolicy", propagationPolicy)
 11154  	return c
 11155  }
 11156  
 11157  // Fields allows partial responses to be retrieved. See
 11158  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11159  // details.
 11160  func (c *ProjectsLocationsRevisionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRevisionsDeleteCall {
 11161  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11162  	return c
 11163  }
 11164  
 11165  // Context sets the context to be used in this call's Do method.
 11166  func (c *ProjectsLocationsRevisionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRevisionsDeleteCall {
 11167  	c.ctx_ = ctx
 11168  	return c
 11169  }
 11170  
 11171  // Header returns a http.Header that can be modified by the caller to add
 11172  // headers to the request.
 11173  func (c *ProjectsLocationsRevisionsDeleteCall) Header() http.Header {
 11174  	if c.header_ == nil {
 11175  		c.header_ = make(http.Header)
 11176  	}
 11177  	return c.header_
 11178  }
 11179  
 11180  func (c *ProjectsLocationsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 11181  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11182  	var body io.Reader = nil
 11183  	c.urlParams_.Set("alt", alt)
 11184  	c.urlParams_.Set("prettyPrint", "false")
 11185  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11186  	urls += "?" + c.urlParams_.Encode()
 11187  	req, err := http.NewRequest("DELETE", urls, body)
 11188  	if err != nil {
 11189  		return nil, err
 11190  	}
 11191  	req.Header = reqHeaders
 11192  	googleapi.Expand(req.URL, map[string]string{
 11193  		"name": c.name,
 11194  	})
 11195  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11196  }
 11197  
 11198  // Do executes the "run.projects.locations.revisions.delete" call.
 11199  // Any non-2xx status code is an error. Response headers are in either
 11200  // *Status.ServerResponse.Header or (if a response was returned at all) in
 11201  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11202  // whether the returned error was because http.StatusNotModified was returned.
 11203  func (c *ProjectsLocationsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
 11204  	gensupport.SetOptions(c.urlParams_, opts...)
 11205  	res, err := c.doRequest("json")
 11206  	if res != nil && res.StatusCode == http.StatusNotModified {
 11207  		if res.Body != nil {
 11208  			res.Body.Close()
 11209  		}
 11210  		return nil, gensupport.WrapError(&googleapi.Error{
 11211  			Code:   res.StatusCode,
 11212  			Header: res.Header,
 11213  		})
 11214  	}
 11215  	if err != nil {
 11216  		return nil, err
 11217  	}
 11218  	defer googleapi.CloseBody(res)
 11219  	if err := googleapi.CheckResponse(res); err != nil {
 11220  		return nil, gensupport.WrapError(err)
 11221  	}
 11222  	ret := &Status{
 11223  		ServerResponse: googleapi.ServerResponse{
 11224  			Header:         res.Header,
 11225  			HTTPStatusCode: res.StatusCode,
 11226  		},
 11227  	}
 11228  	target := &ret
 11229  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11230  		return nil, err
 11231  	}
 11232  	return ret, nil
 11233  }
 11234  
 11235  type ProjectsLocationsRevisionsGetCall struct {
 11236  	s            *APIService
 11237  	name         string
 11238  	urlParams_   gensupport.URLParams
 11239  	ifNoneMatch_ string
 11240  	ctx_         context.Context
 11241  	header_      http.Header
 11242  }
 11243  
 11244  // Get: Get information about a revision.
 11245  //
 11246  //   - name: The name of the revision to retrieve. For Cloud Run (fully managed),
 11247  //     replace {namespace} with the project ID or number. It takes the form
 11248  //     namespaces/{namespace}. For example: namespaces/PROJECT_ID.
 11249  func (r *ProjectsLocationsRevisionsService) Get(name string) *ProjectsLocationsRevisionsGetCall {
 11250  	c := &ProjectsLocationsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11251  	c.name = name
 11252  	return c
 11253  }
 11254  
 11255  // Fields allows partial responses to be retrieved. See
 11256  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11257  // details.
 11258  func (c *ProjectsLocationsRevisionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRevisionsGetCall {
 11259  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11260  	return c
 11261  }
 11262  
 11263  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11264  // object's ETag matches the given value. This is useful for getting updates
 11265  // only after the object has changed since the last request.
 11266  func (c *ProjectsLocationsRevisionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRevisionsGetCall {
 11267  	c.ifNoneMatch_ = entityTag
 11268  	return c
 11269  }
 11270  
 11271  // Context sets the context to be used in this call's Do method.
 11272  func (c *ProjectsLocationsRevisionsGetCall) Context(ctx context.Context) *ProjectsLocationsRevisionsGetCall {
 11273  	c.ctx_ = ctx
 11274  	return c
 11275  }
 11276  
 11277  // Header returns a http.Header that can be modified by the caller to add
 11278  // headers to the request.
 11279  func (c *ProjectsLocationsRevisionsGetCall) Header() http.Header {
 11280  	if c.header_ == nil {
 11281  		c.header_ = make(http.Header)
 11282  	}
 11283  	return c.header_
 11284  }
 11285  
 11286  func (c *ProjectsLocationsRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
 11287  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11288  	if c.ifNoneMatch_ != "" {
 11289  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11290  	}
 11291  	var body io.Reader = nil
 11292  	c.urlParams_.Set("alt", alt)
 11293  	c.urlParams_.Set("prettyPrint", "false")
 11294  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11295  	urls += "?" + c.urlParams_.Encode()
 11296  	req, err := http.NewRequest("GET", urls, body)
 11297  	if err != nil {
 11298  		return nil, err
 11299  	}
 11300  	req.Header = reqHeaders
 11301  	googleapi.Expand(req.URL, map[string]string{
 11302  		"name": c.name,
 11303  	})
 11304  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11305  }
 11306  
 11307  // Do executes the "run.projects.locations.revisions.get" call.
 11308  // Any non-2xx status code is an error. Response headers are in either
 11309  // *Revision.ServerResponse.Header or (if a response was returned at all) in
 11310  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11311  // whether the returned error was because http.StatusNotModified was returned.
 11312  func (c *ProjectsLocationsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*Revision, error) {
 11313  	gensupport.SetOptions(c.urlParams_, opts...)
 11314  	res, err := c.doRequest("json")
 11315  	if res != nil && res.StatusCode == http.StatusNotModified {
 11316  		if res.Body != nil {
 11317  			res.Body.Close()
 11318  		}
 11319  		return nil, gensupport.WrapError(&googleapi.Error{
 11320  			Code:   res.StatusCode,
 11321  			Header: res.Header,
 11322  		})
 11323  	}
 11324  	if err != nil {
 11325  		return nil, err
 11326  	}
 11327  	defer googleapi.CloseBody(res)
 11328  	if err := googleapi.CheckResponse(res); err != nil {
 11329  		return nil, gensupport.WrapError(err)
 11330  	}
 11331  	ret := &Revision{
 11332  		ServerResponse: googleapi.ServerResponse{
 11333  			Header:         res.Header,
 11334  			HTTPStatusCode: res.StatusCode,
 11335  		},
 11336  	}
 11337  	target := &ret
 11338  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11339  		return nil, err
 11340  	}
 11341  	return ret, nil
 11342  }
 11343  
 11344  type ProjectsLocationsRevisionsListCall struct {
 11345  	s            *APIService
 11346  	parent       string
 11347  	urlParams_   gensupport.URLParams
 11348  	ifNoneMatch_ string
 11349  	ctx_         context.Context
 11350  	header_      http.Header
 11351  }
 11352  
 11353  // List: List revisions.
 11354  //
 11355  //   - parent: The namespace from which the revisions should be listed. For Cloud
 11356  //     Run (fully managed), replace {namespace} with the project ID or number. It
 11357  //     takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID.
 11358  func (r *ProjectsLocationsRevisionsService) List(parent string) *ProjectsLocationsRevisionsListCall {
 11359  	c := &ProjectsLocationsRevisionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11360  	c.parent = parent
 11361  	return c
 11362  }
 11363  
 11364  // Continue sets the optional parameter "continue": Encoded string to continue
 11365  // paging.
 11366  func (c *ProjectsLocationsRevisionsListCall) Continue(continue_ string) *ProjectsLocationsRevisionsListCall {
 11367  	c.urlParams_.Set("continue", continue_)
 11368  	return c
 11369  }
 11370  
 11371  // FieldSelector sets the optional parameter "fieldSelector": Allows to filter
 11372  // resources based on a specific value for a field name. Send this in a query
 11373  // string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud
 11374  // Run.
 11375  func (c *ProjectsLocationsRevisionsListCall) FieldSelector(fieldSelector string) *ProjectsLocationsRevisionsListCall {
 11376  	c.urlParams_.Set("fieldSelector", fieldSelector)
 11377  	return c
 11378  }
 11379  
 11380  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
 11381  // currently used by Cloud Run.
 11382  func (c *ProjectsLocationsRevisionsListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsRevisionsListCall {
 11383  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
 11384  	return c
 11385  }
 11386  
 11387  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
 11388  // resources based on a label. Supported operations are =, !=, exists, in, and
 11389  // notIn.
 11390  func (c *ProjectsLocationsRevisionsListCall) LabelSelector(labelSelector string) *ProjectsLocationsRevisionsListCall {
 11391  	c.urlParams_.Set("labelSelector", labelSelector)
 11392  	return c
 11393  }
 11394  
 11395  // Limit sets the optional parameter "limit": The maximum number of records
 11396  // that should be returned.
 11397  func (c *ProjectsLocationsRevisionsListCall) Limit(limit int64) *ProjectsLocationsRevisionsListCall {
 11398  	c.urlParams_.Set("limit", fmt.Sprint(limit))
 11399  	return c
 11400  }
 11401  
 11402  // ResourceVersion sets the optional parameter "resourceVersion": The baseline
 11403  // resource version from which the list or watch operation should start. Not
 11404  // currently used by Cloud Run.
 11405  func (c *ProjectsLocationsRevisionsListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsRevisionsListCall {
 11406  	c.urlParams_.Set("resourceVersion", resourceVersion)
 11407  	return c
 11408  }
 11409  
 11410  // Watch sets the optional parameter "watch": Flag that indicates that the
 11411  // client expects to watch this resource as well. Not currently used by Cloud
 11412  // Run.
 11413  func (c *ProjectsLocationsRevisionsListCall) Watch(watch bool) *ProjectsLocationsRevisionsListCall {
 11414  	c.urlParams_.Set("watch", fmt.Sprint(watch))
 11415  	return c
 11416  }
 11417  
 11418  // Fields allows partial responses to be retrieved. See
 11419  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11420  // details.
 11421  func (c *ProjectsLocationsRevisionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRevisionsListCall {
 11422  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11423  	return c
 11424  }
 11425  
 11426  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11427  // object's ETag matches the given value. This is useful for getting updates
 11428  // only after the object has changed since the last request.
 11429  func (c *ProjectsLocationsRevisionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRevisionsListCall {
 11430  	c.ifNoneMatch_ = entityTag
 11431  	return c
 11432  }
 11433  
 11434  // Context sets the context to be used in this call's Do method.
 11435  func (c *ProjectsLocationsRevisionsListCall) Context(ctx context.Context) *ProjectsLocationsRevisionsListCall {
 11436  	c.ctx_ = ctx
 11437  	return c
 11438  }
 11439  
 11440  // Header returns a http.Header that can be modified by the caller to add
 11441  // headers to the request.
 11442  func (c *ProjectsLocationsRevisionsListCall) Header() http.Header {
 11443  	if c.header_ == nil {
 11444  		c.header_ = make(http.Header)
 11445  	}
 11446  	return c.header_
 11447  }
 11448  
 11449  func (c *ProjectsLocationsRevisionsListCall) doRequest(alt string) (*http.Response, error) {
 11450  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11451  	if c.ifNoneMatch_ != "" {
 11452  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11453  	}
 11454  	var body io.Reader = nil
 11455  	c.urlParams_.Set("alt", alt)
 11456  	c.urlParams_.Set("prettyPrint", "false")
 11457  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/revisions")
 11458  	urls += "?" + c.urlParams_.Encode()
 11459  	req, err := http.NewRequest("GET", urls, body)
 11460  	if err != nil {
 11461  		return nil, err
 11462  	}
 11463  	req.Header = reqHeaders
 11464  	googleapi.Expand(req.URL, map[string]string{
 11465  		"parent": c.parent,
 11466  	})
 11467  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11468  }
 11469  
 11470  // Do executes the "run.projects.locations.revisions.list" call.
 11471  // Any non-2xx status code is an error. Response headers are in either
 11472  // *ListRevisionsResponse.ServerResponse.Header or (if a response was returned
 11473  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11474  // check whether the returned error was because http.StatusNotModified was
 11475  // returned.
 11476  func (c *ProjectsLocationsRevisionsListCall) Do(opts ...googleapi.CallOption) (*ListRevisionsResponse, error) {
 11477  	gensupport.SetOptions(c.urlParams_, opts...)
 11478  	res, err := c.doRequest("json")
 11479  	if res != nil && res.StatusCode == http.StatusNotModified {
 11480  		if res.Body != nil {
 11481  			res.Body.Close()
 11482  		}
 11483  		return nil, gensupport.WrapError(&googleapi.Error{
 11484  			Code:   res.StatusCode,
 11485  			Header: res.Header,
 11486  		})
 11487  	}
 11488  	if err != nil {
 11489  		return nil, err
 11490  	}
 11491  	defer googleapi.CloseBody(res)
 11492  	if err := googleapi.CheckResponse(res); err != nil {
 11493  		return nil, gensupport.WrapError(err)
 11494  	}
 11495  	ret := &ListRevisionsResponse{
 11496  		ServerResponse: googleapi.ServerResponse{
 11497  			Header:         res.Header,
 11498  			HTTPStatusCode: res.StatusCode,
 11499  		},
 11500  	}
 11501  	target := &ret
 11502  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11503  		return nil, err
 11504  	}
 11505  	return ret, nil
 11506  }
 11507  
 11508  type ProjectsLocationsRoutesGetCall struct {
 11509  	s            *APIService
 11510  	name         string
 11511  	urlParams_   gensupport.URLParams
 11512  	ifNoneMatch_ string
 11513  	ctx_         context.Context
 11514  	header_      http.Header
 11515  }
 11516  
 11517  // Get: Get information about a route.
 11518  //
 11519  //   - name: The name of the route to retrieve. For Cloud Run (fully managed),
 11520  //     replace {namespace} with the project ID or number. It takes the form
 11521  //     namespaces/{namespace}. For example: namespaces/PROJECT_ID.
 11522  func (r *ProjectsLocationsRoutesService) Get(name string) *ProjectsLocationsRoutesGetCall {
 11523  	c := &ProjectsLocationsRoutesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11524  	c.name = name
 11525  	return c
 11526  }
 11527  
 11528  // Fields allows partial responses to be retrieved. See
 11529  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11530  // details.
 11531  func (c *ProjectsLocationsRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRoutesGetCall {
 11532  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11533  	return c
 11534  }
 11535  
 11536  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11537  // object's ETag matches the given value. This is useful for getting updates
 11538  // only after the object has changed since the last request.
 11539  func (c *ProjectsLocationsRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRoutesGetCall {
 11540  	c.ifNoneMatch_ = entityTag
 11541  	return c
 11542  }
 11543  
 11544  // Context sets the context to be used in this call's Do method.
 11545  func (c *ProjectsLocationsRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsRoutesGetCall {
 11546  	c.ctx_ = ctx
 11547  	return c
 11548  }
 11549  
 11550  // Header returns a http.Header that can be modified by the caller to add
 11551  // headers to the request.
 11552  func (c *ProjectsLocationsRoutesGetCall) Header() http.Header {
 11553  	if c.header_ == nil {
 11554  		c.header_ = make(http.Header)
 11555  	}
 11556  	return c.header_
 11557  }
 11558  
 11559  func (c *ProjectsLocationsRoutesGetCall) doRequest(alt string) (*http.Response, error) {
 11560  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11561  	if c.ifNoneMatch_ != "" {
 11562  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11563  	}
 11564  	var body io.Reader = nil
 11565  	c.urlParams_.Set("alt", alt)
 11566  	c.urlParams_.Set("prettyPrint", "false")
 11567  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11568  	urls += "?" + c.urlParams_.Encode()
 11569  	req, err := http.NewRequest("GET", urls, body)
 11570  	if err != nil {
 11571  		return nil, err
 11572  	}
 11573  	req.Header = reqHeaders
 11574  	googleapi.Expand(req.URL, map[string]string{
 11575  		"name": c.name,
 11576  	})
 11577  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11578  }
 11579  
 11580  // Do executes the "run.projects.locations.routes.get" call.
 11581  // Any non-2xx status code is an error. Response headers are in either
 11582  // *Route.ServerResponse.Header or (if a response was returned at all) in
 11583  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11584  // whether the returned error was because http.StatusNotModified was returned.
 11585  func (c *ProjectsLocationsRoutesGetCall) Do(opts ...googleapi.CallOption) (*Route, error) {
 11586  	gensupport.SetOptions(c.urlParams_, opts...)
 11587  	res, err := c.doRequest("json")
 11588  	if res != nil && res.StatusCode == http.StatusNotModified {
 11589  		if res.Body != nil {
 11590  			res.Body.Close()
 11591  		}
 11592  		return nil, gensupport.WrapError(&googleapi.Error{
 11593  			Code:   res.StatusCode,
 11594  			Header: res.Header,
 11595  		})
 11596  	}
 11597  	if err != nil {
 11598  		return nil, err
 11599  	}
 11600  	defer googleapi.CloseBody(res)
 11601  	if err := googleapi.CheckResponse(res); err != nil {
 11602  		return nil, gensupport.WrapError(err)
 11603  	}
 11604  	ret := &Route{
 11605  		ServerResponse: googleapi.ServerResponse{
 11606  			Header:         res.Header,
 11607  			HTTPStatusCode: res.StatusCode,
 11608  		},
 11609  	}
 11610  	target := &ret
 11611  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11612  		return nil, err
 11613  	}
 11614  	return ret, nil
 11615  }
 11616  
 11617  type ProjectsLocationsRoutesListCall struct {
 11618  	s            *APIService
 11619  	parent       string
 11620  	urlParams_   gensupport.URLParams
 11621  	ifNoneMatch_ string
 11622  	ctx_         context.Context
 11623  	header_      http.Header
 11624  }
 11625  
 11626  // List: List routes.
 11627  //
 11628  //   - parent: The namespace from which the routes should be listed. For Cloud
 11629  //     Run (fully managed), replace {namespace} with the project ID or number. It
 11630  //     takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID.
 11631  func (r *ProjectsLocationsRoutesService) List(parent string) *ProjectsLocationsRoutesListCall {
 11632  	c := &ProjectsLocationsRoutesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11633  	c.parent = parent
 11634  	return c
 11635  }
 11636  
 11637  // Continue sets the optional parameter "continue": Encoded string to continue
 11638  // paging.
 11639  func (c *ProjectsLocationsRoutesListCall) Continue(continue_ string) *ProjectsLocationsRoutesListCall {
 11640  	c.urlParams_.Set("continue", continue_)
 11641  	return c
 11642  }
 11643  
 11644  // FieldSelector sets the optional parameter "fieldSelector": Allows to filter
 11645  // resources based on a specific value for a field name. Send this in a query
 11646  // string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud
 11647  // Run.
 11648  func (c *ProjectsLocationsRoutesListCall) FieldSelector(fieldSelector string) *ProjectsLocationsRoutesListCall {
 11649  	c.urlParams_.Set("fieldSelector", fieldSelector)
 11650  	return c
 11651  }
 11652  
 11653  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
 11654  // currently used by Cloud Run.
 11655  func (c *ProjectsLocationsRoutesListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsRoutesListCall {
 11656  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
 11657  	return c
 11658  }
 11659  
 11660  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
 11661  // resources based on a label. Supported operations are =, !=, exists, in, and
 11662  // notIn.
 11663  func (c *ProjectsLocationsRoutesListCall) LabelSelector(labelSelector string) *ProjectsLocationsRoutesListCall {
 11664  	c.urlParams_.Set("labelSelector", labelSelector)
 11665  	return c
 11666  }
 11667  
 11668  // Limit sets the optional parameter "limit": The maximum number of records
 11669  // that should be returned.
 11670  func (c *ProjectsLocationsRoutesListCall) Limit(limit int64) *ProjectsLocationsRoutesListCall {
 11671  	c.urlParams_.Set("limit", fmt.Sprint(limit))
 11672  	return c
 11673  }
 11674  
 11675  // ResourceVersion sets the optional parameter "resourceVersion": The baseline
 11676  // resource version from which the list or watch operation should start. Not
 11677  // currently used by Cloud Run.
 11678  func (c *ProjectsLocationsRoutesListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsRoutesListCall {
 11679  	c.urlParams_.Set("resourceVersion", resourceVersion)
 11680  	return c
 11681  }
 11682  
 11683  // Watch sets the optional parameter "watch": Flag that indicates that the
 11684  // client expects to watch this resource as well. Not currently used by Cloud
 11685  // Run.
 11686  func (c *ProjectsLocationsRoutesListCall) Watch(watch bool) *ProjectsLocationsRoutesListCall {
 11687  	c.urlParams_.Set("watch", fmt.Sprint(watch))
 11688  	return c
 11689  }
 11690  
 11691  // Fields allows partial responses to be retrieved. See
 11692  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11693  // details.
 11694  func (c *ProjectsLocationsRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRoutesListCall {
 11695  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11696  	return c
 11697  }
 11698  
 11699  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11700  // object's ETag matches the given value. This is useful for getting updates
 11701  // only after the object has changed since the last request.
 11702  func (c *ProjectsLocationsRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRoutesListCall {
 11703  	c.ifNoneMatch_ = entityTag
 11704  	return c
 11705  }
 11706  
 11707  // Context sets the context to be used in this call's Do method.
 11708  func (c *ProjectsLocationsRoutesListCall) Context(ctx context.Context) *ProjectsLocationsRoutesListCall {
 11709  	c.ctx_ = ctx
 11710  	return c
 11711  }
 11712  
 11713  // Header returns a http.Header that can be modified by the caller to add
 11714  // headers to the request.
 11715  func (c *ProjectsLocationsRoutesListCall) Header() http.Header {
 11716  	if c.header_ == nil {
 11717  		c.header_ = make(http.Header)
 11718  	}
 11719  	return c.header_
 11720  }
 11721  
 11722  func (c *ProjectsLocationsRoutesListCall) doRequest(alt string) (*http.Response, error) {
 11723  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11724  	if c.ifNoneMatch_ != "" {
 11725  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11726  	}
 11727  	var body io.Reader = nil
 11728  	c.urlParams_.Set("alt", alt)
 11729  	c.urlParams_.Set("prettyPrint", "false")
 11730  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/routes")
 11731  	urls += "?" + c.urlParams_.Encode()
 11732  	req, err := http.NewRequest("GET", urls, body)
 11733  	if err != nil {
 11734  		return nil, err
 11735  	}
 11736  	req.Header = reqHeaders
 11737  	googleapi.Expand(req.URL, map[string]string{
 11738  		"parent": c.parent,
 11739  	})
 11740  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11741  }
 11742  
 11743  // Do executes the "run.projects.locations.routes.list" call.
 11744  // Any non-2xx status code is an error. Response headers are in either
 11745  // *ListRoutesResponse.ServerResponse.Header or (if a response was returned at
 11746  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11747  // check whether the returned error was because http.StatusNotModified was
 11748  // returned.
 11749  func (c *ProjectsLocationsRoutesListCall) Do(opts ...googleapi.CallOption) (*ListRoutesResponse, error) {
 11750  	gensupport.SetOptions(c.urlParams_, opts...)
 11751  	res, err := c.doRequest("json")
 11752  	if res != nil && res.StatusCode == http.StatusNotModified {
 11753  		if res.Body != nil {
 11754  			res.Body.Close()
 11755  		}
 11756  		return nil, gensupport.WrapError(&googleapi.Error{
 11757  			Code:   res.StatusCode,
 11758  			Header: res.Header,
 11759  		})
 11760  	}
 11761  	if err != nil {
 11762  		return nil, err
 11763  	}
 11764  	defer googleapi.CloseBody(res)
 11765  	if err := googleapi.CheckResponse(res); err != nil {
 11766  		return nil, gensupport.WrapError(err)
 11767  	}
 11768  	ret := &ListRoutesResponse{
 11769  		ServerResponse: googleapi.ServerResponse{
 11770  			Header:         res.Header,
 11771  			HTTPStatusCode: res.StatusCode,
 11772  		},
 11773  	}
 11774  	target := &ret
 11775  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11776  		return nil, err
 11777  	}
 11778  	return ret, nil
 11779  }
 11780  
 11781  type ProjectsLocationsServicesCreateCall struct {
 11782  	s          *APIService
 11783  	parent     string
 11784  	service    *Service
 11785  	urlParams_ gensupport.URLParams
 11786  	ctx_       context.Context
 11787  	header_    http.Header
 11788  }
 11789  
 11790  // Create: Creates a new Service. Service creation will trigger a new
 11791  // deployment. Use GetService, and check service.status to determine if the
 11792  // Service is ready.
 11793  //
 11794  //   - parent: The resource's parent. In Cloud Run, it may be one of the
 11795  //     following: * `{project_id_or_number}` *
 11796  //     `namespaces/{project_id_or_number}` *
 11797  //     `namespaces/{project_id_or_number}/services` *
 11798  //     `projects/{project_id_or_number}/locations/{region}` *
 11799  //     `projects/{project_id_or_number}/regions/{region}`.
 11800  func (r *ProjectsLocationsServicesService) Create(parent string, service *Service) *ProjectsLocationsServicesCreateCall {
 11801  	c := &ProjectsLocationsServicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11802  	c.parent = parent
 11803  	c.service = service
 11804  	return c
 11805  }
 11806  
 11807  // DryRun sets the optional parameter "dryRun": Indicates that the server
 11808  // should validate the request and populate default values without persisting
 11809  // the request. Supported values: `all`
 11810  func (c *ProjectsLocationsServicesCreateCall) DryRun(dryRun string) *ProjectsLocationsServicesCreateCall {
 11811  	c.urlParams_.Set("dryRun", dryRun)
 11812  	return c
 11813  }
 11814  
 11815  // Fields allows partial responses to be retrieved. See
 11816  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11817  // details.
 11818  func (c *ProjectsLocationsServicesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesCreateCall {
 11819  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11820  	return c
 11821  }
 11822  
 11823  // Context sets the context to be used in this call's Do method.
 11824  func (c *ProjectsLocationsServicesCreateCall) Context(ctx context.Context) *ProjectsLocationsServicesCreateCall {
 11825  	c.ctx_ = ctx
 11826  	return c
 11827  }
 11828  
 11829  // Header returns a http.Header that can be modified by the caller to add
 11830  // headers to the request.
 11831  func (c *ProjectsLocationsServicesCreateCall) Header() http.Header {
 11832  	if c.header_ == nil {
 11833  		c.header_ = make(http.Header)
 11834  	}
 11835  	return c.header_
 11836  }
 11837  
 11838  func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Response, error) {
 11839  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11840  	var body io.Reader = nil
 11841  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
 11842  	if err != nil {
 11843  		return nil, err
 11844  	}
 11845  	c.urlParams_.Set("alt", alt)
 11846  	c.urlParams_.Set("prettyPrint", "false")
 11847  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/services")
 11848  	urls += "?" + c.urlParams_.Encode()
 11849  	req, err := http.NewRequest("POST", urls, body)
 11850  	if err != nil {
 11851  		return nil, err
 11852  	}
 11853  	req.Header = reqHeaders
 11854  	googleapi.Expand(req.URL, map[string]string{
 11855  		"parent": c.parent,
 11856  	})
 11857  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11858  }
 11859  
 11860  // Do executes the "run.projects.locations.services.create" call.
 11861  // Any non-2xx status code is an error. Response headers are in either
 11862  // *Service.ServerResponse.Header or (if a response was returned at all) in
 11863  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11864  // whether the returned error was because http.StatusNotModified was returned.
 11865  func (c *ProjectsLocationsServicesCreateCall) Do(opts ...googleapi.CallOption) (*Service, error) {
 11866  	gensupport.SetOptions(c.urlParams_, opts...)
 11867  	res, err := c.doRequest("json")
 11868  	if res != nil && res.StatusCode == http.StatusNotModified {
 11869  		if res.Body != nil {
 11870  			res.Body.Close()
 11871  		}
 11872  		return nil, gensupport.WrapError(&googleapi.Error{
 11873  			Code:   res.StatusCode,
 11874  			Header: res.Header,
 11875  		})
 11876  	}
 11877  	if err != nil {
 11878  		return nil, err
 11879  	}
 11880  	defer googleapi.CloseBody(res)
 11881  	if err := googleapi.CheckResponse(res); err != nil {
 11882  		return nil, gensupport.WrapError(err)
 11883  	}
 11884  	ret := &Service{
 11885  		ServerResponse: googleapi.ServerResponse{
 11886  			Header:         res.Header,
 11887  			HTTPStatusCode: res.StatusCode,
 11888  		},
 11889  	}
 11890  	target := &ret
 11891  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11892  		return nil, err
 11893  	}
 11894  	return ret, nil
 11895  }
 11896  
 11897  type ProjectsLocationsServicesDeleteCall struct {
 11898  	s          *APIService
 11899  	name       string
 11900  	urlParams_ gensupport.URLParams
 11901  	ctx_       context.Context
 11902  	header_    http.Header
 11903  }
 11904  
 11905  // Delete: Deletes the provided service. This will cause the Service to stop
 11906  // serving traffic and will delete all associated Revisions.
 11907  //
 11908  //   - name: The fully qualified name of the service to delete. It can be any of
 11909  //     the following forms: *
 11910  //     `namespaces/{project_id_or_number}/services/{service_name}` (only when the
 11911  //     `endpoint` is regional) *
 11912  //     `projects/{project_id_or_number}/locations/{region}/services/{service_name}
 11913  //     ` *
 11914  //     `projects/{project_id_or_number}/regions/{region}/services/{service_name}`.
 11915  func (r *ProjectsLocationsServicesService) Delete(name string) *ProjectsLocationsServicesDeleteCall {
 11916  	c := &ProjectsLocationsServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11917  	c.name = name
 11918  	return c
 11919  }
 11920  
 11921  // ApiVersion sets the optional parameter "apiVersion": Not supported, and
 11922  // ignored by Cloud Run.
 11923  func (c *ProjectsLocationsServicesDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsServicesDeleteCall {
 11924  	c.urlParams_.Set("apiVersion", apiVersion)
 11925  	return c
 11926  }
 11927  
 11928  // DryRun sets the optional parameter "dryRun": Indicates that the server
 11929  // should validate the request and populate default values without persisting
 11930  // the request. Supported values: `all`
 11931  func (c *ProjectsLocationsServicesDeleteCall) DryRun(dryRun string) *ProjectsLocationsServicesDeleteCall {
 11932  	c.urlParams_.Set("dryRun", dryRun)
 11933  	return c
 11934  }
 11935  
 11936  // Kind sets the optional parameter "kind": Not supported, and ignored by Cloud
 11937  // Run.
 11938  func (c *ProjectsLocationsServicesDeleteCall) Kind(kind string) *ProjectsLocationsServicesDeleteCall {
 11939  	c.urlParams_.Set("kind", kind)
 11940  	return c
 11941  }
 11942  
 11943  // PropagationPolicy sets the optional parameter "propagationPolicy": Not
 11944  // supported, and ignored by Cloud Run.
 11945  func (c *ProjectsLocationsServicesDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsServicesDeleteCall {
 11946  	c.urlParams_.Set("propagationPolicy", propagationPolicy)
 11947  	return c
 11948  }
 11949  
 11950  // Fields allows partial responses to be retrieved. See
 11951  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11952  // details.
 11953  func (c *ProjectsLocationsServicesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesDeleteCall {
 11954  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11955  	return c
 11956  }
 11957  
 11958  // Context sets the context to be used in this call's Do method.
 11959  func (c *ProjectsLocationsServicesDeleteCall) Context(ctx context.Context) *ProjectsLocationsServicesDeleteCall {
 11960  	c.ctx_ = ctx
 11961  	return c
 11962  }
 11963  
 11964  // Header returns a http.Header that can be modified by the caller to add
 11965  // headers to the request.
 11966  func (c *ProjectsLocationsServicesDeleteCall) Header() http.Header {
 11967  	if c.header_ == nil {
 11968  		c.header_ = make(http.Header)
 11969  	}
 11970  	return c.header_
 11971  }
 11972  
 11973  func (c *ProjectsLocationsServicesDeleteCall) doRequest(alt string) (*http.Response, error) {
 11974  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11975  	var body io.Reader = nil
 11976  	c.urlParams_.Set("alt", alt)
 11977  	c.urlParams_.Set("prettyPrint", "false")
 11978  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11979  	urls += "?" + c.urlParams_.Encode()
 11980  	req, err := http.NewRequest("DELETE", urls, body)
 11981  	if err != nil {
 11982  		return nil, err
 11983  	}
 11984  	req.Header = reqHeaders
 11985  	googleapi.Expand(req.URL, map[string]string{
 11986  		"name": c.name,
 11987  	})
 11988  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11989  }
 11990  
 11991  // Do executes the "run.projects.locations.services.delete" call.
 11992  // Any non-2xx status code is an error. Response headers are in either
 11993  // *Status.ServerResponse.Header or (if a response was returned at all) in
 11994  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11995  // whether the returned error was because http.StatusNotModified was returned.
 11996  func (c *ProjectsLocationsServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
 11997  	gensupport.SetOptions(c.urlParams_, opts...)
 11998  	res, err := c.doRequest("json")
 11999  	if res != nil && res.StatusCode == http.StatusNotModified {
 12000  		if res.Body != nil {
 12001  			res.Body.Close()
 12002  		}
 12003  		return nil, gensupport.WrapError(&googleapi.Error{
 12004  			Code:   res.StatusCode,
 12005  			Header: res.Header,
 12006  		})
 12007  	}
 12008  	if err != nil {
 12009  		return nil, err
 12010  	}
 12011  	defer googleapi.CloseBody(res)
 12012  	if err := googleapi.CheckResponse(res); err != nil {
 12013  		return nil, gensupport.WrapError(err)
 12014  	}
 12015  	ret := &Status{
 12016  		ServerResponse: googleapi.ServerResponse{
 12017  			Header:         res.Header,
 12018  			HTTPStatusCode: res.StatusCode,
 12019  		},
 12020  	}
 12021  	target := &ret
 12022  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12023  		return nil, err
 12024  	}
 12025  	return ret, nil
 12026  }
 12027  
 12028  type ProjectsLocationsServicesGetCall struct {
 12029  	s            *APIService
 12030  	name         string
 12031  	urlParams_   gensupport.URLParams
 12032  	ifNoneMatch_ string
 12033  	ctx_         context.Context
 12034  	header_      http.Header
 12035  }
 12036  
 12037  // Get: Gets information about a service.
 12038  //
 12039  //   - name: The fully qualified name of the service to retrieve. It can be any
 12040  //     of the following forms: *
 12041  //     `namespaces/{project_id_or_number}/services/{service_name}` (only when the
 12042  //     `endpoint` is regional) *
 12043  //     `projects/{project_id_or_number}/locations/{region}/services/{service_name}
 12044  //     ` *
 12045  //     `projects/{project_id_or_number}/regions/{region}/services/{service_name}`.
 12046  func (r *ProjectsLocationsServicesService) Get(name string) *ProjectsLocationsServicesGetCall {
 12047  	c := &ProjectsLocationsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12048  	c.name = name
 12049  	return c
 12050  }
 12051  
 12052  // Fields allows partial responses to be retrieved. See
 12053  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12054  // details.
 12055  func (c *ProjectsLocationsServicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesGetCall {
 12056  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12057  	return c
 12058  }
 12059  
 12060  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12061  // object's ETag matches the given value. This is useful for getting updates
 12062  // only after the object has changed since the last request.
 12063  func (c *ProjectsLocationsServicesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesGetCall {
 12064  	c.ifNoneMatch_ = entityTag
 12065  	return c
 12066  }
 12067  
 12068  // Context sets the context to be used in this call's Do method.
 12069  func (c *ProjectsLocationsServicesGetCall) Context(ctx context.Context) *ProjectsLocationsServicesGetCall {
 12070  	c.ctx_ = ctx
 12071  	return c
 12072  }
 12073  
 12074  // Header returns a http.Header that can be modified by the caller to add
 12075  // headers to the request.
 12076  func (c *ProjectsLocationsServicesGetCall) Header() http.Header {
 12077  	if c.header_ == nil {
 12078  		c.header_ = make(http.Header)
 12079  	}
 12080  	return c.header_
 12081  }
 12082  
 12083  func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response, error) {
 12084  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12085  	if c.ifNoneMatch_ != "" {
 12086  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12087  	}
 12088  	var body io.Reader = nil
 12089  	c.urlParams_.Set("alt", alt)
 12090  	c.urlParams_.Set("prettyPrint", "false")
 12091  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12092  	urls += "?" + c.urlParams_.Encode()
 12093  	req, err := http.NewRequest("GET", urls, body)
 12094  	if err != nil {
 12095  		return nil, err
 12096  	}
 12097  	req.Header = reqHeaders
 12098  	googleapi.Expand(req.URL, map[string]string{
 12099  		"name": c.name,
 12100  	})
 12101  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12102  }
 12103  
 12104  // Do executes the "run.projects.locations.services.get" call.
 12105  // Any non-2xx status code is an error. Response headers are in either
 12106  // *Service.ServerResponse.Header or (if a response was returned at all) in
 12107  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12108  // whether the returned error was because http.StatusNotModified was returned.
 12109  func (c *ProjectsLocationsServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error) {
 12110  	gensupport.SetOptions(c.urlParams_, opts...)
 12111  	res, err := c.doRequest("json")
 12112  	if res != nil && res.StatusCode == http.StatusNotModified {
 12113  		if res.Body != nil {
 12114  			res.Body.Close()
 12115  		}
 12116  		return nil, gensupport.WrapError(&googleapi.Error{
 12117  			Code:   res.StatusCode,
 12118  			Header: res.Header,
 12119  		})
 12120  	}
 12121  	if err != nil {
 12122  		return nil, err
 12123  	}
 12124  	defer googleapi.CloseBody(res)
 12125  	if err := googleapi.CheckResponse(res); err != nil {
 12126  		return nil, gensupport.WrapError(err)
 12127  	}
 12128  	ret := &Service{
 12129  		ServerResponse: googleapi.ServerResponse{
 12130  			Header:         res.Header,
 12131  			HTTPStatusCode: res.StatusCode,
 12132  		},
 12133  	}
 12134  	target := &ret
 12135  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12136  		return nil, err
 12137  	}
 12138  	return ret, nil
 12139  }
 12140  
 12141  type ProjectsLocationsServicesGetIamPolicyCall struct {
 12142  	s            *APIService
 12143  	resource     string
 12144  	urlParams_   gensupport.URLParams
 12145  	ifNoneMatch_ string
 12146  	ctx_         context.Context
 12147  	header_      http.Header
 12148  }
 12149  
 12150  // GetIamPolicy: Gets the IAM Access Control policy currently in effect for the
 12151  // given Cloud Run service. This result does not include any inherited
 12152  // policies.
 12153  //
 12154  //   - resource: REQUIRED: The resource for which the policy is being requested.
 12155  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 12156  //     for the appropriate value for this field.
 12157  func (r *ProjectsLocationsServicesService) GetIamPolicy(resource string) *ProjectsLocationsServicesGetIamPolicyCall {
 12158  	c := &ProjectsLocationsServicesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12159  	c.resource = resource
 12160  	return c
 12161  }
 12162  
 12163  // OptionsRequestedPolicyVersion sets the optional parameter
 12164  // "options.requestedPolicyVersion": The maximum policy version that will be
 12165  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
 12166  // an invalid value will be rejected. Requests for policies with any
 12167  // conditional role bindings must specify version 3. Policies with no
 12168  // conditional role bindings may specify any valid value or leave the field
 12169  // unset. The policy in the response might use the policy version that you
 12170  // specified, or it might use a lower policy version. For example, if you
 12171  // specify version 3, but the policy has no conditional role bindings, the
 12172  // response uses version 1. To learn which resources support conditions in
 12173  // their IAM policies, see the IAM documentation
 12174  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 12175  func (c *ProjectsLocationsServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServicesGetIamPolicyCall {
 12176  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 12177  	return c
 12178  }
 12179  
 12180  // Fields allows partial responses to be retrieved. See
 12181  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12182  // details.
 12183  func (c *ProjectsLocationsServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesGetIamPolicyCall {
 12184  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12185  	return c
 12186  }
 12187  
 12188  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12189  // object's ETag matches the given value. This is useful for getting updates
 12190  // only after the object has changed since the last request.
 12191  func (c *ProjectsLocationsServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesGetIamPolicyCall {
 12192  	c.ifNoneMatch_ = entityTag
 12193  	return c
 12194  }
 12195  
 12196  // Context sets the context to be used in this call's Do method.
 12197  func (c *ProjectsLocationsServicesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesGetIamPolicyCall {
 12198  	c.ctx_ = ctx
 12199  	return c
 12200  }
 12201  
 12202  // Header returns a http.Header that can be modified by the caller to add
 12203  // headers to the request.
 12204  func (c *ProjectsLocationsServicesGetIamPolicyCall) Header() http.Header {
 12205  	if c.header_ == nil {
 12206  		c.header_ = make(http.Header)
 12207  	}
 12208  	return c.header_
 12209  }
 12210  
 12211  func (c *ProjectsLocationsServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 12212  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12213  	if c.ifNoneMatch_ != "" {
 12214  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12215  	}
 12216  	var body io.Reader = nil
 12217  	c.urlParams_.Set("alt", alt)
 12218  	c.urlParams_.Set("prettyPrint", "false")
 12219  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 12220  	urls += "?" + c.urlParams_.Encode()
 12221  	req, err := http.NewRequest("GET", urls, body)
 12222  	if err != nil {
 12223  		return nil, err
 12224  	}
 12225  	req.Header = reqHeaders
 12226  	googleapi.Expand(req.URL, map[string]string{
 12227  		"resource": c.resource,
 12228  	})
 12229  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12230  }
 12231  
 12232  // Do executes the "run.projects.locations.services.getIamPolicy" call.
 12233  // Any non-2xx status code is an error. Response headers are in either
 12234  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 12235  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12236  // whether the returned error was because http.StatusNotModified was returned.
 12237  func (c *ProjectsLocationsServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 12238  	gensupport.SetOptions(c.urlParams_, opts...)
 12239  	res, err := c.doRequest("json")
 12240  	if res != nil && res.StatusCode == http.StatusNotModified {
 12241  		if res.Body != nil {
 12242  			res.Body.Close()
 12243  		}
 12244  		return nil, gensupport.WrapError(&googleapi.Error{
 12245  			Code:   res.StatusCode,
 12246  			Header: res.Header,
 12247  		})
 12248  	}
 12249  	if err != nil {
 12250  		return nil, err
 12251  	}
 12252  	defer googleapi.CloseBody(res)
 12253  	if err := googleapi.CheckResponse(res); err != nil {
 12254  		return nil, gensupport.WrapError(err)
 12255  	}
 12256  	ret := &Policy{
 12257  		ServerResponse: googleapi.ServerResponse{
 12258  			Header:         res.Header,
 12259  			HTTPStatusCode: res.StatusCode,
 12260  		},
 12261  	}
 12262  	target := &ret
 12263  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12264  		return nil, err
 12265  	}
 12266  	return ret, nil
 12267  }
 12268  
 12269  type ProjectsLocationsServicesListCall struct {
 12270  	s            *APIService
 12271  	parent       string
 12272  	urlParams_   gensupport.URLParams
 12273  	ifNoneMatch_ string
 12274  	ctx_         context.Context
 12275  	header_      http.Header
 12276  }
 12277  
 12278  // List: Lists services for the given project and region.
 12279  //
 12280  //   - parent: The parent from where the resources should be listed. In Cloud
 12281  //     Run, it may be one of the following: * `{project_id_or_number}` *
 12282  //     `namespaces/{project_id_or_number}` *
 12283  //     `namespaces/{project_id_or_number}/services` *
 12284  //     `projects/{project_id_or_number}/locations/{region}` *
 12285  //     `projects/{project_id_or_number}/regions/{region}`.
 12286  func (r *ProjectsLocationsServicesService) List(parent string) *ProjectsLocationsServicesListCall {
 12287  	c := &ProjectsLocationsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12288  	c.parent = parent
 12289  	return c
 12290  }
 12291  
 12292  // Continue sets the optional parameter "continue": Encoded string to continue
 12293  // paging.
 12294  func (c *ProjectsLocationsServicesListCall) Continue(continue_ string) *ProjectsLocationsServicesListCall {
 12295  	c.urlParams_.Set("continue", continue_)
 12296  	return c
 12297  }
 12298  
 12299  // FieldSelector sets the optional parameter "fieldSelector": Not supported,
 12300  // and ignored by Cloud Run.
 12301  func (c *ProjectsLocationsServicesListCall) FieldSelector(fieldSelector string) *ProjectsLocationsServicesListCall {
 12302  	c.urlParams_.Set("fieldSelector", fieldSelector)
 12303  	return c
 12304  }
 12305  
 12306  // IncludeUninitialized sets the optional parameter "includeUninitialized": Not
 12307  // supported, and ignored by Cloud Run.
 12308  func (c *ProjectsLocationsServicesListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsServicesListCall {
 12309  	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
 12310  	return c
 12311  }
 12312  
 12313  // LabelSelector sets the optional parameter "labelSelector": Allows to filter
 12314  // resources based on a label. Supported operations are =, !=, exists, in, and
 12315  // notIn.
 12316  func (c *ProjectsLocationsServicesListCall) LabelSelector(labelSelector string) *ProjectsLocationsServicesListCall {
 12317  	c.urlParams_.Set("labelSelector", labelSelector)
 12318  	return c
 12319  }
 12320  
 12321  // Limit sets the optional parameter "limit": The maximum number of records
 12322  // that should be returned.
 12323  func (c *ProjectsLocationsServicesListCall) Limit(limit int64) *ProjectsLocationsServicesListCall {
 12324  	c.urlParams_.Set("limit", fmt.Sprint(limit))
 12325  	return c
 12326  }
 12327  
 12328  // ResourceVersion sets the optional parameter "resourceVersion": Not
 12329  // supported, and ignored by Cloud Run.
 12330  func (c *ProjectsLocationsServicesListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsServicesListCall {
 12331  	c.urlParams_.Set("resourceVersion", resourceVersion)
 12332  	return c
 12333  }
 12334  
 12335  // Watch sets the optional parameter "watch": Not supported, and ignored by
 12336  // Cloud Run.
 12337  func (c *ProjectsLocationsServicesListCall) Watch(watch bool) *ProjectsLocationsServicesListCall {
 12338  	c.urlParams_.Set("watch", fmt.Sprint(watch))
 12339  	return c
 12340  }
 12341  
 12342  // Fields allows partial responses to be retrieved. See
 12343  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12344  // details.
 12345  func (c *ProjectsLocationsServicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesListCall {
 12346  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12347  	return c
 12348  }
 12349  
 12350  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12351  // object's ETag matches the given value. This is useful for getting updates
 12352  // only after the object has changed since the last request.
 12353  func (c *ProjectsLocationsServicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesListCall {
 12354  	c.ifNoneMatch_ = entityTag
 12355  	return c
 12356  }
 12357  
 12358  // Context sets the context to be used in this call's Do method.
 12359  func (c *ProjectsLocationsServicesListCall) Context(ctx context.Context) *ProjectsLocationsServicesListCall {
 12360  	c.ctx_ = ctx
 12361  	return c
 12362  }
 12363  
 12364  // Header returns a http.Header that can be modified by the caller to add
 12365  // headers to the request.
 12366  func (c *ProjectsLocationsServicesListCall) Header() http.Header {
 12367  	if c.header_ == nil {
 12368  		c.header_ = make(http.Header)
 12369  	}
 12370  	return c.header_
 12371  }
 12372  
 12373  func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Response, error) {
 12374  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12375  	if c.ifNoneMatch_ != "" {
 12376  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12377  	}
 12378  	var body io.Reader = nil
 12379  	c.urlParams_.Set("alt", alt)
 12380  	c.urlParams_.Set("prettyPrint", "false")
 12381  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/services")
 12382  	urls += "?" + c.urlParams_.Encode()
 12383  	req, err := http.NewRequest("GET", urls, body)
 12384  	if err != nil {
 12385  		return nil, err
 12386  	}
 12387  	req.Header = reqHeaders
 12388  	googleapi.Expand(req.URL, map[string]string{
 12389  		"parent": c.parent,
 12390  	})
 12391  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12392  }
 12393  
 12394  // Do executes the "run.projects.locations.services.list" call.
 12395  // Any non-2xx status code is an error. Response headers are in either
 12396  // *ListServicesResponse.ServerResponse.Header or (if a response was returned
 12397  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12398  // check whether the returned error was because http.StatusNotModified was
 12399  // returned.
 12400  func (c *ProjectsLocationsServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, error) {
 12401  	gensupport.SetOptions(c.urlParams_, opts...)
 12402  	res, err := c.doRequest("json")
 12403  	if res != nil && res.StatusCode == http.StatusNotModified {
 12404  		if res.Body != nil {
 12405  			res.Body.Close()
 12406  		}
 12407  		return nil, gensupport.WrapError(&googleapi.Error{
 12408  			Code:   res.StatusCode,
 12409  			Header: res.Header,
 12410  		})
 12411  	}
 12412  	if err != nil {
 12413  		return nil, err
 12414  	}
 12415  	defer googleapi.CloseBody(res)
 12416  	if err := googleapi.CheckResponse(res); err != nil {
 12417  		return nil, gensupport.WrapError(err)
 12418  	}
 12419  	ret := &ListServicesResponse{
 12420  		ServerResponse: googleapi.ServerResponse{
 12421  			Header:         res.Header,
 12422  			HTTPStatusCode: res.StatusCode,
 12423  		},
 12424  	}
 12425  	target := &ret
 12426  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12427  		return nil, err
 12428  	}
 12429  	return ret, nil
 12430  }
 12431  
 12432  type ProjectsLocationsServicesReplaceServiceCall struct {
 12433  	s          *APIService
 12434  	name       string
 12435  	service    *Service
 12436  	urlParams_ gensupport.URLParams
 12437  	ctx_       context.Context
 12438  	header_    http.Header
 12439  }
 12440  
 12441  // ReplaceService: Replaces a service. Only the spec and metadata labels and
 12442  // annotations are modifiable. After the Update request, Cloud Run will work to
 12443  // make the 'status' match the requested 'spec'. May provide
 12444  // metadata.resourceVersion to enforce update from last read for optimistic
 12445  // concurrency control.
 12446  //
 12447  //   - name: The fully qualified name of the service to replace. It can be any of
 12448  //     the following forms: *
 12449  //     `namespaces/{project_id_or_number}/services/{service_name}` (only when the
 12450  //     `endpoint` is regional) *
 12451  //     `projects/{project_id_or_number}/locations/{region}/services/{service_name}
 12452  //     ` *
 12453  //     `projects/{project_id_or_number}/regions/{region}/services/{service_name}`.
 12454  func (r *ProjectsLocationsServicesService) ReplaceService(name string, service *Service) *ProjectsLocationsServicesReplaceServiceCall {
 12455  	c := &ProjectsLocationsServicesReplaceServiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12456  	c.name = name
 12457  	c.service = service
 12458  	return c
 12459  }
 12460  
 12461  // DryRun sets the optional parameter "dryRun": Indicates that the server
 12462  // should validate the request and populate default values without persisting
 12463  // the request. Supported values: `all`
 12464  func (c *ProjectsLocationsServicesReplaceServiceCall) DryRun(dryRun string) *ProjectsLocationsServicesReplaceServiceCall {
 12465  	c.urlParams_.Set("dryRun", dryRun)
 12466  	return c
 12467  }
 12468  
 12469  // Fields allows partial responses to be retrieved. See
 12470  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12471  // details.
 12472  func (c *ProjectsLocationsServicesReplaceServiceCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesReplaceServiceCall {
 12473  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12474  	return c
 12475  }
 12476  
 12477  // Context sets the context to be used in this call's Do method.
 12478  func (c *ProjectsLocationsServicesReplaceServiceCall) Context(ctx context.Context) *ProjectsLocationsServicesReplaceServiceCall {
 12479  	c.ctx_ = ctx
 12480  	return c
 12481  }
 12482  
 12483  // Header returns a http.Header that can be modified by the caller to add
 12484  // headers to the request.
 12485  func (c *ProjectsLocationsServicesReplaceServiceCall) Header() http.Header {
 12486  	if c.header_ == nil {
 12487  		c.header_ = make(http.Header)
 12488  	}
 12489  	return c.header_
 12490  }
 12491  
 12492  func (c *ProjectsLocationsServicesReplaceServiceCall) doRequest(alt string) (*http.Response, error) {
 12493  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12494  	var body io.Reader = nil
 12495  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
 12496  	if err != nil {
 12497  		return nil, err
 12498  	}
 12499  	c.urlParams_.Set("alt", alt)
 12500  	c.urlParams_.Set("prettyPrint", "false")
 12501  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12502  	urls += "?" + c.urlParams_.Encode()
 12503  	req, err := http.NewRequest("PUT", urls, body)
 12504  	if err != nil {
 12505  		return nil, err
 12506  	}
 12507  	req.Header = reqHeaders
 12508  	googleapi.Expand(req.URL, map[string]string{
 12509  		"name": c.name,
 12510  	})
 12511  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12512  }
 12513  
 12514  // Do executes the "run.projects.locations.services.replaceService" call.
 12515  // Any non-2xx status code is an error. Response headers are in either
 12516  // *Service.ServerResponse.Header or (if a response was returned at all) in
 12517  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12518  // whether the returned error was because http.StatusNotModified was returned.
 12519  func (c *ProjectsLocationsServicesReplaceServiceCall) Do(opts ...googleapi.CallOption) (*Service, error) {
 12520  	gensupport.SetOptions(c.urlParams_, opts...)
 12521  	res, err := c.doRequest("json")
 12522  	if res != nil && res.StatusCode == http.StatusNotModified {
 12523  		if res.Body != nil {
 12524  			res.Body.Close()
 12525  		}
 12526  		return nil, gensupport.WrapError(&googleapi.Error{
 12527  			Code:   res.StatusCode,
 12528  			Header: res.Header,
 12529  		})
 12530  	}
 12531  	if err != nil {
 12532  		return nil, err
 12533  	}
 12534  	defer googleapi.CloseBody(res)
 12535  	if err := googleapi.CheckResponse(res); err != nil {
 12536  		return nil, gensupport.WrapError(err)
 12537  	}
 12538  	ret := &Service{
 12539  		ServerResponse: googleapi.ServerResponse{
 12540  			Header:         res.Header,
 12541  			HTTPStatusCode: res.StatusCode,
 12542  		},
 12543  	}
 12544  	target := &ret
 12545  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12546  		return nil, err
 12547  	}
 12548  	return ret, nil
 12549  }
 12550  
 12551  type ProjectsLocationsServicesSetIamPolicyCall struct {
 12552  	s                   *APIService
 12553  	resource            string
 12554  	setiampolicyrequest *SetIamPolicyRequest
 12555  	urlParams_          gensupport.URLParams
 12556  	ctx_                context.Context
 12557  	header_             http.Header
 12558  }
 12559  
 12560  // SetIamPolicy: Sets the IAM Access control policy for the specified Service.
 12561  // Overwrites any existing policy.
 12562  //
 12563  //   - resource: REQUIRED: The resource for which the policy is being specified.
 12564  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 12565  //     for the appropriate value for this field.
 12566  func (r *ProjectsLocationsServicesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsServicesSetIamPolicyCall {
 12567  	c := &ProjectsLocationsServicesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12568  	c.resource = resource
 12569  	c.setiampolicyrequest = setiampolicyrequest
 12570  	return c
 12571  }
 12572  
 12573  // Fields allows partial responses to be retrieved. See
 12574  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12575  // details.
 12576  func (c *ProjectsLocationsServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesSetIamPolicyCall {
 12577  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12578  	return c
 12579  }
 12580  
 12581  // Context sets the context to be used in this call's Do method.
 12582  func (c *ProjectsLocationsServicesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesSetIamPolicyCall {
 12583  	c.ctx_ = ctx
 12584  	return c
 12585  }
 12586  
 12587  // Header returns a http.Header that can be modified by the caller to add
 12588  // headers to the request.
 12589  func (c *ProjectsLocationsServicesSetIamPolicyCall) Header() http.Header {
 12590  	if c.header_ == nil {
 12591  		c.header_ = make(http.Header)
 12592  	}
 12593  	return c.header_
 12594  }
 12595  
 12596  func (c *ProjectsLocationsServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 12597  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12598  	var body io.Reader = nil
 12599  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 12600  	if err != nil {
 12601  		return nil, err
 12602  	}
 12603  	c.urlParams_.Set("alt", alt)
 12604  	c.urlParams_.Set("prettyPrint", "false")
 12605  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 12606  	urls += "?" + c.urlParams_.Encode()
 12607  	req, err := http.NewRequest("POST", urls, body)
 12608  	if err != nil {
 12609  		return nil, err
 12610  	}
 12611  	req.Header = reqHeaders
 12612  	googleapi.Expand(req.URL, map[string]string{
 12613  		"resource": c.resource,
 12614  	})
 12615  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12616  }
 12617  
 12618  // Do executes the "run.projects.locations.services.setIamPolicy" call.
 12619  // Any non-2xx status code is an error. Response headers are in either
 12620  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 12621  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12622  // whether the returned error was because http.StatusNotModified was returned.
 12623  func (c *ProjectsLocationsServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 12624  	gensupport.SetOptions(c.urlParams_, opts...)
 12625  	res, err := c.doRequest("json")
 12626  	if res != nil && res.StatusCode == http.StatusNotModified {
 12627  		if res.Body != nil {
 12628  			res.Body.Close()
 12629  		}
 12630  		return nil, gensupport.WrapError(&googleapi.Error{
 12631  			Code:   res.StatusCode,
 12632  			Header: res.Header,
 12633  		})
 12634  	}
 12635  	if err != nil {
 12636  		return nil, err
 12637  	}
 12638  	defer googleapi.CloseBody(res)
 12639  	if err := googleapi.CheckResponse(res); err != nil {
 12640  		return nil, gensupport.WrapError(err)
 12641  	}
 12642  	ret := &Policy{
 12643  		ServerResponse: googleapi.ServerResponse{
 12644  			Header:         res.Header,
 12645  			HTTPStatusCode: res.StatusCode,
 12646  		},
 12647  	}
 12648  	target := &ret
 12649  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12650  		return nil, err
 12651  	}
 12652  	return ret, nil
 12653  }
 12654  
 12655  type ProjectsLocationsServicesTestIamPermissionsCall struct {
 12656  	s                         *APIService
 12657  	resource                  string
 12658  	testiampermissionsrequest *TestIamPermissionsRequest
 12659  	urlParams_                gensupport.URLParams
 12660  	ctx_                      context.Context
 12661  	header_                   http.Header
 12662  }
 12663  
 12664  // TestIamPermissions: Returns permissions that a caller has on the specified
 12665  // Project. There are no permissions required for making this API call.
 12666  //
 12667  //   - resource: REQUIRED: The resource for which the policy detail is being
 12668  //     requested. See Resource names
 12669  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 12670  //     value for this field.
 12671  func (r *ProjectsLocationsServicesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsServicesTestIamPermissionsCall {
 12672  	c := &ProjectsLocationsServicesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12673  	c.resource = resource
 12674  	c.testiampermissionsrequest = testiampermissionsrequest
 12675  	return c
 12676  }
 12677  
 12678  // Fields allows partial responses to be retrieved. See
 12679  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12680  // details.
 12681  func (c *ProjectsLocationsServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesTestIamPermissionsCall {
 12682  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12683  	return c
 12684  }
 12685  
 12686  // Context sets the context to be used in this call's Do method.
 12687  func (c *ProjectsLocationsServicesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServicesTestIamPermissionsCall {
 12688  	c.ctx_ = ctx
 12689  	return c
 12690  }
 12691  
 12692  // Header returns a http.Header that can be modified by the caller to add
 12693  // headers to the request.
 12694  func (c *ProjectsLocationsServicesTestIamPermissionsCall) Header() http.Header {
 12695  	if c.header_ == nil {
 12696  		c.header_ = make(http.Header)
 12697  	}
 12698  	return c.header_
 12699  }
 12700  
 12701  func (c *ProjectsLocationsServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 12702  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12703  	var body io.Reader = nil
 12704  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 12705  	if err != nil {
 12706  		return nil, err
 12707  	}
 12708  	c.urlParams_.Set("alt", alt)
 12709  	c.urlParams_.Set("prettyPrint", "false")
 12710  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 12711  	urls += "?" + c.urlParams_.Encode()
 12712  	req, err := http.NewRequest("POST", urls, body)
 12713  	if err != nil {
 12714  		return nil, err
 12715  	}
 12716  	req.Header = reqHeaders
 12717  	googleapi.Expand(req.URL, map[string]string{
 12718  		"resource": c.resource,
 12719  	})
 12720  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12721  }
 12722  
 12723  // Do executes the "run.projects.locations.services.testIamPermissions" call.
 12724  // Any non-2xx status code is an error. Response headers are in either
 12725  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 12726  // returned at all) in error.(*googleapi.Error).Header. Use
 12727  // googleapi.IsNotModified to check whether the returned error was because
 12728  // http.StatusNotModified was returned.
 12729  func (c *ProjectsLocationsServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 12730  	gensupport.SetOptions(c.urlParams_, opts...)
 12731  	res, err := c.doRequest("json")
 12732  	if res != nil && res.StatusCode == http.StatusNotModified {
 12733  		if res.Body != nil {
 12734  			res.Body.Close()
 12735  		}
 12736  		return nil, gensupport.WrapError(&googleapi.Error{
 12737  			Code:   res.StatusCode,
 12738  			Header: res.Header,
 12739  		})
 12740  	}
 12741  	if err != nil {
 12742  		return nil, err
 12743  	}
 12744  	defer googleapi.CloseBody(res)
 12745  	if err := googleapi.CheckResponse(res); err != nil {
 12746  		return nil, gensupport.WrapError(err)
 12747  	}
 12748  	ret := &TestIamPermissionsResponse{
 12749  		ServerResponse: googleapi.ServerResponse{
 12750  			Header:         res.Header,
 12751  			HTTPStatusCode: res.StatusCode,
 12752  		},
 12753  	}
 12754  	target := &ret
 12755  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12756  		return nil, err
 12757  	}
 12758  	return ret, nil
 12759  }
 12760  

View as plain text