...

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

Documentation: google.golang.org/api/clouddeploy/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 clouddeploy provides access to the Cloud Deploy API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/deploy/
    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/clouddeploy/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	clouddeployService, err := clouddeploy.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  //	clouddeployService, err := clouddeploy.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  //	clouddeployService, err := clouddeploy.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package clouddeploy // import "google.golang.org/api/clouddeploy/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 = "clouddeploy:v1"
    90  const apiName = "clouddeploy"
    91  const apiVersion = "v1"
    92  const basePath = "https://clouddeploy.googleapis.com/"
    93  const basePathTemplate = "https://clouddeploy.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://clouddeploy.mtls.googleapis.com/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// See, edit, configure, and delete your Google Cloud data and see the email
    99  	// address for your Google Account.
   100  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   101  )
   102  
   103  // NewService creates a new Service.
   104  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   105  	scopesOption := internaloption.WithDefaultScopes(
   106  		"https://www.googleapis.com/auth/cloud-platform",
   107  	)
   108  	// NOTE: prepend, so we don't override user-specified scopes.
   109  	opts = append([]option.ClientOption{scopesOption}, opts...)
   110  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   111  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   112  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   113  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   114  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   115  	if err != nil {
   116  		return nil, err
   117  	}
   118  	s, err := New(client)
   119  	if err != nil {
   120  		return nil, err
   121  	}
   122  	if endpoint != "" {
   123  		s.BasePath = endpoint
   124  	}
   125  	return s, nil
   126  }
   127  
   128  // New creates a new Service. It uses the provided http.Client for requests.
   129  //
   130  // Deprecated: please use NewService instead.
   131  // To provide a custom HTTP client, use option.WithHTTPClient.
   132  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   133  func New(client *http.Client) (*Service, error) {
   134  	if client == nil {
   135  		return nil, errors.New("client is nil")
   136  	}
   137  	s := &Service{client: client, BasePath: basePath}
   138  	s.Projects = NewProjectsService(s)
   139  	return s, nil
   140  }
   141  
   142  type Service struct {
   143  	client    *http.Client
   144  	BasePath  string // API endpoint base URL
   145  	UserAgent string // optional additional User-Agent fragment
   146  
   147  	Projects *ProjectsService
   148  }
   149  
   150  func (s *Service) userAgent() string {
   151  	if s.UserAgent == "" {
   152  		return googleapi.UserAgent
   153  	}
   154  	return googleapi.UserAgent + " " + s.UserAgent
   155  }
   156  
   157  func NewProjectsService(s *Service) *ProjectsService {
   158  	rs := &ProjectsService{s: s}
   159  	rs.Locations = NewProjectsLocationsService(s)
   160  	return rs
   161  }
   162  
   163  type ProjectsService struct {
   164  	s *Service
   165  
   166  	Locations *ProjectsLocationsService
   167  }
   168  
   169  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   170  	rs := &ProjectsLocationsService{s: s}
   171  	rs.CustomTargetTypes = NewProjectsLocationsCustomTargetTypesService(s)
   172  	rs.DeliveryPipelines = NewProjectsLocationsDeliveryPipelinesService(s)
   173  	rs.Operations = NewProjectsLocationsOperationsService(s)
   174  	rs.Targets = NewProjectsLocationsTargetsService(s)
   175  	return rs
   176  }
   177  
   178  type ProjectsLocationsService struct {
   179  	s *Service
   180  
   181  	CustomTargetTypes *ProjectsLocationsCustomTargetTypesService
   182  
   183  	DeliveryPipelines *ProjectsLocationsDeliveryPipelinesService
   184  
   185  	Operations *ProjectsLocationsOperationsService
   186  
   187  	Targets *ProjectsLocationsTargetsService
   188  }
   189  
   190  func NewProjectsLocationsCustomTargetTypesService(s *Service) *ProjectsLocationsCustomTargetTypesService {
   191  	rs := &ProjectsLocationsCustomTargetTypesService{s: s}
   192  	return rs
   193  }
   194  
   195  type ProjectsLocationsCustomTargetTypesService struct {
   196  	s *Service
   197  }
   198  
   199  func NewProjectsLocationsDeliveryPipelinesService(s *Service) *ProjectsLocationsDeliveryPipelinesService {
   200  	rs := &ProjectsLocationsDeliveryPipelinesService{s: s}
   201  	rs.AutomationRuns = NewProjectsLocationsDeliveryPipelinesAutomationRunsService(s)
   202  	rs.Automations = NewProjectsLocationsDeliveryPipelinesAutomationsService(s)
   203  	rs.Releases = NewProjectsLocationsDeliveryPipelinesReleasesService(s)
   204  	return rs
   205  }
   206  
   207  type ProjectsLocationsDeliveryPipelinesService struct {
   208  	s *Service
   209  
   210  	AutomationRuns *ProjectsLocationsDeliveryPipelinesAutomationRunsService
   211  
   212  	Automations *ProjectsLocationsDeliveryPipelinesAutomationsService
   213  
   214  	Releases *ProjectsLocationsDeliveryPipelinesReleasesService
   215  }
   216  
   217  func NewProjectsLocationsDeliveryPipelinesAutomationRunsService(s *Service) *ProjectsLocationsDeliveryPipelinesAutomationRunsService {
   218  	rs := &ProjectsLocationsDeliveryPipelinesAutomationRunsService{s: s}
   219  	return rs
   220  }
   221  
   222  type ProjectsLocationsDeliveryPipelinesAutomationRunsService struct {
   223  	s *Service
   224  }
   225  
   226  func NewProjectsLocationsDeliveryPipelinesAutomationsService(s *Service) *ProjectsLocationsDeliveryPipelinesAutomationsService {
   227  	rs := &ProjectsLocationsDeliveryPipelinesAutomationsService{s: s}
   228  	return rs
   229  }
   230  
   231  type ProjectsLocationsDeliveryPipelinesAutomationsService struct {
   232  	s *Service
   233  }
   234  
   235  func NewProjectsLocationsDeliveryPipelinesReleasesService(s *Service) *ProjectsLocationsDeliveryPipelinesReleasesService {
   236  	rs := &ProjectsLocationsDeliveryPipelinesReleasesService{s: s}
   237  	rs.Rollouts = NewProjectsLocationsDeliveryPipelinesReleasesRolloutsService(s)
   238  	return rs
   239  }
   240  
   241  type ProjectsLocationsDeliveryPipelinesReleasesService struct {
   242  	s *Service
   243  
   244  	Rollouts *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService
   245  }
   246  
   247  func NewProjectsLocationsDeliveryPipelinesReleasesRolloutsService(s *Service) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService {
   248  	rs := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsService{s: s}
   249  	rs.JobRuns = NewProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsService(s)
   250  	return rs
   251  }
   252  
   253  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsService struct {
   254  	s *Service
   255  
   256  	JobRuns *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsService
   257  }
   258  
   259  func NewProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsService(s *Service) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsService {
   260  	rs := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsService{s: s}
   261  	return rs
   262  }
   263  
   264  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsService struct {
   265  	s *Service
   266  }
   267  
   268  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   269  	rs := &ProjectsLocationsOperationsService{s: s}
   270  	return rs
   271  }
   272  
   273  type ProjectsLocationsOperationsService struct {
   274  	s *Service
   275  }
   276  
   277  func NewProjectsLocationsTargetsService(s *Service) *ProjectsLocationsTargetsService {
   278  	rs := &ProjectsLocationsTargetsService{s: s}
   279  	return rs
   280  }
   281  
   282  type ProjectsLocationsTargetsService struct {
   283  	s *Service
   284  }
   285  
   286  // AbandonReleaseRequest: The request object used by `AbandonRelease`.
   287  type AbandonReleaseRequest struct {
   288  }
   289  
   290  // AbandonReleaseResponse: The response object for `AbandonRelease`.
   291  type AbandonReleaseResponse struct {
   292  	// ServerResponse contains the HTTP response code and headers from the server.
   293  	googleapi.ServerResponse `json:"-"`
   294  }
   295  
   296  // AdvanceChildRolloutJob: An advanceChildRollout Job.
   297  type AdvanceChildRolloutJob struct {
   298  }
   299  
   300  // AdvanceChildRolloutJobRun: AdvanceChildRolloutJobRun contains information
   301  // specific to a advanceChildRollout `JobRun`.
   302  type AdvanceChildRolloutJobRun struct {
   303  	// Rollout: Output only. Name of the `ChildRollout`. Format is
   304  	// `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}
   305  	// /releases/{release}/rollouts/{rollout}`.
   306  	Rollout string `json:"rollout,omitempty"`
   307  	// RolloutPhaseId: Output only. the ID of the ChildRollout's Phase.
   308  	RolloutPhaseId string `json:"rolloutPhaseId,omitempty"`
   309  	// ForceSendFields is a list of field names (e.g. "Rollout") to unconditionally
   310  	// include in API requests. By default, fields with empty or default values are
   311  	// omitted from API requests. See
   312  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   313  	// details.
   314  	ForceSendFields []string `json:"-"`
   315  	// NullFields is a list of field names (e.g. "Rollout") to include in API
   316  	// requests with the JSON null value. By default, fields with empty values are
   317  	// omitted from API requests. See
   318  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   319  	NullFields []string `json:"-"`
   320  }
   321  
   322  func (s *AdvanceChildRolloutJobRun) MarshalJSON() ([]byte, error) {
   323  	type NoMethod AdvanceChildRolloutJobRun
   324  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   325  }
   326  
   327  // AdvanceRolloutOperation: Contains the information of an automated
   328  // advance-rollout operation.
   329  type AdvanceRolloutOperation struct {
   330  	// DestinationPhase: Output only. The phase the rollout will be advanced to.
   331  	DestinationPhase string `json:"destinationPhase,omitempty"`
   332  	// Rollout: Output only. The name of the rollout that initiates the
   333  	// `AutomationRun`.
   334  	Rollout string `json:"rollout,omitempty"`
   335  	// SourcePhase: Output only. The phase of a deployment that initiated the
   336  	// operation.
   337  	SourcePhase string `json:"sourcePhase,omitempty"`
   338  	// Wait: Output only. How long the operation will be paused.
   339  	Wait string `json:"wait,omitempty"`
   340  	// ForceSendFields is a list of field names (e.g. "DestinationPhase") to
   341  	// unconditionally include in API requests. By default, fields with empty or
   342  	// default values are omitted from API requests. See
   343  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   344  	// details.
   345  	ForceSendFields []string `json:"-"`
   346  	// NullFields is a list of field names (e.g. "DestinationPhase") to include in
   347  	// API requests with the JSON null value. By default, fields with empty values
   348  	// are omitted from API requests. See
   349  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   350  	NullFields []string `json:"-"`
   351  }
   352  
   353  func (s *AdvanceRolloutOperation) MarshalJSON() ([]byte, error) {
   354  	type NoMethod AdvanceRolloutOperation
   355  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   356  }
   357  
   358  // AdvanceRolloutRequest: The request object used by `AdvanceRollout`.
   359  type AdvanceRolloutRequest struct {
   360  	// PhaseId: Required. The phase ID to advance the `Rollout` to.
   361  	PhaseId string `json:"phaseId,omitempty"`
   362  	// ForceSendFields is a list of field names (e.g. "PhaseId") to unconditionally
   363  	// include in API requests. By default, fields with empty or default values are
   364  	// omitted from API requests. See
   365  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   366  	// details.
   367  	ForceSendFields []string `json:"-"`
   368  	// NullFields is a list of field names (e.g. "PhaseId") to include in API
   369  	// requests with the JSON null value. By default, fields with empty values are
   370  	// omitted from API requests. See
   371  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   372  	NullFields []string `json:"-"`
   373  }
   374  
   375  func (s *AdvanceRolloutRequest) MarshalJSON() ([]byte, error) {
   376  	type NoMethod AdvanceRolloutRequest
   377  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   378  }
   379  
   380  // AdvanceRolloutResponse: The response object from `AdvanceRollout`.
   381  type AdvanceRolloutResponse struct {
   382  	// ServerResponse contains the HTTP response code and headers from the server.
   383  	googleapi.ServerResponse `json:"-"`
   384  }
   385  
   386  // AdvanceRolloutRule: The `AdvanceRollout` automation rule will automatically
   387  // advance a successful Rollout to the next phase.
   388  type AdvanceRolloutRule struct {
   389  	// Condition: Output only. Information around the state of the Automation rule.
   390  	Condition *AutomationRuleCondition `json:"condition,omitempty"`
   391  	// Id: Required. ID of the rule. This id must be unique in the `Automation`
   392  	// resource to which this rule belongs. The format is
   393  	// `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
   394  	Id string `json:"id,omitempty"`
   395  	// SourcePhases: Optional. Proceeds only after phase name matched any one in
   396  	// the list. This value must consist of lower-case letters, numbers, and
   397  	// hyphens, start with a letter and end with a letter or a number, and have a
   398  	// max length of 63 characters. In other words, it must match the following
   399  	// regex: `^a-z ([a-z0-9-]{0,61}[a-z0-9])?$`.
   400  	SourcePhases []string `json:"sourcePhases,omitempty"`
   401  	// Wait: Optional. How long to wait after a rollout is finished.
   402  	Wait string `json:"wait,omitempty"`
   403  	// ForceSendFields is a list of field names (e.g. "Condition") to
   404  	// unconditionally include in API requests. By default, fields with empty or
   405  	// default values are omitted from API requests. See
   406  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   407  	// details.
   408  	ForceSendFields []string `json:"-"`
   409  	// NullFields is a list of field names (e.g. "Condition") to include in API
   410  	// requests with the JSON null value. By default, fields with empty values are
   411  	// omitted from API requests. See
   412  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   413  	NullFields []string `json:"-"`
   414  }
   415  
   416  func (s *AdvanceRolloutRule) MarshalJSON() ([]byte, error) {
   417  	type NoMethod AdvanceRolloutRule
   418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   419  }
   420  
   421  // AnthosCluster: Information specifying an Anthos Cluster.
   422  type AnthosCluster struct {
   423  	// Membership: Optional. Membership of the GKE Hub-registered cluster to which
   424  	// to apply the Skaffold configuration. Format is
   425  	// `projects/{project}/locations/{location}/memberships/{membership_name}`.
   426  	Membership string `json:"membership,omitempty"`
   427  	// ForceSendFields is a list of field names (e.g. "Membership") to
   428  	// unconditionally include in API requests. By default, fields with empty or
   429  	// default values are omitted from API requests. See
   430  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   431  	// details.
   432  	ForceSendFields []string `json:"-"`
   433  	// NullFields is a list of field names (e.g. "Membership") to include in API
   434  	// requests with the JSON null value. By default, fields with empty values are
   435  	// omitted from API requests. See
   436  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   437  	NullFields []string `json:"-"`
   438  }
   439  
   440  func (s *AnthosCluster) MarshalJSON() ([]byte, error) {
   441  	type NoMethod AnthosCluster
   442  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   443  }
   444  
   445  // ApproveRolloutRequest: The request object used by `ApproveRollout`.
   446  type ApproveRolloutRequest struct {
   447  	// Approved: Required. True = approve; false = reject
   448  	Approved bool `json:"approved,omitempty"`
   449  	// ForceSendFields is a list of field names (e.g. "Approved") to
   450  	// unconditionally include in API requests. By default, fields with empty or
   451  	// default values are omitted from API requests. See
   452  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   453  	// details.
   454  	ForceSendFields []string `json:"-"`
   455  	// NullFields is a list of field names (e.g. "Approved") to include in API
   456  	// requests with the JSON null value. By default, fields with empty values are
   457  	// omitted from API requests. See
   458  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   459  	NullFields []string `json:"-"`
   460  }
   461  
   462  func (s *ApproveRolloutRequest) MarshalJSON() ([]byte, error) {
   463  	type NoMethod ApproveRolloutRequest
   464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   465  }
   466  
   467  // ApproveRolloutResponse: The response object from `ApproveRollout`.
   468  type ApproveRolloutResponse struct {
   469  	// ServerResponse contains the HTTP response code and headers from the server.
   470  	googleapi.ServerResponse `json:"-"`
   471  }
   472  
   473  // AuditConfig: Specifies the audit configuration for a service. The
   474  // configuration determines which permission types are logged, and what
   475  // identities, if any, are exempted from logging. An AuditConfig must have one
   476  // or more AuditLogConfigs. If there are AuditConfigs for both `allServices`
   477  // and a specific service, the union of the two AuditConfigs is used for that
   478  // service: the log_types specified in each AuditConfig are enabled, and the
   479  // exempted_members in each AuditLogConfig are exempted. Example Policy with
   480  // multiple AuditConfigs: { "audit_configs": [ { "service": "allServices",
   481  // "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
   482  // "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type":
   483  // "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com",
   484  // "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type":
   485  // "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For
   486  // sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
   487  // logging. It also exempts `jose@example.com` from DATA_READ logging, and
   488  // `aliya@example.com` from DATA_WRITE logging.
   489  type AuditConfig struct {
   490  	// AuditLogConfigs: The configuration for logging of each type of permission.
   491  	AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
   492  	// Service: Specifies a service that will be enabled for audit logging. For
   493  	// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`
   494  	// is a special value that covers all services.
   495  	Service string `json:"service,omitempty"`
   496  	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
   497  	// unconditionally include in API requests. By default, fields with empty or
   498  	// default values are omitted from API requests. See
   499  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   500  	// details.
   501  	ForceSendFields []string `json:"-"`
   502  	// NullFields is a list of field names (e.g. "AuditLogConfigs") to include in
   503  	// API requests with the JSON null value. By default, fields with empty values
   504  	// are omitted from API requests. See
   505  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   506  	NullFields []string `json:"-"`
   507  }
   508  
   509  func (s *AuditConfig) MarshalJSON() ([]byte, error) {
   510  	type NoMethod AuditConfig
   511  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   512  }
   513  
   514  // AuditLogConfig: Provides the configuration for logging a type of
   515  // permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ",
   516  // "exempted_members": [ "user:jose@example.com" ] }, { "log_type":
   517  // "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while
   518  // exempting jose@example.com from DATA_READ logging.
   519  type AuditLogConfig struct {
   520  	// ExemptedMembers: Specifies the identities that do not cause logging for this
   521  	// type of permission. Follows the same format of Binding.members.
   522  	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
   523  	// LogType: The log type that this config enables.
   524  	//
   525  	// Possible values:
   526  	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
   527  	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
   528  	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
   529  	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
   530  	LogType string `json:"logType,omitempty"`
   531  	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
   532  	// unconditionally include in API requests. By default, fields with empty or
   533  	// default values are omitted from API requests. See
   534  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   535  	// details.
   536  	ForceSendFields []string `json:"-"`
   537  	// NullFields is a list of field names (e.g. "ExemptedMembers") to include in
   538  	// API requests with the JSON null value. By default, fields with empty values
   539  	// are omitted from API requests. See
   540  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   541  	NullFields []string `json:"-"`
   542  }
   543  
   544  func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
   545  	type NoMethod AuditLogConfig
   546  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   547  }
   548  
   549  // Automation: An `Automation` resource in the Cloud Deploy API. An
   550  // `Automation` enables the automation of manually driven actions for a
   551  // Delivery Pipeline, which includes Release promotion among Targets, Rollout
   552  // repair and Rollout deployment strategy advancement. The intention of
   553  // Automation is to reduce manual intervention in the continuous delivery
   554  // process.
   555  type Automation struct {
   556  	// Annotations: Optional. User annotations. These attributes can only be set
   557  	// and used by the user, and not by Cloud Deploy. Annotations must meet the
   558  	// following constraints: * Annotations are key/value pairs. * Valid annotation
   559  	// keys have two segments: an optional prefix and name, separated by a slash
   560  	// (`/`). * The name segment is required and must be 63 characters or less,
   561  	// beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
   562  	// dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. *
   563  	// The prefix is optional. If specified, the prefix must be a DNS subdomain: a
   564  	// series of DNS labels separated by dots(`.`), not longer than 253 characters
   565  	// in total, followed by a slash (`/`). See
   566  	// https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
   567  	// for more details.
   568  	Annotations map[string]string `json:"annotations,omitempty"`
   569  	// CreateTime: Output only. Time at which the automation was created.
   570  	CreateTime string `json:"createTime,omitempty"`
   571  	// Description: Optional. Description of the `Automation`. Max length is 255
   572  	// characters.
   573  	Description string `json:"description,omitempty"`
   574  	// Etag: Optional. The weak etag of the `Automation` resource. This checksum is
   575  	// computed by the server based on the value of other fields, and may be sent
   576  	// on update and delete requests to ensure the client has an up-to-date value
   577  	// before proceeding.
   578  	Etag string `json:"etag,omitempty"`
   579  	// Labels: Optional. Labels are attributes that can be set and used by both the
   580  	// user and by Cloud Deploy. Labels must meet the following constraints: * Keys
   581  	// and values can contain only lowercase letters, numeric characters,
   582  	// underscores, and dashes. * All characters must use UTF-8 encoding, and
   583  	// international characters are allowed. * Keys must start with a lowercase
   584  	// letter or international character. * Each resource is limited to a maximum
   585  	// of 64 labels. Both keys and values are additionally constrained to be <= 63
   586  	// characters.
   587  	Labels map[string]string `json:"labels,omitempty"`
   588  	// Name: Output only. Name of the `Automation`. Format is
   589  	// `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline
   590  	// }/automations/{automation}`.
   591  	Name string `json:"name,omitempty"`
   592  	// Rules: Required. List of Automation rules associated with the Automation
   593  	// resource. Must have at least one rule and limited to 250 rules per Delivery
   594  	// Pipeline. Note: the order of the rules here is not the same as the order of
   595  	// execution.
   596  	Rules []*AutomationRule `json:"rules,omitempty"`
   597  	// Selector: Required. Selected resources to which the automation will be
   598  	// applied.
   599  	Selector *AutomationResourceSelector `json:"selector,omitempty"`
   600  	// ServiceAccount: Required. Email address of the user-managed IAM service
   601  	// account that creates Cloud Deploy release and rollout resources.
   602  	ServiceAccount string `json:"serviceAccount,omitempty"`
   603  	// Suspended: Optional. When Suspended, automation is deactivated from
   604  	// execution.
   605  	Suspended bool `json:"suspended,omitempty"`
   606  	// Uid: Output only. Unique identifier of the `Automation`.
   607  	Uid string `json:"uid,omitempty"`
   608  	// UpdateTime: Output only. Time at which the automation was updated.
   609  	UpdateTime string `json:"updateTime,omitempty"`
   610  
   611  	// ServerResponse contains the HTTP response code and headers from the server.
   612  	googleapi.ServerResponse `json:"-"`
   613  	// ForceSendFields is a list of field names (e.g. "Annotations") to
   614  	// unconditionally include in API requests. By default, fields with empty or
   615  	// default values are omitted from API requests. See
   616  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   617  	// details.
   618  	ForceSendFields []string `json:"-"`
   619  	// NullFields is a list of field names (e.g. "Annotations") to include in API
   620  	// requests with the JSON null value. By default, fields with empty values are
   621  	// omitted from API requests. See
   622  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   623  	NullFields []string `json:"-"`
   624  }
   625  
   626  func (s *Automation) MarshalJSON() ([]byte, error) {
   627  	type NoMethod Automation
   628  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   629  }
   630  
   631  // AutomationEvent: Payload proto for "clouddeploy.googleapis.com/automation"
   632  // Platform Log event that describes the Automation related events.
   633  type AutomationEvent struct {
   634  	// Automation: The name of the `AutomationRun`.
   635  	Automation string `json:"automation,omitempty"`
   636  	// Message: Debug message for when there is an update on the AutomationRun.
   637  	// Provides further details about the resource creation or state change.
   638  	Message string `json:"message,omitempty"`
   639  	// PipelineUid: Unique identifier of the `DeliveryPipeline`.
   640  	PipelineUid string `json:"pipelineUid,omitempty"`
   641  	// Type: Type of this notification, e.g. for a Pub/Sub failure.
   642  	//
   643  	// Possible values:
   644  	//   "TYPE_UNSPECIFIED" - Type is unspecified.
   645  	//   "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed to be
   646  	// sent.
   647  	//   "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed.
   648  	//   "TYPE_PROCESS_ABORTED" - A process aborted.
   649  	//   "TYPE_RESTRICTION_VIOLATED" - Restriction check failed.
   650  	//   "TYPE_RESOURCE_DELETED" - Resource deleted.
   651  	//   "TYPE_ROLLOUT_UPDATE" - Rollout updated.
   652  	//   "TYPE_DEPLOY_POLICY_EVALUATION" - Deploy Policy evaluation.
   653  	//   "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never used. Use
   654  	// release_render log type instead.
   655  	Type string `json:"type,omitempty"`
   656  	// ForceSendFields is a list of field names (e.g. "Automation") to
   657  	// unconditionally include in API requests. By default, fields with empty or
   658  	// default values are omitted from API requests. See
   659  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   660  	// details.
   661  	ForceSendFields []string `json:"-"`
   662  	// NullFields is a list of field names (e.g. "Automation") to include in API
   663  	// requests with the JSON null value. By default, fields with empty values are
   664  	// omitted from API requests. See
   665  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   666  	NullFields []string `json:"-"`
   667  }
   668  
   669  func (s *AutomationEvent) MarshalJSON() ([]byte, error) {
   670  	type NoMethod AutomationEvent
   671  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   672  }
   673  
   674  // AutomationResourceSelector: AutomationResourceSelector contains the
   675  // information to select the resources to which an Automation is going to be
   676  // applied.
   677  type AutomationResourceSelector struct {
   678  	// Targets: Contains attributes about a target.
   679  	Targets []*TargetAttribute `json:"targets,omitempty"`
   680  	// ForceSendFields is a list of field names (e.g. "Targets") to unconditionally
   681  	// include in API requests. By default, fields with empty or default values are
   682  	// omitted from API requests. See
   683  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   684  	// details.
   685  	ForceSendFields []string `json:"-"`
   686  	// NullFields is a list of field names (e.g. "Targets") to include in API
   687  	// requests with the JSON null value. By default, fields with empty values are
   688  	// omitted from API requests. See
   689  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   690  	NullFields []string `json:"-"`
   691  }
   692  
   693  func (s *AutomationResourceSelector) MarshalJSON() ([]byte, error) {
   694  	type NoMethod AutomationResourceSelector
   695  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   696  }
   697  
   698  // AutomationRolloutMetadata: AutomationRolloutMetadata contains
   699  // Automation-related actions that were performed on a rollout.
   700  type AutomationRolloutMetadata struct {
   701  	// AdvanceAutomationRuns: Output only. The IDs of the AutomationRuns initiated
   702  	// by an advance rollout rule.
   703  	AdvanceAutomationRuns []string `json:"advanceAutomationRuns,omitempty"`
   704  	// CurrentRepairAutomationRun: Output only. The current AutomationRun repairing
   705  	// the rollout.
   706  	CurrentRepairAutomationRun string `json:"currentRepairAutomationRun,omitempty"`
   707  	// PromoteAutomationRun: Output only. The ID of the AutomationRun initiated by
   708  	// a promote release rule.
   709  	PromoteAutomationRun string `json:"promoteAutomationRun,omitempty"`
   710  	// RepairAutomationRuns: Output only. The IDs of the AutomationRuns initiated
   711  	// by a repair rollout rule.
   712  	RepairAutomationRuns []string `json:"repairAutomationRuns,omitempty"`
   713  	// ForceSendFields is a list of field names (e.g. "AdvanceAutomationRuns") to
   714  	// unconditionally include in API requests. By default, fields with empty or
   715  	// default values are omitted from API requests. See
   716  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   717  	// details.
   718  	ForceSendFields []string `json:"-"`
   719  	// NullFields is a list of field names (e.g. "AdvanceAutomationRuns") to
   720  	// include in API requests with the JSON null value. By default, fields with
   721  	// empty values are omitted from API requests. See
   722  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   723  	NullFields []string `json:"-"`
   724  }
   725  
   726  func (s *AutomationRolloutMetadata) MarshalJSON() ([]byte, error) {
   727  	type NoMethod AutomationRolloutMetadata
   728  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   729  }
   730  
   731  // AutomationRule: `AutomationRule` defines the automation activities.
   732  type AutomationRule struct {
   733  	// AdvanceRolloutRule: Optional. The `AdvanceRolloutRule` will automatically
   734  	// advance a successful Rollout.
   735  	AdvanceRolloutRule *AdvanceRolloutRule `json:"advanceRolloutRule,omitempty"`
   736  	// PromoteReleaseRule: Optional. `PromoteReleaseRule` will automatically
   737  	// promote a release from the current target to a specified target.
   738  	PromoteReleaseRule *PromoteReleaseRule `json:"promoteReleaseRule,omitempty"`
   739  	// RepairRolloutRule: Optional. The `RepairRolloutRule` will automatically
   740  	// repair a failed rollout.
   741  	RepairRolloutRule *RepairRolloutRule `json:"repairRolloutRule,omitempty"`
   742  	// ForceSendFields is a list of field names (e.g. "AdvanceRolloutRule") to
   743  	// unconditionally include in API requests. By default, fields with empty or
   744  	// default values are omitted from API requests. See
   745  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   746  	// details.
   747  	ForceSendFields []string `json:"-"`
   748  	// NullFields is a list of field names (e.g. "AdvanceRolloutRule") to include
   749  	// in API requests with the JSON null value. By default, fields with empty
   750  	// values are omitted from API requests. See
   751  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   752  	NullFields []string `json:"-"`
   753  }
   754  
   755  func (s *AutomationRule) MarshalJSON() ([]byte, error) {
   756  	type NoMethod AutomationRule
   757  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   758  }
   759  
   760  // AutomationRuleCondition: `AutomationRuleCondition` contains conditions
   761  // relevant to an `Automation` rule.
   762  type AutomationRuleCondition struct {
   763  	// TargetsPresentCondition: Optional. Details around targets enumerated in the
   764  	// rule.
   765  	TargetsPresentCondition *TargetsPresentCondition `json:"targetsPresentCondition,omitempty"`
   766  	// ForceSendFields is a list of field names (e.g. "TargetsPresentCondition") to
   767  	// unconditionally include in API requests. By default, fields with empty or
   768  	// default values are omitted from API requests. See
   769  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   770  	// details.
   771  	ForceSendFields []string `json:"-"`
   772  	// NullFields is a list of field names (e.g. "TargetsPresentCondition") to
   773  	// include in API requests with the JSON null value. By default, fields with
   774  	// empty values are omitted from API requests. See
   775  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   776  	NullFields []string `json:"-"`
   777  }
   778  
   779  func (s *AutomationRuleCondition) MarshalJSON() ([]byte, error) {
   780  	type NoMethod AutomationRuleCondition
   781  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   782  }
   783  
   784  // AutomationRun: An `AutomationRun` resource in the Cloud Deploy API. An
   785  // `AutomationRun` represents an execution instance of an automation rule.
   786  type AutomationRun struct {
   787  	// AdvanceRolloutOperation: Output only. Advances a rollout to the next phase.
   788  	AdvanceRolloutOperation *AdvanceRolloutOperation `json:"advanceRolloutOperation,omitempty"`
   789  	// AutomationId: Output only. The ID of the automation that initiated the
   790  	// operation.
   791  	AutomationId string `json:"automationId,omitempty"`
   792  	// AutomationSnapshot: Output only. Snapshot of the Automation taken at
   793  	// AutomationRun creation time.
   794  	AutomationSnapshot *Automation `json:"automationSnapshot,omitempty"`
   795  	// CreateTime: Output only. Time at which the `AutomationRun` was created.
   796  	CreateTime string `json:"createTime,omitempty"`
   797  	// Etag: Output only. The weak etag of the `AutomationRun` resource. This
   798  	// checksum is computed by the server based on the value of other fields, and
   799  	// may be sent on update and delete requests to ensure the client has an
   800  	// up-to-date value before proceeding.
   801  	Etag string `json:"etag,omitempty"`
   802  	// ExpireTime: Output only. Time the `AutomationRun` expires. An
   803  	// `AutomationRun` expires after 14 days from its creation date.
   804  	ExpireTime string `json:"expireTime,omitempty"`
   805  	// Name: Output only. Name of the `AutomationRun`. Format is
   806  	// `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline
   807  	// }/automationRuns/{automation_run}`.
   808  	Name string `json:"name,omitempty"`
   809  	// PromoteReleaseOperation: Output only. Promotes a release to a specified
   810  	// 'Target'.
   811  	PromoteReleaseOperation *PromoteReleaseOperation `json:"promoteReleaseOperation,omitempty"`
   812  	// RepairRolloutOperation: Output only. Repairs a failed 'Rollout'.
   813  	RepairRolloutOperation *RepairRolloutOperation `json:"repairRolloutOperation,omitempty"`
   814  	// RuleId: Output only. The ID of the automation rule that initiated the
   815  	// operation.
   816  	RuleId string `json:"ruleId,omitempty"`
   817  	// ServiceAccount: Output only. Email address of the user-managed IAM service
   818  	// account that performs the operations against Cloud Deploy resources.
   819  	ServiceAccount string `json:"serviceAccount,omitempty"`
   820  	// State: Output only. Current state of the `AutomationRun`.
   821  	//
   822  	// Possible values:
   823  	//   "STATE_UNSPECIFIED" - The `AutomationRun` has an unspecified state.
   824  	//   "SUCCEEDED" - The `AutomationRun` has succeeded.
   825  	//   "CANCELLED" - The `AutomationRun` was cancelled.
   826  	//   "FAILED" - The `AutomationRun` has failed.
   827  	//   "IN_PROGRESS" - The `AutomationRun` is in progress.
   828  	//   "PENDING" - The `AutomationRun` is pending.
   829  	//   "ABORTED" - The `AutomationRun` was aborted.
   830  	State string `json:"state,omitempty"`
   831  	// StateDescription: Output only. Explains the current state of the
   832  	// `AutomationRun`. Present only when an explanation is needed.
   833  	StateDescription string `json:"stateDescription,omitempty"`
   834  	// TargetId: Output only. The ID of the target that represents the promotion
   835  	// stage that initiates the `AutomationRun`. The value of this field is the
   836  	// last segment of a target name.
   837  	TargetId string `json:"targetId,omitempty"`
   838  	// UpdateTime: Output only. Time at which the automationRun was updated.
   839  	UpdateTime string `json:"updateTime,omitempty"`
   840  	// WaitUntilTime: Output only. Earliest time the `AutomationRun` will attempt
   841  	// to resume. Wait-time is configured by `wait` in automation rule.
   842  	WaitUntilTime string `json:"waitUntilTime,omitempty"`
   843  
   844  	// ServerResponse contains the HTTP response code and headers from the server.
   845  	googleapi.ServerResponse `json:"-"`
   846  	// ForceSendFields is a list of field names (e.g. "AdvanceRolloutOperation") to
   847  	// unconditionally include in API requests. By default, fields with empty or
   848  	// default values are omitted from API requests. See
   849  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   850  	// details.
   851  	ForceSendFields []string `json:"-"`
   852  	// NullFields is a list of field names (e.g. "AdvanceRolloutOperation") to
   853  	// include in API requests with the JSON null value. By default, fields with
   854  	// empty values are omitted from API requests. See
   855  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   856  	NullFields []string `json:"-"`
   857  }
   858  
   859  func (s *AutomationRun) MarshalJSON() ([]byte, error) {
   860  	type NoMethod AutomationRun
   861  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   862  }
   863  
   864  // AutomationRunEvent: Payload proto for
   865  // "clouddeploy.googleapis.com/automation_run" Platform Log event that
   866  // describes the AutomationRun related events.
   867  type AutomationRunEvent struct {
   868  	// AutomationId: Identifier of the `Automation`.
   869  	AutomationId string `json:"automationId,omitempty"`
   870  	// AutomationRun: The name of the `AutomationRun`.
   871  	AutomationRun string `json:"automationRun,omitempty"`
   872  	// DestinationTargetId: ID of the `Target` to which the `AutomationRun` is
   873  	// created.
   874  	DestinationTargetId string `json:"destinationTargetId,omitempty"`
   875  	// Message: Debug message for when there is an update on the AutomationRun.
   876  	// Provides further details about the resource creation or state change.
   877  	Message string `json:"message,omitempty"`
   878  	// PipelineUid: Unique identifier of the `DeliveryPipeline`.
   879  	PipelineUid string `json:"pipelineUid,omitempty"`
   880  	// RuleId: Identifier of the `Automation` rule.
   881  	RuleId string `json:"ruleId,omitempty"`
   882  	// Type: Type of this notification, e.g. for a Pub/Sub failure.
   883  	//
   884  	// Possible values:
   885  	//   "TYPE_UNSPECIFIED" - Type is unspecified.
   886  	//   "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed to be
   887  	// sent.
   888  	//   "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed.
   889  	//   "TYPE_PROCESS_ABORTED" - A process aborted.
   890  	//   "TYPE_RESTRICTION_VIOLATED" - Restriction check failed.
   891  	//   "TYPE_RESOURCE_DELETED" - Resource deleted.
   892  	//   "TYPE_ROLLOUT_UPDATE" - Rollout updated.
   893  	//   "TYPE_DEPLOY_POLICY_EVALUATION" - Deploy Policy evaluation.
   894  	//   "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never used. Use
   895  	// release_render log type instead.
   896  	Type string `json:"type,omitempty"`
   897  	// ForceSendFields is a list of field names (e.g. "AutomationId") to
   898  	// unconditionally include in API requests. By default, fields with empty or
   899  	// default values are omitted from API requests. See
   900  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   901  	// details.
   902  	ForceSendFields []string `json:"-"`
   903  	// NullFields is a list of field names (e.g. "AutomationId") to include in API
   904  	// requests with the JSON null value. By default, fields with empty values are
   905  	// omitted from API requests. See
   906  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   907  	NullFields []string `json:"-"`
   908  }
   909  
   910  func (s *AutomationRunEvent) MarshalJSON() ([]byte, error) {
   911  	type NoMethod AutomationRunEvent
   912  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   913  }
   914  
   915  // Binding: Associates `members`, or principals, with a `role`.
   916  type Binding struct {
   917  	// Condition: The condition that is associated with this binding. If the
   918  	// condition evaluates to `true`, then this binding applies to the current
   919  	// request. If the condition evaluates to `false`, then this binding does not
   920  	// apply to the current request. However, a different role binding might grant
   921  	// the same role to one or more of the principals in this binding. To learn
   922  	// which resources support conditions in their IAM policies, see the IAM
   923  	// documentation
   924  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
   925  	Condition *Expr `json:"condition,omitempty"`
   926  	// Members: Specifies the principals requesting access for a Google Cloud
   927  	// resource. `members` can have the following values: * `allUsers`: A special
   928  	// identifier that represents anyone who is on the internet; with or without a
   929  	// Google account. * `allAuthenticatedUsers`: A special identifier that
   930  	// represents anyone who is authenticated with a Google account or a service
   931  	// account. Does not include identities that come from external identity
   932  	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
   933  	// address that represents a specific Google account. For example,
   934  	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
   935  	// represents a Google service account. For example,
   936  	// `my-other-app@appspot.gserviceaccount.com`. *
   937  	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
   938  	// identifier for a Kubernetes service account
   939  	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
   940  	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
   941  	// `group:{emailid}`: An email address that represents a Google group. For
   942  	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
   943  	// (primary) that represents all the users of that domain. For example,
   944  	// `google.com` or `example.com`. *
   945  	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
   946  	// ject/{subject_attribute_value}`: A single identity in a workforce identity
   947  	// pool. *
   948  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   949  	// group/{group_id}`: All workforce identities in a group. *
   950  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   951  	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
   952  	// a specific attribute value. *
   953  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   954  	// *`: All identities in a workforce identity pool. *
   955  	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
   956  	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
   957  	// identity in a workload identity pool. *
   958  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   959  	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
   960  	// group. *
   961  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   962  	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
   963  	// `: All identities in a workload identity pool with a certain attribute. *
   964  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   965  	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
   966  	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
   967  	// unique identifier) representing a user that has been recently deleted. For
   968  	// example, `alice@example.com?uid=123456789012345678901`. If the user is
   969  	// recovered, this value reverts to `user:{emailid}` and the recovered user
   970  	// retains the role in the binding. *
   971  	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
   972  	// unique identifier) representing a service account that has been recently
   973  	// deleted. For example,
   974  	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
   975  	// service account is undeleted, this value reverts to
   976  	// `serviceAccount:{emailid}` and the undeleted service account retains the
   977  	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
   978  	// address (plus unique identifier) representing a Google group that has been
   979  	// recently deleted. For example,
   980  	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
   981  	// this value reverts to `group:{emailid}` and the recovered group retains the
   982  	// role in the binding. *
   983  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
   984  	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
   985  	// workforce identity pool. For example,
   986  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
   987  	// ol-id/subject/my-subject-attribute-value`.
   988  	Members []string `json:"members,omitempty"`
   989  	// Role: Role that is assigned to the list of `members`, or principals. For
   990  	// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview
   991  	// of the IAM roles and permissions, see the IAM documentation
   992  	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
   993  	// available pre-defined roles, see here
   994  	// (https://cloud.google.com/iam/docs/understanding-roles).
   995  	Role string `json:"role,omitempty"`
   996  	// ForceSendFields is a list of field names (e.g. "Condition") to
   997  	// unconditionally include in API requests. By default, fields with empty or
   998  	// default values are omitted from API requests. See
   999  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1000  	// details.
  1001  	ForceSendFields []string `json:"-"`
  1002  	// NullFields is a list of field names (e.g. "Condition") to include in API
  1003  	// requests with the JSON null value. By default, fields with empty values are
  1004  	// omitted from API requests. See
  1005  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1006  	NullFields []string `json:"-"`
  1007  }
  1008  
  1009  func (s *Binding) MarshalJSON() ([]byte, error) {
  1010  	type NoMethod Binding
  1011  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1012  }
  1013  
  1014  // BuildArtifact: Description of an a image to use during Skaffold rendering.
  1015  type BuildArtifact struct {
  1016  	// Image: Image name in Skaffold configuration.
  1017  	Image string `json:"image,omitempty"`
  1018  	// Tag: Image tag to use. This will generally be the full path to an image,
  1019  	// such as "gcr.io/my-project/busybox:1.2.3" or
  1020  	// "gcr.io/my-project/busybox@sha256:abc123".
  1021  	Tag string `json:"tag,omitempty"`
  1022  	// ForceSendFields is a list of field names (e.g. "Image") to unconditionally
  1023  	// include in API requests. By default, fields with empty or default values are
  1024  	// omitted from API requests. See
  1025  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1026  	// details.
  1027  	ForceSendFields []string `json:"-"`
  1028  	// NullFields is a list of field names (e.g. "Image") to include in API
  1029  	// requests with the JSON null value. By default, fields with empty values are
  1030  	// omitted from API requests. See
  1031  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1032  	NullFields []string `json:"-"`
  1033  }
  1034  
  1035  func (s *BuildArtifact) MarshalJSON() ([]byte, error) {
  1036  	type NoMethod BuildArtifact
  1037  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1038  }
  1039  
  1040  // Canary: Canary represents the canary deployment strategy.
  1041  type Canary struct {
  1042  	// CanaryDeployment: Configures the progressive based deployment for a Target.
  1043  	CanaryDeployment *CanaryDeployment `json:"canaryDeployment,omitempty"`
  1044  	// CustomCanaryDeployment: Configures the progressive based deployment for a
  1045  	// Target, but allows customizing at the phase level where a phase represents
  1046  	// each of the percentage deployments.
  1047  	CustomCanaryDeployment *CustomCanaryDeployment `json:"customCanaryDeployment,omitempty"`
  1048  	// RuntimeConfig: Optional. Runtime specific configurations for the deployment
  1049  	// strategy. The runtime configuration is used to determine how Cloud Deploy
  1050  	// will split traffic to enable a progressive deployment.
  1051  	RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"`
  1052  	// ForceSendFields is a list of field names (e.g. "CanaryDeployment") to
  1053  	// unconditionally include in API requests. By default, fields with empty or
  1054  	// default values are omitted from API requests. See
  1055  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1056  	// details.
  1057  	ForceSendFields []string `json:"-"`
  1058  	// NullFields is a list of field names (e.g. "CanaryDeployment") to include in
  1059  	// API requests with the JSON null value. By default, fields with empty values
  1060  	// are omitted from API requests. See
  1061  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1062  	NullFields []string `json:"-"`
  1063  }
  1064  
  1065  func (s *Canary) MarshalJSON() ([]byte, error) {
  1066  	type NoMethod Canary
  1067  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1068  }
  1069  
  1070  // CanaryDeployment: CanaryDeployment represents the canary deployment
  1071  // configuration
  1072  type CanaryDeployment struct {
  1073  	// Percentages: Required. The percentage based deployments that will occur as a
  1074  	// part of a `Rollout`. List is expected in ascending order and each integer n
  1075  	// is 0 <= n < 100.
  1076  	Percentages []int64 `json:"percentages,omitempty"`
  1077  	// Postdeploy: Optional. Configuration for the postdeploy job of the last
  1078  	// phase. If this is not configured, there will be no postdeploy job for this
  1079  	// phase.
  1080  	Postdeploy *Postdeploy `json:"postdeploy,omitempty"`
  1081  	// Predeploy: Optional. Configuration for the predeploy job of the first phase.
  1082  	// If this is not configured, there will be no predeploy job for this phase.
  1083  	Predeploy *Predeploy `json:"predeploy,omitempty"`
  1084  	// Verify: Whether to run verify tests after each percentage deployment.
  1085  	Verify bool `json:"verify,omitempty"`
  1086  	// ForceSendFields is a list of field names (e.g. "Percentages") to
  1087  	// unconditionally include in API requests. By default, fields with empty or
  1088  	// default values are omitted from API requests. See
  1089  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1090  	// details.
  1091  	ForceSendFields []string `json:"-"`
  1092  	// NullFields is a list of field names (e.g. "Percentages") to include in API
  1093  	// requests with the JSON null value. By default, fields with empty values are
  1094  	// omitted from API requests. See
  1095  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1096  	NullFields []string `json:"-"`
  1097  }
  1098  
  1099  func (s *CanaryDeployment) MarshalJSON() ([]byte, error) {
  1100  	type NoMethod CanaryDeployment
  1101  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1102  }
  1103  
  1104  // CancelAutomationRunRequest: The request object used by
  1105  // `CancelAutomationRun`.
  1106  type CancelAutomationRunRequest struct {
  1107  }
  1108  
  1109  // CancelAutomationRunResponse: The response object from `CancelAutomationRun`.
  1110  type CancelAutomationRunResponse struct {
  1111  	// ServerResponse contains the HTTP response code and headers from the server.
  1112  	googleapi.ServerResponse `json:"-"`
  1113  }
  1114  
  1115  // CancelOperationRequest: The request message for Operations.CancelOperation.
  1116  type CancelOperationRequest struct {
  1117  }
  1118  
  1119  // CancelRolloutRequest: The request object used by `CancelRollout`.
  1120  type CancelRolloutRequest struct {
  1121  }
  1122  
  1123  // CancelRolloutResponse: The response object from `CancelRollout`.
  1124  type CancelRolloutResponse struct {
  1125  	// ServerResponse contains the HTTP response code and headers from the server.
  1126  	googleapi.ServerResponse `json:"-"`
  1127  }
  1128  
  1129  // ChildRolloutJobs: ChildRollouts job composition
  1130  type ChildRolloutJobs struct {
  1131  	// AdvanceRolloutJobs: Output only. List of AdvanceChildRolloutJobs
  1132  	AdvanceRolloutJobs []*Job `json:"advanceRolloutJobs,omitempty"`
  1133  	// CreateRolloutJobs: Output only. List of CreateChildRolloutJobs
  1134  	CreateRolloutJobs []*Job `json:"createRolloutJobs,omitempty"`
  1135  	// ForceSendFields is a list of field names (e.g. "AdvanceRolloutJobs") to
  1136  	// unconditionally include in API requests. By default, fields with empty or
  1137  	// default values are omitted from API requests. See
  1138  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1139  	// details.
  1140  	ForceSendFields []string `json:"-"`
  1141  	// NullFields is a list of field names (e.g. "AdvanceRolloutJobs") to include
  1142  	// in API requests with the JSON null value. By default, fields with empty
  1143  	// values are omitted from API requests. See
  1144  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1145  	NullFields []string `json:"-"`
  1146  }
  1147  
  1148  func (s *ChildRolloutJobs) MarshalJSON() ([]byte, error) {
  1149  	type NoMethod ChildRolloutJobs
  1150  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1151  }
  1152  
  1153  // CloudRunConfig: CloudRunConfig contains the Cloud Run runtime configuration.
  1154  type CloudRunConfig struct {
  1155  	// AutomaticTrafficControl: Whether Cloud Deploy should update the traffic
  1156  	// stanza in a Cloud Run Service on the user's behalf to facilitate traffic
  1157  	// splitting. This is required to be true for CanaryDeployments, but optional
  1158  	// for CustomCanaryDeployments.
  1159  	AutomaticTrafficControl bool `json:"automaticTrafficControl,omitempty"`
  1160  	// CanaryRevisionTags: Optional. A list of tags that are added to the canary
  1161  	// revision while the canary phase is in progress.
  1162  	CanaryRevisionTags []string `json:"canaryRevisionTags,omitempty"`
  1163  	// PriorRevisionTags: Optional. A list of tags that are added to the prior
  1164  	// revision while the canary phase is in progress.
  1165  	PriorRevisionTags []string `json:"priorRevisionTags,omitempty"`
  1166  	// StableRevisionTags: Optional. A list of tags that are added to the final
  1167  	// stable revision when the stable phase is applied.
  1168  	StableRevisionTags []string `json:"stableRevisionTags,omitempty"`
  1169  	// ForceSendFields is a list of field names (e.g. "AutomaticTrafficControl") to
  1170  	// unconditionally include in API requests. By default, fields with empty or
  1171  	// default values are omitted from API requests. See
  1172  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1173  	// details.
  1174  	ForceSendFields []string `json:"-"`
  1175  	// NullFields is a list of field names (e.g. "AutomaticTrafficControl") to
  1176  	// include in API requests with the JSON null value. By default, fields with
  1177  	// empty values are omitted from API requests. See
  1178  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1179  	NullFields []string `json:"-"`
  1180  }
  1181  
  1182  func (s *CloudRunConfig) MarshalJSON() ([]byte, error) {
  1183  	type NoMethod CloudRunConfig
  1184  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1185  }
  1186  
  1187  // CloudRunLocation: Information specifying where to deploy a Cloud Run
  1188  // Service.
  1189  type CloudRunLocation struct {
  1190  	// Location: Required. The location for the Cloud Run Service. Format must be
  1191  	// `projects/{project}/locations/{location}`.
  1192  	Location string `json:"location,omitempty"`
  1193  	// ForceSendFields is a list of field names (e.g. "Location") to
  1194  	// unconditionally include in API requests. By default, fields with empty or
  1195  	// default values are omitted from API requests. See
  1196  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1197  	// details.
  1198  	ForceSendFields []string `json:"-"`
  1199  	// NullFields is a list of field names (e.g. "Location") to include in API
  1200  	// requests with the JSON null value. By default, fields with empty values are
  1201  	// omitted from API requests. See
  1202  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1203  	NullFields []string `json:"-"`
  1204  }
  1205  
  1206  func (s *CloudRunLocation) MarshalJSON() ([]byte, error) {
  1207  	type NoMethod CloudRunLocation
  1208  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1209  }
  1210  
  1211  // CloudRunMetadata: CloudRunMetadata contains information from a Cloud Run
  1212  // deployment.
  1213  type CloudRunMetadata struct {
  1214  	// Job: Output only. The name of the Cloud Run job that is associated with a
  1215  	// `Rollout`. Format is
  1216  	// `projects/{project}/locations/{location}/jobs/{job_name}`.
  1217  	Job string `json:"job,omitempty"`
  1218  	// Revision: Output only. The Cloud Run Revision id associated with a
  1219  	// `Rollout`.
  1220  	Revision string `json:"revision,omitempty"`
  1221  	// Service: Output only. The name of the Cloud Run Service that is associated
  1222  	// with a `Rollout`. Format is
  1223  	// `projects/{project}/locations/{location}/services/{service}`.
  1224  	Service string `json:"service,omitempty"`
  1225  	// ServiceUrls: Output only. The Cloud Run Service urls that are associated
  1226  	// with a `Rollout`.
  1227  	ServiceUrls []string `json:"serviceUrls,omitempty"`
  1228  	// ForceSendFields is a list of field names (e.g. "Job") to unconditionally
  1229  	// include in API requests. By default, fields with empty or default values are
  1230  	// omitted from API requests. See
  1231  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1232  	// details.
  1233  	ForceSendFields []string `json:"-"`
  1234  	// NullFields is a list of field names (e.g. "Job") to include in API requests
  1235  	// with the JSON null value. By default, fields with empty values are omitted
  1236  	// from API requests. See
  1237  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1238  	NullFields []string `json:"-"`
  1239  }
  1240  
  1241  func (s *CloudRunMetadata) MarshalJSON() ([]byte, error) {
  1242  	type NoMethod CloudRunMetadata
  1243  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1244  }
  1245  
  1246  // CloudRunRenderMetadata: CloudRunRenderMetadata contains Cloud Run
  1247  // information associated with a `Release` render.
  1248  type CloudRunRenderMetadata struct {
  1249  	// Service: Output only. The name of the Cloud Run Service in the rendered
  1250  	// manifest. Format is
  1251  	// `projects/{project}/locations/{location}/services/{service}`.
  1252  	Service string `json:"service,omitempty"`
  1253  	// ForceSendFields is a list of field names (e.g. "Service") to unconditionally
  1254  	// include in API requests. By default, fields with empty or default values are
  1255  	// omitted from API requests. See
  1256  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1257  	// details.
  1258  	ForceSendFields []string `json:"-"`
  1259  	// NullFields is a list of field names (e.g. "Service") to include in API
  1260  	// requests with the JSON null value. By default, fields with empty values are
  1261  	// omitted from API requests. See
  1262  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1263  	NullFields []string `json:"-"`
  1264  }
  1265  
  1266  func (s *CloudRunRenderMetadata) MarshalJSON() ([]byte, error) {
  1267  	type NoMethod CloudRunRenderMetadata
  1268  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1269  }
  1270  
  1271  // Config: Service-wide configuration.
  1272  type Config struct {
  1273  	// DefaultSkaffoldVersion: Default Skaffold version that is assigned when a
  1274  	// Release is created without specifying a Skaffold version.
  1275  	DefaultSkaffoldVersion string `json:"defaultSkaffoldVersion,omitempty"`
  1276  	// Name: Name of the configuration.
  1277  	Name string `json:"name,omitempty"`
  1278  	// SupportedVersions: All supported versions of Skaffold.
  1279  	SupportedVersions []*SkaffoldVersion `json:"supportedVersions,omitempty"`
  1280  
  1281  	// ServerResponse contains the HTTP response code and headers from the server.
  1282  	googleapi.ServerResponse `json:"-"`
  1283  	// ForceSendFields is a list of field names (e.g. "DefaultSkaffoldVersion") to
  1284  	// unconditionally include in API requests. By default, fields with empty or
  1285  	// default values are omitted from API requests. See
  1286  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1287  	// details.
  1288  	ForceSendFields []string `json:"-"`
  1289  	// NullFields is a list of field names (e.g. "DefaultSkaffoldVersion") to
  1290  	// include in API requests with the JSON null value. By default, fields with
  1291  	// empty values are omitted from API requests. See
  1292  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1293  	NullFields []string `json:"-"`
  1294  }
  1295  
  1296  func (s *Config) MarshalJSON() ([]byte, error) {
  1297  	type NoMethod Config
  1298  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1299  }
  1300  
  1301  // CreateChildRolloutJob: A createChildRollout Job.
  1302  type CreateChildRolloutJob struct {
  1303  }
  1304  
  1305  // CreateChildRolloutJobRun: CreateChildRolloutJobRun contains information
  1306  // specific to a createChildRollout `JobRun`.
  1307  type CreateChildRolloutJobRun struct {
  1308  	// Rollout: Output only. Name of the `ChildRollout`. Format is
  1309  	// `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}
  1310  	// /releases/{release}/rollouts/{rollout}`.
  1311  	Rollout string `json:"rollout,omitempty"`
  1312  	// RolloutPhaseId: Output only. The ID of the childRollout Phase initiated by
  1313  	// this JobRun.
  1314  	RolloutPhaseId string `json:"rolloutPhaseId,omitempty"`
  1315  	// ForceSendFields is a list of field names (e.g. "Rollout") to unconditionally
  1316  	// include in API requests. By default, fields with empty or default values are
  1317  	// omitted from API requests. See
  1318  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1319  	// details.
  1320  	ForceSendFields []string `json:"-"`
  1321  	// NullFields is a list of field names (e.g. "Rollout") to include in API
  1322  	// requests with the JSON null value. By default, fields with empty values are
  1323  	// omitted from API requests. See
  1324  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1325  	NullFields []string `json:"-"`
  1326  }
  1327  
  1328  func (s *CreateChildRolloutJobRun) MarshalJSON() ([]byte, error) {
  1329  	type NoMethod CreateChildRolloutJobRun
  1330  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1331  }
  1332  
  1333  // CustomCanaryDeployment: CustomCanaryDeployment represents the custom canary
  1334  // deployment configuration.
  1335  type CustomCanaryDeployment struct {
  1336  	// PhaseConfigs: Required. Configuration for each phase in the canary
  1337  	// deployment in the order executed.
  1338  	PhaseConfigs []*PhaseConfig `json:"phaseConfigs,omitempty"`
  1339  	// ForceSendFields is a list of field names (e.g. "PhaseConfigs") to
  1340  	// unconditionally include in API requests. By default, fields with empty or
  1341  	// default values are omitted from API requests. See
  1342  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1343  	// details.
  1344  	ForceSendFields []string `json:"-"`
  1345  	// NullFields is a list of field names (e.g. "PhaseConfigs") to include in API
  1346  	// requests with the JSON null value. By default, fields with empty values are
  1347  	// omitted from API requests. See
  1348  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1349  	NullFields []string `json:"-"`
  1350  }
  1351  
  1352  func (s *CustomCanaryDeployment) MarshalJSON() ([]byte, error) {
  1353  	type NoMethod CustomCanaryDeployment
  1354  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1355  }
  1356  
  1357  // CustomMetadata: CustomMetadata contains information from a user-defined
  1358  // operation.
  1359  type CustomMetadata struct {
  1360  	// Values: Output only. Key-value pairs provided by the user-defined operation.
  1361  	Values map[string]string `json:"values,omitempty"`
  1362  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  1363  	// include in API requests. By default, fields with empty or default values are
  1364  	// omitted from API requests. See
  1365  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1366  	// details.
  1367  	ForceSendFields []string `json:"-"`
  1368  	// NullFields is a list of field names (e.g. "Values") to include in API
  1369  	// requests with the JSON null value. By default, fields with empty values are
  1370  	// omitted from API requests. See
  1371  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1372  	NullFields []string `json:"-"`
  1373  }
  1374  
  1375  func (s *CustomMetadata) MarshalJSON() ([]byte, error) {
  1376  	type NoMethod CustomMetadata
  1377  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1378  }
  1379  
  1380  // CustomTarget: Information specifying a Custom Target.
  1381  type CustomTarget struct {
  1382  	// CustomTargetType: Required. The name of the CustomTargetType. Format must be
  1383  	// `projects/{project}/locations/{location}/customTargetTypes/{custom_target_typ
  1384  	// e}`.
  1385  	CustomTargetType string `json:"customTargetType,omitempty"`
  1386  	// ForceSendFields is a list of field names (e.g. "CustomTargetType") to
  1387  	// unconditionally include in API requests. By default, fields with empty or
  1388  	// default values are omitted from API requests. See
  1389  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1390  	// details.
  1391  	ForceSendFields []string `json:"-"`
  1392  	// NullFields is a list of field names (e.g. "CustomTargetType") to include in
  1393  	// API requests with the JSON null value. By default, fields with empty values
  1394  	// are omitted from API requests. See
  1395  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1396  	NullFields []string `json:"-"`
  1397  }
  1398  
  1399  func (s *CustomTarget) MarshalJSON() ([]byte, error) {
  1400  	type NoMethod CustomTarget
  1401  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1402  }
  1403  
  1404  // CustomTargetDeployMetadata: CustomTargetDeployMetadata contains information
  1405  // from a Custom Target deploy operation.
  1406  type CustomTargetDeployMetadata struct {
  1407  	// SkipMessage: Output only. Skip message provided in the results of a custom
  1408  	// deploy operation.
  1409  	SkipMessage string `json:"skipMessage,omitempty"`
  1410  	// ForceSendFields is a list of field names (e.g. "SkipMessage") to
  1411  	// unconditionally include in API requests. By default, fields with empty or
  1412  	// default values are omitted from API requests. See
  1413  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1414  	// details.
  1415  	ForceSendFields []string `json:"-"`
  1416  	// NullFields is a list of field names (e.g. "SkipMessage") to include in API
  1417  	// requests with the JSON null value. By default, fields with empty values are
  1418  	// omitted from API requests. See
  1419  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1420  	NullFields []string `json:"-"`
  1421  }
  1422  
  1423  func (s *CustomTargetDeployMetadata) MarshalJSON() ([]byte, error) {
  1424  	type NoMethod CustomTargetDeployMetadata
  1425  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1426  }
  1427  
  1428  // CustomTargetSkaffoldActions: CustomTargetSkaffoldActions represents the
  1429  // `CustomTargetType` configuration using Skaffold custom actions.
  1430  type CustomTargetSkaffoldActions struct {
  1431  	// DeployAction: Required. The Skaffold custom action responsible for deploy
  1432  	// operations.
  1433  	DeployAction string `json:"deployAction,omitempty"`
  1434  	// IncludeSkaffoldModules: Optional. List of Skaffold modules Cloud Deploy will
  1435  	// include in the Skaffold Config as required before performing diagnose.
  1436  	IncludeSkaffoldModules []*SkaffoldModules `json:"includeSkaffoldModules,omitempty"`
  1437  	// RenderAction: Optional. The Skaffold custom action responsible for render
  1438  	// operations. If not provided then Cloud Deploy will perform the render
  1439  	// operations via `skaffold render`.
  1440  	RenderAction string `json:"renderAction,omitempty"`
  1441  	// ForceSendFields is a list of field names (e.g. "DeployAction") to
  1442  	// unconditionally include in API requests. By default, fields with empty or
  1443  	// default values are omitted from API requests. See
  1444  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1445  	// details.
  1446  	ForceSendFields []string `json:"-"`
  1447  	// NullFields is a list of field names (e.g. "DeployAction") to include in API
  1448  	// requests with the JSON null value. By default, fields with empty values are
  1449  	// omitted from API requests. See
  1450  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1451  	NullFields []string `json:"-"`
  1452  }
  1453  
  1454  func (s *CustomTargetSkaffoldActions) MarshalJSON() ([]byte, error) {
  1455  	type NoMethod CustomTargetSkaffoldActions
  1456  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1457  }
  1458  
  1459  // CustomTargetType: A `CustomTargetType` resource in the Cloud Deploy API. A
  1460  // `CustomTargetType` defines a type of custom target that can be referenced in
  1461  // a `Target` in order to facilitate deploying to other systems besides the
  1462  // supported runtimes.
  1463  type CustomTargetType struct {
  1464  	// Annotations: Optional. User annotations. These attributes can only be set
  1465  	// and used by the user, and not by Cloud Deploy. See
  1466  	// https://google.aip.dev/128#annotations for more details such as format and
  1467  	// size limitations.
  1468  	Annotations map[string]string `json:"annotations,omitempty"`
  1469  	// CreateTime: Output only. Time at which the `CustomTargetType` was created.
  1470  	CreateTime string `json:"createTime,omitempty"`
  1471  	// CustomActions: Configures render and deploy for the `CustomTargetType` using
  1472  	// Skaffold custom actions.
  1473  	CustomActions *CustomTargetSkaffoldActions `json:"customActions,omitempty"`
  1474  	// CustomTargetTypeId: Output only. Resource id of the `CustomTargetType`.
  1475  	CustomTargetTypeId string `json:"customTargetTypeId,omitempty"`
  1476  	// Description: Optional. Description of the `CustomTargetType`. Max length is
  1477  	// 255 characters.
  1478  	Description string `json:"description,omitempty"`
  1479  	// Etag: Optional. This checksum is computed by the server based on the value
  1480  	// of other fields, and may be sent on update and delete requests to ensure the
  1481  	// client has an up-to-date value before proceeding.
  1482  	Etag string `json:"etag,omitempty"`
  1483  	// Labels: Optional. Labels are attributes that can be set and used by both the
  1484  	// user and by Cloud Deploy. Labels must meet the following constraints: * Keys
  1485  	// and values can contain only lowercase letters, numeric characters,
  1486  	// underscores, and dashes. * All characters must use UTF-8 encoding, and
  1487  	// international characters are allowed. * Keys must start with a lowercase
  1488  	// letter or international character. * Each resource is limited to a maximum
  1489  	// of 64 labels. Both keys and values are additionally constrained to be <= 128
  1490  	// bytes.
  1491  	Labels map[string]string `json:"labels,omitempty"`
  1492  	// Name: Optional. Name of the `CustomTargetType`. Format is
  1493  	// `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}
  1494  	// `. The `customTargetType` component must match
  1495  	// `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
  1496  	Name string `json:"name,omitempty"`
  1497  	// Uid: Output only. Unique identifier of the `CustomTargetType`.
  1498  	Uid string `json:"uid,omitempty"`
  1499  	// UpdateTime: Output only. Most recent time at which the `CustomTargetType`
  1500  	// was updated.
  1501  	UpdateTime string `json:"updateTime,omitempty"`
  1502  
  1503  	// ServerResponse contains the HTTP response code and headers from the server.
  1504  	googleapi.ServerResponse `json:"-"`
  1505  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  1506  	// unconditionally include in API requests. By default, fields with empty or
  1507  	// default values are omitted from API requests. See
  1508  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1509  	// details.
  1510  	ForceSendFields []string `json:"-"`
  1511  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  1512  	// requests with the JSON null value. By default, fields with empty values are
  1513  	// omitted from API requests. See
  1514  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1515  	NullFields []string `json:"-"`
  1516  }
  1517  
  1518  func (s *CustomTargetType) MarshalJSON() ([]byte, error) {
  1519  	type NoMethod CustomTargetType
  1520  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1521  }
  1522  
  1523  // Date: Represents a whole or partial calendar date, such as a birthday. The
  1524  // time of day and time zone are either specified elsewhere or are
  1525  // insignificant. The date is relative to the Gregorian Calendar. This can
  1526  // represent one of the following: * A full date, with non-zero year, month,
  1527  // and day values. * A month and day, with a zero year (for example, an
  1528  // anniversary). * A year on its own, with a zero month and a zero day. * A
  1529  // year and month, with a zero day (for example, a credit card expiration
  1530  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
  1531  // google.protobuf.Timestamp
  1532  type Date struct {
  1533  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
  1534  	// or 0 to specify a year by itself or a year and month where the day isn't
  1535  	// significant.
  1536  	Day int64 `json:"day,omitempty"`
  1537  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
  1538  	// a month and day.
  1539  	Month int64 `json:"month,omitempty"`
  1540  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
  1541  	// without a year.
  1542  	Year int64 `json:"year,omitempty"`
  1543  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  1544  	// include in API requests. By default, fields with empty or default values are
  1545  	// omitted from API requests. See
  1546  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1547  	// details.
  1548  	ForceSendFields []string `json:"-"`
  1549  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  1550  	// with the JSON null value. By default, fields with empty values are omitted
  1551  	// from API requests. See
  1552  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1553  	NullFields []string `json:"-"`
  1554  }
  1555  
  1556  func (s *Date) MarshalJSON() ([]byte, error) {
  1557  	type NoMethod Date
  1558  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1559  }
  1560  
  1561  // DefaultPool: Execution using the default Cloud Build pool.
  1562  type DefaultPool struct {
  1563  	// ArtifactStorage: Optional. Cloud Storage location where execution outputs
  1564  	// should be stored. This can either be a bucket ("gs://my-bucket") or a path
  1565  	// within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket
  1566  	// located in the same region will be used.
  1567  	ArtifactStorage string `json:"artifactStorage,omitempty"`
  1568  	// ServiceAccount: Optional. Google service account to use for execution. If
  1569  	// unspecified, the project execution service account
  1570  	// (-compute@developer.gserviceaccount.com) will be used.
  1571  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1572  	// ForceSendFields is a list of field names (e.g. "ArtifactStorage") to
  1573  	// unconditionally include in API requests. By default, fields with empty or
  1574  	// default values are omitted from API requests. See
  1575  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1576  	// details.
  1577  	ForceSendFields []string `json:"-"`
  1578  	// NullFields is a list of field names (e.g. "ArtifactStorage") to include in
  1579  	// API requests with the JSON null value. By default, fields with empty values
  1580  	// are omitted from API requests. See
  1581  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1582  	NullFields []string `json:"-"`
  1583  }
  1584  
  1585  func (s *DefaultPool) MarshalJSON() ([]byte, error) {
  1586  	type NoMethod DefaultPool
  1587  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1588  }
  1589  
  1590  // DeliveryPipeline: A `DeliveryPipeline` resource in the Cloud Deploy API. A
  1591  // `DeliveryPipeline` defines a pipeline through which a Skaffold configuration
  1592  // can progress.
  1593  type DeliveryPipeline struct {
  1594  	// Annotations: User annotations. These attributes can only be set and used by
  1595  	// the user, and not by Cloud Deploy.
  1596  	Annotations map[string]string `json:"annotations,omitempty"`
  1597  	// Condition: Output only. Information around the state of the Delivery
  1598  	// Pipeline.
  1599  	Condition *PipelineCondition `json:"condition,omitempty"`
  1600  	// CreateTime: Output only. Time at which the pipeline was created.
  1601  	CreateTime string `json:"createTime,omitempty"`
  1602  	// Description: Description of the `DeliveryPipeline`. Max length is 255
  1603  	// characters.
  1604  	Description string `json:"description,omitempty"`
  1605  	// Etag: This checksum is computed by the server based on the value of other
  1606  	// fields, and may be sent on update and delete requests to ensure the client
  1607  	// has an up-to-date value before proceeding.
  1608  	Etag string `json:"etag,omitempty"`
  1609  	// Labels: Labels are attributes that can be set and used by both the user and
  1610  	// by Cloud Deploy. Labels must meet the following constraints: * Keys and
  1611  	// values can contain only lowercase letters, numeric characters, underscores,
  1612  	// and dashes. * All characters must use UTF-8 encoding, and international
  1613  	// characters are allowed. * Keys must start with a lowercase letter or
  1614  	// international character. * Each resource is limited to a maximum of 64
  1615  	// labels. Both keys and values are additionally constrained to be <= 128
  1616  	// bytes.
  1617  	Labels map[string]string `json:"labels,omitempty"`
  1618  	// Name: Optional. Name of the `DeliveryPipeline`. Format is
  1619  	// `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}
  1620  	// `. The `deliveryPipeline` component must match
  1621  	// `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
  1622  	Name string `json:"name,omitempty"`
  1623  	// SerialPipeline: SerialPipeline defines a sequential set of stages for a
  1624  	// `DeliveryPipeline`.
  1625  	SerialPipeline *SerialPipeline `json:"serialPipeline,omitempty"`
  1626  	// Suspended: When suspended, no new releases or rollouts can be created, but
  1627  	// in-progress ones will complete.
  1628  	Suspended bool `json:"suspended,omitempty"`
  1629  	// Uid: Output only. Unique identifier of the `DeliveryPipeline`.
  1630  	Uid string `json:"uid,omitempty"`
  1631  	// UpdateTime: Output only. Most recent time at which the pipeline was updated.
  1632  	UpdateTime string `json:"updateTime,omitempty"`
  1633  
  1634  	// ServerResponse contains the HTTP response code and headers from the server.
  1635  	googleapi.ServerResponse `json:"-"`
  1636  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  1637  	// unconditionally include in API requests. By default, fields with empty or
  1638  	// default values are omitted from API requests. See
  1639  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1640  	// details.
  1641  	ForceSendFields []string `json:"-"`
  1642  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  1643  	// requests with the JSON null value. By default, fields with empty values are
  1644  	// omitted from API requests. See
  1645  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1646  	NullFields []string `json:"-"`
  1647  }
  1648  
  1649  func (s *DeliveryPipeline) MarshalJSON() ([]byte, error) {
  1650  	type NoMethod DeliveryPipeline
  1651  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1652  }
  1653  
  1654  // DeliveryPipelineNotificationEvent: Payload proto for
  1655  // "clouddeploy.googleapis.com/deliverypipeline_notification" Platform Log
  1656  // event that describes the failure to send delivery pipeline status change
  1657  // Pub/Sub notification.
  1658  type DeliveryPipelineNotificationEvent struct {
  1659  	// DeliveryPipeline: The name of the `Delivery Pipeline`.
  1660  	DeliveryPipeline string `json:"deliveryPipeline,omitempty"`
  1661  	// Message: Debug message for when a notification fails to send.
  1662  	Message string `json:"message,omitempty"`
  1663  	// PipelineUid: Unique identifier of the `DeliveryPipeline`.
  1664  	PipelineUid string `json:"pipelineUid,omitempty"`
  1665  	// Type: Type of this notification, e.g. for a Pub/Sub failure.
  1666  	//
  1667  	// Possible values:
  1668  	//   "TYPE_UNSPECIFIED" - Type is unspecified.
  1669  	//   "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed to be
  1670  	// sent.
  1671  	//   "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed.
  1672  	//   "TYPE_PROCESS_ABORTED" - A process aborted.
  1673  	//   "TYPE_RESTRICTION_VIOLATED" - Restriction check failed.
  1674  	//   "TYPE_RESOURCE_DELETED" - Resource deleted.
  1675  	//   "TYPE_ROLLOUT_UPDATE" - Rollout updated.
  1676  	//   "TYPE_DEPLOY_POLICY_EVALUATION" - Deploy Policy evaluation.
  1677  	//   "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never used. Use
  1678  	// release_render log type instead.
  1679  	Type string `json:"type,omitempty"`
  1680  	// ForceSendFields is a list of field names (e.g. "DeliveryPipeline") to
  1681  	// unconditionally include in API requests. By default, fields with empty or
  1682  	// default values are omitted from API requests. See
  1683  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1684  	// details.
  1685  	ForceSendFields []string `json:"-"`
  1686  	// NullFields is a list of field names (e.g. "DeliveryPipeline") to include in
  1687  	// API requests with the JSON null value. By default, fields with empty values
  1688  	// are omitted from API requests. See
  1689  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1690  	NullFields []string `json:"-"`
  1691  }
  1692  
  1693  func (s *DeliveryPipelineNotificationEvent) MarshalJSON() ([]byte, error) {
  1694  	type NoMethod DeliveryPipelineNotificationEvent
  1695  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1696  }
  1697  
  1698  // DeployArtifact: The artifacts produced by a deploy operation.
  1699  type DeployArtifact struct {
  1700  	// ArtifactUri: Output only. URI of a directory containing the artifacts. All
  1701  	// paths are relative to this location.
  1702  	ArtifactUri string `json:"artifactUri,omitempty"`
  1703  	// ManifestPaths: Output only. File paths of the manifests applied during the
  1704  	// deploy operation relative to the URI.
  1705  	ManifestPaths []string `json:"manifestPaths,omitempty"`
  1706  	// ForceSendFields is a list of field names (e.g. "ArtifactUri") to
  1707  	// unconditionally include in API requests. By default, fields with empty or
  1708  	// default values are omitted from API requests. See
  1709  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1710  	// details.
  1711  	ForceSendFields []string `json:"-"`
  1712  	// NullFields is a list of field names (e.g. "ArtifactUri") to include in API
  1713  	// requests with the JSON null value. By default, fields with empty values are
  1714  	// omitted from API requests. See
  1715  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1716  	NullFields []string `json:"-"`
  1717  }
  1718  
  1719  func (s *DeployArtifact) MarshalJSON() ([]byte, error) {
  1720  	type NoMethod DeployArtifact
  1721  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1722  }
  1723  
  1724  // DeployJob: A deploy Job.
  1725  type DeployJob struct {
  1726  }
  1727  
  1728  // DeployJobRun: DeployJobRun contains information specific to a deploy
  1729  // `JobRun`.
  1730  type DeployJobRun struct {
  1731  	// Artifact: Output only. The artifact of a deploy job run, if available.
  1732  	Artifact *DeployArtifact `json:"artifact,omitempty"`
  1733  	// Build: Output only. The resource name of the Cloud Build `Build` object that
  1734  	// is used to deploy. Format is
  1735  	// `projects/{project}/locations/{location}/builds/{build}`.
  1736  	Build string `json:"build,omitempty"`
  1737  	// FailureCause: Output only. The reason the deploy failed. This will always be
  1738  	// unspecified while the deploy is in progress or if it succeeded.
  1739  	//
  1740  	// Possible values:
  1741  	//   "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified.
  1742  	//   "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either because
  1743  	// it is not enabled or because Cloud Deploy has insufficient permissions. See
  1744  	// [Required
  1745  	// permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account
  1746  	// #required_permissions).
  1747  	//   "EXECUTION_FAILED" - The deploy operation did not complete successfully;
  1748  	// check Cloud Build logs.
  1749  	//   "DEADLINE_EXCEEDED" - The deploy job run did not complete within the
  1750  	// alloted time.
  1751  	//   "MISSING_RESOURCES_FOR_CANARY" - There were missing resources in the
  1752  	// runtime environment required for a canary deployment. Check the Cloud Build
  1753  	// logs for more information.
  1754  	//   "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud
  1755  	// Deploy's request. See failure_message for additional details.
  1756  	//   "DEPLOY_FEATURE_NOT_SUPPORTED" - The deploy operation had a feature
  1757  	// configured that is not supported.
  1758  	FailureCause string `json:"failureCause,omitempty"`
  1759  	// FailureMessage: Output only. Additional information about the deploy
  1760  	// failure, if available.
  1761  	FailureMessage string `json:"failureMessage,omitempty"`
  1762  	// Metadata: Output only. Metadata containing information about the deploy job
  1763  	// run.
  1764  	Metadata *DeployJobRunMetadata `json:"metadata,omitempty"`
  1765  	// ForceSendFields is a list of field names (e.g. "Artifact") to
  1766  	// unconditionally include in API requests. By default, fields with empty or
  1767  	// default values are omitted from API requests. See
  1768  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1769  	// details.
  1770  	ForceSendFields []string `json:"-"`
  1771  	// NullFields is a list of field names (e.g. "Artifact") to include in API
  1772  	// requests with the JSON null value. By default, fields with empty values are
  1773  	// omitted from API requests. See
  1774  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1775  	NullFields []string `json:"-"`
  1776  }
  1777  
  1778  func (s *DeployJobRun) MarshalJSON() ([]byte, error) {
  1779  	type NoMethod DeployJobRun
  1780  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1781  }
  1782  
  1783  // DeployJobRunMetadata: DeployJobRunMetadata surfaces information associated
  1784  // with a `DeployJobRun` to the user.
  1785  type DeployJobRunMetadata struct {
  1786  	// CloudRun: Output only. The name of the Cloud Run Service that is associated
  1787  	// with a `DeployJobRun`.
  1788  	CloudRun *CloudRunMetadata `json:"cloudRun,omitempty"`
  1789  	// Custom: Output only. Custom metadata provided by user-defined deploy
  1790  	// operation.
  1791  	Custom *CustomMetadata `json:"custom,omitempty"`
  1792  	// CustomTarget: Output only. Custom Target metadata associated with a
  1793  	// `DeployJobRun`.
  1794  	CustomTarget *CustomTargetDeployMetadata `json:"customTarget,omitempty"`
  1795  	// ForceSendFields is a list of field names (e.g. "CloudRun") to
  1796  	// unconditionally include in API requests. By default, fields with empty or
  1797  	// default values are omitted from API requests. See
  1798  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1799  	// details.
  1800  	ForceSendFields []string `json:"-"`
  1801  	// NullFields is a list of field names (e.g. "CloudRun") to include in API
  1802  	// requests with the JSON null value. By default, fields with empty values are
  1803  	// omitted from API requests. See
  1804  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1805  	NullFields []string `json:"-"`
  1806  }
  1807  
  1808  func (s *DeployJobRunMetadata) MarshalJSON() ([]byte, error) {
  1809  	type NoMethod DeployJobRunMetadata
  1810  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1811  }
  1812  
  1813  // DeployParameters: DeployParameters contains deploy parameters information.
  1814  type DeployParameters struct {
  1815  	// MatchTargetLabels: Optional. Deploy parameters are applied to targets with
  1816  	// match labels. If unspecified, deploy parameters are applied to all targets
  1817  	// (including child targets of a multi-target).
  1818  	MatchTargetLabels map[string]string `json:"matchTargetLabels,omitempty"`
  1819  	// Values: Required. Values are deploy parameters in key-value pairs.
  1820  	Values map[string]string `json:"values,omitempty"`
  1821  	// ForceSendFields is a list of field names (e.g. "MatchTargetLabels") to
  1822  	// unconditionally include in API requests. By default, fields with empty or
  1823  	// default values are omitted from API requests. See
  1824  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1825  	// details.
  1826  	ForceSendFields []string `json:"-"`
  1827  	// NullFields is a list of field names (e.g. "MatchTargetLabels") to include in
  1828  	// API requests with the JSON null value. By default, fields with empty values
  1829  	// are omitted from API requests. See
  1830  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1831  	NullFields []string `json:"-"`
  1832  }
  1833  
  1834  func (s *DeployParameters) MarshalJSON() ([]byte, error) {
  1835  	type NoMethod DeployParameters
  1836  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1837  }
  1838  
  1839  // DeploymentJobs: Deployment job composition.
  1840  type DeploymentJobs struct {
  1841  	// DeployJob: Output only. The deploy Job. This is the deploy job in the phase.
  1842  	DeployJob *Job `json:"deployJob,omitempty"`
  1843  	// PostdeployJob: Output only. The postdeploy Job, which is the last job on the
  1844  	// phase.
  1845  	PostdeployJob *Job `json:"postdeployJob,omitempty"`
  1846  	// PredeployJob: Output only. The predeploy Job, which is the first job on the
  1847  	// phase.
  1848  	PredeployJob *Job `json:"predeployJob,omitempty"`
  1849  	// VerifyJob: Output only. The verify Job. Runs after a deploy if the deploy
  1850  	// succeeds.
  1851  	VerifyJob *Job `json:"verifyJob,omitempty"`
  1852  	// ForceSendFields is a list of field names (e.g. "DeployJob") to
  1853  	// unconditionally include in API requests. By default, fields with empty or
  1854  	// default values are omitted from API requests. See
  1855  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1856  	// details.
  1857  	ForceSendFields []string `json:"-"`
  1858  	// NullFields is a list of field names (e.g. "DeployJob") to include in API
  1859  	// requests with the JSON null value. By default, fields with empty values are
  1860  	// omitted from API requests. See
  1861  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1862  	NullFields []string `json:"-"`
  1863  }
  1864  
  1865  func (s *DeploymentJobs) MarshalJSON() ([]byte, error) {
  1866  	type NoMethod DeploymentJobs
  1867  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1868  }
  1869  
  1870  // Empty: A generic empty message that you can re-use to avoid defining
  1871  // duplicated empty messages in your APIs. A typical example is to use it as
  1872  // the request or the response type of an API method. For instance: service Foo
  1873  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
  1874  type Empty struct {
  1875  	// ServerResponse contains the HTTP response code and headers from the server.
  1876  	googleapi.ServerResponse `json:"-"`
  1877  }
  1878  
  1879  // ExecutionConfig: Configuration of the environment to use when calling
  1880  // Skaffold.
  1881  type ExecutionConfig struct {
  1882  	// ArtifactStorage: Optional. Cloud Storage location in which to store
  1883  	// execution outputs. This can either be a bucket ("gs://my-bucket") or a path
  1884  	// within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket
  1885  	// located in the same region will be used.
  1886  	ArtifactStorage string `json:"artifactStorage,omitempty"`
  1887  	// DefaultPool: Optional. Use default Cloud Build pool.
  1888  	DefaultPool *DefaultPool `json:"defaultPool,omitempty"`
  1889  	// ExecutionTimeout: Optional. Execution timeout for a Cloud Build Execution.
  1890  	// This must be between 10m and 24h in seconds format. If unspecified, a
  1891  	// default timeout of 1h is used.
  1892  	ExecutionTimeout string `json:"executionTimeout,omitempty"`
  1893  	// PrivatePool: Optional. Use private Cloud Build pool.
  1894  	PrivatePool *PrivatePool `json:"privatePool,omitempty"`
  1895  	// ServiceAccount: Optional. Google service account to use for execution. If
  1896  	// unspecified, the project execution service account
  1897  	// (-compute@developer.gserviceaccount.com) is used.
  1898  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1899  	// Usages: Required. Usages when this configuration should be applied.
  1900  	//
  1901  	// Possible values:
  1902  	//   "EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED" - Default value. This value is
  1903  	// unused.
  1904  	//   "RENDER" - Use for rendering.
  1905  	//   "DEPLOY" - Use for deploying and deployment hooks.
  1906  	//   "VERIFY" - Use for deployment verification.
  1907  	//   "PREDEPLOY" - Use for predeploy job execution.
  1908  	//   "POSTDEPLOY" - Use for postdeploy job execution.
  1909  	Usages []string `json:"usages,omitempty"`
  1910  	// WorkerPool: Optional. The resource name of the `WorkerPool`, with the format
  1911  	// `projects/{project}/locations/{location}/workerPools/{worker_pool}`. If this
  1912  	// optional field is unspecified, the default Cloud Build pool will be used.
  1913  	WorkerPool string `json:"workerPool,omitempty"`
  1914  	// ForceSendFields is a list of field names (e.g. "ArtifactStorage") to
  1915  	// unconditionally include in API requests. By default, fields with empty or
  1916  	// default values are omitted from API requests. See
  1917  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1918  	// details.
  1919  	ForceSendFields []string `json:"-"`
  1920  	// NullFields is a list of field names (e.g. "ArtifactStorage") to include in
  1921  	// API requests with the JSON null value. By default, fields with empty values
  1922  	// are omitted from API requests. See
  1923  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1924  	NullFields []string `json:"-"`
  1925  }
  1926  
  1927  func (s *ExecutionConfig) MarshalJSON() ([]byte, error) {
  1928  	type NoMethod ExecutionConfig
  1929  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1930  }
  1931  
  1932  // Expr: Represents a textual expression in the Common Expression Language
  1933  // (CEL) syntax. CEL is a C-like expression language. The syntax and semantics
  1934  // of CEL are documented at https://github.com/google/cel-spec. Example
  1935  // (Comparison): title: "Summary size limit" description: "Determines if a
  1936  // summary is less than 100 chars" expression: "document.summary.size() < 100"
  1937  // Example (Equality): title: "Requestor is owner" description: "Determines if
  1938  // requestor is the document owner" expression: "document.owner ==
  1939  // request.auth.claims.email" Example (Logic): title: "Public documents"
  1940  // description: "Determine whether the document should be publicly visible"
  1941  // expression: "document.type != 'private' && document.type != 'internal'"
  1942  // Example (Data Manipulation): title: "Notification string" description:
  1943  // "Create a notification string with a timestamp." expression: "'New message
  1944  // received at ' + string(document.create_time)" The exact variables and
  1945  // functions that may be referenced within an expression are determined by the
  1946  // service that evaluates it. See the service documentation for additional
  1947  // information.
  1948  type Expr struct {
  1949  	// Description: Optional. Description of the expression. This is a longer text
  1950  	// which describes the expression, e.g. when hovered over it in a UI.
  1951  	Description string `json:"description,omitempty"`
  1952  	// Expression: Textual representation of an expression in Common Expression
  1953  	// Language syntax.
  1954  	Expression string `json:"expression,omitempty"`
  1955  	// Location: Optional. String indicating the location of the expression for
  1956  	// error reporting, e.g. a file name and a position in the file.
  1957  	Location string `json:"location,omitempty"`
  1958  	// Title: Optional. Title for the expression, i.e. a short string describing
  1959  	// its purpose. This can be used e.g. in UIs which allow to enter the
  1960  	// expression.
  1961  	Title string `json:"title,omitempty"`
  1962  	// ForceSendFields is a list of field names (e.g. "Description") to
  1963  	// unconditionally include in API requests. By default, fields with empty or
  1964  	// default values are omitted from API requests. See
  1965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1966  	// details.
  1967  	ForceSendFields []string `json:"-"`
  1968  	// NullFields is a list of field names (e.g. "Description") to include in API
  1969  	// requests with the JSON null value. By default, fields with empty values are
  1970  	// omitted from API requests. See
  1971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1972  	NullFields []string `json:"-"`
  1973  }
  1974  
  1975  func (s *Expr) MarshalJSON() ([]byte, error) {
  1976  	type NoMethod Expr
  1977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1978  }
  1979  
  1980  // GatewayServiceMesh: Information about the Kubernetes Gateway API service
  1981  // mesh configuration.
  1982  type GatewayServiceMesh struct {
  1983  	// Deployment: Required. Name of the Kubernetes Deployment whose traffic is
  1984  	// managed by the specified HTTPRoute and Service.
  1985  	Deployment string `json:"deployment,omitempty"`
  1986  	// HttpRoute: Required. Name of the Gateway API HTTPRoute.
  1987  	HttpRoute string `json:"httpRoute,omitempty"`
  1988  	// RouteUpdateWaitTime: Optional. The time to wait for route updates to
  1989  	// propagate. The maximum configurable time is 3 hours, in seconds format. If
  1990  	// unspecified, there is no wait time.
  1991  	RouteUpdateWaitTime string `json:"routeUpdateWaitTime,omitempty"`
  1992  	// Service: Required. Name of the Kubernetes Service.
  1993  	Service string `json:"service,omitempty"`
  1994  	// StableCutbackDuration: Optional. The amount of time to migrate traffic back
  1995  	// from the canary Service to the original Service during the stable phase
  1996  	// deployment. If specified, must be between 15s and 3600s. If unspecified,
  1997  	// there is no cutback time.
  1998  	StableCutbackDuration string `json:"stableCutbackDuration,omitempty"`
  1999  	// ForceSendFields is a list of field names (e.g. "Deployment") to
  2000  	// unconditionally include in API requests. By default, fields with empty or
  2001  	// default values are omitted from API requests. See
  2002  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2003  	// details.
  2004  	ForceSendFields []string `json:"-"`
  2005  	// NullFields is a list of field names (e.g. "Deployment") to include in API
  2006  	// requests with the JSON null value. By default, fields with empty values are
  2007  	// omitted from API requests. See
  2008  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2009  	NullFields []string `json:"-"`
  2010  }
  2011  
  2012  func (s *GatewayServiceMesh) MarshalJSON() ([]byte, error) {
  2013  	type NoMethod GatewayServiceMesh
  2014  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2015  }
  2016  
  2017  // GkeCluster: Information specifying a GKE Cluster.
  2018  type GkeCluster struct {
  2019  	// Cluster: Optional. Information specifying a GKE Cluster. Format is
  2020  	// `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
  2021  	Cluster string `json:"cluster,omitempty"`
  2022  	// InternalIp: Optional. If true, `cluster` is accessed using the private IP
  2023  	// address of the control plane endpoint. Otherwise, the default IP address of
  2024  	// the control plane endpoint is used. The default IP address is the private IP
  2025  	// address for clusters with private control-plane endpoints and the public IP
  2026  	// address otherwise. Only specify this option when `cluster` is a private GKE
  2027  	// cluster
  2028  	// (https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
  2029  	InternalIp bool `json:"internalIp,omitempty"`
  2030  	// ForceSendFields is a list of field names (e.g. "Cluster") to unconditionally
  2031  	// include in API requests. By default, fields with empty or default values are
  2032  	// omitted from API requests. See
  2033  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2034  	// details.
  2035  	ForceSendFields []string `json:"-"`
  2036  	// NullFields is a list of field names (e.g. "Cluster") to include in API
  2037  	// requests with the JSON null value. By default, fields with empty values are
  2038  	// omitted from API requests. See
  2039  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2040  	NullFields []string `json:"-"`
  2041  }
  2042  
  2043  func (s *GkeCluster) MarshalJSON() ([]byte, error) {
  2044  	type NoMethod GkeCluster
  2045  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2046  }
  2047  
  2048  // IgnoreJobRequest: The request object used by `IgnoreJob`.
  2049  type IgnoreJobRequest struct {
  2050  	// JobId: Required. The job ID for the Job to ignore.
  2051  	JobId string `json:"jobId,omitempty"`
  2052  	// PhaseId: Required. The phase ID the Job to ignore belongs to.
  2053  	PhaseId string `json:"phaseId,omitempty"`
  2054  	// ForceSendFields is a list of field names (e.g. "JobId") to unconditionally
  2055  	// include in API requests. By default, fields with empty or default values are
  2056  	// omitted from API requests. See
  2057  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2058  	// details.
  2059  	ForceSendFields []string `json:"-"`
  2060  	// NullFields is a list of field names (e.g. "JobId") to include in API
  2061  	// requests with the JSON null value. By default, fields with empty values are
  2062  	// omitted from API requests. See
  2063  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2064  	NullFields []string `json:"-"`
  2065  }
  2066  
  2067  func (s *IgnoreJobRequest) MarshalJSON() ([]byte, error) {
  2068  	type NoMethod IgnoreJobRequest
  2069  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2070  }
  2071  
  2072  // IgnoreJobResponse: The response object from `IgnoreJob`.
  2073  type IgnoreJobResponse struct {
  2074  	// ServerResponse contains the HTTP response code and headers from the server.
  2075  	googleapi.ServerResponse `json:"-"`
  2076  }
  2077  
  2078  // Job: Job represents an operation for a `Rollout`.
  2079  type Job struct {
  2080  	// AdvanceChildRolloutJob: Output only. An advanceChildRollout Job.
  2081  	AdvanceChildRolloutJob *AdvanceChildRolloutJob `json:"advanceChildRolloutJob,omitempty"`
  2082  	// CreateChildRolloutJob: Output only. A createChildRollout Job.
  2083  	CreateChildRolloutJob *CreateChildRolloutJob `json:"createChildRolloutJob,omitempty"`
  2084  	// DeployJob: Output only. A deploy Job.
  2085  	DeployJob *DeployJob `json:"deployJob,omitempty"`
  2086  	// Id: Output only. The ID of the Job.
  2087  	Id string `json:"id,omitempty"`
  2088  	// JobRun: Output only. The name of the `JobRun` responsible for the most
  2089  	// recent invocation of this Job.
  2090  	JobRun string `json:"jobRun,omitempty"`
  2091  	// PostdeployJob: Output only. A postdeploy Job.
  2092  	PostdeployJob *PostdeployJob `json:"postdeployJob,omitempty"`
  2093  	// PredeployJob: Output only. A predeploy Job.
  2094  	PredeployJob *PredeployJob `json:"predeployJob,omitempty"`
  2095  	// SkipMessage: Output only. Additional information on why the Job was skipped,
  2096  	// if available.
  2097  	SkipMessage string `json:"skipMessage,omitempty"`
  2098  	// State: Output only. The current state of the Job.
  2099  	//
  2100  	// Possible values:
  2101  	//   "STATE_UNSPECIFIED" - The Job has an unspecified state.
  2102  	//   "PENDING" - The Job is waiting for an earlier Phase(s) or Job(s) to
  2103  	// complete.
  2104  	//   "DISABLED" - The Job is disabled.
  2105  	//   "IN_PROGRESS" - The Job is in progress.
  2106  	//   "SUCCEEDED" - The Job succeeded.
  2107  	//   "FAILED" - The Job failed.
  2108  	//   "ABORTED" - The Job was aborted.
  2109  	//   "SKIPPED" - The Job was skipped.
  2110  	//   "IGNORED" - The Job was ignored.
  2111  	State string `json:"state,omitempty"`
  2112  	// VerifyJob: Output only. A verify Job.
  2113  	VerifyJob *VerifyJob `json:"verifyJob,omitempty"`
  2114  	// ForceSendFields is a list of field names (e.g. "AdvanceChildRolloutJob") to
  2115  	// unconditionally include in API requests. By default, fields with empty or
  2116  	// default values are omitted from API requests. See
  2117  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2118  	// details.
  2119  	ForceSendFields []string `json:"-"`
  2120  	// NullFields is a list of field names (e.g. "AdvanceChildRolloutJob") to
  2121  	// include in API requests with the JSON null value. By default, fields with
  2122  	// empty values are omitted from API requests. See
  2123  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2124  	NullFields []string `json:"-"`
  2125  }
  2126  
  2127  func (s *Job) MarshalJSON() ([]byte, error) {
  2128  	type NoMethod Job
  2129  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2130  }
  2131  
  2132  // JobRun: A `JobRun` resource in the Cloud Deploy API. A `JobRun` contains
  2133  // information of a single `Rollout` job evaluation.
  2134  type JobRun struct {
  2135  	// AdvanceChildRolloutJobRun: Output only. Information specific to an
  2136  	// advanceChildRollout `JobRun`
  2137  	AdvanceChildRolloutJobRun *AdvanceChildRolloutJobRun `json:"advanceChildRolloutJobRun,omitempty"`
  2138  	// CreateChildRolloutJobRun: Output only. Information specific to a
  2139  	// createChildRollout `JobRun`.
  2140  	CreateChildRolloutJobRun *CreateChildRolloutJobRun `json:"createChildRolloutJobRun,omitempty"`
  2141  	// CreateTime: Output only. Time at which the `JobRun` was created.
  2142  	CreateTime string `json:"createTime,omitempty"`
  2143  	// DeployJobRun: Output only. Information specific to a deploy `JobRun`.
  2144  	DeployJobRun *DeployJobRun `json:"deployJobRun,omitempty"`
  2145  	// EndTime: Output only. Time at which the `JobRun` ended.
  2146  	EndTime string `json:"endTime,omitempty"`
  2147  	// Etag: Output only. This checksum is computed by the server based on the
  2148  	// value of other fields, and may be sent on update and delete requests to
  2149  	// ensure the client has an up-to-date value before proceeding.
  2150  	Etag string `json:"etag,omitempty"`
  2151  	// JobId: Output only. ID of the `Rollout` job this `JobRun` corresponds to.
  2152  	JobId string `json:"jobId,omitempty"`
  2153  	// Name: Optional. Name of the `JobRun`. Format is
  2154  	// `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}
  2155  	// /releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`.
  2156  	Name string `json:"name,omitempty"`
  2157  	// PhaseId: Output only. ID of the `Rollout` phase this `JobRun` belongs in.
  2158  	PhaseId string `json:"phaseId,omitempty"`
  2159  	// PostdeployJobRun: Output only. Information specific to a postdeploy
  2160  	// `JobRun`.
  2161  	PostdeployJobRun *PostdeployJobRun `json:"postdeployJobRun,omitempty"`
  2162  	// PredeployJobRun: Output only. Information specific to a predeploy `JobRun`.
  2163  	PredeployJobRun *PredeployJobRun `json:"predeployJobRun,omitempty"`
  2164  	// StartTime: Output only. Time at which the `JobRun` was started.
  2165  	StartTime string `json:"startTime,omitempty"`
  2166  	// State: Output only. The current state of the `JobRun`.
  2167  	//
  2168  	// Possible values:
  2169  	//   "STATE_UNSPECIFIED" - The `JobRun` has an unspecified state.
  2170  	//   "IN_PROGRESS" - The `JobRun` is in progress.
  2171  	//   "SUCCEEDED" - The `JobRun` has succeeded.
  2172  	//   "FAILED" - The `JobRun` has failed.
  2173  	//   "TERMINATING" - The `JobRun` is terminating.
  2174  	//   "TERMINATED" - The `JobRun` was terminated.
  2175  	State string `json:"state,omitempty"`
  2176  	// Uid: Output only. Unique identifier of the `JobRun`.
  2177  	Uid string `json:"uid,omitempty"`
  2178  	// VerifyJobRun: Output only. Information specific to a verify `JobRun`.
  2179  	VerifyJobRun *VerifyJobRun `json:"verifyJobRun,omitempty"`
  2180  
  2181  	// ServerResponse contains the HTTP response code and headers from the server.
  2182  	googleapi.ServerResponse `json:"-"`
  2183  	// ForceSendFields is a list of field names (e.g. "AdvanceChildRolloutJobRun")
  2184  	// to unconditionally include in API requests. By default, fields with empty or
  2185  	// default values are omitted from API requests. See
  2186  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2187  	// details.
  2188  	ForceSendFields []string `json:"-"`
  2189  	// NullFields is a list of field names (e.g. "AdvanceChildRolloutJobRun") to
  2190  	// include in API requests with the JSON null value. By default, fields with
  2191  	// empty values are omitted from API requests. See
  2192  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2193  	NullFields []string `json:"-"`
  2194  }
  2195  
  2196  func (s *JobRun) MarshalJSON() ([]byte, error) {
  2197  	type NoMethod JobRun
  2198  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2199  }
  2200  
  2201  // JobRunNotificationEvent: Payload proto for
  2202  // "clouddeploy.googleapis.com/jobrun_notification" Platform Log event that
  2203  // describes the failure to send JobRun resource update Pub/Sub notification.
  2204  type JobRunNotificationEvent struct {
  2205  	// JobRun: The name of the `JobRun`.
  2206  	JobRun string `json:"jobRun,omitempty"`
  2207  	// Message: Debug message for when a notification fails to send.
  2208  	Message string `json:"message,omitempty"`
  2209  	// PipelineUid: Unique identifier of the `DeliveryPipeline`.
  2210  	PipelineUid string `json:"pipelineUid,omitempty"`
  2211  	// Release: The name of the `Release`.
  2212  	Release string `json:"release,omitempty"`
  2213  	// ReleaseUid: Unique identifier of the `Release`.
  2214  	ReleaseUid string `json:"releaseUid,omitempty"`
  2215  	// Rollout: The name of the `Rollout`.
  2216  	Rollout string `json:"rollout,omitempty"`
  2217  	// RolloutUid: Unique identifier of the `Rollout`.
  2218  	RolloutUid string `json:"rolloutUid,omitempty"`
  2219  	// TargetId: ID of the `Target`.
  2220  	TargetId string `json:"targetId,omitempty"`
  2221  	// Type: Type of this notification, e.g. for a Pub/Sub failure.
  2222  	//
  2223  	// Possible values:
  2224  	//   "TYPE_UNSPECIFIED" - Type is unspecified.
  2225  	//   "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed to be
  2226  	// sent.
  2227  	//   "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed.
  2228  	//   "TYPE_PROCESS_ABORTED" - A process aborted.
  2229  	//   "TYPE_RESTRICTION_VIOLATED" - Restriction check failed.
  2230  	//   "TYPE_RESOURCE_DELETED" - Resource deleted.
  2231  	//   "TYPE_ROLLOUT_UPDATE" - Rollout updated.
  2232  	//   "TYPE_DEPLOY_POLICY_EVALUATION" - Deploy Policy evaluation.
  2233  	//   "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never used. Use
  2234  	// release_render log type instead.
  2235  	Type string `json:"type,omitempty"`
  2236  	// ForceSendFields is a list of field names (e.g. "JobRun") to unconditionally
  2237  	// include in API requests. By default, fields with empty or default values are
  2238  	// omitted from API requests. See
  2239  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2240  	// details.
  2241  	ForceSendFields []string `json:"-"`
  2242  	// NullFields is a list of field names (e.g. "JobRun") to include in API
  2243  	// requests with the JSON null value. By default, fields with empty values are
  2244  	// omitted from API requests. See
  2245  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2246  	NullFields []string `json:"-"`
  2247  }
  2248  
  2249  func (s *JobRunNotificationEvent) MarshalJSON() ([]byte, error) {
  2250  	type NoMethod JobRunNotificationEvent
  2251  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2252  }
  2253  
  2254  // KubernetesConfig: KubernetesConfig contains the Kubernetes runtime
  2255  // configuration.
  2256  type KubernetesConfig struct {
  2257  	// GatewayServiceMesh: Kubernetes Gateway API service mesh configuration.
  2258  	GatewayServiceMesh *GatewayServiceMesh `json:"gatewayServiceMesh,omitempty"`
  2259  	// ServiceNetworking: Kubernetes Service networking configuration.
  2260  	ServiceNetworking *ServiceNetworking `json:"serviceNetworking,omitempty"`
  2261  	// ForceSendFields is a list of field names (e.g. "GatewayServiceMesh") to
  2262  	// unconditionally include in API requests. By default, fields with empty or
  2263  	// default values are omitted from API requests. See
  2264  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2265  	// details.
  2266  	ForceSendFields []string `json:"-"`
  2267  	// NullFields is a list of field names (e.g. "GatewayServiceMesh") to include
  2268  	// in API requests with the JSON null value. By default, fields with empty
  2269  	// values are omitted from API requests. See
  2270  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2271  	NullFields []string `json:"-"`
  2272  }
  2273  
  2274  func (s *KubernetesConfig) MarshalJSON() ([]byte, error) {
  2275  	type NoMethod KubernetesConfig
  2276  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2277  }
  2278  
  2279  // ListAutomationRunsResponse: The response object from `ListAutomationRuns`.
  2280  type ListAutomationRunsResponse struct {
  2281  	// AutomationRuns: The `AutomationRuns` objects.
  2282  	AutomationRuns []*AutomationRun `json:"automationRuns,omitempty"`
  2283  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  2284  	// next page. If this field is omitted, there are no subsequent pages.
  2285  	NextPageToken string `json:"nextPageToken,omitempty"`
  2286  	// Unreachable: Locations that could not be reached.
  2287  	Unreachable []string `json:"unreachable,omitempty"`
  2288  
  2289  	// ServerResponse contains the HTTP response code and headers from the server.
  2290  	googleapi.ServerResponse `json:"-"`
  2291  	// ForceSendFields is a list of field names (e.g. "AutomationRuns") to
  2292  	// unconditionally include in API requests. By default, fields with empty or
  2293  	// default values are omitted from API requests. See
  2294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2295  	// details.
  2296  	ForceSendFields []string `json:"-"`
  2297  	// NullFields is a list of field names (e.g. "AutomationRuns") to include in
  2298  	// API requests with the JSON null value. By default, fields with empty values
  2299  	// are omitted from API requests. See
  2300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2301  	NullFields []string `json:"-"`
  2302  }
  2303  
  2304  func (s *ListAutomationRunsResponse) MarshalJSON() ([]byte, error) {
  2305  	type NoMethod ListAutomationRunsResponse
  2306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2307  }
  2308  
  2309  // ListAutomationsResponse: The response object from `ListAutomations`.
  2310  type ListAutomationsResponse struct {
  2311  	// Automations: The `Automation` objects.
  2312  	Automations []*Automation `json:"automations,omitempty"`
  2313  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  2314  	// next page. If this field is omitted, there are no subsequent pages.
  2315  	NextPageToken string `json:"nextPageToken,omitempty"`
  2316  	// Unreachable: Locations that could not be reached.
  2317  	Unreachable []string `json:"unreachable,omitempty"`
  2318  
  2319  	// ServerResponse contains the HTTP response code and headers from the server.
  2320  	googleapi.ServerResponse `json:"-"`
  2321  	// ForceSendFields is a list of field names (e.g. "Automations") to
  2322  	// unconditionally include in API requests. By default, fields with empty or
  2323  	// default values are omitted from API requests. See
  2324  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2325  	// details.
  2326  	ForceSendFields []string `json:"-"`
  2327  	// NullFields is a list of field names (e.g. "Automations") to include in API
  2328  	// requests with the JSON null value. By default, fields with empty values are
  2329  	// omitted from API requests. See
  2330  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2331  	NullFields []string `json:"-"`
  2332  }
  2333  
  2334  func (s *ListAutomationsResponse) MarshalJSON() ([]byte, error) {
  2335  	type NoMethod ListAutomationsResponse
  2336  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2337  }
  2338  
  2339  // ListCustomTargetTypesResponse: The response object from
  2340  // `ListCustomTargetTypes.`
  2341  type ListCustomTargetTypesResponse struct {
  2342  	// CustomTargetTypes: The `CustomTargetType` objects.
  2343  	CustomTargetTypes []*CustomTargetType `json:"customTargetTypes,omitempty"`
  2344  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  2345  	// next page. If this field is omitted, there are no subsequent pages.
  2346  	NextPageToken string `json:"nextPageToken,omitempty"`
  2347  	// Unreachable: Locations that could not be reached.
  2348  	Unreachable []string `json:"unreachable,omitempty"`
  2349  
  2350  	// ServerResponse contains the HTTP response code and headers from the server.
  2351  	googleapi.ServerResponse `json:"-"`
  2352  	// ForceSendFields is a list of field names (e.g. "CustomTargetTypes") to
  2353  	// unconditionally include in API requests. By default, fields with empty or
  2354  	// default values are omitted from API requests. See
  2355  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2356  	// details.
  2357  	ForceSendFields []string `json:"-"`
  2358  	// NullFields is a list of field names (e.g. "CustomTargetTypes") to include in
  2359  	// API requests with the JSON null value. By default, fields with empty values
  2360  	// are omitted from API requests. See
  2361  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2362  	NullFields []string `json:"-"`
  2363  }
  2364  
  2365  func (s *ListCustomTargetTypesResponse) MarshalJSON() ([]byte, error) {
  2366  	type NoMethod ListCustomTargetTypesResponse
  2367  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2368  }
  2369  
  2370  // ListDeliveryPipelinesResponse: The response object from
  2371  // `ListDeliveryPipelines`.
  2372  type ListDeliveryPipelinesResponse struct {
  2373  	// DeliveryPipelines: The `DeliveryPipeline` objects.
  2374  	DeliveryPipelines []*DeliveryPipeline `json:"deliveryPipelines,omitempty"`
  2375  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  2376  	// next page. If this field is omitted, there are no subsequent pages.
  2377  	NextPageToken string `json:"nextPageToken,omitempty"`
  2378  	// Unreachable: Locations that could not be reached.
  2379  	Unreachable []string `json:"unreachable,omitempty"`
  2380  
  2381  	// ServerResponse contains the HTTP response code and headers from the server.
  2382  	googleapi.ServerResponse `json:"-"`
  2383  	// ForceSendFields is a list of field names (e.g. "DeliveryPipelines") to
  2384  	// unconditionally include in API requests. By default, fields with empty or
  2385  	// default values are omitted from API requests. See
  2386  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2387  	// details.
  2388  	ForceSendFields []string `json:"-"`
  2389  	// NullFields is a list of field names (e.g. "DeliveryPipelines") to include in
  2390  	// API requests with the JSON null value. By default, fields with empty values
  2391  	// are omitted from API requests. See
  2392  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2393  	NullFields []string `json:"-"`
  2394  }
  2395  
  2396  func (s *ListDeliveryPipelinesResponse) MarshalJSON() ([]byte, error) {
  2397  	type NoMethod ListDeliveryPipelinesResponse
  2398  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2399  }
  2400  
  2401  // ListJobRunsResponse: ListJobRunsResponse is the response object returned by
  2402  // `ListJobRuns`.
  2403  type ListJobRunsResponse struct {
  2404  	// JobRuns: The `JobRun` objects.
  2405  	JobRuns []*JobRun `json:"jobRuns,omitempty"`
  2406  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  2407  	// next page. If this field is omitted, there are no subsequent pages.
  2408  	NextPageToken string `json:"nextPageToken,omitempty"`
  2409  	// Unreachable: Locations that could not be reached
  2410  	Unreachable []string `json:"unreachable,omitempty"`
  2411  
  2412  	// ServerResponse contains the HTTP response code and headers from the server.
  2413  	googleapi.ServerResponse `json:"-"`
  2414  	// ForceSendFields is a list of field names (e.g. "JobRuns") to unconditionally
  2415  	// include in API requests. By default, fields with empty or default values are
  2416  	// omitted from API requests. See
  2417  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2418  	// details.
  2419  	ForceSendFields []string `json:"-"`
  2420  	// NullFields is a list of field names (e.g. "JobRuns") to include in API
  2421  	// requests with the JSON null value. By default, fields with empty values are
  2422  	// omitted from API requests. See
  2423  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2424  	NullFields []string `json:"-"`
  2425  }
  2426  
  2427  func (s *ListJobRunsResponse) MarshalJSON() ([]byte, error) {
  2428  	type NoMethod ListJobRunsResponse
  2429  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2430  }
  2431  
  2432  // ListLocationsResponse: The response message for Locations.ListLocations.
  2433  type ListLocationsResponse struct {
  2434  	// Locations: A list of locations that matches the specified filter in the
  2435  	// request.
  2436  	Locations []*Location `json:"locations,omitempty"`
  2437  	// NextPageToken: The standard List next-page token.
  2438  	NextPageToken string `json:"nextPageToken,omitempty"`
  2439  
  2440  	// ServerResponse contains the HTTP response code and headers from the server.
  2441  	googleapi.ServerResponse `json:"-"`
  2442  	// ForceSendFields is a list of field names (e.g. "Locations") to
  2443  	// unconditionally include in API requests. By default, fields with empty or
  2444  	// default values are omitted from API requests. See
  2445  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2446  	// details.
  2447  	ForceSendFields []string `json:"-"`
  2448  	// NullFields is a list of field names (e.g. "Locations") to include in API
  2449  	// requests with the JSON null value. By default, fields with empty values are
  2450  	// omitted from API requests. See
  2451  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2452  	NullFields []string `json:"-"`
  2453  }
  2454  
  2455  func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
  2456  	type NoMethod ListLocationsResponse
  2457  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2458  }
  2459  
  2460  // ListOperationsResponse: The response message for Operations.ListOperations.
  2461  type ListOperationsResponse struct {
  2462  	// NextPageToken: The standard List next-page token.
  2463  	NextPageToken string `json:"nextPageToken,omitempty"`
  2464  	// Operations: A list of operations that matches the specified filter in the
  2465  	// request.
  2466  	Operations []*Operation `json:"operations,omitempty"`
  2467  
  2468  	// ServerResponse contains the HTTP response code and headers from the server.
  2469  	googleapi.ServerResponse `json:"-"`
  2470  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2471  	// unconditionally include in API requests. By default, fields with empty or
  2472  	// default values are omitted from API requests. See
  2473  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2474  	// details.
  2475  	ForceSendFields []string `json:"-"`
  2476  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2477  	// requests with the JSON null value. By default, fields with empty values are
  2478  	// omitted from API requests. See
  2479  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2480  	NullFields []string `json:"-"`
  2481  }
  2482  
  2483  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
  2484  	type NoMethod ListOperationsResponse
  2485  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2486  }
  2487  
  2488  // ListReleasesResponse: The response object from `ListReleases`.
  2489  type ListReleasesResponse struct {
  2490  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  2491  	// next page. If this field is omitted, there are no subsequent pages.
  2492  	NextPageToken string `json:"nextPageToken,omitempty"`
  2493  	// Releases: The `Release` objects.
  2494  	Releases []*Release `json:"releases,omitempty"`
  2495  	// Unreachable: Locations that could not be reached.
  2496  	Unreachable []string `json:"unreachable,omitempty"`
  2497  
  2498  	// ServerResponse contains the HTTP response code and headers from the server.
  2499  	googleapi.ServerResponse `json:"-"`
  2500  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2501  	// unconditionally include in API requests. By default, fields with empty or
  2502  	// default values are omitted from API requests. See
  2503  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2504  	// details.
  2505  	ForceSendFields []string `json:"-"`
  2506  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2507  	// requests with the JSON null value. By default, fields with empty values are
  2508  	// omitted from API requests. See
  2509  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2510  	NullFields []string `json:"-"`
  2511  }
  2512  
  2513  func (s *ListReleasesResponse) MarshalJSON() ([]byte, error) {
  2514  	type NoMethod ListReleasesResponse
  2515  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2516  }
  2517  
  2518  // ListRolloutsResponse: ListRolloutsResponse is the response object reutrned
  2519  // by `ListRollouts`.
  2520  type ListRolloutsResponse struct {
  2521  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  2522  	// next page. If this field is omitted, there are no subsequent pages.
  2523  	NextPageToken string `json:"nextPageToken,omitempty"`
  2524  	// Rollouts: The `Rollout` objects.
  2525  	Rollouts []*Rollout `json:"rollouts,omitempty"`
  2526  	// Unreachable: Locations that could not be reached.
  2527  	Unreachable []string `json:"unreachable,omitempty"`
  2528  
  2529  	// ServerResponse contains the HTTP response code and headers from the server.
  2530  	googleapi.ServerResponse `json:"-"`
  2531  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2532  	// unconditionally include in API requests. By default, fields with empty or
  2533  	// default values are omitted from API requests. See
  2534  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2535  	// details.
  2536  	ForceSendFields []string `json:"-"`
  2537  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2538  	// requests with the JSON null value. By default, fields with empty values are
  2539  	// omitted from API requests. See
  2540  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2541  	NullFields []string `json:"-"`
  2542  }
  2543  
  2544  func (s *ListRolloutsResponse) MarshalJSON() ([]byte, error) {
  2545  	type NoMethod ListRolloutsResponse
  2546  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2547  }
  2548  
  2549  // ListTargetsResponse: The response object from `ListTargets`.
  2550  type ListTargetsResponse struct {
  2551  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  2552  	// next page. If this field is omitted, there are no subsequent pages.
  2553  	NextPageToken string `json:"nextPageToken,omitempty"`
  2554  	// Targets: The `Target` objects.
  2555  	Targets []*Target `json:"targets,omitempty"`
  2556  	// Unreachable: Locations that could not be reached.
  2557  	Unreachable []string `json:"unreachable,omitempty"`
  2558  
  2559  	// ServerResponse contains the HTTP response code and headers from the server.
  2560  	googleapi.ServerResponse `json:"-"`
  2561  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2562  	// unconditionally include in API requests. By default, fields with empty or
  2563  	// default values are omitted from API requests. See
  2564  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2565  	// details.
  2566  	ForceSendFields []string `json:"-"`
  2567  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2568  	// requests with the JSON null value. By default, fields with empty values are
  2569  	// omitted from API requests. See
  2570  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2571  	NullFields []string `json:"-"`
  2572  }
  2573  
  2574  func (s *ListTargetsResponse) MarshalJSON() ([]byte, error) {
  2575  	type NoMethod ListTargetsResponse
  2576  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2577  }
  2578  
  2579  // Location: A resource that represents a Google Cloud location.
  2580  type Location struct {
  2581  	// DisplayName: The friendly name for this location, typically a nearby city
  2582  	// name. For example, "Tokyo".
  2583  	DisplayName string `json:"displayName,omitempty"`
  2584  	// Labels: Cross-service attributes for the location. For example
  2585  	// {"cloud.googleapis.com/region": "us-east1"}
  2586  	Labels map[string]string `json:"labels,omitempty"`
  2587  	// LocationId: The canonical id for this location. For example: "us-east1".
  2588  	LocationId string `json:"locationId,omitempty"`
  2589  	// Metadata: Service-specific metadata. For example the available capacity at
  2590  	// the given location.
  2591  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  2592  	// Name: Resource name for the location, which may vary between
  2593  	// implementations. For example:
  2594  	// "projects/example-project/locations/us-east1"
  2595  	Name string `json:"name,omitempty"`
  2596  
  2597  	// ServerResponse contains the HTTP response code and headers from the server.
  2598  	googleapi.ServerResponse `json:"-"`
  2599  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  2600  	// unconditionally include in API requests. By default, fields with empty or
  2601  	// default values are omitted from API requests. See
  2602  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2603  	// details.
  2604  	ForceSendFields []string `json:"-"`
  2605  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  2606  	// requests with the JSON null value. By default, fields with empty values are
  2607  	// omitted from API requests. See
  2608  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2609  	NullFields []string `json:"-"`
  2610  }
  2611  
  2612  func (s *Location) MarshalJSON() ([]byte, error) {
  2613  	type NoMethod Location
  2614  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2615  }
  2616  
  2617  // Metadata: Metadata includes information associated with a `Rollout`.
  2618  type Metadata struct {
  2619  	// Automation: Output only. AutomationRolloutMetadata contains the information
  2620  	// about the interactions between Automation service and this rollout.
  2621  	Automation *AutomationRolloutMetadata `json:"automation,omitempty"`
  2622  	// CloudRun: Output only. The name of the Cloud Run Service that is associated
  2623  	// with a `Rollout`.
  2624  	CloudRun *CloudRunMetadata `json:"cloudRun,omitempty"`
  2625  	// Custom: Output only. Custom metadata provided by user-defined `Rollout`
  2626  	// operations.
  2627  	Custom *CustomMetadata `json:"custom,omitempty"`
  2628  	// ForceSendFields is a list of field names (e.g. "Automation") 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. "Automation") 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 *Metadata) MarshalJSON() ([]byte, error) {
  2642  	type NoMethod Metadata
  2643  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2644  }
  2645  
  2646  // MultiTarget: Information specifying a multiTarget.
  2647  type MultiTarget struct {
  2648  	// TargetIds: Required. The target_ids of this multiTarget.
  2649  	TargetIds []string `json:"targetIds,omitempty"`
  2650  	// ForceSendFields is a list of field names (e.g. "TargetIds") to
  2651  	// unconditionally include in API requests. By default, fields with empty or
  2652  	// default values are omitted from API requests. See
  2653  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2654  	// details.
  2655  	ForceSendFields []string `json:"-"`
  2656  	// NullFields is a list of field names (e.g. "TargetIds") to include in API
  2657  	// requests with the JSON null value. By default, fields with empty values are
  2658  	// omitted from API requests. See
  2659  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2660  	NullFields []string `json:"-"`
  2661  }
  2662  
  2663  func (s *MultiTarget) MarshalJSON() ([]byte, error) {
  2664  	type NoMethod MultiTarget
  2665  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2666  }
  2667  
  2668  // Operation: This resource represents a long-running operation that is the
  2669  // result of a network API call.
  2670  type Operation struct {
  2671  	// Done: If the value is `false`, it means the operation is still in progress.
  2672  	// If `true`, the operation is completed, and either `error` or `response` is
  2673  	// available.
  2674  	Done bool `json:"done,omitempty"`
  2675  	// Error: The error result of the operation in case of failure or cancellation.
  2676  	Error *Status `json:"error,omitempty"`
  2677  	// Metadata: Service-specific metadata associated with the operation. It
  2678  	// typically contains progress information and common metadata such as create
  2679  	// time. Some services might not provide such metadata. Any method that returns
  2680  	// a long-running operation should document the metadata type, if any.
  2681  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  2682  	// Name: The server-assigned name, which is only unique within the same service
  2683  	// that originally returns it. If you use the default HTTP mapping, the `name`
  2684  	// should be a resource name ending with `operations/{unique_id}`.
  2685  	Name string `json:"name,omitempty"`
  2686  	// Response: The normal, successful response of the operation. If the original
  2687  	// method returns no data on success, such as `Delete`, the response is
  2688  	// `google.protobuf.Empty`. If the original method is standard
  2689  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  2690  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  2691  	// original method name. For example, if the original method name is
  2692  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  2693  	Response googleapi.RawMessage `json:"response,omitempty"`
  2694  
  2695  	// ServerResponse contains the HTTP response code and headers from the server.
  2696  	googleapi.ServerResponse `json:"-"`
  2697  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  2698  	// include in API requests. By default, fields with empty or default values are
  2699  	// omitted from API requests. See
  2700  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2701  	// details.
  2702  	ForceSendFields []string `json:"-"`
  2703  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  2704  	// with the JSON null value. By default, fields with empty values are omitted
  2705  	// from API requests. See
  2706  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2707  	NullFields []string `json:"-"`
  2708  }
  2709  
  2710  func (s *Operation) MarshalJSON() ([]byte, error) {
  2711  	type NoMethod Operation
  2712  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2713  }
  2714  
  2715  // OperationMetadata: Represents the metadata of the long-running operation.
  2716  type OperationMetadata struct {
  2717  	// ApiVersion: Output only. API version used to start the operation.
  2718  	ApiVersion string `json:"apiVersion,omitempty"`
  2719  	// CreateTime: Output only. The time the operation was created.
  2720  	CreateTime string `json:"createTime,omitempty"`
  2721  	// EndTime: Output only. The time the operation finished running.
  2722  	EndTime string `json:"endTime,omitempty"`
  2723  	// RequestedCancellation: Output only. Identifies whether the user has
  2724  	// requested cancellation of the operation. Operations that have successfully
  2725  	// been cancelled have Operation.error value with a google.rpc.Status.code of
  2726  	// 1, corresponding to `Code.CANCELLED`.
  2727  	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
  2728  	// StatusMessage: Output only. Human-readable status of the operation, if any.
  2729  	StatusMessage string `json:"statusMessage,omitempty"`
  2730  	// Target: Output only. Server-defined resource path for the target of the
  2731  	// operation.
  2732  	Target string `json:"target,omitempty"`
  2733  	// Verb: Output only. Name of the verb executed by the operation.
  2734  	Verb string `json:"verb,omitempty"`
  2735  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  2736  	// unconditionally include in API requests. By default, fields with empty or
  2737  	// default values are omitted from API requests. See
  2738  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2739  	// details.
  2740  	ForceSendFields []string `json:"-"`
  2741  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  2742  	// requests with the JSON null value. By default, fields with empty values are
  2743  	// omitted from API requests. See
  2744  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2745  	NullFields []string `json:"-"`
  2746  }
  2747  
  2748  func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
  2749  	type NoMethod OperationMetadata
  2750  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2751  }
  2752  
  2753  // Phase: Phase represents a collection of jobs that are logically grouped
  2754  // together for a `Rollout`.
  2755  type Phase struct {
  2756  	// ChildRolloutJobs: Output only. ChildRollout job composition.
  2757  	ChildRolloutJobs *ChildRolloutJobs `json:"childRolloutJobs,omitempty"`
  2758  	// DeploymentJobs: Output only. Deployment job composition.
  2759  	DeploymentJobs *DeploymentJobs `json:"deploymentJobs,omitempty"`
  2760  	// Id: Output only. The ID of the Phase.
  2761  	Id string `json:"id,omitempty"`
  2762  	// SkipMessage: Output only. Additional information on why the Phase was
  2763  	// skipped, if available.
  2764  	SkipMessage string `json:"skipMessage,omitempty"`
  2765  	// State: Output only. Current state of the Phase.
  2766  	//
  2767  	// Possible values:
  2768  	//   "STATE_UNSPECIFIED" - The Phase has an unspecified state.
  2769  	//   "PENDING" - The Phase is waiting for an earlier Phase(s) to complete.
  2770  	//   "IN_PROGRESS" - The Phase is in progress.
  2771  	//   "SUCCEEDED" - The Phase has succeeded.
  2772  	//   "FAILED" - The Phase has failed.
  2773  	//   "ABORTED" - The Phase was aborted.
  2774  	//   "SKIPPED" - The Phase was skipped.
  2775  	State string `json:"state,omitempty"`
  2776  	// ForceSendFields is a list of field names (e.g. "ChildRolloutJobs") to
  2777  	// unconditionally include in API requests. By default, fields with empty or
  2778  	// default values are omitted from API requests. See
  2779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2780  	// details.
  2781  	ForceSendFields []string `json:"-"`
  2782  	// NullFields is a list of field names (e.g. "ChildRolloutJobs") to include in
  2783  	// API requests with the JSON null value. By default, fields with empty values
  2784  	// are omitted from API requests. See
  2785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2786  	NullFields []string `json:"-"`
  2787  }
  2788  
  2789  func (s *Phase) MarshalJSON() ([]byte, error) {
  2790  	type NoMethod Phase
  2791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2792  }
  2793  
  2794  // PhaseArtifact: Contains the paths to the artifacts, relative to the URI, for
  2795  // a phase.
  2796  type PhaseArtifact struct {
  2797  	// JobManifestsPath: Output only. File path of the directory of rendered job
  2798  	// manifests relative to the URI. This is only set if it is applicable.
  2799  	JobManifestsPath string `json:"jobManifestsPath,omitempty"`
  2800  	// ManifestPath: Output only. File path of the rendered manifest relative to
  2801  	// the URI.
  2802  	ManifestPath string `json:"manifestPath,omitempty"`
  2803  	// SkaffoldConfigPath: Output only. File path of the resolved Skaffold
  2804  	// configuration relative to the URI.
  2805  	SkaffoldConfigPath string `json:"skaffoldConfigPath,omitempty"`
  2806  	// ForceSendFields is a list of field names (e.g. "JobManifestsPath") to
  2807  	// unconditionally include in API requests. By default, fields with empty or
  2808  	// default values are omitted from API requests. See
  2809  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2810  	// details.
  2811  	ForceSendFields []string `json:"-"`
  2812  	// NullFields is a list of field names (e.g. "JobManifestsPath") to include in
  2813  	// API requests with the JSON null value. By default, fields with empty values
  2814  	// are omitted from API requests. See
  2815  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2816  	NullFields []string `json:"-"`
  2817  }
  2818  
  2819  func (s *PhaseArtifact) MarshalJSON() ([]byte, error) {
  2820  	type NoMethod PhaseArtifact
  2821  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2822  }
  2823  
  2824  // PhaseConfig: PhaseConfig represents the configuration for a phase in the
  2825  // custom canary deployment.
  2826  type PhaseConfig struct {
  2827  	// Percentage: Required. Percentage deployment for the phase.
  2828  	Percentage int64 `json:"percentage,omitempty"`
  2829  	// PhaseId: Required. The ID to assign to the `Rollout` phase. This value must
  2830  	// consist of lower-case letters, numbers, and hyphens, start with a letter and
  2831  	// end with a letter or a number, and have a max length of 63 characters. In
  2832  	// other words, it must match the following regex: `^a-z
  2833  	// ([a-z0-9-]{0,61}[a-z0-9])?$`.
  2834  	PhaseId string `json:"phaseId,omitempty"`
  2835  	// Postdeploy: Optional. Configuration for the postdeploy job of this phase. If
  2836  	// this is not configured, there will be no postdeploy job for this phase.
  2837  	Postdeploy *Postdeploy `json:"postdeploy,omitempty"`
  2838  	// Predeploy: Optional. Configuration for the predeploy job of this phase. If
  2839  	// this is not configured, there will be no predeploy job for this phase.
  2840  	Predeploy *Predeploy `json:"predeploy,omitempty"`
  2841  	// Profiles: Skaffold profiles to use when rendering the manifest for this
  2842  	// phase. These are in addition to the profiles list specified in the
  2843  	// `DeliveryPipeline` stage.
  2844  	Profiles []string `json:"profiles,omitempty"`
  2845  	// Verify: Whether to run verify tests after the deployment.
  2846  	Verify bool `json:"verify,omitempty"`
  2847  	// ForceSendFields is a list of field names (e.g. "Percentage") to
  2848  	// unconditionally include in API requests. By default, fields with empty or
  2849  	// default values are omitted from API requests. See
  2850  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2851  	// details.
  2852  	ForceSendFields []string `json:"-"`
  2853  	// NullFields is a list of field names (e.g. "Percentage") to include in API
  2854  	// requests with the JSON null value. By default, fields with empty values are
  2855  	// omitted from API requests. See
  2856  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2857  	NullFields []string `json:"-"`
  2858  }
  2859  
  2860  func (s *PhaseConfig) MarshalJSON() ([]byte, error) {
  2861  	type NoMethod PhaseConfig
  2862  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2863  }
  2864  
  2865  // PipelineCondition: PipelineCondition contains all conditions relevant to a
  2866  // Delivery Pipeline.
  2867  type PipelineCondition struct {
  2868  	// PipelineReadyCondition: Details around the Pipeline's overall status.
  2869  	PipelineReadyCondition *PipelineReadyCondition `json:"pipelineReadyCondition,omitempty"`
  2870  	// TargetsPresentCondition: Details around targets enumerated in the pipeline.
  2871  	TargetsPresentCondition *TargetsPresentCondition `json:"targetsPresentCondition,omitempty"`
  2872  	// TargetsTypeCondition: Details on the whether the targets enumerated in the
  2873  	// pipeline are of the same type.
  2874  	TargetsTypeCondition *TargetsTypeCondition `json:"targetsTypeCondition,omitempty"`
  2875  	// ForceSendFields is a list of field names (e.g. "PipelineReadyCondition") to
  2876  	// unconditionally include in API requests. By default, fields with empty or
  2877  	// default values are omitted from API requests. See
  2878  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2879  	// details.
  2880  	ForceSendFields []string `json:"-"`
  2881  	// NullFields is a list of field names (e.g. "PipelineReadyCondition") to
  2882  	// include in API requests with the JSON null value. By default, fields with
  2883  	// empty values are omitted from API requests. See
  2884  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2885  	NullFields []string `json:"-"`
  2886  }
  2887  
  2888  func (s *PipelineCondition) MarshalJSON() ([]byte, error) {
  2889  	type NoMethod PipelineCondition
  2890  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2891  }
  2892  
  2893  // PipelineReadyCondition: PipelineReadyCondition contains information around
  2894  // the status of the Pipeline.
  2895  type PipelineReadyCondition struct {
  2896  	// Status: True if the Pipeline is in a valid state. Otherwise at least one
  2897  	// condition in `PipelineCondition` is in an invalid state. Iterate over those
  2898  	// conditions and see which condition(s) has status = false to find out what is
  2899  	// wrong with the Pipeline.
  2900  	Status bool `json:"status,omitempty"`
  2901  	// UpdateTime: Last time the condition was updated.
  2902  	UpdateTime string `json:"updateTime,omitempty"`
  2903  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  2904  	// include in API requests. By default, fields with empty or default values are
  2905  	// omitted from API requests. See
  2906  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2907  	// details.
  2908  	ForceSendFields []string `json:"-"`
  2909  	// NullFields is a list of field names (e.g. "Status") to include in API
  2910  	// requests with the JSON null value. By default, fields with empty values are
  2911  	// omitted from API requests. See
  2912  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2913  	NullFields []string `json:"-"`
  2914  }
  2915  
  2916  func (s *PipelineReadyCondition) MarshalJSON() ([]byte, error) {
  2917  	type NoMethod PipelineReadyCondition
  2918  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2919  }
  2920  
  2921  // Policy: An Identity and Access Management (IAM) policy, which specifies
  2922  // access controls for Google Cloud resources. A `Policy` is a collection of
  2923  // `bindings`. A `binding` binds one or more `members`, or principals, to a
  2924  // single `role`. Principals can be user accounts, service accounts, Google
  2925  // groups, and domains (such as G Suite). A `role` is a named list of
  2926  // permissions; each `role` can be an IAM predefined role or a user-created
  2927  // custom role. For some types of Google Cloud resources, a `binding` can also
  2928  // specify a `condition`, which is a logical expression that allows access to a
  2929  // resource only if the expression evaluates to `true`. A condition can add
  2930  // constraints based on attributes of the request, the resource, or both. To
  2931  // learn which resources support conditions in their IAM policies, see the IAM
  2932  // documentation
  2933  // (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON
  2934  // example:** ``` { "bindings": [ { "role":
  2935  // "roles/resourcemanager.organizationAdmin", "members": [
  2936  // "user:mike@example.com", "group:admins@example.com", "domain:google.com",
  2937  // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":
  2938  // "roles/resourcemanager.organizationViewer", "members": [
  2939  // "user:eve@example.com" ], "condition": { "title": "expirable access",
  2940  // "description": "Does not grant access after Sep 2020", "expression":
  2941  // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":
  2942  // "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: -
  2943  // members: - user:mike@example.com - group:admins@example.com -
  2944  // domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
  2945  // role: roles/resourcemanager.organizationAdmin - members: -
  2946  // user:eve@example.com role: roles/resourcemanager.organizationViewer
  2947  // condition: title: expirable access description: Does not grant access after
  2948  // Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
  2949  // etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features,
  2950  // see the IAM documentation (https://cloud.google.com/iam/docs/).
  2951  type Policy struct {
  2952  	// AuditConfigs: Specifies cloud audit logging configuration for this policy.
  2953  	AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
  2954  	// Bindings: Associates a list of `members`, or principals, with a `role`.
  2955  	// Optionally, may specify a `condition` that determines how and when the
  2956  	// `bindings` are applied. Each of the `bindings` must contain at least one
  2957  	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
  2958  	// up to 250 of these principals can be Google groups. Each occurrence of a
  2959  	// principal counts towards these limits. For example, if the `bindings` grant
  2960  	// 50 different roles to `user:alice@example.com`, and not to any other
  2961  	// principal, then you can add another 1,450 principals to the `bindings` in
  2962  	// the `Policy`.
  2963  	Bindings []*Binding `json:"bindings,omitempty"`
  2964  	// Etag: `etag` is used for optimistic concurrency control as a way to help
  2965  	// prevent simultaneous updates of a policy from overwriting each other. It is
  2966  	// strongly suggested that systems make use of the `etag` in the
  2967  	// read-modify-write cycle to perform policy updates in order to avoid race
  2968  	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
  2969  	// systems are expected to put that etag in the request to `setIamPolicy` to
  2970  	// ensure that their change will be applied to the same version of the policy.
  2971  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  2972  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  2973  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  2974  	// the conditions in the version `3` policy are lost.
  2975  	Etag string `json:"etag,omitempty"`
  2976  	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
  2977  	// `3`. Requests that specify an invalid value are rejected. Any operation that
  2978  	// affects conditional role bindings must specify version `3`. This requirement
  2979  	// applies to the following operations: * Getting a policy that includes a
  2980  	// conditional role binding * Adding a conditional role binding to a policy *
  2981  	// Changing a conditional role binding in a policy * Removing any role binding,
  2982  	// with or without a condition, from a policy that includes conditions
  2983  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  2984  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  2985  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  2986  	// the conditions in the version `3` policy are lost. If a policy does not
  2987  	// include any conditions, operations on that policy may specify any valid
  2988  	// version or leave the field unset. To learn which resources support
  2989  	// conditions in their IAM policies, see the IAM documentation
  2990  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  2991  	Version int64 `json:"version,omitempty"`
  2992  
  2993  	// ServerResponse contains the HTTP response code and headers from the server.
  2994  	googleapi.ServerResponse `json:"-"`
  2995  	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
  2996  	// unconditionally include in API requests. By default, fields with empty or
  2997  	// default values are omitted from API requests. See
  2998  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2999  	// details.
  3000  	ForceSendFields []string `json:"-"`
  3001  	// NullFields is a list of field names (e.g. "AuditConfigs") to include in API
  3002  	// requests with the JSON null value. By default, fields with empty values are
  3003  	// omitted from API requests. See
  3004  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3005  	NullFields []string `json:"-"`
  3006  }
  3007  
  3008  func (s *Policy) MarshalJSON() ([]byte, error) {
  3009  	type NoMethod Policy
  3010  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3011  }
  3012  
  3013  // Postdeploy: Postdeploy contains the postdeploy job configuration
  3014  // information.
  3015  type Postdeploy struct {
  3016  	// Actions: Optional. A sequence of Skaffold custom actions to invoke during
  3017  	// execution of the postdeploy job.
  3018  	Actions []string `json:"actions,omitempty"`
  3019  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  3020  	// include in API requests. By default, fields with empty or default values are
  3021  	// omitted from API requests. See
  3022  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3023  	// details.
  3024  	ForceSendFields []string `json:"-"`
  3025  	// NullFields is a list of field names (e.g. "Actions") to include in API
  3026  	// requests with the JSON null value. By default, fields with empty values are
  3027  	// omitted from API requests. See
  3028  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3029  	NullFields []string `json:"-"`
  3030  }
  3031  
  3032  func (s *Postdeploy) MarshalJSON() ([]byte, error) {
  3033  	type NoMethod Postdeploy
  3034  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3035  }
  3036  
  3037  // PostdeployJob: A postdeploy Job.
  3038  type PostdeployJob struct {
  3039  	// Actions: Output only. The custom actions that the postdeploy Job executes.
  3040  	Actions []string `json:"actions,omitempty"`
  3041  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  3042  	// include in API requests. By default, fields with empty or default values are
  3043  	// omitted from API requests. See
  3044  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3045  	// details.
  3046  	ForceSendFields []string `json:"-"`
  3047  	// NullFields is a list of field names (e.g. "Actions") to include in API
  3048  	// requests with the JSON null value. By default, fields with empty values are
  3049  	// omitted from API requests. See
  3050  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3051  	NullFields []string `json:"-"`
  3052  }
  3053  
  3054  func (s *PostdeployJob) MarshalJSON() ([]byte, error) {
  3055  	type NoMethod PostdeployJob
  3056  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3057  }
  3058  
  3059  // PostdeployJobRun: PostdeployJobRun contains information specific to a
  3060  // postdeploy `JobRun`.
  3061  type PostdeployJobRun struct {
  3062  	// Build: Output only. The resource name of the Cloud Build `Build` object that
  3063  	// is used to execute the custom actions associated with the postdeploy Job.
  3064  	// Format is `projects/{project}/locations/{location}/builds/{build}`.
  3065  	Build string `json:"build,omitempty"`
  3066  	// FailureCause: Output only. The reason the postdeploy failed. This will
  3067  	// always be unspecified while the postdeploy is in progress or if it
  3068  	// succeeded.
  3069  	//
  3070  	// Possible values:
  3071  	//   "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified.
  3072  	//   "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either because
  3073  	// it is not enabled or because Cloud Deploy has insufficient permissions. See
  3074  	// [required
  3075  	// permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account
  3076  	// #required_permissions).
  3077  	//   "EXECUTION_FAILED" - The postdeploy operation did not complete
  3078  	// successfully; check Cloud Build logs.
  3079  	//   "DEADLINE_EXCEEDED" - The postdeploy job run did not complete within the
  3080  	// alloted time.
  3081  	//   "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud
  3082  	// Deploy's request. See failure_message for additional details.
  3083  	FailureCause string `json:"failureCause,omitempty"`
  3084  	// FailureMessage: Output only. Additional information about the postdeploy
  3085  	// failure, if available.
  3086  	FailureMessage string `json:"failureMessage,omitempty"`
  3087  	// ForceSendFields is a list of field names (e.g. "Build") to unconditionally
  3088  	// include in API requests. By default, fields with empty or default values are
  3089  	// omitted from API requests. See
  3090  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3091  	// details.
  3092  	ForceSendFields []string `json:"-"`
  3093  	// NullFields is a list of field names (e.g. "Build") to include in API
  3094  	// requests with the JSON null value. By default, fields with empty values are
  3095  	// omitted from API requests. See
  3096  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3097  	NullFields []string `json:"-"`
  3098  }
  3099  
  3100  func (s *PostdeployJobRun) MarshalJSON() ([]byte, error) {
  3101  	type NoMethod PostdeployJobRun
  3102  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3103  }
  3104  
  3105  // Predeploy: Predeploy contains the predeploy job configuration information.
  3106  type Predeploy struct {
  3107  	// Actions: Optional. A sequence of Skaffold custom actions to invoke during
  3108  	// execution of the predeploy job.
  3109  	Actions []string `json:"actions,omitempty"`
  3110  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  3111  	// include in API requests. By default, fields with empty or default values are
  3112  	// omitted from API requests. See
  3113  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3114  	// details.
  3115  	ForceSendFields []string `json:"-"`
  3116  	// NullFields is a list of field names (e.g. "Actions") to include in API
  3117  	// requests with the JSON null value. By default, fields with empty values are
  3118  	// omitted from API requests. See
  3119  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3120  	NullFields []string `json:"-"`
  3121  }
  3122  
  3123  func (s *Predeploy) MarshalJSON() ([]byte, error) {
  3124  	type NoMethod Predeploy
  3125  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3126  }
  3127  
  3128  // PredeployJob: A predeploy Job.
  3129  type PredeployJob struct {
  3130  	// Actions: Output only. The custom actions that the predeploy Job executes.
  3131  	Actions []string `json:"actions,omitempty"`
  3132  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  3133  	// include in API requests. By default, fields with empty or default values are
  3134  	// omitted from API requests. See
  3135  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3136  	// details.
  3137  	ForceSendFields []string `json:"-"`
  3138  	// NullFields is a list of field names (e.g. "Actions") to include in API
  3139  	// requests with the JSON null value. By default, fields with empty values are
  3140  	// omitted from API requests. See
  3141  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3142  	NullFields []string `json:"-"`
  3143  }
  3144  
  3145  func (s *PredeployJob) MarshalJSON() ([]byte, error) {
  3146  	type NoMethod PredeployJob
  3147  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3148  }
  3149  
  3150  // PredeployJobRun: PredeployJobRun contains information specific to a
  3151  // predeploy `JobRun`.
  3152  type PredeployJobRun struct {
  3153  	// Build: Output only. The resource name of the Cloud Build `Build` object that
  3154  	// is used to execute the custom actions associated with the predeploy Job.
  3155  	// Format is `projects/{project}/locations/{location}/builds/{build}`.
  3156  	Build string `json:"build,omitempty"`
  3157  	// FailureCause: Output only. The reason the predeploy failed. This will always
  3158  	// be unspecified while the predeploy is in progress or if it succeeded.
  3159  	//
  3160  	// Possible values:
  3161  	//   "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified.
  3162  	//   "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either because
  3163  	// it is not enabled or because Cloud Deploy has insufficient permissions. See
  3164  	// [required
  3165  	// permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account
  3166  	// #required_permissions).
  3167  	//   "EXECUTION_FAILED" - The predeploy operation did not complete
  3168  	// successfully; check Cloud Build logs.
  3169  	//   "DEADLINE_EXCEEDED" - The predeploy job run did not complete within the
  3170  	// alloted time.
  3171  	//   "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud
  3172  	// Deploy's request. See failure_message for additional details.
  3173  	FailureCause string `json:"failureCause,omitempty"`
  3174  	// FailureMessage: Output only. Additional information about the predeploy
  3175  	// failure, if available.
  3176  	FailureMessage string `json:"failureMessage,omitempty"`
  3177  	// ForceSendFields is a list of field names (e.g. "Build") to unconditionally
  3178  	// include in API requests. By default, fields with empty or default values are
  3179  	// omitted from API requests. See
  3180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3181  	// details.
  3182  	ForceSendFields []string `json:"-"`
  3183  	// NullFields is a list of field names (e.g. "Build") to include in API
  3184  	// requests with the JSON null value. By default, fields with empty values are
  3185  	// omitted from API requests. See
  3186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3187  	NullFields []string `json:"-"`
  3188  }
  3189  
  3190  func (s *PredeployJobRun) MarshalJSON() ([]byte, error) {
  3191  	type NoMethod PredeployJobRun
  3192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3193  }
  3194  
  3195  // PrivatePool: Execution using a private Cloud Build pool.
  3196  type PrivatePool struct {
  3197  	// ArtifactStorage: Optional. Cloud Storage location where execution outputs
  3198  	// should be stored. This can either be a bucket ("gs://my-bucket") or a path
  3199  	// within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket
  3200  	// located in the same region will be used.
  3201  	ArtifactStorage string `json:"artifactStorage,omitempty"`
  3202  	// ServiceAccount: Optional. Google service account to use for execution. If
  3203  	// unspecified, the project execution service account
  3204  	// (-compute@developer.gserviceaccount.com) will be used.
  3205  	ServiceAccount string `json:"serviceAccount,omitempty"`
  3206  	// WorkerPool: Required. Resource name of the Cloud Build worker pool to use.
  3207  	// The format is `projects/{project}/locations/{location}/workerPools/{pool}`.
  3208  	WorkerPool string `json:"workerPool,omitempty"`
  3209  	// ForceSendFields is a list of field names (e.g. "ArtifactStorage") to
  3210  	// unconditionally include in API requests. By default, fields with empty or
  3211  	// default values are omitted from API requests. See
  3212  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3213  	// details.
  3214  	ForceSendFields []string `json:"-"`
  3215  	// NullFields is a list of field names (e.g. "ArtifactStorage") to include in
  3216  	// API requests with the JSON null value. By default, fields with empty values
  3217  	// are omitted from API requests. See
  3218  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3219  	NullFields []string `json:"-"`
  3220  }
  3221  
  3222  func (s *PrivatePool) MarshalJSON() ([]byte, error) {
  3223  	type NoMethod PrivatePool
  3224  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3225  }
  3226  
  3227  // PromoteReleaseOperation: Contains the information of an automated
  3228  // promote-release operation.
  3229  type PromoteReleaseOperation struct {
  3230  	// Phase: Output only. The starting phase of the rollout created by this
  3231  	// operation.
  3232  	Phase string `json:"phase,omitempty"`
  3233  	// Rollout: Output only. The name of the rollout that initiates the
  3234  	// `AutomationRun`.
  3235  	Rollout string `json:"rollout,omitempty"`
  3236  	// TargetId: Output only. The ID of the target that represents the promotion
  3237  	// stage to which the release will be promoted. The value of this field is the
  3238  	// last segment of a target name.
  3239  	TargetId string `json:"targetId,omitempty"`
  3240  	// Wait: Output only. How long the operation will be paused.
  3241  	Wait string `json:"wait,omitempty"`
  3242  	// ForceSendFields is a list of field names (e.g. "Phase") to unconditionally
  3243  	// include in API requests. By default, fields with empty or default values are
  3244  	// omitted from API requests. See
  3245  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3246  	// details.
  3247  	ForceSendFields []string `json:"-"`
  3248  	// NullFields is a list of field names (e.g. "Phase") to include in API
  3249  	// requests with the JSON null value. By default, fields with empty values are
  3250  	// omitted from API requests. See
  3251  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3252  	NullFields []string `json:"-"`
  3253  }
  3254  
  3255  func (s *PromoteReleaseOperation) MarshalJSON() ([]byte, error) {
  3256  	type NoMethod PromoteReleaseOperation
  3257  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3258  }
  3259  
  3260  // PromoteReleaseRule: `PromoteRelease` rule will automatically promote a
  3261  // release from the current target to a specified target.
  3262  type PromoteReleaseRule struct {
  3263  	// Condition: Output only. Information around the state of the Automation rule.
  3264  	Condition *AutomationRuleCondition `json:"condition,omitempty"`
  3265  	// DestinationPhase: Optional. The starting phase of the rollout created by
  3266  	// this operation. Default to the first phase.
  3267  	DestinationPhase string `json:"destinationPhase,omitempty"`
  3268  	// DestinationTargetId: Optional. The ID of the stage in the pipeline to which
  3269  	// this `Release` is deploying. If unspecified, default it to the next stage in
  3270  	// the promotion flow. The value of this field could be one of the following: *
  3271  	// The last segment of a target name. It only needs the ID to determine if the
  3272  	// target is one of the stages in the promotion sequence defined in the
  3273  	// pipeline. * "@next", the next target in the promotion sequence.
  3274  	DestinationTargetId string `json:"destinationTargetId,omitempty"`
  3275  	// Id: Required. ID of the rule. This id must be unique in the `Automation`
  3276  	// resource to which this rule belongs. The format is
  3277  	// `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  3278  	Id string `json:"id,omitempty"`
  3279  	// Wait: Optional. How long the release need to be paused until being promoted
  3280  	// to the next target.
  3281  	Wait string `json:"wait,omitempty"`
  3282  	// ForceSendFields is a list of field names (e.g. "Condition") to
  3283  	// unconditionally include in API requests. By default, fields with empty or
  3284  	// default values are omitted from API requests. See
  3285  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3286  	// details.
  3287  	ForceSendFields []string `json:"-"`
  3288  	// NullFields is a list of field names (e.g. "Condition") to include in API
  3289  	// requests with the JSON null value. By default, fields with empty values are
  3290  	// omitted from API requests. See
  3291  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3292  	NullFields []string `json:"-"`
  3293  }
  3294  
  3295  func (s *PromoteReleaseRule) MarshalJSON() ([]byte, error) {
  3296  	type NoMethod PromoteReleaseRule
  3297  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3298  }
  3299  
  3300  // Release: A `Release` resource in the Cloud Deploy API. A `Release` defines a
  3301  // specific Skaffold configuration instance that can be deployed.
  3302  type Release struct {
  3303  	// Abandoned: Output only. Indicates whether this is an abandoned release.
  3304  	Abandoned bool `json:"abandoned,omitempty"`
  3305  	// Annotations: User annotations. These attributes can only be set and used by
  3306  	// the user, and not by Cloud Deploy. See
  3307  	// https://google.aip.dev/128#annotations for more details such as format and
  3308  	// size limitations.
  3309  	Annotations map[string]string `json:"annotations,omitempty"`
  3310  	// BuildArtifacts: List of artifacts to pass through to Skaffold command.
  3311  	BuildArtifacts []*BuildArtifact `json:"buildArtifacts,omitempty"`
  3312  	// Condition: Output only. Information around the state of the Release.
  3313  	Condition *ReleaseCondition `json:"condition,omitempty"`
  3314  	// CreateTime: Output only. Time at which the `Release` was created.
  3315  	CreateTime string `json:"createTime,omitempty"`
  3316  	// CustomTargetTypeSnapshots: Output only. Snapshot of the custom target types
  3317  	// referenced by the targets taken at release creation time.
  3318  	CustomTargetTypeSnapshots []*CustomTargetType `json:"customTargetTypeSnapshots,omitempty"`
  3319  	// DeliveryPipelineSnapshot: Output only. Snapshot of the parent pipeline taken
  3320  	// at release creation time.
  3321  	DeliveryPipelineSnapshot *DeliveryPipeline `json:"deliveryPipelineSnapshot,omitempty"`
  3322  	// DeployParameters: Optional. The deploy parameters to use for all targets in
  3323  	// this release.
  3324  	DeployParameters map[string]string `json:"deployParameters,omitempty"`
  3325  	// Description: Description of the `Release`. Max length is 255 characters.
  3326  	Description string `json:"description,omitempty"`
  3327  	// Etag: This checksum is computed by the server based on the value of other
  3328  	// fields, and may be sent on update and delete requests to ensure the client
  3329  	// has an up-to-date value before proceeding.
  3330  	Etag string `json:"etag,omitempty"`
  3331  	// Labels: Labels are attributes that can be set and used by both the user and
  3332  	// by Cloud Deploy. Labels must meet the following constraints: * Keys and
  3333  	// values can contain only lowercase letters, numeric characters, underscores,
  3334  	// and dashes. * All characters must use UTF-8 encoding, and international
  3335  	// characters are allowed. * Keys must start with a lowercase letter or
  3336  	// international character. * Each resource is limited to a maximum of 64
  3337  	// labels. Both keys and values are additionally constrained to be <= 128
  3338  	// bytes.
  3339  	Labels map[string]string `json:"labels,omitempty"`
  3340  	// Name: Optional. Name of the `Release`. Format is
  3341  	// `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}
  3342  	// /releases/{release}`. The `release` component must match
  3343  	// `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
  3344  	Name string `json:"name,omitempty"`
  3345  	// RenderEndTime: Output only. Time at which the render completed.
  3346  	RenderEndTime string `json:"renderEndTime,omitempty"`
  3347  	// RenderStartTime: Output only. Time at which the render began.
  3348  	RenderStartTime string `json:"renderStartTime,omitempty"`
  3349  	// RenderState: Output only. Current state of the render operation.
  3350  	//
  3351  	// Possible values:
  3352  	//   "RENDER_STATE_UNSPECIFIED" - The render state is unspecified.
  3353  	//   "SUCCEEDED" - All rendering operations have completed successfully.
  3354  	//   "FAILED" - All rendering operations have completed, and one or more have
  3355  	// failed.
  3356  	//   "IN_PROGRESS" - Rendering has started and is not complete.
  3357  	RenderState string `json:"renderState,omitempty"`
  3358  	// SkaffoldConfigPath: Filepath of the Skaffold config inside of the config
  3359  	// URI.
  3360  	SkaffoldConfigPath string `json:"skaffoldConfigPath,omitempty"`
  3361  	// SkaffoldConfigUri: Cloud Storage URI of tar.gz archive containing Skaffold
  3362  	// configuration.
  3363  	SkaffoldConfigUri string `json:"skaffoldConfigUri,omitempty"`
  3364  	// SkaffoldVersion: The Skaffold version to use when operating on this release,
  3365  	// such as "1.20.0". Not all versions are valid; Cloud Deploy supports a
  3366  	// specific set of versions. If unset, the most recent supported Skaffold
  3367  	// version will be used.
  3368  	SkaffoldVersion string `json:"skaffoldVersion,omitempty"`
  3369  	// TargetArtifacts: Output only. Map from target ID to the target artifacts
  3370  	// created during the render operation.
  3371  	TargetArtifacts map[string]TargetArtifact `json:"targetArtifacts,omitempty"`
  3372  	// TargetRenders: Output only. Map from target ID to details of the render
  3373  	// operation for that target.
  3374  	TargetRenders map[string]TargetRender `json:"targetRenders,omitempty"`
  3375  	// TargetSnapshots: Output only. Snapshot of the targets taken at release
  3376  	// creation time.
  3377  	TargetSnapshots []*Target `json:"targetSnapshots,omitempty"`
  3378  	// Uid: Output only. Unique identifier of the `Release`.
  3379  	Uid string `json:"uid,omitempty"`
  3380  
  3381  	// ServerResponse contains the HTTP response code and headers from the server.
  3382  	googleapi.ServerResponse `json:"-"`
  3383  	// ForceSendFields is a list of field names (e.g. "Abandoned") to
  3384  	// unconditionally include in API requests. By default, fields with empty or
  3385  	// default values are omitted from API requests. See
  3386  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3387  	// details.
  3388  	ForceSendFields []string `json:"-"`
  3389  	// NullFields is a list of field names (e.g. "Abandoned") to include in API
  3390  	// requests with the JSON null value. By default, fields with empty values are
  3391  	// omitted from API requests. See
  3392  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3393  	NullFields []string `json:"-"`
  3394  }
  3395  
  3396  func (s *Release) MarshalJSON() ([]byte, error) {
  3397  	type NoMethod Release
  3398  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3399  }
  3400  
  3401  // ReleaseCondition: ReleaseCondition contains all conditions relevant to a
  3402  // Release.
  3403  type ReleaseCondition struct {
  3404  	// ReleaseReadyCondition: Details around the Releases's overall status.
  3405  	ReleaseReadyCondition *ReleaseReadyCondition `json:"releaseReadyCondition,omitempty"`
  3406  	// SkaffoldSupportedCondition: Details around the support state of the
  3407  	// release's Skaffold version.
  3408  	SkaffoldSupportedCondition *SkaffoldSupportedCondition `json:"skaffoldSupportedCondition,omitempty"`
  3409  	// ForceSendFields is a list of field names (e.g. "ReleaseReadyCondition") to
  3410  	// unconditionally include in API requests. By default, fields with empty or
  3411  	// default values are omitted from API requests. See
  3412  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3413  	// details.
  3414  	ForceSendFields []string `json:"-"`
  3415  	// NullFields is a list of field names (e.g. "ReleaseReadyCondition") to
  3416  	// include in API requests with the JSON null value. By default, fields with
  3417  	// empty values are omitted from API requests. See
  3418  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3419  	NullFields []string `json:"-"`
  3420  }
  3421  
  3422  func (s *ReleaseCondition) MarshalJSON() ([]byte, error) {
  3423  	type NoMethod ReleaseCondition
  3424  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3425  }
  3426  
  3427  // ReleaseNotificationEvent: Payload proto for
  3428  // "clouddeploy.googleapis.com/release_notification" Platform Log event that
  3429  // describes the failure to send release status change Pub/Sub notification.
  3430  type ReleaseNotificationEvent struct {
  3431  	// Message: Debug message for when a notification fails to send.
  3432  	Message string `json:"message,omitempty"`
  3433  	// PipelineUid: Unique identifier of the `DeliveryPipeline`.
  3434  	PipelineUid string `json:"pipelineUid,omitempty"`
  3435  	// Release: The name of the `Release`.
  3436  	Release string `json:"release,omitempty"`
  3437  	// ReleaseUid: Unique identifier of the `Release`.
  3438  	ReleaseUid string `json:"releaseUid,omitempty"`
  3439  	// Type: Type of this notification, e.g. for a Pub/Sub failure.
  3440  	//
  3441  	// Possible values:
  3442  	//   "TYPE_UNSPECIFIED" - Type is unspecified.
  3443  	//   "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed to be
  3444  	// sent.
  3445  	//   "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed.
  3446  	//   "TYPE_PROCESS_ABORTED" - A process aborted.
  3447  	//   "TYPE_RESTRICTION_VIOLATED" - Restriction check failed.
  3448  	//   "TYPE_RESOURCE_DELETED" - Resource deleted.
  3449  	//   "TYPE_ROLLOUT_UPDATE" - Rollout updated.
  3450  	//   "TYPE_DEPLOY_POLICY_EVALUATION" - Deploy Policy evaluation.
  3451  	//   "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never used. Use
  3452  	// release_render log type instead.
  3453  	Type string `json:"type,omitempty"`
  3454  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  3455  	// include in API requests. By default, fields with empty or default values are
  3456  	// omitted from API requests. See
  3457  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3458  	// details.
  3459  	ForceSendFields []string `json:"-"`
  3460  	// NullFields is a list of field names (e.g. "Message") to include in API
  3461  	// requests with the JSON null value. By default, fields with empty values are
  3462  	// omitted from API requests. See
  3463  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3464  	NullFields []string `json:"-"`
  3465  }
  3466  
  3467  func (s *ReleaseNotificationEvent) MarshalJSON() ([]byte, error) {
  3468  	type NoMethod ReleaseNotificationEvent
  3469  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3470  }
  3471  
  3472  // ReleaseReadyCondition: ReleaseReadyCondition contains information around the
  3473  // status of the Release. If a release is not ready, you cannot create a
  3474  // rollout with the release.
  3475  type ReleaseReadyCondition struct {
  3476  	// Status: True if the Release is in a valid state. Otherwise at least one
  3477  	// condition in `ReleaseCondition` is in an invalid state. Iterate over those
  3478  	// conditions and see which condition(s) has status = false to find out what is
  3479  	// wrong with the Release.
  3480  	Status bool `json:"status,omitempty"`
  3481  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  3482  	// include in API requests. By default, fields with empty or default values are
  3483  	// omitted from API requests. See
  3484  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3485  	// details.
  3486  	ForceSendFields []string `json:"-"`
  3487  	// NullFields is a list of field names (e.g. "Status") to include in API
  3488  	// requests with the JSON null value. By default, fields with empty values are
  3489  	// omitted from API requests. See
  3490  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3491  	NullFields []string `json:"-"`
  3492  }
  3493  
  3494  func (s *ReleaseReadyCondition) MarshalJSON() ([]byte, error) {
  3495  	type NoMethod ReleaseReadyCondition
  3496  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3497  }
  3498  
  3499  // ReleaseRenderEvent: Payload proto for
  3500  // "clouddeploy.googleapis.com/release_render" Platform Log event that
  3501  // describes the render status change.
  3502  type ReleaseRenderEvent struct {
  3503  	// Message: Debug message for when a render transition occurs. Provides further
  3504  	// details as rendering progresses through render states.
  3505  	Message string `json:"message,omitempty"`
  3506  	// PipelineUid: Unique identifier of the `DeliveryPipeline`.
  3507  	PipelineUid string `json:"pipelineUid,omitempty"`
  3508  	// Release: The name of the release. release_uid is not in this log message
  3509  	// because we write some of these log messages at release creation time, before
  3510  	// we've generated the uid.
  3511  	Release string `json:"release,omitempty"`
  3512  	// ReleaseRenderState: The state of the release render.
  3513  	//
  3514  	// Possible values:
  3515  	//   "RENDER_STATE_UNSPECIFIED" - The render state is unspecified.
  3516  	//   "SUCCEEDED" - All rendering operations have completed successfully.
  3517  	//   "FAILED" - All rendering operations have completed, and one or more have
  3518  	// failed.
  3519  	//   "IN_PROGRESS" - Rendering has started and is not complete.
  3520  	ReleaseRenderState string `json:"releaseRenderState,omitempty"`
  3521  	// Type: Type of this notification, e.g. for a release render state change
  3522  	// event.
  3523  	//
  3524  	// Possible values:
  3525  	//   "TYPE_UNSPECIFIED" - Type is unspecified.
  3526  	//   "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed to be
  3527  	// sent.
  3528  	//   "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed.
  3529  	//   "TYPE_PROCESS_ABORTED" - A process aborted.
  3530  	//   "TYPE_RESTRICTION_VIOLATED" - Restriction check failed.
  3531  	//   "TYPE_RESOURCE_DELETED" - Resource deleted.
  3532  	//   "TYPE_ROLLOUT_UPDATE" - Rollout updated.
  3533  	//   "TYPE_DEPLOY_POLICY_EVALUATION" - Deploy Policy evaluation.
  3534  	//   "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never used. Use
  3535  	// release_render log type instead.
  3536  	Type string `json:"type,omitempty"`
  3537  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  3538  	// include in API requests. By default, fields with empty or default values are
  3539  	// omitted from API requests. See
  3540  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3541  	// details.
  3542  	ForceSendFields []string `json:"-"`
  3543  	// NullFields is a list of field names (e.g. "Message") to include in API
  3544  	// requests with the JSON null value. By default, fields with empty values are
  3545  	// omitted from API requests. See
  3546  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3547  	NullFields []string `json:"-"`
  3548  }
  3549  
  3550  func (s *ReleaseRenderEvent) MarshalJSON() ([]byte, error) {
  3551  	type NoMethod ReleaseRenderEvent
  3552  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3553  }
  3554  
  3555  // RenderMetadata: RenderMetadata includes information associated with a
  3556  // `Release` render.
  3557  type RenderMetadata struct {
  3558  	// CloudRun: Output only. Metadata associated with rendering for Cloud Run.
  3559  	CloudRun *CloudRunRenderMetadata `json:"cloudRun,omitempty"`
  3560  	// Custom: Output only. Custom metadata provided by user-defined render
  3561  	// operation.
  3562  	Custom *CustomMetadata `json:"custom,omitempty"`
  3563  	// ForceSendFields is a list of field names (e.g. "CloudRun") to
  3564  	// unconditionally include in API requests. By default, fields with empty or
  3565  	// default values are omitted from API requests. See
  3566  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3567  	// details.
  3568  	ForceSendFields []string `json:"-"`
  3569  	// NullFields is a list of field names (e.g. "CloudRun") to include in API
  3570  	// requests with the JSON null value. By default, fields with empty values are
  3571  	// omitted from API requests. See
  3572  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3573  	NullFields []string `json:"-"`
  3574  }
  3575  
  3576  func (s *RenderMetadata) MarshalJSON() ([]byte, error) {
  3577  	type NoMethod RenderMetadata
  3578  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3579  }
  3580  
  3581  // RepairMode: Configuration of the repair action.
  3582  type RepairMode struct {
  3583  	// Retry: Optional. Retries a failed job.
  3584  	Retry *Retry `json:"retry,omitempty"`
  3585  	// Rollback: Optional. Rolls back a `Rollout`.
  3586  	Rollback *Rollback `json:"rollback,omitempty"`
  3587  	// ForceSendFields is a list of field names (e.g. "Retry") to unconditionally
  3588  	// include in API requests. By default, fields with empty or default values are
  3589  	// omitted from API requests. See
  3590  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3591  	// details.
  3592  	ForceSendFields []string `json:"-"`
  3593  	// NullFields is a list of field names (e.g. "Retry") to include in API
  3594  	// requests with the JSON null value. By default, fields with empty values are
  3595  	// omitted from API requests. See
  3596  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3597  	NullFields []string `json:"-"`
  3598  }
  3599  
  3600  func (s *RepairMode) MarshalJSON() ([]byte, error) {
  3601  	type NoMethod RepairMode
  3602  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3603  }
  3604  
  3605  // RepairPhase: RepairPhase tracks the repair attempts that have been made for
  3606  // each `RepairMode` specified in the `Automation` resource.
  3607  type RepairPhase struct {
  3608  	// Retry: Output only. Records of the retry attempts for retry repair mode.
  3609  	Retry *RetryPhase `json:"retry,omitempty"`
  3610  	// Rollback: Output only. Rollback attempt for rollback repair mode .
  3611  	Rollback *RollbackAttempt `json:"rollback,omitempty"`
  3612  	// ForceSendFields is a list of field names (e.g. "Retry") to unconditionally
  3613  	// include in API requests. By default, fields with empty or default values are
  3614  	// omitted from API requests. See
  3615  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3616  	// details.
  3617  	ForceSendFields []string `json:"-"`
  3618  	// NullFields is a list of field names (e.g. "Retry") to include in API
  3619  	// requests with the JSON null value. By default, fields with empty values are
  3620  	// omitted from API requests. See
  3621  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3622  	NullFields []string `json:"-"`
  3623  }
  3624  
  3625  func (s *RepairPhase) MarshalJSON() ([]byte, error) {
  3626  	type NoMethod RepairPhase
  3627  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3628  }
  3629  
  3630  // RepairRolloutOperation: Contains the information for an automated `repair
  3631  // rollout` operation.
  3632  type RepairRolloutOperation struct {
  3633  	// CurrentRepairModeIndex: Output only. The index of the current repair action
  3634  	// in the repair sequence.
  3635  	CurrentRepairModeIndex int64 `json:"currentRepairModeIndex,omitempty,string"`
  3636  	// JobId: Output only. The job ID for the Job to repair.
  3637  	JobId string `json:"jobId,omitempty"`
  3638  	// PhaseId: Output only. The phase ID of the phase that includes the job being
  3639  	// repaired.
  3640  	PhaseId string `json:"phaseId,omitempty"`
  3641  	// RepairPhases: Output only. Records of the repair attempts. Each repair phase
  3642  	// may have multiple retry attempts or single rollback attempt.
  3643  	RepairPhases []*RepairPhase `json:"repairPhases,omitempty"`
  3644  	// Rollout: Output only. The name of the rollout that initiates the
  3645  	// `AutomationRun`.
  3646  	Rollout string `json:"rollout,omitempty"`
  3647  	// ForceSendFields is a list of field names (e.g. "CurrentRepairModeIndex") to
  3648  	// unconditionally include in API requests. By default, fields with empty or
  3649  	// default values are omitted from API requests. See
  3650  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3651  	// details.
  3652  	ForceSendFields []string `json:"-"`
  3653  	// NullFields is a list of field names (e.g. "CurrentRepairModeIndex") to
  3654  	// include in API requests with the JSON null value. By default, fields with
  3655  	// empty values are omitted from API requests. See
  3656  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3657  	NullFields []string `json:"-"`
  3658  }
  3659  
  3660  func (s *RepairRolloutOperation) MarshalJSON() ([]byte, error) {
  3661  	type NoMethod RepairRolloutOperation
  3662  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3663  }
  3664  
  3665  // RepairRolloutRule: The `RepairRolloutRule` automation rule will
  3666  // automatically repair a failed `Rollout`.
  3667  type RepairRolloutRule struct {
  3668  	// Condition: Output only. Information around the state of the 'Automation'
  3669  	// rule.
  3670  	Condition *AutomationRuleCondition `json:"condition,omitempty"`
  3671  	// Id: Required. ID of the rule. This id must be unique in the `Automation`
  3672  	// resource to which this rule belongs. The format is
  3673  	// `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  3674  	Id string `json:"id,omitempty"`
  3675  	// Jobs: Optional. Jobs to repair. Proceeds only after job name matched any one
  3676  	// in the list, or for all jobs if unspecified or empty. The phase that
  3677  	// includes the job must match the phase ID specified in `source_phase`. This
  3678  	// value must consist of lower-case letters, numbers, and hyphens, start with a
  3679  	// letter and end with a letter or a number, and have a max length of 63
  3680  	// characters. In other words, it must match the following regex: `^a-z
  3681  	// ([a-z0-9-]{0,61}[a-z0-9])?$`.
  3682  	Jobs []string `json:"jobs,omitempty"`
  3683  	// RepairModes: Required. Defines the types of automatic repair actions for
  3684  	// failed jobs.
  3685  	RepairModes []*RepairMode `json:"repairModes,omitempty"`
  3686  	// SourcePhases: Optional. Phases within which jobs are subject to automatic
  3687  	// repair actions on failure. Proceeds only after phase name matched any one in
  3688  	// the list, or for all phases if unspecified. This value must consist of
  3689  	// lower-case letters, numbers, and hyphens, start with a letter and end with a
  3690  	// letter or a number, and have a max length of 63 characters. In other words,
  3691  	// it must match the following regex: `^a-z ([a-z0-9-]{0,61}[a-z0-9])?$`.
  3692  	SourcePhases []string `json:"sourcePhases,omitempty"`
  3693  	// ForceSendFields is a list of field names (e.g. "Condition") to
  3694  	// unconditionally include in API requests. By default, fields with empty or
  3695  	// default values are omitted from API requests. See
  3696  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3697  	// details.
  3698  	ForceSendFields []string `json:"-"`
  3699  	// NullFields is a list of field names (e.g. "Condition") to include in API
  3700  	// requests with the JSON null value. By default, fields with empty values are
  3701  	// omitted from API requests. See
  3702  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3703  	NullFields []string `json:"-"`
  3704  }
  3705  
  3706  func (s *RepairRolloutRule) MarshalJSON() ([]byte, error) {
  3707  	type NoMethod RepairRolloutRule
  3708  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3709  }
  3710  
  3711  // Retry: Retries the failed job.
  3712  type Retry struct {
  3713  	// Attempts: Required. Total number of retries. Retry is skipped if set to 0;
  3714  	// The minimum value is 1, and the maximum value is 10.
  3715  	Attempts int64 `json:"attempts,omitempty,string"`
  3716  	// BackoffMode: Optional. The pattern of how wait time will be increased.
  3717  	// Default is linear. Backoff mode will be ignored if `wait` is 0.
  3718  	//
  3719  	// Possible values:
  3720  	//   "BACKOFF_MODE_UNSPECIFIED" - No WaitMode is specified.
  3721  	//   "BACKOFF_MODE_LINEAR" - Increases the wait time linearly.
  3722  	//   "BACKOFF_MODE_EXPONENTIAL" - Increases the wait time exponentially.
  3723  	BackoffMode string `json:"backoffMode,omitempty"`
  3724  	// Wait: Optional. How long to wait for the first retry. Default is 0, and the
  3725  	// maximum value is 14d.
  3726  	Wait string `json:"wait,omitempty"`
  3727  	// ForceSendFields is a list of field names (e.g. "Attempts") to
  3728  	// unconditionally include in API requests. By default, fields with empty or
  3729  	// default values are omitted from API requests. See
  3730  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3731  	// details.
  3732  	ForceSendFields []string `json:"-"`
  3733  	// NullFields is a list of field names (e.g. "Attempts") to include in API
  3734  	// requests with the JSON null value. By default, fields with empty values are
  3735  	// omitted from API requests. See
  3736  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3737  	NullFields []string `json:"-"`
  3738  }
  3739  
  3740  func (s *Retry) MarshalJSON() ([]byte, error) {
  3741  	type NoMethod Retry
  3742  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3743  }
  3744  
  3745  // RetryAttempt: RetryAttempt represents an action of retrying the failed Cloud
  3746  // Deploy job.
  3747  type RetryAttempt struct {
  3748  	// Attempt: Output only. The index of this retry attempt.
  3749  	Attempt int64 `json:"attempt,omitempty,string"`
  3750  	// State: Output only. Valid state of this retry action.
  3751  	//
  3752  	// Possible values:
  3753  	//   "REPAIR_STATE_UNSPECIFIED" - The `repair` has an unspecified state.
  3754  	//   "REPAIR_STATE_SUCCEEDED" - The `repair` action has succeeded.
  3755  	//   "REPAIR_STATE_CANCELLED" - The `repair` action was cancelled.
  3756  	//   "REPAIR_STATE_FAILED" - The `repair` action has failed.
  3757  	//   "REPAIR_STATE_IN_PROGRESS" - The `repair` action is in progress.
  3758  	//   "REPAIR_STATE_PENDING" - The `repair` action is pending.
  3759  	//   "REPAIR_STATE_SKIPPED" - The `repair` action was skipped.
  3760  	//   "REPAIR_STATE_ABORTED" - The `repair` action was aborted.
  3761  	State string `json:"state,omitempty"`
  3762  	// StateDesc: Output only. Description of the state of the Retry.
  3763  	StateDesc string `json:"stateDesc,omitempty"`
  3764  	// Wait: Output only. How long the operation will be paused.
  3765  	Wait string `json:"wait,omitempty"`
  3766  	// ForceSendFields is a list of field names (e.g. "Attempt") to unconditionally
  3767  	// include in API requests. By default, fields with empty or default values are
  3768  	// omitted from API requests. See
  3769  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3770  	// details.
  3771  	ForceSendFields []string `json:"-"`
  3772  	// NullFields is a list of field names (e.g. "Attempt") to include in API
  3773  	// requests with the JSON null value. By default, fields with empty values are
  3774  	// omitted from API requests. See
  3775  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3776  	NullFields []string `json:"-"`
  3777  }
  3778  
  3779  func (s *RetryAttempt) MarshalJSON() ([]byte, error) {
  3780  	type NoMethod RetryAttempt
  3781  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3782  }
  3783  
  3784  // RetryJobRequest: RetryJobRequest is the request object used by `RetryJob`.
  3785  type RetryJobRequest struct {
  3786  	// JobId: Required. The job ID for the Job to retry.
  3787  	JobId string `json:"jobId,omitempty"`
  3788  	// PhaseId: Required. The phase ID the Job to retry belongs to.
  3789  	PhaseId string `json:"phaseId,omitempty"`
  3790  	// ForceSendFields is a list of field names (e.g. "JobId") to unconditionally
  3791  	// include in API requests. By default, fields with empty or default values are
  3792  	// omitted from API requests. See
  3793  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3794  	// details.
  3795  	ForceSendFields []string `json:"-"`
  3796  	// NullFields is a list of field names (e.g. "JobId") to include in API
  3797  	// requests with the JSON null value. By default, fields with empty values are
  3798  	// omitted from API requests. See
  3799  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3800  	NullFields []string `json:"-"`
  3801  }
  3802  
  3803  func (s *RetryJobRequest) MarshalJSON() ([]byte, error) {
  3804  	type NoMethod RetryJobRequest
  3805  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3806  }
  3807  
  3808  // RetryJobResponse: The response object from 'RetryJob'.
  3809  type RetryJobResponse struct {
  3810  	// ServerResponse contains the HTTP response code and headers from the server.
  3811  	googleapi.ServerResponse `json:"-"`
  3812  }
  3813  
  3814  // RetryPhase: RetryPhase contains the retry attempts and the metadata for
  3815  // initiating a new attempt.
  3816  type RetryPhase struct {
  3817  	// Attempts: Output only. Detail of a retry action.
  3818  	Attempts []*RetryAttempt `json:"attempts,omitempty"`
  3819  	// BackoffMode: Output only. The pattern of how the wait time of the retry
  3820  	// attempt is calculated.
  3821  	//
  3822  	// Possible values:
  3823  	//   "BACKOFF_MODE_UNSPECIFIED" - No WaitMode is specified.
  3824  	//   "BACKOFF_MODE_LINEAR" - Increases the wait time linearly.
  3825  	//   "BACKOFF_MODE_EXPONENTIAL" - Increases the wait time exponentially.
  3826  	BackoffMode string `json:"backoffMode,omitempty"`
  3827  	// JobId: Output only. The job ID for the Job to retry.
  3828  	JobId string `json:"jobId,omitempty"`
  3829  	// PhaseId: Output only. The phase ID of the phase that includes the job being
  3830  	// retried.
  3831  	PhaseId string `json:"phaseId,omitempty"`
  3832  	// TotalAttempts: Output only. The number of attempts that have been made.
  3833  	TotalAttempts int64 `json:"totalAttempts,omitempty,string"`
  3834  	// ForceSendFields is a list of field names (e.g. "Attempts") to
  3835  	// unconditionally include in API requests. By default, fields with empty or
  3836  	// default values are omitted from API requests. See
  3837  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3838  	// details.
  3839  	ForceSendFields []string `json:"-"`
  3840  	// NullFields is a list of field names (e.g. "Attempts") to include in API
  3841  	// requests with the JSON null value. By default, fields with empty values are
  3842  	// omitted from API requests. See
  3843  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3844  	NullFields []string `json:"-"`
  3845  }
  3846  
  3847  func (s *RetryPhase) MarshalJSON() ([]byte, error) {
  3848  	type NoMethod RetryPhase
  3849  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3850  }
  3851  
  3852  // Rollback: Rolls back a `Rollout`.
  3853  type Rollback struct {
  3854  	// DestinationPhase: Optional. The starting phase ID for the `Rollout`. If
  3855  	// unspecified, the `Rollout` will start in the stable phase.
  3856  	DestinationPhase string `json:"destinationPhase,omitempty"`
  3857  	// ForceSendFields is a list of field names (e.g. "DestinationPhase") to
  3858  	// unconditionally include in API requests. By default, fields with empty or
  3859  	// default values are omitted from API requests. See
  3860  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3861  	// details.
  3862  	ForceSendFields []string `json:"-"`
  3863  	// NullFields is a list of field names (e.g. "DestinationPhase") to include in
  3864  	// API requests with the JSON null value. By default, fields with empty values
  3865  	// are omitted from API requests. See
  3866  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3867  	NullFields []string `json:"-"`
  3868  }
  3869  
  3870  func (s *Rollback) MarshalJSON() ([]byte, error) {
  3871  	type NoMethod Rollback
  3872  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3873  }
  3874  
  3875  // RollbackAttempt: RollbackAttempt represents an action of rolling back a
  3876  // Cloud Deploy 'Target'.
  3877  type RollbackAttempt struct {
  3878  	// DestinationPhase: Output only. The phase to which the rollout will be rolled
  3879  	// back to.
  3880  	DestinationPhase string `json:"destinationPhase,omitempty"`
  3881  	// RolloutId: Output only. ID of the rollback `Rollout` to create.
  3882  	RolloutId string `json:"rolloutId,omitempty"`
  3883  	// State: Output only. Valid state of this rollback action.
  3884  	//
  3885  	// Possible values:
  3886  	//   "REPAIR_STATE_UNSPECIFIED" - The `repair` has an unspecified state.
  3887  	//   "REPAIR_STATE_SUCCEEDED" - The `repair` action has succeeded.
  3888  	//   "REPAIR_STATE_CANCELLED" - The `repair` action was cancelled.
  3889  	//   "REPAIR_STATE_FAILED" - The `repair` action has failed.
  3890  	//   "REPAIR_STATE_IN_PROGRESS" - The `repair` action is in progress.
  3891  	//   "REPAIR_STATE_PENDING" - The `repair` action is pending.
  3892  	//   "REPAIR_STATE_SKIPPED" - The `repair` action was skipped.
  3893  	//   "REPAIR_STATE_ABORTED" - The `repair` action was aborted.
  3894  	State string `json:"state,omitempty"`
  3895  	// StateDesc: Output only. Description of the state of the Rollback.
  3896  	StateDesc string `json:"stateDesc,omitempty"`
  3897  	// ForceSendFields is a list of field names (e.g. "DestinationPhase") to
  3898  	// unconditionally include in API requests. By default, fields with empty or
  3899  	// default values are omitted from API requests. See
  3900  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3901  	// details.
  3902  	ForceSendFields []string `json:"-"`
  3903  	// NullFields is a list of field names (e.g. "DestinationPhase") to include in
  3904  	// API requests with the JSON null value. By default, fields with empty values
  3905  	// are omitted from API requests. See
  3906  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3907  	NullFields []string `json:"-"`
  3908  }
  3909  
  3910  func (s *RollbackAttempt) MarshalJSON() ([]byte, error) {
  3911  	type NoMethod RollbackAttempt
  3912  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3913  }
  3914  
  3915  // RollbackTargetConfig: Configs for the Rollback rollout.
  3916  type RollbackTargetConfig struct {
  3917  	// Rollout: Optional. The rollback `Rollout` to create.
  3918  	Rollout *Rollout `json:"rollout,omitempty"`
  3919  	// StartingPhaseId: Optional. The starting phase ID for the `Rollout`. If
  3920  	// unspecified, the `Rollout` will start in the stable phase.
  3921  	StartingPhaseId string `json:"startingPhaseId,omitempty"`
  3922  	// ForceSendFields is a list of field names (e.g. "Rollout") to unconditionally
  3923  	// include in API requests. By default, fields with empty or default values are
  3924  	// omitted from API requests. See
  3925  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3926  	// details.
  3927  	ForceSendFields []string `json:"-"`
  3928  	// NullFields is a list of field names (e.g. "Rollout") to include in API
  3929  	// requests with the JSON null value. By default, fields with empty values are
  3930  	// omitted from API requests. See
  3931  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3932  	NullFields []string `json:"-"`
  3933  }
  3934  
  3935  func (s *RollbackTargetConfig) MarshalJSON() ([]byte, error) {
  3936  	type NoMethod RollbackTargetConfig
  3937  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3938  }
  3939  
  3940  // RollbackTargetRequest: The request object for `RollbackTarget`.
  3941  type RollbackTargetRequest struct {
  3942  	// ReleaseId: Optional. ID of the `Release` to roll back to. If this isn't
  3943  	// specified, the previous successful `Rollout` to the specified target will be
  3944  	// used to determine the `Release`.
  3945  	ReleaseId string `json:"releaseId,omitempty"`
  3946  	// RollbackConfig: Optional. Configs for the rollback `Rollout`.
  3947  	RollbackConfig *RollbackTargetConfig `json:"rollbackConfig,omitempty"`
  3948  	// RolloutId: Required. ID of the rollback `Rollout` to create.
  3949  	RolloutId string `json:"rolloutId,omitempty"`
  3950  	// RolloutToRollBack: Optional. If provided, this must be the latest `Rollout`
  3951  	// that is on the `Target`.
  3952  	RolloutToRollBack string `json:"rolloutToRollBack,omitempty"`
  3953  	// TargetId: Required. ID of the `Target` that is being rolled back.
  3954  	TargetId string `json:"targetId,omitempty"`
  3955  	// ValidateOnly: Optional. If set to true, the request is validated and the
  3956  	// user is provided with a `RollbackTargetResponse`.
  3957  	ValidateOnly bool `json:"validateOnly,omitempty"`
  3958  	// ForceSendFields is a list of field names (e.g. "ReleaseId") to
  3959  	// unconditionally include in API requests. By default, fields with empty or
  3960  	// default values are omitted from API requests. See
  3961  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3962  	// details.
  3963  	ForceSendFields []string `json:"-"`
  3964  	// NullFields is a list of field names (e.g. "ReleaseId") to include in API
  3965  	// requests with the JSON null value. By default, fields with empty values are
  3966  	// omitted from API requests. See
  3967  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3968  	NullFields []string `json:"-"`
  3969  }
  3970  
  3971  func (s *RollbackTargetRequest) MarshalJSON() ([]byte, error) {
  3972  	type NoMethod RollbackTargetRequest
  3973  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3974  }
  3975  
  3976  // RollbackTargetResponse: The response object from `RollbackTarget`.
  3977  type RollbackTargetResponse struct {
  3978  	// RollbackConfig: The config of the rollback `Rollout` created or will be
  3979  	// created.
  3980  	RollbackConfig *RollbackTargetConfig `json:"rollbackConfig,omitempty"`
  3981  
  3982  	// ServerResponse contains the HTTP response code and headers from the server.
  3983  	googleapi.ServerResponse `json:"-"`
  3984  	// ForceSendFields is a list of field names (e.g. "RollbackConfig") to
  3985  	// unconditionally include in API requests. By default, fields with empty or
  3986  	// default values are omitted from API requests. See
  3987  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3988  	// details.
  3989  	ForceSendFields []string `json:"-"`
  3990  	// NullFields is a list of field names (e.g. "RollbackConfig") to include in
  3991  	// API requests with the JSON null value. By default, fields with empty values
  3992  	// are omitted from API requests. See
  3993  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3994  	NullFields []string `json:"-"`
  3995  }
  3996  
  3997  func (s *RollbackTargetResponse) MarshalJSON() ([]byte, error) {
  3998  	type NoMethod RollbackTargetResponse
  3999  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4000  }
  4001  
  4002  // Rollout: A `Rollout` resource in the Cloud Deploy API. A `Rollout` contains
  4003  // information around a specific deployment to a `Target`.
  4004  type Rollout struct {
  4005  	// Annotations: User annotations. These attributes can only be set and used by
  4006  	// the user, and not by Cloud Deploy. See
  4007  	// https://google.aip.dev/128#annotations for more details such as format and
  4008  	// size limitations.
  4009  	Annotations map[string]string `json:"annotations,omitempty"`
  4010  	// ApprovalState: Output only. Approval state of the `Rollout`.
  4011  	//
  4012  	// Possible values:
  4013  	//   "APPROVAL_STATE_UNSPECIFIED" - The `Rollout` has an unspecified approval
  4014  	// state.
  4015  	//   "NEEDS_APPROVAL" - The `Rollout` requires approval.
  4016  	//   "DOES_NOT_NEED_APPROVAL" - The `Rollout` does not require approval.
  4017  	//   "APPROVED" - The `Rollout` has been approved.
  4018  	//   "REJECTED" - The `Rollout` has been rejected.
  4019  	ApprovalState string `json:"approvalState,omitempty"`
  4020  	// ApproveTime: Output only. Time at which the `Rollout` was approved.
  4021  	ApproveTime string `json:"approveTime,omitempty"`
  4022  	// ControllerRollout: Output only. Name of the `ControllerRollout`. Format is
  4023  	// `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}
  4024  	// /releases/{release}/rollouts/{rollout}`.
  4025  	ControllerRollout string `json:"controllerRollout,omitempty"`
  4026  	// CreateTime: Output only. Time at which the `Rollout` was created.
  4027  	CreateTime string `json:"createTime,omitempty"`
  4028  	// DeployEndTime: Output only. Time at which the `Rollout` finished deploying.
  4029  	DeployEndTime string `json:"deployEndTime,omitempty"`
  4030  	// DeployFailureCause: Output only. The reason this rollout failed. This will
  4031  	// always be unspecified while the rollout is in progress.
  4032  	//
  4033  	// Possible values:
  4034  	//   "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified.
  4035  	//   "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either because
  4036  	// it is not enabled or because Cloud Deploy has insufficient permissions. See
  4037  	// [required
  4038  	// permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account
  4039  	// #required_permissions).
  4040  	//   "EXECUTION_FAILED" - The deploy operation did not complete successfully;
  4041  	// check Cloud Build logs.
  4042  	//   "DEADLINE_EXCEEDED" - Deployment did not complete within the alloted time.
  4043  	//   "RELEASE_FAILED" - Release is in a failed state.
  4044  	//   "RELEASE_ABANDONED" - Release is abandoned.
  4045  	//   "VERIFICATION_CONFIG_NOT_FOUND" - No Skaffold verify configuration was
  4046  	// found.
  4047  	//   "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud
  4048  	// Deploy's request. See failure_message for additional details.
  4049  	//   "OPERATION_FEATURE_NOT_SUPPORTED" - A Rollout operation had a feature
  4050  	// configured that is not supported.
  4051  	DeployFailureCause string `json:"deployFailureCause,omitempty"`
  4052  	// DeployStartTime: Output only. Time at which the `Rollout` started deploying.
  4053  	DeployStartTime string `json:"deployStartTime,omitempty"`
  4054  	// DeployingBuild: Output only. The resource name of the Cloud Build `Build`
  4055  	// object that is used to deploy the Rollout. Format is
  4056  	// `projects/{project}/locations/{location}/builds/{build}`.
  4057  	DeployingBuild string `json:"deployingBuild,omitempty"`
  4058  	// Description: Description of the `Rollout` for user purposes. Max length is
  4059  	// 255 characters.
  4060  	Description string `json:"description,omitempty"`
  4061  	// EnqueueTime: Output only. Time at which the `Rollout` was enqueued.
  4062  	EnqueueTime string `json:"enqueueTime,omitempty"`
  4063  	// Etag: This checksum is computed by the server based on the value of other
  4064  	// fields, and may be sent on update and delete requests to ensure the client
  4065  	// has an up-to-date value before proceeding.
  4066  	Etag string `json:"etag,omitempty"`
  4067  	// FailureReason: Output only. Additional information about the rollout
  4068  	// failure, if available.
  4069  	FailureReason string `json:"failureReason,omitempty"`
  4070  	// Labels: Labels are attributes that can be set and used by both the user and
  4071  	// by Cloud Deploy. Labels must meet the following constraints: * Keys and
  4072  	// values can contain only lowercase letters, numeric characters, underscores,
  4073  	// and dashes. * All characters must use UTF-8 encoding, and international
  4074  	// characters are allowed. * Keys must start with a lowercase letter or
  4075  	// international character. * Each resource is limited to a maximum of 64
  4076  	// labels. Both keys and values are additionally constrained to be <= 128
  4077  	// bytes.
  4078  	Labels map[string]string `json:"labels,omitempty"`
  4079  	// Metadata: Output only. Metadata contains information about the rollout.
  4080  	Metadata *Metadata `json:"metadata,omitempty"`
  4081  	// Name: Optional. Name of the `Rollout`. Format is
  4082  	// `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}
  4083  	// /releases/{release}/rollouts/{rollout}`. The `rollout` component must match
  4084  	// `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
  4085  	Name string `json:"name,omitempty"`
  4086  	// Phases: Output only. The phases that represent the workflows of this
  4087  	// `Rollout`.
  4088  	Phases []*Phase `json:"phases,omitempty"`
  4089  	// RollbackOfRollout: Output only. Name of the `Rollout` that is rolled back by
  4090  	// this `Rollout`. Empty if this `Rollout` wasn't created as a rollback.
  4091  	RollbackOfRollout string `json:"rollbackOfRollout,omitempty"`
  4092  	// RolledBackByRollouts: Output only. Names of `Rollouts` that rolled back this
  4093  	// `Rollout`.
  4094  	RolledBackByRollouts []string `json:"rolledBackByRollouts,omitempty"`
  4095  	// State: Output only. Current state of the `Rollout`.
  4096  	//
  4097  	// Possible values:
  4098  	//   "STATE_UNSPECIFIED" - The `Rollout` has an unspecified state.
  4099  	//   "SUCCEEDED" - The `Rollout` has completed successfully.
  4100  	//   "FAILED" - The `Rollout` has failed.
  4101  	//   "IN_PROGRESS" - The `Rollout` is being deployed.
  4102  	//   "PENDING_APPROVAL" - The `Rollout` needs approval.
  4103  	//   "APPROVAL_REJECTED" - An approver rejected the `Rollout`.
  4104  	//   "PENDING" - The `Rollout` is waiting for an earlier Rollout(s) to complete
  4105  	// on this `Target`.
  4106  	//   "PENDING_RELEASE" - The `Rollout` is waiting for the `Release` to be fully
  4107  	// rendered.
  4108  	//   "CANCELLING" - The `Rollout` is in the process of being cancelled.
  4109  	//   "CANCELLED" - The `Rollout` has been cancelled.
  4110  	//   "HALTED" - The `Rollout` is halted.
  4111  	State string `json:"state,omitempty"`
  4112  	// TargetId: Required. The ID of Target to which this `Rollout` is deploying.
  4113  	TargetId string `json:"targetId,omitempty"`
  4114  	// Uid: Output only. Unique identifier of the `Rollout`.
  4115  	Uid string `json:"uid,omitempty"`
  4116  
  4117  	// ServerResponse contains the HTTP response code and headers from the server.
  4118  	googleapi.ServerResponse `json:"-"`
  4119  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  4120  	// unconditionally include in API requests. By default, fields with empty or
  4121  	// default values are omitted from API requests. See
  4122  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4123  	// details.
  4124  	ForceSendFields []string `json:"-"`
  4125  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  4126  	// requests with the JSON null value. By default, fields with empty values are
  4127  	// omitted from API requests. See
  4128  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4129  	NullFields []string `json:"-"`
  4130  }
  4131  
  4132  func (s *Rollout) MarshalJSON() ([]byte, error) {
  4133  	type NoMethod Rollout
  4134  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4135  }
  4136  
  4137  // RolloutNotificationEvent: Payload proto for
  4138  // "clouddeploy.googleapis.com/rollout_notification" Platform Log event that
  4139  // describes the failure to send rollout status change Pub/Sub notification.
  4140  type RolloutNotificationEvent struct {
  4141  	// Message: Debug message for when a notification fails to send.
  4142  	Message string `json:"message,omitempty"`
  4143  	// PipelineUid: Unique identifier of the `DeliveryPipeline`.
  4144  	PipelineUid string `json:"pipelineUid,omitempty"`
  4145  	// Release: The name of the `Release`.
  4146  	Release string `json:"release,omitempty"`
  4147  	// ReleaseUid: Unique identifier of the `Release`.
  4148  	ReleaseUid string `json:"releaseUid,omitempty"`
  4149  	// Rollout: The name of the `Rollout`.
  4150  	Rollout string `json:"rollout,omitempty"`
  4151  	// RolloutUid: Unique identifier of the `Rollout`.
  4152  	RolloutUid string `json:"rolloutUid,omitempty"`
  4153  	// TargetId: ID of the `Target` that the rollout is deployed to.
  4154  	TargetId string `json:"targetId,omitempty"`
  4155  	// Type: Type of this notification, e.g. for a Pub/Sub failure.
  4156  	//
  4157  	// Possible values:
  4158  	//   "TYPE_UNSPECIFIED" - Type is unspecified.
  4159  	//   "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed to be
  4160  	// sent.
  4161  	//   "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed.
  4162  	//   "TYPE_PROCESS_ABORTED" - A process aborted.
  4163  	//   "TYPE_RESTRICTION_VIOLATED" - Restriction check failed.
  4164  	//   "TYPE_RESOURCE_DELETED" - Resource deleted.
  4165  	//   "TYPE_ROLLOUT_UPDATE" - Rollout updated.
  4166  	//   "TYPE_DEPLOY_POLICY_EVALUATION" - Deploy Policy evaluation.
  4167  	//   "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never used. Use
  4168  	// release_render log type instead.
  4169  	Type string `json:"type,omitempty"`
  4170  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  4171  	// include in API requests. By default, fields with empty or default values are
  4172  	// omitted from API requests. See
  4173  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4174  	// details.
  4175  	ForceSendFields []string `json:"-"`
  4176  	// NullFields is a list of field names (e.g. "Message") to include in API
  4177  	// requests with the JSON null value. By default, fields with empty values are
  4178  	// omitted from API requests. See
  4179  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4180  	NullFields []string `json:"-"`
  4181  }
  4182  
  4183  func (s *RolloutNotificationEvent) MarshalJSON() ([]byte, error) {
  4184  	type NoMethod RolloutNotificationEvent
  4185  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4186  }
  4187  
  4188  // RolloutUpdateEvent: Payload proto for
  4189  // "clouddeploy.googleapis.com/rollout_update" Platform Log event that
  4190  // describes the rollout update event.
  4191  type RolloutUpdateEvent struct {
  4192  	// Message: Debug message for when a rollout update event occurs.
  4193  	Message string `json:"message,omitempty"`
  4194  	// PipelineUid: Unique identifier of the pipeline.
  4195  	PipelineUid string `json:"pipelineUid,omitempty"`
  4196  	// Release: The name of the `Release`.
  4197  	Release string `json:"release,omitempty"`
  4198  	// ReleaseUid: Unique identifier of the release.
  4199  	ReleaseUid string `json:"releaseUid,omitempty"`
  4200  	// Rollout: The name of the rollout. rollout_uid is not in this log message
  4201  	// because we write some of these log messages at rollout creation time, before
  4202  	// we've generated the uid.
  4203  	Rollout string `json:"rollout,omitempty"`
  4204  	// RolloutUpdateType: The type of the rollout update.
  4205  	//
  4206  	// Possible values:
  4207  	//   "ROLLOUT_UPDATE_TYPE_UNSPECIFIED" - Rollout update type unspecified.
  4208  	//   "PENDING" - rollout state updated to pending.
  4209  	//   "PENDING_RELEASE" - Rollout state updated to pending release.
  4210  	//   "IN_PROGRESS" - Rollout state updated to in progress.
  4211  	//   "CANCELLING" - Rollout state updated to cancelling.
  4212  	//   "CANCELLED" - Rollout state updated to cancelled.
  4213  	//   "HALTED" - Rollout state updated to halted.
  4214  	//   "SUCCEEDED" - Rollout state updated to succeeded.
  4215  	//   "FAILED" - Rollout state updated to failed.
  4216  	//   "APPROVAL_REQUIRED" - Rollout requires approval.
  4217  	//   "APPROVED" - Rollout has been approved.
  4218  	//   "REJECTED" - Rollout has been rejected.
  4219  	//   "ADVANCE_REQUIRED" - Rollout requires advance to the next phase.
  4220  	//   "ADVANCED" - Rollout has been advanced.
  4221  	RolloutUpdateType string `json:"rolloutUpdateType,omitempty"`
  4222  	// TargetId: ID of the target.
  4223  	TargetId string `json:"targetId,omitempty"`
  4224  	// Type: Type of this notification, e.g. for a rollout update event.
  4225  	//
  4226  	// Possible values:
  4227  	//   "TYPE_UNSPECIFIED" - Type is unspecified.
  4228  	//   "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed to be
  4229  	// sent.
  4230  	//   "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed.
  4231  	//   "TYPE_PROCESS_ABORTED" - A process aborted.
  4232  	//   "TYPE_RESTRICTION_VIOLATED" - Restriction check failed.
  4233  	//   "TYPE_RESOURCE_DELETED" - Resource deleted.
  4234  	//   "TYPE_ROLLOUT_UPDATE" - Rollout updated.
  4235  	//   "TYPE_DEPLOY_POLICY_EVALUATION" - Deploy Policy evaluation.
  4236  	//   "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never used. Use
  4237  	// release_render log type instead.
  4238  	Type string `json:"type,omitempty"`
  4239  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  4240  	// include in API requests. By default, fields with empty or default values are
  4241  	// omitted from API requests. See
  4242  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4243  	// details.
  4244  	ForceSendFields []string `json:"-"`
  4245  	// NullFields is a list of field names (e.g. "Message") to include in API
  4246  	// requests with the JSON null value. By default, fields with empty values are
  4247  	// omitted from API requests. See
  4248  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4249  	NullFields []string `json:"-"`
  4250  }
  4251  
  4252  func (s *RolloutUpdateEvent) MarshalJSON() ([]byte, error) {
  4253  	type NoMethod RolloutUpdateEvent
  4254  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4255  }
  4256  
  4257  // RuntimeConfig: RuntimeConfig contains the runtime specific configurations
  4258  // for a deployment strategy.
  4259  type RuntimeConfig struct {
  4260  	// CloudRun: Cloud Run runtime configuration.
  4261  	CloudRun *CloudRunConfig `json:"cloudRun,omitempty"`
  4262  	// Kubernetes: Kubernetes runtime configuration.
  4263  	Kubernetes *KubernetesConfig `json:"kubernetes,omitempty"`
  4264  	// ForceSendFields is a list of field names (e.g. "CloudRun") to
  4265  	// unconditionally include in API requests. By default, fields with empty or
  4266  	// default values are omitted from API requests. See
  4267  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4268  	// details.
  4269  	ForceSendFields []string `json:"-"`
  4270  	// NullFields is a list of field names (e.g. "CloudRun") to include in API
  4271  	// requests with the JSON null value. By default, fields with empty values are
  4272  	// omitted from API requests. See
  4273  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4274  	NullFields []string `json:"-"`
  4275  }
  4276  
  4277  func (s *RuntimeConfig) MarshalJSON() ([]byte, error) {
  4278  	type NoMethod RuntimeConfig
  4279  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4280  }
  4281  
  4282  // SerialPipeline: SerialPipeline defines a sequential set of stages for a
  4283  // `DeliveryPipeline`.
  4284  type SerialPipeline struct {
  4285  	// Stages: Each stage specifies configuration for a `Target`. The ordering of
  4286  	// this list defines the promotion flow.
  4287  	Stages []*Stage `json:"stages,omitempty"`
  4288  	// ForceSendFields is a list of field names (e.g. "Stages") to unconditionally
  4289  	// include in API requests. By default, fields with empty or default values are
  4290  	// omitted from API requests. See
  4291  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4292  	// details.
  4293  	ForceSendFields []string `json:"-"`
  4294  	// NullFields is a list of field names (e.g. "Stages") to include in API
  4295  	// requests with the JSON null value. By default, fields with empty values are
  4296  	// omitted from API requests. See
  4297  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4298  	NullFields []string `json:"-"`
  4299  }
  4300  
  4301  func (s *SerialPipeline) MarshalJSON() ([]byte, error) {
  4302  	type NoMethod SerialPipeline
  4303  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4304  }
  4305  
  4306  // ServiceNetworking: Information about the Kubernetes Service networking
  4307  // configuration.
  4308  type ServiceNetworking struct {
  4309  	// Deployment: Required. Name of the Kubernetes Deployment whose traffic is
  4310  	// managed by the specified Service.
  4311  	Deployment string `json:"deployment,omitempty"`
  4312  	// DisablePodOverprovisioning: Optional. Whether to disable Pod
  4313  	// overprovisioning. If Pod overprovisioning is disabled then Cloud Deploy will
  4314  	// limit the number of total Pods used for the deployment strategy to the
  4315  	// number of Pods the Deployment has on the cluster.
  4316  	DisablePodOverprovisioning bool `json:"disablePodOverprovisioning,omitempty"`
  4317  	// Service: Required. Name of the Kubernetes Service.
  4318  	Service string `json:"service,omitempty"`
  4319  	// ForceSendFields is a list of field names (e.g. "Deployment") to
  4320  	// unconditionally include in API requests. By default, fields with empty or
  4321  	// default values are omitted from API requests. See
  4322  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4323  	// details.
  4324  	ForceSendFields []string `json:"-"`
  4325  	// NullFields is a list of field names (e.g. "Deployment") to include in API
  4326  	// requests with the JSON null value. By default, fields with empty values are
  4327  	// omitted from API requests. See
  4328  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4329  	NullFields []string `json:"-"`
  4330  }
  4331  
  4332  func (s *ServiceNetworking) MarshalJSON() ([]byte, error) {
  4333  	type NoMethod ServiceNetworking
  4334  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4335  }
  4336  
  4337  // SetIamPolicyRequest: Request message for `SetIamPolicy` method.
  4338  type SetIamPolicyRequest struct {
  4339  	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
  4340  	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
  4341  	// policy but certain Google Cloud services (such as Projects) might reject
  4342  	// them.
  4343  	Policy *Policy `json:"policy,omitempty"`
  4344  	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to
  4345  	// modify. Only the fields in the mask will be modified. If no mask is
  4346  	// provided, the following default mask is used: `paths: "bindings, etag"
  4347  	UpdateMask string `json:"updateMask,omitempty"`
  4348  	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
  4349  	// include in API requests. By default, fields with empty or default values are
  4350  	// omitted from API requests. See
  4351  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4352  	// details.
  4353  	ForceSendFields []string `json:"-"`
  4354  	// NullFields is a list of field names (e.g. "Policy") to include in API
  4355  	// requests with the JSON null value. By default, fields with empty values are
  4356  	// omitted from API requests. See
  4357  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4358  	NullFields []string `json:"-"`
  4359  }
  4360  
  4361  func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  4362  	type NoMethod SetIamPolicyRequest
  4363  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4364  }
  4365  
  4366  // SkaffoldGCBRepoSource: Cloud Build V2 Repository containing Skaffold
  4367  // Configs.
  4368  type SkaffoldGCBRepoSource struct {
  4369  	// Path: Optional. Relative path from the repository root to the Skaffold
  4370  	// Config file.
  4371  	Path string `json:"path,omitempty"`
  4372  	// Ref: Optional. Branch or tag to use when cloning the repository.
  4373  	Ref string `json:"ref,omitempty"`
  4374  	// Repository: Required. Name of the Cloud Build V2 Repository. Format is
  4375  	// projects/{project}/locations/{location}/connections/{connection}/repositories
  4376  	// /{repository}.
  4377  	Repository string `json:"repository,omitempty"`
  4378  	// ForceSendFields is a list of field names (e.g. "Path") to unconditionally
  4379  	// include in API requests. By default, fields with empty or default values are
  4380  	// omitted from API requests. See
  4381  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4382  	// details.
  4383  	ForceSendFields []string `json:"-"`
  4384  	// NullFields is a list of field names (e.g. "Path") to include in API requests
  4385  	// with the JSON null value. By default, fields with empty values are omitted
  4386  	// from API requests. See
  4387  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4388  	NullFields []string `json:"-"`
  4389  }
  4390  
  4391  func (s *SkaffoldGCBRepoSource) MarshalJSON() ([]byte, error) {
  4392  	type NoMethod SkaffoldGCBRepoSource
  4393  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4394  }
  4395  
  4396  // SkaffoldGCSSource: Cloud Storage bucket containing Skaffold Config modules.
  4397  type SkaffoldGCSSource struct {
  4398  	// Path: Optional. Relative path from the source to the Skaffold file.
  4399  	Path string `json:"path,omitempty"`
  4400  	// Source: Required. Cloud Storage source paths to copy recursively. For
  4401  	// example, providing "gs://my-bucket/dir/configs/*" will result in Skaffold
  4402  	// copying all files within the "dir/configs" directory in the bucket
  4403  	// "my-bucket".
  4404  	Source string `json:"source,omitempty"`
  4405  	// ForceSendFields is a list of field names (e.g. "Path") to unconditionally
  4406  	// include in API requests. By default, fields with empty or default values are
  4407  	// omitted from API requests. See
  4408  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4409  	// details.
  4410  	ForceSendFields []string `json:"-"`
  4411  	// NullFields is a list of field names (e.g. "Path") to include in API requests
  4412  	// with the JSON null value. By default, fields with empty values are omitted
  4413  	// from API requests. See
  4414  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4415  	NullFields []string `json:"-"`
  4416  }
  4417  
  4418  func (s *SkaffoldGCSSource) MarshalJSON() ([]byte, error) {
  4419  	type NoMethod SkaffoldGCSSource
  4420  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4421  }
  4422  
  4423  // SkaffoldGitSource: Git repository containing Skaffold Config modules.
  4424  type SkaffoldGitSource struct {
  4425  	// Path: Optional. Relative path from the repository root to the Skaffold file.
  4426  	Path string `json:"path,omitempty"`
  4427  	// Ref: Optional. Git branch or tag to use when cloning the repository.
  4428  	Ref string `json:"ref,omitempty"`
  4429  	// Repo: Required. Git repository the package should be cloned from.
  4430  	Repo string `json:"repo,omitempty"`
  4431  	// ForceSendFields is a list of field names (e.g. "Path") to unconditionally
  4432  	// include in API requests. By default, fields with empty or default values are
  4433  	// omitted from API requests. See
  4434  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4435  	// details.
  4436  	ForceSendFields []string `json:"-"`
  4437  	// NullFields is a list of field names (e.g. "Path") to include in API requests
  4438  	// with the JSON null value. By default, fields with empty values are omitted
  4439  	// from API requests. See
  4440  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4441  	NullFields []string `json:"-"`
  4442  }
  4443  
  4444  func (s *SkaffoldGitSource) MarshalJSON() ([]byte, error) {
  4445  	type NoMethod SkaffoldGitSource
  4446  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4447  }
  4448  
  4449  // SkaffoldModules: Skaffold Config modules and their remote source.
  4450  type SkaffoldModules struct {
  4451  	// Configs: Optional. The Skaffold Config modules to use from the specified
  4452  	// source.
  4453  	Configs []string `json:"configs,omitempty"`
  4454  	// Git: Remote git repository containing the Skaffold Config modules.
  4455  	Git *SkaffoldGitSource `json:"git,omitempty"`
  4456  	// GoogleCloudBuildRepo: Cloud Build V2 repository containing the Skaffold
  4457  	// Config modules.
  4458  	GoogleCloudBuildRepo *SkaffoldGCBRepoSource `json:"googleCloudBuildRepo,omitempty"`
  4459  	// GoogleCloudStorage: Cloud Storage bucket containing the Skaffold Config
  4460  	// modules.
  4461  	GoogleCloudStorage *SkaffoldGCSSource `json:"googleCloudStorage,omitempty"`
  4462  	// ForceSendFields is a list of field names (e.g. "Configs") to unconditionally
  4463  	// include in API requests. By default, fields with empty or default values are
  4464  	// omitted from API requests. See
  4465  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4466  	// details.
  4467  	ForceSendFields []string `json:"-"`
  4468  	// NullFields is a list of field names (e.g. "Configs") to include in API
  4469  	// requests with the JSON null value. By default, fields with empty values are
  4470  	// omitted from API requests. See
  4471  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4472  	NullFields []string `json:"-"`
  4473  }
  4474  
  4475  func (s *SkaffoldModules) MarshalJSON() ([]byte, error) {
  4476  	type NoMethod SkaffoldModules
  4477  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4478  }
  4479  
  4480  // SkaffoldSupportedCondition: SkaffoldSupportedCondition contains information
  4481  // about when support for the release's version of Skaffold ends.
  4482  type SkaffoldSupportedCondition struct {
  4483  	// MaintenanceModeTime: The time at which this release's version of Skaffold
  4484  	// will enter maintenance mode.
  4485  	MaintenanceModeTime string `json:"maintenanceModeTime,omitempty"`
  4486  	// SkaffoldSupportState: The Skaffold support state for this release's version
  4487  	// of Skaffold.
  4488  	//
  4489  	// Possible values:
  4490  	//   "SKAFFOLD_SUPPORT_STATE_UNSPECIFIED" - Default value. This value is
  4491  	// unused.
  4492  	//   "SKAFFOLD_SUPPORT_STATE_SUPPORTED" - This Skaffold version is currently
  4493  	// supported.
  4494  	//   "SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE" - This Skaffold version is in
  4495  	// maintenance mode.
  4496  	//   "SKAFFOLD_SUPPORT_STATE_UNSUPPORTED" - This Skaffold version is no longer
  4497  	// supported.
  4498  	SkaffoldSupportState string `json:"skaffoldSupportState,omitempty"`
  4499  	// Status: True if the version of Skaffold used by this release is supported.
  4500  	Status bool `json:"status,omitempty"`
  4501  	// SupportExpirationTime: The time at which this release's version of Skaffold
  4502  	// will no longer be supported.
  4503  	SupportExpirationTime string `json:"supportExpirationTime,omitempty"`
  4504  	// ForceSendFields is a list of field names (e.g. "MaintenanceModeTime") to
  4505  	// unconditionally include in API requests. By default, fields with empty or
  4506  	// default values are omitted from API requests. See
  4507  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4508  	// details.
  4509  	ForceSendFields []string `json:"-"`
  4510  	// NullFields is a list of field names (e.g. "MaintenanceModeTime") to include
  4511  	// in API requests with the JSON null value. By default, fields with empty
  4512  	// values are omitted from API requests. See
  4513  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4514  	NullFields []string `json:"-"`
  4515  }
  4516  
  4517  func (s *SkaffoldSupportedCondition) MarshalJSON() ([]byte, error) {
  4518  	type NoMethod SkaffoldSupportedCondition
  4519  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4520  }
  4521  
  4522  // SkaffoldVersion: Details of a supported Skaffold version.
  4523  type SkaffoldVersion struct {
  4524  	// MaintenanceModeTime: The time at which this version of Skaffold will enter
  4525  	// maintenance mode.
  4526  	MaintenanceModeTime string `json:"maintenanceModeTime,omitempty"`
  4527  	// SupportEndDate: Date when this version is expected to no longer be
  4528  	// supported.
  4529  	SupportEndDate *Date `json:"supportEndDate,omitempty"`
  4530  	// SupportExpirationTime: The time at which this version of Skaffold will no
  4531  	// longer be supported.
  4532  	SupportExpirationTime string `json:"supportExpirationTime,omitempty"`
  4533  	// Version: Release version number. For example, "1.20.3".
  4534  	Version string `json:"version,omitempty"`
  4535  	// ForceSendFields is a list of field names (e.g. "MaintenanceModeTime") to
  4536  	// unconditionally include in API requests. By default, fields with empty or
  4537  	// default values are omitted from API requests. See
  4538  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4539  	// details.
  4540  	ForceSendFields []string `json:"-"`
  4541  	// NullFields is a list of field names (e.g. "MaintenanceModeTime") to include
  4542  	// in API requests with the JSON null value. By default, fields with empty
  4543  	// values are omitted from API requests. See
  4544  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4545  	NullFields []string `json:"-"`
  4546  }
  4547  
  4548  func (s *SkaffoldVersion) MarshalJSON() ([]byte, error) {
  4549  	type NoMethod SkaffoldVersion
  4550  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4551  }
  4552  
  4553  // Stage: Stage specifies a location to which to deploy.
  4554  type Stage struct {
  4555  	// DeployParameters: Optional. The deploy parameters to use for the target in
  4556  	// this stage.
  4557  	DeployParameters []*DeployParameters `json:"deployParameters,omitempty"`
  4558  	// Profiles: Skaffold profiles to use when rendering the manifest for this
  4559  	// stage's `Target`.
  4560  	Profiles []string `json:"profiles,omitempty"`
  4561  	// Strategy: Optional. The strategy to use for a `Rollout` to this stage.
  4562  	Strategy *Strategy `json:"strategy,omitempty"`
  4563  	// TargetId: The target_id to which this stage points. This field refers
  4564  	// exclusively to the last segment of a target name. For example, this field
  4565  	// would just be `my-target` (rather than
  4566  	// `projects/project/locations/location/targets/my-target`). The location of
  4567  	// the `Target` is inferred to be the same as the location of the
  4568  	// `DeliveryPipeline` that contains this `Stage`.
  4569  	TargetId string `json:"targetId,omitempty"`
  4570  	// ForceSendFields is a list of field names (e.g. "DeployParameters") to
  4571  	// unconditionally include in API requests. By default, fields with empty or
  4572  	// default values are omitted from API requests. See
  4573  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4574  	// details.
  4575  	ForceSendFields []string `json:"-"`
  4576  	// NullFields is a list of field names (e.g. "DeployParameters") to include in
  4577  	// API requests with the JSON null value. By default, fields with empty values
  4578  	// are omitted from API requests. See
  4579  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4580  	NullFields []string `json:"-"`
  4581  }
  4582  
  4583  func (s *Stage) MarshalJSON() ([]byte, error) {
  4584  	type NoMethod Stage
  4585  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4586  }
  4587  
  4588  // Standard: Standard represents the standard deployment strategy.
  4589  type Standard struct {
  4590  	// Postdeploy: Optional. Configuration for the postdeploy job. If this is not
  4591  	// configured, postdeploy job will not be present.
  4592  	Postdeploy *Postdeploy `json:"postdeploy,omitempty"`
  4593  	// Predeploy: Optional. Configuration for the predeploy job. If this is not
  4594  	// configured, predeploy job will not be present.
  4595  	Predeploy *Predeploy `json:"predeploy,omitempty"`
  4596  	// Verify: Whether to verify a deployment.
  4597  	Verify bool `json:"verify,omitempty"`
  4598  	// ForceSendFields is a list of field names (e.g. "Postdeploy") to
  4599  	// unconditionally include in API requests. By default, fields with empty or
  4600  	// default values are omitted from API requests. See
  4601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4602  	// details.
  4603  	ForceSendFields []string `json:"-"`
  4604  	// NullFields is a list of field names (e.g. "Postdeploy") to include in API
  4605  	// requests with the JSON null value. By default, fields with empty values are
  4606  	// omitted from API requests. See
  4607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4608  	NullFields []string `json:"-"`
  4609  }
  4610  
  4611  func (s *Standard) MarshalJSON() ([]byte, error) {
  4612  	type NoMethod Standard
  4613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4614  }
  4615  
  4616  // Status: The `Status` type defines a logical error model that is suitable for
  4617  // different programming environments, including REST APIs and RPC APIs. It is
  4618  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  4619  // pieces of data: error code, error message, and error details. You can find
  4620  // out more about this error model and how to work with it in the API Design
  4621  // Guide (https://cloud.google.com/apis/design/errors).
  4622  type Status struct {
  4623  	// Code: The status code, which should be an enum value of google.rpc.Code.
  4624  	Code int64 `json:"code,omitempty"`
  4625  	// Details: A list of messages that carry the error details. There is a common
  4626  	// set of message types for APIs to use.
  4627  	Details []googleapi.RawMessage `json:"details,omitempty"`
  4628  	// Message: A developer-facing error message, which should be in English. Any
  4629  	// user-facing error message should be localized and sent in the
  4630  	// google.rpc.Status.details field, or localized by the client.
  4631  	Message string `json:"message,omitempty"`
  4632  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  4633  	// include in API requests. By default, fields with empty or default values are
  4634  	// omitted from API requests. See
  4635  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4636  	// details.
  4637  	ForceSendFields []string `json:"-"`
  4638  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  4639  	// with the JSON null value. By default, fields with empty values are omitted
  4640  	// from API requests. See
  4641  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4642  	NullFields []string `json:"-"`
  4643  }
  4644  
  4645  func (s *Status) MarshalJSON() ([]byte, error) {
  4646  	type NoMethod Status
  4647  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4648  }
  4649  
  4650  // Strategy: Strategy contains deployment strategy information.
  4651  type Strategy struct {
  4652  	// Canary: Canary deployment strategy provides progressive percentage based
  4653  	// deployments to a Target.
  4654  	Canary *Canary `json:"canary,omitempty"`
  4655  	// Standard: Standard deployment strategy executes a single deploy and allows
  4656  	// verifying the deployment.
  4657  	Standard *Standard `json:"standard,omitempty"`
  4658  	// ForceSendFields is a list of field names (e.g. "Canary") to unconditionally
  4659  	// include in API requests. By default, fields with empty or default values are
  4660  	// omitted from API requests. See
  4661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4662  	// details.
  4663  	ForceSendFields []string `json:"-"`
  4664  	// NullFields is a list of field names (e.g. "Canary") to include in API
  4665  	// requests with the JSON null value. By default, fields with empty values are
  4666  	// omitted from API requests. See
  4667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4668  	NullFields []string `json:"-"`
  4669  }
  4670  
  4671  func (s *Strategy) MarshalJSON() ([]byte, error) {
  4672  	type NoMethod Strategy
  4673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4674  }
  4675  
  4676  // Target: A `Target` resource in the Cloud Deploy API. A `Target` defines a
  4677  // location to which a Skaffold configuration can be deployed.
  4678  type Target struct {
  4679  	// Annotations: Optional. User annotations. These attributes can only be set
  4680  	// and used by the user, and not by Cloud Deploy. See
  4681  	// https://google.aip.dev/128#annotations for more details such as format and
  4682  	// size limitations.
  4683  	Annotations map[string]string `json:"annotations,omitempty"`
  4684  	// AnthosCluster: Optional. Information specifying an Anthos Cluster.
  4685  	AnthosCluster *AnthosCluster `json:"anthosCluster,omitempty"`
  4686  	// CreateTime: Output only. Time at which the `Target` was created.
  4687  	CreateTime string `json:"createTime,omitempty"`
  4688  	// CustomTarget: Optional. Information specifying a Custom Target.
  4689  	CustomTarget *CustomTarget `json:"customTarget,omitempty"`
  4690  	// DeployParameters: Optional. The deploy parameters to use for this target.
  4691  	DeployParameters map[string]string `json:"deployParameters,omitempty"`
  4692  	// Description: Optional. Description of the `Target`. Max length is 255
  4693  	// characters.
  4694  	Description string `json:"description,omitempty"`
  4695  	// Etag: Optional. This checksum is computed by the server based on the value
  4696  	// of other fields, and may be sent on update and delete requests to ensure the
  4697  	// client has an up-to-date value before proceeding.
  4698  	Etag string `json:"etag,omitempty"`
  4699  	// ExecutionConfigs: Configurations for all execution that relates to this
  4700  	// `Target`. Each `ExecutionEnvironmentUsage` value may only be used in a
  4701  	// single configuration; using the same value multiple times is an error. When
  4702  	// one or more configurations are specified, they must include the `RENDER` and
  4703  	// `DEPLOY` `ExecutionEnvironmentUsage` values. When no configurations are
  4704  	// specified, execution will use the default specified in `DefaultPool`.
  4705  	ExecutionConfigs []*ExecutionConfig `json:"executionConfigs,omitempty"`
  4706  	// Gke: Optional. Information specifying a GKE Cluster.
  4707  	Gke *GkeCluster `json:"gke,omitempty"`
  4708  	// Labels: Optional. Labels are attributes that can be set and used by both the
  4709  	// user and by Cloud Deploy. Labels must meet the following constraints: * Keys
  4710  	// and values can contain only lowercase letters, numeric characters,
  4711  	// underscores, and dashes. * All characters must use UTF-8 encoding, and
  4712  	// international characters are allowed. * Keys must start with a lowercase
  4713  	// letter or international character. * Each resource is limited to a maximum
  4714  	// of 64 labels. Both keys and values are additionally constrained to be <= 128
  4715  	// bytes.
  4716  	Labels map[string]string `json:"labels,omitempty"`
  4717  	// MultiTarget: Optional. Information specifying a multiTarget.
  4718  	MultiTarget *MultiTarget `json:"multiTarget,omitempty"`
  4719  	// Name: Optional. Name of the `Target`. Format is
  4720  	// `projects/{project}/locations/{location}/targets/{target}`. The `target`
  4721  	// component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
  4722  	Name string `json:"name,omitempty"`
  4723  	// RequireApproval: Optional. Whether or not the `Target` requires approval.
  4724  	RequireApproval bool `json:"requireApproval,omitempty"`
  4725  	// Run: Optional. Information specifying a Cloud Run deployment target.
  4726  	Run *CloudRunLocation `json:"run,omitempty"`
  4727  	// TargetId: Output only. Resource id of the `Target`.
  4728  	TargetId string `json:"targetId,omitempty"`
  4729  	// Uid: Output only. Unique identifier of the `Target`.
  4730  	Uid string `json:"uid,omitempty"`
  4731  	// UpdateTime: Output only. Most recent time at which the `Target` was updated.
  4732  	UpdateTime string `json:"updateTime,omitempty"`
  4733  
  4734  	// ServerResponse contains the HTTP response code and headers from the server.
  4735  	googleapi.ServerResponse `json:"-"`
  4736  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  4737  	// unconditionally include in API requests. By default, fields with empty or
  4738  	// default values are omitted from API requests. See
  4739  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4740  	// details.
  4741  	ForceSendFields []string `json:"-"`
  4742  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  4743  	// requests with the JSON null value. By default, fields with empty values are
  4744  	// omitted from API requests. See
  4745  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4746  	NullFields []string `json:"-"`
  4747  }
  4748  
  4749  func (s *Target) MarshalJSON() ([]byte, error) {
  4750  	type NoMethod Target
  4751  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4752  }
  4753  
  4754  // TargetArtifact: The artifacts produced by a target render operation.
  4755  type TargetArtifact struct {
  4756  	// ArtifactUri: Output only. URI of a directory containing the artifacts. This
  4757  	// contains deployment configuration used by Skaffold during a rollout, and all
  4758  	// paths are relative to this location.
  4759  	ArtifactUri string `json:"artifactUri,omitempty"`
  4760  	// ManifestPath: Output only. File path of the rendered manifest relative to
  4761  	// the URI.
  4762  	ManifestPath string `json:"manifestPath,omitempty"`
  4763  	// PhaseArtifacts: Output only. Map from the phase ID to the phase artifacts
  4764  	// for the `Target`.
  4765  	PhaseArtifacts map[string]PhaseArtifact `json:"phaseArtifacts,omitempty"`
  4766  	// SkaffoldConfigPath: Output only. File path of the resolved Skaffold
  4767  	// configuration relative to the URI.
  4768  	SkaffoldConfigPath string `json:"skaffoldConfigPath,omitempty"`
  4769  	// ForceSendFields is a list of field names (e.g. "ArtifactUri") to
  4770  	// unconditionally include in API requests. By default, fields with empty or
  4771  	// default values are omitted from API requests. See
  4772  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4773  	// details.
  4774  	ForceSendFields []string `json:"-"`
  4775  	// NullFields is a list of field names (e.g. "ArtifactUri") to include in API
  4776  	// requests with the JSON null value. By default, fields with empty values are
  4777  	// omitted from API requests. See
  4778  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4779  	NullFields []string `json:"-"`
  4780  }
  4781  
  4782  func (s *TargetArtifact) MarshalJSON() ([]byte, error) {
  4783  	type NoMethod TargetArtifact
  4784  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4785  }
  4786  
  4787  // TargetAttribute: Contains criteria for selecting Targets.
  4788  type TargetAttribute struct {
  4789  	// Id: ID of the `Target`. The value of this field could be one of the
  4790  	// following: * The last segment of a target name. It only needs the ID to
  4791  	// determine which target is being referred to * "*", all targets in a
  4792  	// location.
  4793  	Id string `json:"id,omitempty"`
  4794  	// Labels: Target labels.
  4795  	Labels map[string]string `json:"labels,omitempty"`
  4796  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  4797  	// include in API requests. By default, fields with empty or default values are
  4798  	// omitted from API requests. See
  4799  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4800  	// details.
  4801  	ForceSendFields []string `json:"-"`
  4802  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  4803  	// with the JSON null value. By default, fields with empty values are omitted
  4804  	// from API requests. See
  4805  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4806  	NullFields []string `json:"-"`
  4807  }
  4808  
  4809  func (s *TargetAttribute) MarshalJSON() ([]byte, error) {
  4810  	type NoMethod TargetAttribute
  4811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4812  }
  4813  
  4814  // TargetNotificationEvent: Payload proto for
  4815  // "clouddeploy.googleapis.com/target_notification" Platform Log event that
  4816  // describes the failure to send target status change Pub/Sub notification.
  4817  type TargetNotificationEvent struct {
  4818  	// Message: Debug message for when a notification fails to send.
  4819  	Message string `json:"message,omitempty"`
  4820  	// Target: The name of the `Target`.
  4821  	Target string `json:"target,omitempty"`
  4822  	// Type: Type of this notification, e.g. for a Pub/Sub failure.
  4823  	//
  4824  	// Possible values:
  4825  	//   "TYPE_UNSPECIFIED" - Type is unspecified.
  4826  	//   "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed to be
  4827  	// sent.
  4828  	//   "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed.
  4829  	//   "TYPE_PROCESS_ABORTED" - A process aborted.
  4830  	//   "TYPE_RESTRICTION_VIOLATED" - Restriction check failed.
  4831  	//   "TYPE_RESOURCE_DELETED" - Resource deleted.
  4832  	//   "TYPE_ROLLOUT_UPDATE" - Rollout updated.
  4833  	//   "TYPE_DEPLOY_POLICY_EVALUATION" - Deploy Policy evaluation.
  4834  	//   "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never used. Use
  4835  	// release_render log type instead.
  4836  	Type string `json:"type,omitempty"`
  4837  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  4838  	// include in API requests. By default, fields with empty or default values are
  4839  	// omitted from API requests. See
  4840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4841  	// details.
  4842  	ForceSendFields []string `json:"-"`
  4843  	// NullFields is a list of field names (e.g. "Message") to include in API
  4844  	// requests with the JSON null value. By default, fields with empty values are
  4845  	// omitted from API requests. See
  4846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4847  	NullFields []string `json:"-"`
  4848  }
  4849  
  4850  func (s *TargetNotificationEvent) MarshalJSON() ([]byte, error) {
  4851  	type NoMethod TargetNotificationEvent
  4852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4853  }
  4854  
  4855  // TargetRender: Details of rendering for a single target.
  4856  type TargetRender struct {
  4857  	// FailureCause: Output only. Reason this render failed. This will always be
  4858  	// unspecified while the render in progress.
  4859  	//
  4860  	// Possible values:
  4861  	//   "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified.
  4862  	//   "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either because
  4863  	// it is not enabled or because Cloud Deploy has insufficient permissions. See
  4864  	// [required
  4865  	// permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account
  4866  	// #required_permissions).
  4867  	//   "EXECUTION_FAILED" - The render operation did not complete successfully;
  4868  	// check Cloud Build logs.
  4869  	//   "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud
  4870  	// Deploy's request. See failure_message for additional details.
  4871  	//   "VERIFICATION_CONFIG_NOT_FOUND" - The render operation did not complete
  4872  	// successfully because the verification stanza required for verify was not
  4873  	// found on the Skaffold configuration.
  4874  	//   "CUSTOM_ACTION_NOT_FOUND" - The render operation did not complete
  4875  	// successfully because the custom action required for predeploy or postdeploy
  4876  	// was not found in the Skaffold configuration. See failure_message for
  4877  	// additional details.
  4878  	//   "DEPLOYMENT_STRATEGY_NOT_SUPPORTED" - Release failed during rendering
  4879  	// because the release configuration is not supported with the specified
  4880  	// deployment strategy.
  4881  	//   "RENDER_FEATURE_NOT_SUPPORTED" - The render operation had a feature
  4882  	// configured that is not supported.
  4883  	FailureCause string `json:"failureCause,omitempty"`
  4884  	// FailureMessage: Output only. Additional information about the render
  4885  	// failure, if available.
  4886  	FailureMessage string `json:"failureMessage,omitempty"`
  4887  	// Metadata: Output only. Metadata related to the `Release` render for this
  4888  	// Target.
  4889  	Metadata *RenderMetadata `json:"metadata,omitempty"`
  4890  	// RenderingBuild: Output only. The resource name of the Cloud Build `Build`
  4891  	// object that is used to render the manifest for this target. Format is
  4892  	// `projects/{project}/locations/{location}/builds/{build}`.
  4893  	RenderingBuild string `json:"renderingBuild,omitempty"`
  4894  	// RenderingState: Output only. Current state of the render operation for this
  4895  	// Target.
  4896  	//
  4897  	// Possible values:
  4898  	//   "TARGET_RENDER_STATE_UNSPECIFIED" - The render operation state is
  4899  	// unspecified.
  4900  	//   "SUCCEEDED" - The render operation has completed successfully.
  4901  	//   "FAILED" - The render operation has failed.
  4902  	//   "IN_PROGRESS" - The render operation is in progress.
  4903  	RenderingState string `json:"renderingState,omitempty"`
  4904  	// ForceSendFields is a list of field names (e.g. "FailureCause") to
  4905  	// unconditionally include in API requests. By default, fields with empty or
  4906  	// default values are 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. "FailureCause") to include in API
  4911  	// requests with the JSON null value. By default, fields with empty values are
  4912  	// omitted 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 *TargetRender) MarshalJSON() ([]byte, error) {
  4918  	type NoMethod TargetRender
  4919  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4920  }
  4921  
  4922  // TargetsPresentCondition: `TargetsPresentCondition` contains information on
  4923  // any Targets referenced in the Delivery Pipeline that do not actually exist.
  4924  type TargetsPresentCondition struct {
  4925  	// MissingTargets: The list of Target names that do not exist. For example,
  4926  	// `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
  4927  	MissingTargets []string `json:"missingTargets,omitempty"`
  4928  	// Status: True if there aren't any missing Targets.
  4929  	Status bool `json:"status,omitempty"`
  4930  	// UpdateTime: Last time the condition was updated.
  4931  	UpdateTime string `json:"updateTime,omitempty"`
  4932  	// ForceSendFields is a list of field names (e.g. "MissingTargets") to
  4933  	// unconditionally include in API requests. By default, fields with empty or
  4934  	// default values are omitted from API requests. See
  4935  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4936  	// details.
  4937  	ForceSendFields []string `json:"-"`
  4938  	// NullFields is a list of field names (e.g. "MissingTargets") to include in
  4939  	// API requests with the JSON null value. By default, fields with empty values
  4940  	// are omitted from API requests. See
  4941  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4942  	NullFields []string `json:"-"`
  4943  }
  4944  
  4945  func (s *TargetsPresentCondition) MarshalJSON() ([]byte, error) {
  4946  	type NoMethod TargetsPresentCondition
  4947  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4948  }
  4949  
  4950  // TargetsTypeCondition: TargetsTypeCondition contains information on whether
  4951  // the Targets defined in the Delivery Pipeline are of the same type.
  4952  type TargetsTypeCondition struct {
  4953  	// ErrorDetails: Human readable error message.
  4954  	ErrorDetails string `json:"errorDetails,omitempty"`
  4955  	// Status: True if the targets are all a comparable type. For example this is
  4956  	// true if all targets are GKE clusters. This is false if some targets are
  4957  	// Cloud Run targets and others are GKE clusters.
  4958  	Status bool `json:"status,omitempty"`
  4959  	// ForceSendFields is a list of field names (e.g. "ErrorDetails") to
  4960  	// unconditionally include in API requests. By default, fields with empty or
  4961  	// default values are omitted from API requests. See
  4962  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4963  	// details.
  4964  	ForceSendFields []string `json:"-"`
  4965  	// NullFields is a list of field names (e.g. "ErrorDetails") to include in API
  4966  	// requests with the JSON null value. By default, fields with empty values are
  4967  	// omitted from API requests. See
  4968  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4969  	NullFields []string `json:"-"`
  4970  }
  4971  
  4972  func (s *TargetsTypeCondition) MarshalJSON() ([]byte, error) {
  4973  	type NoMethod TargetsTypeCondition
  4974  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4975  }
  4976  
  4977  // TerminateJobRunRequest: The request object used by `TerminateJobRun`.
  4978  type TerminateJobRunRequest struct {
  4979  }
  4980  
  4981  // TerminateJobRunResponse: The response object from `TerminateJobRun`.
  4982  type TerminateJobRunResponse struct {
  4983  	// ServerResponse contains the HTTP response code and headers from the server.
  4984  	googleapi.ServerResponse `json:"-"`
  4985  }
  4986  
  4987  // TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
  4988  type TestIamPermissionsRequest struct {
  4989  	// Permissions: The set of permissions to check for the `resource`. Permissions
  4990  	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
  4991  	// information see IAM Overview
  4992  	// (https://cloud.google.com/iam/docs/overview#permissions).
  4993  	Permissions []string `json:"permissions,omitempty"`
  4994  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  4995  	// unconditionally include in API requests. By default, fields with empty or
  4996  	// default values are omitted from API requests. See
  4997  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4998  	// details.
  4999  	ForceSendFields []string `json:"-"`
  5000  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  5001  	// requests with the JSON null value. By default, fields with empty values are
  5002  	// omitted from API requests. See
  5003  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5004  	NullFields []string `json:"-"`
  5005  }
  5006  
  5007  func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
  5008  	type NoMethod TestIamPermissionsRequest
  5009  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5010  }
  5011  
  5012  // TestIamPermissionsResponse: Response message for `TestIamPermissions`
  5013  // method.
  5014  type TestIamPermissionsResponse struct {
  5015  	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
  5016  	// caller is allowed.
  5017  	Permissions []string `json:"permissions,omitempty"`
  5018  
  5019  	// ServerResponse contains the HTTP response code and headers from the server.
  5020  	googleapi.ServerResponse `json:"-"`
  5021  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  5022  	// unconditionally include in API requests. By default, fields with empty or
  5023  	// default values are omitted from API requests. See
  5024  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5025  	// details.
  5026  	ForceSendFields []string `json:"-"`
  5027  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  5028  	// requests with the JSON null value. By default, fields with empty values are
  5029  	// omitted from API requests. See
  5030  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5031  	NullFields []string `json:"-"`
  5032  }
  5033  
  5034  func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
  5035  	type NoMethod TestIamPermissionsResponse
  5036  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5037  }
  5038  
  5039  // VerifyJob: A verify Job.
  5040  type VerifyJob struct {
  5041  }
  5042  
  5043  // VerifyJobRun: VerifyJobRun contains information specific to a verify
  5044  // `JobRun`.
  5045  type VerifyJobRun struct {
  5046  	// ArtifactUri: Output only. URI of a directory containing the verify
  5047  	// artifacts. This contains the Skaffold event log.
  5048  	ArtifactUri string `json:"artifactUri,omitempty"`
  5049  	// Build: Output only. The resource name of the Cloud Build `Build` object that
  5050  	// is used to verify. Format is
  5051  	// `projects/{project}/locations/{location}/builds/{build}`.
  5052  	Build string `json:"build,omitempty"`
  5053  	// EventLogPath: Output only. File path of the Skaffold event log relative to
  5054  	// the artifact URI.
  5055  	EventLogPath string `json:"eventLogPath,omitempty"`
  5056  	// FailureCause: Output only. The reason the verify failed. This will always be
  5057  	// unspecified while the verify is in progress or if it succeeded.
  5058  	//
  5059  	// Possible values:
  5060  	//   "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified.
  5061  	//   "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either because
  5062  	// it is not enabled or because Cloud Deploy has insufficient permissions. See
  5063  	// [required
  5064  	// permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account
  5065  	// #required_permissions).
  5066  	//   "EXECUTION_FAILED" - The verify operation did not complete successfully;
  5067  	// check Cloud Build logs.
  5068  	//   "DEADLINE_EXCEEDED" - The verify job run did not complete within the
  5069  	// alloted time.
  5070  	//   "VERIFICATION_CONFIG_NOT_FOUND" - No Skaffold verify configuration was
  5071  	// found.
  5072  	//   "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud
  5073  	// Deploy's request. See failure_message for additional details.
  5074  	FailureCause string `json:"failureCause,omitempty"`
  5075  	// FailureMessage: Output only. Additional information about the verify
  5076  	// failure, if available.
  5077  	FailureMessage string `json:"failureMessage,omitempty"`
  5078  	// ForceSendFields is a list of field names (e.g. "ArtifactUri") to
  5079  	// unconditionally include in API requests. By default, fields with empty or
  5080  	// default values are omitted from API requests. See
  5081  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5082  	// details.
  5083  	ForceSendFields []string `json:"-"`
  5084  	// NullFields is a list of field names (e.g. "ArtifactUri") to include in API
  5085  	// requests with the JSON null value. By default, fields with empty values are
  5086  	// omitted from API requests. See
  5087  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5088  	NullFields []string `json:"-"`
  5089  }
  5090  
  5091  func (s *VerifyJobRun) MarshalJSON() ([]byte, error) {
  5092  	type NoMethod VerifyJobRun
  5093  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5094  }
  5095  
  5096  type ProjectsLocationsGetCall struct {
  5097  	s            *Service
  5098  	name         string
  5099  	urlParams_   gensupport.URLParams
  5100  	ifNoneMatch_ string
  5101  	ctx_         context.Context
  5102  	header_      http.Header
  5103  }
  5104  
  5105  // Get: Gets information about a location.
  5106  //
  5107  // - name: Resource name for the location.
  5108  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
  5109  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5110  	c.name = name
  5111  	return c
  5112  }
  5113  
  5114  // Fields allows partial responses to be retrieved. See
  5115  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5116  // details.
  5117  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
  5118  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5119  	return c
  5120  }
  5121  
  5122  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5123  // object's ETag matches the given value. This is useful for getting updates
  5124  // only after the object has changed since the last request.
  5125  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
  5126  	c.ifNoneMatch_ = entityTag
  5127  	return c
  5128  }
  5129  
  5130  // Context sets the context to be used in this call's Do method.
  5131  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
  5132  	c.ctx_ = ctx
  5133  	return c
  5134  }
  5135  
  5136  // Header returns a http.Header that can be modified by the caller to add
  5137  // headers to the request.
  5138  func (c *ProjectsLocationsGetCall) Header() http.Header {
  5139  	if c.header_ == nil {
  5140  		c.header_ = make(http.Header)
  5141  	}
  5142  	return c.header_
  5143  }
  5144  
  5145  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  5146  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5147  	if c.ifNoneMatch_ != "" {
  5148  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5149  	}
  5150  	var body io.Reader = nil
  5151  	c.urlParams_.Set("alt", alt)
  5152  	c.urlParams_.Set("prettyPrint", "false")
  5153  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5154  	urls += "?" + c.urlParams_.Encode()
  5155  	req, err := http.NewRequest("GET", urls, body)
  5156  	if err != nil {
  5157  		return nil, err
  5158  	}
  5159  	req.Header = reqHeaders
  5160  	googleapi.Expand(req.URL, map[string]string{
  5161  		"name": c.name,
  5162  	})
  5163  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5164  }
  5165  
  5166  // Do executes the "clouddeploy.projects.locations.get" call.
  5167  // Any non-2xx status code is an error. Response headers are in either
  5168  // *Location.ServerResponse.Header or (if a response was returned at all) in
  5169  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5170  // whether the returned error was because http.StatusNotModified was returned.
  5171  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
  5172  	gensupport.SetOptions(c.urlParams_, opts...)
  5173  	res, err := c.doRequest("json")
  5174  	if res != nil && res.StatusCode == http.StatusNotModified {
  5175  		if res.Body != nil {
  5176  			res.Body.Close()
  5177  		}
  5178  		return nil, gensupport.WrapError(&googleapi.Error{
  5179  			Code:   res.StatusCode,
  5180  			Header: res.Header,
  5181  		})
  5182  	}
  5183  	if err != nil {
  5184  		return nil, err
  5185  	}
  5186  	defer googleapi.CloseBody(res)
  5187  	if err := googleapi.CheckResponse(res); err != nil {
  5188  		return nil, gensupport.WrapError(err)
  5189  	}
  5190  	ret := &Location{
  5191  		ServerResponse: googleapi.ServerResponse{
  5192  			Header:         res.Header,
  5193  			HTTPStatusCode: res.StatusCode,
  5194  		},
  5195  	}
  5196  	target := &ret
  5197  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5198  		return nil, err
  5199  	}
  5200  	return ret, nil
  5201  }
  5202  
  5203  type ProjectsLocationsGetConfigCall struct {
  5204  	s            *Service
  5205  	name         string
  5206  	urlParams_   gensupport.URLParams
  5207  	ifNoneMatch_ string
  5208  	ctx_         context.Context
  5209  	header_      http.Header
  5210  }
  5211  
  5212  // GetConfig: Gets the configuration for a location.
  5213  //
  5214  // - name: Name of requested configuration.
  5215  func (r *ProjectsLocationsService) GetConfig(name string) *ProjectsLocationsGetConfigCall {
  5216  	c := &ProjectsLocationsGetConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5217  	c.name = name
  5218  	return c
  5219  }
  5220  
  5221  // Fields allows partial responses to be retrieved. See
  5222  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5223  // details.
  5224  func (c *ProjectsLocationsGetConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetConfigCall {
  5225  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5226  	return c
  5227  }
  5228  
  5229  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5230  // object's ETag matches the given value. This is useful for getting updates
  5231  // only after the object has changed since the last request.
  5232  func (c *ProjectsLocationsGetConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetConfigCall {
  5233  	c.ifNoneMatch_ = entityTag
  5234  	return c
  5235  }
  5236  
  5237  // Context sets the context to be used in this call's Do method.
  5238  func (c *ProjectsLocationsGetConfigCall) Context(ctx context.Context) *ProjectsLocationsGetConfigCall {
  5239  	c.ctx_ = ctx
  5240  	return c
  5241  }
  5242  
  5243  // Header returns a http.Header that can be modified by the caller to add
  5244  // headers to the request.
  5245  func (c *ProjectsLocationsGetConfigCall) Header() http.Header {
  5246  	if c.header_ == nil {
  5247  		c.header_ = make(http.Header)
  5248  	}
  5249  	return c.header_
  5250  }
  5251  
  5252  func (c *ProjectsLocationsGetConfigCall) doRequest(alt string) (*http.Response, error) {
  5253  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5254  	if c.ifNoneMatch_ != "" {
  5255  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5256  	}
  5257  	var body io.Reader = nil
  5258  	c.urlParams_.Set("alt", alt)
  5259  	c.urlParams_.Set("prettyPrint", "false")
  5260  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5261  	urls += "?" + c.urlParams_.Encode()
  5262  	req, err := http.NewRequest("GET", urls, body)
  5263  	if err != nil {
  5264  		return nil, err
  5265  	}
  5266  	req.Header = reqHeaders
  5267  	googleapi.Expand(req.URL, map[string]string{
  5268  		"name": c.name,
  5269  	})
  5270  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5271  }
  5272  
  5273  // Do executes the "clouddeploy.projects.locations.getConfig" call.
  5274  // Any non-2xx status code is an error. Response headers are in either
  5275  // *Config.ServerResponse.Header or (if a response was returned at all) in
  5276  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5277  // whether the returned error was because http.StatusNotModified was returned.
  5278  func (c *ProjectsLocationsGetConfigCall) Do(opts ...googleapi.CallOption) (*Config, error) {
  5279  	gensupport.SetOptions(c.urlParams_, opts...)
  5280  	res, err := c.doRequest("json")
  5281  	if res != nil && res.StatusCode == http.StatusNotModified {
  5282  		if res.Body != nil {
  5283  			res.Body.Close()
  5284  		}
  5285  		return nil, gensupport.WrapError(&googleapi.Error{
  5286  			Code:   res.StatusCode,
  5287  			Header: res.Header,
  5288  		})
  5289  	}
  5290  	if err != nil {
  5291  		return nil, err
  5292  	}
  5293  	defer googleapi.CloseBody(res)
  5294  	if err := googleapi.CheckResponse(res); err != nil {
  5295  		return nil, gensupport.WrapError(err)
  5296  	}
  5297  	ret := &Config{
  5298  		ServerResponse: googleapi.ServerResponse{
  5299  			Header:         res.Header,
  5300  			HTTPStatusCode: res.StatusCode,
  5301  		},
  5302  	}
  5303  	target := &ret
  5304  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5305  		return nil, err
  5306  	}
  5307  	return ret, nil
  5308  }
  5309  
  5310  type ProjectsLocationsListCall struct {
  5311  	s            *Service
  5312  	name         string
  5313  	urlParams_   gensupport.URLParams
  5314  	ifNoneMatch_ string
  5315  	ctx_         context.Context
  5316  	header_      http.Header
  5317  }
  5318  
  5319  // List: Lists information about the supported locations for this service.
  5320  //
  5321  // - name: The resource that owns the locations collection, if applicable.
  5322  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
  5323  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5324  	c.name = name
  5325  	return c
  5326  }
  5327  
  5328  // Filter sets the optional parameter "filter": A filter to narrow down results
  5329  // to a preferred subset. The filtering language accepts strings like
  5330  // "displayName=tokyo", and is documented in more detail in AIP-160
  5331  // (https://google.aip.dev/160).
  5332  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  5333  	c.urlParams_.Set("filter", filter)
  5334  	return c
  5335  }
  5336  
  5337  // PageSize sets the optional parameter "pageSize": The maximum number of
  5338  // results to return. If not set, the service selects a default.
  5339  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  5340  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5341  	return c
  5342  }
  5343  
  5344  // PageToken sets the optional parameter "pageToken": A page token received
  5345  // from the `next_page_token` field in the response. Send that page token to
  5346  // receive the subsequent page.
  5347  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  5348  	c.urlParams_.Set("pageToken", pageToken)
  5349  	return c
  5350  }
  5351  
  5352  // Fields allows partial responses to be retrieved. See
  5353  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5354  // details.
  5355  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  5356  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5357  	return c
  5358  }
  5359  
  5360  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5361  // object's ETag matches the given value. This is useful for getting updates
  5362  // only after the object has changed since the last request.
  5363  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  5364  	c.ifNoneMatch_ = entityTag
  5365  	return c
  5366  }
  5367  
  5368  // Context sets the context to be used in this call's Do method.
  5369  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  5370  	c.ctx_ = ctx
  5371  	return c
  5372  }
  5373  
  5374  // Header returns a http.Header that can be modified by the caller to add
  5375  // headers to the request.
  5376  func (c *ProjectsLocationsListCall) Header() http.Header {
  5377  	if c.header_ == nil {
  5378  		c.header_ = make(http.Header)
  5379  	}
  5380  	return c.header_
  5381  }
  5382  
  5383  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  5384  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5385  	if c.ifNoneMatch_ != "" {
  5386  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5387  	}
  5388  	var body io.Reader = nil
  5389  	c.urlParams_.Set("alt", alt)
  5390  	c.urlParams_.Set("prettyPrint", "false")
  5391  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
  5392  	urls += "?" + c.urlParams_.Encode()
  5393  	req, err := http.NewRequest("GET", urls, body)
  5394  	if err != nil {
  5395  		return nil, err
  5396  	}
  5397  	req.Header = reqHeaders
  5398  	googleapi.Expand(req.URL, map[string]string{
  5399  		"name": c.name,
  5400  	})
  5401  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5402  }
  5403  
  5404  // Do executes the "clouddeploy.projects.locations.list" call.
  5405  // Any non-2xx status code is an error. Response headers are in either
  5406  // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
  5407  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5408  // check whether the returned error was because http.StatusNotModified was
  5409  // returned.
  5410  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  5411  	gensupport.SetOptions(c.urlParams_, opts...)
  5412  	res, err := c.doRequest("json")
  5413  	if res != nil && res.StatusCode == http.StatusNotModified {
  5414  		if res.Body != nil {
  5415  			res.Body.Close()
  5416  		}
  5417  		return nil, gensupport.WrapError(&googleapi.Error{
  5418  			Code:   res.StatusCode,
  5419  			Header: res.Header,
  5420  		})
  5421  	}
  5422  	if err != nil {
  5423  		return nil, err
  5424  	}
  5425  	defer googleapi.CloseBody(res)
  5426  	if err := googleapi.CheckResponse(res); err != nil {
  5427  		return nil, gensupport.WrapError(err)
  5428  	}
  5429  	ret := &ListLocationsResponse{
  5430  		ServerResponse: googleapi.ServerResponse{
  5431  			Header:         res.Header,
  5432  			HTTPStatusCode: res.StatusCode,
  5433  		},
  5434  	}
  5435  	target := &ret
  5436  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5437  		return nil, err
  5438  	}
  5439  	return ret, nil
  5440  }
  5441  
  5442  // Pages invokes f for each page of results.
  5443  // A non-nil error returned from f will halt the iteration.
  5444  // The provided context supersedes any context provided to the Context method.
  5445  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  5446  	c.ctx_ = ctx
  5447  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5448  	for {
  5449  		x, err := c.Do()
  5450  		if err != nil {
  5451  			return err
  5452  		}
  5453  		if err := f(x); err != nil {
  5454  			return err
  5455  		}
  5456  		if x.NextPageToken == "" {
  5457  			return nil
  5458  		}
  5459  		c.PageToken(x.NextPageToken)
  5460  	}
  5461  }
  5462  
  5463  type ProjectsLocationsCustomTargetTypesCreateCall struct {
  5464  	s                *Service
  5465  	parent           string
  5466  	customtargettype *CustomTargetType
  5467  	urlParams_       gensupport.URLParams
  5468  	ctx_             context.Context
  5469  	header_          http.Header
  5470  }
  5471  
  5472  // Create: Creates a new CustomTargetType in a given project and location.
  5473  //
  5474  //   - parent: The parent collection in which the `CustomTargetType` should be
  5475  //     created. Format should be
  5476  //     `projects/{project_id}/locations/{location_name}`.
  5477  func (r *ProjectsLocationsCustomTargetTypesService) Create(parent string, customtargettype *CustomTargetType) *ProjectsLocationsCustomTargetTypesCreateCall {
  5478  	c := &ProjectsLocationsCustomTargetTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5479  	c.parent = parent
  5480  	c.customtargettype = customtargettype
  5481  	return c
  5482  }
  5483  
  5484  // CustomTargetTypeId sets the optional parameter "customTargetTypeId":
  5485  // Required. ID of the `CustomTargetType`.
  5486  func (c *ProjectsLocationsCustomTargetTypesCreateCall) CustomTargetTypeId(customTargetTypeId string) *ProjectsLocationsCustomTargetTypesCreateCall {
  5487  	c.urlParams_.Set("customTargetTypeId", customTargetTypeId)
  5488  	return c
  5489  }
  5490  
  5491  // RequestId sets the optional parameter "requestId": A request ID to identify
  5492  // requests. Specify a unique request ID so that if you must retry your
  5493  // request, the server knows to ignore the request if it has already been
  5494  // completed. The server guarantees that for at least 60 minutes after the
  5495  // first request. For example, consider a situation where you make an initial
  5496  // request and the request times out. If you make the request again with the
  5497  // same request ID, the server can check if original operation with the same
  5498  // request ID was received, and if so, will ignore the second request. This
  5499  // prevents clients from accidentally creating duplicate commitments. The
  5500  // request ID must be a valid UUID with the exception that zero UUID is not
  5501  // supported (00000000-0000-0000-0000-000000000000).
  5502  func (c *ProjectsLocationsCustomTargetTypesCreateCall) RequestId(requestId string) *ProjectsLocationsCustomTargetTypesCreateCall {
  5503  	c.urlParams_.Set("requestId", requestId)
  5504  	return c
  5505  }
  5506  
  5507  // ValidateOnly sets the optional parameter "validateOnly": If set to true, the
  5508  // request is validated and the user is provided with an expected result, but
  5509  // no actual change is made.
  5510  func (c *ProjectsLocationsCustomTargetTypesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsCustomTargetTypesCreateCall {
  5511  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  5512  	return c
  5513  }
  5514  
  5515  // Fields allows partial responses to be retrieved. See
  5516  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5517  // details.
  5518  func (c *ProjectsLocationsCustomTargetTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomTargetTypesCreateCall {
  5519  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5520  	return c
  5521  }
  5522  
  5523  // Context sets the context to be used in this call's Do method.
  5524  func (c *ProjectsLocationsCustomTargetTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsCustomTargetTypesCreateCall {
  5525  	c.ctx_ = ctx
  5526  	return c
  5527  }
  5528  
  5529  // Header returns a http.Header that can be modified by the caller to add
  5530  // headers to the request.
  5531  func (c *ProjectsLocationsCustomTargetTypesCreateCall) Header() http.Header {
  5532  	if c.header_ == nil {
  5533  		c.header_ = make(http.Header)
  5534  	}
  5535  	return c.header_
  5536  }
  5537  
  5538  func (c *ProjectsLocationsCustomTargetTypesCreateCall) doRequest(alt string) (*http.Response, error) {
  5539  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5540  	var body io.Reader = nil
  5541  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.customtargettype)
  5542  	if err != nil {
  5543  		return nil, err
  5544  	}
  5545  	c.urlParams_.Set("alt", alt)
  5546  	c.urlParams_.Set("prettyPrint", "false")
  5547  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/customTargetTypes")
  5548  	urls += "?" + c.urlParams_.Encode()
  5549  	req, err := http.NewRequest("POST", urls, body)
  5550  	if err != nil {
  5551  		return nil, err
  5552  	}
  5553  	req.Header = reqHeaders
  5554  	googleapi.Expand(req.URL, map[string]string{
  5555  		"parent": c.parent,
  5556  	})
  5557  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5558  }
  5559  
  5560  // Do executes the "clouddeploy.projects.locations.customTargetTypes.create" call.
  5561  // Any non-2xx status code is an error. Response headers are in either
  5562  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5563  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5564  // whether the returned error was because http.StatusNotModified was returned.
  5565  func (c *ProjectsLocationsCustomTargetTypesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5566  	gensupport.SetOptions(c.urlParams_, opts...)
  5567  	res, err := c.doRequest("json")
  5568  	if res != nil && res.StatusCode == http.StatusNotModified {
  5569  		if res.Body != nil {
  5570  			res.Body.Close()
  5571  		}
  5572  		return nil, gensupport.WrapError(&googleapi.Error{
  5573  			Code:   res.StatusCode,
  5574  			Header: res.Header,
  5575  		})
  5576  	}
  5577  	if err != nil {
  5578  		return nil, err
  5579  	}
  5580  	defer googleapi.CloseBody(res)
  5581  	if err := googleapi.CheckResponse(res); err != nil {
  5582  		return nil, gensupport.WrapError(err)
  5583  	}
  5584  	ret := &Operation{
  5585  		ServerResponse: googleapi.ServerResponse{
  5586  			Header:         res.Header,
  5587  			HTTPStatusCode: res.StatusCode,
  5588  		},
  5589  	}
  5590  	target := &ret
  5591  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5592  		return nil, err
  5593  	}
  5594  	return ret, nil
  5595  }
  5596  
  5597  type ProjectsLocationsCustomTargetTypesDeleteCall struct {
  5598  	s          *Service
  5599  	name       string
  5600  	urlParams_ gensupport.URLParams
  5601  	ctx_       context.Context
  5602  	header_    http.Header
  5603  }
  5604  
  5605  // Delete: Deletes a single CustomTargetType.
  5606  //
  5607  //   - name: The name of the `CustomTargetType` to delete. Format must be
  5608  //     `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_
  5609  //     target_type}`.
  5610  func (r *ProjectsLocationsCustomTargetTypesService) Delete(name string) *ProjectsLocationsCustomTargetTypesDeleteCall {
  5611  	c := &ProjectsLocationsCustomTargetTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5612  	c.name = name
  5613  	return c
  5614  }
  5615  
  5616  // AllowMissing sets the optional parameter "allowMissing": If set to true,
  5617  // then deleting an already deleted or non-existing `CustomTargetType` will
  5618  // succeed.
  5619  func (c *ProjectsLocationsCustomTargetTypesDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsCustomTargetTypesDeleteCall {
  5620  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
  5621  	return c
  5622  }
  5623  
  5624  // Etag sets the optional parameter "etag": This checksum is computed by the
  5625  // server based on the value of other fields, and may be sent on update and
  5626  // delete requests to ensure the client has an up-to-date value before
  5627  // proceeding.
  5628  func (c *ProjectsLocationsCustomTargetTypesDeleteCall) Etag(etag string) *ProjectsLocationsCustomTargetTypesDeleteCall {
  5629  	c.urlParams_.Set("etag", etag)
  5630  	return c
  5631  }
  5632  
  5633  // RequestId sets the optional parameter "requestId": A request ID to identify
  5634  // requests. Specify a unique request ID so that if you must retry your
  5635  // request, the server knows to ignore the request if it has already been
  5636  // completed. The server guarantees that for at least 60 minutes after the
  5637  // first request. For example, consider a situation where you make an initial
  5638  // request and the request times out. If you make the request again with the
  5639  // same request ID, the server can check if original operation with the same
  5640  // request ID was received, and if so, will ignore the second request. This
  5641  // prevents clients from accidentally creating duplicate commitments. The
  5642  // request ID must be a valid UUID with the exception that zero UUID is not
  5643  // supported (00000000-0000-0000-0000-000000000000).
  5644  func (c *ProjectsLocationsCustomTargetTypesDeleteCall) RequestId(requestId string) *ProjectsLocationsCustomTargetTypesDeleteCall {
  5645  	c.urlParams_.Set("requestId", requestId)
  5646  	return c
  5647  }
  5648  
  5649  // ValidateOnly sets the optional parameter "validateOnly": If set to true, the
  5650  // request is validated but no actual change is made.
  5651  func (c *ProjectsLocationsCustomTargetTypesDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsCustomTargetTypesDeleteCall {
  5652  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  5653  	return c
  5654  }
  5655  
  5656  // Fields allows partial responses to be retrieved. See
  5657  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5658  // details.
  5659  func (c *ProjectsLocationsCustomTargetTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomTargetTypesDeleteCall {
  5660  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5661  	return c
  5662  }
  5663  
  5664  // Context sets the context to be used in this call's Do method.
  5665  func (c *ProjectsLocationsCustomTargetTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCustomTargetTypesDeleteCall {
  5666  	c.ctx_ = ctx
  5667  	return c
  5668  }
  5669  
  5670  // Header returns a http.Header that can be modified by the caller to add
  5671  // headers to the request.
  5672  func (c *ProjectsLocationsCustomTargetTypesDeleteCall) Header() http.Header {
  5673  	if c.header_ == nil {
  5674  		c.header_ = make(http.Header)
  5675  	}
  5676  	return c.header_
  5677  }
  5678  
  5679  func (c *ProjectsLocationsCustomTargetTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
  5680  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5681  	var body io.Reader = nil
  5682  	c.urlParams_.Set("alt", alt)
  5683  	c.urlParams_.Set("prettyPrint", "false")
  5684  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5685  	urls += "?" + c.urlParams_.Encode()
  5686  	req, err := http.NewRequest("DELETE", urls, body)
  5687  	if err != nil {
  5688  		return nil, err
  5689  	}
  5690  	req.Header = reqHeaders
  5691  	googleapi.Expand(req.URL, map[string]string{
  5692  		"name": c.name,
  5693  	})
  5694  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5695  }
  5696  
  5697  // Do executes the "clouddeploy.projects.locations.customTargetTypes.delete" call.
  5698  // Any non-2xx status code is an error. Response headers are in either
  5699  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5700  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5701  // whether the returned error was because http.StatusNotModified was returned.
  5702  func (c *ProjectsLocationsCustomTargetTypesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5703  	gensupport.SetOptions(c.urlParams_, opts...)
  5704  	res, err := c.doRequest("json")
  5705  	if res != nil && res.StatusCode == http.StatusNotModified {
  5706  		if res.Body != nil {
  5707  			res.Body.Close()
  5708  		}
  5709  		return nil, gensupport.WrapError(&googleapi.Error{
  5710  			Code:   res.StatusCode,
  5711  			Header: res.Header,
  5712  		})
  5713  	}
  5714  	if err != nil {
  5715  		return nil, err
  5716  	}
  5717  	defer googleapi.CloseBody(res)
  5718  	if err := googleapi.CheckResponse(res); err != nil {
  5719  		return nil, gensupport.WrapError(err)
  5720  	}
  5721  	ret := &Operation{
  5722  		ServerResponse: googleapi.ServerResponse{
  5723  			Header:         res.Header,
  5724  			HTTPStatusCode: res.StatusCode,
  5725  		},
  5726  	}
  5727  	target := &ret
  5728  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5729  		return nil, err
  5730  	}
  5731  	return ret, nil
  5732  }
  5733  
  5734  type ProjectsLocationsCustomTargetTypesGetCall struct {
  5735  	s            *Service
  5736  	name         string
  5737  	urlParams_   gensupport.URLParams
  5738  	ifNoneMatch_ string
  5739  	ctx_         context.Context
  5740  	header_      http.Header
  5741  }
  5742  
  5743  // Get: Gets details of a single CustomTargetType.
  5744  //
  5745  //   - name: Name of the `CustomTargetType`. Format must be
  5746  //     `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_
  5747  //     target_type}`.
  5748  func (r *ProjectsLocationsCustomTargetTypesService) Get(name string) *ProjectsLocationsCustomTargetTypesGetCall {
  5749  	c := &ProjectsLocationsCustomTargetTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5750  	c.name = name
  5751  	return c
  5752  }
  5753  
  5754  // Fields allows partial responses to be retrieved. See
  5755  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5756  // details.
  5757  func (c *ProjectsLocationsCustomTargetTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomTargetTypesGetCall {
  5758  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5759  	return c
  5760  }
  5761  
  5762  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5763  // object's ETag matches the given value. This is useful for getting updates
  5764  // only after the object has changed since the last request.
  5765  func (c *ProjectsLocationsCustomTargetTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomTargetTypesGetCall {
  5766  	c.ifNoneMatch_ = entityTag
  5767  	return c
  5768  }
  5769  
  5770  // Context sets the context to be used in this call's Do method.
  5771  func (c *ProjectsLocationsCustomTargetTypesGetCall) Context(ctx context.Context) *ProjectsLocationsCustomTargetTypesGetCall {
  5772  	c.ctx_ = ctx
  5773  	return c
  5774  }
  5775  
  5776  // Header returns a http.Header that can be modified by the caller to add
  5777  // headers to the request.
  5778  func (c *ProjectsLocationsCustomTargetTypesGetCall) Header() http.Header {
  5779  	if c.header_ == nil {
  5780  		c.header_ = make(http.Header)
  5781  	}
  5782  	return c.header_
  5783  }
  5784  
  5785  func (c *ProjectsLocationsCustomTargetTypesGetCall) doRequest(alt string) (*http.Response, error) {
  5786  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5787  	if c.ifNoneMatch_ != "" {
  5788  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5789  	}
  5790  	var body io.Reader = nil
  5791  	c.urlParams_.Set("alt", alt)
  5792  	c.urlParams_.Set("prettyPrint", "false")
  5793  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5794  	urls += "?" + c.urlParams_.Encode()
  5795  	req, err := http.NewRequest("GET", urls, body)
  5796  	if err != nil {
  5797  		return nil, err
  5798  	}
  5799  	req.Header = reqHeaders
  5800  	googleapi.Expand(req.URL, map[string]string{
  5801  		"name": c.name,
  5802  	})
  5803  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5804  }
  5805  
  5806  // Do executes the "clouddeploy.projects.locations.customTargetTypes.get" call.
  5807  // Any non-2xx status code is an error. Response headers are in either
  5808  // *CustomTargetType.ServerResponse.Header or (if a response was returned at
  5809  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5810  // check whether the returned error was because http.StatusNotModified was
  5811  // returned.
  5812  func (c *ProjectsLocationsCustomTargetTypesGetCall) Do(opts ...googleapi.CallOption) (*CustomTargetType, error) {
  5813  	gensupport.SetOptions(c.urlParams_, opts...)
  5814  	res, err := c.doRequest("json")
  5815  	if res != nil && res.StatusCode == http.StatusNotModified {
  5816  		if res.Body != nil {
  5817  			res.Body.Close()
  5818  		}
  5819  		return nil, gensupport.WrapError(&googleapi.Error{
  5820  			Code:   res.StatusCode,
  5821  			Header: res.Header,
  5822  		})
  5823  	}
  5824  	if err != nil {
  5825  		return nil, err
  5826  	}
  5827  	defer googleapi.CloseBody(res)
  5828  	if err := googleapi.CheckResponse(res); err != nil {
  5829  		return nil, gensupport.WrapError(err)
  5830  	}
  5831  	ret := &CustomTargetType{
  5832  		ServerResponse: googleapi.ServerResponse{
  5833  			Header:         res.Header,
  5834  			HTTPStatusCode: res.StatusCode,
  5835  		},
  5836  	}
  5837  	target := &ret
  5838  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5839  		return nil, err
  5840  	}
  5841  	return ret, nil
  5842  }
  5843  
  5844  type ProjectsLocationsCustomTargetTypesGetIamPolicyCall struct {
  5845  	s            *Service
  5846  	resource     string
  5847  	urlParams_   gensupport.URLParams
  5848  	ifNoneMatch_ string
  5849  	ctx_         context.Context
  5850  	header_      http.Header
  5851  }
  5852  
  5853  // GetIamPolicy: Gets the access control policy for a resource. Returns an
  5854  // empty policy if the resource exists and does not have a policy set.
  5855  //
  5856  //   - resource: REQUIRED: The resource for which the policy is being requested.
  5857  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  5858  //     for the appropriate value for this field.
  5859  func (r *ProjectsLocationsCustomTargetTypesService) GetIamPolicy(resource string) *ProjectsLocationsCustomTargetTypesGetIamPolicyCall {
  5860  	c := &ProjectsLocationsCustomTargetTypesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5861  	c.resource = resource
  5862  	return c
  5863  }
  5864  
  5865  // OptionsRequestedPolicyVersion sets the optional parameter
  5866  // "options.requestedPolicyVersion": The maximum policy version that will be
  5867  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
  5868  // an invalid value will be rejected. Requests for policies with any
  5869  // conditional role bindings must specify version 3. Policies with no
  5870  // conditional role bindings may specify any valid value or leave the field
  5871  // unset. The policy in the response might use the policy version that you
  5872  // specified, or it might use a lower policy version. For example, if you
  5873  // specify version 3, but the policy has no conditional role bindings, the
  5874  // response uses version 1. To learn which resources support conditions in
  5875  // their IAM policies, see the IAM documentation
  5876  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  5877  func (c *ProjectsLocationsCustomTargetTypesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsCustomTargetTypesGetIamPolicyCall {
  5878  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  5879  	return c
  5880  }
  5881  
  5882  // Fields allows partial responses to be retrieved. See
  5883  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5884  // details.
  5885  func (c *ProjectsLocationsCustomTargetTypesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomTargetTypesGetIamPolicyCall {
  5886  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5887  	return c
  5888  }
  5889  
  5890  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5891  // object's ETag matches the given value. This is useful for getting updates
  5892  // only after the object has changed since the last request.
  5893  func (c *ProjectsLocationsCustomTargetTypesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomTargetTypesGetIamPolicyCall {
  5894  	c.ifNoneMatch_ = entityTag
  5895  	return c
  5896  }
  5897  
  5898  // Context sets the context to be used in this call's Do method.
  5899  func (c *ProjectsLocationsCustomTargetTypesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCustomTargetTypesGetIamPolicyCall {
  5900  	c.ctx_ = ctx
  5901  	return c
  5902  }
  5903  
  5904  // Header returns a http.Header that can be modified by the caller to add
  5905  // headers to the request.
  5906  func (c *ProjectsLocationsCustomTargetTypesGetIamPolicyCall) Header() http.Header {
  5907  	if c.header_ == nil {
  5908  		c.header_ = make(http.Header)
  5909  	}
  5910  	return c.header_
  5911  }
  5912  
  5913  func (c *ProjectsLocationsCustomTargetTypesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  5914  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5915  	if c.ifNoneMatch_ != "" {
  5916  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5917  	}
  5918  	var body io.Reader = nil
  5919  	c.urlParams_.Set("alt", alt)
  5920  	c.urlParams_.Set("prettyPrint", "false")
  5921  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  5922  	urls += "?" + c.urlParams_.Encode()
  5923  	req, err := http.NewRequest("GET", urls, body)
  5924  	if err != nil {
  5925  		return nil, err
  5926  	}
  5927  	req.Header = reqHeaders
  5928  	googleapi.Expand(req.URL, map[string]string{
  5929  		"resource": c.resource,
  5930  	})
  5931  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5932  }
  5933  
  5934  // Do executes the "clouddeploy.projects.locations.customTargetTypes.getIamPolicy" call.
  5935  // Any non-2xx status code is an error. Response headers are in either
  5936  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  5937  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5938  // whether the returned error was because http.StatusNotModified was returned.
  5939  func (c *ProjectsLocationsCustomTargetTypesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  5940  	gensupport.SetOptions(c.urlParams_, opts...)
  5941  	res, err := c.doRequest("json")
  5942  	if res != nil && res.StatusCode == http.StatusNotModified {
  5943  		if res.Body != nil {
  5944  			res.Body.Close()
  5945  		}
  5946  		return nil, gensupport.WrapError(&googleapi.Error{
  5947  			Code:   res.StatusCode,
  5948  			Header: res.Header,
  5949  		})
  5950  	}
  5951  	if err != nil {
  5952  		return nil, err
  5953  	}
  5954  	defer googleapi.CloseBody(res)
  5955  	if err := googleapi.CheckResponse(res); err != nil {
  5956  		return nil, gensupport.WrapError(err)
  5957  	}
  5958  	ret := &Policy{
  5959  		ServerResponse: googleapi.ServerResponse{
  5960  			Header:         res.Header,
  5961  			HTTPStatusCode: res.StatusCode,
  5962  		},
  5963  	}
  5964  	target := &ret
  5965  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5966  		return nil, err
  5967  	}
  5968  	return ret, nil
  5969  }
  5970  
  5971  type ProjectsLocationsCustomTargetTypesListCall struct {
  5972  	s            *Service
  5973  	parent       string
  5974  	urlParams_   gensupport.URLParams
  5975  	ifNoneMatch_ string
  5976  	ctx_         context.Context
  5977  	header_      http.Header
  5978  }
  5979  
  5980  // List: Lists CustomTargetTypes in a given project and location.
  5981  //
  5982  //   - parent: The parent that owns this collection of custom target types.
  5983  //     Format must be `projects/{project_id}/locations/{location_name}`.
  5984  func (r *ProjectsLocationsCustomTargetTypesService) List(parent string) *ProjectsLocationsCustomTargetTypesListCall {
  5985  	c := &ProjectsLocationsCustomTargetTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5986  	c.parent = parent
  5987  	return c
  5988  }
  5989  
  5990  // Filter sets the optional parameter "filter": Filter custom target types to
  5991  // be returned. See https://google.aip.dev/160 for more details.
  5992  func (c *ProjectsLocationsCustomTargetTypesListCall) Filter(filter string) *ProjectsLocationsCustomTargetTypesListCall {
  5993  	c.urlParams_.Set("filter", filter)
  5994  	return c
  5995  }
  5996  
  5997  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  5998  // https://google.aip.dev/132#ordering for more details.
  5999  func (c *ProjectsLocationsCustomTargetTypesListCall) OrderBy(orderBy string) *ProjectsLocationsCustomTargetTypesListCall {
  6000  	c.urlParams_.Set("orderBy", orderBy)
  6001  	return c
  6002  }
  6003  
  6004  // PageSize sets the optional parameter "pageSize": The maximum number of
  6005  // `CustomTargetType` objects to return. The service may return fewer than this
  6006  // value. If unspecified, at most 50 `CustomTargetType` objects will be
  6007  // returned. The maximum value is 1000; values above 1000 will be set to 1000.
  6008  func (c *ProjectsLocationsCustomTargetTypesListCall) PageSize(pageSize int64) *ProjectsLocationsCustomTargetTypesListCall {
  6009  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6010  	return c
  6011  }
  6012  
  6013  // PageToken sets the optional parameter "pageToken": A page token, received
  6014  // from a previous `ListCustomTargetTypes` call. Provide this to retrieve the
  6015  // subsequent page. When paginating, all other provided parameters match the
  6016  // call that provided the page token.
  6017  func (c *ProjectsLocationsCustomTargetTypesListCall) PageToken(pageToken string) *ProjectsLocationsCustomTargetTypesListCall {
  6018  	c.urlParams_.Set("pageToken", pageToken)
  6019  	return c
  6020  }
  6021  
  6022  // Fields allows partial responses to be retrieved. See
  6023  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6024  // details.
  6025  func (c *ProjectsLocationsCustomTargetTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomTargetTypesListCall {
  6026  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6027  	return c
  6028  }
  6029  
  6030  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6031  // object's ETag matches the given value. This is useful for getting updates
  6032  // only after the object has changed since the last request.
  6033  func (c *ProjectsLocationsCustomTargetTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomTargetTypesListCall {
  6034  	c.ifNoneMatch_ = entityTag
  6035  	return c
  6036  }
  6037  
  6038  // Context sets the context to be used in this call's Do method.
  6039  func (c *ProjectsLocationsCustomTargetTypesListCall) Context(ctx context.Context) *ProjectsLocationsCustomTargetTypesListCall {
  6040  	c.ctx_ = ctx
  6041  	return c
  6042  }
  6043  
  6044  // Header returns a http.Header that can be modified by the caller to add
  6045  // headers to the request.
  6046  func (c *ProjectsLocationsCustomTargetTypesListCall) Header() http.Header {
  6047  	if c.header_ == nil {
  6048  		c.header_ = make(http.Header)
  6049  	}
  6050  	return c.header_
  6051  }
  6052  
  6053  func (c *ProjectsLocationsCustomTargetTypesListCall) doRequest(alt string) (*http.Response, error) {
  6054  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6055  	if c.ifNoneMatch_ != "" {
  6056  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6057  	}
  6058  	var body io.Reader = nil
  6059  	c.urlParams_.Set("alt", alt)
  6060  	c.urlParams_.Set("prettyPrint", "false")
  6061  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/customTargetTypes")
  6062  	urls += "?" + c.urlParams_.Encode()
  6063  	req, err := http.NewRequest("GET", urls, body)
  6064  	if err != nil {
  6065  		return nil, err
  6066  	}
  6067  	req.Header = reqHeaders
  6068  	googleapi.Expand(req.URL, map[string]string{
  6069  		"parent": c.parent,
  6070  	})
  6071  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6072  }
  6073  
  6074  // Do executes the "clouddeploy.projects.locations.customTargetTypes.list" call.
  6075  // Any non-2xx status code is an error. Response headers are in either
  6076  // *ListCustomTargetTypesResponse.ServerResponse.Header or (if a response was
  6077  // returned at all) in error.(*googleapi.Error).Header. Use
  6078  // googleapi.IsNotModified to check whether the returned error was because
  6079  // http.StatusNotModified was returned.
  6080  func (c *ProjectsLocationsCustomTargetTypesListCall) Do(opts ...googleapi.CallOption) (*ListCustomTargetTypesResponse, error) {
  6081  	gensupport.SetOptions(c.urlParams_, opts...)
  6082  	res, err := c.doRequest("json")
  6083  	if res != nil && res.StatusCode == http.StatusNotModified {
  6084  		if res.Body != nil {
  6085  			res.Body.Close()
  6086  		}
  6087  		return nil, gensupport.WrapError(&googleapi.Error{
  6088  			Code:   res.StatusCode,
  6089  			Header: res.Header,
  6090  		})
  6091  	}
  6092  	if err != nil {
  6093  		return nil, err
  6094  	}
  6095  	defer googleapi.CloseBody(res)
  6096  	if err := googleapi.CheckResponse(res); err != nil {
  6097  		return nil, gensupport.WrapError(err)
  6098  	}
  6099  	ret := &ListCustomTargetTypesResponse{
  6100  		ServerResponse: googleapi.ServerResponse{
  6101  			Header:         res.Header,
  6102  			HTTPStatusCode: res.StatusCode,
  6103  		},
  6104  	}
  6105  	target := &ret
  6106  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6107  		return nil, err
  6108  	}
  6109  	return ret, nil
  6110  }
  6111  
  6112  // Pages invokes f for each page of results.
  6113  // A non-nil error returned from f will halt the iteration.
  6114  // The provided context supersedes any context provided to the Context method.
  6115  func (c *ProjectsLocationsCustomTargetTypesListCall) Pages(ctx context.Context, f func(*ListCustomTargetTypesResponse) error) error {
  6116  	c.ctx_ = ctx
  6117  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6118  	for {
  6119  		x, err := c.Do()
  6120  		if err != nil {
  6121  			return err
  6122  		}
  6123  		if err := f(x); err != nil {
  6124  			return err
  6125  		}
  6126  		if x.NextPageToken == "" {
  6127  			return nil
  6128  		}
  6129  		c.PageToken(x.NextPageToken)
  6130  	}
  6131  }
  6132  
  6133  type ProjectsLocationsCustomTargetTypesPatchCall struct {
  6134  	s                *Service
  6135  	name             string
  6136  	customtargettype *CustomTargetType
  6137  	urlParams_       gensupport.URLParams
  6138  	ctx_             context.Context
  6139  	header_          http.Header
  6140  }
  6141  
  6142  // Patch: Updates a single CustomTargetType.
  6143  //
  6144  //   - name: Optional. Name of the `CustomTargetType`. Format is
  6145  //     `projects/{project}/locations/{location}/customTargetTypes/{customTargetTyp
  6146  //     e}`. The `customTargetType` component must match
  6147  //     `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  6148  func (r *ProjectsLocationsCustomTargetTypesService) Patch(name string, customtargettype *CustomTargetType) *ProjectsLocationsCustomTargetTypesPatchCall {
  6149  	c := &ProjectsLocationsCustomTargetTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6150  	c.name = name
  6151  	c.customtargettype = customtargettype
  6152  	return c
  6153  }
  6154  
  6155  // AllowMissing sets the optional parameter "allowMissing": If set to true,
  6156  // updating a `CustomTargetType` that does not exist will result in the
  6157  // creation of a new `CustomTargetType`.
  6158  func (c *ProjectsLocationsCustomTargetTypesPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCustomTargetTypesPatchCall {
  6159  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
  6160  	return c
  6161  }
  6162  
  6163  // RequestId sets the optional parameter "requestId": A request ID to identify
  6164  // requests. Specify a unique request ID so that if you must retry your
  6165  // request, the server knows to ignore the request if it has already been
  6166  // completed. The server guarantees that for at least 60 minutes after the
  6167  // first request. For example, consider a situation where you make an initial
  6168  // request and the request times out. If you make the request again with the
  6169  // same request ID, the server can check if original operation with the same
  6170  // request ID was received, and if so, will ignore the second request. This
  6171  // prevents clients from accidentally creating duplicate commitments. The
  6172  // request ID must be a valid UUID with the exception that zero UUID is not
  6173  // supported (00000000-0000-0000-0000-000000000000).
  6174  func (c *ProjectsLocationsCustomTargetTypesPatchCall) RequestId(requestId string) *ProjectsLocationsCustomTargetTypesPatchCall {
  6175  	c.urlParams_.Set("requestId", requestId)
  6176  	return c
  6177  }
  6178  
  6179  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
  6180  // used to specify the fields to be overwritten in the `CustomTargetType`
  6181  // resource by the update. The fields specified in the update_mask are relative
  6182  // to the resource, not the full request. A field will be overwritten if it's
  6183  // in the mask. If the user doesn't provide a mask then all fields are
  6184  // overwritten.
  6185  func (c *ProjectsLocationsCustomTargetTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCustomTargetTypesPatchCall {
  6186  	c.urlParams_.Set("updateMask", updateMask)
  6187  	return c
  6188  }
  6189  
  6190  // ValidateOnly sets the optional parameter "validateOnly": If set to true, the
  6191  // request is validated and the user is provided with an expected result, but
  6192  // no actual change is made.
  6193  func (c *ProjectsLocationsCustomTargetTypesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsCustomTargetTypesPatchCall {
  6194  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  6195  	return c
  6196  }
  6197  
  6198  // Fields allows partial responses to be retrieved. See
  6199  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6200  // details.
  6201  func (c *ProjectsLocationsCustomTargetTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomTargetTypesPatchCall {
  6202  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6203  	return c
  6204  }
  6205  
  6206  // Context sets the context to be used in this call's Do method.
  6207  func (c *ProjectsLocationsCustomTargetTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsCustomTargetTypesPatchCall {
  6208  	c.ctx_ = ctx
  6209  	return c
  6210  }
  6211  
  6212  // Header returns a http.Header that can be modified by the caller to add
  6213  // headers to the request.
  6214  func (c *ProjectsLocationsCustomTargetTypesPatchCall) Header() http.Header {
  6215  	if c.header_ == nil {
  6216  		c.header_ = make(http.Header)
  6217  	}
  6218  	return c.header_
  6219  }
  6220  
  6221  func (c *ProjectsLocationsCustomTargetTypesPatchCall) doRequest(alt string) (*http.Response, error) {
  6222  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6223  	var body io.Reader = nil
  6224  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.customtargettype)
  6225  	if err != nil {
  6226  		return nil, err
  6227  	}
  6228  	c.urlParams_.Set("alt", alt)
  6229  	c.urlParams_.Set("prettyPrint", "false")
  6230  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6231  	urls += "?" + c.urlParams_.Encode()
  6232  	req, err := http.NewRequest("PATCH", urls, body)
  6233  	if err != nil {
  6234  		return nil, err
  6235  	}
  6236  	req.Header = reqHeaders
  6237  	googleapi.Expand(req.URL, map[string]string{
  6238  		"name": c.name,
  6239  	})
  6240  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6241  }
  6242  
  6243  // Do executes the "clouddeploy.projects.locations.customTargetTypes.patch" call.
  6244  // Any non-2xx status code is an error. Response headers are in either
  6245  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6246  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6247  // whether the returned error was because http.StatusNotModified was returned.
  6248  func (c *ProjectsLocationsCustomTargetTypesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6249  	gensupport.SetOptions(c.urlParams_, opts...)
  6250  	res, err := c.doRequest("json")
  6251  	if res != nil && res.StatusCode == http.StatusNotModified {
  6252  		if res.Body != nil {
  6253  			res.Body.Close()
  6254  		}
  6255  		return nil, gensupport.WrapError(&googleapi.Error{
  6256  			Code:   res.StatusCode,
  6257  			Header: res.Header,
  6258  		})
  6259  	}
  6260  	if err != nil {
  6261  		return nil, err
  6262  	}
  6263  	defer googleapi.CloseBody(res)
  6264  	if err := googleapi.CheckResponse(res); err != nil {
  6265  		return nil, gensupport.WrapError(err)
  6266  	}
  6267  	ret := &Operation{
  6268  		ServerResponse: googleapi.ServerResponse{
  6269  			Header:         res.Header,
  6270  			HTTPStatusCode: res.StatusCode,
  6271  		},
  6272  	}
  6273  	target := &ret
  6274  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6275  		return nil, err
  6276  	}
  6277  	return ret, nil
  6278  }
  6279  
  6280  type ProjectsLocationsCustomTargetTypesSetIamPolicyCall struct {
  6281  	s                   *Service
  6282  	resource            string
  6283  	setiampolicyrequest *SetIamPolicyRequest
  6284  	urlParams_          gensupport.URLParams
  6285  	ctx_                context.Context
  6286  	header_             http.Header
  6287  }
  6288  
  6289  // SetIamPolicy: Sets the access control policy on the specified resource.
  6290  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
  6291  // and `PERMISSION_DENIED` errors.
  6292  //
  6293  //   - resource: REQUIRED: The resource for which the policy is being specified.
  6294  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  6295  //     for the appropriate value for this field.
  6296  func (r *ProjectsLocationsCustomTargetTypesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsCustomTargetTypesSetIamPolicyCall {
  6297  	c := &ProjectsLocationsCustomTargetTypesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6298  	c.resource = resource
  6299  	c.setiampolicyrequest = setiampolicyrequest
  6300  	return c
  6301  }
  6302  
  6303  // Fields allows partial responses to be retrieved. See
  6304  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6305  // details.
  6306  func (c *ProjectsLocationsCustomTargetTypesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomTargetTypesSetIamPolicyCall {
  6307  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6308  	return c
  6309  }
  6310  
  6311  // Context sets the context to be used in this call's Do method.
  6312  func (c *ProjectsLocationsCustomTargetTypesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCustomTargetTypesSetIamPolicyCall {
  6313  	c.ctx_ = ctx
  6314  	return c
  6315  }
  6316  
  6317  // Header returns a http.Header that can be modified by the caller to add
  6318  // headers to the request.
  6319  func (c *ProjectsLocationsCustomTargetTypesSetIamPolicyCall) Header() http.Header {
  6320  	if c.header_ == nil {
  6321  		c.header_ = make(http.Header)
  6322  	}
  6323  	return c.header_
  6324  }
  6325  
  6326  func (c *ProjectsLocationsCustomTargetTypesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  6327  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6328  	var body io.Reader = nil
  6329  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  6330  	if err != nil {
  6331  		return nil, err
  6332  	}
  6333  	c.urlParams_.Set("alt", alt)
  6334  	c.urlParams_.Set("prettyPrint", "false")
  6335  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
  6336  	urls += "?" + c.urlParams_.Encode()
  6337  	req, err := http.NewRequest("POST", urls, body)
  6338  	if err != nil {
  6339  		return nil, err
  6340  	}
  6341  	req.Header = reqHeaders
  6342  	googleapi.Expand(req.URL, map[string]string{
  6343  		"resource": c.resource,
  6344  	})
  6345  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6346  }
  6347  
  6348  // Do executes the "clouddeploy.projects.locations.customTargetTypes.setIamPolicy" call.
  6349  // Any non-2xx status code is an error. Response headers are in either
  6350  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  6351  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6352  // whether the returned error was because http.StatusNotModified was returned.
  6353  func (c *ProjectsLocationsCustomTargetTypesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  6354  	gensupport.SetOptions(c.urlParams_, opts...)
  6355  	res, err := c.doRequest("json")
  6356  	if res != nil && res.StatusCode == http.StatusNotModified {
  6357  		if res.Body != nil {
  6358  			res.Body.Close()
  6359  		}
  6360  		return nil, gensupport.WrapError(&googleapi.Error{
  6361  			Code:   res.StatusCode,
  6362  			Header: res.Header,
  6363  		})
  6364  	}
  6365  	if err != nil {
  6366  		return nil, err
  6367  	}
  6368  	defer googleapi.CloseBody(res)
  6369  	if err := googleapi.CheckResponse(res); err != nil {
  6370  		return nil, gensupport.WrapError(err)
  6371  	}
  6372  	ret := &Policy{
  6373  		ServerResponse: googleapi.ServerResponse{
  6374  			Header:         res.Header,
  6375  			HTTPStatusCode: res.StatusCode,
  6376  		},
  6377  	}
  6378  	target := &ret
  6379  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6380  		return nil, err
  6381  	}
  6382  	return ret, nil
  6383  }
  6384  
  6385  type ProjectsLocationsDeliveryPipelinesCreateCall struct {
  6386  	s                *Service
  6387  	parent           string
  6388  	deliverypipeline *DeliveryPipeline
  6389  	urlParams_       gensupport.URLParams
  6390  	ctx_             context.Context
  6391  	header_          http.Header
  6392  }
  6393  
  6394  // Create: Creates a new DeliveryPipeline in a given project and location.
  6395  //
  6396  //   - parent: The parent collection in which the `DeliveryPipeline` should be
  6397  //     created. Format should be
  6398  //     `projects/{project_id}/locations/{location_name}`.
  6399  func (r *ProjectsLocationsDeliveryPipelinesService) Create(parent string, deliverypipeline *DeliveryPipeline) *ProjectsLocationsDeliveryPipelinesCreateCall {
  6400  	c := &ProjectsLocationsDeliveryPipelinesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6401  	c.parent = parent
  6402  	c.deliverypipeline = deliverypipeline
  6403  	return c
  6404  }
  6405  
  6406  // DeliveryPipelineId sets the optional parameter "deliveryPipelineId":
  6407  // Required. ID of the `DeliveryPipeline`.
  6408  func (c *ProjectsLocationsDeliveryPipelinesCreateCall) DeliveryPipelineId(deliveryPipelineId string) *ProjectsLocationsDeliveryPipelinesCreateCall {
  6409  	c.urlParams_.Set("deliveryPipelineId", deliveryPipelineId)
  6410  	return c
  6411  }
  6412  
  6413  // RequestId sets the optional parameter "requestId": A request ID to identify
  6414  // requests. Specify a unique request ID so that if you must retry your
  6415  // request, the server knows to ignore the request if it has already been
  6416  // completed. The server guarantees that for at least 60 minutes after the
  6417  // first request. For example, consider a situation where you make an initial
  6418  // request and the request times out. If you make the request again with the
  6419  // same request ID, the server can check if original operation with the same
  6420  // request ID was received, and if so, will ignore the second request. This
  6421  // prevents clients from accidentally creating duplicate commitments. The
  6422  // request ID must be a valid UUID with the exception that zero UUID is not
  6423  // supported (00000000-0000-0000-0000-000000000000).
  6424  func (c *ProjectsLocationsDeliveryPipelinesCreateCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesCreateCall {
  6425  	c.urlParams_.Set("requestId", requestId)
  6426  	return c
  6427  }
  6428  
  6429  // ValidateOnly sets the optional parameter "validateOnly": If set to true, the
  6430  // request is validated and the user is provided with an expected result, but
  6431  // no actual change is made.
  6432  func (c *ProjectsLocationsDeliveryPipelinesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesCreateCall {
  6433  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  6434  	return c
  6435  }
  6436  
  6437  // Fields allows partial responses to be retrieved. See
  6438  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6439  // details.
  6440  func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesCreateCall {
  6441  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6442  	return c
  6443  }
  6444  
  6445  // Context sets the context to be used in this call's Do method.
  6446  func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesCreateCall {
  6447  	c.ctx_ = ctx
  6448  	return c
  6449  }
  6450  
  6451  // Header returns a http.Header that can be modified by the caller to add
  6452  // headers to the request.
  6453  func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Header() http.Header {
  6454  	if c.header_ == nil {
  6455  		c.header_ = make(http.Header)
  6456  	}
  6457  	return c.header_
  6458  }
  6459  
  6460  func (c *ProjectsLocationsDeliveryPipelinesCreateCall) doRequest(alt string) (*http.Response, error) {
  6461  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6462  	var body io.Reader = nil
  6463  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.deliverypipeline)
  6464  	if err != nil {
  6465  		return nil, err
  6466  	}
  6467  	c.urlParams_.Set("alt", alt)
  6468  	c.urlParams_.Set("prettyPrint", "false")
  6469  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deliveryPipelines")
  6470  	urls += "?" + c.urlParams_.Encode()
  6471  	req, err := http.NewRequest("POST", urls, body)
  6472  	if err != nil {
  6473  		return nil, err
  6474  	}
  6475  	req.Header = reqHeaders
  6476  	googleapi.Expand(req.URL, map[string]string{
  6477  		"parent": c.parent,
  6478  	})
  6479  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6480  }
  6481  
  6482  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.create" call.
  6483  // Any non-2xx status code is an error. Response headers are in either
  6484  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6485  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6486  // whether the returned error was because http.StatusNotModified was returned.
  6487  func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6488  	gensupport.SetOptions(c.urlParams_, opts...)
  6489  	res, err := c.doRequest("json")
  6490  	if res != nil && res.StatusCode == http.StatusNotModified {
  6491  		if res.Body != nil {
  6492  			res.Body.Close()
  6493  		}
  6494  		return nil, gensupport.WrapError(&googleapi.Error{
  6495  			Code:   res.StatusCode,
  6496  			Header: res.Header,
  6497  		})
  6498  	}
  6499  	if err != nil {
  6500  		return nil, err
  6501  	}
  6502  	defer googleapi.CloseBody(res)
  6503  	if err := googleapi.CheckResponse(res); err != nil {
  6504  		return nil, gensupport.WrapError(err)
  6505  	}
  6506  	ret := &Operation{
  6507  		ServerResponse: googleapi.ServerResponse{
  6508  			Header:         res.Header,
  6509  			HTTPStatusCode: res.StatusCode,
  6510  		},
  6511  	}
  6512  	target := &ret
  6513  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6514  		return nil, err
  6515  	}
  6516  	return ret, nil
  6517  }
  6518  
  6519  type ProjectsLocationsDeliveryPipelinesDeleteCall struct {
  6520  	s          *Service
  6521  	name       string
  6522  	urlParams_ gensupport.URLParams
  6523  	ctx_       context.Context
  6524  	header_    http.Header
  6525  }
  6526  
  6527  // Delete: Deletes a single DeliveryPipeline.
  6528  //
  6529  //   - name: The name of the `DeliveryPipeline` to delete. Format should be
  6530  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
  6531  //     e_name}`.
  6532  func (r *ProjectsLocationsDeliveryPipelinesService) Delete(name string) *ProjectsLocationsDeliveryPipelinesDeleteCall {
  6533  	c := &ProjectsLocationsDeliveryPipelinesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6534  	c.name = name
  6535  	return c
  6536  }
  6537  
  6538  // AllowMissing sets the optional parameter "allowMissing": If set to true,
  6539  // then deleting an already deleted or non-existing `DeliveryPipeline` will
  6540  // succeed.
  6541  func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsDeliveryPipelinesDeleteCall {
  6542  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
  6543  	return c
  6544  }
  6545  
  6546  // Etag sets the optional parameter "etag": This checksum is computed by the
  6547  // server based on the value of other fields, and may be sent on update and
  6548  // delete requests to ensure the client has an up-to-date value before
  6549  // proceeding.
  6550  func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Etag(etag string) *ProjectsLocationsDeliveryPipelinesDeleteCall {
  6551  	c.urlParams_.Set("etag", etag)
  6552  	return c
  6553  }
  6554  
  6555  // Force sets the optional parameter "force": If set to true, all child
  6556  // resources under this pipeline will also be deleted. Otherwise, the request
  6557  // will only work if the pipeline has no child resources.
  6558  func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Force(force bool) *ProjectsLocationsDeliveryPipelinesDeleteCall {
  6559  	c.urlParams_.Set("force", fmt.Sprint(force))
  6560  	return c
  6561  }
  6562  
  6563  // RequestId sets the optional parameter "requestId": A request ID to identify
  6564  // requests. Specify a unique request ID so that if you must retry your
  6565  // request, the server knows to ignore the request if it has already been
  6566  // completed. The server guarantees that for at least 60 minutes after the
  6567  // first request. For example, consider a situation where you make an initial
  6568  // request and the request times out. If you make the request again with the
  6569  // same request ID, the server can check if original operation with the same
  6570  // request ID was received, and if so, will ignore the second request. This
  6571  // prevents clients from accidentally creating duplicate commitments. The
  6572  // request ID must be a valid UUID with the exception that zero UUID is not
  6573  // supported (00000000-0000-0000-0000-000000000000).
  6574  func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesDeleteCall {
  6575  	c.urlParams_.Set("requestId", requestId)
  6576  	return c
  6577  }
  6578  
  6579  // ValidateOnly sets the optional parameter "validateOnly": If set, validate
  6580  // the request and preview the review, but do not actually post it.
  6581  func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesDeleteCall {
  6582  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  6583  	return c
  6584  }
  6585  
  6586  // Fields allows partial responses to be retrieved. See
  6587  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6588  // details.
  6589  func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesDeleteCall {
  6590  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6591  	return c
  6592  }
  6593  
  6594  // Context sets the context to be used in this call's Do method.
  6595  func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesDeleteCall {
  6596  	c.ctx_ = ctx
  6597  	return c
  6598  }
  6599  
  6600  // Header returns a http.Header that can be modified by the caller to add
  6601  // headers to the request.
  6602  func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Header() http.Header {
  6603  	if c.header_ == nil {
  6604  		c.header_ = make(http.Header)
  6605  	}
  6606  	return c.header_
  6607  }
  6608  
  6609  func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) doRequest(alt string) (*http.Response, error) {
  6610  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6611  	var body io.Reader = nil
  6612  	c.urlParams_.Set("alt", alt)
  6613  	c.urlParams_.Set("prettyPrint", "false")
  6614  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6615  	urls += "?" + c.urlParams_.Encode()
  6616  	req, err := http.NewRequest("DELETE", urls, body)
  6617  	if err != nil {
  6618  		return nil, err
  6619  	}
  6620  	req.Header = reqHeaders
  6621  	googleapi.Expand(req.URL, map[string]string{
  6622  		"name": c.name,
  6623  	})
  6624  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6625  }
  6626  
  6627  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.delete" call.
  6628  // Any non-2xx status code is an error. Response headers are in either
  6629  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6630  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6631  // whether the returned error was because http.StatusNotModified was returned.
  6632  func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6633  	gensupport.SetOptions(c.urlParams_, opts...)
  6634  	res, err := c.doRequest("json")
  6635  	if res != nil && res.StatusCode == http.StatusNotModified {
  6636  		if res.Body != nil {
  6637  			res.Body.Close()
  6638  		}
  6639  		return nil, gensupport.WrapError(&googleapi.Error{
  6640  			Code:   res.StatusCode,
  6641  			Header: res.Header,
  6642  		})
  6643  	}
  6644  	if err != nil {
  6645  		return nil, err
  6646  	}
  6647  	defer googleapi.CloseBody(res)
  6648  	if err := googleapi.CheckResponse(res); err != nil {
  6649  		return nil, gensupport.WrapError(err)
  6650  	}
  6651  	ret := &Operation{
  6652  		ServerResponse: googleapi.ServerResponse{
  6653  			Header:         res.Header,
  6654  			HTTPStatusCode: res.StatusCode,
  6655  		},
  6656  	}
  6657  	target := &ret
  6658  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6659  		return nil, err
  6660  	}
  6661  	return ret, nil
  6662  }
  6663  
  6664  type ProjectsLocationsDeliveryPipelinesGetCall struct {
  6665  	s            *Service
  6666  	name         string
  6667  	urlParams_   gensupport.URLParams
  6668  	ifNoneMatch_ string
  6669  	ctx_         context.Context
  6670  	header_      http.Header
  6671  }
  6672  
  6673  // Get: Gets details of a single DeliveryPipeline.
  6674  //
  6675  //   - name: Name of the `DeliveryPipeline`. Format must be
  6676  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
  6677  //     e_name}`.
  6678  func (r *ProjectsLocationsDeliveryPipelinesService) Get(name string) *ProjectsLocationsDeliveryPipelinesGetCall {
  6679  	c := &ProjectsLocationsDeliveryPipelinesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6680  	c.name = name
  6681  	return c
  6682  }
  6683  
  6684  // Fields allows partial responses to be retrieved. See
  6685  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6686  // details.
  6687  func (c *ProjectsLocationsDeliveryPipelinesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesGetCall {
  6688  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6689  	return c
  6690  }
  6691  
  6692  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6693  // object's ETag matches the given value. This is useful for getting updates
  6694  // only after the object has changed since the last request.
  6695  func (c *ProjectsLocationsDeliveryPipelinesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesGetCall {
  6696  	c.ifNoneMatch_ = entityTag
  6697  	return c
  6698  }
  6699  
  6700  // Context sets the context to be used in this call's Do method.
  6701  func (c *ProjectsLocationsDeliveryPipelinesGetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesGetCall {
  6702  	c.ctx_ = ctx
  6703  	return c
  6704  }
  6705  
  6706  // Header returns a http.Header that can be modified by the caller to add
  6707  // headers to the request.
  6708  func (c *ProjectsLocationsDeliveryPipelinesGetCall) Header() http.Header {
  6709  	if c.header_ == nil {
  6710  		c.header_ = make(http.Header)
  6711  	}
  6712  	return c.header_
  6713  }
  6714  
  6715  func (c *ProjectsLocationsDeliveryPipelinesGetCall) doRequest(alt string) (*http.Response, error) {
  6716  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6717  	if c.ifNoneMatch_ != "" {
  6718  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6719  	}
  6720  	var body io.Reader = nil
  6721  	c.urlParams_.Set("alt", alt)
  6722  	c.urlParams_.Set("prettyPrint", "false")
  6723  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6724  	urls += "?" + c.urlParams_.Encode()
  6725  	req, err := http.NewRequest("GET", urls, body)
  6726  	if err != nil {
  6727  		return nil, err
  6728  	}
  6729  	req.Header = reqHeaders
  6730  	googleapi.Expand(req.URL, map[string]string{
  6731  		"name": c.name,
  6732  	})
  6733  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6734  }
  6735  
  6736  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.get" call.
  6737  // Any non-2xx status code is an error. Response headers are in either
  6738  // *DeliveryPipeline.ServerResponse.Header or (if a response was returned at
  6739  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6740  // check whether the returned error was because http.StatusNotModified was
  6741  // returned.
  6742  func (c *ProjectsLocationsDeliveryPipelinesGetCall) Do(opts ...googleapi.CallOption) (*DeliveryPipeline, error) {
  6743  	gensupport.SetOptions(c.urlParams_, opts...)
  6744  	res, err := c.doRequest("json")
  6745  	if res != nil && res.StatusCode == http.StatusNotModified {
  6746  		if res.Body != nil {
  6747  			res.Body.Close()
  6748  		}
  6749  		return nil, gensupport.WrapError(&googleapi.Error{
  6750  			Code:   res.StatusCode,
  6751  			Header: res.Header,
  6752  		})
  6753  	}
  6754  	if err != nil {
  6755  		return nil, err
  6756  	}
  6757  	defer googleapi.CloseBody(res)
  6758  	if err := googleapi.CheckResponse(res); err != nil {
  6759  		return nil, gensupport.WrapError(err)
  6760  	}
  6761  	ret := &DeliveryPipeline{
  6762  		ServerResponse: googleapi.ServerResponse{
  6763  			Header:         res.Header,
  6764  			HTTPStatusCode: res.StatusCode,
  6765  		},
  6766  	}
  6767  	target := &ret
  6768  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6769  		return nil, err
  6770  	}
  6771  	return ret, nil
  6772  }
  6773  
  6774  type ProjectsLocationsDeliveryPipelinesGetIamPolicyCall struct {
  6775  	s            *Service
  6776  	resource     string
  6777  	urlParams_   gensupport.URLParams
  6778  	ifNoneMatch_ string
  6779  	ctx_         context.Context
  6780  	header_      http.Header
  6781  }
  6782  
  6783  // GetIamPolicy: Gets the access control policy for a resource. Returns an
  6784  // empty policy if the resource exists and does not have a policy set.
  6785  //
  6786  //   - resource: REQUIRED: The resource for which the policy is being requested.
  6787  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  6788  //     for the appropriate value for this field.
  6789  func (r *ProjectsLocationsDeliveryPipelinesService) GetIamPolicy(resource string) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall {
  6790  	c := &ProjectsLocationsDeliveryPipelinesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6791  	c.resource = resource
  6792  	return c
  6793  }
  6794  
  6795  // OptionsRequestedPolicyVersion sets the optional parameter
  6796  // "options.requestedPolicyVersion": The maximum policy version that will be
  6797  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
  6798  // an invalid value will be rejected. Requests for policies with any
  6799  // conditional role bindings must specify version 3. Policies with no
  6800  // conditional role bindings may specify any valid value or leave the field
  6801  // unset. The policy in the response might use the policy version that you
  6802  // specified, or it might use a lower policy version. For example, if you
  6803  // specify version 3, but the policy has no conditional role bindings, the
  6804  // response uses version 1. To learn which resources support conditions in
  6805  // their IAM policies, see the IAM documentation
  6806  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  6807  func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall {
  6808  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  6809  	return c
  6810  }
  6811  
  6812  // Fields allows partial responses to be retrieved. See
  6813  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6814  // details.
  6815  func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall {
  6816  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6817  	return c
  6818  }
  6819  
  6820  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6821  // object's ETag matches the given value. This is useful for getting updates
  6822  // only after the object has changed since the last request.
  6823  func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall {
  6824  	c.ifNoneMatch_ = entityTag
  6825  	return c
  6826  }
  6827  
  6828  // Context sets the context to be used in this call's Do method.
  6829  func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall {
  6830  	c.ctx_ = ctx
  6831  	return c
  6832  }
  6833  
  6834  // Header returns a http.Header that can be modified by the caller to add
  6835  // headers to the request.
  6836  func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Header() http.Header {
  6837  	if c.header_ == nil {
  6838  		c.header_ = make(http.Header)
  6839  	}
  6840  	return c.header_
  6841  }
  6842  
  6843  func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  6844  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6845  	if c.ifNoneMatch_ != "" {
  6846  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6847  	}
  6848  	var body io.Reader = nil
  6849  	c.urlParams_.Set("alt", alt)
  6850  	c.urlParams_.Set("prettyPrint", "false")
  6851  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  6852  	urls += "?" + c.urlParams_.Encode()
  6853  	req, err := http.NewRequest("GET", urls, body)
  6854  	if err != nil {
  6855  		return nil, err
  6856  	}
  6857  	req.Header = reqHeaders
  6858  	googleapi.Expand(req.URL, map[string]string{
  6859  		"resource": c.resource,
  6860  	})
  6861  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6862  }
  6863  
  6864  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.getIamPolicy" call.
  6865  // Any non-2xx status code is an error. Response headers are in either
  6866  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  6867  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6868  // whether the returned error was because http.StatusNotModified was returned.
  6869  func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  6870  	gensupport.SetOptions(c.urlParams_, opts...)
  6871  	res, err := c.doRequest("json")
  6872  	if res != nil && res.StatusCode == http.StatusNotModified {
  6873  		if res.Body != nil {
  6874  			res.Body.Close()
  6875  		}
  6876  		return nil, gensupport.WrapError(&googleapi.Error{
  6877  			Code:   res.StatusCode,
  6878  			Header: res.Header,
  6879  		})
  6880  	}
  6881  	if err != nil {
  6882  		return nil, err
  6883  	}
  6884  	defer googleapi.CloseBody(res)
  6885  	if err := googleapi.CheckResponse(res); err != nil {
  6886  		return nil, gensupport.WrapError(err)
  6887  	}
  6888  	ret := &Policy{
  6889  		ServerResponse: googleapi.ServerResponse{
  6890  			Header:         res.Header,
  6891  			HTTPStatusCode: res.StatusCode,
  6892  		},
  6893  	}
  6894  	target := &ret
  6895  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6896  		return nil, err
  6897  	}
  6898  	return ret, nil
  6899  }
  6900  
  6901  type ProjectsLocationsDeliveryPipelinesListCall struct {
  6902  	s            *Service
  6903  	parent       string
  6904  	urlParams_   gensupport.URLParams
  6905  	ifNoneMatch_ string
  6906  	ctx_         context.Context
  6907  	header_      http.Header
  6908  }
  6909  
  6910  // List: Lists DeliveryPipelines in a given project and location.
  6911  //
  6912  //   - parent: The parent, which owns this collection of pipelines. Format must
  6913  //     be `projects/{project_id}/locations/{location_name}`.
  6914  func (r *ProjectsLocationsDeliveryPipelinesService) List(parent string) *ProjectsLocationsDeliveryPipelinesListCall {
  6915  	c := &ProjectsLocationsDeliveryPipelinesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6916  	c.parent = parent
  6917  	return c
  6918  }
  6919  
  6920  // Filter sets the optional parameter "filter": Filter pipelines to be
  6921  // returned. See https://google.aip.dev/160 for more details.
  6922  func (c *ProjectsLocationsDeliveryPipelinesListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesListCall {
  6923  	c.urlParams_.Set("filter", filter)
  6924  	return c
  6925  }
  6926  
  6927  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  6928  // https://google.aip.dev/132#ordering for more details.
  6929  func (c *ProjectsLocationsDeliveryPipelinesListCall) OrderBy(orderBy string) *ProjectsLocationsDeliveryPipelinesListCall {
  6930  	c.urlParams_.Set("orderBy", orderBy)
  6931  	return c
  6932  }
  6933  
  6934  // PageSize sets the optional parameter "pageSize": The maximum number of
  6935  // pipelines to return. The service may return fewer than this value. If
  6936  // unspecified, at most 50 pipelines will be returned. The maximum value is
  6937  // 1000; values above 1000 will be set to 1000.
  6938  func (c *ProjectsLocationsDeliveryPipelinesListCall) PageSize(pageSize int64) *ProjectsLocationsDeliveryPipelinesListCall {
  6939  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6940  	return c
  6941  }
  6942  
  6943  // PageToken sets the optional parameter "pageToken": A page token, received
  6944  // from a previous `ListDeliveryPipelines` call. Provide this to retrieve the
  6945  // subsequent page. When paginating, all other provided parameters match the
  6946  // call that provided the page token.
  6947  func (c *ProjectsLocationsDeliveryPipelinesListCall) PageToken(pageToken string) *ProjectsLocationsDeliveryPipelinesListCall {
  6948  	c.urlParams_.Set("pageToken", pageToken)
  6949  	return c
  6950  }
  6951  
  6952  // Fields allows partial responses to be retrieved. See
  6953  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6954  // details.
  6955  func (c *ProjectsLocationsDeliveryPipelinesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesListCall {
  6956  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6957  	return c
  6958  }
  6959  
  6960  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6961  // object's ETag matches the given value. This is useful for getting updates
  6962  // only after the object has changed since the last request.
  6963  func (c *ProjectsLocationsDeliveryPipelinesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesListCall {
  6964  	c.ifNoneMatch_ = entityTag
  6965  	return c
  6966  }
  6967  
  6968  // Context sets the context to be used in this call's Do method.
  6969  func (c *ProjectsLocationsDeliveryPipelinesListCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesListCall {
  6970  	c.ctx_ = ctx
  6971  	return c
  6972  }
  6973  
  6974  // Header returns a http.Header that can be modified by the caller to add
  6975  // headers to the request.
  6976  func (c *ProjectsLocationsDeliveryPipelinesListCall) Header() http.Header {
  6977  	if c.header_ == nil {
  6978  		c.header_ = make(http.Header)
  6979  	}
  6980  	return c.header_
  6981  }
  6982  
  6983  func (c *ProjectsLocationsDeliveryPipelinesListCall) doRequest(alt string) (*http.Response, error) {
  6984  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6985  	if c.ifNoneMatch_ != "" {
  6986  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6987  	}
  6988  	var body io.Reader = nil
  6989  	c.urlParams_.Set("alt", alt)
  6990  	c.urlParams_.Set("prettyPrint", "false")
  6991  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deliveryPipelines")
  6992  	urls += "?" + c.urlParams_.Encode()
  6993  	req, err := http.NewRequest("GET", urls, body)
  6994  	if err != nil {
  6995  		return nil, err
  6996  	}
  6997  	req.Header = reqHeaders
  6998  	googleapi.Expand(req.URL, map[string]string{
  6999  		"parent": c.parent,
  7000  	})
  7001  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7002  }
  7003  
  7004  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.list" call.
  7005  // Any non-2xx status code is an error. Response headers are in either
  7006  // *ListDeliveryPipelinesResponse.ServerResponse.Header or (if a response was
  7007  // returned at all) in error.(*googleapi.Error).Header. Use
  7008  // googleapi.IsNotModified to check whether the returned error was because
  7009  // http.StatusNotModified was returned.
  7010  func (c *ProjectsLocationsDeliveryPipelinesListCall) Do(opts ...googleapi.CallOption) (*ListDeliveryPipelinesResponse, error) {
  7011  	gensupport.SetOptions(c.urlParams_, opts...)
  7012  	res, err := c.doRequest("json")
  7013  	if res != nil && res.StatusCode == http.StatusNotModified {
  7014  		if res.Body != nil {
  7015  			res.Body.Close()
  7016  		}
  7017  		return nil, gensupport.WrapError(&googleapi.Error{
  7018  			Code:   res.StatusCode,
  7019  			Header: res.Header,
  7020  		})
  7021  	}
  7022  	if err != nil {
  7023  		return nil, err
  7024  	}
  7025  	defer googleapi.CloseBody(res)
  7026  	if err := googleapi.CheckResponse(res); err != nil {
  7027  		return nil, gensupport.WrapError(err)
  7028  	}
  7029  	ret := &ListDeliveryPipelinesResponse{
  7030  		ServerResponse: googleapi.ServerResponse{
  7031  			Header:         res.Header,
  7032  			HTTPStatusCode: res.StatusCode,
  7033  		},
  7034  	}
  7035  	target := &ret
  7036  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7037  		return nil, err
  7038  	}
  7039  	return ret, nil
  7040  }
  7041  
  7042  // Pages invokes f for each page of results.
  7043  // A non-nil error returned from f will halt the iteration.
  7044  // The provided context supersedes any context provided to the Context method.
  7045  func (c *ProjectsLocationsDeliveryPipelinesListCall) Pages(ctx context.Context, f func(*ListDeliveryPipelinesResponse) error) error {
  7046  	c.ctx_ = ctx
  7047  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7048  	for {
  7049  		x, err := c.Do()
  7050  		if err != nil {
  7051  			return err
  7052  		}
  7053  		if err := f(x); err != nil {
  7054  			return err
  7055  		}
  7056  		if x.NextPageToken == "" {
  7057  			return nil
  7058  		}
  7059  		c.PageToken(x.NextPageToken)
  7060  	}
  7061  }
  7062  
  7063  type ProjectsLocationsDeliveryPipelinesPatchCall struct {
  7064  	s                *Service
  7065  	name             string
  7066  	deliverypipeline *DeliveryPipeline
  7067  	urlParams_       gensupport.URLParams
  7068  	ctx_             context.Context
  7069  	header_          http.Header
  7070  }
  7071  
  7072  // Patch: Updates the parameters of a single DeliveryPipeline.
  7073  //
  7074  //   - name: Optional. Name of the `DeliveryPipeline`. Format is
  7075  //     `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipelin
  7076  //     e}`. The `deliveryPipeline` component must match
  7077  //     `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  7078  func (r *ProjectsLocationsDeliveryPipelinesService) Patch(name string, deliverypipeline *DeliveryPipeline) *ProjectsLocationsDeliveryPipelinesPatchCall {
  7079  	c := &ProjectsLocationsDeliveryPipelinesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7080  	c.name = name
  7081  	c.deliverypipeline = deliverypipeline
  7082  	return c
  7083  }
  7084  
  7085  // AllowMissing sets the optional parameter "allowMissing": If set to true,
  7086  // updating a `DeliveryPipeline` that does not exist will result in the
  7087  // creation of a new `DeliveryPipeline`.
  7088  func (c *ProjectsLocationsDeliveryPipelinesPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDeliveryPipelinesPatchCall {
  7089  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
  7090  	return c
  7091  }
  7092  
  7093  // RequestId sets the optional parameter "requestId": A request ID to identify
  7094  // requests. Specify a unique request ID so that if you must retry your
  7095  // request, the server knows to ignore the request if it has already been
  7096  // completed. The server guarantees that for at least 60 minutes after the
  7097  // first request. For example, consider a situation where you make an initial
  7098  // request and the request times out. If you make the request again with the
  7099  // same request ID, the server can check if original operation with the same
  7100  // request ID was received, and if so, will ignore the second request. This
  7101  // prevents clients from accidentally creating duplicate commitments. The
  7102  // request ID must be a valid UUID with the exception that zero UUID is not
  7103  // supported (00000000-0000-0000-0000-000000000000).
  7104  func (c *ProjectsLocationsDeliveryPipelinesPatchCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesPatchCall {
  7105  	c.urlParams_.Set("requestId", requestId)
  7106  	return c
  7107  }
  7108  
  7109  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
  7110  // used to specify the fields to be overwritten in the `DeliveryPipeline`
  7111  // resource by the update. The fields specified in the update_mask are relative
  7112  // to the resource, not the full request. A field will be overwritten if it's
  7113  // in the mask. If the user doesn't provide a mask then all fields are
  7114  // overwritten.
  7115  func (c *ProjectsLocationsDeliveryPipelinesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDeliveryPipelinesPatchCall {
  7116  	c.urlParams_.Set("updateMask", updateMask)
  7117  	return c
  7118  }
  7119  
  7120  // ValidateOnly sets the optional parameter "validateOnly": If set to true, the
  7121  // request is validated and the user is provided with an expected result, but
  7122  // no actual change is made.
  7123  func (c *ProjectsLocationsDeliveryPipelinesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesPatchCall {
  7124  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  7125  	return c
  7126  }
  7127  
  7128  // Fields allows partial responses to be retrieved. See
  7129  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7130  // details.
  7131  func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesPatchCall {
  7132  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7133  	return c
  7134  }
  7135  
  7136  // Context sets the context to be used in this call's Do method.
  7137  func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesPatchCall {
  7138  	c.ctx_ = ctx
  7139  	return c
  7140  }
  7141  
  7142  // Header returns a http.Header that can be modified by the caller to add
  7143  // headers to the request.
  7144  func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Header() http.Header {
  7145  	if c.header_ == nil {
  7146  		c.header_ = make(http.Header)
  7147  	}
  7148  	return c.header_
  7149  }
  7150  
  7151  func (c *ProjectsLocationsDeliveryPipelinesPatchCall) doRequest(alt string) (*http.Response, error) {
  7152  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7153  	var body io.Reader = nil
  7154  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.deliverypipeline)
  7155  	if err != nil {
  7156  		return nil, err
  7157  	}
  7158  	c.urlParams_.Set("alt", alt)
  7159  	c.urlParams_.Set("prettyPrint", "false")
  7160  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7161  	urls += "?" + c.urlParams_.Encode()
  7162  	req, err := http.NewRequest("PATCH", urls, body)
  7163  	if err != nil {
  7164  		return nil, err
  7165  	}
  7166  	req.Header = reqHeaders
  7167  	googleapi.Expand(req.URL, map[string]string{
  7168  		"name": c.name,
  7169  	})
  7170  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7171  }
  7172  
  7173  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.patch" call.
  7174  // Any non-2xx status code is an error. Response headers are in either
  7175  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7176  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7177  // whether the returned error was because http.StatusNotModified was returned.
  7178  func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7179  	gensupport.SetOptions(c.urlParams_, opts...)
  7180  	res, err := c.doRequest("json")
  7181  	if res != nil && res.StatusCode == http.StatusNotModified {
  7182  		if res.Body != nil {
  7183  			res.Body.Close()
  7184  		}
  7185  		return nil, gensupport.WrapError(&googleapi.Error{
  7186  			Code:   res.StatusCode,
  7187  			Header: res.Header,
  7188  		})
  7189  	}
  7190  	if err != nil {
  7191  		return nil, err
  7192  	}
  7193  	defer googleapi.CloseBody(res)
  7194  	if err := googleapi.CheckResponse(res); err != nil {
  7195  		return nil, gensupport.WrapError(err)
  7196  	}
  7197  	ret := &Operation{
  7198  		ServerResponse: googleapi.ServerResponse{
  7199  			Header:         res.Header,
  7200  			HTTPStatusCode: res.StatusCode,
  7201  		},
  7202  	}
  7203  	target := &ret
  7204  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7205  		return nil, err
  7206  	}
  7207  	return ret, nil
  7208  }
  7209  
  7210  type ProjectsLocationsDeliveryPipelinesRollbackTargetCall struct {
  7211  	s                     *Service
  7212  	name                  string
  7213  	rollbacktargetrequest *RollbackTargetRequest
  7214  	urlParams_            gensupport.URLParams
  7215  	ctx_                  context.Context
  7216  	header_               http.Header
  7217  }
  7218  
  7219  // RollbackTarget: Creates a `Rollout` to roll back the specified target.
  7220  //
  7221  //   - name: The `DeliveryPipeline` for which the rollback `Rollout` should be
  7222  //     created. Format should be
  7223  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
  7224  //     e_name}`.
  7225  func (r *ProjectsLocationsDeliveryPipelinesService) RollbackTarget(name string, rollbacktargetrequest *RollbackTargetRequest) *ProjectsLocationsDeliveryPipelinesRollbackTargetCall {
  7226  	c := &ProjectsLocationsDeliveryPipelinesRollbackTargetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7227  	c.name = name
  7228  	c.rollbacktargetrequest = rollbacktargetrequest
  7229  	return c
  7230  }
  7231  
  7232  // Fields allows partial responses to be retrieved. See
  7233  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7234  // details.
  7235  func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesRollbackTargetCall {
  7236  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7237  	return c
  7238  }
  7239  
  7240  // Context sets the context to be used in this call's Do method.
  7241  func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesRollbackTargetCall {
  7242  	c.ctx_ = ctx
  7243  	return c
  7244  }
  7245  
  7246  // Header returns a http.Header that can be modified by the caller to add
  7247  // headers to the request.
  7248  func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Header() http.Header {
  7249  	if c.header_ == nil {
  7250  		c.header_ = make(http.Header)
  7251  	}
  7252  	return c.header_
  7253  }
  7254  
  7255  func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) doRequest(alt string) (*http.Response, error) {
  7256  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7257  	var body io.Reader = nil
  7258  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollbacktargetrequest)
  7259  	if err != nil {
  7260  		return nil, err
  7261  	}
  7262  	c.urlParams_.Set("alt", alt)
  7263  	c.urlParams_.Set("prettyPrint", "false")
  7264  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:rollbackTarget")
  7265  	urls += "?" + c.urlParams_.Encode()
  7266  	req, err := http.NewRequest("POST", urls, body)
  7267  	if err != nil {
  7268  		return nil, err
  7269  	}
  7270  	req.Header = reqHeaders
  7271  	googleapi.Expand(req.URL, map[string]string{
  7272  		"name": c.name,
  7273  	})
  7274  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7275  }
  7276  
  7277  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.rollbackTarget" call.
  7278  // Any non-2xx status code is an error. Response headers are in either
  7279  // *RollbackTargetResponse.ServerResponse.Header or (if a response was returned
  7280  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7281  // check whether the returned error was because http.StatusNotModified was
  7282  // returned.
  7283  func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Do(opts ...googleapi.CallOption) (*RollbackTargetResponse, error) {
  7284  	gensupport.SetOptions(c.urlParams_, opts...)
  7285  	res, err := c.doRequest("json")
  7286  	if res != nil && res.StatusCode == http.StatusNotModified {
  7287  		if res.Body != nil {
  7288  			res.Body.Close()
  7289  		}
  7290  		return nil, gensupport.WrapError(&googleapi.Error{
  7291  			Code:   res.StatusCode,
  7292  			Header: res.Header,
  7293  		})
  7294  	}
  7295  	if err != nil {
  7296  		return nil, err
  7297  	}
  7298  	defer googleapi.CloseBody(res)
  7299  	if err := googleapi.CheckResponse(res); err != nil {
  7300  		return nil, gensupport.WrapError(err)
  7301  	}
  7302  	ret := &RollbackTargetResponse{
  7303  		ServerResponse: googleapi.ServerResponse{
  7304  			Header:         res.Header,
  7305  			HTTPStatusCode: res.StatusCode,
  7306  		},
  7307  	}
  7308  	target := &ret
  7309  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7310  		return nil, err
  7311  	}
  7312  	return ret, nil
  7313  }
  7314  
  7315  type ProjectsLocationsDeliveryPipelinesSetIamPolicyCall struct {
  7316  	s                   *Service
  7317  	resource            string
  7318  	setiampolicyrequest *SetIamPolicyRequest
  7319  	urlParams_          gensupport.URLParams
  7320  	ctx_                context.Context
  7321  	header_             http.Header
  7322  }
  7323  
  7324  // SetIamPolicy: Sets the access control policy on the specified resource.
  7325  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
  7326  // and `PERMISSION_DENIED` errors.
  7327  //
  7328  //   - resource: REQUIRED: The resource for which the policy is being specified.
  7329  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  7330  //     for the appropriate value for this field.
  7331  func (r *ProjectsLocationsDeliveryPipelinesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall {
  7332  	c := &ProjectsLocationsDeliveryPipelinesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7333  	c.resource = resource
  7334  	c.setiampolicyrequest = setiampolicyrequest
  7335  	return c
  7336  }
  7337  
  7338  // Fields allows partial responses to be retrieved. See
  7339  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7340  // details.
  7341  func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall {
  7342  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7343  	return c
  7344  }
  7345  
  7346  // Context sets the context to be used in this call's Do method.
  7347  func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall {
  7348  	c.ctx_ = ctx
  7349  	return c
  7350  }
  7351  
  7352  // Header returns a http.Header that can be modified by the caller to add
  7353  // headers to the request.
  7354  func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Header() http.Header {
  7355  	if c.header_ == nil {
  7356  		c.header_ = make(http.Header)
  7357  	}
  7358  	return c.header_
  7359  }
  7360  
  7361  func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  7362  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7363  	var body io.Reader = nil
  7364  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  7365  	if err != nil {
  7366  		return nil, err
  7367  	}
  7368  	c.urlParams_.Set("alt", alt)
  7369  	c.urlParams_.Set("prettyPrint", "false")
  7370  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
  7371  	urls += "?" + c.urlParams_.Encode()
  7372  	req, err := http.NewRequest("POST", urls, body)
  7373  	if err != nil {
  7374  		return nil, err
  7375  	}
  7376  	req.Header = reqHeaders
  7377  	googleapi.Expand(req.URL, map[string]string{
  7378  		"resource": c.resource,
  7379  	})
  7380  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7381  }
  7382  
  7383  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.setIamPolicy" call.
  7384  // Any non-2xx status code is an error. Response headers are in either
  7385  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  7386  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7387  // whether the returned error was because http.StatusNotModified was returned.
  7388  func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  7389  	gensupport.SetOptions(c.urlParams_, opts...)
  7390  	res, err := c.doRequest("json")
  7391  	if res != nil && res.StatusCode == http.StatusNotModified {
  7392  		if res.Body != nil {
  7393  			res.Body.Close()
  7394  		}
  7395  		return nil, gensupport.WrapError(&googleapi.Error{
  7396  			Code:   res.StatusCode,
  7397  			Header: res.Header,
  7398  		})
  7399  	}
  7400  	if err != nil {
  7401  		return nil, err
  7402  	}
  7403  	defer googleapi.CloseBody(res)
  7404  	if err := googleapi.CheckResponse(res); err != nil {
  7405  		return nil, gensupport.WrapError(err)
  7406  	}
  7407  	ret := &Policy{
  7408  		ServerResponse: googleapi.ServerResponse{
  7409  			Header:         res.Header,
  7410  			HTTPStatusCode: res.StatusCode,
  7411  		},
  7412  	}
  7413  	target := &ret
  7414  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7415  		return nil, err
  7416  	}
  7417  	return ret, nil
  7418  }
  7419  
  7420  type ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall struct {
  7421  	s                         *Service
  7422  	resource                  string
  7423  	testiampermissionsrequest *TestIamPermissionsRequest
  7424  	urlParams_                gensupport.URLParams
  7425  	ctx_                      context.Context
  7426  	header_                   http.Header
  7427  }
  7428  
  7429  // TestIamPermissions: Returns permissions that a caller has on the specified
  7430  // resource. If the resource does not exist, this will return an empty set of
  7431  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
  7432  // used for building permission-aware UIs and command-line tools, not for
  7433  // authorization checking. This operation may "fail open" without warning.
  7434  //
  7435  //   - resource: REQUIRED: The resource for which the policy detail is being
  7436  //     requested. See Resource names
  7437  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  7438  //     value for this field.
  7439  func (r *ProjectsLocationsDeliveryPipelinesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall {
  7440  	c := &ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7441  	c.resource = resource
  7442  	c.testiampermissionsrequest = testiampermissionsrequest
  7443  	return c
  7444  }
  7445  
  7446  // Fields allows partial responses to be retrieved. See
  7447  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7448  // details.
  7449  func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall {
  7450  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7451  	return c
  7452  }
  7453  
  7454  // Context sets the context to be used in this call's Do method.
  7455  func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall {
  7456  	c.ctx_ = ctx
  7457  	return c
  7458  }
  7459  
  7460  // Header returns a http.Header that can be modified by the caller to add
  7461  // headers to the request.
  7462  func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Header() http.Header {
  7463  	if c.header_ == nil {
  7464  		c.header_ = make(http.Header)
  7465  	}
  7466  	return c.header_
  7467  }
  7468  
  7469  func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  7470  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7471  	var body io.Reader = nil
  7472  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  7473  	if err != nil {
  7474  		return nil, err
  7475  	}
  7476  	c.urlParams_.Set("alt", alt)
  7477  	c.urlParams_.Set("prettyPrint", "false")
  7478  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
  7479  	urls += "?" + c.urlParams_.Encode()
  7480  	req, err := http.NewRequest("POST", urls, body)
  7481  	if err != nil {
  7482  		return nil, err
  7483  	}
  7484  	req.Header = reqHeaders
  7485  	googleapi.Expand(req.URL, map[string]string{
  7486  		"resource": c.resource,
  7487  	})
  7488  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7489  }
  7490  
  7491  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.testIamPermissions" call.
  7492  // Any non-2xx status code is an error. Response headers are in either
  7493  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
  7494  // returned at all) in error.(*googleapi.Error).Header. Use
  7495  // googleapi.IsNotModified to check whether the returned error was because
  7496  // http.StatusNotModified was returned.
  7497  func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  7498  	gensupport.SetOptions(c.urlParams_, opts...)
  7499  	res, err := c.doRequest("json")
  7500  	if res != nil && res.StatusCode == http.StatusNotModified {
  7501  		if res.Body != nil {
  7502  			res.Body.Close()
  7503  		}
  7504  		return nil, gensupport.WrapError(&googleapi.Error{
  7505  			Code:   res.StatusCode,
  7506  			Header: res.Header,
  7507  		})
  7508  	}
  7509  	if err != nil {
  7510  		return nil, err
  7511  	}
  7512  	defer googleapi.CloseBody(res)
  7513  	if err := googleapi.CheckResponse(res); err != nil {
  7514  		return nil, gensupport.WrapError(err)
  7515  	}
  7516  	ret := &TestIamPermissionsResponse{
  7517  		ServerResponse: googleapi.ServerResponse{
  7518  			Header:         res.Header,
  7519  			HTTPStatusCode: res.StatusCode,
  7520  		},
  7521  	}
  7522  	target := &ret
  7523  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7524  		return nil, err
  7525  	}
  7526  	return ret, nil
  7527  }
  7528  
  7529  type ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall struct {
  7530  	s                          *Service
  7531  	name                       string
  7532  	cancelautomationrunrequest *CancelAutomationRunRequest
  7533  	urlParams_                 gensupport.URLParams
  7534  	ctx_                       context.Context
  7535  	header_                    http.Header
  7536  }
  7537  
  7538  // Cancel: Cancels an AutomationRun. The `state` of the `AutomationRun` after
  7539  // cancelling is `CANCELLED`. `CancelAutomationRun` can be called on
  7540  // AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun in a
  7541  // different state returns an `FAILED_PRECONDITION` error.
  7542  //
  7543  //   - name: Name of the `AutomationRun`. Format is
  7544  //     `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeli
  7545  //     ne}/automationRuns/{automation_run}`.
  7546  func (r *ProjectsLocationsDeliveryPipelinesAutomationRunsService) Cancel(name string, cancelautomationrunrequest *CancelAutomationRunRequest) *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall {
  7547  	c := &ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7548  	c.name = name
  7549  	c.cancelautomationrunrequest = cancelautomationrunrequest
  7550  	return c
  7551  }
  7552  
  7553  // Fields allows partial responses to be retrieved. See
  7554  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7555  // details.
  7556  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall {
  7557  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7558  	return c
  7559  }
  7560  
  7561  // Context sets the context to be used in this call's Do method.
  7562  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall {
  7563  	c.ctx_ = ctx
  7564  	return c
  7565  }
  7566  
  7567  // Header returns a http.Header that can be modified by the caller to add
  7568  // headers to the request.
  7569  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall) Header() http.Header {
  7570  	if c.header_ == nil {
  7571  		c.header_ = make(http.Header)
  7572  	}
  7573  	return c.header_
  7574  }
  7575  
  7576  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall) doRequest(alt string) (*http.Response, error) {
  7577  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7578  	var body io.Reader = nil
  7579  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cancelautomationrunrequest)
  7580  	if err != nil {
  7581  		return nil, err
  7582  	}
  7583  	c.urlParams_.Set("alt", alt)
  7584  	c.urlParams_.Set("prettyPrint", "false")
  7585  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
  7586  	urls += "?" + c.urlParams_.Encode()
  7587  	req, err := http.NewRequest("POST", urls, body)
  7588  	if err != nil {
  7589  		return nil, err
  7590  	}
  7591  	req.Header = reqHeaders
  7592  	googleapi.Expand(req.URL, map[string]string{
  7593  		"name": c.name,
  7594  	})
  7595  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7596  }
  7597  
  7598  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automationRuns.cancel" call.
  7599  // Any non-2xx status code is an error. Response headers are in either
  7600  // *CancelAutomationRunResponse.ServerResponse.Header or (if a response was
  7601  // returned at all) in error.(*googleapi.Error).Header. Use
  7602  // googleapi.IsNotModified to check whether the returned error was because
  7603  // http.StatusNotModified was returned.
  7604  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall) Do(opts ...googleapi.CallOption) (*CancelAutomationRunResponse, error) {
  7605  	gensupport.SetOptions(c.urlParams_, opts...)
  7606  	res, err := c.doRequest("json")
  7607  	if res != nil && res.StatusCode == http.StatusNotModified {
  7608  		if res.Body != nil {
  7609  			res.Body.Close()
  7610  		}
  7611  		return nil, gensupport.WrapError(&googleapi.Error{
  7612  			Code:   res.StatusCode,
  7613  			Header: res.Header,
  7614  		})
  7615  	}
  7616  	if err != nil {
  7617  		return nil, err
  7618  	}
  7619  	defer googleapi.CloseBody(res)
  7620  	if err := googleapi.CheckResponse(res); err != nil {
  7621  		return nil, gensupport.WrapError(err)
  7622  	}
  7623  	ret := &CancelAutomationRunResponse{
  7624  		ServerResponse: googleapi.ServerResponse{
  7625  			Header:         res.Header,
  7626  			HTTPStatusCode: res.StatusCode,
  7627  		},
  7628  	}
  7629  	target := &ret
  7630  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7631  		return nil, err
  7632  	}
  7633  	return ret, nil
  7634  }
  7635  
  7636  type ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall struct {
  7637  	s            *Service
  7638  	name         string
  7639  	urlParams_   gensupport.URLParams
  7640  	ifNoneMatch_ string
  7641  	ctx_         context.Context
  7642  	header_      http.Header
  7643  }
  7644  
  7645  // Get: Gets details of a single AutomationRun.
  7646  //
  7647  //   - name: Name of the `AutomationRun`. Format must be
  7648  //     `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeli
  7649  //     ne}/automationRuns/{automation_run}`.
  7650  func (r *ProjectsLocationsDeliveryPipelinesAutomationRunsService) Get(name string) *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall {
  7651  	c := &ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7652  	c.name = name
  7653  	return c
  7654  }
  7655  
  7656  // Fields allows partial responses to be retrieved. See
  7657  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7658  // details.
  7659  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall {
  7660  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7661  	return c
  7662  }
  7663  
  7664  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7665  // object's ETag matches the given value. This is useful for getting updates
  7666  // only after the object has changed since the last request.
  7667  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall {
  7668  	c.ifNoneMatch_ = entityTag
  7669  	return c
  7670  }
  7671  
  7672  // Context sets the context to be used in this call's Do method.
  7673  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall {
  7674  	c.ctx_ = ctx
  7675  	return c
  7676  }
  7677  
  7678  // Header returns a http.Header that can be modified by the caller to add
  7679  // headers to the request.
  7680  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) Header() http.Header {
  7681  	if c.header_ == nil {
  7682  		c.header_ = make(http.Header)
  7683  	}
  7684  	return c.header_
  7685  }
  7686  
  7687  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) doRequest(alt string) (*http.Response, error) {
  7688  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7689  	if c.ifNoneMatch_ != "" {
  7690  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7691  	}
  7692  	var body io.Reader = nil
  7693  	c.urlParams_.Set("alt", alt)
  7694  	c.urlParams_.Set("prettyPrint", "false")
  7695  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7696  	urls += "?" + c.urlParams_.Encode()
  7697  	req, err := http.NewRequest("GET", urls, body)
  7698  	if err != nil {
  7699  		return nil, err
  7700  	}
  7701  	req.Header = reqHeaders
  7702  	googleapi.Expand(req.URL, map[string]string{
  7703  		"name": c.name,
  7704  	})
  7705  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7706  }
  7707  
  7708  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automationRuns.get" call.
  7709  // Any non-2xx status code is an error. Response headers are in either
  7710  // *AutomationRun.ServerResponse.Header or (if a response was returned at all)
  7711  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7712  // whether the returned error was because http.StatusNotModified was returned.
  7713  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) Do(opts ...googleapi.CallOption) (*AutomationRun, error) {
  7714  	gensupport.SetOptions(c.urlParams_, opts...)
  7715  	res, err := c.doRequest("json")
  7716  	if res != nil && res.StatusCode == http.StatusNotModified {
  7717  		if res.Body != nil {
  7718  			res.Body.Close()
  7719  		}
  7720  		return nil, gensupport.WrapError(&googleapi.Error{
  7721  			Code:   res.StatusCode,
  7722  			Header: res.Header,
  7723  		})
  7724  	}
  7725  	if err != nil {
  7726  		return nil, err
  7727  	}
  7728  	defer googleapi.CloseBody(res)
  7729  	if err := googleapi.CheckResponse(res); err != nil {
  7730  		return nil, gensupport.WrapError(err)
  7731  	}
  7732  	ret := &AutomationRun{
  7733  		ServerResponse: googleapi.ServerResponse{
  7734  			Header:         res.Header,
  7735  			HTTPStatusCode: res.StatusCode,
  7736  		},
  7737  	}
  7738  	target := &ret
  7739  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7740  		return nil, err
  7741  	}
  7742  	return ret, nil
  7743  }
  7744  
  7745  type ProjectsLocationsDeliveryPipelinesAutomationRunsListCall struct {
  7746  	s            *Service
  7747  	parent       string
  7748  	urlParams_   gensupport.URLParams
  7749  	ifNoneMatch_ string
  7750  	ctx_         context.Context
  7751  	header_      http.Header
  7752  }
  7753  
  7754  // List: Lists AutomationRuns in a given project and location.
  7755  //
  7756  //   - parent: The parent `Delivery Pipeline`, which owns this collection of
  7757  //     automationRuns. Format must be
  7758  //     `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeli
  7759  //     ne}`.
  7760  func (r *ProjectsLocationsDeliveryPipelinesAutomationRunsService) List(parent string) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall {
  7761  	c := &ProjectsLocationsDeliveryPipelinesAutomationRunsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7762  	c.parent = parent
  7763  	return c
  7764  }
  7765  
  7766  // Filter sets the optional parameter "filter": Filter automationRuns to be
  7767  // returned. All fields can be used in the filter.
  7768  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall {
  7769  	c.urlParams_.Set("filter", filter)
  7770  	return c
  7771  }
  7772  
  7773  // OrderBy sets the optional parameter "orderBy": Field to sort by.
  7774  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) OrderBy(orderBy string) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall {
  7775  	c.urlParams_.Set("orderBy", orderBy)
  7776  	return c
  7777  }
  7778  
  7779  // PageSize sets the optional parameter "pageSize": The maximum number of
  7780  // automationRuns to return. The service may return fewer than this value. If
  7781  // unspecified, at most 50 automationRuns will be returned. The maximum value
  7782  // is 1000; values above 1000 will be set to 1000.
  7783  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) PageSize(pageSize int64) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall {
  7784  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7785  	return c
  7786  }
  7787  
  7788  // PageToken sets the optional parameter "pageToken": A page token, received
  7789  // from a previous `ListAutomationRuns` call. Provide this to retrieve the
  7790  // subsequent page. When paginating, all other provided parameters match the
  7791  // call that provided the page token.
  7792  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) PageToken(pageToken string) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall {
  7793  	c.urlParams_.Set("pageToken", pageToken)
  7794  	return c
  7795  }
  7796  
  7797  // Fields allows partial responses to be retrieved. See
  7798  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7799  // details.
  7800  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall {
  7801  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7802  	return c
  7803  }
  7804  
  7805  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7806  // object's ETag matches the given value. This is useful for getting updates
  7807  // only after the object has changed since the last request.
  7808  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall {
  7809  	c.ifNoneMatch_ = entityTag
  7810  	return c
  7811  }
  7812  
  7813  // Context sets the context to be used in this call's Do method.
  7814  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall {
  7815  	c.ctx_ = ctx
  7816  	return c
  7817  }
  7818  
  7819  // Header returns a http.Header that can be modified by the caller to add
  7820  // headers to the request.
  7821  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Header() http.Header {
  7822  	if c.header_ == nil {
  7823  		c.header_ = make(http.Header)
  7824  	}
  7825  	return c.header_
  7826  }
  7827  
  7828  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) doRequest(alt string) (*http.Response, error) {
  7829  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7830  	if c.ifNoneMatch_ != "" {
  7831  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7832  	}
  7833  	var body io.Reader = nil
  7834  	c.urlParams_.Set("alt", alt)
  7835  	c.urlParams_.Set("prettyPrint", "false")
  7836  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/automationRuns")
  7837  	urls += "?" + c.urlParams_.Encode()
  7838  	req, err := http.NewRequest("GET", urls, body)
  7839  	if err != nil {
  7840  		return nil, err
  7841  	}
  7842  	req.Header = reqHeaders
  7843  	googleapi.Expand(req.URL, map[string]string{
  7844  		"parent": c.parent,
  7845  	})
  7846  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7847  }
  7848  
  7849  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automationRuns.list" call.
  7850  // Any non-2xx status code is an error. Response headers are in either
  7851  // *ListAutomationRunsResponse.ServerResponse.Header or (if a response was
  7852  // returned at all) in error.(*googleapi.Error).Header. Use
  7853  // googleapi.IsNotModified to check whether the returned error was because
  7854  // http.StatusNotModified was returned.
  7855  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Do(opts ...googleapi.CallOption) (*ListAutomationRunsResponse, error) {
  7856  	gensupport.SetOptions(c.urlParams_, opts...)
  7857  	res, err := c.doRequest("json")
  7858  	if res != nil && res.StatusCode == http.StatusNotModified {
  7859  		if res.Body != nil {
  7860  			res.Body.Close()
  7861  		}
  7862  		return nil, gensupport.WrapError(&googleapi.Error{
  7863  			Code:   res.StatusCode,
  7864  			Header: res.Header,
  7865  		})
  7866  	}
  7867  	if err != nil {
  7868  		return nil, err
  7869  	}
  7870  	defer googleapi.CloseBody(res)
  7871  	if err := googleapi.CheckResponse(res); err != nil {
  7872  		return nil, gensupport.WrapError(err)
  7873  	}
  7874  	ret := &ListAutomationRunsResponse{
  7875  		ServerResponse: googleapi.ServerResponse{
  7876  			Header:         res.Header,
  7877  			HTTPStatusCode: res.StatusCode,
  7878  		},
  7879  	}
  7880  	target := &ret
  7881  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7882  		return nil, err
  7883  	}
  7884  	return ret, nil
  7885  }
  7886  
  7887  // Pages invokes f for each page of results.
  7888  // A non-nil error returned from f will halt the iteration.
  7889  // The provided context supersedes any context provided to the Context method.
  7890  func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Pages(ctx context.Context, f func(*ListAutomationRunsResponse) error) error {
  7891  	c.ctx_ = ctx
  7892  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7893  	for {
  7894  		x, err := c.Do()
  7895  		if err != nil {
  7896  			return err
  7897  		}
  7898  		if err := f(x); err != nil {
  7899  			return err
  7900  		}
  7901  		if x.NextPageToken == "" {
  7902  			return nil
  7903  		}
  7904  		c.PageToken(x.NextPageToken)
  7905  	}
  7906  }
  7907  
  7908  type ProjectsLocationsDeliveryPipelinesAutomationsCreateCall struct {
  7909  	s          *Service
  7910  	parent     string
  7911  	automation *Automation
  7912  	urlParams_ gensupport.URLParams
  7913  	ctx_       context.Context
  7914  	header_    http.Header
  7915  }
  7916  
  7917  // Create: Creates a new Automation in a given project and location.
  7918  //
  7919  //   - parent: The parent collection in which the `Automation` should be created.
  7920  //     Format should be
  7921  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
  7922  //     e_name}`.
  7923  func (r *ProjectsLocationsDeliveryPipelinesAutomationsService) Create(parent string, automation *Automation) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall {
  7924  	c := &ProjectsLocationsDeliveryPipelinesAutomationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7925  	c.parent = parent
  7926  	c.automation = automation
  7927  	return c
  7928  }
  7929  
  7930  // AutomationId sets the optional parameter "automationId": Required. ID of the
  7931  // `Automation`.
  7932  func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) AutomationId(automationId string) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall {
  7933  	c.urlParams_.Set("automationId", automationId)
  7934  	return c
  7935  }
  7936  
  7937  // RequestId sets the optional parameter "requestId": A request ID to identify
  7938  // requests. Specify a unique request ID so that if you must retry your
  7939  // request, the server knows to ignore the request if it has already been
  7940  // completed. The server guarantees that for at least 60 minutes after the
  7941  // first request. For example, consider a situation where you make an initial
  7942  // request and the request times out. If you make the request again with the
  7943  // same request ID, the server can check if original operation with the same
  7944  // request ID was received, and if so, will ignore the second request. This
  7945  // prevents clients from accidentally creating duplicate commitments. The
  7946  // request ID must be a valid UUID with the exception that zero UUID is not
  7947  // supported (00000000-0000-0000-0000-000000000000).
  7948  func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall {
  7949  	c.urlParams_.Set("requestId", requestId)
  7950  	return c
  7951  }
  7952  
  7953  // ValidateOnly sets the optional parameter "validateOnly": If set to true, the
  7954  // request is validated and the user is provided with an expected result, but
  7955  // no actual change is made.
  7956  func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall {
  7957  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  7958  	return c
  7959  }
  7960  
  7961  // Fields allows partial responses to be retrieved. See
  7962  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7963  // details.
  7964  func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall {
  7965  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7966  	return c
  7967  }
  7968  
  7969  // Context sets the context to be used in this call's Do method.
  7970  func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall {
  7971  	c.ctx_ = ctx
  7972  	return c
  7973  }
  7974  
  7975  // Header returns a http.Header that can be modified by the caller to add
  7976  // headers to the request.
  7977  func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) Header() http.Header {
  7978  	if c.header_ == nil {
  7979  		c.header_ = make(http.Header)
  7980  	}
  7981  	return c.header_
  7982  }
  7983  
  7984  func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) doRequest(alt string) (*http.Response, error) {
  7985  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7986  	var body io.Reader = nil
  7987  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.automation)
  7988  	if err != nil {
  7989  		return nil, err
  7990  	}
  7991  	c.urlParams_.Set("alt", alt)
  7992  	c.urlParams_.Set("prettyPrint", "false")
  7993  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/automations")
  7994  	urls += "?" + c.urlParams_.Encode()
  7995  	req, err := http.NewRequest("POST", urls, body)
  7996  	if err != nil {
  7997  		return nil, err
  7998  	}
  7999  	req.Header = reqHeaders
  8000  	googleapi.Expand(req.URL, map[string]string{
  8001  		"parent": c.parent,
  8002  	})
  8003  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8004  }
  8005  
  8006  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.create" call.
  8007  // Any non-2xx status code is an error. Response headers are in either
  8008  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8009  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8010  // whether the returned error was because http.StatusNotModified was returned.
  8011  func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8012  	gensupport.SetOptions(c.urlParams_, opts...)
  8013  	res, err := c.doRequest("json")
  8014  	if res != nil && res.StatusCode == http.StatusNotModified {
  8015  		if res.Body != nil {
  8016  			res.Body.Close()
  8017  		}
  8018  		return nil, gensupport.WrapError(&googleapi.Error{
  8019  			Code:   res.StatusCode,
  8020  			Header: res.Header,
  8021  		})
  8022  	}
  8023  	if err != nil {
  8024  		return nil, err
  8025  	}
  8026  	defer googleapi.CloseBody(res)
  8027  	if err := googleapi.CheckResponse(res); err != nil {
  8028  		return nil, gensupport.WrapError(err)
  8029  	}
  8030  	ret := &Operation{
  8031  		ServerResponse: googleapi.ServerResponse{
  8032  			Header:         res.Header,
  8033  			HTTPStatusCode: res.StatusCode,
  8034  		},
  8035  	}
  8036  	target := &ret
  8037  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8038  		return nil, err
  8039  	}
  8040  	return ret, nil
  8041  }
  8042  
  8043  type ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall struct {
  8044  	s          *Service
  8045  	name       string
  8046  	urlParams_ gensupport.URLParams
  8047  	ctx_       context.Context
  8048  	header_    http.Header
  8049  }
  8050  
  8051  // Delete: Deletes a single Automation resource.
  8052  //
  8053  //   - name: The name of the `Automation` to delete. Format should be
  8054  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
  8055  //     e_name}/automations/{automation_name}`.
  8056  func (r *ProjectsLocationsDeliveryPipelinesAutomationsService) Delete(name string) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall {
  8057  	c := &ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8058  	c.name = name
  8059  	return c
  8060  }
  8061  
  8062  // AllowMissing sets the optional parameter "allowMissing": If set to true,
  8063  // then deleting an already deleted or non-existing `Automation` will succeed.
  8064  func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall {
  8065  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
  8066  	return c
  8067  }
  8068  
  8069  // Etag sets the optional parameter "etag": The weak etag of the request. This
  8070  // checksum is computed by the server based on the value of other fields, and
  8071  // may be sent on update and delete requests to ensure the client has an
  8072  // up-to-date value before proceeding.
  8073  func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) Etag(etag string) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall {
  8074  	c.urlParams_.Set("etag", etag)
  8075  	return c
  8076  }
  8077  
  8078  // RequestId sets the optional parameter "requestId": A request ID to identify
  8079  // requests. Specify a unique request ID so that if you must retry your
  8080  // request, the server knows to ignore the request if it has already been
  8081  // completed. The server guarantees that for at least 60 minutes after the
  8082  // first request. For example, consider a situation where you make an initial
  8083  // request and the request times out. If you make the request again with the
  8084  // same request ID, the server can check if original operation with the same
  8085  // request ID was received, and if so, will ignore the second request. This
  8086  // prevents clients from accidentally creating duplicate commitments. The
  8087  // request ID must be a valid UUID with the exception that zero UUID is not
  8088  // supported (00000000-0000-0000-0000-000000000000).
  8089  func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall {
  8090  	c.urlParams_.Set("requestId", requestId)
  8091  	return c
  8092  }
  8093  
  8094  // ValidateOnly sets the optional parameter "validateOnly": If set, validate
  8095  // the request and verify whether the resource exists, but do not actually post
  8096  // it.
  8097  func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall {
  8098  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  8099  	return c
  8100  }
  8101  
  8102  // Fields allows partial responses to be retrieved. See
  8103  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8104  // details.
  8105  func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall {
  8106  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8107  	return c
  8108  }
  8109  
  8110  // Context sets the context to be used in this call's Do method.
  8111  func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall {
  8112  	c.ctx_ = ctx
  8113  	return c
  8114  }
  8115  
  8116  // Header returns a http.Header that can be modified by the caller to add
  8117  // headers to the request.
  8118  func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) Header() http.Header {
  8119  	if c.header_ == nil {
  8120  		c.header_ = make(http.Header)
  8121  	}
  8122  	return c.header_
  8123  }
  8124  
  8125  func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) doRequest(alt string) (*http.Response, error) {
  8126  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8127  	var body io.Reader = nil
  8128  	c.urlParams_.Set("alt", alt)
  8129  	c.urlParams_.Set("prettyPrint", "false")
  8130  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8131  	urls += "?" + c.urlParams_.Encode()
  8132  	req, err := http.NewRequest("DELETE", urls, body)
  8133  	if err != nil {
  8134  		return nil, err
  8135  	}
  8136  	req.Header = reqHeaders
  8137  	googleapi.Expand(req.URL, map[string]string{
  8138  		"name": c.name,
  8139  	})
  8140  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8141  }
  8142  
  8143  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.delete" call.
  8144  // Any non-2xx status code is an error. Response headers are in either
  8145  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8146  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8147  // whether the returned error was because http.StatusNotModified was returned.
  8148  func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8149  	gensupport.SetOptions(c.urlParams_, opts...)
  8150  	res, err := c.doRequest("json")
  8151  	if res != nil && res.StatusCode == http.StatusNotModified {
  8152  		if res.Body != nil {
  8153  			res.Body.Close()
  8154  		}
  8155  		return nil, gensupport.WrapError(&googleapi.Error{
  8156  			Code:   res.StatusCode,
  8157  			Header: res.Header,
  8158  		})
  8159  	}
  8160  	if err != nil {
  8161  		return nil, err
  8162  	}
  8163  	defer googleapi.CloseBody(res)
  8164  	if err := googleapi.CheckResponse(res); err != nil {
  8165  		return nil, gensupport.WrapError(err)
  8166  	}
  8167  	ret := &Operation{
  8168  		ServerResponse: googleapi.ServerResponse{
  8169  			Header:         res.Header,
  8170  			HTTPStatusCode: res.StatusCode,
  8171  		},
  8172  	}
  8173  	target := &ret
  8174  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8175  		return nil, err
  8176  	}
  8177  	return ret, nil
  8178  }
  8179  
  8180  type ProjectsLocationsDeliveryPipelinesAutomationsGetCall struct {
  8181  	s            *Service
  8182  	name         string
  8183  	urlParams_   gensupport.URLParams
  8184  	ifNoneMatch_ string
  8185  	ctx_         context.Context
  8186  	header_      http.Header
  8187  }
  8188  
  8189  // Get: Gets details of a single Automation.
  8190  //
  8191  //   - name: Name of the `Automation`. Format must be
  8192  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
  8193  //     e_name}/automations/{automation_name}`.
  8194  func (r *ProjectsLocationsDeliveryPipelinesAutomationsService) Get(name string) *ProjectsLocationsDeliveryPipelinesAutomationsGetCall {
  8195  	c := &ProjectsLocationsDeliveryPipelinesAutomationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8196  	c.name = name
  8197  	return c
  8198  }
  8199  
  8200  // Fields allows partial responses to be retrieved. See
  8201  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8202  // details.
  8203  func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationsGetCall {
  8204  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8205  	return c
  8206  }
  8207  
  8208  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8209  // object's ETag matches the given value. This is useful for getting updates
  8210  // only after the object has changed since the last request.
  8211  func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesAutomationsGetCall {
  8212  	c.ifNoneMatch_ = entityTag
  8213  	return c
  8214  }
  8215  
  8216  // Context sets the context to be used in this call's Do method.
  8217  func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationsGetCall {
  8218  	c.ctx_ = ctx
  8219  	return c
  8220  }
  8221  
  8222  // Header returns a http.Header that can be modified by the caller to add
  8223  // headers to the request.
  8224  func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) Header() http.Header {
  8225  	if c.header_ == nil {
  8226  		c.header_ = make(http.Header)
  8227  	}
  8228  	return c.header_
  8229  }
  8230  
  8231  func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) doRequest(alt string) (*http.Response, error) {
  8232  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8233  	if c.ifNoneMatch_ != "" {
  8234  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8235  	}
  8236  	var body io.Reader = nil
  8237  	c.urlParams_.Set("alt", alt)
  8238  	c.urlParams_.Set("prettyPrint", "false")
  8239  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8240  	urls += "?" + c.urlParams_.Encode()
  8241  	req, err := http.NewRequest("GET", urls, body)
  8242  	if err != nil {
  8243  		return nil, err
  8244  	}
  8245  	req.Header = reqHeaders
  8246  	googleapi.Expand(req.URL, map[string]string{
  8247  		"name": c.name,
  8248  	})
  8249  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8250  }
  8251  
  8252  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.get" call.
  8253  // Any non-2xx status code is an error. Response headers are in either
  8254  // *Automation.ServerResponse.Header or (if a response was returned at all) in
  8255  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8256  // whether the returned error was because http.StatusNotModified was returned.
  8257  func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) Do(opts ...googleapi.CallOption) (*Automation, error) {
  8258  	gensupport.SetOptions(c.urlParams_, opts...)
  8259  	res, err := c.doRequest("json")
  8260  	if res != nil && res.StatusCode == http.StatusNotModified {
  8261  		if res.Body != nil {
  8262  			res.Body.Close()
  8263  		}
  8264  		return nil, gensupport.WrapError(&googleapi.Error{
  8265  			Code:   res.StatusCode,
  8266  			Header: res.Header,
  8267  		})
  8268  	}
  8269  	if err != nil {
  8270  		return nil, err
  8271  	}
  8272  	defer googleapi.CloseBody(res)
  8273  	if err := googleapi.CheckResponse(res); err != nil {
  8274  		return nil, gensupport.WrapError(err)
  8275  	}
  8276  	ret := &Automation{
  8277  		ServerResponse: googleapi.ServerResponse{
  8278  			Header:         res.Header,
  8279  			HTTPStatusCode: res.StatusCode,
  8280  		},
  8281  	}
  8282  	target := &ret
  8283  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8284  		return nil, err
  8285  	}
  8286  	return ret, nil
  8287  }
  8288  
  8289  type ProjectsLocationsDeliveryPipelinesAutomationsListCall struct {
  8290  	s            *Service
  8291  	parent       string
  8292  	urlParams_   gensupport.URLParams
  8293  	ifNoneMatch_ string
  8294  	ctx_         context.Context
  8295  	header_      http.Header
  8296  }
  8297  
  8298  // List: Lists Automations in a given project and location.
  8299  //
  8300  //   - parent: The parent `Delivery Pipeline`, which owns this collection of
  8301  //     automations. Format must be
  8302  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
  8303  //     e_name}`.
  8304  func (r *ProjectsLocationsDeliveryPipelinesAutomationsService) List(parent string) *ProjectsLocationsDeliveryPipelinesAutomationsListCall {
  8305  	c := &ProjectsLocationsDeliveryPipelinesAutomationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8306  	c.parent = parent
  8307  	return c
  8308  }
  8309  
  8310  // Filter sets the optional parameter "filter": Filter automations to be
  8311  // returned. All fields can be used in the filter.
  8312  func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesAutomationsListCall {
  8313  	c.urlParams_.Set("filter", filter)
  8314  	return c
  8315  }
  8316  
  8317  // OrderBy sets the optional parameter "orderBy": Field to sort by.
  8318  func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) OrderBy(orderBy string) *ProjectsLocationsDeliveryPipelinesAutomationsListCall {
  8319  	c.urlParams_.Set("orderBy", orderBy)
  8320  	return c
  8321  }
  8322  
  8323  // PageSize sets the optional parameter "pageSize": The maximum number of
  8324  // automations to return. The service may return fewer than this value. If
  8325  // unspecified, at most 50 automations will be returned. The maximum value is
  8326  // 1000; values above 1000 will be set to 1000.
  8327  func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) PageSize(pageSize int64) *ProjectsLocationsDeliveryPipelinesAutomationsListCall {
  8328  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8329  	return c
  8330  }
  8331  
  8332  // PageToken sets the optional parameter "pageToken": A page token, received
  8333  // from a previous `ListAutomations` call. Provide this to retrieve the
  8334  // subsequent page. When paginating, all other provided parameters match the
  8335  // call that provided the page token.
  8336  func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) PageToken(pageToken string) *ProjectsLocationsDeliveryPipelinesAutomationsListCall {
  8337  	c.urlParams_.Set("pageToken", pageToken)
  8338  	return c
  8339  }
  8340  
  8341  // Fields allows partial responses to be retrieved. See
  8342  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8343  // details.
  8344  func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationsListCall {
  8345  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8346  	return c
  8347  }
  8348  
  8349  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8350  // object's ETag matches the given value. This is useful for getting updates
  8351  // only after the object has changed since the last request.
  8352  func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesAutomationsListCall {
  8353  	c.ifNoneMatch_ = entityTag
  8354  	return c
  8355  }
  8356  
  8357  // Context sets the context to be used in this call's Do method.
  8358  func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationsListCall {
  8359  	c.ctx_ = ctx
  8360  	return c
  8361  }
  8362  
  8363  // Header returns a http.Header that can be modified by the caller to add
  8364  // headers to the request.
  8365  func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Header() http.Header {
  8366  	if c.header_ == nil {
  8367  		c.header_ = make(http.Header)
  8368  	}
  8369  	return c.header_
  8370  }
  8371  
  8372  func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) doRequest(alt string) (*http.Response, error) {
  8373  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8374  	if c.ifNoneMatch_ != "" {
  8375  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8376  	}
  8377  	var body io.Reader = nil
  8378  	c.urlParams_.Set("alt", alt)
  8379  	c.urlParams_.Set("prettyPrint", "false")
  8380  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/automations")
  8381  	urls += "?" + c.urlParams_.Encode()
  8382  	req, err := http.NewRequest("GET", urls, body)
  8383  	if err != nil {
  8384  		return nil, err
  8385  	}
  8386  	req.Header = reqHeaders
  8387  	googleapi.Expand(req.URL, map[string]string{
  8388  		"parent": c.parent,
  8389  	})
  8390  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8391  }
  8392  
  8393  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.list" call.
  8394  // Any non-2xx status code is an error. Response headers are in either
  8395  // *ListAutomationsResponse.ServerResponse.Header or (if a response was
  8396  // returned at all) in error.(*googleapi.Error).Header. Use
  8397  // googleapi.IsNotModified to check whether the returned error was because
  8398  // http.StatusNotModified was returned.
  8399  func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Do(opts ...googleapi.CallOption) (*ListAutomationsResponse, error) {
  8400  	gensupport.SetOptions(c.urlParams_, opts...)
  8401  	res, err := c.doRequest("json")
  8402  	if res != nil && res.StatusCode == http.StatusNotModified {
  8403  		if res.Body != nil {
  8404  			res.Body.Close()
  8405  		}
  8406  		return nil, gensupport.WrapError(&googleapi.Error{
  8407  			Code:   res.StatusCode,
  8408  			Header: res.Header,
  8409  		})
  8410  	}
  8411  	if err != nil {
  8412  		return nil, err
  8413  	}
  8414  	defer googleapi.CloseBody(res)
  8415  	if err := googleapi.CheckResponse(res); err != nil {
  8416  		return nil, gensupport.WrapError(err)
  8417  	}
  8418  	ret := &ListAutomationsResponse{
  8419  		ServerResponse: googleapi.ServerResponse{
  8420  			Header:         res.Header,
  8421  			HTTPStatusCode: res.StatusCode,
  8422  		},
  8423  	}
  8424  	target := &ret
  8425  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8426  		return nil, err
  8427  	}
  8428  	return ret, nil
  8429  }
  8430  
  8431  // Pages invokes f for each page of results.
  8432  // A non-nil error returned from f will halt the iteration.
  8433  // The provided context supersedes any context provided to the Context method.
  8434  func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Pages(ctx context.Context, f func(*ListAutomationsResponse) error) error {
  8435  	c.ctx_ = ctx
  8436  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8437  	for {
  8438  		x, err := c.Do()
  8439  		if err != nil {
  8440  			return err
  8441  		}
  8442  		if err := f(x); err != nil {
  8443  			return err
  8444  		}
  8445  		if x.NextPageToken == "" {
  8446  			return nil
  8447  		}
  8448  		c.PageToken(x.NextPageToken)
  8449  	}
  8450  }
  8451  
  8452  type ProjectsLocationsDeliveryPipelinesAutomationsPatchCall struct {
  8453  	s          *Service
  8454  	name       string
  8455  	automation *Automation
  8456  	urlParams_ gensupport.URLParams
  8457  	ctx_       context.Context
  8458  	header_    http.Header
  8459  }
  8460  
  8461  // Patch: Updates the parameters of a single Automation resource.
  8462  //
  8463  //   - name: Output only. Name of the `Automation`. Format is
  8464  //     `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeli
  8465  //     ne}/automations/{automation}`.
  8466  func (r *ProjectsLocationsDeliveryPipelinesAutomationsService) Patch(name string, automation *Automation) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall {
  8467  	c := &ProjectsLocationsDeliveryPipelinesAutomationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8468  	c.name = name
  8469  	c.automation = automation
  8470  	return c
  8471  }
  8472  
  8473  // AllowMissing sets the optional parameter "allowMissing": If set to true,
  8474  // updating a `Automation` that does not exist will result in the creation of a
  8475  // new `Automation`.
  8476  func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall {
  8477  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
  8478  	return c
  8479  }
  8480  
  8481  // RequestId sets the optional parameter "requestId": A request ID to identify
  8482  // requests. Specify a unique request ID so that if you must retry your
  8483  // request, the server knows to ignore the request if it has already been
  8484  // completed. The server guarantees that for at least 60 minutes after the
  8485  // first request. For example, consider a situation where you make an initial
  8486  // request and the request times out. If you make the request again with the
  8487  // same request ID, the server can check if original operation with the same
  8488  // request ID was received, and if so, will ignore the second request. This
  8489  // prevents clients from accidentally creating duplicate commitments. The
  8490  // request ID must be a valid UUID with the exception that zero UUID is not
  8491  // supported (00000000-0000-0000-0000-000000000000).
  8492  func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall {
  8493  	c.urlParams_.Set("requestId", requestId)
  8494  	return c
  8495  }
  8496  
  8497  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
  8498  // used to specify the fields to be overwritten in the `Automation` resource by
  8499  // the update. The fields specified in the update_mask are relative to the
  8500  // resource, not the full request. A field will be overwritten if it's in the
  8501  // mask. If the user doesn't provide a mask then all fields are overwritten.
  8502  func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall {
  8503  	c.urlParams_.Set("updateMask", updateMask)
  8504  	return c
  8505  }
  8506  
  8507  // ValidateOnly sets the optional parameter "validateOnly": If set to true, the
  8508  // request is validated and the user is provided with an expected result, but
  8509  // no actual change is made.
  8510  func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall {
  8511  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  8512  	return c
  8513  }
  8514  
  8515  // Fields allows partial responses to be retrieved. See
  8516  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8517  // details.
  8518  func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall {
  8519  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8520  	return c
  8521  }
  8522  
  8523  // Context sets the context to be used in this call's Do method.
  8524  func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall {
  8525  	c.ctx_ = ctx
  8526  	return c
  8527  }
  8528  
  8529  // Header returns a http.Header that can be modified by the caller to add
  8530  // headers to the request.
  8531  func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) Header() http.Header {
  8532  	if c.header_ == nil {
  8533  		c.header_ = make(http.Header)
  8534  	}
  8535  	return c.header_
  8536  }
  8537  
  8538  func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) doRequest(alt string) (*http.Response, error) {
  8539  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8540  	var body io.Reader = nil
  8541  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.automation)
  8542  	if err != nil {
  8543  		return nil, err
  8544  	}
  8545  	c.urlParams_.Set("alt", alt)
  8546  	c.urlParams_.Set("prettyPrint", "false")
  8547  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8548  	urls += "?" + c.urlParams_.Encode()
  8549  	req, err := http.NewRequest("PATCH", urls, body)
  8550  	if err != nil {
  8551  		return nil, err
  8552  	}
  8553  	req.Header = reqHeaders
  8554  	googleapi.Expand(req.URL, map[string]string{
  8555  		"name": c.name,
  8556  	})
  8557  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8558  }
  8559  
  8560  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.patch" call.
  8561  // Any non-2xx status code is an error. Response headers are in either
  8562  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8563  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8564  // whether the returned error was because http.StatusNotModified was returned.
  8565  func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8566  	gensupport.SetOptions(c.urlParams_, opts...)
  8567  	res, err := c.doRequest("json")
  8568  	if res != nil && res.StatusCode == http.StatusNotModified {
  8569  		if res.Body != nil {
  8570  			res.Body.Close()
  8571  		}
  8572  		return nil, gensupport.WrapError(&googleapi.Error{
  8573  			Code:   res.StatusCode,
  8574  			Header: res.Header,
  8575  		})
  8576  	}
  8577  	if err != nil {
  8578  		return nil, err
  8579  	}
  8580  	defer googleapi.CloseBody(res)
  8581  	if err := googleapi.CheckResponse(res); err != nil {
  8582  		return nil, gensupport.WrapError(err)
  8583  	}
  8584  	ret := &Operation{
  8585  		ServerResponse: googleapi.ServerResponse{
  8586  			Header:         res.Header,
  8587  			HTTPStatusCode: res.StatusCode,
  8588  		},
  8589  	}
  8590  	target := &ret
  8591  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8592  		return nil, err
  8593  	}
  8594  	return ret, nil
  8595  }
  8596  
  8597  type ProjectsLocationsDeliveryPipelinesReleasesAbandonCall struct {
  8598  	s                     *Service
  8599  	name                  string
  8600  	abandonreleaserequest *AbandonReleaseRequest
  8601  	urlParams_            gensupport.URLParams
  8602  	ctx_                  context.Context
  8603  	header_               http.Header
  8604  }
  8605  
  8606  // Abandon: Abandons a Release in the Delivery Pipeline.
  8607  //
  8608  //   - name: Name of the Release. Format is
  8609  //     `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipelin
  8610  //     e}/releases/{release}`.
  8611  func (r *ProjectsLocationsDeliveryPipelinesReleasesService) Abandon(name string, abandonreleaserequest *AbandonReleaseRequest) *ProjectsLocationsDeliveryPipelinesReleasesAbandonCall {
  8612  	c := &ProjectsLocationsDeliveryPipelinesReleasesAbandonCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8613  	c.name = name
  8614  	c.abandonreleaserequest = abandonreleaserequest
  8615  	return c
  8616  }
  8617  
  8618  // Fields allows partial responses to be retrieved. See
  8619  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8620  // details.
  8621  func (c *ProjectsLocationsDeliveryPipelinesReleasesAbandonCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesAbandonCall {
  8622  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8623  	return c
  8624  }
  8625  
  8626  // Context sets the context to be used in this call's Do method.
  8627  func (c *ProjectsLocationsDeliveryPipelinesReleasesAbandonCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesAbandonCall {
  8628  	c.ctx_ = ctx
  8629  	return c
  8630  }
  8631  
  8632  // Header returns a http.Header that can be modified by the caller to add
  8633  // headers to the request.
  8634  func (c *ProjectsLocationsDeliveryPipelinesReleasesAbandonCall) Header() http.Header {
  8635  	if c.header_ == nil {
  8636  		c.header_ = make(http.Header)
  8637  	}
  8638  	return c.header_
  8639  }
  8640  
  8641  func (c *ProjectsLocationsDeliveryPipelinesReleasesAbandonCall) doRequest(alt string) (*http.Response, error) {
  8642  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8643  	var body io.Reader = nil
  8644  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.abandonreleaserequest)
  8645  	if err != nil {
  8646  		return nil, err
  8647  	}
  8648  	c.urlParams_.Set("alt", alt)
  8649  	c.urlParams_.Set("prettyPrint", "false")
  8650  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:abandon")
  8651  	urls += "?" + c.urlParams_.Encode()
  8652  	req, err := http.NewRequest("POST", urls, body)
  8653  	if err != nil {
  8654  		return nil, err
  8655  	}
  8656  	req.Header = reqHeaders
  8657  	googleapi.Expand(req.URL, map[string]string{
  8658  		"name": c.name,
  8659  	})
  8660  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8661  }
  8662  
  8663  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.abandon" call.
  8664  // Any non-2xx status code is an error. Response headers are in either
  8665  // *AbandonReleaseResponse.ServerResponse.Header or (if a response was returned
  8666  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8667  // check whether the returned error was because http.StatusNotModified was
  8668  // returned.
  8669  func (c *ProjectsLocationsDeliveryPipelinesReleasesAbandonCall) Do(opts ...googleapi.CallOption) (*AbandonReleaseResponse, error) {
  8670  	gensupport.SetOptions(c.urlParams_, opts...)
  8671  	res, err := c.doRequest("json")
  8672  	if res != nil && res.StatusCode == http.StatusNotModified {
  8673  		if res.Body != nil {
  8674  			res.Body.Close()
  8675  		}
  8676  		return nil, gensupport.WrapError(&googleapi.Error{
  8677  			Code:   res.StatusCode,
  8678  			Header: res.Header,
  8679  		})
  8680  	}
  8681  	if err != nil {
  8682  		return nil, err
  8683  	}
  8684  	defer googleapi.CloseBody(res)
  8685  	if err := googleapi.CheckResponse(res); err != nil {
  8686  		return nil, gensupport.WrapError(err)
  8687  	}
  8688  	ret := &AbandonReleaseResponse{
  8689  		ServerResponse: googleapi.ServerResponse{
  8690  			Header:         res.Header,
  8691  			HTTPStatusCode: res.StatusCode,
  8692  		},
  8693  	}
  8694  	target := &ret
  8695  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8696  		return nil, err
  8697  	}
  8698  	return ret, nil
  8699  }
  8700  
  8701  type ProjectsLocationsDeliveryPipelinesReleasesCreateCall struct {
  8702  	s          *Service
  8703  	parent     string
  8704  	release    *Release
  8705  	urlParams_ gensupport.URLParams
  8706  	ctx_       context.Context
  8707  	header_    http.Header
  8708  }
  8709  
  8710  // Create: Creates a new Release in a given project and location.
  8711  //
  8712  //   - parent: The parent collection in which the `Release` should be created.
  8713  //     Format should be
  8714  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
  8715  //     e_name}`.
  8716  func (r *ProjectsLocationsDeliveryPipelinesReleasesService) Create(parent string, release *Release) *ProjectsLocationsDeliveryPipelinesReleasesCreateCall {
  8717  	c := &ProjectsLocationsDeliveryPipelinesReleasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8718  	c.parent = parent
  8719  	c.release = release
  8720  	return c
  8721  }
  8722  
  8723  // ReleaseId sets the optional parameter "releaseId": Required. ID of the
  8724  // `Release`.
  8725  func (c *ProjectsLocationsDeliveryPipelinesReleasesCreateCall) ReleaseId(releaseId string) *ProjectsLocationsDeliveryPipelinesReleasesCreateCall {
  8726  	c.urlParams_.Set("releaseId", releaseId)
  8727  	return c
  8728  }
  8729  
  8730  // RequestId sets the optional parameter "requestId": A request ID to identify
  8731  // requests. Specify a unique request ID so that if you must retry your
  8732  // request, the server knows to ignore the request if it has already been
  8733  // completed. The server guarantees that for at least 60 minutes after the
  8734  // first request. For example, consider a situation where you make an initial
  8735  // request and the request times out. If you make the request again with the
  8736  // same request ID, the server can check if original operation with the same
  8737  // request ID was received, and if so, will ignore the second request. This
  8738  // prevents clients from accidentally creating duplicate commitments. The
  8739  // request ID must be a valid UUID with the exception that zero UUID is not
  8740  // supported (00000000-0000-0000-0000-000000000000).
  8741  func (c *ProjectsLocationsDeliveryPipelinesReleasesCreateCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesReleasesCreateCall {
  8742  	c.urlParams_.Set("requestId", requestId)
  8743  	return c
  8744  }
  8745  
  8746  // ValidateOnly sets the optional parameter "validateOnly": If set to true, the
  8747  // request is validated and the user is provided with an expected result, but
  8748  // no actual change is made.
  8749  func (c *ProjectsLocationsDeliveryPipelinesReleasesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesReleasesCreateCall {
  8750  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  8751  	return c
  8752  }
  8753  
  8754  // Fields allows partial responses to be retrieved. See
  8755  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8756  // details.
  8757  func (c *ProjectsLocationsDeliveryPipelinesReleasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesCreateCall {
  8758  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8759  	return c
  8760  }
  8761  
  8762  // Context sets the context to be used in this call's Do method.
  8763  func (c *ProjectsLocationsDeliveryPipelinesReleasesCreateCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesCreateCall {
  8764  	c.ctx_ = ctx
  8765  	return c
  8766  }
  8767  
  8768  // Header returns a http.Header that can be modified by the caller to add
  8769  // headers to the request.
  8770  func (c *ProjectsLocationsDeliveryPipelinesReleasesCreateCall) Header() http.Header {
  8771  	if c.header_ == nil {
  8772  		c.header_ = make(http.Header)
  8773  	}
  8774  	return c.header_
  8775  }
  8776  
  8777  func (c *ProjectsLocationsDeliveryPipelinesReleasesCreateCall) doRequest(alt string) (*http.Response, error) {
  8778  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8779  	var body io.Reader = nil
  8780  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.release)
  8781  	if err != nil {
  8782  		return nil, err
  8783  	}
  8784  	c.urlParams_.Set("alt", alt)
  8785  	c.urlParams_.Set("prettyPrint", "false")
  8786  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/releases")
  8787  	urls += "?" + c.urlParams_.Encode()
  8788  	req, err := http.NewRequest("POST", urls, body)
  8789  	if err != nil {
  8790  		return nil, err
  8791  	}
  8792  	req.Header = reqHeaders
  8793  	googleapi.Expand(req.URL, map[string]string{
  8794  		"parent": c.parent,
  8795  	})
  8796  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8797  }
  8798  
  8799  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.create" call.
  8800  // Any non-2xx status code is an error. Response headers are in either
  8801  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8802  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8803  // whether the returned error was because http.StatusNotModified was returned.
  8804  func (c *ProjectsLocationsDeliveryPipelinesReleasesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8805  	gensupport.SetOptions(c.urlParams_, opts...)
  8806  	res, err := c.doRequest("json")
  8807  	if res != nil && res.StatusCode == http.StatusNotModified {
  8808  		if res.Body != nil {
  8809  			res.Body.Close()
  8810  		}
  8811  		return nil, gensupport.WrapError(&googleapi.Error{
  8812  			Code:   res.StatusCode,
  8813  			Header: res.Header,
  8814  		})
  8815  	}
  8816  	if err != nil {
  8817  		return nil, err
  8818  	}
  8819  	defer googleapi.CloseBody(res)
  8820  	if err := googleapi.CheckResponse(res); err != nil {
  8821  		return nil, gensupport.WrapError(err)
  8822  	}
  8823  	ret := &Operation{
  8824  		ServerResponse: googleapi.ServerResponse{
  8825  			Header:         res.Header,
  8826  			HTTPStatusCode: res.StatusCode,
  8827  		},
  8828  	}
  8829  	target := &ret
  8830  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8831  		return nil, err
  8832  	}
  8833  	return ret, nil
  8834  }
  8835  
  8836  type ProjectsLocationsDeliveryPipelinesReleasesGetCall struct {
  8837  	s            *Service
  8838  	name         string
  8839  	urlParams_   gensupport.URLParams
  8840  	ifNoneMatch_ string
  8841  	ctx_         context.Context
  8842  	header_      http.Header
  8843  }
  8844  
  8845  // Get: Gets details of a single Release.
  8846  //
  8847  //   - name: Name of the `Release`. Format must be
  8848  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
  8849  //     e_name}/releases/{release_name}`.
  8850  func (r *ProjectsLocationsDeliveryPipelinesReleasesService) Get(name string) *ProjectsLocationsDeliveryPipelinesReleasesGetCall {
  8851  	c := &ProjectsLocationsDeliveryPipelinesReleasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8852  	c.name = name
  8853  	return c
  8854  }
  8855  
  8856  // Fields allows partial responses to be retrieved. See
  8857  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8858  // details.
  8859  func (c *ProjectsLocationsDeliveryPipelinesReleasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesGetCall {
  8860  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8861  	return c
  8862  }
  8863  
  8864  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8865  // object's ETag matches the given value. This is useful for getting updates
  8866  // only after the object has changed since the last request.
  8867  func (c *ProjectsLocationsDeliveryPipelinesReleasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesReleasesGetCall {
  8868  	c.ifNoneMatch_ = entityTag
  8869  	return c
  8870  }
  8871  
  8872  // Context sets the context to be used in this call's Do method.
  8873  func (c *ProjectsLocationsDeliveryPipelinesReleasesGetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesGetCall {
  8874  	c.ctx_ = ctx
  8875  	return c
  8876  }
  8877  
  8878  // Header returns a http.Header that can be modified by the caller to add
  8879  // headers to the request.
  8880  func (c *ProjectsLocationsDeliveryPipelinesReleasesGetCall) Header() http.Header {
  8881  	if c.header_ == nil {
  8882  		c.header_ = make(http.Header)
  8883  	}
  8884  	return c.header_
  8885  }
  8886  
  8887  func (c *ProjectsLocationsDeliveryPipelinesReleasesGetCall) doRequest(alt string) (*http.Response, error) {
  8888  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8889  	if c.ifNoneMatch_ != "" {
  8890  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8891  	}
  8892  	var body io.Reader = nil
  8893  	c.urlParams_.Set("alt", alt)
  8894  	c.urlParams_.Set("prettyPrint", "false")
  8895  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8896  	urls += "?" + c.urlParams_.Encode()
  8897  	req, err := http.NewRequest("GET", urls, body)
  8898  	if err != nil {
  8899  		return nil, err
  8900  	}
  8901  	req.Header = reqHeaders
  8902  	googleapi.Expand(req.URL, map[string]string{
  8903  		"name": c.name,
  8904  	})
  8905  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8906  }
  8907  
  8908  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.get" call.
  8909  // Any non-2xx status code is an error. Response headers are in either
  8910  // *Release.ServerResponse.Header or (if a response was returned at all) in
  8911  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8912  // whether the returned error was because http.StatusNotModified was returned.
  8913  func (c *ProjectsLocationsDeliveryPipelinesReleasesGetCall) Do(opts ...googleapi.CallOption) (*Release, error) {
  8914  	gensupport.SetOptions(c.urlParams_, opts...)
  8915  	res, err := c.doRequest("json")
  8916  	if res != nil && res.StatusCode == http.StatusNotModified {
  8917  		if res.Body != nil {
  8918  			res.Body.Close()
  8919  		}
  8920  		return nil, gensupport.WrapError(&googleapi.Error{
  8921  			Code:   res.StatusCode,
  8922  			Header: res.Header,
  8923  		})
  8924  	}
  8925  	if err != nil {
  8926  		return nil, err
  8927  	}
  8928  	defer googleapi.CloseBody(res)
  8929  	if err := googleapi.CheckResponse(res); err != nil {
  8930  		return nil, gensupport.WrapError(err)
  8931  	}
  8932  	ret := &Release{
  8933  		ServerResponse: googleapi.ServerResponse{
  8934  			Header:         res.Header,
  8935  			HTTPStatusCode: res.StatusCode,
  8936  		},
  8937  	}
  8938  	target := &ret
  8939  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8940  		return nil, err
  8941  	}
  8942  	return ret, nil
  8943  }
  8944  
  8945  type ProjectsLocationsDeliveryPipelinesReleasesListCall struct {
  8946  	s            *Service
  8947  	parent       string
  8948  	urlParams_   gensupport.URLParams
  8949  	ifNoneMatch_ string
  8950  	ctx_         context.Context
  8951  	header_      http.Header
  8952  }
  8953  
  8954  // List: Lists Releases in a given project and location.
  8955  //
  8956  //   - parent: The `DeliveryPipeline` which owns this collection of `Release`
  8957  //     objects.
  8958  func (r *ProjectsLocationsDeliveryPipelinesReleasesService) List(parent string) *ProjectsLocationsDeliveryPipelinesReleasesListCall {
  8959  	c := &ProjectsLocationsDeliveryPipelinesReleasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8960  	c.parent = parent
  8961  	return c
  8962  }
  8963  
  8964  // Filter sets the optional parameter "filter": Filter releases to be returned.
  8965  // See https://google.aip.dev/160 for more details.
  8966  func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesReleasesListCall {
  8967  	c.urlParams_.Set("filter", filter)
  8968  	return c
  8969  }
  8970  
  8971  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  8972  // https://google.aip.dev/132#ordering for more details.
  8973  func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) OrderBy(orderBy string) *ProjectsLocationsDeliveryPipelinesReleasesListCall {
  8974  	c.urlParams_.Set("orderBy", orderBy)
  8975  	return c
  8976  }
  8977  
  8978  // PageSize sets the optional parameter "pageSize": The maximum number of
  8979  // `Release` objects to return. The service may return fewer than this value.
  8980  // If unspecified, at most 50 `Release` objects will be returned. The maximum
  8981  // value is 1000; values above 1000 will be set to 1000.
  8982  func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) PageSize(pageSize int64) *ProjectsLocationsDeliveryPipelinesReleasesListCall {
  8983  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8984  	return c
  8985  }
  8986  
  8987  // PageToken sets the optional parameter "pageToken": A page token, received
  8988  // from a previous `ListReleases` call. Provide this to retrieve the subsequent
  8989  // page. When paginating, all other provided parameters match the call that
  8990  // provided the page token.
  8991  func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) PageToken(pageToken string) *ProjectsLocationsDeliveryPipelinesReleasesListCall {
  8992  	c.urlParams_.Set("pageToken", pageToken)
  8993  	return c
  8994  }
  8995  
  8996  // Fields allows partial responses to be retrieved. See
  8997  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8998  // details.
  8999  func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesListCall {
  9000  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9001  	return c
  9002  }
  9003  
  9004  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9005  // object's ETag matches the given value. This is useful for getting updates
  9006  // only after the object has changed since the last request.
  9007  func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesReleasesListCall {
  9008  	c.ifNoneMatch_ = entityTag
  9009  	return c
  9010  }
  9011  
  9012  // Context sets the context to be used in this call's Do method.
  9013  func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesListCall {
  9014  	c.ctx_ = ctx
  9015  	return c
  9016  }
  9017  
  9018  // Header returns a http.Header that can be modified by the caller to add
  9019  // headers to the request.
  9020  func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) Header() http.Header {
  9021  	if c.header_ == nil {
  9022  		c.header_ = make(http.Header)
  9023  	}
  9024  	return c.header_
  9025  }
  9026  
  9027  func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) doRequest(alt string) (*http.Response, error) {
  9028  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9029  	if c.ifNoneMatch_ != "" {
  9030  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9031  	}
  9032  	var body io.Reader = nil
  9033  	c.urlParams_.Set("alt", alt)
  9034  	c.urlParams_.Set("prettyPrint", "false")
  9035  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/releases")
  9036  	urls += "?" + c.urlParams_.Encode()
  9037  	req, err := http.NewRequest("GET", urls, body)
  9038  	if err != nil {
  9039  		return nil, err
  9040  	}
  9041  	req.Header = reqHeaders
  9042  	googleapi.Expand(req.URL, map[string]string{
  9043  		"parent": c.parent,
  9044  	})
  9045  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9046  }
  9047  
  9048  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.list" call.
  9049  // Any non-2xx status code is an error. Response headers are in either
  9050  // *ListReleasesResponse.ServerResponse.Header or (if a response was returned
  9051  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9052  // check whether the returned error was because http.StatusNotModified was
  9053  // returned.
  9054  func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) Do(opts ...googleapi.CallOption) (*ListReleasesResponse, error) {
  9055  	gensupport.SetOptions(c.urlParams_, opts...)
  9056  	res, err := c.doRequest("json")
  9057  	if res != nil && res.StatusCode == http.StatusNotModified {
  9058  		if res.Body != nil {
  9059  			res.Body.Close()
  9060  		}
  9061  		return nil, gensupport.WrapError(&googleapi.Error{
  9062  			Code:   res.StatusCode,
  9063  			Header: res.Header,
  9064  		})
  9065  	}
  9066  	if err != nil {
  9067  		return nil, err
  9068  	}
  9069  	defer googleapi.CloseBody(res)
  9070  	if err := googleapi.CheckResponse(res); err != nil {
  9071  		return nil, gensupport.WrapError(err)
  9072  	}
  9073  	ret := &ListReleasesResponse{
  9074  		ServerResponse: googleapi.ServerResponse{
  9075  			Header:         res.Header,
  9076  			HTTPStatusCode: res.StatusCode,
  9077  		},
  9078  	}
  9079  	target := &ret
  9080  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9081  		return nil, err
  9082  	}
  9083  	return ret, nil
  9084  }
  9085  
  9086  // Pages invokes f for each page of results.
  9087  // A non-nil error returned from f will halt the iteration.
  9088  // The provided context supersedes any context provided to the Context method.
  9089  func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) Pages(ctx context.Context, f func(*ListReleasesResponse) error) error {
  9090  	c.ctx_ = ctx
  9091  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9092  	for {
  9093  		x, err := c.Do()
  9094  		if err != nil {
  9095  			return err
  9096  		}
  9097  		if err := f(x); err != nil {
  9098  			return err
  9099  		}
  9100  		if x.NextPageToken == "" {
  9101  			return nil
  9102  		}
  9103  		c.PageToken(x.NextPageToken)
  9104  	}
  9105  }
  9106  
  9107  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall struct {
  9108  	s                     *Service
  9109  	name                  string
  9110  	advancerolloutrequest *AdvanceRolloutRequest
  9111  	urlParams_            gensupport.URLParams
  9112  	ctx_                  context.Context
  9113  	header_               http.Header
  9114  }
  9115  
  9116  // Advance: Advances a Rollout in a given project and location.
  9117  //
  9118  //   - name: Name of the Rollout. Format is
  9119  //     `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipelin
  9120  //     e}/releases/{release}/rollouts/{rollout}`.
  9121  func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) Advance(name string, advancerolloutrequest *AdvanceRolloutRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall {
  9122  	c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9123  	c.name = name
  9124  	c.advancerolloutrequest = advancerolloutrequest
  9125  	return c
  9126  }
  9127  
  9128  // Fields allows partial responses to be retrieved. See
  9129  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9130  // details.
  9131  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall {
  9132  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9133  	return c
  9134  }
  9135  
  9136  // Context sets the context to be used in this call's Do method.
  9137  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall {
  9138  	c.ctx_ = ctx
  9139  	return c
  9140  }
  9141  
  9142  // Header returns a http.Header that can be modified by the caller to add
  9143  // headers to the request.
  9144  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall) Header() http.Header {
  9145  	if c.header_ == nil {
  9146  		c.header_ = make(http.Header)
  9147  	}
  9148  	return c.header_
  9149  }
  9150  
  9151  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall) doRequest(alt string) (*http.Response, error) {
  9152  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9153  	var body io.Reader = nil
  9154  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.advancerolloutrequest)
  9155  	if err != nil {
  9156  		return nil, err
  9157  	}
  9158  	c.urlParams_.Set("alt", alt)
  9159  	c.urlParams_.Set("prettyPrint", "false")
  9160  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:advance")
  9161  	urls += "?" + c.urlParams_.Encode()
  9162  	req, err := http.NewRequest("POST", urls, body)
  9163  	if err != nil {
  9164  		return nil, err
  9165  	}
  9166  	req.Header = reqHeaders
  9167  	googleapi.Expand(req.URL, map[string]string{
  9168  		"name": c.name,
  9169  	})
  9170  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9171  }
  9172  
  9173  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.advance" call.
  9174  // Any non-2xx status code is an error. Response headers are in either
  9175  // *AdvanceRolloutResponse.ServerResponse.Header or (if a response was returned
  9176  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9177  // check whether the returned error was because http.StatusNotModified was
  9178  // returned.
  9179  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall) Do(opts ...googleapi.CallOption) (*AdvanceRolloutResponse, error) {
  9180  	gensupport.SetOptions(c.urlParams_, opts...)
  9181  	res, err := c.doRequest("json")
  9182  	if res != nil && res.StatusCode == http.StatusNotModified {
  9183  		if res.Body != nil {
  9184  			res.Body.Close()
  9185  		}
  9186  		return nil, gensupport.WrapError(&googleapi.Error{
  9187  			Code:   res.StatusCode,
  9188  			Header: res.Header,
  9189  		})
  9190  	}
  9191  	if err != nil {
  9192  		return nil, err
  9193  	}
  9194  	defer googleapi.CloseBody(res)
  9195  	if err := googleapi.CheckResponse(res); err != nil {
  9196  		return nil, gensupport.WrapError(err)
  9197  	}
  9198  	ret := &AdvanceRolloutResponse{
  9199  		ServerResponse: googleapi.ServerResponse{
  9200  			Header:         res.Header,
  9201  			HTTPStatusCode: res.StatusCode,
  9202  		},
  9203  	}
  9204  	target := &ret
  9205  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9206  		return nil, err
  9207  	}
  9208  	return ret, nil
  9209  }
  9210  
  9211  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall struct {
  9212  	s                     *Service
  9213  	name                  string
  9214  	approverolloutrequest *ApproveRolloutRequest
  9215  	urlParams_            gensupport.URLParams
  9216  	ctx_                  context.Context
  9217  	header_               http.Header
  9218  }
  9219  
  9220  // Approve: Approves a Rollout.
  9221  //
  9222  //   - name: Name of the Rollout. Format is
  9223  //     `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipelin
  9224  //     e}/releases/{release}/rollouts/{rollout}`.
  9225  func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) Approve(name string, approverolloutrequest *ApproveRolloutRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall {
  9226  	c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9227  	c.name = name
  9228  	c.approverolloutrequest = approverolloutrequest
  9229  	return c
  9230  }
  9231  
  9232  // Fields allows partial responses to be retrieved. See
  9233  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9234  // details.
  9235  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall {
  9236  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9237  	return c
  9238  }
  9239  
  9240  // Context sets the context to be used in this call's Do method.
  9241  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall {
  9242  	c.ctx_ = ctx
  9243  	return c
  9244  }
  9245  
  9246  // Header returns a http.Header that can be modified by the caller to add
  9247  // headers to the request.
  9248  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Header() http.Header {
  9249  	if c.header_ == nil {
  9250  		c.header_ = make(http.Header)
  9251  	}
  9252  	return c.header_
  9253  }
  9254  
  9255  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) doRequest(alt string) (*http.Response, error) {
  9256  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9257  	var body io.Reader = nil
  9258  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.approverolloutrequest)
  9259  	if err != nil {
  9260  		return nil, err
  9261  	}
  9262  	c.urlParams_.Set("alt", alt)
  9263  	c.urlParams_.Set("prettyPrint", "false")
  9264  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:approve")
  9265  	urls += "?" + c.urlParams_.Encode()
  9266  	req, err := http.NewRequest("POST", urls, body)
  9267  	if err != nil {
  9268  		return nil, err
  9269  	}
  9270  	req.Header = reqHeaders
  9271  	googleapi.Expand(req.URL, map[string]string{
  9272  		"name": c.name,
  9273  	})
  9274  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9275  }
  9276  
  9277  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.approve" call.
  9278  // Any non-2xx status code is an error. Response headers are in either
  9279  // *ApproveRolloutResponse.ServerResponse.Header or (if a response was returned
  9280  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9281  // check whether the returned error was because http.StatusNotModified was
  9282  // returned.
  9283  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Do(opts ...googleapi.CallOption) (*ApproveRolloutResponse, error) {
  9284  	gensupport.SetOptions(c.urlParams_, opts...)
  9285  	res, err := c.doRequest("json")
  9286  	if res != nil && res.StatusCode == http.StatusNotModified {
  9287  		if res.Body != nil {
  9288  			res.Body.Close()
  9289  		}
  9290  		return nil, gensupport.WrapError(&googleapi.Error{
  9291  			Code:   res.StatusCode,
  9292  			Header: res.Header,
  9293  		})
  9294  	}
  9295  	if err != nil {
  9296  		return nil, err
  9297  	}
  9298  	defer googleapi.CloseBody(res)
  9299  	if err := googleapi.CheckResponse(res); err != nil {
  9300  		return nil, gensupport.WrapError(err)
  9301  	}
  9302  	ret := &ApproveRolloutResponse{
  9303  		ServerResponse: googleapi.ServerResponse{
  9304  			Header:         res.Header,
  9305  			HTTPStatusCode: res.StatusCode,
  9306  		},
  9307  	}
  9308  	target := &ret
  9309  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9310  		return nil, err
  9311  	}
  9312  	return ret, nil
  9313  }
  9314  
  9315  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall struct {
  9316  	s                    *Service
  9317  	name                 string
  9318  	cancelrolloutrequest *CancelRolloutRequest
  9319  	urlParams_           gensupport.URLParams
  9320  	ctx_                 context.Context
  9321  	header_              http.Header
  9322  }
  9323  
  9324  // Cancel: Cancels a Rollout in a given project and location.
  9325  //
  9326  //   - name: Name of the Rollout. Format is
  9327  //     `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipelin
  9328  //     e}/releases/{release}/rollouts/{rollout}`.
  9329  func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) Cancel(name string, cancelrolloutrequest *CancelRolloutRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall {
  9330  	c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9331  	c.name = name
  9332  	c.cancelrolloutrequest = cancelrolloutrequest
  9333  	return c
  9334  }
  9335  
  9336  // Fields allows partial responses to be retrieved. See
  9337  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9338  // details.
  9339  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall {
  9340  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9341  	return c
  9342  }
  9343  
  9344  // Context sets the context to be used in this call's Do method.
  9345  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall {
  9346  	c.ctx_ = ctx
  9347  	return c
  9348  }
  9349  
  9350  // Header returns a http.Header that can be modified by the caller to add
  9351  // headers to the request.
  9352  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall) Header() http.Header {
  9353  	if c.header_ == nil {
  9354  		c.header_ = make(http.Header)
  9355  	}
  9356  	return c.header_
  9357  }
  9358  
  9359  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall) doRequest(alt string) (*http.Response, error) {
  9360  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9361  	var body io.Reader = nil
  9362  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cancelrolloutrequest)
  9363  	if err != nil {
  9364  		return nil, err
  9365  	}
  9366  	c.urlParams_.Set("alt", alt)
  9367  	c.urlParams_.Set("prettyPrint", "false")
  9368  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
  9369  	urls += "?" + c.urlParams_.Encode()
  9370  	req, err := http.NewRequest("POST", urls, body)
  9371  	if err != nil {
  9372  		return nil, err
  9373  	}
  9374  	req.Header = reqHeaders
  9375  	googleapi.Expand(req.URL, map[string]string{
  9376  		"name": c.name,
  9377  	})
  9378  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9379  }
  9380  
  9381  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.cancel" call.
  9382  // Any non-2xx status code is an error. Response headers are in either
  9383  // *CancelRolloutResponse.ServerResponse.Header or (if a response was returned
  9384  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9385  // check whether the returned error was because http.StatusNotModified was
  9386  // returned.
  9387  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall) Do(opts ...googleapi.CallOption) (*CancelRolloutResponse, error) {
  9388  	gensupport.SetOptions(c.urlParams_, opts...)
  9389  	res, err := c.doRequest("json")
  9390  	if res != nil && res.StatusCode == http.StatusNotModified {
  9391  		if res.Body != nil {
  9392  			res.Body.Close()
  9393  		}
  9394  		return nil, gensupport.WrapError(&googleapi.Error{
  9395  			Code:   res.StatusCode,
  9396  			Header: res.Header,
  9397  		})
  9398  	}
  9399  	if err != nil {
  9400  		return nil, err
  9401  	}
  9402  	defer googleapi.CloseBody(res)
  9403  	if err := googleapi.CheckResponse(res); err != nil {
  9404  		return nil, gensupport.WrapError(err)
  9405  	}
  9406  	ret := &CancelRolloutResponse{
  9407  		ServerResponse: googleapi.ServerResponse{
  9408  			Header:         res.Header,
  9409  			HTTPStatusCode: res.StatusCode,
  9410  		},
  9411  	}
  9412  	target := &ret
  9413  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9414  		return nil, err
  9415  	}
  9416  	return ret, nil
  9417  }
  9418  
  9419  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall struct {
  9420  	s          *Service
  9421  	parent     string
  9422  	rollout    *Rollout
  9423  	urlParams_ gensupport.URLParams
  9424  	ctx_       context.Context
  9425  	header_    http.Header
  9426  }
  9427  
  9428  // Create: Creates a new Rollout in a given project and location.
  9429  //
  9430  //   - parent: The parent collection in which the `Rollout` should be created.
  9431  //     Format should be
  9432  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
  9433  //     e_name}/releases/{release_name}`.
  9434  func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) Create(parent string, rollout *Rollout) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall {
  9435  	c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9436  	c.parent = parent
  9437  	c.rollout = rollout
  9438  	return c
  9439  }
  9440  
  9441  // RequestId sets the optional parameter "requestId": A request ID to identify
  9442  // requests. Specify a unique request ID so that if you must retry your
  9443  // request, the server knows to ignore the request if it has already been
  9444  // completed. The server guarantees that for at least 60 minutes after the
  9445  // first request. For example, consider a situation where you make an initial
  9446  // request and the request times out. If you make the request again with the
  9447  // same request ID, the server can check if original operation with the same
  9448  // request ID was received, and if so, will ignore the second request. This
  9449  // prevents clients from accidentally creating duplicate commitments. The
  9450  // request ID must be a valid UUID with the exception that zero UUID is not
  9451  // supported (00000000-0000-0000-0000-000000000000).
  9452  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall {
  9453  	c.urlParams_.Set("requestId", requestId)
  9454  	return c
  9455  }
  9456  
  9457  // RolloutId sets the optional parameter "rolloutId": Required. ID of the
  9458  // `Rollout`.
  9459  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) RolloutId(rolloutId string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall {
  9460  	c.urlParams_.Set("rolloutId", rolloutId)
  9461  	return c
  9462  }
  9463  
  9464  // StartingPhaseId sets the optional parameter "startingPhaseId": The starting
  9465  // phase ID for the `Rollout`. If empty the `Rollout` will start at the first
  9466  // phase.
  9467  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) StartingPhaseId(startingPhaseId string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall {
  9468  	c.urlParams_.Set("startingPhaseId", startingPhaseId)
  9469  	return c
  9470  }
  9471  
  9472  // ValidateOnly sets the optional parameter "validateOnly": If set to true, the
  9473  // request is validated and the user is provided with an expected result, but
  9474  // no actual change is made.
  9475  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall {
  9476  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  9477  	return c
  9478  }
  9479  
  9480  // Fields allows partial responses to be retrieved. See
  9481  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9482  // details.
  9483  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall {
  9484  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9485  	return c
  9486  }
  9487  
  9488  // Context sets the context to be used in this call's Do method.
  9489  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall {
  9490  	c.ctx_ = ctx
  9491  	return c
  9492  }
  9493  
  9494  // Header returns a http.Header that can be modified by the caller to add
  9495  // headers to the request.
  9496  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) Header() http.Header {
  9497  	if c.header_ == nil {
  9498  		c.header_ = make(http.Header)
  9499  	}
  9500  	return c.header_
  9501  }
  9502  
  9503  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) doRequest(alt string) (*http.Response, error) {
  9504  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9505  	var body io.Reader = nil
  9506  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollout)
  9507  	if err != nil {
  9508  		return nil, err
  9509  	}
  9510  	c.urlParams_.Set("alt", alt)
  9511  	c.urlParams_.Set("prettyPrint", "false")
  9512  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rollouts")
  9513  	urls += "?" + c.urlParams_.Encode()
  9514  	req, err := http.NewRequest("POST", urls, body)
  9515  	if err != nil {
  9516  		return nil, err
  9517  	}
  9518  	req.Header = reqHeaders
  9519  	googleapi.Expand(req.URL, map[string]string{
  9520  		"parent": c.parent,
  9521  	})
  9522  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9523  }
  9524  
  9525  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.create" call.
  9526  // Any non-2xx status code is an error. Response headers are in either
  9527  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9528  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9529  // whether the returned error was because http.StatusNotModified was returned.
  9530  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9531  	gensupport.SetOptions(c.urlParams_, opts...)
  9532  	res, err := c.doRequest("json")
  9533  	if res != nil && res.StatusCode == http.StatusNotModified {
  9534  		if res.Body != nil {
  9535  			res.Body.Close()
  9536  		}
  9537  		return nil, gensupport.WrapError(&googleapi.Error{
  9538  			Code:   res.StatusCode,
  9539  			Header: res.Header,
  9540  		})
  9541  	}
  9542  	if err != nil {
  9543  		return nil, err
  9544  	}
  9545  	defer googleapi.CloseBody(res)
  9546  	if err := googleapi.CheckResponse(res); err != nil {
  9547  		return nil, gensupport.WrapError(err)
  9548  	}
  9549  	ret := &Operation{
  9550  		ServerResponse: googleapi.ServerResponse{
  9551  			Header:         res.Header,
  9552  			HTTPStatusCode: res.StatusCode,
  9553  		},
  9554  	}
  9555  	target := &ret
  9556  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9557  		return nil, err
  9558  	}
  9559  	return ret, nil
  9560  }
  9561  
  9562  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall struct {
  9563  	s            *Service
  9564  	name         string
  9565  	urlParams_   gensupport.URLParams
  9566  	ifNoneMatch_ string
  9567  	ctx_         context.Context
  9568  	header_      http.Header
  9569  }
  9570  
  9571  // Get: Gets details of a single Rollout.
  9572  //
  9573  //   - name: Name of the `Rollout`. Format must be
  9574  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
  9575  //     e_name}/releases/{release_name}/rollouts/{rollout_name}`.
  9576  func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) Get(name string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall {
  9577  	c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9578  	c.name = name
  9579  	return c
  9580  }
  9581  
  9582  // Fields allows partial responses to be retrieved. See
  9583  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9584  // details.
  9585  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall {
  9586  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9587  	return c
  9588  }
  9589  
  9590  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9591  // object's ETag matches the given value. This is useful for getting updates
  9592  // only after the object has changed since the last request.
  9593  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall {
  9594  	c.ifNoneMatch_ = entityTag
  9595  	return c
  9596  }
  9597  
  9598  // Context sets the context to be used in this call's Do method.
  9599  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall {
  9600  	c.ctx_ = ctx
  9601  	return c
  9602  }
  9603  
  9604  // Header returns a http.Header that can be modified by the caller to add
  9605  // headers to the request.
  9606  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall) Header() http.Header {
  9607  	if c.header_ == nil {
  9608  		c.header_ = make(http.Header)
  9609  	}
  9610  	return c.header_
  9611  }
  9612  
  9613  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall) doRequest(alt string) (*http.Response, error) {
  9614  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9615  	if c.ifNoneMatch_ != "" {
  9616  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9617  	}
  9618  	var body io.Reader = nil
  9619  	c.urlParams_.Set("alt", alt)
  9620  	c.urlParams_.Set("prettyPrint", "false")
  9621  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9622  	urls += "?" + c.urlParams_.Encode()
  9623  	req, err := http.NewRequest("GET", urls, body)
  9624  	if err != nil {
  9625  		return nil, err
  9626  	}
  9627  	req.Header = reqHeaders
  9628  	googleapi.Expand(req.URL, map[string]string{
  9629  		"name": c.name,
  9630  	})
  9631  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9632  }
  9633  
  9634  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.get" call.
  9635  // Any non-2xx status code is an error. Response headers are in either
  9636  // *Rollout.ServerResponse.Header or (if a response was returned at all) in
  9637  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9638  // whether the returned error was because http.StatusNotModified was returned.
  9639  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall) Do(opts ...googleapi.CallOption) (*Rollout, error) {
  9640  	gensupport.SetOptions(c.urlParams_, opts...)
  9641  	res, err := c.doRequest("json")
  9642  	if res != nil && res.StatusCode == http.StatusNotModified {
  9643  		if res.Body != nil {
  9644  			res.Body.Close()
  9645  		}
  9646  		return nil, gensupport.WrapError(&googleapi.Error{
  9647  			Code:   res.StatusCode,
  9648  			Header: res.Header,
  9649  		})
  9650  	}
  9651  	if err != nil {
  9652  		return nil, err
  9653  	}
  9654  	defer googleapi.CloseBody(res)
  9655  	if err := googleapi.CheckResponse(res); err != nil {
  9656  		return nil, gensupport.WrapError(err)
  9657  	}
  9658  	ret := &Rollout{
  9659  		ServerResponse: googleapi.ServerResponse{
  9660  			Header:         res.Header,
  9661  			HTTPStatusCode: res.StatusCode,
  9662  		},
  9663  	}
  9664  	target := &ret
  9665  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9666  		return nil, err
  9667  	}
  9668  	return ret, nil
  9669  }
  9670  
  9671  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall struct {
  9672  	s                *Service
  9673  	rollout          string
  9674  	ignorejobrequest *IgnoreJobRequest
  9675  	urlParams_       gensupport.URLParams
  9676  	ctx_             context.Context
  9677  	header_          http.Header
  9678  }
  9679  
  9680  // IgnoreJob: Ignores the specified Job in a Rollout.
  9681  //
  9682  //   - rollout: Name of the Rollout. Format is
  9683  //     `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipelin
  9684  //     e}/releases/{release}/rollouts/{rollout}`.
  9685  func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) IgnoreJob(rollout string, ignorejobrequest *IgnoreJobRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall {
  9686  	c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9687  	c.rollout = rollout
  9688  	c.ignorejobrequest = ignorejobrequest
  9689  	return c
  9690  }
  9691  
  9692  // Fields allows partial responses to be retrieved. See
  9693  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9694  // details.
  9695  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall {
  9696  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9697  	return c
  9698  }
  9699  
  9700  // Context sets the context to be used in this call's Do method.
  9701  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall {
  9702  	c.ctx_ = ctx
  9703  	return c
  9704  }
  9705  
  9706  // Header returns a http.Header that can be modified by the caller to add
  9707  // headers to the request.
  9708  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall) Header() http.Header {
  9709  	if c.header_ == nil {
  9710  		c.header_ = make(http.Header)
  9711  	}
  9712  	return c.header_
  9713  }
  9714  
  9715  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall) doRequest(alt string) (*http.Response, error) {
  9716  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9717  	var body io.Reader = nil
  9718  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ignorejobrequest)
  9719  	if err != nil {
  9720  		return nil, err
  9721  	}
  9722  	c.urlParams_.Set("alt", alt)
  9723  	c.urlParams_.Set("prettyPrint", "false")
  9724  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+rollout}:ignoreJob")
  9725  	urls += "?" + c.urlParams_.Encode()
  9726  	req, err := http.NewRequest("POST", urls, body)
  9727  	if err != nil {
  9728  		return nil, err
  9729  	}
  9730  	req.Header = reqHeaders
  9731  	googleapi.Expand(req.URL, map[string]string{
  9732  		"rollout": c.rollout,
  9733  	})
  9734  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9735  }
  9736  
  9737  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.ignoreJob" call.
  9738  // Any non-2xx status code is an error. Response headers are in either
  9739  // *IgnoreJobResponse.ServerResponse.Header or (if a response was returned at
  9740  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9741  // check whether the returned error was because http.StatusNotModified was
  9742  // returned.
  9743  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall) Do(opts ...googleapi.CallOption) (*IgnoreJobResponse, error) {
  9744  	gensupport.SetOptions(c.urlParams_, opts...)
  9745  	res, err := c.doRequest("json")
  9746  	if res != nil && res.StatusCode == http.StatusNotModified {
  9747  		if res.Body != nil {
  9748  			res.Body.Close()
  9749  		}
  9750  		return nil, gensupport.WrapError(&googleapi.Error{
  9751  			Code:   res.StatusCode,
  9752  			Header: res.Header,
  9753  		})
  9754  	}
  9755  	if err != nil {
  9756  		return nil, err
  9757  	}
  9758  	defer googleapi.CloseBody(res)
  9759  	if err := googleapi.CheckResponse(res); err != nil {
  9760  		return nil, gensupport.WrapError(err)
  9761  	}
  9762  	ret := &IgnoreJobResponse{
  9763  		ServerResponse: googleapi.ServerResponse{
  9764  			Header:         res.Header,
  9765  			HTTPStatusCode: res.StatusCode,
  9766  		},
  9767  	}
  9768  	target := &ret
  9769  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9770  		return nil, err
  9771  	}
  9772  	return ret, nil
  9773  }
  9774  
  9775  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall struct {
  9776  	s            *Service
  9777  	parent       string
  9778  	urlParams_   gensupport.URLParams
  9779  	ifNoneMatch_ string
  9780  	ctx_         context.Context
  9781  	header_      http.Header
  9782  }
  9783  
  9784  // List: Lists Rollouts in a given project and location.
  9785  //
  9786  // - parent: The `Release` which owns this collection of `Rollout` objects.
  9787  func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) List(parent string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall {
  9788  	c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9789  	c.parent = parent
  9790  	return c
  9791  }
  9792  
  9793  // Filter sets the optional parameter "filter": Filter rollouts to be returned.
  9794  // See https://google.aip.dev/160 for more details.
  9795  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall {
  9796  	c.urlParams_.Set("filter", filter)
  9797  	return c
  9798  }
  9799  
  9800  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  9801  // https://google.aip.dev/132#ordering for more details.
  9802  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) OrderBy(orderBy string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall {
  9803  	c.urlParams_.Set("orderBy", orderBy)
  9804  	return c
  9805  }
  9806  
  9807  // PageSize sets the optional parameter "pageSize": The maximum number of
  9808  // `Rollout` objects to return. The service may return fewer than this value.
  9809  // If unspecified, at most 50 `Rollout` objects will be returned. The maximum
  9810  // value is 1000; values above 1000 will be set to 1000.
  9811  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) PageSize(pageSize int64) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall {
  9812  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9813  	return c
  9814  }
  9815  
  9816  // PageToken sets the optional parameter "pageToken": A page token, received
  9817  // from a previous `ListRollouts` call. Provide this to retrieve the subsequent
  9818  // page. When paginating, all other provided parameters match the call that
  9819  // provided the page token.
  9820  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) PageToken(pageToken string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall {
  9821  	c.urlParams_.Set("pageToken", pageToken)
  9822  	return c
  9823  }
  9824  
  9825  // Fields allows partial responses to be retrieved. See
  9826  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9827  // details.
  9828  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall {
  9829  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9830  	return c
  9831  }
  9832  
  9833  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9834  // object's ETag matches the given value. This is useful for getting updates
  9835  // only after the object has changed since the last request.
  9836  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall {
  9837  	c.ifNoneMatch_ = entityTag
  9838  	return c
  9839  }
  9840  
  9841  // Context sets the context to be used in this call's Do method.
  9842  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall {
  9843  	c.ctx_ = ctx
  9844  	return c
  9845  }
  9846  
  9847  // Header returns a http.Header that can be modified by the caller to add
  9848  // headers to the request.
  9849  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) Header() http.Header {
  9850  	if c.header_ == nil {
  9851  		c.header_ = make(http.Header)
  9852  	}
  9853  	return c.header_
  9854  }
  9855  
  9856  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) doRequest(alt string) (*http.Response, error) {
  9857  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9858  	if c.ifNoneMatch_ != "" {
  9859  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9860  	}
  9861  	var body io.Reader = nil
  9862  	c.urlParams_.Set("alt", alt)
  9863  	c.urlParams_.Set("prettyPrint", "false")
  9864  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rollouts")
  9865  	urls += "?" + c.urlParams_.Encode()
  9866  	req, err := http.NewRequest("GET", urls, body)
  9867  	if err != nil {
  9868  		return nil, err
  9869  	}
  9870  	req.Header = reqHeaders
  9871  	googleapi.Expand(req.URL, map[string]string{
  9872  		"parent": c.parent,
  9873  	})
  9874  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9875  }
  9876  
  9877  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.list" call.
  9878  // Any non-2xx status code is an error. Response headers are in either
  9879  // *ListRolloutsResponse.ServerResponse.Header or (if a response was returned
  9880  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9881  // check whether the returned error was because http.StatusNotModified was
  9882  // returned.
  9883  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) Do(opts ...googleapi.CallOption) (*ListRolloutsResponse, error) {
  9884  	gensupport.SetOptions(c.urlParams_, opts...)
  9885  	res, err := c.doRequest("json")
  9886  	if res != nil && res.StatusCode == http.StatusNotModified {
  9887  		if res.Body != nil {
  9888  			res.Body.Close()
  9889  		}
  9890  		return nil, gensupport.WrapError(&googleapi.Error{
  9891  			Code:   res.StatusCode,
  9892  			Header: res.Header,
  9893  		})
  9894  	}
  9895  	if err != nil {
  9896  		return nil, err
  9897  	}
  9898  	defer googleapi.CloseBody(res)
  9899  	if err := googleapi.CheckResponse(res); err != nil {
  9900  		return nil, gensupport.WrapError(err)
  9901  	}
  9902  	ret := &ListRolloutsResponse{
  9903  		ServerResponse: googleapi.ServerResponse{
  9904  			Header:         res.Header,
  9905  			HTTPStatusCode: res.StatusCode,
  9906  		},
  9907  	}
  9908  	target := &ret
  9909  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9910  		return nil, err
  9911  	}
  9912  	return ret, nil
  9913  }
  9914  
  9915  // Pages invokes f for each page of results.
  9916  // A non-nil error returned from f will halt the iteration.
  9917  // The provided context supersedes any context provided to the Context method.
  9918  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall) Pages(ctx context.Context, f func(*ListRolloutsResponse) error) error {
  9919  	c.ctx_ = ctx
  9920  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9921  	for {
  9922  		x, err := c.Do()
  9923  		if err != nil {
  9924  			return err
  9925  		}
  9926  		if err := f(x); err != nil {
  9927  			return err
  9928  		}
  9929  		if x.NextPageToken == "" {
  9930  			return nil
  9931  		}
  9932  		c.PageToken(x.NextPageToken)
  9933  	}
  9934  }
  9935  
  9936  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsRetryJobCall struct {
  9937  	s               *Service
  9938  	rollout         string
  9939  	retryjobrequest *RetryJobRequest
  9940  	urlParams_      gensupport.URLParams
  9941  	ctx_            context.Context
  9942  	header_         http.Header
  9943  }
  9944  
  9945  // RetryJob: Retries the specified Job in a Rollout.
  9946  //
  9947  //   - rollout: Name of the Rollout. Format is
  9948  //     `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipelin
  9949  //     e}/releases/{release}/rollouts/{rollout}`.
  9950  func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) RetryJob(rollout string, retryjobrequest *RetryJobRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsRetryJobCall {
  9951  	c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsRetryJobCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9952  	c.rollout = rollout
  9953  	c.retryjobrequest = retryjobrequest
  9954  	return c
  9955  }
  9956  
  9957  // Fields allows partial responses to be retrieved. See
  9958  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9959  // details.
  9960  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsRetryJobCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsRetryJobCall {
  9961  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9962  	return c
  9963  }
  9964  
  9965  // Context sets the context to be used in this call's Do method.
  9966  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsRetryJobCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsRetryJobCall {
  9967  	c.ctx_ = ctx
  9968  	return c
  9969  }
  9970  
  9971  // Header returns a http.Header that can be modified by the caller to add
  9972  // headers to the request.
  9973  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsRetryJobCall) Header() http.Header {
  9974  	if c.header_ == nil {
  9975  		c.header_ = make(http.Header)
  9976  	}
  9977  	return c.header_
  9978  }
  9979  
  9980  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsRetryJobCall) doRequest(alt string) (*http.Response, error) {
  9981  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9982  	var body io.Reader = nil
  9983  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.retryjobrequest)
  9984  	if err != nil {
  9985  		return nil, err
  9986  	}
  9987  	c.urlParams_.Set("alt", alt)
  9988  	c.urlParams_.Set("prettyPrint", "false")
  9989  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+rollout}:retryJob")
  9990  	urls += "?" + c.urlParams_.Encode()
  9991  	req, err := http.NewRequest("POST", urls, body)
  9992  	if err != nil {
  9993  		return nil, err
  9994  	}
  9995  	req.Header = reqHeaders
  9996  	googleapi.Expand(req.URL, map[string]string{
  9997  		"rollout": c.rollout,
  9998  	})
  9999  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10000  }
 10001  
 10002  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.retryJob" call.
 10003  // Any non-2xx status code is an error. Response headers are in either
 10004  // *RetryJobResponse.ServerResponse.Header or (if a response was returned at
 10005  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10006  // check whether the returned error was because http.StatusNotModified was
 10007  // returned.
 10008  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsRetryJobCall) Do(opts ...googleapi.CallOption) (*RetryJobResponse, error) {
 10009  	gensupport.SetOptions(c.urlParams_, opts...)
 10010  	res, err := c.doRequest("json")
 10011  	if res != nil && res.StatusCode == http.StatusNotModified {
 10012  		if res.Body != nil {
 10013  			res.Body.Close()
 10014  		}
 10015  		return nil, gensupport.WrapError(&googleapi.Error{
 10016  			Code:   res.StatusCode,
 10017  			Header: res.Header,
 10018  		})
 10019  	}
 10020  	if err != nil {
 10021  		return nil, err
 10022  	}
 10023  	defer googleapi.CloseBody(res)
 10024  	if err := googleapi.CheckResponse(res); err != nil {
 10025  		return nil, gensupport.WrapError(err)
 10026  	}
 10027  	ret := &RetryJobResponse{
 10028  		ServerResponse: googleapi.ServerResponse{
 10029  			Header:         res.Header,
 10030  			HTTPStatusCode: res.StatusCode,
 10031  		},
 10032  	}
 10033  	target := &ret
 10034  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10035  		return nil, err
 10036  	}
 10037  	return ret, nil
 10038  }
 10039  
 10040  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall struct {
 10041  	s            *Service
 10042  	name         string
 10043  	urlParams_   gensupport.URLParams
 10044  	ifNoneMatch_ string
 10045  	ctx_         context.Context
 10046  	header_      http.Header
 10047  }
 10048  
 10049  // Get: Gets details of a single JobRun.
 10050  //
 10051  //   - name: Name of the `JobRun`. Format must be
 10052  //     `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipelin
 10053  //     e_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_na
 10054  //     me}`.
 10055  func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsService) Get(name string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall {
 10056  	c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10057  	c.name = name
 10058  	return c
 10059  }
 10060  
 10061  // Fields allows partial responses to be retrieved. See
 10062  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10063  // details.
 10064  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall {
 10065  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10066  	return c
 10067  }
 10068  
 10069  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10070  // object's ETag matches the given value. This is useful for getting updates
 10071  // only after the object has changed since the last request.
 10072  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall {
 10073  	c.ifNoneMatch_ = entityTag
 10074  	return c
 10075  }
 10076  
 10077  // Context sets the context to be used in this call's Do method.
 10078  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall {
 10079  	c.ctx_ = ctx
 10080  	return c
 10081  }
 10082  
 10083  // Header returns a http.Header that can be modified by the caller to add
 10084  // headers to the request.
 10085  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall) Header() http.Header {
 10086  	if c.header_ == nil {
 10087  		c.header_ = make(http.Header)
 10088  	}
 10089  	return c.header_
 10090  }
 10091  
 10092  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall) doRequest(alt string) (*http.Response, error) {
 10093  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10094  	if c.ifNoneMatch_ != "" {
 10095  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10096  	}
 10097  	var body io.Reader = nil
 10098  	c.urlParams_.Set("alt", alt)
 10099  	c.urlParams_.Set("prettyPrint", "false")
 10100  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10101  	urls += "?" + c.urlParams_.Encode()
 10102  	req, err := http.NewRequest("GET", urls, body)
 10103  	if err != nil {
 10104  		return nil, err
 10105  	}
 10106  	req.Header = reqHeaders
 10107  	googleapi.Expand(req.URL, map[string]string{
 10108  		"name": c.name,
 10109  	})
 10110  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10111  }
 10112  
 10113  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.jobRuns.get" call.
 10114  // Any non-2xx status code is an error. Response headers are in either
 10115  // *JobRun.ServerResponse.Header or (if a response was returned at all) in
 10116  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10117  // whether the returned error was because http.StatusNotModified was returned.
 10118  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsGetCall) Do(opts ...googleapi.CallOption) (*JobRun, error) {
 10119  	gensupport.SetOptions(c.urlParams_, opts...)
 10120  	res, err := c.doRequest("json")
 10121  	if res != nil && res.StatusCode == http.StatusNotModified {
 10122  		if res.Body != nil {
 10123  			res.Body.Close()
 10124  		}
 10125  		return nil, gensupport.WrapError(&googleapi.Error{
 10126  			Code:   res.StatusCode,
 10127  			Header: res.Header,
 10128  		})
 10129  	}
 10130  	if err != nil {
 10131  		return nil, err
 10132  	}
 10133  	defer googleapi.CloseBody(res)
 10134  	if err := googleapi.CheckResponse(res); err != nil {
 10135  		return nil, gensupport.WrapError(err)
 10136  	}
 10137  	ret := &JobRun{
 10138  		ServerResponse: googleapi.ServerResponse{
 10139  			Header:         res.Header,
 10140  			HTTPStatusCode: res.StatusCode,
 10141  		},
 10142  	}
 10143  	target := &ret
 10144  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10145  		return nil, err
 10146  	}
 10147  	return ret, nil
 10148  }
 10149  
 10150  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall struct {
 10151  	s            *Service
 10152  	parent       string
 10153  	urlParams_   gensupport.URLParams
 10154  	ifNoneMatch_ string
 10155  	ctx_         context.Context
 10156  	header_      http.Header
 10157  }
 10158  
 10159  // List: Lists JobRuns in a given project and location.
 10160  //
 10161  // - parent: The `Rollout` which owns this collection of `JobRun` objects.
 10162  func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsService) List(parent string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall {
 10163  	c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10164  	c.parent = parent
 10165  	return c
 10166  }
 10167  
 10168  // Filter sets the optional parameter "filter": Filter results to be returned.
 10169  // See https://google.aip.dev/160 for more details.
 10170  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall {
 10171  	c.urlParams_.Set("filter", filter)
 10172  	return c
 10173  }
 10174  
 10175  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 10176  // https://google.aip.dev/132#ordering for more details.
 10177  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) OrderBy(orderBy string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall {
 10178  	c.urlParams_.Set("orderBy", orderBy)
 10179  	return c
 10180  }
 10181  
 10182  // PageSize sets the optional parameter "pageSize": The maximum number of
 10183  // `JobRun` objects to return. The service may return fewer than this value. If
 10184  // unspecified, at most 50 `JobRun` objects will be returned. The maximum value
 10185  // is 1000; values above 1000 will be set to 1000.
 10186  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) PageSize(pageSize int64) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall {
 10187  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10188  	return c
 10189  }
 10190  
 10191  // PageToken sets the optional parameter "pageToken": A page token, received
 10192  // from a previous `ListJobRuns` call. Provide this to retrieve the subsequent
 10193  // page. When paginating, all other provided parameters match the call that
 10194  // provided the page token.
 10195  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) PageToken(pageToken string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall {
 10196  	c.urlParams_.Set("pageToken", pageToken)
 10197  	return c
 10198  }
 10199  
 10200  // Fields allows partial responses to be retrieved. See
 10201  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10202  // details.
 10203  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall {
 10204  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10205  	return c
 10206  }
 10207  
 10208  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10209  // object's ETag matches the given value. This is useful for getting updates
 10210  // only after the object has changed since the last request.
 10211  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall {
 10212  	c.ifNoneMatch_ = entityTag
 10213  	return c
 10214  }
 10215  
 10216  // Context sets the context to be used in this call's Do method.
 10217  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall {
 10218  	c.ctx_ = ctx
 10219  	return c
 10220  }
 10221  
 10222  // Header returns a http.Header that can be modified by the caller to add
 10223  // headers to the request.
 10224  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) Header() http.Header {
 10225  	if c.header_ == nil {
 10226  		c.header_ = make(http.Header)
 10227  	}
 10228  	return c.header_
 10229  }
 10230  
 10231  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) doRequest(alt string) (*http.Response, error) {
 10232  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10233  	if c.ifNoneMatch_ != "" {
 10234  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10235  	}
 10236  	var body io.Reader = nil
 10237  	c.urlParams_.Set("alt", alt)
 10238  	c.urlParams_.Set("prettyPrint", "false")
 10239  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/jobRuns")
 10240  	urls += "?" + c.urlParams_.Encode()
 10241  	req, err := http.NewRequest("GET", urls, body)
 10242  	if err != nil {
 10243  		return nil, err
 10244  	}
 10245  	req.Header = reqHeaders
 10246  	googleapi.Expand(req.URL, map[string]string{
 10247  		"parent": c.parent,
 10248  	})
 10249  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10250  }
 10251  
 10252  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.jobRuns.list" call.
 10253  // Any non-2xx status code is an error. Response headers are in either
 10254  // *ListJobRunsResponse.ServerResponse.Header or (if a response was returned at
 10255  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10256  // check whether the returned error was because http.StatusNotModified was
 10257  // returned.
 10258  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) Do(opts ...googleapi.CallOption) (*ListJobRunsResponse, error) {
 10259  	gensupport.SetOptions(c.urlParams_, opts...)
 10260  	res, err := c.doRequest("json")
 10261  	if res != nil && res.StatusCode == http.StatusNotModified {
 10262  		if res.Body != nil {
 10263  			res.Body.Close()
 10264  		}
 10265  		return nil, gensupport.WrapError(&googleapi.Error{
 10266  			Code:   res.StatusCode,
 10267  			Header: res.Header,
 10268  		})
 10269  	}
 10270  	if err != nil {
 10271  		return nil, err
 10272  	}
 10273  	defer googleapi.CloseBody(res)
 10274  	if err := googleapi.CheckResponse(res); err != nil {
 10275  		return nil, gensupport.WrapError(err)
 10276  	}
 10277  	ret := &ListJobRunsResponse{
 10278  		ServerResponse: googleapi.ServerResponse{
 10279  			Header:         res.Header,
 10280  			HTTPStatusCode: res.StatusCode,
 10281  		},
 10282  	}
 10283  	target := &ret
 10284  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10285  		return nil, err
 10286  	}
 10287  	return ret, nil
 10288  }
 10289  
 10290  // Pages invokes f for each page of results.
 10291  // A non-nil error returned from f will halt the iteration.
 10292  // The provided context supersedes any context provided to the Context method.
 10293  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) Pages(ctx context.Context, f func(*ListJobRunsResponse) error) error {
 10294  	c.ctx_ = ctx
 10295  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10296  	for {
 10297  		x, err := c.Do()
 10298  		if err != nil {
 10299  			return err
 10300  		}
 10301  		if err := f(x); err != nil {
 10302  			return err
 10303  		}
 10304  		if x.NextPageToken == "" {
 10305  			return nil
 10306  		}
 10307  		c.PageToken(x.NextPageToken)
 10308  	}
 10309  }
 10310  
 10311  type ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall struct {
 10312  	s                      *Service
 10313  	name                   string
 10314  	terminatejobrunrequest *TerminateJobRunRequest
 10315  	urlParams_             gensupport.URLParams
 10316  	ctx_                   context.Context
 10317  	header_                http.Header
 10318  }
 10319  
 10320  // Terminate: Terminates a Job Run in a given project and location.
 10321  //
 10322  //   - name: Name of the `JobRun`. Format must be
 10323  //     `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipelin
 10324  //     e}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`.
 10325  func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsService) Terminate(name string, terminatejobrunrequest *TerminateJobRunRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall {
 10326  	c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10327  	c.name = name
 10328  	c.terminatejobrunrequest = terminatejobrunrequest
 10329  	return c
 10330  }
 10331  
 10332  // Fields allows partial responses to be retrieved. See
 10333  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10334  // details.
 10335  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall {
 10336  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10337  	return c
 10338  }
 10339  
 10340  // Context sets the context to be used in this call's Do method.
 10341  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall {
 10342  	c.ctx_ = ctx
 10343  	return c
 10344  }
 10345  
 10346  // Header returns a http.Header that can be modified by the caller to add
 10347  // headers to the request.
 10348  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall) Header() http.Header {
 10349  	if c.header_ == nil {
 10350  		c.header_ = make(http.Header)
 10351  	}
 10352  	return c.header_
 10353  }
 10354  
 10355  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall) doRequest(alt string) (*http.Response, error) {
 10356  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10357  	var body io.Reader = nil
 10358  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.terminatejobrunrequest)
 10359  	if err != nil {
 10360  		return nil, err
 10361  	}
 10362  	c.urlParams_.Set("alt", alt)
 10363  	c.urlParams_.Set("prettyPrint", "false")
 10364  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:terminate")
 10365  	urls += "?" + c.urlParams_.Encode()
 10366  	req, err := http.NewRequest("POST", urls, body)
 10367  	if err != nil {
 10368  		return nil, err
 10369  	}
 10370  	req.Header = reqHeaders
 10371  	googleapi.Expand(req.URL, map[string]string{
 10372  		"name": c.name,
 10373  	})
 10374  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10375  }
 10376  
 10377  // Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.jobRuns.terminate" call.
 10378  // Any non-2xx status code is an error. Response headers are in either
 10379  // *TerminateJobRunResponse.ServerResponse.Header or (if a response was
 10380  // returned at all) in error.(*googleapi.Error).Header. Use
 10381  // googleapi.IsNotModified to check whether the returned error was because
 10382  // http.StatusNotModified was returned.
 10383  func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall) Do(opts ...googleapi.CallOption) (*TerminateJobRunResponse, error) {
 10384  	gensupport.SetOptions(c.urlParams_, opts...)
 10385  	res, err := c.doRequest("json")
 10386  	if res != nil && res.StatusCode == http.StatusNotModified {
 10387  		if res.Body != nil {
 10388  			res.Body.Close()
 10389  		}
 10390  		return nil, gensupport.WrapError(&googleapi.Error{
 10391  			Code:   res.StatusCode,
 10392  			Header: res.Header,
 10393  		})
 10394  	}
 10395  	if err != nil {
 10396  		return nil, err
 10397  	}
 10398  	defer googleapi.CloseBody(res)
 10399  	if err := googleapi.CheckResponse(res); err != nil {
 10400  		return nil, gensupport.WrapError(err)
 10401  	}
 10402  	ret := &TerminateJobRunResponse{
 10403  		ServerResponse: googleapi.ServerResponse{
 10404  			Header:         res.Header,
 10405  			HTTPStatusCode: res.StatusCode,
 10406  		},
 10407  	}
 10408  	target := &ret
 10409  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10410  		return nil, err
 10411  	}
 10412  	return ret, nil
 10413  }
 10414  
 10415  type ProjectsLocationsOperationsCancelCall struct {
 10416  	s                      *Service
 10417  	name                   string
 10418  	canceloperationrequest *CancelOperationRequest
 10419  	urlParams_             gensupport.URLParams
 10420  	ctx_                   context.Context
 10421  	header_                http.Header
 10422  }
 10423  
 10424  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 10425  // server makes a best effort to cancel the operation, but success is not
 10426  // guaranteed. If the server doesn't support this method, it returns
 10427  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 10428  // other methods to check whether the cancellation succeeded or whether the
 10429  // operation completed despite cancellation. On successful cancellation, the
 10430  // operation is not deleted; instead, it becomes an operation with an
 10431  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 10432  // `Code.CANCELLED`.
 10433  //
 10434  // - name: The name of the operation resource to be cancelled.
 10435  func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
 10436  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10437  	c.name = name
 10438  	c.canceloperationrequest = canceloperationrequest
 10439  	return c
 10440  }
 10441  
 10442  // Fields allows partial responses to be retrieved. See
 10443  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10444  // details.
 10445  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
 10446  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10447  	return c
 10448  }
 10449  
 10450  // Context sets the context to be used in this call's Do method.
 10451  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
 10452  	c.ctx_ = ctx
 10453  	return c
 10454  }
 10455  
 10456  // Header returns a http.Header that can be modified by the caller to add
 10457  // headers to the request.
 10458  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
 10459  	if c.header_ == nil {
 10460  		c.header_ = make(http.Header)
 10461  	}
 10462  	return c.header_
 10463  }
 10464  
 10465  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 10466  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10467  	var body io.Reader = nil
 10468  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
 10469  	if err != nil {
 10470  		return nil, err
 10471  	}
 10472  	c.urlParams_.Set("alt", alt)
 10473  	c.urlParams_.Set("prettyPrint", "false")
 10474  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
 10475  	urls += "?" + c.urlParams_.Encode()
 10476  	req, err := http.NewRequest("POST", urls, body)
 10477  	if err != nil {
 10478  		return nil, err
 10479  	}
 10480  	req.Header = reqHeaders
 10481  	googleapi.Expand(req.URL, map[string]string{
 10482  		"name": c.name,
 10483  	})
 10484  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10485  }
 10486  
 10487  // Do executes the "clouddeploy.projects.locations.operations.cancel" call.
 10488  // Any non-2xx status code is an error. Response headers are in either
 10489  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 10490  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10491  // whether the returned error was because http.StatusNotModified was returned.
 10492  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 10493  	gensupport.SetOptions(c.urlParams_, opts...)
 10494  	res, err := c.doRequest("json")
 10495  	if res != nil && res.StatusCode == http.StatusNotModified {
 10496  		if res.Body != nil {
 10497  			res.Body.Close()
 10498  		}
 10499  		return nil, gensupport.WrapError(&googleapi.Error{
 10500  			Code:   res.StatusCode,
 10501  			Header: res.Header,
 10502  		})
 10503  	}
 10504  	if err != nil {
 10505  		return nil, err
 10506  	}
 10507  	defer googleapi.CloseBody(res)
 10508  	if err := googleapi.CheckResponse(res); err != nil {
 10509  		return nil, gensupport.WrapError(err)
 10510  	}
 10511  	ret := &Empty{
 10512  		ServerResponse: googleapi.ServerResponse{
 10513  			Header:         res.Header,
 10514  			HTTPStatusCode: res.StatusCode,
 10515  		},
 10516  	}
 10517  	target := &ret
 10518  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10519  		return nil, err
 10520  	}
 10521  	return ret, nil
 10522  }
 10523  
 10524  type ProjectsLocationsOperationsDeleteCall struct {
 10525  	s          *Service
 10526  	name       string
 10527  	urlParams_ gensupport.URLParams
 10528  	ctx_       context.Context
 10529  	header_    http.Header
 10530  }
 10531  
 10532  // Delete: Deletes a long-running operation. This method indicates that the
 10533  // client is no longer interested in the operation result. It does not cancel
 10534  // the operation. If the server doesn't support this method, it returns
 10535  // `google.rpc.Code.UNIMPLEMENTED`.
 10536  //
 10537  // - name: The name of the operation resource to be deleted.
 10538  func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
 10539  	c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10540  	c.name = name
 10541  	return c
 10542  }
 10543  
 10544  // Fields allows partial responses to be retrieved. See
 10545  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10546  // details.
 10547  func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
 10548  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10549  	return c
 10550  }
 10551  
 10552  // Context sets the context to be used in this call's Do method.
 10553  func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
 10554  	c.ctx_ = ctx
 10555  	return c
 10556  }
 10557  
 10558  // Header returns a http.Header that can be modified by the caller to add
 10559  // headers to the request.
 10560  func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
 10561  	if c.header_ == nil {
 10562  		c.header_ = make(http.Header)
 10563  	}
 10564  	return c.header_
 10565  }
 10566  
 10567  func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 10568  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10569  	var body io.Reader = nil
 10570  	c.urlParams_.Set("alt", alt)
 10571  	c.urlParams_.Set("prettyPrint", "false")
 10572  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10573  	urls += "?" + c.urlParams_.Encode()
 10574  	req, err := http.NewRequest("DELETE", urls, body)
 10575  	if err != nil {
 10576  		return nil, err
 10577  	}
 10578  	req.Header = reqHeaders
 10579  	googleapi.Expand(req.URL, map[string]string{
 10580  		"name": c.name,
 10581  	})
 10582  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10583  }
 10584  
 10585  // Do executes the "clouddeploy.projects.locations.operations.delete" call.
 10586  // Any non-2xx status code is an error. Response headers are in either
 10587  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 10588  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10589  // whether the returned error was because http.StatusNotModified was returned.
 10590  func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 10591  	gensupport.SetOptions(c.urlParams_, opts...)
 10592  	res, err := c.doRequest("json")
 10593  	if res != nil && res.StatusCode == http.StatusNotModified {
 10594  		if res.Body != nil {
 10595  			res.Body.Close()
 10596  		}
 10597  		return nil, gensupport.WrapError(&googleapi.Error{
 10598  			Code:   res.StatusCode,
 10599  			Header: res.Header,
 10600  		})
 10601  	}
 10602  	if err != nil {
 10603  		return nil, err
 10604  	}
 10605  	defer googleapi.CloseBody(res)
 10606  	if err := googleapi.CheckResponse(res); err != nil {
 10607  		return nil, gensupport.WrapError(err)
 10608  	}
 10609  	ret := &Empty{
 10610  		ServerResponse: googleapi.ServerResponse{
 10611  			Header:         res.Header,
 10612  			HTTPStatusCode: res.StatusCode,
 10613  		},
 10614  	}
 10615  	target := &ret
 10616  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10617  		return nil, err
 10618  	}
 10619  	return ret, nil
 10620  }
 10621  
 10622  type ProjectsLocationsOperationsGetCall struct {
 10623  	s            *Service
 10624  	name         string
 10625  	urlParams_   gensupport.URLParams
 10626  	ifNoneMatch_ string
 10627  	ctx_         context.Context
 10628  	header_      http.Header
 10629  }
 10630  
 10631  // Get: Gets the latest state of a long-running operation. Clients can use this
 10632  // method to poll the operation result at intervals as recommended by the API
 10633  // service.
 10634  //
 10635  // - name: The name of the operation resource.
 10636  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 10637  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10638  	c.name = name
 10639  	return c
 10640  }
 10641  
 10642  // Fields allows partial responses to be retrieved. See
 10643  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10644  // details.
 10645  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 10646  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10647  	return c
 10648  }
 10649  
 10650  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10651  // object's ETag matches the given value. This is useful for getting updates
 10652  // only after the object has changed since the last request.
 10653  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 10654  	c.ifNoneMatch_ = entityTag
 10655  	return c
 10656  }
 10657  
 10658  // Context sets the context to be used in this call's Do method.
 10659  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 10660  	c.ctx_ = ctx
 10661  	return c
 10662  }
 10663  
 10664  // Header returns a http.Header that can be modified by the caller to add
 10665  // headers to the request.
 10666  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 10667  	if c.header_ == nil {
 10668  		c.header_ = make(http.Header)
 10669  	}
 10670  	return c.header_
 10671  }
 10672  
 10673  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 10674  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10675  	if c.ifNoneMatch_ != "" {
 10676  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10677  	}
 10678  	var body io.Reader = nil
 10679  	c.urlParams_.Set("alt", alt)
 10680  	c.urlParams_.Set("prettyPrint", "false")
 10681  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10682  	urls += "?" + c.urlParams_.Encode()
 10683  	req, err := http.NewRequest("GET", urls, body)
 10684  	if err != nil {
 10685  		return nil, err
 10686  	}
 10687  	req.Header = reqHeaders
 10688  	googleapi.Expand(req.URL, map[string]string{
 10689  		"name": c.name,
 10690  	})
 10691  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10692  }
 10693  
 10694  // Do executes the "clouddeploy.projects.locations.operations.get" call.
 10695  // Any non-2xx status code is an error. Response headers are in either
 10696  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10697  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10698  // whether the returned error was because http.StatusNotModified was returned.
 10699  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10700  	gensupport.SetOptions(c.urlParams_, opts...)
 10701  	res, err := c.doRequest("json")
 10702  	if res != nil && res.StatusCode == http.StatusNotModified {
 10703  		if res.Body != nil {
 10704  			res.Body.Close()
 10705  		}
 10706  		return nil, gensupport.WrapError(&googleapi.Error{
 10707  			Code:   res.StatusCode,
 10708  			Header: res.Header,
 10709  		})
 10710  	}
 10711  	if err != nil {
 10712  		return nil, err
 10713  	}
 10714  	defer googleapi.CloseBody(res)
 10715  	if err := googleapi.CheckResponse(res); err != nil {
 10716  		return nil, gensupport.WrapError(err)
 10717  	}
 10718  	ret := &Operation{
 10719  		ServerResponse: googleapi.ServerResponse{
 10720  			Header:         res.Header,
 10721  			HTTPStatusCode: res.StatusCode,
 10722  		},
 10723  	}
 10724  	target := &ret
 10725  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10726  		return nil, err
 10727  	}
 10728  	return ret, nil
 10729  }
 10730  
 10731  type ProjectsLocationsOperationsListCall struct {
 10732  	s            *Service
 10733  	name         string
 10734  	urlParams_   gensupport.URLParams
 10735  	ifNoneMatch_ string
 10736  	ctx_         context.Context
 10737  	header_      http.Header
 10738  }
 10739  
 10740  // List: Lists operations that match the specified filter in the request. If
 10741  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 10742  //
 10743  // - name: The name of the operation's parent resource.
 10744  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 10745  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10746  	c.name = name
 10747  	return c
 10748  }
 10749  
 10750  // Filter sets the optional parameter "filter": The standard list filter.
 10751  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 10752  	c.urlParams_.Set("filter", filter)
 10753  	return c
 10754  }
 10755  
 10756  // PageSize sets the optional parameter "pageSize": The standard list page
 10757  // size.
 10758  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 10759  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10760  	return c
 10761  }
 10762  
 10763  // PageToken sets the optional parameter "pageToken": The standard list page
 10764  // token.
 10765  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 10766  	c.urlParams_.Set("pageToken", pageToken)
 10767  	return c
 10768  }
 10769  
 10770  // Fields allows partial responses to be retrieved. See
 10771  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10772  // details.
 10773  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 10774  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10775  	return c
 10776  }
 10777  
 10778  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10779  // object's ETag matches the given value. This is useful for getting updates
 10780  // only after the object has changed since the last request.
 10781  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 10782  	c.ifNoneMatch_ = entityTag
 10783  	return c
 10784  }
 10785  
 10786  // Context sets the context to be used in this call's Do method.
 10787  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 10788  	c.ctx_ = ctx
 10789  	return c
 10790  }
 10791  
 10792  // Header returns a http.Header that can be modified by the caller to add
 10793  // headers to the request.
 10794  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 10795  	if c.header_ == nil {
 10796  		c.header_ = make(http.Header)
 10797  	}
 10798  	return c.header_
 10799  }
 10800  
 10801  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 10802  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10803  	if c.ifNoneMatch_ != "" {
 10804  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10805  	}
 10806  	var body io.Reader = nil
 10807  	c.urlParams_.Set("alt", alt)
 10808  	c.urlParams_.Set("prettyPrint", "false")
 10809  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 10810  	urls += "?" + c.urlParams_.Encode()
 10811  	req, err := http.NewRequest("GET", urls, body)
 10812  	if err != nil {
 10813  		return nil, err
 10814  	}
 10815  	req.Header = reqHeaders
 10816  	googleapi.Expand(req.URL, map[string]string{
 10817  		"name": c.name,
 10818  	})
 10819  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10820  }
 10821  
 10822  // Do executes the "clouddeploy.projects.locations.operations.list" call.
 10823  // Any non-2xx status code is an error. Response headers are in either
 10824  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
 10825  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10826  // check whether the returned error was because http.StatusNotModified was
 10827  // returned.
 10828  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
 10829  	gensupport.SetOptions(c.urlParams_, opts...)
 10830  	res, err := c.doRequest("json")
 10831  	if res != nil && res.StatusCode == http.StatusNotModified {
 10832  		if res.Body != nil {
 10833  			res.Body.Close()
 10834  		}
 10835  		return nil, gensupport.WrapError(&googleapi.Error{
 10836  			Code:   res.StatusCode,
 10837  			Header: res.Header,
 10838  		})
 10839  	}
 10840  	if err != nil {
 10841  		return nil, err
 10842  	}
 10843  	defer googleapi.CloseBody(res)
 10844  	if err := googleapi.CheckResponse(res); err != nil {
 10845  		return nil, gensupport.WrapError(err)
 10846  	}
 10847  	ret := &ListOperationsResponse{
 10848  		ServerResponse: googleapi.ServerResponse{
 10849  			Header:         res.Header,
 10850  			HTTPStatusCode: res.StatusCode,
 10851  		},
 10852  	}
 10853  	target := &ret
 10854  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10855  		return nil, err
 10856  	}
 10857  	return ret, nil
 10858  }
 10859  
 10860  // Pages invokes f for each page of results.
 10861  // A non-nil error returned from f will halt the iteration.
 10862  // The provided context supersedes any context provided to the Context method.
 10863  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
 10864  	c.ctx_ = ctx
 10865  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10866  	for {
 10867  		x, err := c.Do()
 10868  		if err != nil {
 10869  			return err
 10870  		}
 10871  		if err := f(x); err != nil {
 10872  			return err
 10873  		}
 10874  		if x.NextPageToken == "" {
 10875  			return nil
 10876  		}
 10877  		c.PageToken(x.NextPageToken)
 10878  	}
 10879  }
 10880  
 10881  type ProjectsLocationsTargetsCreateCall struct {
 10882  	s          *Service
 10883  	parent     string
 10884  	target     *Target
 10885  	urlParams_ gensupport.URLParams
 10886  	ctx_       context.Context
 10887  	header_    http.Header
 10888  }
 10889  
 10890  // Create: Creates a new Target in a given project and location.
 10891  //
 10892  //   - parent: The parent collection in which the `Target` should be created.
 10893  //     Format should be `projects/{project_id}/locations/{location_name}`.
 10894  func (r *ProjectsLocationsTargetsService) Create(parent string, target *Target) *ProjectsLocationsTargetsCreateCall {
 10895  	c := &ProjectsLocationsTargetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10896  	c.parent = parent
 10897  	c.target = target
 10898  	return c
 10899  }
 10900  
 10901  // RequestId sets the optional parameter "requestId": A request ID to identify
 10902  // requests. Specify a unique request ID so that if you must retry your
 10903  // request, the server knows to ignore the request if it has already been
 10904  // completed. The server guarantees that for at least 60 minutes after the
 10905  // first request. For example, consider a situation where you make an initial
 10906  // request and the request times out. If you make the request again with the
 10907  // same request ID, the server can check if original operation with the same
 10908  // request ID was received, and if so, will ignore the second request. This
 10909  // prevents clients from accidentally creating duplicate commitments. The
 10910  // request ID must be a valid UUID with the exception that zero UUID is not
 10911  // supported (00000000-0000-0000-0000-000000000000).
 10912  func (c *ProjectsLocationsTargetsCreateCall) RequestId(requestId string) *ProjectsLocationsTargetsCreateCall {
 10913  	c.urlParams_.Set("requestId", requestId)
 10914  	return c
 10915  }
 10916  
 10917  // TargetId sets the optional parameter "targetId": Required. ID of the
 10918  // `Target`.
 10919  func (c *ProjectsLocationsTargetsCreateCall) TargetId(targetId string) *ProjectsLocationsTargetsCreateCall {
 10920  	c.urlParams_.Set("targetId", targetId)
 10921  	return c
 10922  }
 10923  
 10924  // ValidateOnly sets the optional parameter "validateOnly": If set to true, the
 10925  // request is validated and the user is provided with an expected result, but
 10926  // no actual change is made.
 10927  func (c *ProjectsLocationsTargetsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsTargetsCreateCall {
 10928  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 10929  	return c
 10930  }
 10931  
 10932  // Fields allows partial responses to be retrieved. See
 10933  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10934  // details.
 10935  func (c *ProjectsLocationsTargetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTargetsCreateCall {
 10936  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10937  	return c
 10938  }
 10939  
 10940  // Context sets the context to be used in this call's Do method.
 10941  func (c *ProjectsLocationsTargetsCreateCall) Context(ctx context.Context) *ProjectsLocationsTargetsCreateCall {
 10942  	c.ctx_ = ctx
 10943  	return c
 10944  }
 10945  
 10946  // Header returns a http.Header that can be modified by the caller to add
 10947  // headers to the request.
 10948  func (c *ProjectsLocationsTargetsCreateCall) Header() http.Header {
 10949  	if c.header_ == nil {
 10950  		c.header_ = make(http.Header)
 10951  	}
 10952  	return c.header_
 10953  }
 10954  
 10955  func (c *ProjectsLocationsTargetsCreateCall) doRequest(alt string) (*http.Response, error) {
 10956  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10957  	var body io.Reader = nil
 10958  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.target)
 10959  	if err != nil {
 10960  		return nil, err
 10961  	}
 10962  	c.urlParams_.Set("alt", alt)
 10963  	c.urlParams_.Set("prettyPrint", "false")
 10964  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targets")
 10965  	urls += "?" + c.urlParams_.Encode()
 10966  	req, err := http.NewRequest("POST", urls, body)
 10967  	if err != nil {
 10968  		return nil, err
 10969  	}
 10970  	req.Header = reqHeaders
 10971  	googleapi.Expand(req.URL, map[string]string{
 10972  		"parent": c.parent,
 10973  	})
 10974  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10975  }
 10976  
 10977  // Do executes the "clouddeploy.projects.locations.targets.create" call.
 10978  // Any non-2xx status code is an error. Response headers are in either
 10979  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10980  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10981  // whether the returned error was because http.StatusNotModified was returned.
 10982  func (c *ProjectsLocationsTargetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10983  	gensupport.SetOptions(c.urlParams_, opts...)
 10984  	res, err := c.doRequest("json")
 10985  	if res != nil && res.StatusCode == http.StatusNotModified {
 10986  		if res.Body != nil {
 10987  			res.Body.Close()
 10988  		}
 10989  		return nil, gensupport.WrapError(&googleapi.Error{
 10990  			Code:   res.StatusCode,
 10991  			Header: res.Header,
 10992  		})
 10993  	}
 10994  	if err != nil {
 10995  		return nil, err
 10996  	}
 10997  	defer googleapi.CloseBody(res)
 10998  	if err := googleapi.CheckResponse(res); err != nil {
 10999  		return nil, gensupport.WrapError(err)
 11000  	}
 11001  	ret := &Operation{
 11002  		ServerResponse: googleapi.ServerResponse{
 11003  			Header:         res.Header,
 11004  			HTTPStatusCode: res.StatusCode,
 11005  		},
 11006  	}
 11007  	target := &ret
 11008  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11009  		return nil, err
 11010  	}
 11011  	return ret, nil
 11012  }
 11013  
 11014  type ProjectsLocationsTargetsDeleteCall struct {
 11015  	s          *Service
 11016  	name       string
 11017  	urlParams_ gensupport.URLParams
 11018  	ctx_       context.Context
 11019  	header_    http.Header
 11020  }
 11021  
 11022  // Delete: Deletes a single Target.
 11023  //
 11024  //   - name: The name of the `Target` to delete. Format should be
 11025  //     `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
 11026  func (r *ProjectsLocationsTargetsService) Delete(name string) *ProjectsLocationsTargetsDeleteCall {
 11027  	c := &ProjectsLocationsTargetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11028  	c.name = name
 11029  	return c
 11030  }
 11031  
 11032  // AllowMissing sets the optional parameter "allowMissing": If set to true,
 11033  // then deleting an already deleted or non-existing `Target` will succeed.
 11034  func (c *ProjectsLocationsTargetsDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsTargetsDeleteCall {
 11035  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 11036  	return c
 11037  }
 11038  
 11039  // Etag sets the optional parameter "etag": This checksum is computed by the
 11040  // server based on the value of other fields, and may be sent on update and
 11041  // delete requests to ensure the client has an up-to-date value before
 11042  // proceeding.
 11043  func (c *ProjectsLocationsTargetsDeleteCall) Etag(etag string) *ProjectsLocationsTargetsDeleteCall {
 11044  	c.urlParams_.Set("etag", etag)
 11045  	return c
 11046  }
 11047  
 11048  // RequestId sets the optional parameter "requestId": A request ID to identify
 11049  // requests. Specify a unique request ID so that if you must retry your
 11050  // request, the server knows to ignore the request if it has already been
 11051  // completed. The server guarantees that for at least 60 minutes after the
 11052  // first request. For example, consider a situation where you make an initial
 11053  // request and the request times out. If you make the request again with the
 11054  // same request ID, the server can check if original operation with the same
 11055  // request ID was received, and if so, will ignore the second request. This
 11056  // prevents clients from accidentally creating duplicate commitments. The
 11057  // request ID must be a valid UUID with the exception that zero UUID is not
 11058  // supported (00000000-0000-0000-0000-000000000000).
 11059  func (c *ProjectsLocationsTargetsDeleteCall) RequestId(requestId string) *ProjectsLocationsTargetsDeleteCall {
 11060  	c.urlParams_.Set("requestId", requestId)
 11061  	return c
 11062  }
 11063  
 11064  // ValidateOnly sets the optional parameter "validateOnly": If set, validate
 11065  // the request and preview the review, but do not actually post it.
 11066  func (c *ProjectsLocationsTargetsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsTargetsDeleteCall {
 11067  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 11068  	return c
 11069  }
 11070  
 11071  // Fields allows partial responses to be retrieved. See
 11072  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11073  // details.
 11074  func (c *ProjectsLocationsTargetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTargetsDeleteCall {
 11075  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11076  	return c
 11077  }
 11078  
 11079  // Context sets the context to be used in this call's Do method.
 11080  func (c *ProjectsLocationsTargetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTargetsDeleteCall {
 11081  	c.ctx_ = ctx
 11082  	return c
 11083  }
 11084  
 11085  // Header returns a http.Header that can be modified by the caller to add
 11086  // headers to the request.
 11087  func (c *ProjectsLocationsTargetsDeleteCall) Header() http.Header {
 11088  	if c.header_ == nil {
 11089  		c.header_ = make(http.Header)
 11090  	}
 11091  	return c.header_
 11092  }
 11093  
 11094  func (c *ProjectsLocationsTargetsDeleteCall) doRequest(alt string) (*http.Response, error) {
 11095  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11096  	var body io.Reader = nil
 11097  	c.urlParams_.Set("alt", alt)
 11098  	c.urlParams_.Set("prettyPrint", "false")
 11099  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11100  	urls += "?" + c.urlParams_.Encode()
 11101  	req, err := http.NewRequest("DELETE", urls, body)
 11102  	if err != nil {
 11103  		return nil, err
 11104  	}
 11105  	req.Header = reqHeaders
 11106  	googleapi.Expand(req.URL, map[string]string{
 11107  		"name": c.name,
 11108  	})
 11109  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11110  }
 11111  
 11112  // Do executes the "clouddeploy.projects.locations.targets.delete" call.
 11113  // Any non-2xx status code is an error. Response headers are in either
 11114  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11115  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11116  // whether the returned error was because http.StatusNotModified was returned.
 11117  func (c *ProjectsLocationsTargetsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11118  	gensupport.SetOptions(c.urlParams_, opts...)
 11119  	res, err := c.doRequest("json")
 11120  	if res != nil && res.StatusCode == http.StatusNotModified {
 11121  		if res.Body != nil {
 11122  			res.Body.Close()
 11123  		}
 11124  		return nil, gensupport.WrapError(&googleapi.Error{
 11125  			Code:   res.StatusCode,
 11126  			Header: res.Header,
 11127  		})
 11128  	}
 11129  	if err != nil {
 11130  		return nil, err
 11131  	}
 11132  	defer googleapi.CloseBody(res)
 11133  	if err := googleapi.CheckResponse(res); err != nil {
 11134  		return nil, gensupport.WrapError(err)
 11135  	}
 11136  	ret := &Operation{
 11137  		ServerResponse: googleapi.ServerResponse{
 11138  			Header:         res.Header,
 11139  			HTTPStatusCode: res.StatusCode,
 11140  		},
 11141  	}
 11142  	target := &ret
 11143  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11144  		return nil, err
 11145  	}
 11146  	return ret, nil
 11147  }
 11148  
 11149  type ProjectsLocationsTargetsGetCall struct {
 11150  	s            *Service
 11151  	name         string
 11152  	urlParams_   gensupport.URLParams
 11153  	ifNoneMatch_ string
 11154  	ctx_         context.Context
 11155  	header_      http.Header
 11156  }
 11157  
 11158  // Get: Gets details of a single Target.
 11159  //
 11160  //   - name: Name of the `Target`. Format must be
 11161  //     `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
 11162  func (r *ProjectsLocationsTargetsService) Get(name string) *ProjectsLocationsTargetsGetCall {
 11163  	c := &ProjectsLocationsTargetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11164  	c.name = name
 11165  	return c
 11166  }
 11167  
 11168  // Fields allows partial responses to be retrieved. See
 11169  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11170  // details.
 11171  func (c *ProjectsLocationsTargetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTargetsGetCall {
 11172  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11173  	return c
 11174  }
 11175  
 11176  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11177  // object's ETag matches the given value. This is useful for getting updates
 11178  // only after the object has changed since the last request.
 11179  func (c *ProjectsLocationsTargetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTargetsGetCall {
 11180  	c.ifNoneMatch_ = entityTag
 11181  	return c
 11182  }
 11183  
 11184  // Context sets the context to be used in this call's Do method.
 11185  func (c *ProjectsLocationsTargetsGetCall) Context(ctx context.Context) *ProjectsLocationsTargetsGetCall {
 11186  	c.ctx_ = ctx
 11187  	return c
 11188  }
 11189  
 11190  // Header returns a http.Header that can be modified by the caller to add
 11191  // headers to the request.
 11192  func (c *ProjectsLocationsTargetsGetCall) Header() http.Header {
 11193  	if c.header_ == nil {
 11194  		c.header_ = make(http.Header)
 11195  	}
 11196  	return c.header_
 11197  }
 11198  
 11199  func (c *ProjectsLocationsTargetsGetCall) doRequest(alt string) (*http.Response, error) {
 11200  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11201  	if c.ifNoneMatch_ != "" {
 11202  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11203  	}
 11204  	var body io.Reader = nil
 11205  	c.urlParams_.Set("alt", alt)
 11206  	c.urlParams_.Set("prettyPrint", "false")
 11207  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11208  	urls += "?" + c.urlParams_.Encode()
 11209  	req, err := http.NewRequest("GET", urls, body)
 11210  	if err != nil {
 11211  		return nil, err
 11212  	}
 11213  	req.Header = reqHeaders
 11214  	googleapi.Expand(req.URL, map[string]string{
 11215  		"name": c.name,
 11216  	})
 11217  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11218  }
 11219  
 11220  // Do executes the "clouddeploy.projects.locations.targets.get" call.
 11221  // Any non-2xx status code is an error. Response headers are in either
 11222  // *Target.ServerResponse.Header or (if a response was returned at all) in
 11223  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11224  // whether the returned error was because http.StatusNotModified was returned.
 11225  func (c *ProjectsLocationsTargetsGetCall) Do(opts ...googleapi.CallOption) (*Target, error) {
 11226  	gensupport.SetOptions(c.urlParams_, opts...)
 11227  	res, err := c.doRequest("json")
 11228  	if res != nil && res.StatusCode == http.StatusNotModified {
 11229  		if res.Body != nil {
 11230  			res.Body.Close()
 11231  		}
 11232  		return nil, gensupport.WrapError(&googleapi.Error{
 11233  			Code:   res.StatusCode,
 11234  			Header: res.Header,
 11235  		})
 11236  	}
 11237  	if err != nil {
 11238  		return nil, err
 11239  	}
 11240  	defer googleapi.CloseBody(res)
 11241  	if err := googleapi.CheckResponse(res); err != nil {
 11242  		return nil, gensupport.WrapError(err)
 11243  	}
 11244  	ret := &Target{
 11245  		ServerResponse: googleapi.ServerResponse{
 11246  			Header:         res.Header,
 11247  			HTTPStatusCode: res.StatusCode,
 11248  		},
 11249  	}
 11250  	target := &ret
 11251  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11252  		return nil, err
 11253  	}
 11254  	return ret, nil
 11255  }
 11256  
 11257  type ProjectsLocationsTargetsGetIamPolicyCall struct {
 11258  	s            *Service
 11259  	resource     string
 11260  	urlParams_   gensupport.URLParams
 11261  	ifNoneMatch_ string
 11262  	ctx_         context.Context
 11263  	header_      http.Header
 11264  }
 11265  
 11266  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 11267  // empty policy if the resource exists and does not have a policy set.
 11268  //
 11269  //   - resource: REQUIRED: The resource for which the policy is being requested.
 11270  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 11271  //     for the appropriate value for this field.
 11272  func (r *ProjectsLocationsTargetsService) GetIamPolicy(resource string) *ProjectsLocationsTargetsGetIamPolicyCall {
 11273  	c := &ProjectsLocationsTargetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11274  	c.resource = resource
 11275  	return c
 11276  }
 11277  
 11278  // OptionsRequestedPolicyVersion sets the optional parameter
 11279  // "options.requestedPolicyVersion": The maximum policy version that will be
 11280  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
 11281  // an invalid value will be rejected. Requests for policies with any
 11282  // conditional role bindings must specify version 3. Policies with no
 11283  // conditional role bindings may specify any valid value or leave the field
 11284  // unset. The policy in the response might use the policy version that you
 11285  // specified, or it might use a lower policy version. For example, if you
 11286  // specify version 3, but the policy has no conditional role bindings, the
 11287  // response uses version 1. To learn which resources support conditions in
 11288  // their IAM policies, see the IAM documentation
 11289  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 11290  func (c *ProjectsLocationsTargetsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsTargetsGetIamPolicyCall {
 11291  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 11292  	return c
 11293  }
 11294  
 11295  // Fields allows partial responses to be retrieved. See
 11296  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11297  // details.
 11298  func (c *ProjectsLocationsTargetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTargetsGetIamPolicyCall {
 11299  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11300  	return c
 11301  }
 11302  
 11303  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11304  // object's ETag matches the given value. This is useful for getting updates
 11305  // only after the object has changed since the last request.
 11306  func (c *ProjectsLocationsTargetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsTargetsGetIamPolicyCall {
 11307  	c.ifNoneMatch_ = entityTag
 11308  	return c
 11309  }
 11310  
 11311  // Context sets the context to be used in this call's Do method.
 11312  func (c *ProjectsLocationsTargetsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTargetsGetIamPolicyCall {
 11313  	c.ctx_ = ctx
 11314  	return c
 11315  }
 11316  
 11317  // Header returns a http.Header that can be modified by the caller to add
 11318  // headers to the request.
 11319  func (c *ProjectsLocationsTargetsGetIamPolicyCall) Header() http.Header {
 11320  	if c.header_ == nil {
 11321  		c.header_ = make(http.Header)
 11322  	}
 11323  	return c.header_
 11324  }
 11325  
 11326  func (c *ProjectsLocationsTargetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 11327  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11328  	if c.ifNoneMatch_ != "" {
 11329  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11330  	}
 11331  	var body io.Reader = nil
 11332  	c.urlParams_.Set("alt", alt)
 11333  	c.urlParams_.Set("prettyPrint", "false")
 11334  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 11335  	urls += "?" + c.urlParams_.Encode()
 11336  	req, err := http.NewRequest("GET", urls, body)
 11337  	if err != nil {
 11338  		return nil, err
 11339  	}
 11340  	req.Header = reqHeaders
 11341  	googleapi.Expand(req.URL, map[string]string{
 11342  		"resource": c.resource,
 11343  	})
 11344  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11345  }
 11346  
 11347  // Do executes the "clouddeploy.projects.locations.targets.getIamPolicy" call.
 11348  // Any non-2xx status code is an error. Response headers are in either
 11349  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 11350  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11351  // whether the returned error was because http.StatusNotModified was returned.
 11352  func (c *ProjectsLocationsTargetsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 11353  	gensupport.SetOptions(c.urlParams_, opts...)
 11354  	res, err := c.doRequest("json")
 11355  	if res != nil && res.StatusCode == http.StatusNotModified {
 11356  		if res.Body != nil {
 11357  			res.Body.Close()
 11358  		}
 11359  		return nil, gensupport.WrapError(&googleapi.Error{
 11360  			Code:   res.StatusCode,
 11361  			Header: res.Header,
 11362  		})
 11363  	}
 11364  	if err != nil {
 11365  		return nil, err
 11366  	}
 11367  	defer googleapi.CloseBody(res)
 11368  	if err := googleapi.CheckResponse(res); err != nil {
 11369  		return nil, gensupport.WrapError(err)
 11370  	}
 11371  	ret := &Policy{
 11372  		ServerResponse: googleapi.ServerResponse{
 11373  			Header:         res.Header,
 11374  			HTTPStatusCode: res.StatusCode,
 11375  		},
 11376  	}
 11377  	target := &ret
 11378  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11379  		return nil, err
 11380  	}
 11381  	return ret, nil
 11382  }
 11383  
 11384  type ProjectsLocationsTargetsListCall struct {
 11385  	s            *Service
 11386  	parent       string
 11387  	urlParams_   gensupport.URLParams
 11388  	ifNoneMatch_ string
 11389  	ctx_         context.Context
 11390  	header_      http.Header
 11391  }
 11392  
 11393  // List: Lists Targets in a given project and location.
 11394  //
 11395  //   - parent: The parent, which owns this collection of targets. Format must be
 11396  //     `projects/{project_id}/locations/{location_name}`.
 11397  func (r *ProjectsLocationsTargetsService) List(parent string) *ProjectsLocationsTargetsListCall {
 11398  	c := &ProjectsLocationsTargetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11399  	c.parent = parent
 11400  	return c
 11401  }
 11402  
 11403  // Filter sets the optional parameter "filter": Filter targets to be returned.
 11404  // See https://google.aip.dev/160 for more details.
 11405  func (c *ProjectsLocationsTargetsListCall) Filter(filter string) *ProjectsLocationsTargetsListCall {
 11406  	c.urlParams_.Set("filter", filter)
 11407  	return c
 11408  }
 11409  
 11410  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 11411  // https://google.aip.dev/132#ordering for more details.
 11412  func (c *ProjectsLocationsTargetsListCall) OrderBy(orderBy string) *ProjectsLocationsTargetsListCall {
 11413  	c.urlParams_.Set("orderBy", orderBy)
 11414  	return c
 11415  }
 11416  
 11417  // PageSize sets the optional parameter "pageSize": The maximum number of
 11418  // `Target` objects to return. The service may return fewer than this value. If
 11419  // unspecified, at most 50 `Target` objects will be returned. The maximum value
 11420  // is 1000; values above 1000 will be set to 1000.
 11421  func (c *ProjectsLocationsTargetsListCall) PageSize(pageSize int64) *ProjectsLocationsTargetsListCall {
 11422  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11423  	return c
 11424  }
 11425  
 11426  // PageToken sets the optional parameter "pageToken": A page token, received
 11427  // from a previous `ListTargets` call. Provide this to retrieve the subsequent
 11428  // page. When paginating, all other provided parameters match the call that
 11429  // provided the page token.
 11430  func (c *ProjectsLocationsTargetsListCall) PageToken(pageToken string) *ProjectsLocationsTargetsListCall {
 11431  	c.urlParams_.Set("pageToken", pageToken)
 11432  	return c
 11433  }
 11434  
 11435  // Fields allows partial responses to be retrieved. See
 11436  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11437  // details.
 11438  func (c *ProjectsLocationsTargetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTargetsListCall {
 11439  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11440  	return c
 11441  }
 11442  
 11443  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11444  // object's ETag matches the given value. This is useful for getting updates
 11445  // only after the object has changed since the last request.
 11446  func (c *ProjectsLocationsTargetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTargetsListCall {
 11447  	c.ifNoneMatch_ = entityTag
 11448  	return c
 11449  }
 11450  
 11451  // Context sets the context to be used in this call's Do method.
 11452  func (c *ProjectsLocationsTargetsListCall) Context(ctx context.Context) *ProjectsLocationsTargetsListCall {
 11453  	c.ctx_ = ctx
 11454  	return c
 11455  }
 11456  
 11457  // Header returns a http.Header that can be modified by the caller to add
 11458  // headers to the request.
 11459  func (c *ProjectsLocationsTargetsListCall) Header() http.Header {
 11460  	if c.header_ == nil {
 11461  		c.header_ = make(http.Header)
 11462  	}
 11463  	return c.header_
 11464  }
 11465  
 11466  func (c *ProjectsLocationsTargetsListCall) doRequest(alt string) (*http.Response, error) {
 11467  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11468  	if c.ifNoneMatch_ != "" {
 11469  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11470  	}
 11471  	var body io.Reader = nil
 11472  	c.urlParams_.Set("alt", alt)
 11473  	c.urlParams_.Set("prettyPrint", "false")
 11474  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targets")
 11475  	urls += "?" + c.urlParams_.Encode()
 11476  	req, err := http.NewRequest("GET", urls, body)
 11477  	if err != nil {
 11478  		return nil, err
 11479  	}
 11480  	req.Header = reqHeaders
 11481  	googleapi.Expand(req.URL, map[string]string{
 11482  		"parent": c.parent,
 11483  	})
 11484  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11485  }
 11486  
 11487  // Do executes the "clouddeploy.projects.locations.targets.list" call.
 11488  // Any non-2xx status code is an error. Response headers are in either
 11489  // *ListTargetsResponse.ServerResponse.Header or (if a response was returned at
 11490  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11491  // check whether the returned error was because http.StatusNotModified was
 11492  // returned.
 11493  func (c *ProjectsLocationsTargetsListCall) Do(opts ...googleapi.CallOption) (*ListTargetsResponse, error) {
 11494  	gensupport.SetOptions(c.urlParams_, opts...)
 11495  	res, err := c.doRequest("json")
 11496  	if res != nil && res.StatusCode == http.StatusNotModified {
 11497  		if res.Body != nil {
 11498  			res.Body.Close()
 11499  		}
 11500  		return nil, gensupport.WrapError(&googleapi.Error{
 11501  			Code:   res.StatusCode,
 11502  			Header: res.Header,
 11503  		})
 11504  	}
 11505  	if err != nil {
 11506  		return nil, err
 11507  	}
 11508  	defer googleapi.CloseBody(res)
 11509  	if err := googleapi.CheckResponse(res); err != nil {
 11510  		return nil, gensupport.WrapError(err)
 11511  	}
 11512  	ret := &ListTargetsResponse{
 11513  		ServerResponse: googleapi.ServerResponse{
 11514  			Header:         res.Header,
 11515  			HTTPStatusCode: res.StatusCode,
 11516  		},
 11517  	}
 11518  	target := &ret
 11519  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11520  		return nil, err
 11521  	}
 11522  	return ret, nil
 11523  }
 11524  
 11525  // Pages invokes f for each page of results.
 11526  // A non-nil error returned from f will halt the iteration.
 11527  // The provided context supersedes any context provided to the Context method.
 11528  func (c *ProjectsLocationsTargetsListCall) Pages(ctx context.Context, f func(*ListTargetsResponse) error) error {
 11529  	c.ctx_ = ctx
 11530  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11531  	for {
 11532  		x, err := c.Do()
 11533  		if err != nil {
 11534  			return err
 11535  		}
 11536  		if err := f(x); err != nil {
 11537  			return err
 11538  		}
 11539  		if x.NextPageToken == "" {
 11540  			return nil
 11541  		}
 11542  		c.PageToken(x.NextPageToken)
 11543  	}
 11544  }
 11545  
 11546  type ProjectsLocationsTargetsPatchCall struct {
 11547  	s          *Service
 11548  	name       string
 11549  	target     *Target
 11550  	urlParams_ gensupport.URLParams
 11551  	ctx_       context.Context
 11552  	header_    http.Header
 11553  }
 11554  
 11555  // Patch: Updates the parameters of a single Target.
 11556  //
 11557  //   - name: Optional. Name of the `Target`. Format is
 11558  //     `projects/{project}/locations/{location}/targets/{target}`. The `target`
 11559  //     component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
 11560  func (r *ProjectsLocationsTargetsService) Patch(name string, target *Target) *ProjectsLocationsTargetsPatchCall {
 11561  	c := &ProjectsLocationsTargetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11562  	c.name = name
 11563  	c.target = target
 11564  	return c
 11565  }
 11566  
 11567  // AllowMissing sets the optional parameter "allowMissing": If set to true,
 11568  // updating a `Target` that does not exist will result in the creation of a new
 11569  // `Target`.
 11570  func (c *ProjectsLocationsTargetsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsTargetsPatchCall {
 11571  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 11572  	return c
 11573  }
 11574  
 11575  // RequestId sets the optional parameter "requestId": A request ID to identify
 11576  // requests. Specify a unique request ID so that if you must retry your
 11577  // request, the server knows to ignore the request if it has already been
 11578  // completed. The server guarantees that for at least 60 minutes after the
 11579  // first request. For example, consider a situation where you make an initial
 11580  // request and the request times out. If you make the request again with the
 11581  // same request ID, the server can check if original operation with the same
 11582  // request ID was received, and if so, will ignore the second request. This
 11583  // prevents clients from accidentally creating duplicate commitments. The
 11584  // request ID must be a valid UUID with the exception that zero UUID is not
 11585  // supported (00000000-0000-0000-0000-000000000000).
 11586  func (c *ProjectsLocationsTargetsPatchCall) RequestId(requestId string) *ProjectsLocationsTargetsPatchCall {
 11587  	c.urlParams_.Set("requestId", requestId)
 11588  	return c
 11589  }
 11590  
 11591  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
 11592  // used to specify the fields to be overwritten in the Target resource by the
 11593  // update. The fields specified in the update_mask are relative to the
 11594  // resource, not the full request. A field will be overwritten if it's in the
 11595  // mask. If the user doesn't provide a mask then all fields are overwritten.
 11596  func (c *ProjectsLocationsTargetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTargetsPatchCall {
 11597  	c.urlParams_.Set("updateMask", updateMask)
 11598  	return c
 11599  }
 11600  
 11601  // ValidateOnly sets the optional parameter "validateOnly": If set to true, the
 11602  // request is validated and the user is provided with an expected result, but
 11603  // no actual change is made.
 11604  func (c *ProjectsLocationsTargetsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsTargetsPatchCall {
 11605  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 11606  	return c
 11607  }
 11608  
 11609  // Fields allows partial responses to be retrieved. See
 11610  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11611  // details.
 11612  func (c *ProjectsLocationsTargetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTargetsPatchCall {
 11613  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11614  	return c
 11615  }
 11616  
 11617  // Context sets the context to be used in this call's Do method.
 11618  func (c *ProjectsLocationsTargetsPatchCall) Context(ctx context.Context) *ProjectsLocationsTargetsPatchCall {
 11619  	c.ctx_ = ctx
 11620  	return c
 11621  }
 11622  
 11623  // Header returns a http.Header that can be modified by the caller to add
 11624  // headers to the request.
 11625  func (c *ProjectsLocationsTargetsPatchCall) Header() http.Header {
 11626  	if c.header_ == nil {
 11627  		c.header_ = make(http.Header)
 11628  	}
 11629  	return c.header_
 11630  }
 11631  
 11632  func (c *ProjectsLocationsTargetsPatchCall) doRequest(alt string) (*http.Response, error) {
 11633  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11634  	var body io.Reader = nil
 11635  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.target)
 11636  	if err != nil {
 11637  		return nil, err
 11638  	}
 11639  	c.urlParams_.Set("alt", alt)
 11640  	c.urlParams_.Set("prettyPrint", "false")
 11641  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11642  	urls += "?" + c.urlParams_.Encode()
 11643  	req, err := http.NewRequest("PATCH", urls, body)
 11644  	if err != nil {
 11645  		return nil, err
 11646  	}
 11647  	req.Header = reqHeaders
 11648  	googleapi.Expand(req.URL, map[string]string{
 11649  		"name": c.name,
 11650  	})
 11651  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11652  }
 11653  
 11654  // Do executes the "clouddeploy.projects.locations.targets.patch" call.
 11655  // Any non-2xx status code is an error. Response headers are in either
 11656  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11657  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11658  // whether the returned error was because http.StatusNotModified was returned.
 11659  func (c *ProjectsLocationsTargetsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11660  	gensupport.SetOptions(c.urlParams_, opts...)
 11661  	res, err := c.doRequest("json")
 11662  	if res != nil && res.StatusCode == http.StatusNotModified {
 11663  		if res.Body != nil {
 11664  			res.Body.Close()
 11665  		}
 11666  		return nil, gensupport.WrapError(&googleapi.Error{
 11667  			Code:   res.StatusCode,
 11668  			Header: res.Header,
 11669  		})
 11670  	}
 11671  	if err != nil {
 11672  		return nil, err
 11673  	}
 11674  	defer googleapi.CloseBody(res)
 11675  	if err := googleapi.CheckResponse(res); err != nil {
 11676  		return nil, gensupport.WrapError(err)
 11677  	}
 11678  	ret := &Operation{
 11679  		ServerResponse: googleapi.ServerResponse{
 11680  			Header:         res.Header,
 11681  			HTTPStatusCode: res.StatusCode,
 11682  		},
 11683  	}
 11684  	target := &ret
 11685  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11686  		return nil, err
 11687  	}
 11688  	return ret, nil
 11689  }
 11690  
 11691  type ProjectsLocationsTargetsSetIamPolicyCall struct {
 11692  	s                   *Service
 11693  	resource            string
 11694  	setiampolicyrequest *SetIamPolicyRequest
 11695  	urlParams_          gensupport.URLParams
 11696  	ctx_                context.Context
 11697  	header_             http.Header
 11698  }
 11699  
 11700  // SetIamPolicy: Sets the access control policy on the specified resource.
 11701  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
 11702  // and `PERMISSION_DENIED` errors.
 11703  //
 11704  //   - resource: REQUIRED: The resource for which the policy is being specified.
 11705  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 11706  //     for the appropriate value for this field.
 11707  func (r *ProjectsLocationsTargetsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTargetsSetIamPolicyCall {
 11708  	c := &ProjectsLocationsTargetsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11709  	c.resource = resource
 11710  	c.setiampolicyrequest = setiampolicyrequest
 11711  	return c
 11712  }
 11713  
 11714  // Fields allows partial responses to be retrieved. See
 11715  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11716  // details.
 11717  func (c *ProjectsLocationsTargetsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTargetsSetIamPolicyCall {
 11718  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11719  	return c
 11720  }
 11721  
 11722  // Context sets the context to be used in this call's Do method.
 11723  func (c *ProjectsLocationsTargetsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTargetsSetIamPolicyCall {
 11724  	c.ctx_ = ctx
 11725  	return c
 11726  }
 11727  
 11728  // Header returns a http.Header that can be modified by the caller to add
 11729  // headers to the request.
 11730  func (c *ProjectsLocationsTargetsSetIamPolicyCall) Header() http.Header {
 11731  	if c.header_ == nil {
 11732  		c.header_ = make(http.Header)
 11733  	}
 11734  	return c.header_
 11735  }
 11736  
 11737  func (c *ProjectsLocationsTargetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 11738  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11739  	var body io.Reader = nil
 11740  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 11741  	if err != nil {
 11742  		return nil, err
 11743  	}
 11744  	c.urlParams_.Set("alt", alt)
 11745  	c.urlParams_.Set("prettyPrint", "false")
 11746  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 11747  	urls += "?" + c.urlParams_.Encode()
 11748  	req, err := http.NewRequest("POST", urls, body)
 11749  	if err != nil {
 11750  		return nil, err
 11751  	}
 11752  	req.Header = reqHeaders
 11753  	googleapi.Expand(req.URL, map[string]string{
 11754  		"resource": c.resource,
 11755  	})
 11756  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11757  }
 11758  
 11759  // Do executes the "clouddeploy.projects.locations.targets.setIamPolicy" call.
 11760  // Any non-2xx status code is an error. Response headers are in either
 11761  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 11762  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11763  // whether the returned error was because http.StatusNotModified was returned.
 11764  func (c *ProjectsLocationsTargetsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 11765  	gensupport.SetOptions(c.urlParams_, opts...)
 11766  	res, err := c.doRequest("json")
 11767  	if res != nil && res.StatusCode == http.StatusNotModified {
 11768  		if res.Body != nil {
 11769  			res.Body.Close()
 11770  		}
 11771  		return nil, gensupport.WrapError(&googleapi.Error{
 11772  			Code:   res.StatusCode,
 11773  			Header: res.Header,
 11774  		})
 11775  	}
 11776  	if err != nil {
 11777  		return nil, err
 11778  	}
 11779  	defer googleapi.CloseBody(res)
 11780  	if err := googleapi.CheckResponse(res); err != nil {
 11781  		return nil, gensupport.WrapError(err)
 11782  	}
 11783  	ret := &Policy{
 11784  		ServerResponse: googleapi.ServerResponse{
 11785  			Header:         res.Header,
 11786  			HTTPStatusCode: res.StatusCode,
 11787  		},
 11788  	}
 11789  	target := &ret
 11790  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11791  		return nil, err
 11792  	}
 11793  	return ret, nil
 11794  }
 11795  
 11796  type ProjectsLocationsTargetsTestIamPermissionsCall struct {
 11797  	s                         *Service
 11798  	resource                  string
 11799  	testiampermissionsrequest *TestIamPermissionsRequest
 11800  	urlParams_                gensupport.URLParams
 11801  	ctx_                      context.Context
 11802  	header_                   http.Header
 11803  }
 11804  
 11805  // TestIamPermissions: Returns permissions that a caller has on the specified
 11806  // resource. If the resource does not exist, this will return an empty set of
 11807  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
 11808  // used for building permission-aware UIs and command-line tools, not for
 11809  // authorization checking. This operation may "fail open" without warning.
 11810  //
 11811  //   - resource: REQUIRED: The resource for which the policy detail is being
 11812  //     requested. See Resource names
 11813  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 11814  //     value for this field.
 11815  func (r *ProjectsLocationsTargetsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTargetsTestIamPermissionsCall {
 11816  	c := &ProjectsLocationsTargetsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11817  	c.resource = resource
 11818  	c.testiampermissionsrequest = testiampermissionsrequest
 11819  	return c
 11820  }
 11821  
 11822  // Fields allows partial responses to be retrieved. See
 11823  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11824  // details.
 11825  func (c *ProjectsLocationsTargetsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsTargetsTestIamPermissionsCall {
 11826  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11827  	return c
 11828  }
 11829  
 11830  // Context sets the context to be used in this call's Do method.
 11831  func (c *ProjectsLocationsTargetsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsTargetsTestIamPermissionsCall {
 11832  	c.ctx_ = ctx
 11833  	return c
 11834  }
 11835  
 11836  // Header returns a http.Header that can be modified by the caller to add
 11837  // headers to the request.
 11838  func (c *ProjectsLocationsTargetsTestIamPermissionsCall) Header() http.Header {
 11839  	if c.header_ == nil {
 11840  		c.header_ = make(http.Header)
 11841  	}
 11842  	return c.header_
 11843  }
 11844  
 11845  func (c *ProjectsLocationsTargetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 11846  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11847  	var body io.Reader = nil
 11848  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 11849  	if err != nil {
 11850  		return nil, err
 11851  	}
 11852  	c.urlParams_.Set("alt", alt)
 11853  	c.urlParams_.Set("prettyPrint", "false")
 11854  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 11855  	urls += "?" + c.urlParams_.Encode()
 11856  	req, err := http.NewRequest("POST", urls, body)
 11857  	if err != nil {
 11858  		return nil, err
 11859  	}
 11860  	req.Header = reqHeaders
 11861  	googleapi.Expand(req.URL, map[string]string{
 11862  		"resource": c.resource,
 11863  	})
 11864  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11865  }
 11866  
 11867  // Do executes the "clouddeploy.projects.locations.targets.testIamPermissions" call.
 11868  // Any non-2xx status code is an error. Response headers are in either
 11869  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 11870  // returned at all) in error.(*googleapi.Error).Header. Use
 11871  // googleapi.IsNotModified to check whether the returned error was because
 11872  // http.StatusNotModified was returned.
 11873  func (c *ProjectsLocationsTargetsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 11874  	gensupport.SetOptions(c.urlParams_, opts...)
 11875  	res, err := c.doRequest("json")
 11876  	if res != nil && res.StatusCode == http.StatusNotModified {
 11877  		if res.Body != nil {
 11878  			res.Body.Close()
 11879  		}
 11880  		return nil, gensupport.WrapError(&googleapi.Error{
 11881  			Code:   res.StatusCode,
 11882  			Header: res.Header,
 11883  		})
 11884  	}
 11885  	if err != nil {
 11886  		return nil, err
 11887  	}
 11888  	defer googleapi.CloseBody(res)
 11889  	if err := googleapi.CheckResponse(res); err != nil {
 11890  		return nil, gensupport.WrapError(err)
 11891  	}
 11892  	ret := &TestIamPermissionsResponse{
 11893  		ServerResponse: googleapi.ServerResponse{
 11894  			Header:         res.Header,
 11895  			HTTPStatusCode: res.StatusCode,
 11896  		},
 11897  	}
 11898  	target := &ret
 11899  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11900  		return nil, err
 11901  	}
 11902  	return ret, nil
 11903  }
 11904  

View as plain text