...

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

Documentation: google.golang.org/api/connectors/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 connectors provides access to the Connectors API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/apigee/docs/api-platform/connectors/about-connectors
    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/connectors/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	connectorsService, err := connectors.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  //	connectorsService, err := connectors.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  //	connectorsService, err := connectors.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package connectors // import "google.golang.org/api/connectors/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 = "connectors:v1"
    90  const apiName = "connectors"
    91  const apiVersion = "v1"
    92  const basePath = "https://connectors.googleapis.com/"
    93  const basePathTemplate = "https://connectors.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://connectors.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.Connections = NewProjectsLocationsConnectionsService(s)
   172  	rs.CustomConnectors = NewProjectsLocationsCustomConnectorsService(s)
   173  	rs.EndpointAttachments = NewProjectsLocationsEndpointAttachmentsService(s)
   174  	rs.Global = NewProjectsLocationsGlobalService(s)
   175  	rs.Operations = NewProjectsLocationsOperationsService(s)
   176  	rs.Providers = NewProjectsLocationsProvidersService(s)
   177  	return rs
   178  }
   179  
   180  type ProjectsLocationsService struct {
   181  	s *Service
   182  
   183  	Connections *ProjectsLocationsConnectionsService
   184  
   185  	CustomConnectors *ProjectsLocationsCustomConnectorsService
   186  
   187  	EndpointAttachments *ProjectsLocationsEndpointAttachmentsService
   188  
   189  	Global *ProjectsLocationsGlobalService
   190  
   191  	Operations *ProjectsLocationsOperationsService
   192  
   193  	Providers *ProjectsLocationsProvidersService
   194  }
   195  
   196  func NewProjectsLocationsConnectionsService(s *Service) *ProjectsLocationsConnectionsService {
   197  	rs := &ProjectsLocationsConnectionsService{s: s}
   198  	rs.ConnectionSchemaMetadata = NewProjectsLocationsConnectionsConnectionSchemaMetadataService(s)
   199  	rs.EventSubscriptions = NewProjectsLocationsConnectionsEventSubscriptionsService(s)
   200  	rs.RuntimeActionSchemas = NewProjectsLocationsConnectionsRuntimeActionSchemasService(s)
   201  	rs.RuntimeEntitySchemas = NewProjectsLocationsConnectionsRuntimeEntitySchemasService(s)
   202  	return rs
   203  }
   204  
   205  type ProjectsLocationsConnectionsService struct {
   206  	s *Service
   207  
   208  	ConnectionSchemaMetadata *ProjectsLocationsConnectionsConnectionSchemaMetadataService
   209  
   210  	EventSubscriptions *ProjectsLocationsConnectionsEventSubscriptionsService
   211  
   212  	RuntimeActionSchemas *ProjectsLocationsConnectionsRuntimeActionSchemasService
   213  
   214  	RuntimeEntitySchemas *ProjectsLocationsConnectionsRuntimeEntitySchemasService
   215  }
   216  
   217  func NewProjectsLocationsConnectionsConnectionSchemaMetadataService(s *Service) *ProjectsLocationsConnectionsConnectionSchemaMetadataService {
   218  	rs := &ProjectsLocationsConnectionsConnectionSchemaMetadataService{s: s}
   219  	return rs
   220  }
   221  
   222  type ProjectsLocationsConnectionsConnectionSchemaMetadataService struct {
   223  	s *Service
   224  }
   225  
   226  func NewProjectsLocationsConnectionsEventSubscriptionsService(s *Service) *ProjectsLocationsConnectionsEventSubscriptionsService {
   227  	rs := &ProjectsLocationsConnectionsEventSubscriptionsService{s: s}
   228  	return rs
   229  }
   230  
   231  type ProjectsLocationsConnectionsEventSubscriptionsService struct {
   232  	s *Service
   233  }
   234  
   235  func NewProjectsLocationsConnectionsRuntimeActionSchemasService(s *Service) *ProjectsLocationsConnectionsRuntimeActionSchemasService {
   236  	rs := &ProjectsLocationsConnectionsRuntimeActionSchemasService{s: s}
   237  	return rs
   238  }
   239  
   240  type ProjectsLocationsConnectionsRuntimeActionSchemasService struct {
   241  	s *Service
   242  }
   243  
   244  func NewProjectsLocationsConnectionsRuntimeEntitySchemasService(s *Service) *ProjectsLocationsConnectionsRuntimeEntitySchemasService {
   245  	rs := &ProjectsLocationsConnectionsRuntimeEntitySchemasService{s: s}
   246  	return rs
   247  }
   248  
   249  type ProjectsLocationsConnectionsRuntimeEntitySchemasService struct {
   250  	s *Service
   251  }
   252  
   253  func NewProjectsLocationsCustomConnectorsService(s *Service) *ProjectsLocationsCustomConnectorsService {
   254  	rs := &ProjectsLocationsCustomConnectorsService{s: s}
   255  	rs.CustomConnectorVersions = NewProjectsLocationsCustomConnectorsCustomConnectorVersionsService(s)
   256  	return rs
   257  }
   258  
   259  type ProjectsLocationsCustomConnectorsService struct {
   260  	s *Service
   261  
   262  	CustomConnectorVersions *ProjectsLocationsCustomConnectorsCustomConnectorVersionsService
   263  }
   264  
   265  func NewProjectsLocationsCustomConnectorsCustomConnectorVersionsService(s *Service) *ProjectsLocationsCustomConnectorsCustomConnectorVersionsService {
   266  	rs := &ProjectsLocationsCustomConnectorsCustomConnectorVersionsService{s: s}
   267  	return rs
   268  }
   269  
   270  type ProjectsLocationsCustomConnectorsCustomConnectorVersionsService struct {
   271  	s *Service
   272  }
   273  
   274  func NewProjectsLocationsEndpointAttachmentsService(s *Service) *ProjectsLocationsEndpointAttachmentsService {
   275  	rs := &ProjectsLocationsEndpointAttachmentsService{s: s}
   276  	return rs
   277  }
   278  
   279  type ProjectsLocationsEndpointAttachmentsService struct {
   280  	s *Service
   281  }
   282  
   283  func NewProjectsLocationsGlobalService(s *Service) *ProjectsLocationsGlobalService {
   284  	rs := &ProjectsLocationsGlobalService{s: s}
   285  	rs.CustomConnectors = NewProjectsLocationsGlobalCustomConnectorsService(s)
   286  	rs.ManagedZones = NewProjectsLocationsGlobalManagedZonesService(s)
   287  	return rs
   288  }
   289  
   290  type ProjectsLocationsGlobalService struct {
   291  	s *Service
   292  
   293  	CustomConnectors *ProjectsLocationsGlobalCustomConnectorsService
   294  
   295  	ManagedZones *ProjectsLocationsGlobalManagedZonesService
   296  }
   297  
   298  func NewProjectsLocationsGlobalCustomConnectorsService(s *Service) *ProjectsLocationsGlobalCustomConnectorsService {
   299  	rs := &ProjectsLocationsGlobalCustomConnectorsService{s: s}
   300  	rs.CustomConnectorVersions = NewProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsService(s)
   301  	return rs
   302  }
   303  
   304  type ProjectsLocationsGlobalCustomConnectorsService struct {
   305  	s *Service
   306  
   307  	CustomConnectorVersions *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsService
   308  }
   309  
   310  func NewProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsService(s *Service) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsService {
   311  	rs := &ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsService{s: s}
   312  	return rs
   313  }
   314  
   315  type ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsService struct {
   316  	s *Service
   317  }
   318  
   319  func NewProjectsLocationsGlobalManagedZonesService(s *Service) *ProjectsLocationsGlobalManagedZonesService {
   320  	rs := &ProjectsLocationsGlobalManagedZonesService{s: s}
   321  	return rs
   322  }
   323  
   324  type ProjectsLocationsGlobalManagedZonesService struct {
   325  	s *Service
   326  }
   327  
   328  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   329  	rs := &ProjectsLocationsOperationsService{s: s}
   330  	return rs
   331  }
   332  
   333  type ProjectsLocationsOperationsService struct {
   334  	s *Service
   335  }
   336  
   337  func NewProjectsLocationsProvidersService(s *Service) *ProjectsLocationsProvidersService {
   338  	rs := &ProjectsLocationsProvidersService{s: s}
   339  	rs.Connectors = NewProjectsLocationsProvidersConnectorsService(s)
   340  	return rs
   341  }
   342  
   343  type ProjectsLocationsProvidersService struct {
   344  	s *Service
   345  
   346  	Connectors *ProjectsLocationsProvidersConnectorsService
   347  }
   348  
   349  func NewProjectsLocationsProvidersConnectorsService(s *Service) *ProjectsLocationsProvidersConnectorsService {
   350  	rs := &ProjectsLocationsProvidersConnectorsService{s: s}
   351  	rs.Versions = NewProjectsLocationsProvidersConnectorsVersionsService(s)
   352  	return rs
   353  }
   354  
   355  type ProjectsLocationsProvidersConnectorsService struct {
   356  	s *Service
   357  
   358  	Versions *ProjectsLocationsProvidersConnectorsVersionsService
   359  }
   360  
   361  func NewProjectsLocationsProvidersConnectorsVersionsService(s *Service) *ProjectsLocationsProvidersConnectorsVersionsService {
   362  	rs := &ProjectsLocationsProvidersConnectorsVersionsService{s: s}
   363  	rs.Eventtypes = NewProjectsLocationsProvidersConnectorsVersionsEventtypesService(s)
   364  	return rs
   365  }
   366  
   367  type ProjectsLocationsProvidersConnectorsVersionsService struct {
   368  	s *Service
   369  
   370  	Eventtypes *ProjectsLocationsProvidersConnectorsVersionsEventtypesService
   371  }
   372  
   373  func NewProjectsLocationsProvidersConnectorsVersionsEventtypesService(s *Service) *ProjectsLocationsProvidersConnectorsVersionsEventtypesService {
   374  	rs := &ProjectsLocationsProvidersConnectorsVersionsEventtypesService{s: s}
   375  	return rs
   376  }
   377  
   378  type ProjectsLocationsProvidersConnectorsVersionsEventtypesService struct {
   379  	s *Service
   380  }
   381  
   382  // AuditConfig: Specifies the audit configuration for a service. The
   383  // configuration determines which permission types are logged, and what
   384  // identities, if any, are exempted from logging. An AuditConfig must have one
   385  // or more AuditLogConfigs. If there are AuditConfigs for both `allServices`
   386  // and a specific service, the union of the two AuditConfigs is used for that
   387  // service: the log_types specified in each AuditConfig are enabled, and the
   388  // exempted_members in each AuditLogConfig are exempted. Example Policy with
   389  // multiple AuditConfigs: { "audit_configs": [ { "service": "allServices",
   390  // "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
   391  // "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type":
   392  // "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com",
   393  // "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type":
   394  // "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For
   395  // sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
   396  // logging. It also exempts `jose@example.com` from DATA_READ logging, and
   397  // `aliya@example.com` from DATA_WRITE logging.
   398  type AuditConfig struct {
   399  	// AuditLogConfigs: The configuration for logging of each type of permission.
   400  	AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
   401  	// Service: Specifies a service that will be enabled for audit logging. For
   402  	// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`
   403  	// is a special value that covers all services.
   404  	Service string `json:"service,omitempty"`
   405  	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
   406  	// unconditionally include in API requests. By default, fields with empty or
   407  	// default values are omitted from API requests. See
   408  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   409  	// details.
   410  	ForceSendFields []string `json:"-"`
   411  	// NullFields is a list of field names (e.g. "AuditLogConfigs") to include in
   412  	// API requests with the JSON null value. By default, fields with empty values
   413  	// are omitted from API requests. See
   414  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   415  	NullFields []string `json:"-"`
   416  }
   417  
   418  func (s *AuditConfig) MarshalJSON() ([]byte, error) {
   419  	type NoMethod AuditConfig
   420  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   421  }
   422  
   423  // AuditLogConfig: Provides the configuration for logging a type of
   424  // permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ",
   425  // "exempted_members": [ "user:jose@example.com" ] }, { "log_type":
   426  // "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while
   427  // exempting jose@example.com from DATA_READ logging.
   428  type AuditLogConfig struct {
   429  	// ExemptedMembers: Specifies the identities that do not cause logging for this
   430  	// type of permission. Follows the same format of Binding.members.
   431  	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
   432  	// LogType: The log type that this config enables.
   433  	//
   434  	// Possible values:
   435  	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
   436  	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
   437  	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
   438  	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
   439  	LogType string `json:"logType,omitempty"`
   440  	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
   441  	// unconditionally include in API requests. By default, fields with empty or
   442  	// default values are omitted from API requests. See
   443  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   444  	// details.
   445  	ForceSendFields []string `json:"-"`
   446  	// NullFields is a list of field names (e.g. "ExemptedMembers") to include in
   447  	// API requests with the JSON null value. By default, fields with empty values
   448  	// are omitted from API requests. See
   449  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   450  	NullFields []string `json:"-"`
   451  }
   452  
   453  func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
   454  	type NoMethod AuditLogConfig
   455  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   456  }
   457  
   458  // AuthConfig: AuthConfig defines details of a authentication type.
   459  type AuthConfig struct {
   460  	// AdditionalVariables: List containing additional auth configs.
   461  	AdditionalVariables []*ConfigVariable `json:"additionalVariables,omitempty"`
   462  	// AuthKey: Identifier key for auth config
   463  	AuthKey string `json:"authKey,omitempty"`
   464  	// AuthType: The type of authentication configured.
   465  	//
   466  	// Possible values:
   467  	//   "AUTH_TYPE_UNSPECIFIED" - Authentication type not specified.
   468  	//   "USER_PASSWORD" - Username and Password Authentication.
   469  	//   "OAUTH2_JWT_BEARER" - JSON Web Token (JWT) Profile for Oauth 2.0
   470  	// Authorization Grant based authentication
   471  	//   "OAUTH2_CLIENT_CREDENTIALS" - Oauth 2.0 Client Credentials Grant
   472  	// Authentication
   473  	//   "SSH_PUBLIC_KEY" - SSH Public Key Authentication
   474  	//   "OAUTH2_AUTH_CODE_FLOW" - Oauth 2.0 Authorization Code Flow
   475  	//   "GOOGLE_AUTHENTICATION" - Google authentication
   476  	AuthType string `json:"authType,omitempty"`
   477  	// Oauth2AuthCodeFlow: Oauth2AuthCodeFlow.
   478  	Oauth2AuthCodeFlow *Oauth2AuthCodeFlow `json:"oauth2AuthCodeFlow,omitempty"`
   479  	// Oauth2ClientCredentials: Oauth2ClientCredentials.
   480  	Oauth2ClientCredentials *Oauth2ClientCredentials `json:"oauth2ClientCredentials,omitempty"`
   481  	// Oauth2JwtBearer: Oauth2JwtBearer.
   482  	Oauth2JwtBearer *Oauth2JwtBearer `json:"oauth2JwtBearer,omitempty"`
   483  	// SshPublicKey: SSH Public Key.
   484  	SshPublicKey *SshPublicKey `json:"sshPublicKey,omitempty"`
   485  	// UserPassword: UserPassword.
   486  	UserPassword *UserPassword `json:"userPassword,omitempty"`
   487  	// ForceSendFields is a list of field names (e.g. "AdditionalVariables") to
   488  	// unconditionally include in API requests. By default, fields with empty or
   489  	// default values are omitted from API requests. See
   490  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   491  	// details.
   492  	ForceSendFields []string `json:"-"`
   493  	// NullFields is a list of field names (e.g. "AdditionalVariables") to include
   494  	// in API requests with the JSON null value. By default, fields with empty
   495  	// values are omitted from API requests. See
   496  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   497  	NullFields []string `json:"-"`
   498  }
   499  
   500  func (s *AuthConfig) MarshalJSON() ([]byte, error) {
   501  	type NoMethod AuthConfig
   502  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   503  }
   504  
   505  // AuthConfigTemplate: AuthConfigTemplate defines required field over an
   506  // authentication type.
   507  type AuthConfigTemplate struct {
   508  	// AuthKey: Identifier key for auth config
   509  	AuthKey string `json:"authKey,omitempty"`
   510  	// AuthType: The type of authentication configured.
   511  	//
   512  	// Possible values:
   513  	//   "AUTH_TYPE_UNSPECIFIED" - Authentication type not specified.
   514  	//   "USER_PASSWORD" - Username and Password Authentication.
   515  	//   "OAUTH2_JWT_BEARER" - JSON Web Token (JWT) Profile for Oauth 2.0
   516  	// Authorization Grant based authentication
   517  	//   "OAUTH2_CLIENT_CREDENTIALS" - Oauth 2.0 Client Credentials Grant
   518  	// Authentication
   519  	//   "SSH_PUBLIC_KEY" - SSH Public Key Authentication
   520  	//   "OAUTH2_AUTH_CODE_FLOW" - Oauth 2.0 Authorization Code Flow
   521  	//   "GOOGLE_AUTHENTICATION" - Google authentication
   522  	AuthType string `json:"authType,omitempty"`
   523  	// ConfigVariableTemplates: Config variables to describe an `AuthConfig` for a
   524  	// `Connection`.
   525  	ConfigVariableTemplates []*ConfigVariableTemplate `json:"configVariableTemplates,omitempty"`
   526  	// Description: Connector specific description for an authentication template.
   527  	Description string `json:"description,omitempty"`
   528  	// DisplayName: Display name for authentication template.
   529  	DisplayName string `json:"displayName,omitempty"`
   530  	// ForceSendFields is a list of field names (e.g. "AuthKey") to unconditionally
   531  	// include in API requests. By default, fields with empty or default values are
   532  	// omitted from API requests. See
   533  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   534  	// details.
   535  	ForceSendFields []string `json:"-"`
   536  	// NullFields is a list of field names (e.g. "AuthKey") to include in API
   537  	// requests with the JSON null value. By default, fields with empty values are
   538  	// omitted from API requests. See
   539  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   540  	NullFields []string `json:"-"`
   541  }
   542  
   543  func (s *AuthConfigTemplate) MarshalJSON() ([]byte, error) {
   544  	type NoMethod AuthConfigTemplate
   545  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   546  }
   547  
   548  // AuthorizationCodeLink: This configuration captures the details required to
   549  // render an authorization link for the OAuth Authorization Code Flow.
   550  type AuthorizationCodeLink struct {
   551  	// ClientId: The client ID assigned to the Google Cloud Connectors OAuth app
   552  	// for the connector data source.
   553  	ClientId string `json:"clientId,omitempty"`
   554  	// EnablePkce: Whether to enable PKCE for the auth code flow.
   555  	EnablePkce bool `json:"enablePkce,omitempty"`
   556  	// Scopes: The scopes for which the user will authorize Google Cloud Connectors
   557  	// on the connector data source.
   558  	Scopes []string `json:"scopes,omitempty"`
   559  	// Uri: The base URI the user must click to trigger the authorization code
   560  	// login flow.
   561  	Uri string `json:"uri,omitempty"`
   562  	// ForceSendFields is a list of field names (e.g. "ClientId") to
   563  	// unconditionally include in API requests. By default, fields with empty or
   564  	// default values are omitted from API requests. See
   565  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   566  	// details.
   567  	ForceSendFields []string `json:"-"`
   568  	// NullFields is a list of field names (e.g. "ClientId") to include in API
   569  	// requests with the JSON null value. By default, fields with empty values are
   570  	// omitted from API requests. See
   571  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   572  	NullFields []string `json:"-"`
   573  }
   574  
   575  func (s *AuthorizationCodeLink) MarshalJSON() ([]byte, error) {
   576  	type NoMethod AuthorizationCodeLink
   577  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   578  }
   579  
   580  // BillingConfig: Billing config for the connection.
   581  type BillingConfig struct {
   582  	// BillingCategory: Output only. Billing category for the connector.
   583  	//
   584  	// Possible values:
   585  	//   "BILLING_CATEGORY_UNSPECIFIED" - Billing category is not specified.
   586  	//   "GCP_AND_TECHNICAL_CONNECTOR" - GCP/Technical connector.
   587  	//   "NON_GCP_CONNECTOR" - Non-GCP connector.
   588  	BillingCategory string `json:"billingCategory,omitempty"`
   589  	// ForceSendFields is a list of field names (e.g. "BillingCategory") to
   590  	// unconditionally include in API requests. By default, fields with empty or
   591  	// default values are omitted from API requests. See
   592  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   593  	// details.
   594  	ForceSendFields []string `json:"-"`
   595  	// NullFields is a list of field names (e.g. "BillingCategory") to include in
   596  	// API requests with the JSON null value. By default, fields with empty values
   597  	// are omitted from API requests. See
   598  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   599  	NullFields []string `json:"-"`
   600  }
   601  
   602  func (s *BillingConfig) MarshalJSON() ([]byte, error) {
   603  	type NoMethod BillingConfig
   604  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   605  }
   606  
   607  // Binding: Associates `members`, or principals, with a `role`.
   608  type Binding struct {
   609  	// Condition: The condition that is associated with this binding. If the
   610  	// condition evaluates to `true`, then this binding applies to the current
   611  	// request. If the condition evaluates to `false`, then this binding does not
   612  	// apply to the current request. However, a different role binding might grant
   613  	// the same role to one or more of the principals in this binding. To learn
   614  	// which resources support conditions in their IAM policies, see the IAM
   615  	// documentation
   616  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
   617  	Condition *Expr `json:"condition,omitempty"`
   618  	// Members: Specifies the principals requesting access for a Google Cloud
   619  	// resource. `members` can have the following values: * `allUsers`: A special
   620  	// identifier that represents anyone who is on the internet; with or without a
   621  	// Google account. * `allAuthenticatedUsers`: A special identifier that
   622  	// represents anyone who is authenticated with a Google account or a service
   623  	// account. Does not include identities that come from external identity
   624  	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
   625  	// address that represents a specific Google account. For example,
   626  	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
   627  	// represents a Google service account. For example,
   628  	// `my-other-app@appspot.gserviceaccount.com`. *
   629  	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
   630  	// identifier for a Kubernetes service account
   631  	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
   632  	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
   633  	// `group:{emailid}`: An email address that represents a Google group. For
   634  	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
   635  	// (primary) that represents all the users of that domain. For example,
   636  	// `google.com` or `example.com`. *
   637  	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
   638  	// ject/{subject_attribute_value}`: A single identity in a workforce identity
   639  	// pool. *
   640  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   641  	// group/{group_id}`: All workforce identities in a group. *
   642  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   643  	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
   644  	// a specific attribute value. *
   645  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   646  	// *`: All identities in a workforce identity pool. *
   647  	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
   648  	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
   649  	// identity in a workload identity pool. *
   650  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   651  	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
   652  	// group. *
   653  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   654  	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
   655  	// `: All identities in a workload identity pool with a certain attribute. *
   656  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   657  	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
   658  	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
   659  	// unique identifier) representing a user that has been recently deleted. For
   660  	// example, `alice@example.com?uid=123456789012345678901`. If the user is
   661  	// recovered, this value reverts to `user:{emailid}` and the recovered user
   662  	// retains the role in the binding. *
   663  	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
   664  	// unique identifier) representing a service account that has been recently
   665  	// deleted. For example,
   666  	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
   667  	// service account is undeleted, this value reverts to
   668  	// `serviceAccount:{emailid}` and the undeleted service account retains the
   669  	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
   670  	// address (plus unique identifier) representing a Google group that has been
   671  	// recently deleted. For example,
   672  	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
   673  	// this value reverts to `group:{emailid}` and the recovered group retains the
   674  	// role in the binding. *
   675  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
   676  	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
   677  	// workforce identity pool. For example,
   678  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
   679  	// ol-id/subject/my-subject-attribute-value`.
   680  	Members []string `json:"members,omitempty"`
   681  	// Role: Role that is assigned to the list of `members`, or principals. For
   682  	// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview
   683  	// of the IAM roles and permissions, see the IAM documentation
   684  	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
   685  	// available pre-defined roles, see here
   686  	// (https://cloud.google.com/iam/docs/understanding-roles).
   687  	Role string `json:"role,omitempty"`
   688  	// ForceSendFields is a list of field names (e.g. "Condition") to
   689  	// unconditionally include in API requests. By default, fields with empty or
   690  	// default values are omitted from API requests. See
   691  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   692  	// details.
   693  	ForceSendFields []string `json:"-"`
   694  	// NullFields is a list of field names (e.g. "Condition") to include in API
   695  	// requests with the JSON null value. By default, fields with empty values are
   696  	// omitted from API requests. See
   697  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   698  	NullFields []string `json:"-"`
   699  }
   700  
   701  func (s *Binding) MarshalJSON() ([]byte, error) {
   702  	type NoMethod Binding
   703  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   704  }
   705  
   706  // CancelOperationRequest: The request message for Operations.CancelOperation.
   707  type CancelOperationRequest struct {
   708  }
   709  
   710  // ConfigVariable: ConfigVariable represents a configuration variable present
   711  // in a Connection. or AuthConfig.
   712  type ConfigVariable struct {
   713  	// BoolValue: Value is a bool.
   714  	BoolValue bool `json:"boolValue,omitempty"`
   715  	// EncryptionKeyValue: Value is a Encryption Key.
   716  	EncryptionKeyValue *EncryptionKey `json:"encryptionKeyValue,omitempty"`
   717  	// IntValue: Value is an integer
   718  	IntValue int64 `json:"intValue,omitempty,string"`
   719  	// Key: Key of the config variable.
   720  	Key string `json:"key,omitempty"`
   721  	// SecretValue: Value is a secret.
   722  	SecretValue *Secret `json:"secretValue,omitempty"`
   723  	// StringValue: Value is a string.
   724  	StringValue string `json:"stringValue,omitempty"`
   725  	// ForceSendFields is a list of field names (e.g. "BoolValue") to
   726  	// unconditionally include in API requests. By default, fields with empty or
   727  	// default values are omitted from API requests. See
   728  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   729  	// details.
   730  	ForceSendFields []string `json:"-"`
   731  	// NullFields is a list of field names (e.g. "BoolValue") to include in API
   732  	// requests with the JSON null value. By default, fields with empty values are
   733  	// omitted from API requests. See
   734  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   735  	NullFields []string `json:"-"`
   736  }
   737  
   738  func (s *ConfigVariable) MarshalJSON() ([]byte, error) {
   739  	type NoMethod ConfigVariable
   740  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   741  }
   742  
   743  // ConfigVariableTemplate: ConfigVariableTemplate provides metadata about a
   744  // `ConfigVariable` that is used in a Connection.
   745  type ConfigVariableTemplate struct {
   746  	// AuthorizationCodeLink: Authorization code link options. To be populated if
   747  	// `ValueType` is `AUTHORIZATION_CODE`
   748  	AuthorizationCodeLink *AuthorizationCodeLink `json:"authorizationCodeLink,omitempty"`
   749  	// Description: Description.
   750  	Description string `json:"description,omitempty"`
   751  	// DisplayName: Display name of the parameter.
   752  	DisplayName string `json:"displayName,omitempty"`
   753  	// EnumOptions: Enum options. To be populated if `ValueType` is `ENUM`
   754  	EnumOptions []*EnumOption `json:"enumOptions,omitempty"`
   755  	// EnumSource: Optional. enum source denotes the source of api to fill the enum
   756  	// options
   757  	//
   758  	// Possible values:
   759  	//   "ENUM_SOURCE_UNSPECIFIED" - Api type unspecified.
   760  	//   "EVENT_TYPES_API" - list event types.
   761  	EnumSource string `json:"enumSource,omitempty"`
   762  	// IsAdvanced: Indicates if current template is part of advanced settings
   763  	IsAdvanced bool `json:"isAdvanced,omitempty"`
   764  	// Key: Key of the config variable.
   765  	Key string `json:"key,omitempty"`
   766  	// LocationType: Optional. Location Tyep denotes where this value should be
   767  	// sent in BYOC connections.
   768  	//
   769  	// Possible values:
   770  	//   "LOCATION_TYPE_UNSPECIFIED" - Location type unspecified.
   771  	//   "HEADER" - Request header.
   772  	//   "PAYLOAD" - Request Payload.
   773  	//   "QUERY_PARAM" - Request query param.
   774  	//   "PATH_PARAM" - Request path param.
   775  	LocationType string `json:"locationType,omitempty"`
   776  	// Required: Flag represents that this `ConfigVariable` must be provided for a
   777  	// connection.
   778  	Required bool `json:"required,omitempty"`
   779  	// RequiredCondition: Condition under which a field would be required. The
   780  	// condition can be represented in the form of a logical expression.
   781  	RequiredCondition *LogicalExpression `json:"requiredCondition,omitempty"`
   782  	// RoleGrant: Role grant configuration for the config variable.
   783  	RoleGrant *RoleGrant `json:"roleGrant,omitempty"`
   784  	// State: State of the config variable.
   785  	//
   786  	// Possible values:
   787  	//   "STATE_UNSPECIFIED" - Status is unspecified.
   788  	//   "ACTIVE" - Config variable is active
   789  	//   "DEPRECATED" - Config variable is deprecated.
   790  	State string `json:"state,omitempty"`
   791  	// ValidationRegex: Regular expression in RE2 syntax used for validating the
   792  	// `value` of a `ConfigVariable`.
   793  	ValidationRegex string `json:"validationRegex,omitempty"`
   794  	// ValueType: Type of the parameter: string, int, bool etc. consider custom
   795  	// type for the benefit for the validation.
   796  	//
   797  	// Possible values:
   798  	//   "VALUE_TYPE_UNSPECIFIED" - Value type is not specified.
   799  	//   "STRING" - Value type is string.
   800  	//   "INT" - Value type is integer.
   801  	//   "BOOL" - Value type is boolean.
   802  	//   "SECRET" - Value type is secret.
   803  	//   "ENUM" - Value type is enum.
   804  	//   "AUTHORIZATION_CODE" - Value type is authorization code.
   805  	//   "ENCRYPTION_KEY" - Encryption Key.
   806  	ValueType string `json:"valueType,omitempty"`
   807  	// ForceSendFields is a list of field names (e.g. "AuthorizationCodeLink") to
   808  	// unconditionally include in API requests. By default, fields with empty or
   809  	// default values are omitted from API requests. See
   810  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   811  	// details.
   812  	ForceSendFields []string `json:"-"`
   813  	// NullFields is a list of field names (e.g. "AuthorizationCodeLink") to
   814  	// include in API requests with the JSON null value. By default, fields with
   815  	// empty values are omitted from API requests. See
   816  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   817  	NullFields []string `json:"-"`
   818  }
   819  
   820  func (s *ConfigVariableTemplate) MarshalJSON() ([]byte, error) {
   821  	type NoMethod ConfigVariableTemplate
   822  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   823  }
   824  
   825  // Connection: Connection represents an instance of connector.
   826  type Connection struct {
   827  	// AuthConfig: Optional. Configuration for establishing the connection's
   828  	// authentication with an external system.
   829  	AuthConfig *AuthConfig `json:"authConfig,omitempty"`
   830  	// BillingConfig: Output only. Billing config for the connection.
   831  	BillingConfig *BillingConfig `json:"billingConfig,omitempty"`
   832  	// ConfigVariables: Optional. Configuration for configuring the connection with
   833  	// an external system.
   834  	ConfigVariables []*ConfigVariable `json:"configVariables,omitempty"`
   835  	// ConnectionRevision: Output only. Connection revision. This field is only
   836  	// updated when the connection is created or updated by User.
   837  	ConnectionRevision int64 `json:"connectionRevision,omitempty,string"`
   838  	// ConnectorVersion: Required. Connector version on which the connection is
   839  	// created. The format is:
   840  	// projects/*/locations/*/providers/*/connectors/*/versions/* Only global
   841  	// location is supported for ConnectorVersion resource.
   842  	ConnectorVersion string `json:"connectorVersion,omitempty"`
   843  	// ConnectorVersionInfraConfig: Output only. Infra configs supported by
   844  	// Connector Version.
   845  	ConnectorVersionInfraConfig *ConnectorVersionInfraConfig `json:"connectorVersionInfraConfig,omitempty"`
   846  	// ConnectorVersionLaunchStage: Output only. Flag to mark the version
   847  	// indicating the launch stage.
   848  	//
   849  	// Possible values:
   850  	//   "LAUNCH_STAGE_UNSPECIFIED" - LAUNCH_STAGE_UNSPECIFIED.
   851  	//   "PREVIEW" - PREVIEW.
   852  	//   "GA" - GA.
   853  	//   "DEPRECATED" - DEPRECATED.
   854  	//   "PRIVATE_PREVIEW" - PRIVATE_PREVIEW.
   855  	ConnectorVersionLaunchStage string `json:"connectorVersionLaunchStage,omitempty"`
   856  	// CreateTime: Output only. Created time.
   857  	CreateTime string `json:"createTime,omitempty"`
   858  	// Description: Optional. Description of the resource.
   859  	Description string `json:"description,omitempty"`
   860  	// DestinationConfigs: Optional. Configuration of the Connector's destination.
   861  	// Only accepted for Connectors that accepts user defined destination(s).
   862  	DestinationConfigs []*DestinationConfig `json:"destinationConfigs,omitempty"`
   863  	// EnvoyImageLocation: Output only. GCR location where the envoy image is
   864  	// stored. formatted like: gcr.io/{bucketName}/{imageName}
   865  	EnvoyImageLocation string `json:"envoyImageLocation,omitempty"`
   866  	// EventingConfig: Optional. Eventing config of a connection
   867  	EventingConfig *EventingConfig `json:"eventingConfig,omitempty"`
   868  	// EventingEnablementType: Optional. Eventing enablement type. Will be nil if
   869  	// eventing is not enabled.
   870  	//
   871  	// Possible values:
   872  	//   "EVENTING_ENABLEMENT_TYPE_UNSPECIFIED" - Eventing Enablement Type
   873  	// Unspecifeied.
   874  	//   "EVENTING_AND_CONNECTION" - Both connection and eventing.
   875  	//   "ONLY_EVENTING" - Only Eventing.
   876  	EventingEnablementType string `json:"eventingEnablementType,omitempty"`
   877  	// EventingRuntimeData: Output only. Eventing Runtime Data.
   878  	EventingRuntimeData *EventingRuntimeData `json:"eventingRuntimeData,omitempty"`
   879  	// ImageLocation: Output only. GCR location where the runtime image is stored.
   880  	// formatted like: gcr.io/{bucketName}/{imageName}
   881  	ImageLocation string `json:"imageLocation,omitempty"`
   882  	// IsTrustedTester: Output only. Is trusted tester program enabled for the
   883  	// project.
   884  	IsTrustedTester bool `json:"isTrustedTester,omitempty"`
   885  	// Labels: Optional. Resource labels to represent user-provided metadata. Refer
   886  	// to cloud documentation on labels for more details.
   887  	// https://cloud.google.com/compute/docs/labeling-resources
   888  	Labels map[string]string `json:"labels,omitempty"`
   889  	// LockConfig: Optional. Configuration that indicates whether or not the
   890  	// Connection can be edited.
   891  	LockConfig *LockConfig `json:"lockConfig,omitempty"`
   892  	// LogConfig: Optional. Log configuration for the connection.
   893  	LogConfig *ConnectorsLogConfig `json:"logConfig,omitempty"`
   894  	// Name: Output only. Resource name of the Connection. Format:
   895  	// projects/{project}/locations/{location}/connections/{connection}
   896  	Name string `json:"name,omitempty"`
   897  	// NodeConfig: Optional. Node configuration for the connection.
   898  	NodeConfig *NodeConfig `json:"nodeConfig,omitempty"`
   899  	// ServiceAccount: Optional. Service account needed for runtime plane to access
   900  	// Google Cloud resources.
   901  	ServiceAccount string `json:"serviceAccount,omitempty"`
   902  	// ServiceDirectory: Output only. The name of the Service Directory service
   903  	// name. Used for Private Harpoon to resolve the ILB address. e.g.
   904  	// "projects/cloud-connectors-e2e-testing/locations/us-central1/namespaces/istio
   905  	// -system/services/istio-ingressgateway-connectors"
   906  	ServiceDirectory string `json:"serviceDirectory,omitempty"`
   907  	// SslConfig: Optional. Ssl config of a connection
   908  	SslConfig *SslConfig `json:"sslConfig,omitempty"`
   909  	// Status: Output only. Current status of the connection.
   910  	Status *ConnectionStatus `json:"status,omitempty"`
   911  	// SubscriptionType: Output only. This subscription type enum states the
   912  	// subscription type of the project.
   913  	//
   914  	// Possible values:
   915  	//   "SUBSCRIPTION_TYPE_UNSPECIFIED" - Unspecified subscription type.
   916  	//   "PAY_G" - PayG subscription.
   917  	//   "PAID" - Paid Subscription.
   918  	SubscriptionType string `json:"subscriptionType,omitempty"`
   919  	// Suspended: Optional. Suspended indicates if a user has suspended a
   920  	// connection or not.
   921  	Suspended bool `json:"suspended,omitempty"`
   922  	// UpdateTime: Output only. Updated time.
   923  	UpdateTime string `json:"updateTime,omitempty"`
   924  
   925  	// ServerResponse contains the HTTP response code and headers from the server.
   926  	googleapi.ServerResponse `json:"-"`
   927  	// ForceSendFields is a list of field names (e.g. "AuthConfig") to
   928  	// unconditionally include in API requests. By default, fields with empty or
   929  	// default values are omitted from API requests. See
   930  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   931  	// details.
   932  	ForceSendFields []string `json:"-"`
   933  	// NullFields is a list of field names (e.g. "AuthConfig") to include in API
   934  	// requests with the JSON null value. By default, fields with empty values are
   935  	// omitted from API requests. See
   936  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   937  	NullFields []string `json:"-"`
   938  }
   939  
   940  func (s *Connection) MarshalJSON() ([]byte, error) {
   941  	type NoMethod Connection
   942  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   943  }
   944  
   945  // ConnectionSchemaMetadata: ConnectionSchemaMetadata is the singleton resource
   946  // of each connection. It includes the entity and action names of runtime
   947  // resources exposed by a connection backend.
   948  type ConnectionSchemaMetadata struct {
   949  	// Actions: Output only. List of actions.
   950  	Actions []string `json:"actions,omitempty"`
   951  	// Entities: Output only. List of entity names.
   952  	Entities []string `json:"entities,omitempty"`
   953  	// ErrorMessage: Error message for users.
   954  	ErrorMessage string `json:"errorMessage,omitempty"`
   955  	// Name: Output only. Resource name. Format:
   956  	// projects/{project}/locations/{location}/connections/{connection}/connectionSc
   957  	// hemaMetadata
   958  	Name string `json:"name,omitempty"`
   959  	// RefreshTime: Output only. Timestamp when the connection runtime schema
   960  	// refresh was triggered.
   961  	RefreshTime string `json:"refreshTime,omitempty"`
   962  	// State: Output only. The current state of runtime schema.
   963  	//
   964  	// Possible values:
   965  	//   "STATE_UNSPECIFIED" - Default state.
   966  	//   "REFRESHING" - Schema refresh is in progress.
   967  	//   "UPDATED" - Schema has been updated.
   968  	//   "REFRESHING_SCHEMA_METADATA" - Schema refresh for metadata is in progress.
   969  	//   "UPDATED_SCHEMA_METADATA" - Schema metadata has been updated.
   970  	//   "REFRESH_SCHEMA_METADATA_FAILED" - Failed to refresh schema metadata
   971  	//   "REFRESHING_FULL_SCHEMA" - Triggered full schema refresh
   972  	//   "UPDATED_FULL_SCHEMA" - Updated full schema
   973  	State string `json:"state,omitempty"`
   974  	// UpdateTime: Output only. Timestamp when the connection runtime schema was
   975  	// updated.
   976  	UpdateTime string `json:"updateTime,omitempty"`
   977  
   978  	// ServerResponse contains the HTTP response code and headers from the server.
   979  	googleapi.ServerResponse `json:"-"`
   980  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
   981  	// include in API requests. By default, fields with empty or default values are
   982  	// omitted from API requests. See
   983  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   984  	// details.
   985  	ForceSendFields []string `json:"-"`
   986  	// NullFields is a list of field names (e.g. "Actions") to include in API
   987  	// requests with the JSON null value. By default, fields with empty values are
   988  	// omitted from API requests. See
   989  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   990  	NullFields []string `json:"-"`
   991  }
   992  
   993  func (s *ConnectionSchemaMetadata) MarshalJSON() ([]byte, error) {
   994  	type NoMethod ConnectionSchemaMetadata
   995  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   996  }
   997  
   998  // ConnectionStatus: ConnectionStatus indicates the state of the connection.
   999  type ConnectionStatus struct {
  1000  	// Description: Description.
  1001  	Description string `json:"description,omitempty"`
  1002  	// State: State.
  1003  	//
  1004  	// Possible values:
  1005  	//   "STATE_UNSPECIFIED" - Connection does not have a state yet.
  1006  	//   "CREATING" - Connection is being created.
  1007  	//   "ACTIVE" - Connection is running and ready for requests.
  1008  	//   "INACTIVE" - Connection is stopped.
  1009  	//   "DELETING" - Connection is being deleted.
  1010  	//   "UPDATING" - Connection is being updated.
  1011  	//   "ERROR" - Connection is not running due to an error.
  1012  	//   "AUTHORIZATION_REQUIRED" - Connection is not running because the
  1013  	// authorization configuration is not complete.
  1014  	State string `json:"state,omitempty"`
  1015  	// Status: Status provides detailed information for the state.
  1016  	Status string `json:"status,omitempty"`
  1017  	// ForceSendFields is a list of field names (e.g. "Description") to
  1018  	// unconditionally include in API requests. By default, fields with empty or
  1019  	// default values are omitted from API requests. See
  1020  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1021  	// details.
  1022  	ForceSendFields []string `json:"-"`
  1023  	// NullFields is a list of field names (e.g. "Description") to include in API
  1024  	// requests with the JSON null value. By default, fields with empty values are
  1025  	// omitted from API requests. See
  1026  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1027  	NullFields []string `json:"-"`
  1028  }
  1029  
  1030  func (s *ConnectionStatus) MarshalJSON() ([]byte, error) {
  1031  	type NoMethod ConnectionStatus
  1032  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1033  }
  1034  
  1035  // Connector: Connectors indicates a specific connector type, e.x. Salesforce,
  1036  // SAP etc.
  1037  type Connector struct {
  1038  	// CreateTime: Output only. Created time.
  1039  	CreateTime string `json:"createTime,omitempty"`
  1040  	// Description: Output only. Description of the resource.
  1041  	Description string `json:"description,omitempty"`
  1042  	// DisplayName: Output only. Display name.
  1043  	DisplayName string `json:"displayName,omitempty"`
  1044  	// DocumentationUri: Output only. Link to documentation page.
  1045  	DocumentationUri string `json:"documentationUri,omitempty"`
  1046  	// EventingDetails: Output only. Eventing details. Will be null if eventing is
  1047  	// not supported.
  1048  	EventingDetails *EventingDetails `json:"eventingDetails,omitempty"`
  1049  	// ExternalUri: Output only. Link to external page.
  1050  	ExternalUri string `json:"externalUri,omitempty"`
  1051  	// Labels: Output only. Resource labels to represent user-provided metadata.
  1052  	// Refer to cloud documentation on labels for more details.
  1053  	// https://cloud.google.com/compute/docs/labeling-resources
  1054  	Labels map[string]string `json:"labels,omitempty"`
  1055  	// LaunchStage: Output only. Flag to mark the version indicating the launch
  1056  	// stage.
  1057  	//
  1058  	// Possible values:
  1059  	//   "LAUNCH_STAGE_UNSPECIFIED" - LAUNCH_STAGE_UNSPECIFIED.
  1060  	//   "PREVIEW" - PREVIEW.
  1061  	//   "GA" - GA.
  1062  	//   "DEPRECATED" - DEPRECATED.
  1063  	//   "PRIVATE_PREVIEW" - PRIVATE_PREVIEW.
  1064  	LaunchStage string `json:"launchStage,omitempty"`
  1065  	// Name: Output only. Resource name of the Connector. Format:
  1066  	// projects/{project}/locations/{location}/providers/{provider}/connectors/{conn
  1067  	// ector} Only global location is supported for Connector resource.
  1068  	Name string `json:"name,omitempty"`
  1069  	// UpdateTime: Output only. Updated time.
  1070  	UpdateTime string `json:"updateTime,omitempty"`
  1071  	// WebAssetsLocation: Output only. Cloud storage location of icons etc consumed
  1072  	// by UI.
  1073  	WebAssetsLocation string `json:"webAssetsLocation,omitempty"`
  1074  
  1075  	// ServerResponse contains the HTTP response code and headers from the server.
  1076  	googleapi.ServerResponse `json:"-"`
  1077  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1078  	// unconditionally include in API requests. By default, fields with empty or
  1079  	// default values are omitted from API requests. See
  1080  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1081  	// details.
  1082  	ForceSendFields []string `json:"-"`
  1083  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1084  	// requests with the JSON null value. By default, fields with empty values are
  1085  	// omitted from API requests. See
  1086  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1087  	NullFields []string `json:"-"`
  1088  }
  1089  
  1090  func (s *Connector) MarshalJSON() ([]byte, error) {
  1091  	type NoMethod Connector
  1092  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1093  }
  1094  
  1095  // ConnectorInfraConfig: This cofiguration provides infra configs like rate
  1096  // limit threshold which need to be configurable for every connector version
  1097  type ConnectorInfraConfig struct {
  1098  	// ConnectionRatelimitWindowSeconds: The window used for ratelimiting runtime
  1099  	// requests to connections.
  1100  	ConnectionRatelimitWindowSeconds int64 `json:"connectionRatelimitWindowSeconds,omitempty,string"`
  1101  	// DeploymentModel: Indicate whether connector is deployed on GKE/CloudRun
  1102  	//
  1103  	// Possible values:
  1104  	//   "DEPLOYMENT_MODEL_UNSPECIFIED" - Deployment model is not specified.
  1105  	//   "GKE_MST" - Default model gke mst.
  1106  	//   "CLOUD_RUN_MST" - Cloud run mst.
  1107  	DeploymentModel string `json:"deploymentModel,omitempty"`
  1108  	// HpaConfig: HPA autoscaling config.
  1109  	HpaConfig *HPAConfig `json:"hpaConfig,omitempty"`
  1110  	// InternalclientRatelimitThreshold: Max QPS supported for internal requests
  1111  	// originating from Connd.
  1112  	InternalclientRatelimitThreshold int64 `json:"internalclientRatelimitThreshold,omitempty,string"`
  1113  	// RatelimitThreshold: Max QPS supported by the connector version before
  1114  	// throttling of requests.
  1115  	RatelimitThreshold int64 `json:"ratelimitThreshold,omitempty,string"`
  1116  	// ResourceLimits: System resource limits.
  1117  	ResourceLimits *ResourceLimits `json:"resourceLimits,omitempty"`
  1118  	// ResourceRequests: System resource requests.
  1119  	ResourceRequests *ResourceRequests `json:"resourceRequests,omitempty"`
  1120  	// SharedDeployment: The name of shared connector deployment.
  1121  	SharedDeployment string `json:"sharedDeployment,omitempty"`
  1122  	// ForceSendFields is a list of field names (e.g.
  1123  	// "ConnectionRatelimitWindowSeconds") to unconditionally include in API
  1124  	// requests. By default, fields with empty or default values are omitted from
  1125  	// API requests. See
  1126  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1127  	// details.
  1128  	ForceSendFields []string `json:"-"`
  1129  	// NullFields is a list of field names (e.g.
  1130  	// "ConnectionRatelimitWindowSeconds") to include in API requests with the JSON
  1131  	// null value. By default, fields with empty values are omitted from API
  1132  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
  1133  	// more details.
  1134  	NullFields []string `json:"-"`
  1135  }
  1136  
  1137  func (s *ConnectorInfraConfig) MarshalJSON() ([]byte, error) {
  1138  	type NoMethod ConnectorInfraConfig
  1139  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1140  }
  1141  
  1142  // ConnectorVersion: ConnectorVersion indicates a specific version of a
  1143  // connector.
  1144  type ConnectorVersion struct {
  1145  	// AuthConfigTemplates: Output only. List of auth configs supported by the
  1146  	// Connector Version.
  1147  	AuthConfigTemplates []*AuthConfigTemplate `json:"authConfigTemplates,omitempty"`
  1148  	// AuthOverrideEnabled: Output only. Flag to mark the dynamic auth override.
  1149  	AuthOverrideEnabled bool `json:"authOverrideEnabled,omitempty"`
  1150  	// ConfigVariableTemplates: Output only. List of config variables needed to
  1151  	// create a connection.
  1152  	ConfigVariableTemplates []*ConfigVariableTemplate `json:"configVariableTemplates,omitempty"`
  1153  	// ConnectorInfraConfig: Output only. Infra configs supported by Connector.
  1154  	ConnectorInfraConfig *ConnectorInfraConfig `json:"connectorInfraConfig,omitempty"`
  1155  	// CreateTime: Output only. Created time.
  1156  	CreateTime string `json:"createTime,omitempty"`
  1157  	// DestinationConfigTemplates: Output only. List of destination configs needed
  1158  	// to create a connection.
  1159  	DestinationConfigTemplates []*DestinationConfigTemplate `json:"destinationConfigTemplates,omitempty"`
  1160  	// DisplayName: Output only. Display name.
  1161  	DisplayName string `json:"displayName,omitempty"`
  1162  	// EgressControlConfig: Output only. Configuration for Egress Control.
  1163  	EgressControlConfig *EgressControlConfig `json:"egressControlConfig,omitempty"`
  1164  	// EventingConfigTemplate: Output only. Eventing configuration supported by the
  1165  	// Connector.
  1166  	EventingConfigTemplate *EventingConfigTemplate `json:"eventingConfigTemplate,omitempty"`
  1167  	// Labels: Output only. Resource labels to represent user-provided metadata.
  1168  	// Refer to cloud documentation on labels for more details.
  1169  	// https://cloud.google.com/compute/docs/labeling-resources
  1170  	Labels map[string]string `json:"labels,omitempty"`
  1171  	// LaunchStage: Output only. Flag to mark the version indicating the launch
  1172  	// stage.
  1173  	//
  1174  	// Possible values:
  1175  	//   "LAUNCH_STAGE_UNSPECIFIED" - LAUNCH_STAGE_UNSPECIFIED.
  1176  	//   "PREVIEW" - PREVIEW.
  1177  	//   "GA" - GA.
  1178  	//   "DEPRECATED" - DEPRECATED.
  1179  	//   "PRIVATE_PREVIEW" - PRIVATE_PREVIEW.
  1180  	LaunchStage string `json:"launchStage,omitempty"`
  1181  	// Name: Output only. Resource name of the Version. Format:
  1182  	// projects/{project}/locations/{location}/providers/{provider}/connectors/{conn
  1183  	// ector}/versions/{version} Only global location is supported for Connector
  1184  	// resource.
  1185  	Name string `json:"name,omitempty"`
  1186  	// ReleaseVersion: Output only. ReleaseVersion of the connector, for example:
  1187  	// "1.0.1-alpha".
  1188  	ReleaseVersion string `json:"releaseVersion,omitempty"`
  1189  	// RoleGrant: Output only. Role grant configuration for this config variable.
  1190  	// It will be DEPRECATED soon.
  1191  	RoleGrant *RoleGrant `json:"roleGrant,omitempty"`
  1192  	// RoleGrants: Output only. Role grant configurations for this connector
  1193  	// version.
  1194  	RoleGrants []*RoleGrant `json:"roleGrants,omitempty"`
  1195  	// SchemaRefreshConfig: Connection Schema Refresh Config
  1196  	SchemaRefreshConfig *SchemaRefreshConfig `json:"schemaRefreshConfig,omitempty"`
  1197  	// SslConfigTemplate: Output only. Ssl configuration supported by the
  1198  	// Connector.
  1199  	SslConfigTemplate *SslConfigTemplate `json:"sslConfigTemplate,omitempty"`
  1200  	// SupportedRuntimeFeatures: Output only. Information about the runtime
  1201  	// features supported by the Connector.
  1202  	SupportedRuntimeFeatures *SupportedRuntimeFeatures `json:"supportedRuntimeFeatures,omitempty"`
  1203  	// UnsupportedConnectionTypes: Output only. Unsupported connection types.
  1204  	//
  1205  	// Possible values:
  1206  	//   "CONNECTION_TYPE_UNSPECIFIED" - Connection type is unspecified.
  1207  	//   "CONNECTION_WITH_EVENTING" - Connection with eventing.
  1208  	//   "ONLY_CONNECTION" - Only connection.
  1209  	//   "ONLY_EVENTING" - Only eventing.
  1210  	UnsupportedConnectionTypes []string `json:"unsupportedConnectionTypes,omitempty"`
  1211  	// UpdateTime: Output only. Updated time.
  1212  	UpdateTime string `json:"updateTime,omitempty"`
  1213  
  1214  	// ServerResponse contains the HTTP response code and headers from the server.
  1215  	googleapi.ServerResponse `json:"-"`
  1216  	// ForceSendFields is a list of field names (e.g. "AuthConfigTemplates") to
  1217  	// unconditionally include in API requests. By default, fields with empty or
  1218  	// default values are omitted from API requests. See
  1219  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1220  	// details.
  1221  	ForceSendFields []string `json:"-"`
  1222  	// NullFields is a list of field names (e.g. "AuthConfigTemplates") to include
  1223  	// in API requests with the JSON null value. By default, fields with empty
  1224  	// values are omitted from API requests. See
  1225  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1226  	NullFields []string `json:"-"`
  1227  }
  1228  
  1229  func (s *ConnectorVersion) MarshalJSON() ([]byte, error) {
  1230  	type NoMethod ConnectorVersion
  1231  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1232  }
  1233  
  1234  // ConnectorVersionInfraConfig: This cofiguration provides infra configs like
  1235  // rate limit threshold which need to be configurable for every connector
  1236  // version
  1237  type ConnectorVersionInfraConfig struct {
  1238  	// ConnectionRatelimitWindowSeconds: Output only. The window used for
  1239  	// ratelimiting runtime requests to connections.
  1240  	ConnectionRatelimitWindowSeconds int64 `json:"connectionRatelimitWindowSeconds,omitempty,string"`
  1241  	// DeploymentModel: Optional. Indicates whether connector is deployed on
  1242  	// GKE/CloudRun
  1243  	//
  1244  	// Possible values:
  1245  	//   "DEPLOYMENT_MODEL_UNSPECIFIED" - Deployment model is not specified.
  1246  	//   "GKE_MST" - Default model gke mst.
  1247  	//   "CLOUD_RUN_MST" - Cloud run mst.
  1248  	DeploymentModel string `json:"deploymentModel,omitempty"`
  1249  	// HpaConfig: Output only. HPA autoscaling config.
  1250  	HpaConfig *HPAConfig `json:"hpaConfig,omitempty"`
  1251  	// InternalclientRatelimitThreshold: Output only. Max QPS supported for
  1252  	// internal requests originating from Connd.
  1253  	InternalclientRatelimitThreshold int64 `json:"internalclientRatelimitThreshold,omitempty,string"`
  1254  	// RatelimitThreshold: Output only. Max QPS supported by the connector version
  1255  	// before throttling of requests.
  1256  	RatelimitThreshold int64 `json:"ratelimitThreshold,omitempty,string"`
  1257  	// ResourceLimits: Output only. System resource limits.
  1258  	ResourceLimits *ResourceLimits `json:"resourceLimits,omitempty"`
  1259  	// ResourceRequests: Output only. System resource requests.
  1260  	ResourceRequests *ResourceRequests `json:"resourceRequests,omitempty"`
  1261  	// SharedDeployment: Output only. The name of shared connector deployment.
  1262  	SharedDeployment string `json:"sharedDeployment,omitempty"`
  1263  	// ForceSendFields is a list of field names (e.g.
  1264  	// "ConnectionRatelimitWindowSeconds") to unconditionally include in API
  1265  	// requests. By default, fields with empty or default values are omitted from
  1266  	// API requests. See
  1267  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1268  	// details.
  1269  	ForceSendFields []string `json:"-"`
  1270  	// NullFields is a list of field names (e.g.
  1271  	// "ConnectionRatelimitWindowSeconds") to include in API requests with the JSON
  1272  	// null value. By default, fields with empty values are omitted from API
  1273  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
  1274  	// more details.
  1275  	NullFields []string `json:"-"`
  1276  }
  1277  
  1278  func (s *ConnectorVersionInfraConfig) MarshalJSON() ([]byte, error) {
  1279  	type NoMethod ConnectorVersionInfraConfig
  1280  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1281  }
  1282  
  1283  // ConnectorsLogConfig: Log configuration for the connection.
  1284  type ConnectorsLogConfig struct {
  1285  	// Enabled: Enabled represents whether logging is enabled or not for a
  1286  	// connection.
  1287  	Enabled bool `json:"enabled,omitempty"`
  1288  	// Level: Optional. Log configuration level.
  1289  	//
  1290  	// Possible values:
  1291  	//   "LOG_LEVEL_UNSPECIFIED" - Log level unspecified.
  1292  	//   "ERROR" - Only error logs are enabled.
  1293  	//   "INFO" - Info and error logs are enabled.
  1294  	//   "DEBUG" - Debug and high verbosity logs are enabled.
  1295  	Level string `json:"level,omitempty"`
  1296  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  1297  	// include in API requests. By default, fields with empty or default values are
  1298  	// omitted from API requests. See
  1299  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1300  	// details.
  1301  	ForceSendFields []string `json:"-"`
  1302  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  1303  	// requests with the JSON null value. By default, fields with empty values are
  1304  	// omitted from API requests. See
  1305  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1306  	NullFields []string `json:"-"`
  1307  }
  1308  
  1309  func (s *ConnectorsLogConfig) MarshalJSON() ([]byte, error) {
  1310  	type NoMethod ConnectorsLogConfig
  1311  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1312  }
  1313  
  1314  // CustomConnector: CustomConnector represents the custom connector defined by
  1315  // the customer as part of byoc.
  1316  type CustomConnector struct {
  1317  	// ActiveConnectorVersions: Output only. Active connector versions.
  1318  	ActiveConnectorVersions []string `json:"activeConnectorVersions,omitempty"`
  1319  	// AllConnectorVersions: Output only. All connector versions.
  1320  	AllConnectorVersions []string `json:"allConnectorVersions,omitempty"`
  1321  	// CreateTime: Output only. Created time.
  1322  	CreateTime string `json:"createTime,omitempty"`
  1323  	// CustomConnectorType: Required. Type of the custom connector.
  1324  	//
  1325  	// Possible values:
  1326  	//   "CUSTOM_CONNECTOR_TYPE_UNSPECIFIED" - Connector type is not specified.
  1327  	//   "OPEN_API" - OpenAPI connector.
  1328  	//   "PROTO" - Proto connector.
  1329  	CustomConnectorType string `json:"customConnectorType,omitempty"`
  1330  	// Description: Optional. Description of the resource.
  1331  	Description string `json:"description,omitempty"`
  1332  	// DisplayName: Optional. Display name.
  1333  	DisplayName string `json:"displayName,omitempty"`
  1334  	// Labels: Optional. Resource labels to represent user-provided metadata. Refer
  1335  	// to cloud documentation on labels for more details.
  1336  	// https://cloud.google.com/compute/docs/labeling-resources
  1337  	Labels map[string]string `json:"labels,omitempty"`
  1338  	// Logo: Optional. Logo of the resource.
  1339  	Logo string `json:"logo,omitempty"`
  1340  	// Name: Identifier. Resource name of the CustomConnector. Format:
  1341  	// projects/{project}/locations/{location}/customConnectors/{connector}
  1342  	Name string `json:"name,omitempty"`
  1343  	// UpdateTime: Output only. Updated time.
  1344  	UpdateTime string `json:"updateTime,omitempty"`
  1345  
  1346  	// ServerResponse contains the HTTP response code and headers from the server.
  1347  	googleapi.ServerResponse `json:"-"`
  1348  	// ForceSendFields is a list of field names (e.g. "ActiveConnectorVersions") to
  1349  	// unconditionally include in API requests. By default, fields with empty or
  1350  	// default values are omitted from API requests. See
  1351  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1352  	// details.
  1353  	ForceSendFields []string `json:"-"`
  1354  	// NullFields is a list of field names (e.g. "ActiveConnectorVersions") to
  1355  	// include in API requests with the JSON null value. By default, fields with
  1356  	// empty values are omitted from API requests. See
  1357  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1358  	NullFields []string `json:"-"`
  1359  }
  1360  
  1361  func (s *CustomConnector) MarshalJSON() ([]byte, error) {
  1362  	type NoMethod CustomConnector
  1363  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1364  }
  1365  
  1366  // CustomConnectorVersion: CustomConnectorVersion indicates a specific version
  1367  // of a connector.
  1368  type CustomConnectorVersion struct {
  1369  	// AuthConfig: Optional. Authentication config for accessing connector facade/
  1370  	// proxy. This is used only when enable_backend_destination_config is true.
  1371  	AuthConfig *AuthConfig `json:"authConfig,omitempty"`
  1372  	// BackendVariableTemplates: Optional. Backend variables config templates. This
  1373  	// translates to additional variable templates in connection.
  1374  	BackendVariableTemplates []*ConfigVariableTemplate `json:"backendVariableTemplates,omitempty"`
  1375  	// CreateTime: Output only. Created time.
  1376  	CreateTime string `json:"createTime,omitempty"`
  1377  	// DestinationConfigs: Optional. Destination config(s) for accessing connector
  1378  	// facade/ proxy. This is used only when enable_backend_destination_config is
  1379  	// true.
  1380  	DestinationConfigs []*DestinationConfig `json:"destinationConfigs,omitempty"`
  1381  	// EnableBackendDestinationConfig: Optional. When enabled, the connector will
  1382  	// be a facade/ proxy, and connects to the destination provided during
  1383  	// connection creation.
  1384  	EnableBackendDestinationConfig bool `json:"enableBackendDestinationConfig,omitempty"`
  1385  	// Labels: Optional. Resource labels to represent user-provided metadata. Refer
  1386  	// to cloud documentation on labels for more details.
  1387  	// https://cloud.google.com/compute/docs/labeling-resources
  1388  	Labels map[string]string `json:"labels,omitempty"`
  1389  	// Name: Output only. Identifier. Resource name of the Version. Format:
  1390  	// projects/{project}/locations/{location}/customConnectors/{custom_connector}/c
  1391  	// ustomConnectorVersions/{custom_connector_version}
  1392  	Name string `json:"name,omitempty"`
  1393  	// ServiceAccount: Optional. Service account used by runtime plane to access
  1394  	// auth config secrets.
  1395  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1396  	// SpecLocation: Optional. Location of the custom connector spec. The location
  1397  	// can be either a public url like `https://public-url.com/spec` Or a Google
  1398  	// Cloud Storage location like `gs:///`
  1399  	SpecLocation string `json:"specLocation,omitempty"`
  1400  	// SpecServerUrls: Output only. Server URLs parsed from the spec.
  1401  	SpecServerUrls []string `json:"specServerUrls,omitempty"`
  1402  	// State: Output only. State of the custom connector version.
  1403  	//
  1404  	// Possible values:
  1405  	//   "STATE_UNSPECIFIED" - State Unspecified.
  1406  	//   "ACTIVE" - Active state. By default we set the state to Active.
  1407  	//   "DEPRECATED" - Deprecated state.
  1408  	State string `json:"state,omitempty"`
  1409  	// UpdateTime: Output only. Updated time.
  1410  	UpdateTime string `json:"updateTime,omitempty"`
  1411  
  1412  	// ServerResponse contains the HTTP response code and headers from the server.
  1413  	googleapi.ServerResponse `json:"-"`
  1414  	// ForceSendFields is a list of field names (e.g. "AuthConfig") to
  1415  	// unconditionally include in API requests. By default, fields with empty or
  1416  	// default values are omitted from API requests. See
  1417  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1418  	// details.
  1419  	ForceSendFields []string `json:"-"`
  1420  	// NullFields is a list of field names (e.g. "AuthConfig") to include in API
  1421  	// requests with the JSON null value. By default, fields with empty values are
  1422  	// omitted from API requests. See
  1423  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1424  	NullFields []string `json:"-"`
  1425  }
  1426  
  1427  func (s *CustomConnectorVersion) MarshalJSON() ([]byte, error) {
  1428  	type NoMethod CustomConnectorVersion
  1429  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1430  }
  1431  
  1432  // DailyCycle: Time window specified for daily operations.
  1433  type DailyCycle struct {
  1434  	// Duration: Output only. Duration of the time window, set by service producer.
  1435  	Duration string `json:"duration,omitempty"`
  1436  	// StartTime: Time within the day to start the operations.
  1437  	StartTime *TimeOfDay `json:"startTime,omitempty"`
  1438  	// ForceSendFields is a list of field names (e.g. "Duration") to
  1439  	// unconditionally include in API requests. By default, fields with empty or
  1440  	// default values are omitted from API requests. See
  1441  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1442  	// details.
  1443  	ForceSendFields []string `json:"-"`
  1444  	// NullFields is a list of field names (e.g. "Duration") to include in API
  1445  	// requests with the JSON null value. By default, fields with empty values are
  1446  	// omitted from API requests. See
  1447  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1448  	NullFields []string `json:"-"`
  1449  }
  1450  
  1451  func (s *DailyCycle) MarshalJSON() ([]byte, error) {
  1452  	type NoMethod DailyCycle
  1453  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1454  }
  1455  
  1456  // Date: Represents a whole or partial calendar date, such as a birthday. The
  1457  // time of day and time zone are either specified elsewhere or are
  1458  // insignificant. The date is relative to the Gregorian Calendar. This can
  1459  // represent one of the following: * A full date, with non-zero year, month,
  1460  // and day values. * A month and day, with a zero year (for example, an
  1461  // anniversary). * A year on its own, with a zero month and a zero day. * A
  1462  // year and month, with a zero day (for example, a credit card expiration
  1463  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
  1464  // google.protobuf.Timestamp
  1465  type Date struct {
  1466  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
  1467  	// or 0 to specify a year by itself or a year and month where the day isn't
  1468  	// significant.
  1469  	Day int64 `json:"day,omitempty"`
  1470  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
  1471  	// a month and day.
  1472  	Month int64 `json:"month,omitempty"`
  1473  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
  1474  	// without a year.
  1475  	Year int64 `json:"year,omitempty"`
  1476  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  1477  	// include in API requests. By default, fields with empty or default values are
  1478  	// omitted from API requests. See
  1479  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1480  	// details.
  1481  	ForceSendFields []string `json:"-"`
  1482  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  1483  	// with the JSON null value. By default, fields with empty values are omitted
  1484  	// from API requests. See
  1485  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1486  	NullFields []string `json:"-"`
  1487  }
  1488  
  1489  func (s *Date) MarshalJSON() ([]byte, error) {
  1490  	type NoMethod Date
  1491  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1492  }
  1493  
  1494  // DeadLetterConfig: Dead Letter configuration details provided by the user.
  1495  type DeadLetterConfig struct {
  1496  	// ProjectId: Optional. Project which has the topic given.
  1497  	ProjectId string `json:"projectId,omitempty"`
  1498  	// Topic: Optional. Topic to push events which couldn't be processed.
  1499  	Topic string `json:"topic,omitempty"`
  1500  	// ForceSendFields is a list of field names (e.g. "ProjectId") to
  1501  	// unconditionally include in API requests. By default, fields with empty or
  1502  	// default values are omitted from API requests. See
  1503  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1504  	// details.
  1505  	ForceSendFields []string `json:"-"`
  1506  	// NullFields is a list of field names (e.g. "ProjectId") to include in API
  1507  	// requests with the JSON null value. By default, fields with empty values are
  1508  	// omitted from API requests. See
  1509  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1510  	NullFields []string `json:"-"`
  1511  }
  1512  
  1513  func (s *DeadLetterConfig) MarshalJSON() ([]byte, error) {
  1514  	type NoMethod DeadLetterConfig
  1515  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1516  }
  1517  
  1518  // DenyMaintenancePeriod: DenyMaintenancePeriod definition. Maintenance is
  1519  // forbidden within the deny period. The start_date must be less than the
  1520  // end_date.
  1521  type DenyMaintenancePeriod struct {
  1522  	// EndDate: Deny period end date. This can be: * A full date, with non-zero
  1523  	// year, month and day values. * A month and day value, with a zero year.
  1524  	// Allows recurring deny periods each year. Date matching this period will have
  1525  	// to be before the end.
  1526  	EndDate *Date `json:"endDate,omitempty"`
  1527  	// StartDate: Deny period start date. This can be: * A full date, with non-zero
  1528  	// year, month and day values. * A month and day value, with a zero year.
  1529  	// Allows recurring deny periods each year. Date matching this period will have
  1530  	// to be the same or after the start.
  1531  	StartDate *Date `json:"startDate,omitempty"`
  1532  	// Time: Time in UTC when the Blackout period starts on start_date and ends on
  1533  	// end_date. This can be: * Full time. * All zeros for 00:00:00 UTC
  1534  	Time *TimeOfDay `json:"time,omitempty"`
  1535  	// ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally
  1536  	// include in API requests. By default, fields with empty or default values are
  1537  	// omitted from API requests. See
  1538  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1539  	// details.
  1540  	ForceSendFields []string `json:"-"`
  1541  	// NullFields is a list of field names (e.g. "EndDate") to include in API
  1542  	// requests with the JSON null value. By default, fields with empty values are
  1543  	// omitted from API requests. See
  1544  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1545  	NullFields []string `json:"-"`
  1546  }
  1547  
  1548  func (s *DenyMaintenancePeriod) MarshalJSON() ([]byte, error) {
  1549  	type NoMethod DenyMaintenancePeriod
  1550  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1551  }
  1552  
  1553  // DeprecateCustomConnectorVersionRequest: Request message for
  1554  // ConnectorsService.DeprecateCustomConnectorVersion
  1555  type DeprecateCustomConnectorVersionRequest struct {
  1556  }
  1557  
  1558  type Destination struct {
  1559  	// Host: For publicly routable host.
  1560  	Host string `json:"host,omitempty"`
  1561  	// Port: The port is the target port number that is accepted by the
  1562  	// destination.
  1563  	Port int64 `json:"port,omitempty"`
  1564  	// ServiceAttachment: PSC service attachments. Format:
  1565  	// projects/*/regions/*/serviceAttachments/*
  1566  	ServiceAttachment string `json:"serviceAttachment,omitempty"`
  1567  	// ForceSendFields is a list of field names (e.g. "Host") to unconditionally
  1568  	// include in API requests. By default, fields with empty or default values are
  1569  	// omitted from API requests. See
  1570  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1571  	// details.
  1572  	ForceSendFields []string `json:"-"`
  1573  	// NullFields is a list of field names (e.g. "Host") to include in API requests
  1574  	// with the JSON null value. By default, fields with empty values are omitted
  1575  	// from API requests. See
  1576  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1577  	NullFields []string `json:"-"`
  1578  }
  1579  
  1580  func (s *Destination) MarshalJSON() ([]byte, error) {
  1581  	type NoMethod Destination
  1582  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1583  }
  1584  
  1585  // DestinationConfig: Define the Connectors target endpoint.
  1586  type DestinationConfig struct {
  1587  	// Destinations: The destinations for the key.
  1588  	Destinations []*Destination `json:"destinations,omitempty"`
  1589  	// Key: The key is the destination identifier that is supported by the
  1590  	// Connector.
  1591  	Key string `json:"key,omitempty"`
  1592  	// ForceSendFields is a list of field names (e.g. "Destinations") to
  1593  	// unconditionally include in API requests. By default, fields with empty or
  1594  	// default values are omitted from API requests. See
  1595  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1596  	// details.
  1597  	ForceSendFields []string `json:"-"`
  1598  	// NullFields is a list of field names (e.g. "Destinations") to include in API
  1599  	// requests with the JSON null value. By default, fields with empty values are
  1600  	// omitted from API requests. See
  1601  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1602  	NullFields []string `json:"-"`
  1603  }
  1604  
  1605  func (s *DestinationConfig) MarshalJSON() ([]byte, error) {
  1606  	type NoMethod DestinationConfig
  1607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1608  }
  1609  
  1610  // DestinationConfigTemplate: DestinationConfigTemplate defines required
  1611  // destinations supported by the Connector.
  1612  type DestinationConfigTemplate struct {
  1613  	// AutocompleteSuggestions: Autocomplete suggestions for destination URL field.
  1614  	AutocompleteSuggestions []string `json:"autocompleteSuggestions,omitempty"`
  1615  	// DefaultPort: The default port.
  1616  	DefaultPort int64 `json:"defaultPort,omitempty"`
  1617  	// Description: Description.
  1618  	Description string `json:"description,omitempty"`
  1619  	// DisplayName: Display name of the parameter.
  1620  	DisplayName string `json:"displayName,omitempty"`
  1621  	// IsAdvanced: Whether the current destination tempalate is part of Advanced
  1622  	// settings
  1623  	IsAdvanced bool `json:"isAdvanced,omitempty"`
  1624  	// Key: Key of the destination.
  1625  	Key string `json:"key,omitempty"`
  1626  	// Max: The maximum number of destinations supported for this key.
  1627  	Max int64 `json:"max,omitempty"`
  1628  	// Min: The minimum number of destinations supported for this key.
  1629  	Min int64 `json:"min,omitempty"`
  1630  	// PortFieldType: Whether port number should be provided by customers.
  1631  	//
  1632  	// Possible values:
  1633  	//   "FIELD_TYPE_UNSPECIFIED"
  1634  	//   "REQUIRED"
  1635  	//   "OPTIONAL"
  1636  	//   "NOT_USED"
  1637  	PortFieldType string `json:"portFieldType,omitempty"`
  1638  	// RegexPattern: Regex pattern for host.
  1639  	RegexPattern string `json:"regexPattern,omitempty"`
  1640  	// ForceSendFields is a list of field names (e.g. "AutocompleteSuggestions") to
  1641  	// unconditionally include in API requests. By default, fields with empty or
  1642  	// default values are omitted from API requests. See
  1643  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1644  	// details.
  1645  	ForceSendFields []string `json:"-"`
  1646  	// NullFields is a list of field names (e.g. "AutocompleteSuggestions") to
  1647  	// include in API requests with the JSON null value. By default, fields with
  1648  	// empty values are omitted from API requests. See
  1649  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1650  	NullFields []string `json:"-"`
  1651  }
  1652  
  1653  func (s *DestinationConfigTemplate) MarshalJSON() ([]byte, error) {
  1654  	type NoMethod DestinationConfigTemplate
  1655  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1656  }
  1657  
  1658  // EgressControlConfig: Egress control config for connector runtime. These
  1659  // configurations define the rules to identify which outbound domains/hosts
  1660  // needs to be whitelisted. It may be a static information for a particular
  1661  // connector version or it is derived from the configurations provided by the
  1662  // customer in Connection resource.
  1663  type EgressControlConfig struct {
  1664  	// Backends: Static Comma separated backends which are common for all
  1665  	// Connection resources. Supported formats for each backend are host:port or
  1666  	// just host (host can be ip address or domain name).
  1667  	Backends string `json:"backends,omitempty"`
  1668  	// ExtractionRules: Extractions Rules to extract the backends from customer
  1669  	// provided configuration.
  1670  	ExtractionRules *ExtractionRules `json:"extractionRules,omitempty"`
  1671  	// ForceSendFields is a list of field names (e.g. "Backends") to
  1672  	// unconditionally include in API requests. By default, fields with empty or
  1673  	// default values are omitted from API requests. See
  1674  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1675  	// details.
  1676  	ForceSendFields []string `json:"-"`
  1677  	// NullFields is a list of field names (e.g. "Backends") to include in API
  1678  	// requests with the JSON null value. By default, fields with empty values are
  1679  	// omitted from API requests. See
  1680  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1681  	NullFields []string `json:"-"`
  1682  }
  1683  
  1684  func (s *EgressControlConfig) MarshalJSON() ([]byte, error) {
  1685  	type NoMethod EgressControlConfig
  1686  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1687  }
  1688  
  1689  // Empty: A generic empty message that you can re-use to avoid defining
  1690  // duplicated empty messages in your APIs. A typical example is to use it as
  1691  // the request or the response type of an API method. For instance: service Foo
  1692  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
  1693  type Empty struct {
  1694  	// ServerResponse contains the HTTP response code and headers from the server.
  1695  	googleapi.ServerResponse `json:"-"`
  1696  }
  1697  
  1698  // EncryptionConfig: Regional encryption config for CMEK details.
  1699  type EncryptionConfig struct {
  1700  	// EncryptionType: Optional. Encryption type for the region.
  1701  	//
  1702  	// Possible values:
  1703  	//   "ENCRYPTION_TYPE_UNSPECIFIED" - Encryption type unspecified.
  1704  	//   "GMEK" - Google managed encryption keys
  1705  	//   "CMEK" - Customer managed encryption keys.
  1706  	EncryptionType string `json:"encryptionType,omitempty"`
  1707  	// KmsKeyName: Optional. KMS crypto key. This field accepts identifiers of the
  1708  	// form
  1709  	// `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/
  1710  	// {crypto_key}`
  1711  	KmsKeyName string `json:"kmsKeyName,omitempty"`
  1712  	// ForceSendFields is a list of field names (e.g. "EncryptionType") to
  1713  	// unconditionally include in API requests. By default, fields with empty or
  1714  	// default values are omitted from API requests. See
  1715  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1716  	// details.
  1717  	ForceSendFields []string `json:"-"`
  1718  	// NullFields is a list of field names (e.g. "EncryptionType") to include in
  1719  	// API requests with the JSON null value. By default, fields with empty values
  1720  	// are omitted from API requests. See
  1721  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1722  	NullFields []string `json:"-"`
  1723  }
  1724  
  1725  func (s *EncryptionConfig) MarshalJSON() ([]byte, error) {
  1726  	type NoMethod EncryptionConfig
  1727  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1728  }
  1729  
  1730  // EncryptionKey: Encryption Key value.
  1731  type EncryptionKey struct {
  1732  	// KmsKeyName: The [KMS key name] with which the content of the Operation is
  1733  	// encrypted. The expected format:
  1734  	// `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty string if
  1735  	// google managed.
  1736  	KmsKeyName string `json:"kmsKeyName,omitempty"`
  1737  	// Type: Type.
  1738  	//
  1739  	// Possible values:
  1740  	//   "TYPE_UNSPECIFIED" - Value type is not specified.
  1741  	//   "GOOGLE_MANAGED" - Google Managed.
  1742  	//   "CUSTOMER_MANAGED" - Customer Managed.
  1743  	Type string `json:"type,omitempty"`
  1744  	// ForceSendFields is a list of field names (e.g. "KmsKeyName") to
  1745  	// unconditionally include in API requests. By default, fields with empty or
  1746  	// default values are omitted from API requests. See
  1747  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1748  	// details.
  1749  	ForceSendFields []string `json:"-"`
  1750  	// NullFields is a list of field names (e.g. "KmsKeyName") to include in API
  1751  	// requests with the JSON null value. By default, fields with empty values are
  1752  	// omitted from API requests. See
  1753  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1754  	NullFields []string `json:"-"`
  1755  }
  1756  
  1757  func (s *EncryptionKey) MarshalJSON() ([]byte, error) {
  1758  	type NoMethod EncryptionKey
  1759  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1760  }
  1761  
  1762  // EndPoint: Endpoint message includes details of the Destination endpoint.
  1763  type EndPoint struct {
  1764  	// EndpointUri: The URI of the Endpoint.
  1765  	EndpointUri string `json:"endpointUri,omitempty"`
  1766  	// Headers: List of Header to be added to the Endpoint.
  1767  	Headers []*Header `json:"headers,omitempty"`
  1768  	// ForceSendFields is a list of field names (e.g. "EndpointUri") to
  1769  	// unconditionally include in API requests. By default, fields with empty or
  1770  	// default values are omitted from API requests. See
  1771  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1772  	// details.
  1773  	ForceSendFields []string `json:"-"`
  1774  	// NullFields is a list of field names (e.g. "EndpointUri") to include in API
  1775  	// requests with the JSON null value. By default, fields with empty values are
  1776  	// omitted from API requests. See
  1777  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1778  	NullFields []string `json:"-"`
  1779  }
  1780  
  1781  func (s *EndPoint) MarshalJSON() ([]byte, error) {
  1782  	type NoMethod EndPoint
  1783  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1784  }
  1785  
  1786  // EndpointAttachment: represents the Connector's Endpoint Attachment resource
  1787  type EndpointAttachment struct {
  1788  	// CreateTime: Output only. Created time.
  1789  	CreateTime string `json:"createTime,omitempty"`
  1790  	// Description: Optional. Description of the resource.
  1791  	Description string `json:"description,omitempty"`
  1792  	// EndpointGlobalAccess: Optional. The Private Service Connect Connection
  1793  	// Endpoint Global Access.
  1794  	// https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#global-access
  1795  	EndpointGlobalAccess bool `json:"endpointGlobalAccess,omitempty"`
  1796  	// EndpointIp: Output only. The Private Service Connect connection endpoint ip
  1797  	EndpointIp string `json:"endpointIp,omitempty"`
  1798  	// Labels: Optional. Resource labels to represent user-provided metadata. Refer
  1799  	// to cloud documentation on labels for more details.
  1800  	// https://cloud.google.com/compute/docs/labeling-resources
  1801  	Labels map[string]string `json:"labels,omitempty"`
  1802  	// Name: Output only. Resource name of the Endpoint Attachment. Format:
  1803  	// projects/{project}/locations/{location}/endpointAttachments/{endpoint_attachm
  1804  	// ent}
  1805  	Name string `json:"name,omitempty"`
  1806  	// ServiceAttachment: Required. The path of the service attachment
  1807  	ServiceAttachment string `json:"serviceAttachment,omitempty"`
  1808  	// UpdateTime: Output only. Updated time.
  1809  	UpdateTime string `json:"updateTime,omitempty"`
  1810  
  1811  	// ServerResponse contains the HTTP response code and headers from the server.
  1812  	googleapi.ServerResponse `json:"-"`
  1813  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1814  	// unconditionally include in API requests. By default, fields with empty or
  1815  	// default values are omitted from API requests. See
  1816  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1817  	// details.
  1818  	ForceSendFields []string `json:"-"`
  1819  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1820  	// requests with the JSON null value. By default, fields with empty values are
  1821  	// omitted from API requests. See
  1822  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1823  	NullFields []string `json:"-"`
  1824  }
  1825  
  1826  func (s *EndpointAttachment) MarshalJSON() ([]byte, error) {
  1827  	type NoMethod EndpointAttachment
  1828  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1829  }
  1830  
  1831  // EnumOption: EnumOption definition
  1832  type EnumOption struct {
  1833  	// DisplayName: Display name of the option.
  1834  	DisplayName string `json:"displayName,omitempty"`
  1835  	// Id: Id of the option.
  1836  	Id string `json:"id,omitempty"`
  1837  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  1838  	// unconditionally include in API requests. By default, fields with empty or
  1839  	// default values are omitted from API requests. See
  1840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1841  	// details.
  1842  	ForceSendFields []string `json:"-"`
  1843  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  1844  	// requests with the JSON null value. By default, fields with empty values are
  1845  	// omitted from API requests. See
  1846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1847  	NullFields []string `json:"-"`
  1848  }
  1849  
  1850  func (s *EnumOption) MarshalJSON() ([]byte, error) {
  1851  	type NoMethod EnumOption
  1852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1853  }
  1854  
  1855  // EventSubscription: represents the Connector's EventSubscription resource
  1856  type EventSubscription struct {
  1857  	// CreateTime: Output only. Created time.
  1858  	CreateTime string `json:"createTime,omitempty"`
  1859  	// Destinations: Optional. The destination to hit when we receive an event
  1860  	Destinations *EventSubscriptionDestination `json:"destinations,omitempty"`
  1861  	// EventTypeId: Optional. Event type id of the event of current
  1862  	// EventSubscription.
  1863  	EventTypeId string `json:"eventTypeId,omitempty"`
  1864  	// Jms: Optional. JMS is the source for the event listener.
  1865  	Jms *JMS `json:"jms,omitempty"`
  1866  	// Name: Required. Resource name of the EventSubscription. Format:
  1867  	// projects/{project}/locations/{location}/connections/{connection}/eventSubscri
  1868  	// ptions/{event_subscription}
  1869  	Name string `json:"name,omitempty"`
  1870  	// Status: Optional. Status indicates the status of the event subscription
  1871  	// resource
  1872  	Status *EventSubscriptionStatus `json:"status,omitempty"`
  1873  	// Subscriber: Optional. name of the Subscriber for the current
  1874  	// EventSubscription.
  1875  	Subscriber string `json:"subscriber,omitempty"`
  1876  	// SubscriberLink: Optional. Link for Subscriber of the current
  1877  	// EventSubscription.
  1878  	SubscriberLink string `json:"subscriberLink,omitempty"`
  1879  	// TriggerConfigVariables: Optional. Configuration for configuring the trigger
  1880  	TriggerConfigVariables []*ConfigVariable `json:"triggerConfigVariables,omitempty"`
  1881  	// UpdateTime: Output only. Updated time.
  1882  	UpdateTime string `json:"updateTime,omitempty"`
  1883  
  1884  	// ServerResponse contains the HTTP response code and headers from the server.
  1885  	googleapi.ServerResponse `json:"-"`
  1886  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1887  	// unconditionally include in API requests. By default, fields with empty or
  1888  	// default values are omitted from API requests. See
  1889  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1890  	// details.
  1891  	ForceSendFields []string `json:"-"`
  1892  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1893  	// requests with the JSON null value. By default, fields with empty values are
  1894  	// omitted from API requests. See
  1895  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1896  	NullFields []string `json:"-"`
  1897  }
  1898  
  1899  func (s *EventSubscription) MarshalJSON() ([]byte, error) {
  1900  	type NoMethod EventSubscription
  1901  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1902  }
  1903  
  1904  // EventSubscriptionDestination: Message for EventSubscription Destination to
  1905  // act on receiving an event
  1906  type EventSubscriptionDestination struct {
  1907  	// Endpoint: OPTION 1: Hit an endpoint when we receive an event.
  1908  	Endpoint *EndPoint `json:"endpoint,omitempty"`
  1909  	// ServiceAccount: Service account needed for runtime plane to trigger IP
  1910  	// workflow.
  1911  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1912  	// Type: type of the destination
  1913  	//
  1914  	// Possible values:
  1915  	//   "TYPE_UNSPECIFIED" - Default state.
  1916  	//   "ENDPOINT" - Endpoint - Hit the value of endpoint when event is received
  1917  	Type string `json:"type,omitempty"`
  1918  	// ForceSendFields is a list of field names (e.g. "Endpoint") to
  1919  	// unconditionally include in API requests. By default, fields with empty or
  1920  	// default values are omitted from API requests. See
  1921  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1922  	// details.
  1923  	ForceSendFields []string `json:"-"`
  1924  	// NullFields is a list of field names (e.g. "Endpoint") to include in API
  1925  	// requests with the JSON null value. By default, fields with empty values are
  1926  	// omitted from API requests. See
  1927  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1928  	NullFields []string `json:"-"`
  1929  }
  1930  
  1931  func (s *EventSubscriptionDestination) MarshalJSON() ([]byte, error) {
  1932  	type NoMethod EventSubscriptionDestination
  1933  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1934  }
  1935  
  1936  // EventSubscriptionStatus: EventSubscription Status denotes the status of the
  1937  // EventSubscription resource.
  1938  type EventSubscriptionStatus struct {
  1939  	// Description: Output only. Description of the state.
  1940  	Description string `json:"description,omitempty"`
  1941  	// State: Output only. State of Event Subscription resource.
  1942  	//
  1943  	// Possible values:
  1944  	//   "STATE_UNSPECIFIED" - Default state.
  1945  	//   "CREATING" - EventSubscription creation is in progress.
  1946  	//   "UPDATING" - EventSubscription is in Updating status.
  1947  	//   "ACTIVE" - EventSubscription is in Active state and is ready to receive
  1948  	// events.
  1949  	//   "SUSPENDED" - EventSubscription is currently suspended.
  1950  	//   "ERROR" - EventSubscription is in Error state.
  1951  	State string `json:"state,omitempty"`
  1952  	// ForceSendFields is a list of field names (e.g. "Description") to
  1953  	// unconditionally include in API requests. By default, fields with empty or
  1954  	// default values are omitted from API requests. See
  1955  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1956  	// details.
  1957  	ForceSendFields []string `json:"-"`
  1958  	// NullFields is a list of field names (e.g. "Description") to include in API
  1959  	// requests with the JSON null value. By default, fields with empty values are
  1960  	// omitted from API requests. See
  1961  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1962  	NullFields []string `json:"-"`
  1963  }
  1964  
  1965  func (s *EventSubscriptionStatus) MarshalJSON() ([]byte, error) {
  1966  	type NoMethod EventSubscriptionStatus
  1967  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1968  }
  1969  
  1970  // EventType: EventType includes fields.
  1971  type EventType struct {
  1972  	// CreateTime: Output only. Created time.
  1973  	CreateTime string `json:"createTime,omitempty"`
  1974  	// EnrichedEventPayloadSchema: Output only. Schema of the event payload after
  1975  	// enriched. Will be null if read before send is not supported.
  1976  	EnrichedEventPayloadSchema string `json:"enrichedEventPayloadSchema,omitempty"`
  1977  	// EntityType: Output only. Runtime entity type name. Will be null if entity
  1978  	// type map is not available. Used for read before send feature.
  1979  	EntityType string `json:"entityType,omitempty"`
  1980  	// EventPayloadSchema: Output only. Schema of webhook event payload.
  1981  	EventPayloadSchema string `json:"eventPayloadSchema,omitempty"`
  1982  	// EventTypeId: Output only. Event type id. Example: `ticket.created`.
  1983  	EventTypeId string `json:"eventTypeId,omitempty"`
  1984  	// IdPath: Output only. Id path denotes the path of id in webhook payload.
  1985  	IdPath string `json:"idPath,omitempty"`
  1986  	// Name: Output only. Resource name of the eventtype. Format:
  1987  	// projects/{project}/locations/{location}/providers/{provider}/connectors/{conn
  1988  	// ector}/versions/{version}/eventtypes/{eventtype} Only global location is
  1989  	// supported for Connector resource.
  1990  	Name string `json:"name,omitempty"`
  1991  	// UpdateTime: Output only. Updated time.
  1992  	UpdateTime string `json:"updateTime,omitempty"`
  1993  
  1994  	// ServerResponse contains the HTTP response code and headers from the server.
  1995  	googleapi.ServerResponse `json:"-"`
  1996  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1997  	// unconditionally include in API requests. By default, fields with empty or
  1998  	// default values are omitted from API requests. See
  1999  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2000  	// details.
  2001  	ForceSendFields []string `json:"-"`
  2002  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2003  	// requests with the JSON null value. By default, fields with empty values are
  2004  	// omitted from API requests. See
  2005  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2006  	NullFields []string `json:"-"`
  2007  }
  2008  
  2009  func (s *EventType) MarshalJSON() ([]byte, error) {
  2010  	type NoMethod EventType
  2011  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2012  }
  2013  
  2014  // EventingConfig: Eventing Configuration of a connection
  2015  type EventingConfig struct {
  2016  	// AdditionalVariables: Additional eventing related field values
  2017  	AdditionalVariables []*ConfigVariable `json:"additionalVariables,omitempty"`
  2018  	// AuthConfig: Auth details for the webhook adapter.
  2019  	AuthConfig *AuthConfig `json:"authConfig,omitempty"`
  2020  	// DeadLetterConfig: Optional. Dead letter configuration for eventing of a
  2021  	// connection.
  2022  	DeadLetterConfig *DeadLetterConfig `json:"deadLetterConfig,omitempty"`
  2023  	// EnrichmentEnabled: Enrichment Enabled.
  2024  	EnrichmentEnabled bool `json:"enrichmentEnabled,omitempty"`
  2025  	// EventsListenerIngressEndpoint: Optional. Ingress endpoint of the event
  2026  	// listener. This is used only when private connectivity is enabled.
  2027  	EventsListenerIngressEndpoint string `json:"eventsListenerIngressEndpoint,omitempty"`
  2028  	// ListenerAuthConfig: Optional. Auth details for the event listener.
  2029  	ListenerAuthConfig *AuthConfig `json:"listenerAuthConfig,omitempty"`
  2030  	// PrivateConnectivityEnabled: Optional. Private Connectivity Enabled.
  2031  	PrivateConnectivityEnabled bool `json:"privateConnectivityEnabled,omitempty"`
  2032  	// ProxyDestinationConfig: Optional. Proxy for Eventing auto-registration.
  2033  	ProxyDestinationConfig *DestinationConfig `json:"proxyDestinationConfig,omitempty"`
  2034  	// RegistrationDestinationConfig: Registration endpoint for auto registration.
  2035  	RegistrationDestinationConfig *DestinationConfig `json:"registrationDestinationConfig,omitempty"`
  2036  	// ForceSendFields is a list of field names (e.g. "AdditionalVariables") to
  2037  	// unconditionally include in API requests. By default, fields with empty or
  2038  	// default values are omitted from API requests. See
  2039  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2040  	// details.
  2041  	ForceSendFields []string `json:"-"`
  2042  	// NullFields is a list of field names (e.g. "AdditionalVariables") to include
  2043  	// in API requests with the JSON null value. By default, fields with empty
  2044  	// values are omitted from API requests. See
  2045  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2046  	NullFields []string `json:"-"`
  2047  }
  2048  
  2049  func (s *EventingConfig) MarshalJSON() ([]byte, error) {
  2050  	type NoMethod EventingConfig
  2051  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2052  }
  2053  
  2054  // EventingConfigTemplate: Eventing Config details of a connector version.
  2055  type EventingConfigTemplate struct {
  2056  	// AdditionalVariables: Additional fields that need to be rendered.
  2057  	AdditionalVariables []*ConfigVariableTemplate `json:"additionalVariables,omitempty"`
  2058  	// AuthConfigTemplates: AuthConfigTemplates represents the auth values for the
  2059  	// webhook adapter.
  2060  	AuthConfigTemplates []*AuthConfigTemplate `json:"authConfigTemplates,omitempty"`
  2061  	// AutoRefresh: Auto refresh to extend webhook life.
  2062  	AutoRefresh bool `json:"autoRefresh,omitempty"`
  2063  	// AutoRegistrationSupported: Auto Registration supported.
  2064  	AutoRegistrationSupported bool `json:"autoRegistrationSupported,omitempty"`
  2065  	// EncryptionKeyTemplate: Encryption key (can be either Google managed or
  2066  	// CMEK).
  2067  	EncryptionKeyTemplate *ConfigVariableTemplate `json:"encryptionKeyTemplate,omitempty"`
  2068  	// EnrichmentSupported: Enrichment Supported.
  2069  	EnrichmentSupported bool `json:"enrichmentSupported,omitempty"`
  2070  	// EventListenerType: The type of the event listener for a specific connector.
  2071  	//
  2072  	// Possible values:
  2073  	//   "EVENT_LISTENER_TYPE_UNSPECIFIED" - Default value.
  2074  	//   "WEBHOOK_LISTENER" - Webhook listener. e.g. Jira, Zendesk, Servicenow
  2075  	// etc.,
  2076  	//   "JMS_LISTENER" - JMS Listener. e.g. IBM MQ, Rabbit MQ etc.,
  2077  	EventListenerType string `json:"eventListenerType,omitempty"`
  2078  	// IsEventingSupported: Is Eventing Supported.
  2079  	IsEventingSupported bool `json:"isEventingSupported,omitempty"`
  2080  	// ListenerAuthConfigTemplates: ListenerAuthConfigTemplates represents the auth
  2081  	// values for the event listener.
  2082  	ListenerAuthConfigTemplates []*AuthConfigTemplate `json:"listenerAuthConfigTemplates,omitempty"`
  2083  	// ProxyDestinationConfig: Proxy destination config template.
  2084  	ProxyDestinationConfig *DestinationConfigTemplate `json:"proxyDestinationConfig,omitempty"`
  2085  	// RegistrationDestinationConfig: Registration host destination config
  2086  	// template.
  2087  	RegistrationDestinationConfig *DestinationConfigTemplate `json:"registrationDestinationConfig,omitempty"`
  2088  	// TriggerConfigVariables: Trigger Config fields that needs to be rendered
  2089  	TriggerConfigVariables []*ConfigVariableTemplate `json:"triggerConfigVariables,omitempty"`
  2090  	// ForceSendFields is a list of field names (e.g. "AdditionalVariables") to
  2091  	// unconditionally include in API requests. By default, fields with empty or
  2092  	// default values are omitted from API requests. See
  2093  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2094  	// details.
  2095  	ForceSendFields []string `json:"-"`
  2096  	// NullFields is a list of field names (e.g. "AdditionalVariables") to include
  2097  	// in API requests with the JSON null value. By default, fields with empty
  2098  	// values are omitted from API requests. See
  2099  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2100  	NullFields []string `json:"-"`
  2101  }
  2102  
  2103  func (s *EventingConfigTemplate) MarshalJSON() ([]byte, error) {
  2104  	type NoMethod EventingConfigTemplate
  2105  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2106  }
  2107  
  2108  // EventingDetails: Eventing Details message.
  2109  type EventingDetails struct {
  2110  	// CustomEventTypes: Output only. Custom Event Types.
  2111  	CustomEventTypes bool `json:"customEventTypes,omitempty"`
  2112  	// Description: Output only. Description.
  2113  	Description string `json:"description,omitempty"`
  2114  	// DocumentationLink: Output only. Link to public documentation.
  2115  	DocumentationLink string `json:"documentationLink,omitempty"`
  2116  	// IconLocation: Output only. Cloud storage location of the icon.
  2117  	IconLocation string `json:"iconLocation,omitempty"`
  2118  	// LaunchStage: Output only. Eventing Launch Stage.
  2119  	//
  2120  	// Possible values:
  2121  	//   "LAUNCH_STAGE_UNSPECIFIED" - LAUNCH_STAGE_UNSPECIFIED.
  2122  	//   "PREVIEW" - PREVIEW.
  2123  	//   "GA" - GA.
  2124  	//   "DEPRECATED" - DEPRECATED.
  2125  	//   "PRIVATE_PREVIEW" - PRIVATE_PREVIEW.
  2126  	LaunchStage string `json:"launchStage,omitempty"`
  2127  	// Name: Output only. Name of the Eventing trigger.
  2128  	Name string `json:"name,omitempty"`
  2129  	// SearchTags: Output only. Array of search keywords.
  2130  	SearchTags []string `json:"searchTags,omitempty"`
  2131  	// Type: Output only. The type of the event listener for a specific connector.
  2132  	//
  2133  	// Possible values:
  2134  	//   "TYPE_UNSPECIFIED" - Default value.
  2135  	//   "WEBHOOK" - Webhook listener. e.g. Jira, Zendesk, Servicenow etc.,
  2136  	//   "JMS" - JMS Listener. e.g. IBM MQ, Rabbit MQ etc.,
  2137  	Type string `json:"type,omitempty"`
  2138  	// ForceSendFields is a list of field names (e.g. "CustomEventTypes") to
  2139  	// unconditionally include in API requests. By default, fields with empty or
  2140  	// default values are omitted from API requests. See
  2141  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2142  	// details.
  2143  	ForceSendFields []string `json:"-"`
  2144  	// NullFields is a list of field names (e.g. "CustomEventTypes") to include in
  2145  	// API requests with the JSON null value. By default, fields with empty values
  2146  	// are omitted from API requests. See
  2147  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2148  	NullFields []string `json:"-"`
  2149  }
  2150  
  2151  func (s *EventingDetails) MarshalJSON() ([]byte, error) {
  2152  	type NoMethod EventingDetails
  2153  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2154  }
  2155  
  2156  // EventingRuntimeData: Eventing runtime data has the details related to
  2157  // eventing managed by the system.
  2158  type EventingRuntimeData struct {
  2159  	// EventsListenerEndpoint: Output only. Events listener endpoint. The value
  2160  	// will populated after provisioning the events listener.
  2161  	EventsListenerEndpoint string `json:"eventsListenerEndpoint,omitempty"`
  2162  	// EventsListenerPscSa: Output only. Events listener PSC Service attachment.
  2163  	// The value will be populated after provisioning the events listener with
  2164  	// private connectivity enabled.
  2165  	EventsListenerPscSa string `json:"eventsListenerPscSa,omitempty"`
  2166  	// Status: Output only. Current status of eventing.
  2167  	Status *EventingStatus `json:"status,omitempty"`
  2168  	// WebhookData: Output only. Webhook data.
  2169  	WebhookData *WebhookData `json:"webhookData,omitempty"`
  2170  	// ForceSendFields is a list of field names (e.g. "EventsListenerEndpoint") to
  2171  	// unconditionally include in API requests. By default, fields with empty or
  2172  	// default values are omitted from API requests. See
  2173  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2174  	// details.
  2175  	ForceSendFields []string `json:"-"`
  2176  	// NullFields is a list of field names (e.g. "EventsListenerEndpoint") to
  2177  	// include in API requests with the JSON null value. By default, fields with
  2178  	// empty values are omitted from API requests. See
  2179  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2180  	NullFields []string `json:"-"`
  2181  }
  2182  
  2183  func (s *EventingRuntimeData) MarshalJSON() ([]byte, error) {
  2184  	type NoMethod EventingRuntimeData
  2185  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2186  }
  2187  
  2188  // EventingStatus: EventingStatus indicates the state of eventing.
  2189  type EventingStatus struct {
  2190  	// Description: Output only. Description of error if State is set to "ERROR".
  2191  	Description string `json:"description,omitempty"`
  2192  	// State: Output only. State.
  2193  	//
  2194  	// Possible values:
  2195  	//   "STATE_UNSPECIFIED" - Default state.
  2196  	//   "ACTIVE" - Eventing is enabled and ready to receive events.
  2197  	//   "ERROR" - Eventing is not active due to an error.
  2198  	//   "INGRESS_ENDPOINT_REQUIRED" - Ingress endpoint required.
  2199  	State string `json:"state,omitempty"`
  2200  	// ForceSendFields is a list of field names (e.g. "Description") to
  2201  	// unconditionally include in API requests. By default, fields with empty or
  2202  	// default values are omitted from API requests. See
  2203  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2204  	// details.
  2205  	ForceSendFields []string `json:"-"`
  2206  	// NullFields is a list of field names (e.g. "Description") to include in API
  2207  	// requests with the JSON null value. By default, fields with empty values are
  2208  	// omitted from API requests. See
  2209  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2210  	NullFields []string `json:"-"`
  2211  }
  2212  
  2213  func (s *EventingStatus) MarshalJSON() ([]byte, error) {
  2214  	type NoMethod EventingStatus
  2215  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2216  }
  2217  
  2218  // Expr: Represents a textual expression in the Common Expression Language
  2219  // (CEL) syntax. CEL is a C-like expression language. The syntax and semantics
  2220  // of CEL are documented at https://github.com/google/cel-spec. Example
  2221  // (Comparison): title: "Summary size limit" description: "Determines if a
  2222  // summary is less than 100 chars" expression: "document.summary.size() < 100"
  2223  // Example (Equality): title: "Requestor is owner" description: "Determines if
  2224  // requestor is the document owner" expression: "document.owner ==
  2225  // request.auth.claims.email" Example (Logic): title: "Public documents"
  2226  // description: "Determine whether the document should be publicly visible"
  2227  // expression: "document.type != 'private' && document.type != 'internal'"
  2228  // Example (Data Manipulation): title: "Notification string" description:
  2229  // "Create a notification string with a timestamp." expression: "'New message
  2230  // received at ' + string(document.create_time)" The exact variables and
  2231  // functions that may be referenced within an expression are determined by the
  2232  // service that evaluates it. See the service documentation for additional
  2233  // information.
  2234  type Expr struct {
  2235  	// Description: Optional. Description of the expression. This is a longer text
  2236  	// which describes the expression, e.g. when hovered over it in a UI.
  2237  	Description string `json:"description,omitempty"`
  2238  	// Expression: Textual representation of an expression in Common Expression
  2239  	// Language syntax.
  2240  	Expression string `json:"expression,omitempty"`
  2241  	// Location: Optional. String indicating the location of the expression for
  2242  	// error reporting, e.g. a file name and a position in the file.
  2243  	Location string `json:"location,omitempty"`
  2244  	// Title: Optional. Title for the expression, i.e. a short string describing
  2245  	// its purpose. This can be used e.g. in UIs which allow to enter the
  2246  	// expression.
  2247  	Title string `json:"title,omitempty"`
  2248  	// ForceSendFields is a list of field names (e.g. "Description") to
  2249  	// unconditionally include in API requests. By default, fields with empty or
  2250  	// default values are omitted from API requests. See
  2251  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2252  	// details.
  2253  	ForceSendFields []string `json:"-"`
  2254  	// NullFields is a list of field names (e.g. "Description") to include in API
  2255  	// requests with the JSON null value. By default, fields with empty values are
  2256  	// omitted from API requests. See
  2257  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2258  	NullFields []string `json:"-"`
  2259  }
  2260  
  2261  func (s *Expr) MarshalJSON() ([]byte, error) {
  2262  	type NoMethod Expr
  2263  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2264  }
  2265  
  2266  // ExtractionRule: Extraction Rule.
  2267  type ExtractionRule struct {
  2268  	// ExtractionRegex: Regex used to extract backend details from source. If
  2269  	// empty, whole source value will be used.
  2270  	ExtractionRegex string `json:"extractionRegex,omitempty"`
  2271  	// Source: Source on which the rule is applied.
  2272  	Source *Source `json:"source,omitempty"`
  2273  	// ForceSendFields is a list of field names (e.g. "ExtractionRegex") to
  2274  	// unconditionally include in API requests. By default, fields with empty or
  2275  	// default values are omitted from API requests. See
  2276  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2277  	// details.
  2278  	ForceSendFields []string `json:"-"`
  2279  	// NullFields is a list of field names (e.g. "ExtractionRegex") to include in
  2280  	// API requests with the JSON null value. By default, fields with empty values
  2281  	// are omitted from API requests. See
  2282  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2283  	NullFields []string `json:"-"`
  2284  }
  2285  
  2286  func (s *ExtractionRule) MarshalJSON() ([]byte, error) {
  2287  	type NoMethod ExtractionRule
  2288  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2289  }
  2290  
  2291  // ExtractionRules: Extraction Rules to identity the backends from customer
  2292  // provided configuration in Connection resource.
  2293  type ExtractionRules struct {
  2294  	// ExtractionRule: Collection of Extraction Rule.
  2295  	ExtractionRule []*ExtractionRule `json:"extractionRule,omitempty"`
  2296  	// ForceSendFields is a list of field names (e.g. "ExtractionRule") to
  2297  	// unconditionally include in API requests. By default, fields with empty or
  2298  	// default values are omitted from API requests. See
  2299  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2300  	// details.
  2301  	ForceSendFields []string `json:"-"`
  2302  	// NullFields is a list of field names (e.g. "ExtractionRule") to include in
  2303  	// API requests with the JSON null value. By default, fields with empty values
  2304  	// are omitted from API requests. See
  2305  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2306  	NullFields []string `json:"-"`
  2307  }
  2308  
  2309  func (s *ExtractionRules) MarshalJSON() ([]byte, error) {
  2310  	type NoMethod ExtractionRules
  2311  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2312  }
  2313  
  2314  // Field: Metadata of an entity field.
  2315  type Field struct {
  2316  	// AdditionalDetails: The following map contains fields that are not explicitly
  2317  	// mentioned above,this give connectors the flexibility to add new metadata
  2318  	// fields.
  2319  	AdditionalDetails googleapi.RawMessage `json:"additionalDetails,omitempty"`
  2320  	// DataType: The data type of the Field.
  2321  	//
  2322  	// Possible values:
  2323  	//   "DATA_TYPE_UNSPECIFIED" - Data type is not specified.
  2324  	//   "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER.
  2325  	//   "DATA_TYPE_SMALLINT" - Short integer(int16) data type.
  2326  	//   "DATA_TYPE_DOUBLE" - Double data type.
  2327  	//   "DATA_TYPE_DATE" - Date data type.
  2328  	//   "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP.
  2329  	//   "DATA_TYPE_TIME" - Time data type.
  2330  	//   "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR.
  2331  	//   "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT.
  2332  	//   "DATA_TYPE_BOOLEAN" - Boolean data type.
  2333  	//   "DATA_TYPE_DECIMAL" - Decimal data type.
  2334  	//   "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR.
  2335  	//   "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type.
  2336  	//   "DATA_TYPE_BIT" - Bit data type.
  2337  	//   "DATA_TYPE_TINYINT" - Small integer(int8) data type.
  2338  	//   "DATA_TYPE_INTEGER" - Integer(int32) data type.
  2339  	//   "DATA_TYPE_BIGINT" - Long integer(int64) data type.
  2340  	//   "DATA_TYPE_FLOAT" - Float data type.
  2341  	//   "DATA_TYPE_REAL" - Real data type.
  2342  	//   "DATA_TYPE_NUMERIC" - Numeric data type.
  2343  	//   "DATA_TYPE_CHAR" - Char data type.
  2344  	//   "DATA_TYPE_VARCHAR" - Varchar data type.
  2345  	//   "DATA_TYPE_LONGVARCHAR" - Longvarchar data type.
  2346  	//   "DATA_TYPE_TIMESTAMP" - Timestamp data type.
  2347  	//   "DATA_TYPE_NCHAR" - Nchar data type.
  2348  	//   "DATA_TYPE_NVARCHAR" - Nvarchar data type.
  2349  	//   "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type.
  2350  	//   "DATA_TYPE_NULL" - Null data type.
  2351  	//   "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type.
  2352  	//   "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type.
  2353  	//   "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type.
  2354  	//   "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type.
  2355  	//   "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type.
  2356  	//   "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type.
  2357  	//   "DATA_TYPE_REF" - UNSUPPORTED! Binary data type.
  2358  	//   "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type.
  2359  	//   "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type.
  2360  	//   "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type.
  2361  	//   "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type.
  2362  	//   "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type.
  2363  	//   "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type.
  2364  	//   "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported.
  2365  	//   "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not
  2366  	// supported.
  2367  	//   "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP
  2368  	// instead.
  2369  	//   "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead.
  2370  	DataType string `json:"dataType,omitempty"`
  2371  	// DefaultValue: The following field specifies the default value of the Field
  2372  	// provided by the external system if a value is not provided.
  2373  	DefaultValue interface{} `json:"defaultValue,omitempty"`
  2374  	// Description: A brief description of the Field.
  2375  	Description string `json:"description,omitempty"`
  2376  	// Field: Name of the Field.
  2377  	Field string `json:"field,omitempty"`
  2378  	// JsonSchema: JsonSchema representation of this entity's schema
  2379  	JsonSchema *JsonSchema `json:"jsonSchema,omitempty"`
  2380  	// Key: The following boolean field specifies if the current Field acts as a
  2381  	// primary key or id if the parent is of type entity.
  2382  	Key bool `json:"key,omitempty"`
  2383  	// Nullable: Specifies whether a null value is allowed.
  2384  	Nullable bool `json:"nullable,omitempty"`
  2385  	// Readonly: Specifies if the Field is readonly.
  2386  	Readonly bool `json:"readonly,omitempty"`
  2387  	// ForceSendFields is a list of field names (e.g. "AdditionalDetails") to
  2388  	// unconditionally include in API requests. By default, fields with empty or
  2389  	// default values are omitted from API requests. See
  2390  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2391  	// details.
  2392  	ForceSendFields []string `json:"-"`
  2393  	// NullFields is a list of field names (e.g. "AdditionalDetails") to include in
  2394  	// API requests with the JSON null value. By default, fields with empty values
  2395  	// are omitted from API requests. See
  2396  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2397  	NullFields []string `json:"-"`
  2398  }
  2399  
  2400  func (s *Field) MarshalJSON() ([]byte, error) {
  2401  	type NoMethod Field
  2402  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2403  }
  2404  
  2405  // FieldComparison: Field that needs to be compared.
  2406  type FieldComparison struct {
  2407  	// BoolValue: Boolean value
  2408  	BoolValue bool `json:"boolValue,omitempty"`
  2409  	// Comparator: Comparator to use for comparing the field value.
  2410  	//
  2411  	// Possible values:
  2412  	//   "COMPARATOR_UNSPECIFIED" - The default value.
  2413  	//   "EQUALS" - The field value must be equal to the specified value.
  2414  	//   "NOT_EQUALS" - The field value must not be equal to the specified value.
  2415  	Comparator string `json:"comparator,omitempty"`
  2416  	// IntValue: Integer value
  2417  	IntValue int64 `json:"intValue,omitempty,string"`
  2418  	// Key: Key of the field.
  2419  	Key string `json:"key,omitempty"`
  2420  	// StringValue: String value
  2421  	StringValue string `json:"stringValue,omitempty"`
  2422  	// ForceSendFields is a list of field names (e.g. "BoolValue") to
  2423  	// unconditionally include in API requests. By default, fields with empty or
  2424  	// default values are omitted from API requests. See
  2425  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2426  	// details.
  2427  	ForceSendFields []string `json:"-"`
  2428  	// NullFields is a list of field names (e.g. "BoolValue") to include in API
  2429  	// requests with the JSON null value. By default, fields with empty values are
  2430  	// omitted from API requests. See
  2431  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2432  	NullFields []string `json:"-"`
  2433  }
  2434  
  2435  func (s *FieldComparison) MarshalJSON() ([]byte, error) {
  2436  	type NoMethod FieldComparison
  2437  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2438  }
  2439  
  2440  // HPAConfig: Autoscaling config for connector deployment system metrics.
  2441  type HPAConfig struct {
  2442  	// CpuUtilizationThreshold: Output only. Percent CPU utilization where HPA
  2443  	// triggers autoscaling.
  2444  	CpuUtilizationThreshold int64 `json:"cpuUtilizationThreshold,omitempty,string"`
  2445  	// MemoryUtilizationThreshold: Output only. Percent Memory utilization where
  2446  	// HPA triggers autoscaling.
  2447  	MemoryUtilizationThreshold int64 `json:"memoryUtilizationThreshold,omitempty,string"`
  2448  	// ForceSendFields is a list of field names (e.g. "CpuUtilizationThreshold") to
  2449  	// unconditionally include in API requests. By default, fields with empty or
  2450  	// default values are omitted from API requests. See
  2451  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2452  	// details.
  2453  	ForceSendFields []string `json:"-"`
  2454  	// NullFields is a list of field names (e.g. "CpuUtilizationThreshold") to
  2455  	// include in API requests with the JSON null value. By default, fields with
  2456  	// empty values are omitted from API requests. See
  2457  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2458  	NullFields []string `json:"-"`
  2459  }
  2460  
  2461  func (s *HPAConfig) MarshalJSON() ([]byte, error) {
  2462  	type NoMethod HPAConfig
  2463  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2464  }
  2465  
  2466  // Header: Header details for a given header to be added to Endpoint.
  2467  type Header struct {
  2468  	// Key: Key of Header.
  2469  	Key string `json:"key,omitempty"`
  2470  	// Value: Value of Header.
  2471  	Value string `json:"value,omitempty"`
  2472  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
  2473  	// include in API requests. By default, fields with empty or default values are
  2474  	// omitted from API requests. See
  2475  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2476  	// details.
  2477  	ForceSendFields []string `json:"-"`
  2478  	// NullFields is a list of field names (e.g. "Key") to include in API requests
  2479  	// with the JSON null value. By default, fields with empty values are omitted
  2480  	// from API requests. See
  2481  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2482  	NullFields []string `json:"-"`
  2483  }
  2484  
  2485  func (s *Header) MarshalJSON() ([]byte, error) {
  2486  	type NoMethod Header
  2487  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2488  }
  2489  
  2490  // InputParameter: Metadata of an input parameter.
  2491  type InputParameter struct {
  2492  	// DataType: The data type of the Parameter.
  2493  	//
  2494  	// Possible values:
  2495  	//   "DATA_TYPE_UNSPECIFIED" - Data type is not specified.
  2496  	//   "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER.
  2497  	//   "DATA_TYPE_SMALLINT" - Short integer(int16) data type.
  2498  	//   "DATA_TYPE_DOUBLE" - Double data type.
  2499  	//   "DATA_TYPE_DATE" - Date data type.
  2500  	//   "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP.
  2501  	//   "DATA_TYPE_TIME" - Time data type.
  2502  	//   "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR.
  2503  	//   "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT.
  2504  	//   "DATA_TYPE_BOOLEAN" - Boolean data type.
  2505  	//   "DATA_TYPE_DECIMAL" - Decimal data type.
  2506  	//   "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR.
  2507  	//   "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type.
  2508  	//   "DATA_TYPE_BIT" - Bit data type.
  2509  	//   "DATA_TYPE_TINYINT" - Small integer(int8) data type.
  2510  	//   "DATA_TYPE_INTEGER" - Integer(int32) data type.
  2511  	//   "DATA_TYPE_BIGINT" - Long integer(int64) data type.
  2512  	//   "DATA_TYPE_FLOAT" - Float data type.
  2513  	//   "DATA_TYPE_REAL" - Real data type.
  2514  	//   "DATA_TYPE_NUMERIC" - Numeric data type.
  2515  	//   "DATA_TYPE_CHAR" - Char data type.
  2516  	//   "DATA_TYPE_VARCHAR" - Varchar data type.
  2517  	//   "DATA_TYPE_LONGVARCHAR" - Longvarchar data type.
  2518  	//   "DATA_TYPE_TIMESTAMP" - Timestamp data type.
  2519  	//   "DATA_TYPE_NCHAR" - Nchar data type.
  2520  	//   "DATA_TYPE_NVARCHAR" - Nvarchar data type.
  2521  	//   "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type.
  2522  	//   "DATA_TYPE_NULL" - Null data type.
  2523  	//   "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type.
  2524  	//   "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type.
  2525  	//   "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type.
  2526  	//   "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type.
  2527  	//   "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type.
  2528  	//   "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type.
  2529  	//   "DATA_TYPE_REF" - UNSUPPORTED! Binary data type.
  2530  	//   "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type.
  2531  	//   "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type.
  2532  	//   "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type.
  2533  	//   "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type.
  2534  	//   "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type.
  2535  	//   "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type.
  2536  	//   "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported.
  2537  	//   "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not
  2538  	// supported.
  2539  	//   "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP
  2540  	// instead.
  2541  	//   "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead.
  2542  	DataType string `json:"dataType,omitempty"`
  2543  	// DefaultValue: The following field specifies the default value of the
  2544  	// Parameter provided by the external system if a value is not provided.
  2545  	DefaultValue interface{} `json:"defaultValue,omitempty"`
  2546  	// Description: A brief description of the Parameter.
  2547  	Description string `json:"description,omitempty"`
  2548  	// JsonSchema: JsonSchema representation of this action's parameter
  2549  	JsonSchema *JsonSchema `json:"jsonSchema,omitempty"`
  2550  	// Nullable: Specifies whether a null value is allowed.
  2551  	Nullable bool `json:"nullable,omitempty"`
  2552  	// Parameter: Name of the Parameter.
  2553  	Parameter string `json:"parameter,omitempty"`
  2554  	// ForceSendFields is a list of field names (e.g. "DataType") to
  2555  	// unconditionally include in API requests. By default, fields with empty or
  2556  	// default values are omitted from API requests. See
  2557  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2558  	// details.
  2559  	ForceSendFields []string `json:"-"`
  2560  	// NullFields is a list of field names (e.g. "DataType") to include in API
  2561  	// requests with the JSON null value. By default, fields with empty values are
  2562  	// omitted from API requests. See
  2563  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2564  	NullFields []string `json:"-"`
  2565  }
  2566  
  2567  func (s *InputParameter) MarshalJSON() ([]byte, error) {
  2568  	type NoMethod InputParameter
  2569  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2570  }
  2571  
  2572  // Instance: Instance represents the interface for SLM services to actuate the
  2573  // state of control plane resources. Example Instance in JSON, where
  2574  // consumer-project-number=123456, producer-project-id=cloud-sql: ```json
  2575  // Instance: { "name":
  2576  // "projects/123456/locations/us-east1/instances/prod-instance", "create_time":
  2577  // { "seconds": 1526406431, }, "labels": { "env": "prod", "foo": "bar" },
  2578  // "state": READY, "software_versions": { "software_update":
  2579  // "cloud-sql-09-28-2018", }, "maintenance_policy_names": { "UpdatePolicy":
  2580  // "projects/123456/locations/us-east1/maintenancePolicies/prod-update-policy",
  2581  // } "tenant_project_id": "cloud-sql-test-tenant", "producer_metadata": {
  2582  // "cloud-sql-tier": "basic", "cloud-sql-instance-size": "1G", },
  2583  // "provisioned_resources": [ { "resource-type": "compute-instance",
  2584  // "resource-url":
  2585  // "https://www.googleapis.com/compute/v1/projects/cloud-sql/zones/us-east1-b/in
  2586  // stances/vm-1", } ], "maintenance_schedules": { "csa_rollout": {
  2587  // "start_time": { "seconds": 1526406431, }, "end_time": { "seconds":
  2588  // 1535406431, }, }, "ncsa_rollout": { "start_time": { "seconds": 1526406431,
  2589  // }, "end_time": { "seconds": 1535406431, }, } }, "consumer_defined_name":
  2590  // "my-sql-instance1", } ``` LINT.IfChange
  2591  type Instance struct {
  2592  	// ConsumerDefinedName: consumer_defined_name is the name of the instance set
  2593  	// by the service consumers. Generally this is different from the `name` field
  2594  	// which reperesents the system-assigned id of the instance which the service
  2595  	// consumers do not recognize. This is a required field for tenants onboarding
  2596  	// to Maintenance Window notifications
  2597  	// (go/slm-rollout-maintenance-policies#prerequisites).
  2598  	ConsumerDefinedName string `json:"consumerDefinedName,omitempty"`
  2599  	// CreateTime: Output only. Timestamp when the resource was created.
  2600  	CreateTime string `json:"createTime,omitempty"`
  2601  	// InstanceType: Optional. The instance_type of this instance of format:
  2602  	// projects/{project_number}/locations/{location_id}/instanceTypes/{instance_typ
  2603  	// e_id}. Instance Type represents a high-level tier or SKU of the service that
  2604  	// this instance belong to. When enabled(eg: Maintenance Rollout), Rollout uses
  2605  	// 'instance_type' along with 'software_versions' to determine whether instance
  2606  	// needs an update or not.
  2607  	InstanceType string `json:"instanceType,omitempty"`
  2608  	// Labels: Optional. Resource labels to represent user provided metadata. Each
  2609  	// label is a key-value pair, where both the key and the value are arbitrary
  2610  	// strings provided by the user.
  2611  	Labels map[string]string `json:"labels,omitempty"`
  2612  	// MaintenancePolicyNames: Optional. The MaintenancePolicies that have been
  2613  	// attached to the instance. The key must be of the type name of the oneof
  2614  	// policy name defined in MaintenancePolicy, and the referenced policy must
  2615  	// define the same policy type. For details, please refer to go/mr-user-guide.
  2616  	// Should not be set if maintenance_settings.maintenance_policies is set.
  2617  	MaintenancePolicyNames map[string]string `json:"maintenancePolicyNames,omitempty"`
  2618  	// MaintenanceSchedules: The MaintenanceSchedule contains the scheduling
  2619  	// information of published maintenance schedule with same key as
  2620  	// software_versions.
  2621  	MaintenanceSchedules map[string]MaintenanceSchedule `json:"maintenanceSchedules,omitempty"`
  2622  	// MaintenanceSettings: Optional. The MaintenanceSettings associated with
  2623  	// instance.
  2624  	MaintenanceSettings *MaintenanceSettings `json:"maintenanceSettings,omitempty"`
  2625  	// Name: Unique name of the resource. It uses the form:
  2626  	// `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
  2627  	// Note: This name is passed, stored and logged across the rollout system. So
  2628  	// use of consumer project_id or any other consumer PII in the name is strongly
  2629  	// discouraged for wipeout (go/wipeout) compliance. See
  2630  	// go/elysium/project_ids#storage-guidance for more details.
  2631  	Name string `json:"name,omitempty"`
  2632  	// NotificationParameters: Optional. notification_parameter are information
  2633  	// that service producers may like to include that is not relevant to Rollout.
  2634  	// This parameter will only be passed to Gamma and Cloud Logging for
  2635  	// notification/logging purpose.
  2636  	NotificationParameters map[string]NotificationParameter `json:"notificationParameters,omitempty"`
  2637  	// ProducerMetadata: Output only. Custom string attributes used primarily to
  2638  	// expose producer-specific information in monitoring dashboards. See
  2639  	// go/get-instance-metadata.
  2640  	ProducerMetadata map[string]string `json:"producerMetadata,omitempty"`
  2641  	// ProvisionedResources: Output only. The list of data plane resources
  2642  	// provisioned for this instance, e.g. compute VMs. See
  2643  	// go/get-instance-metadata.
  2644  	ProvisionedResources []*ProvisionedResource `json:"provisionedResources,omitempty"`
  2645  	// SlmInstanceTemplate: Link to the SLM instance template. Only populated when
  2646  	// updating SLM instances via SSA's Actuation service adaptor. Service
  2647  	// producers with custom control plane (e.g. Cloud SQL) doesn't need to
  2648  	// populate this field. Instead they should use software_versions.
  2649  	SlmInstanceTemplate string `json:"slmInstanceTemplate,omitempty"`
  2650  	// SloMetadata: Output only. SLO metadata for instance classification in the
  2651  	// Standardized dataplane SLO platform. See go/cloud-ssa-standard-slo for
  2652  	// feature description.
  2653  	SloMetadata *SloMetadata `json:"sloMetadata,omitempty"`
  2654  	// SoftwareVersions: Software versions that are used to deploy this instance.
  2655  	// This can be mutated by rollout services.
  2656  	SoftwareVersions map[string]string `json:"softwareVersions,omitempty"`
  2657  	// State: Output only. Current lifecycle state of the resource (e.g. if it's
  2658  	// being created or ready to use).
  2659  	//
  2660  	// Possible values:
  2661  	//   "STATE_UNSPECIFIED" - Unspecified state.
  2662  	//   "CREATING" - Instance is being created.
  2663  	//   "READY" - Instance has been created and is ready to use.
  2664  	//   "UPDATING" - Instance is being updated.
  2665  	//   "REPAIRING" - Instance is unheathy and under repair.
  2666  	//   "DELETING" - Instance is being deleted.
  2667  	//   "ERROR" - Instance encountered an error and is in indeterministic state.
  2668  	State string `json:"state,omitempty"`
  2669  	// TenantProjectId: Output only. ID of the associated GCP tenant project. See
  2670  	// go/get-instance-metadata.
  2671  	TenantProjectId string `json:"tenantProjectId,omitempty"`
  2672  	// UpdateTime: Output only. Timestamp when the resource was last modified.
  2673  	UpdateTime string `json:"updateTime,omitempty"`
  2674  	// ForceSendFields is a list of field names (e.g. "ConsumerDefinedName") to
  2675  	// unconditionally include in API requests. By default, fields with empty or
  2676  	// default values are omitted from API requests. See
  2677  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2678  	// details.
  2679  	ForceSendFields []string `json:"-"`
  2680  	// NullFields is a list of field names (e.g. "ConsumerDefinedName") to include
  2681  	// in API requests with the JSON null value. By default, fields with empty
  2682  	// values are omitted from API requests. See
  2683  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2684  	NullFields []string `json:"-"`
  2685  }
  2686  
  2687  func (s *Instance) MarshalJSON() ([]byte, error) {
  2688  	type NoMethod Instance
  2689  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2690  }
  2691  
  2692  // JMS: JMS message denotes the source of the event
  2693  type JMS struct {
  2694  	// Name: Optional. Name of the JMS source. i.e. queueName or topicName
  2695  	Name string `json:"name,omitempty"`
  2696  	// Type: Optional. Type of the JMS Source. i.e. Queue or Topic
  2697  	//
  2698  	// Possible values:
  2699  	//   "TYPE_UNSPECIFIED" - Default state.
  2700  	//   "QUEUE" - JMS Queue.
  2701  	//   "TOPIC" - JMS Topic.
  2702  	Type string `json:"type,omitempty"`
  2703  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  2704  	// include in API requests. By default, fields with empty or default values are
  2705  	// omitted from API requests. See
  2706  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2707  	// details.
  2708  	ForceSendFields []string `json:"-"`
  2709  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  2710  	// with the JSON null value. By default, fields with empty values are omitted
  2711  	// from API requests. See
  2712  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2713  	NullFields []string `json:"-"`
  2714  }
  2715  
  2716  func (s *JMS) MarshalJSON() ([]byte, error) {
  2717  	type NoMethod JMS
  2718  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2719  }
  2720  
  2721  // JsonSchema: JsonSchema representation of schema metadata
  2722  type JsonSchema struct {
  2723  	// Default: The default value of the field or object described by this schema.
  2724  	Default interface{} `json:"default,omitempty"`
  2725  	// Description: A description of this schema.
  2726  	Description string `json:"description,omitempty"`
  2727  	// Enum: Possible values for an enumeration. This works in conjunction with
  2728  	// `type` to represent types with a fixed set of legal values
  2729  	Enum []interface{} `json:"enum,omitempty"`
  2730  	// Format: Format of the value as per
  2731  	// https://json-schema.org/understanding-json-schema/reference/string.html#format
  2732  	Format string `json:"format,omitempty"`
  2733  	// Items: Schema that applies to array values, applicable only if this is of
  2734  	// type `array`.
  2735  	Items *JsonSchema `json:"items,omitempty"`
  2736  	// JdbcType: JDBC datatype of the field.
  2737  	//
  2738  	// Possible values:
  2739  	//   "DATA_TYPE_UNSPECIFIED" - Data type is not specified.
  2740  	//   "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER.
  2741  	//   "DATA_TYPE_SMALLINT" - Short integer(int16) data type.
  2742  	//   "DATA_TYPE_DOUBLE" - Double data type.
  2743  	//   "DATA_TYPE_DATE" - Date data type.
  2744  	//   "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP.
  2745  	//   "DATA_TYPE_TIME" - Time data type.
  2746  	//   "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR.
  2747  	//   "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT.
  2748  	//   "DATA_TYPE_BOOLEAN" - Boolean data type.
  2749  	//   "DATA_TYPE_DECIMAL" - Decimal data type.
  2750  	//   "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR.
  2751  	//   "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type.
  2752  	//   "DATA_TYPE_BIT" - Bit data type.
  2753  	//   "DATA_TYPE_TINYINT" - Small integer(int8) data type.
  2754  	//   "DATA_TYPE_INTEGER" - Integer(int32) data type.
  2755  	//   "DATA_TYPE_BIGINT" - Long integer(int64) data type.
  2756  	//   "DATA_TYPE_FLOAT" - Float data type.
  2757  	//   "DATA_TYPE_REAL" - Real data type.
  2758  	//   "DATA_TYPE_NUMERIC" - Numeric data type.
  2759  	//   "DATA_TYPE_CHAR" - Char data type.
  2760  	//   "DATA_TYPE_VARCHAR" - Varchar data type.
  2761  	//   "DATA_TYPE_LONGVARCHAR" - Longvarchar data type.
  2762  	//   "DATA_TYPE_TIMESTAMP" - Timestamp data type.
  2763  	//   "DATA_TYPE_NCHAR" - Nchar data type.
  2764  	//   "DATA_TYPE_NVARCHAR" - Nvarchar data type.
  2765  	//   "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type.
  2766  	//   "DATA_TYPE_NULL" - Null data type.
  2767  	//   "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type.
  2768  	//   "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type.
  2769  	//   "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type.
  2770  	//   "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type.
  2771  	//   "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type.
  2772  	//   "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type.
  2773  	//   "DATA_TYPE_REF" - UNSUPPORTED! Binary data type.
  2774  	//   "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type.
  2775  	//   "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type.
  2776  	//   "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type.
  2777  	//   "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type.
  2778  	//   "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type.
  2779  	//   "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type.
  2780  	//   "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported.
  2781  	//   "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not
  2782  	// supported.
  2783  	//   "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP
  2784  	// instead.
  2785  	//   "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead.
  2786  	JdbcType string `json:"jdbcType,omitempty"`
  2787  	// Properties: The child schemas, applicable only if this is of type `object`.
  2788  	// The key is the name of the property and the value is the json schema that
  2789  	// describes that property
  2790  	Properties map[string]JsonSchema `json:"properties,omitempty"`
  2791  	// Required: Whether this property is required.
  2792  	Required []string `json:"required,omitempty"`
  2793  	// Type: JSON Schema Validation: A Vocabulary for Structural Validation of JSON
  2794  	Type []string `json:"type,omitempty"`
  2795  	// ForceSendFields is a list of field names (e.g. "Default") to unconditionally
  2796  	// include in API requests. By default, fields with empty or default values are
  2797  	// omitted from API requests. See
  2798  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2799  	// details.
  2800  	ForceSendFields []string `json:"-"`
  2801  	// NullFields is a list of field names (e.g. "Default") to include in API
  2802  	// requests with the JSON null value. By default, fields with empty values are
  2803  	// omitted from API requests. See
  2804  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2805  	NullFields []string `json:"-"`
  2806  }
  2807  
  2808  func (s *JsonSchema) MarshalJSON() ([]byte, error) {
  2809  	type NoMethod JsonSchema
  2810  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2811  }
  2812  
  2813  // JwtClaims: JWT claims used for the jwt-bearer authorization grant.
  2814  type JwtClaims struct {
  2815  	// Audience: Value for the "aud" claim.
  2816  	Audience string `json:"audience,omitempty"`
  2817  	// Issuer: Value for the "iss" claim.
  2818  	Issuer string `json:"issuer,omitempty"`
  2819  	// Subject: Value for the "sub" claim.
  2820  	Subject string `json:"subject,omitempty"`
  2821  	// ForceSendFields is a list of field names (e.g. "Audience") to
  2822  	// unconditionally include in API requests. By default, fields with empty or
  2823  	// default values are omitted from API requests. See
  2824  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2825  	// details.
  2826  	ForceSendFields []string `json:"-"`
  2827  	// NullFields is a list of field names (e.g. "Audience") to include in API
  2828  	// requests with the JSON null value. By default, fields with empty values are
  2829  	// omitted from API requests. See
  2830  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2831  	NullFields []string `json:"-"`
  2832  }
  2833  
  2834  func (s *JwtClaims) MarshalJSON() ([]byte, error) {
  2835  	type NoMethod JwtClaims
  2836  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2837  }
  2838  
  2839  // ListActionsResponse: Response message for ListActions API
  2840  type ListActionsResponse struct {
  2841  	// Actions: list of actions
  2842  	Actions []*RuntimeActionSchema `json:"actions,omitempty"`
  2843  	// NextPageToken: token for next page
  2844  	NextPageToken string `json:"nextPageToken,omitempty"`
  2845  
  2846  	// ServerResponse contains the HTTP response code and headers from the server.
  2847  	googleapi.ServerResponse `json:"-"`
  2848  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  2849  	// include in API requests. By default, fields with empty or default values are
  2850  	// omitted from API requests. See
  2851  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2852  	// details.
  2853  	ForceSendFields []string `json:"-"`
  2854  	// NullFields is a list of field names (e.g. "Actions") to include in API
  2855  	// requests with the JSON null value. By default, fields with empty values are
  2856  	// omitted from API requests. See
  2857  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2858  	NullFields []string `json:"-"`
  2859  }
  2860  
  2861  func (s *ListActionsResponse) MarshalJSON() ([]byte, error) {
  2862  	type NoMethod ListActionsResponse
  2863  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2864  }
  2865  
  2866  // ListConnectionsResponse: Response message for
  2867  // ConnectorsService.ListConnections
  2868  type ListConnectionsResponse struct {
  2869  	// Connections: Connections.
  2870  	Connections []*Connection `json:"connections,omitempty"`
  2871  	// NextPageToken: Next page token.
  2872  	NextPageToken string `json:"nextPageToken,omitempty"`
  2873  	// Unreachable: Locations that could not be reached.
  2874  	Unreachable []string `json:"unreachable,omitempty"`
  2875  
  2876  	// ServerResponse contains the HTTP response code and headers from the server.
  2877  	googleapi.ServerResponse `json:"-"`
  2878  	// ForceSendFields is a list of field names (e.g. "Connections") to
  2879  	// unconditionally include in API requests. By default, fields with empty or
  2880  	// default values are omitted from API requests. See
  2881  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2882  	// details.
  2883  	ForceSendFields []string `json:"-"`
  2884  	// NullFields is a list of field names (e.g. "Connections") to include in API
  2885  	// requests with the JSON null value. By default, fields with empty values are
  2886  	// omitted from API requests. See
  2887  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2888  	NullFields []string `json:"-"`
  2889  }
  2890  
  2891  func (s *ListConnectionsResponse) MarshalJSON() ([]byte, error) {
  2892  	type NoMethod ListConnectionsResponse
  2893  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2894  }
  2895  
  2896  // ListConnectorVersionsResponse: Response message for
  2897  // Connectors.ListConnectorVersions.
  2898  type ListConnectorVersionsResponse struct {
  2899  	// ConnectorVersions: A list of connector versions.
  2900  	ConnectorVersions []*ConnectorVersion `json:"connectorVersions,omitempty"`
  2901  	// NextPageToken: Next page token.
  2902  	NextPageToken string `json:"nextPageToken,omitempty"`
  2903  	// Unreachable: Locations that could not be reached.
  2904  	Unreachable []string `json:"unreachable,omitempty"`
  2905  
  2906  	// ServerResponse contains the HTTP response code and headers from the server.
  2907  	googleapi.ServerResponse `json:"-"`
  2908  	// ForceSendFields is a list of field names (e.g. "ConnectorVersions") to
  2909  	// unconditionally include in API requests. By default, fields with empty or
  2910  	// default values are omitted from API requests. See
  2911  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2912  	// details.
  2913  	ForceSendFields []string `json:"-"`
  2914  	// NullFields is a list of field names (e.g. "ConnectorVersions") to include in
  2915  	// API requests with the JSON null value. By default, fields with empty values
  2916  	// are omitted from API requests. See
  2917  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2918  	NullFields []string `json:"-"`
  2919  }
  2920  
  2921  func (s *ListConnectorVersionsResponse) MarshalJSON() ([]byte, error) {
  2922  	type NoMethod ListConnectorVersionsResponse
  2923  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2924  }
  2925  
  2926  // ListConnectorsResponse: Response message for Connectors.ListConnectors.
  2927  type ListConnectorsResponse struct {
  2928  	// Connectors: A list of connectors.
  2929  	Connectors []*Connector `json:"connectors,omitempty"`
  2930  	// NextPageToken: Next page token.
  2931  	NextPageToken string `json:"nextPageToken,omitempty"`
  2932  	// Unreachable: Locations that could not be reached.
  2933  	Unreachable []string `json:"unreachable,omitempty"`
  2934  
  2935  	// ServerResponse contains the HTTP response code and headers from the server.
  2936  	googleapi.ServerResponse `json:"-"`
  2937  	// ForceSendFields is a list of field names (e.g. "Connectors") to
  2938  	// unconditionally include in API requests. By default, fields with empty or
  2939  	// default values are omitted from API requests. See
  2940  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2941  	// details.
  2942  	ForceSendFields []string `json:"-"`
  2943  	// NullFields is a list of field names (e.g. "Connectors") to include in API
  2944  	// requests with the JSON null value. By default, fields with empty values are
  2945  	// omitted from API requests. See
  2946  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2947  	NullFields []string `json:"-"`
  2948  }
  2949  
  2950  func (s *ListConnectorsResponse) MarshalJSON() ([]byte, error) {
  2951  	type NoMethod ListConnectorsResponse
  2952  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2953  }
  2954  
  2955  // ListCustomConnectorVersionsResponse: Response message for
  2956  // Connectors.ListCustomConnectorVersions.
  2957  type ListCustomConnectorVersionsResponse struct {
  2958  	// CustomConnectorVersions: A list of connector versions.
  2959  	CustomConnectorVersions []*CustomConnectorVersion `json:"customConnectorVersions,omitempty"`
  2960  	// NextPageToken: Next page token.
  2961  	NextPageToken string `json:"nextPageToken,omitempty"`
  2962  	// Unreachable: Locations that could not be reached.
  2963  	Unreachable []string `json:"unreachable,omitempty"`
  2964  
  2965  	// ServerResponse contains the HTTP response code and headers from the server.
  2966  	googleapi.ServerResponse `json:"-"`
  2967  	// ForceSendFields is a list of field names (e.g. "CustomConnectorVersions") to
  2968  	// unconditionally include in API requests. By default, fields with empty or
  2969  	// default values are omitted from API requests. See
  2970  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2971  	// details.
  2972  	ForceSendFields []string `json:"-"`
  2973  	// NullFields is a list of field names (e.g. "CustomConnectorVersions") to
  2974  	// include in API requests with the JSON null value. By default, fields with
  2975  	// empty values are omitted from API requests. See
  2976  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2977  	NullFields []string `json:"-"`
  2978  }
  2979  
  2980  func (s *ListCustomConnectorVersionsResponse) MarshalJSON() ([]byte, error) {
  2981  	type NoMethod ListCustomConnectorVersionsResponse
  2982  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2983  }
  2984  
  2985  // ListCustomConnectorsResponse: Response message for
  2986  // Connectors.ListCustomConnectors.
  2987  type ListCustomConnectorsResponse struct {
  2988  	// CustomConnectors: A list of customConnectors.
  2989  	CustomConnectors []*CustomConnector `json:"customConnectors,omitempty"`
  2990  	// NextPageToken: Next page token.
  2991  	NextPageToken string `json:"nextPageToken,omitempty"`
  2992  	// Unreachable: Locations that could not be reached.
  2993  	Unreachable []string `json:"unreachable,omitempty"`
  2994  
  2995  	// ServerResponse contains the HTTP response code and headers from the server.
  2996  	googleapi.ServerResponse `json:"-"`
  2997  	// ForceSendFields is a list of field names (e.g. "CustomConnectors") to
  2998  	// unconditionally include in API requests. By default, fields with empty or
  2999  	// default values are omitted from API requests. See
  3000  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3001  	// details.
  3002  	ForceSendFields []string `json:"-"`
  3003  	// NullFields is a list of field names (e.g. "CustomConnectors") to include in
  3004  	// API requests with the JSON null value. By default, fields with empty values
  3005  	// are omitted from API requests. See
  3006  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3007  	NullFields []string `json:"-"`
  3008  }
  3009  
  3010  func (s *ListCustomConnectorsResponse) MarshalJSON() ([]byte, error) {
  3011  	type NoMethod ListCustomConnectorsResponse
  3012  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3013  }
  3014  
  3015  // ListEndpointAttachmentsResponse: Response message for
  3016  // ConnectorsService.ListEndpointAttachments
  3017  type ListEndpointAttachmentsResponse struct {
  3018  	// EndpointAttachments: EndpointAttachments.
  3019  	EndpointAttachments []*EndpointAttachment `json:"endpointAttachments,omitempty"`
  3020  	// NextPageToken: Next page token.
  3021  	NextPageToken string `json:"nextPageToken,omitempty"`
  3022  	// Unreachable: Locations that could not be reached.
  3023  	Unreachable []string `json:"unreachable,omitempty"`
  3024  
  3025  	// ServerResponse contains the HTTP response code and headers from the server.
  3026  	googleapi.ServerResponse `json:"-"`
  3027  	// ForceSendFields is a list of field names (e.g. "EndpointAttachments") to
  3028  	// unconditionally include in API requests. By default, fields with empty or
  3029  	// default values are omitted from API requests. See
  3030  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3031  	// details.
  3032  	ForceSendFields []string `json:"-"`
  3033  	// NullFields is a list of field names (e.g. "EndpointAttachments") to include
  3034  	// in API requests with the JSON null value. By default, fields with empty
  3035  	// values are omitted from API requests. See
  3036  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3037  	NullFields []string `json:"-"`
  3038  }
  3039  
  3040  func (s *ListEndpointAttachmentsResponse) MarshalJSON() ([]byte, error) {
  3041  	type NoMethod ListEndpointAttachmentsResponse
  3042  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3043  }
  3044  
  3045  // ListEntityTypesResponse: Response message for ListEntityTypes API
  3046  type ListEntityTypesResponse struct {
  3047  	// EntityTypes: list of entity types
  3048  	EntityTypes []*RuntimeEntitySchema `json:"entityTypes,omitempty"`
  3049  	// NextPageToken: token for next page
  3050  	NextPageToken string `json:"nextPageToken,omitempty"`
  3051  
  3052  	// ServerResponse contains the HTTP response code and headers from the server.
  3053  	googleapi.ServerResponse `json:"-"`
  3054  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
  3055  	// unconditionally include in API requests. By default, fields with empty or
  3056  	// default values are omitted from API requests. See
  3057  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3058  	// details.
  3059  	ForceSendFields []string `json:"-"`
  3060  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
  3061  	// requests with the JSON null value. By default, fields with empty values are
  3062  	// omitted from API requests. See
  3063  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3064  	NullFields []string `json:"-"`
  3065  }
  3066  
  3067  func (s *ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
  3068  	type NoMethod ListEntityTypesResponse
  3069  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3070  }
  3071  
  3072  // ListEventSubscriptionsResponse: Response message for
  3073  // ConnectorsService.ListEventSubscriptions
  3074  type ListEventSubscriptionsResponse struct {
  3075  	// EventSubscriptions: Subscriptions.
  3076  	EventSubscriptions []*EventSubscription `json:"eventSubscriptions,omitempty"`
  3077  	// NextPageToken: Next page token.
  3078  	NextPageToken string `json:"nextPageToken,omitempty"`
  3079  	// Unreachable: Locations that could not be reached.
  3080  	Unreachable []string `json:"unreachable,omitempty"`
  3081  
  3082  	// ServerResponse contains the HTTP response code and headers from the server.
  3083  	googleapi.ServerResponse `json:"-"`
  3084  	// ForceSendFields is a list of field names (e.g. "EventSubscriptions") to
  3085  	// unconditionally include in API requests. By default, fields with empty or
  3086  	// default values are omitted from API requests. See
  3087  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3088  	// details.
  3089  	ForceSendFields []string `json:"-"`
  3090  	// NullFields is a list of field names (e.g. "EventSubscriptions") to include
  3091  	// in API requests with the JSON null value. By default, fields with empty
  3092  	// values are omitted from API requests. See
  3093  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3094  	NullFields []string `json:"-"`
  3095  }
  3096  
  3097  func (s *ListEventSubscriptionsResponse) MarshalJSON() ([]byte, error) {
  3098  	type NoMethod ListEventSubscriptionsResponse
  3099  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3100  }
  3101  
  3102  // ListEventTypesResponse: Response message for Connectors.ListEventTypes.
  3103  type ListEventTypesResponse struct {
  3104  	// EventTypes: A list of connector versions.
  3105  	EventTypes []*EventType `json:"eventTypes,omitempty"`
  3106  	// NextPageToken: Next page token.
  3107  	NextPageToken string `json:"nextPageToken,omitempty"`
  3108  
  3109  	// ServerResponse contains the HTTP response code and headers from the server.
  3110  	googleapi.ServerResponse `json:"-"`
  3111  	// ForceSendFields is a list of field names (e.g. "EventTypes") to
  3112  	// unconditionally include in API requests. By default, fields with empty or
  3113  	// default values are omitted from API requests. See
  3114  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3115  	// details.
  3116  	ForceSendFields []string `json:"-"`
  3117  	// NullFields is a list of field names (e.g. "EventTypes") to include in API
  3118  	// requests with the JSON null value. By default, fields with empty values are
  3119  	// omitted from API requests. See
  3120  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3121  	NullFields []string `json:"-"`
  3122  }
  3123  
  3124  func (s *ListEventTypesResponse) MarshalJSON() ([]byte, error) {
  3125  	type NoMethod ListEventTypesResponse
  3126  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3127  }
  3128  
  3129  // ListLocationsResponse: The response message for Locations.ListLocations.
  3130  type ListLocationsResponse struct {
  3131  	// Locations: A list of locations that matches the specified filter in the
  3132  	// request.
  3133  	Locations []*Location `json:"locations,omitempty"`
  3134  	// NextPageToken: The standard List next-page token.
  3135  	NextPageToken string `json:"nextPageToken,omitempty"`
  3136  
  3137  	// ServerResponse contains the HTTP response code and headers from the server.
  3138  	googleapi.ServerResponse `json:"-"`
  3139  	// ForceSendFields is a list of field names (e.g. "Locations") to
  3140  	// unconditionally include in API requests. By default, fields with empty or
  3141  	// default values are omitted from API requests. See
  3142  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3143  	// details.
  3144  	ForceSendFields []string `json:"-"`
  3145  	// NullFields is a list of field names (e.g. "Locations") to include in API
  3146  	// requests with the JSON null value. By default, fields with empty values are
  3147  	// omitted from API requests. See
  3148  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3149  	NullFields []string `json:"-"`
  3150  }
  3151  
  3152  func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
  3153  	type NoMethod ListLocationsResponse
  3154  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3155  }
  3156  
  3157  // ListManagedZonesResponse: Response message for
  3158  // ConnectorsService.ListManagedZones
  3159  type ListManagedZonesResponse struct {
  3160  	// ManagedZones: ManagedZones.
  3161  	ManagedZones []*ManagedZone `json:"managedZones,omitempty"`
  3162  	// NextPageToken: Next page token.
  3163  	NextPageToken string `json:"nextPageToken,omitempty"`
  3164  
  3165  	// ServerResponse contains the HTTP response code and headers from the server.
  3166  	googleapi.ServerResponse `json:"-"`
  3167  	// ForceSendFields is a list of field names (e.g. "ManagedZones") to
  3168  	// unconditionally include in API requests. By default, fields with empty or
  3169  	// default values are omitted from API requests. See
  3170  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3171  	// details.
  3172  	ForceSendFields []string `json:"-"`
  3173  	// NullFields is a list of field names (e.g. "ManagedZones") to include in API
  3174  	// requests with the JSON null value. By default, fields with empty values are
  3175  	// omitted from API requests. See
  3176  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3177  	NullFields []string `json:"-"`
  3178  }
  3179  
  3180  func (s *ListManagedZonesResponse) MarshalJSON() ([]byte, error) {
  3181  	type NoMethod ListManagedZonesResponse
  3182  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3183  }
  3184  
  3185  // ListOperationsResponse: The response message for Operations.ListOperations.
  3186  type ListOperationsResponse struct {
  3187  	// NextPageToken: The standard List next-page token.
  3188  	NextPageToken string `json:"nextPageToken,omitempty"`
  3189  	// Operations: A list of operations that matches the specified filter in the
  3190  	// request.
  3191  	Operations []*Operation `json:"operations,omitempty"`
  3192  
  3193  	// ServerResponse contains the HTTP response code and headers from the server.
  3194  	googleapi.ServerResponse `json:"-"`
  3195  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3196  	// unconditionally include in API requests. By default, fields with empty or
  3197  	// default values are omitted from API requests. See
  3198  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3199  	// details.
  3200  	ForceSendFields []string `json:"-"`
  3201  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3202  	// requests with the JSON null value. By default, fields with empty values are
  3203  	// omitted from API requests. See
  3204  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3205  	NullFields []string `json:"-"`
  3206  }
  3207  
  3208  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
  3209  	type NoMethod ListOperationsResponse
  3210  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3211  }
  3212  
  3213  // ListProvidersResponse: Response message for Connectors.ListProviders.
  3214  type ListProvidersResponse struct {
  3215  	// NextPageToken: Next page token.
  3216  	NextPageToken string `json:"nextPageToken,omitempty"`
  3217  	// Providers: A list of providers.
  3218  	Providers []*Provider `json:"providers,omitempty"`
  3219  	// Unreachable: Locations that could not be reached.
  3220  	Unreachable []string `json:"unreachable,omitempty"`
  3221  
  3222  	// ServerResponse contains the HTTP response code and headers from the server.
  3223  	googleapi.ServerResponse `json:"-"`
  3224  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3225  	// unconditionally include in API requests. By default, fields with empty or
  3226  	// default values are omitted from API requests. See
  3227  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3228  	// details.
  3229  	ForceSendFields []string `json:"-"`
  3230  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3231  	// requests with the JSON null value. By default, fields with empty values are
  3232  	// omitted from API requests. See
  3233  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3234  	NullFields []string `json:"-"`
  3235  }
  3236  
  3237  func (s *ListProvidersResponse) MarshalJSON() ([]byte, error) {
  3238  	type NoMethod ListProvidersResponse
  3239  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3240  }
  3241  
  3242  // ListRuntimeActionSchemasResponse: Response message for
  3243  // ConnectorsService.ListRuntimeActionSchemas.
  3244  type ListRuntimeActionSchemasResponse struct {
  3245  	// NextPageToken: Next page token.
  3246  	NextPageToken string `json:"nextPageToken,omitempty"`
  3247  	// RuntimeActionSchemas: Runtime action schemas.
  3248  	RuntimeActionSchemas []*RuntimeActionSchema `json:"runtimeActionSchemas,omitempty"`
  3249  
  3250  	// ServerResponse contains the HTTP response code and headers from the server.
  3251  	googleapi.ServerResponse `json:"-"`
  3252  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3253  	// unconditionally include in API requests. By default, fields with empty or
  3254  	// default values are omitted from API requests. See
  3255  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3256  	// details.
  3257  	ForceSendFields []string `json:"-"`
  3258  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3259  	// requests with the JSON null value. By default, fields with empty values are
  3260  	// omitted from API requests. See
  3261  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3262  	NullFields []string `json:"-"`
  3263  }
  3264  
  3265  func (s *ListRuntimeActionSchemasResponse) MarshalJSON() ([]byte, error) {
  3266  	type NoMethod ListRuntimeActionSchemasResponse
  3267  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3268  }
  3269  
  3270  // ListRuntimeEntitySchemasResponse: Response message for
  3271  // ConnectorsService.ListRuntimeEntitySchemas.
  3272  type ListRuntimeEntitySchemasResponse struct {
  3273  	// NextPageToken: Next page token.
  3274  	NextPageToken string `json:"nextPageToken,omitempty"`
  3275  	// RuntimeEntitySchemas: Runtime entity schemas.
  3276  	RuntimeEntitySchemas []*RuntimeEntitySchema `json:"runtimeEntitySchemas,omitempty"`
  3277  
  3278  	// ServerResponse contains the HTTP response code and headers from the server.
  3279  	googleapi.ServerResponse `json:"-"`
  3280  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3281  	// unconditionally include in API requests. By default, fields with empty or
  3282  	// default values are omitted from API requests. See
  3283  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3284  	// details.
  3285  	ForceSendFields []string `json:"-"`
  3286  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3287  	// requests with the JSON null value. By default, fields with empty values are
  3288  	// omitted from API requests. See
  3289  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3290  	NullFields []string `json:"-"`
  3291  }
  3292  
  3293  func (s *ListRuntimeEntitySchemasResponse) MarshalJSON() ([]byte, error) {
  3294  	type NoMethod ListRuntimeEntitySchemasResponse
  3295  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3296  }
  3297  
  3298  // ListenEventRequest: Expected request for ListenEvent API.
  3299  type ListenEventRequest struct {
  3300  	// Payload: Optional. Request payload.
  3301  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  3302  	// ForceSendFields is a list of field names (e.g. "Payload") to unconditionally
  3303  	// include in API requests. By default, fields with empty or default values are
  3304  	// omitted from API requests. See
  3305  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3306  	// details.
  3307  	ForceSendFields []string `json:"-"`
  3308  	// NullFields is a list of field names (e.g. "Payload") to include in API
  3309  	// requests with the JSON null value. By default, fields with empty values are
  3310  	// omitted from API requests. See
  3311  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3312  	NullFields []string `json:"-"`
  3313  }
  3314  
  3315  func (s *ListenEventRequest) MarshalJSON() ([]byte, error) {
  3316  	type NoMethod ListenEventRequest
  3317  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3318  }
  3319  
  3320  // ListenEventResponse: Expected response for ListenEvent API.
  3321  type ListenEventResponse struct {
  3322  	// ServerResponse contains the HTTP response code and headers from the server.
  3323  	googleapi.ServerResponse `json:"-"`
  3324  }
  3325  
  3326  // Location: A resource that represents a Google Cloud location.
  3327  type Location struct {
  3328  	// DisplayName: The friendly name for this location, typically a nearby city
  3329  	// name. For example, "Tokyo".
  3330  	DisplayName string `json:"displayName,omitempty"`
  3331  	// Labels: Cross-service attributes for the location. For example
  3332  	// {"cloud.googleapis.com/region": "us-east1"}
  3333  	Labels map[string]string `json:"labels,omitempty"`
  3334  	// LocationId: The canonical id for this location. For example: "us-east1".
  3335  	LocationId string `json:"locationId,omitempty"`
  3336  	// Metadata: Service-specific metadata. For example the available capacity at
  3337  	// the given location.
  3338  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3339  	// Name: Resource name for the location, which may vary between
  3340  	// implementations. For example:
  3341  	// "projects/example-project/locations/us-east1"
  3342  	Name string `json:"name,omitempty"`
  3343  
  3344  	// ServerResponse contains the HTTP response code and headers from the server.
  3345  	googleapi.ServerResponse `json:"-"`
  3346  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  3347  	// unconditionally include in API requests. By default, fields with empty or
  3348  	// default values are omitted from API requests. See
  3349  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3350  	// details.
  3351  	ForceSendFields []string `json:"-"`
  3352  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  3353  	// requests with the JSON null value. By default, fields with empty values are
  3354  	// omitted from API requests. See
  3355  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3356  	NullFields []string `json:"-"`
  3357  }
  3358  
  3359  func (s *Location) MarshalJSON() ([]byte, error) {
  3360  	type NoMethod Location
  3361  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3362  }
  3363  
  3364  // LockConfig: Determines whether or no a connection is locked. If locked, a
  3365  // reason must be specified.
  3366  type LockConfig struct {
  3367  	// Locked: Indicates whether or not the connection is locked.
  3368  	Locked bool `json:"locked,omitempty"`
  3369  	// Reason: Describes why a connection is locked.
  3370  	Reason string `json:"reason,omitempty"`
  3371  	// ForceSendFields is a list of field names (e.g. "Locked") to unconditionally
  3372  	// include in API requests. By default, fields with empty or default values are
  3373  	// omitted from API requests. See
  3374  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3375  	// details.
  3376  	ForceSendFields []string `json:"-"`
  3377  	// NullFields is a list of field names (e.g. "Locked") to include in API
  3378  	// requests with the JSON null value. By default, fields with empty values are
  3379  	// omitted from API requests. See
  3380  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3381  	NullFields []string `json:"-"`
  3382  }
  3383  
  3384  func (s *LockConfig) MarshalJSON() ([]byte, error) {
  3385  	type NoMethod LockConfig
  3386  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3387  }
  3388  
  3389  // LogicalExpression: Struct for representing boolean expressions.
  3390  type LogicalExpression struct {
  3391  	// FieldComparisons: A list of fields to be compared.
  3392  	FieldComparisons []*FieldComparison `json:"fieldComparisons,omitempty"`
  3393  	// LogicalExpressions: A list of nested conditions to be compared.
  3394  	LogicalExpressions []*LogicalExpression `json:"logicalExpressions,omitempty"`
  3395  	// LogicalOperator: The logical operator to use between the fields and
  3396  	// conditions.
  3397  	//
  3398  	// Possible values:
  3399  	//   "OPERATOR_UNSPECIFIED" - The default value.
  3400  	//   "AND" - AND operator; The conditions must all be true.
  3401  	//   "OR" - OR operator; At least one of the conditions must be true.
  3402  	LogicalOperator string `json:"logicalOperator,omitempty"`
  3403  	// ForceSendFields is a list of field names (e.g. "FieldComparisons") to
  3404  	// unconditionally include in API requests. By default, fields with empty or
  3405  	// default values are omitted from API requests. See
  3406  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3407  	// details.
  3408  	ForceSendFields []string `json:"-"`
  3409  	// NullFields is a list of field names (e.g. "FieldComparisons") to include in
  3410  	// API requests with the JSON null value. By default, fields with empty values
  3411  	// are omitted from API requests. See
  3412  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3413  	NullFields []string `json:"-"`
  3414  }
  3415  
  3416  func (s *LogicalExpression) MarshalJSON() ([]byte, error) {
  3417  	type NoMethod LogicalExpression
  3418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3419  }
  3420  
  3421  // MaintenancePolicy: Defines policies to service maintenance events.
  3422  type MaintenancePolicy struct {
  3423  	// CreateTime: Output only. The time when the resource was created.
  3424  	CreateTime string `json:"createTime,omitempty"`
  3425  	// Description: Optional. Description of what this policy is for. Create/Update
  3426  	// methods return INVALID_ARGUMENT if the length is greater than 512.
  3427  	Description string `json:"description,omitempty"`
  3428  	// Labels: Optional. Resource labels to represent user provided metadata. Each
  3429  	// label is a key-value pair, where both the key and the value are arbitrary
  3430  	// strings provided by the user.
  3431  	Labels map[string]string `json:"labels,omitempty"`
  3432  	// Name: Required. MaintenancePolicy name using the form:
  3433  	// `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenan
  3434  	// ce_policy_id}` where {project_id} refers to a GCP consumer project ID,
  3435  	// {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be
  3436  	// 1-63 characters long and match the regular expression
  3437  	// `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.
  3438  	Name string `json:"name,omitempty"`
  3439  	// State: Optional. The state of the policy.
  3440  	//
  3441  	// Possible values:
  3442  	//   "STATE_UNSPECIFIED" - Unspecified state.
  3443  	//   "READY" - Resource is ready to be used.
  3444  	//   "DELETING" - Resource is being deleted. It can no longer be attached to
  3445  	// instances.
  3446  	State string `json:"state,omitempty"`
  3447  	// UpdatePolicy: Maintenance policy applicable to instance update.
  3448  	UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"`
  3449  	// UpdateTime: Output only. The time when the resource was updated.
  3450  	UpdateTime string `json:"updateTime,omitempty"`
  3451  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3452  	// unconditionally include in API requests. By default, fields with empty or
  3453  	// default values are omitted from API requests. See
  3454  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3455  	// details.
  3456  	ForceSendFields []string `json:"-"`
  3457  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3458  	// requests with the JSON null value. By default, fields with empty values are
  3459  	// omitted from API requests. See
  3460  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3461  	NullFields []string `json:"-"`
  3462  }
  3463  
  3464  func (s *MaintenancePolicy) MarshalJSON() ([]byte, error) {
  3465  	type NoMethod MaintenancePolicy
  3466  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3467  }
  3468  
  3469  // MaintenanceSchedule: Maintenance schedule which is exposed to customer and
  3470  // potentially end user, indicating published upcoming future maintenance
  3471  // schedule
  3472  type MaintenanceSchedule struct {
  3473  	// CanReschedule: This field is deprecated, and will be always set to true
  3474  	// since reschedule can happen multiple times now. This field should not be
  3475  	// removed until all service producers remove this for their customers.
  3476  	CanReschedule bool `json:"canReschedule,omitempty"`
  3477  	// EndTime: The scheduled end time for the maintenance.
  3478  	EndTime string `json:"endTime,omitempty"`
  3479  	// RolloutManagementPolicy: The rollout management policy this maintenance
  3480  	// schedule is associated with. When doing reschedule update request, the
  3481  	// reschedule should be against this given policy.
  3482  	RolloutManagementPolicy string `json:"rolloutManagementPolicy,omitempty"`
  3483  	// ScheduleDeadlineTime: schedule_deadline_time is the time deadline any
  3484  	// schedule start time cannot go beyond, including reschedule. It's normally
  3485  	// the initial schedule start time plus maintenance window length (1 day or 1
  3486  	// week). Maintenance cannot be scheduled to start beyond this deadline.
  3487  	ScheduleDeadlineTime string `json:"scheduleDeadlineTime,omitempty"`
  3488  	// StartTime: The scheduled start time for the maintenance.
  3489  	StartTime string `json:"startTime,omitempty"`
  3490  	// ForceSendFields is a list of field names (e.g. "CanReschedule") to
  3491  	// unconditionally include in API requests. By default, fields with empty or
  3492  	// default values are omitted from API requests. See
  3493  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3494  	// details.
  3495  	ForceSendFields []string `json:"-"`
  3496  	// NullFields is a list of field names (e.g. "CanReschedule") to include in API
  3497  	// requests with the JSON null value. By default, fields with empty values are
  3498  	// omitted from API requests. See
  3499  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3500  	NullFields []string `json:"-"`
  3501  }
  3502  
  3503  func (s *MaintenanceSchedule) MarshalJSON() ([]byte, error) {
  3504  	type NoMethod MaintenanceSchedule
  3505  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3506  }
  3507  
  3508  // MaintenanceSettings: Maintenance settings associated with instance. Allows
  3509  // service producers and end users to assign settings that controls maintenance
  3510  // on this instance.
  3511  type MaintenanceSettings struct {
  3512  	// Exclude: Optional. Exclude instance from maintenance. When true, rollout
  3513  	// service will not attempt maintenance on the instance. Rollout service will
  3514  	// include the instance in reported rollout progress as not attempted.
  3515  	Exclude bool `json:"exclude,omitempty"`
  3516  	// IsRollback: Optional. If the update call is triggered from rollback, set the
  3517  	// value as true.
  3518  	IsRollback bool `json:"isRollback,omitempty"`
  3519  	// MaintenancePolicies: Optional. The MaintenancePolicies that have been
  3520  	// attached to the instance. The key must be of the type name of the oneof
  3521  	// policy name defined in MaintenancePolicy, and the embedded policy must
  3522  	// define the same policy type. For details, please refer to go/mr-user-guide.
  3523  	// Should not be set if maintenance_policy_names is set. If only the name is
  3524  	// needed, then only populate MaintenancePolicy.name.
  3525  	MaintenancePolicies map[string]MaintenancePolicy `json:"maintenancePolicies,omitempty"`
  3526  	// ForceSendFields is a list of field names (e.g. "Exclude") to unconditionally
  3527  	// include in API requests. By default, fields with empty or default values are
  3528  	// omitted from API requests. See
  3529  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3530  	// details.
  3531  	ForceSendFields []string `json:"-"`
  3532  	// NullFields is a list of field names (e.g. "Exclude") to include in API
  3533  	// requests with the JSON null value. By default, fields with empty values are
  3534  	// omitted from API requests. See
  3535  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3536  	NullFields []string `json:"-"`
  3537  }
  3538  
  3539  func (s *MaintenanceSettings) MarshalJSON() ([]byte, error) {
  3540  	type NoMethod MaintenanceSettings
  3541  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3542  }
  3543  
  3544  // MaintenanceWindow: MaintenanceWindow definition.
  3545  type MaintenanceWindow struct {
  3546  	// DailyCycle: Daily cycle.
  3547  	DailyCycle *DailyCycle `json:"dailyCycle,omitempty"`
  3548  	// WeeklyCycle: Weekly cycle.
  3549  	WeeklyCycle *WeeklyCycle `json:"weeklyCycle,omitempty"`
  3550  	// ForceSendFields is a list of field names (e.g. "DailyCycle") to
  3551  	// unconditionally include in API requests. By default, fields with empty or
  3552  	// default values are omitted from API requests. See
  3553  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3554  	// details.
  3555  	ForceSendFields []string `json:"-"`
  3556  	// NullFields is a list of field names (e.g. "DailyCycle") to include in API
  3557  	// requests with the JSON null value. By default, fields with empty values are
  3558  	// omitted from API requests. See
  3559  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3560  	NullFields []string `json:"-"`
  3561  }
  3562  
  3563  func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) {
  3564  	type NoMethod MaintenanceWindow
  3565  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3566  }
  3567  
  3568  // ManagedZone: represents the Connector's Managed Zone resource
  3569  type ManagedZone struct {
  3570  	// CreateTime: Output only. Created time.
  3571  	CreateTime string `json:"createTime,omitempty"`
  3572  	// Description: Optional. Description of the resource.
  3573  	Description string `json:"description,omitempty"`
  3574  	// Dns: Required. DNS Name of the resource
  3575  	Dns string `json:"dns,omitempty"`
  3576  	// Labels: Optional. Resource labels to represent user-provided metadata. Refer
  3577  	// to cloud documentation on labels for more details.
  3578  	// https://cloud.google.com/compute/docs/labeling-resources
  3579  	Labels map[string]string `json:"labels,omitempty"`
  3580  	// Name: Output only. Resource name of the Managed Zone. Format:
  3581  	// projects/{project}/locations/global/managedZones/{managed_zone}
  3582  	Name string `json:"name,omitempty"`
  3583  	// TargetProject: Required. The name of the Target Project
  3584  	TargetProject string `json:"targetProject,omitempty"`
  3585  	// TargetVpc: Required. The name of the Target Project VPC Network
  3586  	TargetVpc string `json:"targetVpc,omitempty"`
  3587  	// UpdateTime: Output only. Updated time.
  3588  	UpdateTime string `json:"updateTime,omitempty"`
  3589  
  3590  	// ServerResponse contains the HTTP response code and headers from the server.
  3591  	googleapi.ServerResponse `json:"-"`
  3592  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3593  	// unconditionally include in API requests. By default, fields with empty or
  3594  	// default values are omitted from API requests. See
  3595  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3596  	// details.
  3597  	ForceSendFields []string `json:"-"`
  3598  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3599  	// requests with the JSON null value. By default, fields with empty values are
  3600  	// omitted from API requests. See
  3601  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3602  	NullFields []string `json:"-"`
  3603  }
  3604  
  3605  func (s *ManagedZone) MarshalJSON() ([]byte, error) {
  3606  	type NoMethod ManagedZone
  3607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3608  }
  3609  
  3610  // NetworkConfig: Regional Network Config.
  3611  type NetworkConfig struct {
  3612  	// EgressIps: Output only. Egress IPs
  3613  	EgressIps []string `json:"egressIps,omitempty"`
  3614  	// EgressMode: Optional. Egress mode for the network.
  3615  	//
  3616  	// Possible values:
  3617  	//   "NETWORK_EGRESS_MODE_UNSPECIFIED" - Egress mode unspecified.
  3618  	//   "AUTO_IP" - Network egress through auto assigned IPs.
  3619  	//   "STATIC_IP" - Network egress through static IPs.
  3620  	EgressMode string `json:"egressMode,omitempty"`
  3621  	// ForceSendFields is a list of field names (e.g. "EgressIps") to
  3622  	// unconditionally include in API requests. By default, fields with empty or
  3623  	// default values are omitted from API requests. See
  3624  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3625  	// details.
  3626  	ForceSendFields []string `json:"-"`
  3627  	// NullFields is a list of field names (e.g. "EgressIps") to include in API
  3628  	// requests with the JSON null value. By default, fields with empty values are
  3629  	// omitted from API requests. See
  3630  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3631  	NullFields []string `json:"-"`
  3632  }
  3633  
  3634  func (s *NetworkConfig) MarshalJSON() ([]byte, error) {
  3635  	type NoMethod NetworkConfig
  3636  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3637  }
  3638  
  3639  // NodeConfig: Node configuration for the connection.
  3640  type NodeConfig struct {
  3641  	// MaxNodeCount: Maximum number of nodes in the runtime nodes.
  3642  	MaxNodeCount int64 `json:"maxNodeCount,omitempty"`
  3643  	// MinNodeCount: Minimum number of nodes in the runtime nodes.
  3644  	MinNodeCount int64 `json:"minNodeCount,omitempty"`
  3645  	// ForceSendFields is a list of field names (e.g. "MaxNodeCount") to
  3646  	// unconditionally include in API requests. By default, fields with empty or
  3647  	// default values are omitted from API requests. See
  3648  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3649  	// details.
  3650  	ForceSendFields []string `json:"-"`
  3651  	// NullFields is a list of field names (e.g. "MaxNodeCount") to include in API
  3652  	// requests with the JSON null value. By default, fields with empty values are
  3653  	// omitted from API requests. See
  3654  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3655  	NullFields []string `json:"-"`
  3656  }
  3657  
  3658  func (s *NodeConfig) MarshalJSON() ([]byte, error) {
  3659  	type NoMethod NodeConfig
  3660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3661  }
  3662  
  3663  // NodeSloMetadata: Node information for custom per-node SLO implementations.
  3664  // SSA does not support per-node SLO, but producers can populate per-node
  3665  // information in SloMetadata for custom precomputations. SSA Eligibility
  3666  // Exporter will emit per-node metric based on this information.
  3667  type NodeSloMetadata struct {
  3668  	// Location: The location of the node, if different from instance location.
  3669  	Location string `json:"location,omitempty"`
  3670  	// NodeId: The id of the node. This should be equal to
  3671  	// SaasInstanceNode.node_id.
  3672  	NodeId string `json:"nodeId,omitempty"`
  3673  	// PerSliEligibility: If present, this will override eligibility for the node
  3674  	// coming from instance or exclusions for specified SLIs.
  3675  	PerSliEligibility *PerSliSloEligibility `json:"perSliEligibility,omitempty"`
  3676  	// ForceSendFields is a list of field names (e.g. "Location") to
  3677  	// unconditionally include in API requests. By default, fields with empty or
  3678  	// default values are omitted from API requests. See
  3679  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3680  	// details.
  3681  	ForceSendFields []string `json:"-"`
  3682  	// NullFields is a list of field names (e.g. "Location") to include in API
  3683  	// requests with the JSON null value. By default, fields with empty values are
  3684  	// omitted from API requests. See
  3685  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3686  	NullFields []string `json:"-"`
  3687  }
  3688  
  3689  func (s *NodeSloMetadata) MarshalJSON() ([]byte, error) {
  3690  	type NoMethod NodeSloMetadata
  3691  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3692  }
  3693  
  3694  // NotificationParameter: Contains notification related data.
  3695  type NotificationParameter struct {
  3696  	// Values: Optional. Array of string values. e.g. instance's replica
  3697  	// information.
  3698  	Values []string `json:"values,omitempty"`
  3699  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  3700  	// include in API requests. By default, fields with empty or default values are
  3701  	// omitted from API requests. See
  3702  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3703  	// details.
  3704  	ForceSendFields []string `json:"-"`
  3705  	// NullFields is a list of field names (e.g. "Values") to include in API
  3706  	// requests with the JSON null value. By default, fields with empty values are
  3707  	// omitted from API requests. See
  3708  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3709  	NullFields []string `json:"-"`
  3710  }
  3711  
  3712  func (s *NotificationParameter) MarshalJSON() ([]byte, error) {
  3713  	type NoMethod NotificationParameter
  3714  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3715  }
  3716  
  3717  // Oauth2AuthCodeFlow: Parameters to support Oauth 2.0 Auth Code Grant
  3718  // Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for
  3719  // more details.
  3720  type Oauth2AuthCodeFlow struct {
  3721  	// AuthCode: Authorization code to be exchanged for access and refresh tokens.
  3722  	AuthCode string `json:"authCode,omitempty"`
  3723  	// AuthUri: Auth URL for Authorization Code Flow
  3724  	AuthUri string `json:"authUri,omitempty"`
  3725  	// ClientId: Client ID for user-provided OAuth app.
  3726  	ClientId string `json:"clientId,omitempty"`
  3727  	// ClientSecret: Client secret for user-provided OAuth app.
  3728  	ClientSecret *Secret `json:"clientSecret,omitempty"`
  3729  	// EnablePkce: Whether to enable PKCE when the user performs the auth code
  3730  	// flow.
  3731  	EnablePkce bool `json:"enablePkce,omitempty"`
  3732  	// PkceVerifier: PKCE verifier to be used during the auth code exchange.
  3733  	PkceVerifier string `json:"pkceVerifier,omitempty"`
  3734  	// RedirectUri: Redirect URI to be provided during the auth code exchange.
  3735  	RedirectUri string `json:"redirectUri,omitempty"`
  3736  	// Scopes: Scopes the connection will request when the user performs the auth
  3737  	// code flow.
  3738  	Scopes []string `json:"scopes,omitempty"`
  3739  	// ForceSendFields is a list of field names (e.g. "AuthCode") to
  3740  	// unconditionally include in API requests. By default, fields with empty or
  3741  	// default values are omitted from API requests. See
  3742  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3743  	// details.
  3744  	ForceSendFields []string `json:"-"`
  3745  	// NullFields is a list of field names (e.g. "AuthCode") to include in API
  3746  	// requests with the JSON null value. By default, fields with empty values are
  3747  	// omitted from API requests. See
  3748  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3749  	NullFields []string `json:"-"`
  3750  }
  3751  
  3752  func (s *Oauth2AuthCodeFlow) MarshalJSON() ([]byte, error) {
  3753  	type NoMethod Oauth2AuthCodeFlow
  3754  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3755  }
  3756  
  3757  // Oauth2ClientCredentials: Parameters to support Oauth 2.0 Client Credentials
  3758  // Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4
  3759  // for more details.
  3760  type Oauth2ClientCredentials struct {
  3761  	// ClientId: The client identifier.
  3762  	ClientId string `json:"clientId,omitempty"`
  3763  	// ClientSecret: Secret version reference containing the client secret.
  3764  	ClientSecret *Secret `json:"clientSecret,omitempty"`
  3765  	// ForceSendFields is a list of field names (e.g. "ClientId") to
  3766  	// unconditionally include in API requests. By default, fields with empty or
  3767  	// default values are omitted from API requests. See
  3768  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3769  	// details.
  3770  	ForceSendFields []string `json:"-"`
  3771  	// NullFields is a list of field names (e.g. "ClientId") to include in API
  3772  	// requests with the JSON null value. By default, fields with empty values are
  3773  	// omitted from API requests. See
  3774  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3775  	NullFields []string `json:"-"`
  3776  }
  3777  
  3778  func (s *Oauth2ClientCredentials) MarshalJSON() ([]byte, error) {
  3779  	type NoMethod Oauth2ClientCredentials
  3780  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3781  }
  3782  
  3783  // Oauth2JwtBearer: Parameters to support JSON Web Token (JWT) Profile for
  3784  // Oauth 2.0 Authorization Grant based authentication. See
  3785  // https://tools.ietf.org/html/rfc7523 for more details.
  3786  type Oauth2JwtBearer struct {
  3787  	// ClientKey: Secret version reference containing a PKCS#8 PEM-encoded private
  3788  	// key associated with the Client Certificate. This private key will be used to
  3789  	// sign JWTs used for the jwt-bearer authorization grant. Specified in the form
  3790  	// as: `projects/*/secrets/*/versions/*`.
  3791  	ClientKey *Secret `json:"clientKey,omitempty"`
  3792  	// JwtClaims: JwtClaims providers fields to generate the token.
  3793  	JwtClaims *JwtClaims `json:"jwtClaims,omitempty"`
  3794  	// ForceSendFields is a list of field names (e.g. "ClientKey") to
  3795  	// unconditionally include in API requests. By default, fields with empty or
  3796  	// default values are omitted from API requests. See
  3797  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3798  	// details.
  3799  	ForceSendFields []string `json:"-"`
  3800  	// NullFields is a list of field names (e.g. "ClientKey") to include in API
  3801  	// requests with the JSON null value. By default, fields with empty values are
  3802  	// omitted from API requests. See
  3803  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3804  	NullFields []string `json:"-"`
  3805  }
  3806  
  3807  func (s *Oauth2JwtBearer) MarshalJSON() ([]byte, error) {
  3808  	type NoMethod Oauth2JwtBearer
  3809  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3810  }
  3811  
  3812  // Operation: This resource represents a long-running operation that is the
  3813  // result of a network API call.
  3814  type Operation struct {
  3815  	// Done: If the value is `false`, it means the operation is still in progress.
  3816  	// If `true`, the operation is completed, and either `error` or `response` is
  3817  	// available.
  3818  	Done bool `json:"done,omitempty"`
  3819  	// Error: The error result of the operation in case of failure or cancellation.
  3820  	Error *Status `json:"error,omitempty"`
  3821  	// Metadata: Service-specific metadata associated with the operation. It
  3822  	// typically contains progress information and common metadata such as create
  3823  	// time. Some services might not provide such metadata. Any method that returns
  3824  	// a long-running operation should document the metadata type, if any.
  3825  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3826  	// Name: The server-assigned name, which is only unique within the same service
  3827  	// that originally returns it. If you use the default HTTP mapping, the `name`
  3828  	// should be a resource name ending with `operations/{unique_id}`.
  3829  	Name string `json:"name,omitempty"`
  3830  	// Response: The normal, successful response of the operation. If the original
  3831  	// method returns no data on success, such as `Delete`, the response is
  3832  	// `google.protobuf.Empty`. If the original method is standard
  3833  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  3834  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  3835  	// original method name. For example, if the original method name is
  3836  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  3837  	Response googleapi.RawMessage `json:"response,omitempty"`
  3838  
  3839  	// ServerResponse contains the HTTP response code and headers from the server.
  3840  	googleapi.ServerResponse `json:"-"`
  3841  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  3842  	// include in API requests. By default, fields with empty or default values are
  3843  	// omitted from API requests. See
  3844  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3845  	// details.
  3846  	ForceSendFields []string `json:"-"`
  3847  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  3848  	// with the JSON null value. By default, fields with empty values are omitted
  3849  	// from API requests. See
  3850  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3851  	NullFields []string `json:"-"`
  3852  }
  3853  
  3854  func (s *Operation) MarshalJSON() ([]byte, error) {
  3855  	type NoMethod Operation
  3856  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3857  }
  3858  
  3859  // OperationMetadata: Represents the metadata of the long-running operation.
  3860  type OperationMetadata struct {
  3861  	// ApiVersion: Output only. API version used to start the operation.
  3862  	ApiVersion string `json:"apiVersion,omitempty"`
  3863  	// CreateTime: Output only. The time the operation was created.
  3864  	CreateTime string `json:"createTime,omitempty"`
  3865  	// EndTime: Output only. The time the operation finished running.
  3866  	EndTime string `json:"endTime,omitempty"`
  3867  	// RequestedCancellation: Output only. Identifies whether the user has
  3868  	// requested cancellation of the operation. Operations that have successfully
  3869  	// been cancelled have Operation.error value with a google.rpc.Status.code of
  3870  	// 1, corresponding to `Code.CANCELLED`.
  3871  	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
  3872  	// StatusMessage: Output only. Human-readable status of the operation, if any.
  3873  	StatusMessage string `json:"statusMessage,omitempty"`
  3874  	// Target: Output only. Server-defined resource path for the target of the
  3875  	// operation.
  3876  	Target string `json:"target,omitempty"`
  3877  	// Verb: Output only. Name of the verb executed by the operation.
  3878  	Verb string `json:"verb,omitempty"`
  3879  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  3880  	// unconditionally include in API requests. By default, fields with empty or
  3881  	// default values are omitted from API requests. See
  3882  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3883  	// details.
  3884  	ForceSendFields []string `json:"-"`
  3885  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  3886  	// requests with the JSON null value. By default, fields with empty values are
  3887  	// omitted from API requests. See
  3888  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3889  	NullFields []string `json:"-"`
  3890  }
  3891  
  3892  func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
  3893  	type NoMethod OperationMetadata
  3894  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3895  }
  3896  
  3897  // PerSliSloEligibility: PerSliSloEligibility is a mapping from an SLI name to
  3898  // eligibility.
  3899  type PerSliSloEligibility struct {
  3900  	// Eligibilities: An entry in the eligibilities map specifies an eligibility
  3901  	// for a particular SLI for the given instance. The SLI key in the name must be
  3902  	// a valid SLI name specified in the Eligibility Exporter binary flags
  3903  	// otherwise an error will be emitted by Eligibility Exporter and the oncaller
  3904  	// will be alerted. If an SLI has been defined in the binary flags but the
  3905  	// eligibilities map does not contain it, the corresponding SLI time series
  3906  	// will not be emitted by the Eligibility Exporter. This ensures a smooth
  3907  	// rollout and compatibility between the data produced by different versions of
  3908  	// the Eligibility Exporters. If eligibilities map contains a key for an SLI
  3909  	// which has not been declared in the binary flags, there will be an error
  3910  	// message emitted in the Eligibility Exporter log and the metric for the SLI
  3911  	// in question will not be emitted.
  3912  	Eligibilities map[string]SloEligibility `json:"eligibilities,omitempty"`
  3913  	// ForceSendFields is a list of field names (e.g. "Eligibilities") to
  3914  	// unconditionally include in API requests. By default, fields with empty or
  3915  	// default values are omitted from API requests. See
  3916  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3917  	// details.
  3918  	ForceSendFields []string `json:"-"`
  3919  	// NullFields is a list of field names (e.g. "Eligibilities") to include in API
  3920  	// requests with the JSON null value. By default, fields with empty values are
  3921  	// omitted from API requests. See
  3922  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3923  	NullFields []string `json:"-"`
  3924  }
  3925  
  3926  func (s *PerSliSloEligibility) MarshalJSON() ([]byte, error) {
  3927  	type NoMethod PerSliSloEligibility
  3928  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3929  }
  3930  
  3931  // Policy: An Identity and Access Management (IAM) policy, which specifies
  3932  // access controls for Google Cloud resources. A `Policy` is a collection of
  3933  // `bindings`. A `binding` binds one or more `members`, or principals, to a
  3934  // single `role`. Principals can be user accounts, service accounts, Google
  3935  // groups, and domains (such as G Suite). A `role` is a named list of
  3936  // permissions; each `role` can be an IAM predefined role or a user-created
  3937  // custom role. For some types of Google Cloud resources, a `binding` can also
  3938  // specify a `condition`, which is a logical expression that allows access to a
  3939  // resource only if the expression evaluates to `true`. A condition can add
  3940  // constraints based on attributes of the request, the resource, or both. To
  3941  // learn which resources support conditions in their IAM policies, see the IAM
  3942  // documentation
  3943  // (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON
  3944  // example:** ``` { "bindings": [ { "role":
  3945  // "roles/resourcemanager.organizationAdmin", "members": [
  3946  // "user:mike@example.com", "group:admins@example.com", "domain:google.com",
  3947  // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":
  3948  // "roles/resourcemanager.organizationViewer", "members": [
  3949  // "user:eve@example.com" ], "condition": { "title": "expirable access",
  3950  // "description": "Does not grant access after Sep 2020", "expression":
  3951  // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":
  3952  // "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: -
  3953  // members: - user:mike@example.com - group:admins@example.com -
  3954  // domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
  3955  // role: roles/resourcemanager.organizationAdmin - members: -
  3956  // user:eve@example.com role: roles/resourcemanager.organizationViewer
  3957  // condition: title: expirable access description: Does not grant access after
  3958  // Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
  3959  // etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features,
  3960  // see the IAM documentation (https://cloud.google.com/iam/docs/).
  3961  type Policy struct {
  3962  	// AuditConfigs: Specifies cloud audit logging configuration for this policy.
  3963  	AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
  3964  	// Bindings: Associates a list of `members`, or principals, with a `role`.
  3965  	// Optionally, may specify a `condition` that determines how and when the
  3966  	// `bindings` are applied. Each of the `bindings` must contain at least one
  3967  	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
  3968  	// up to 250 of these principals can be Google groups. Each occurrence of a
  3969  	// principal counts towards these limits. For example, if the `bindings` grant
  3970  	// 50 different roles to `user:alice@example.com`, and not to any other
  3971  	// principal, then you can add another 1,450 principals to the `bindings` in
  3972  	// the `Policy`.
  3973  	Bindings []*Binding `json:"bindings,omitempty"`
  3974  	// Etag: `etag` is used for optimistic concurrency control as a way to help
  3975  	// prevent simultaneous updates of a policy from overwriting each other. It is
  3976  	// strongly suggested that systems make use of the `etag` in the
  3977  	// read-modify-write cycle to perform policy updates in order to avoid race
  3978  	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
  3979  	// systems are expected to put that etag in the request to `setIamPolicy` to
  3980  	// ensure that their change will be applied to the same version of the policy.
  3981  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  3982  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  3983  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  3984  	// the conditions in the version `3` policy are lost.
  3985  	Etag string `json:"etag,omitempty"`
  3986  	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
  3987  	// `3`. Requests that specify an invalid value are rejected. Any operation that
  3988  	// affects conditional role bindings must specify version `3`. This requirement
  3989  	// applies to the following operations: * Getting a policy that includes a
  3990  	// conditional role binding * Adding a conditional role binding to a policy *
  3991  	// Changing a conditional role binding in a policy * Removing any role binding,
  3992  	// with or without a condition, from a policy that includes conditions
  3993  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  3994  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  3995  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  3996  	// the conditions in the version `3` policy are lost. If a policy does not
  3997  	// include any conditions, operations on that policy may specify any valid
  3998  	// version or leave the field unset. To learn which resources support
  3999  	// conditions in their IAM policies, see the IAM documentation
  4000  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  4001  	Version int64 `json:"version,omitempty"`
  4002  
  4003  	// ServerResponse contains the HTTP response code and headers from the server.
  4004  	googleapi.ServerResponse `json:"-"`
  4005  	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
  4006  	// unconditionally include in API requests. By default, fields with empty or
  4007  	// default values are omitted from API requests. See
  4008  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4009  	// details.
  4010  	ForceSendFields []string `json:"-"`
  4011  	// NullFields is a list of field names (e.g. "AuditConfigs") to include in API
  4012  	// requests with the JSON null value. By default, fields with empty values are
  4013  	// omitted from API requests. See
  4014  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4015  	NullFields []string `json:"-"`
  4016  }
  4017  
  4018  func (s *Policy) MarshalJSON() ([]byte, error) {
  4019  	type NoMethod Policy
  4020  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4021  }
  4022  
  4023  // Provider: Provider indicates the owner who provides the connectors.
  4024  type Provider struct {
  4025  	// CreateTime: Output only. Created time.
  4026  	CreateTime string `json:"createTime,omitempty"`
  4027  	// Description: Output only. Description of the resource.
  4028  	Description string `json:"description,omitempty"`
  4029  	// DisplayName: Output only. Display name.
  4030  	DisplayName string `json:"displayName,omitempty"`
  4031  	// DocumentationUri: Output only. Link to documentation page.
  4032  	DocumentationUri string `json:"documentationUri,omitempty"`
  4033  	// ExternalUri: Output only. Link to external page.
  4034  	ExternalUri string `json:"externalUri,omitempty"`
  4035  	// Labels: Output only. Resource labels to represent user-provided metadata.
  4036  	// Refer to cloud documentation on labels for more details.
  4037  	// https://cloud.google.com/compute/docs/labeling-resources
  4038  	Labels map[string]string `json:"labels,omitempty"`
  4039  	// LaunchStage: Output only. Flag to mark the version indicating the launch
  4040  	// stage.
  4041  	//
  4042  	// Possible values:
  4043  	//   "LAUNCH_STAGE_UNSPECIFIED" - LAUNCH_STAGE_UNSPECIFIED.
  4044  	//   "PREVIEW" - PREVIEW.
  4045  	//   "GA" - GA.
  4046  	//   "DEPRECATED" - DEPRECATED.
  4047  	//   "PRIVATE_PREVIEW" - PRIVATE_PREVIEW.
  4048  	LaunchStage string `json:"launchStage,omitempty"`
  4049  	// Name: Output only. Resource name of the Provider. Format:
  4050  	// projects/{project}/locations/{location}/providers/{provider} Only global
  4051  	// location is supported for Provider resource.
  4052  	Name string `json:"name,omitempty"`
  4053  	// UpdateTime: Output only. Updated time.
  4054  	UpdateTime string `json:"updateTime,omitempty"`
  4055  	// WebAssetsLocation: Output only. Cloud storage location of icons etc consumed
  4056  	// by UI.
  4057  	WebAssetsLocation string `json:"webAssetsLocation,omitempty"`
  4058  
  4059  	// ServerResponse contains the HTTP response code and headers from the server.
  4060  	googleapi.ServerResponse `json:"-"`
  4061  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4062  	// unconditionally include in API requests. By default, fields with empty or
  4063  	// default values are omitted from API requests. See
  4064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4065  	// details.
  4066  	ForceSendFields []string `json:"-"`
  4067  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4068  	// requests with the JSON null value. By default, fields with empty values are
  4069  	// omitted from API requests. See
  4070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4071  	NullFields []string `json:"-"`
  4072  }
  4073  
  4074  func (s *Provider) MarshalJSON() ([]byte, error) {
  4075  	type NoMethod Provider
  4076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4077  }
  4078  
  4079  // ProvisionedResource: Describes provisioned dataplane resources.
  4080  type ProvisionedResource struct {
  4081  	// ResourceType: Type of the resource. This can be either a GCP resource or a
  4082  	// custom one (e.g. another cloud provider's VM). For GCP compute resources use
  4083  	// singular form of the names listed in GCP compute API documentation
  4084  	// (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed with
  4085  	// 'compute-', for example: 'compute-instance', 'compute-disk',
  4086  	// 'compute-autoscaler'.
  4087  	ResourceType string `json:"resourceType,omitempty"`
  4088  	// ResourceUrl: URL identifying the resource, e.g.
  4089  	// "https://www.googleapis.com/compute/v1/projects/...)".
  4090  	ResourceUrl string `json:"resourceUrl,omitempty"`
  4091  	// ForceSendFields is a list of field names (e.g. "ResourceType") to
  4092  	// unconditionally include in API requests. By default, fields with empty or
  4093  	// default values are omitted from API requests. See
  4094  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4095  	// details.
  4096  	ForceSendFields []string `json:"-"`
  4097  	// NullFields is a list of field names (e.g. "ResourceType") to include in API
  4098  	// requests with the JSON null value. By default, fields with empty values are
  4099  	// omitted from API requests. See
  4100  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4101  	NullFields []string `json:"-"`
  4102  }
  4103  
  4104  func (s *ProvisionedResource) MarshalJSON() ([]byte, error) {
  4105  	type NoMethod ProvisionedResource
  4106  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4107  }
  4108  
  4109  // RefreshConnectionSchemaMetadataRequest: Request message for
  4110  // ConnectorsService.RefreshConnectionSchemaMetadata.
  4111  type RefreshConnectionSchemaMetadataRequest struct {
  4112  }
  4113  
  4114  // RegionalSettings: Regional Settings details.
  4115  type RegionalSettings struct {
  4116  	// EncryptionConfig: Optional. Regional encryption config to hold CMEK details.
  4117  	EncryptionConfig *EncryptionConfig `json:"encryptionConfig,omitempty"`
  4118  	// Name: Output only. Resource name of the Connection. Format:
  4119  	// projects/{project}/locations/{location}/regionalSettings
  4120  	Name string `json:"name,omitempty"`
  4121  	// NetworkConfig: Optional. Regional network config.
  4122  	NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"`
  4123  	// Provisioned: Output only. Specifies whether the region is provisioned.
  4124  	Provisioned bool `json:"provisioned,omitempty"`
  4125  
  4126  	// ServerResponse contains the HTTP response code and headers from the server.
  4127  	googleapi.ServerResponse `json:"-"`
  4128  	// ForceSendFields is a list of field names (e.g. "EncryptionConfig") to
  4129  	// unconditionally include in API requests. By default, fields with empty or
  4130  	// default values are omitted from API requests. See
  4131  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4132  	// details.
  4133  	ForceSendFields []string `json:"-"`
  4134  	// NullFields is a list of field names (e.g. "EncryptionConfig") to include in
  4135  	// API requests with the JSON null value. By default, fields with empty values
  4136  	// are omitted from API requests. See
  4137  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4138  	NullFields []string `json:"-"`
  4139  }
  4140  
  4141  func (s *RegionalSettings) MarshalJSON() ([]byte, error) {
  4142  	type NoMethod RegionalSettings
  4143  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4144  }
  4145  
  4146  // RepairEventingRequest: Request message for ConnectorsService.RepairEventing
  4147  type RepairEventingRequest struct {
  4148  }
  4149  
  4150  // Resource: Resource definition
  4151  type Resource struct {
  4152  	// PathTemplate: Template to uniquely represent a Google Cloud resource in a
  4153  	// format IAM expects This is a template that can have references to other
  4154  	// values provided in the config variable template.
  4155  	PathTemplate string `json:"pathTemplate,omitempty"`
  4156  	// Type: Different types of resource supported.
  4157  	//
  4158  	// Possible values:
  4159  	//   "TYPE_UNSPECIFIED" - Value type is not specified.
  4160  	//   "GCP_PROJECT" - Google Cloud Project Resource.
  4161  	//   "GCP_RESOURCE" - Any Google Cloud Resource which is identified uniquely by
  4162  	// IAM.
  4163  	//   "GCP_SECRETMANAGER_SECRET" - Google Cloud Secret Resource.
  4164  	//   "GCP_SECRETMANAGER_SECRET_VERSION" - Google Cloud Secret Version Resource.
  4165  	Type string `json:"type,omitempty"`
  4166  	// ForceSendFields is a list of field names (e.g. "PathTemplate") to
  4167  	// unconditionally include in API requests. By default, fields with empty or
  4168  	// default values are omitted from API requests. See
  4169  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4170  	// details.
  4171  	ForceSendFields []string `json:"-"`
  4172  	// NullFields is a list of field names (e.g. "PathTemplate") to include in API
  4173  	// requests with the JSON null value. By default, fields with empty values are
  4174  	// omitted from API requests. See
  4175  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4176  	NullFields []string `json:"-"`
  4177  }
  4178  
  4179  func (s *Resource) MarshalJSON() ([]byte, error) {
  4180  	type NoMethod Resource
  4181  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4182  }
  4183  
  4184  // ResourceLimits: Resource limits defined for connection pods of a given
  4185  // connector type.
  4186  type ResourceLimits struct {
  4187  	// Cpu: Output only. CPU limit.
  4188  	Cpu string `json:"cpu,omitempty"`
  4189  	// Memory: Output only. Memory limit.
  4190  	Memory string `json:"memory,omitempty"`
  4191  	// ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally
  4192  	// include in API requests. By default, fields with empty or default values are
  4193  	// omitted from API requests. See
  4194  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4195  	// details.
  4196  	ForceSendFields []string `json:"-"`
  4197  	// NullFields is a list of field names (e.g. "Cpu") to include in API requests
  4198  	// with the JSON null value. By default, fields with empty values are omitted
  4199  	// from API requests. See
  4200  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4201  	NullFields []string `json:"-"`
  4202  }
  4203  
  4204  func (s *ResourceLimits) MarshalJSON() ([]byte, error) {
  4205  	type NoMethod ResourceLimits
  4206  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4207  }
  4208  
  4209  // ResourceRequests: Resource requests defined for connection pods of a given
  4210  // connector type.
  4211  type ResourceRequests struct {
  4212  	// Cpu: Output only. CPU request.
  4213  	Cpu string `json:"cpu,omitempty"`
  4214  	// Memory: Output only. Memory request.
  4215  	Memory string `json:"memory,omitempty"`
  4216  	// ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally
  4217  	// include in API requests. By default, fields with empty or default values are
  4218  	// omitted from API requests. See
  4219  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4220  	// details.
  4221  	ForceSendFields []string `json:"-"`
  4222  	// NullFields is a list of field names (e.g. "Cpu") to include in API requests
  4223  	// with the JSON null value. By default, fields with empty values are omitted
  4224  	// from API requests. See
  4225  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4226  	NullFields []string `json:"-"`
  4227  }
  4228  
  4229  func (s *ResourceRequests) MarshalJSON() ([]byte, error) {
  4230  	type NoMethod ResourceRequests
  4231  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4232  }
  4233  
  4234  // ResultMetadata: Metadata of result field.
  4235  type ResultMetadata struct {
  4236  	// DataType: The data type of the field.
  4237  	//
  4238  	// Possible values:
  4239  	//   "DATA_TYPE_UNSPECIFIED" - Data type is not specified.
  4240  	//   "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER.
  4241  	//   "DATA_TYPE_SMALLINT" - Short integer(int16) data type.
  4242  	//   "DATA_TYPE_DOUBLE" - Double data type.
  4243  	//   "DATA_TYPE_DATE" - Date data type.
  4244  	//   "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP.
  4245  	//   "DATA_TYPE_TIME" - Time data type.
  4246  	//   "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR.
  4247  	//   "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT.
  4248  	//   "DATA_TYPE_BOOLEAN" - Boolean data type.
  4249  	//   "DATA_TYPE_DECIMAL" - Decimal data type.
  4250  	//   "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR.
  4251  	//   "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type.
  4252  	//   "DATA_TYPE_BIT" - Bit data type.
  4253  	//   "DATA_TYPE_TINYINT" - Small integer(int8) data type.
  4254  	//   "DATA_TYPE_INTEGER" - Integer(int32) data type.
  4255  	//   "DATA_TYPE_BIGINT" - Long integer(int64) data type.
  4256  	//   "DATA_TYPE_FLOAT" - Float data type.
  4257  	//   "DATA_TYPE_REAL" - Real data type.
  4258  	//   "DATA_TYPE_NUMERIC" - Numeric data type.
  4259  	//   "DATA_TYPE_CHAR" - Char data type.
  4260  	//   "DATA_TYPE_VARCHAR" - Varchar data type.
  4261  	//   "DATA_TYPE_LONGVARCHAR" - Longvarchar data type.
  4262  	//   "DATA_TYPE_TIMESTAMP" - Timestamp data type.
  4263  	//   "DATA_TYPE_NCHAR" - Nchar data type.
  4264  	//   "DATA_TYPE_NVARCHAR" - Nvarchar data type.
  4265  	//   "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type.
  4266  	//   "DATA_TYPE_NULL" - Null data type.
  4267  	//   "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type.
  4268  	//   "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type.
  4269  	//   "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type.
  4270  	//   "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type.
  4271  	//   "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type.
  4272  	//   "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type.
  4273  	//   "DATA_TYPE_REF" - UNSUPPORTED! Binary data type.
  4274  	//   "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type.
  4275  	//   "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type.
  4276  	//   "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type.
  4277  	//   "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type.
  4278  	//   "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type.
  4279  	//   "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type.
  4280  	//   "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported.
  4281  	//   "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not
  4282  	// supported.
  4283  	//   "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP
  4284  	// instead.
  4285  	//   "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead.
  4286  	DataType string `json:"dataType,omitempty"`
  4287  	// Description: A brief description of the field.
  4288  	Description string `json:"description,omitempty"`
  4289  	// Field: Name of the result field.
  4290  	Field string `json:"field,omitempty"`
  4291  	// JsonSchema: JsonSchema representation of this action's result
  4292  	JsonSchema *JsonSchema `json:"jsonSchema,omitempty"`
  4293  	// ForceSendFields is a list of field names (e.g. "DataType") to
  4294  	// unconditionally include in API requests. By default, fields with empty or
  4295  	// default values are omitted from API requests. See
  4296  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4297  	// details.
  4298  	ForceSendFields []string `json:"-"`
  4299  	// NullFields is a list of field names (e.g. "DataType") to include in API
  4300  	// requests with the JSON null value. By default, fields with empty values are
  4301  	// omitted from API requests. See
  4302  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4303  	NullFields []string `json:"-"`
  4304  }
  4305  
  4306  func (s *ResultMetadata) MarshalJSON() ([]byte, error) {
  4307  	type NoMethod ResultMetadata
  4308  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4309  }
  4310  
  4311  // RetryEventSubscriptionRequest: Request message for
  4312  // ConnectorsService.RefreshEventSubscription
  4313  type RetryEventSubscriptionRequest struct {
  4314  }
  4315  
  4316  // RoleGrant: This configuration defines all the Cloud IAM roles that needs to
  4317  // be granted to a particular Google Cloud resource for the selected principal
  4318  // like service account. These configurations will let UI display to customers
  4319  // what IAM roles need to be granted by them. Or these configurations can be
  4320  // used by the UI to render a 'grant' button to do the same on behalf of the
  4321  // user.
  4322  type RoleGrant struct {
  4323  	// HelperTextTemplate: Template that UI can use to provide helper text to
  4324  	// customers.
  4325  	HelperTextTemplate string `json:"helperTextTemplate,omitempty"`
  4326  	// Principal: Prinicipal/Identity for whom the role need to assigned.
  4327  	//
  4328  	// Possible values:
  4329  	//   "PRINCIPAL_UNSPECIFIED" - Value type is not specified.
  4330  	//   "CONNECTOR_SA" - Service Account used for Connector workload identity This
  4331  	// is either the default service account if unspecified or Service Account
  4332  	// provided by Customers through BYOSA.
  4333  	Principal string `json:"principal,omitempty"`
  4334  	// Resource: Resource on which the roles needs to be granted for the principal.
  4335  	Resource *Resource `json:"resource,omitempty"`
  4336  	// Roles: List of roles that need to be granted.
  4337  	Roles []string `json:"roles,omitempty"`
  4338  	// ForceSendFields is a list of field names (e.g. "HelperTextTemplate") to
  4339  	// unconditionally include in API requests. By default, fields with empty or
  4340  	// default values are omitted from API requests. See
  4341  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4342  	// details.
  4343  	ForceSendFields []string `json:"-"`
  4344  	// NullFields is a list of field names (e.g. "HelperTextTemplate") to include
  4345  	// in API requests with the JSON null value. By default, fields with empty
  4346  	// values are omitted from API requests. See
  4347  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4348  	NullFields []string `json:"-"`
  4349  }
  4350  
  4351  func (s *RoleGrant) MarshalJSON() ([]byte, error) {
  4352  	type NoMethod RoleGrant
  4353  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4354  }
  4355  
  4356  // RuntimeActionSchema: Schema of a runtime action.
  4357  type RuntimeActionSchema struct {
  4358  	// Action: Output only. Name of the action.
  4359  	Action string `json:"action,omitempty"`
  4360  	// Description: Output only. Brief Description of action
  4361  	Description string `json:"description,omitempty"`
  4362  	// DisplayName: Output only. Display Name of action to be shown on client side
  4363  	DisplayName string `json:"displayName,omitempty"`
  4364  	// InputJsonSchema: Output only. JsonSchema representation of this action's
  4365  	// input metadata
  4366  	InputJsonSchema *JsonSchema `json:"inputJsonSchema,omitempty"`
  4367  	// InputParameters: Output only. List of input parameter metadata for the
  4368  	// action.
  4369  	InputParameters []*InputParameter `json:"inputParameters,omitempty"`
  4370  	// ResultJsonSchema: Output only. JsonSchema representation of this action's
  4371  	// result metadata
  4372  	ResultJsonSchema *JsonSchema `json:"resultJsonSchema,omitempty"`
  4373  	// ResultMetadata: Output only. List of result field metadata.
  4374  	ResultMetadata []*ResultMetadata `json:"resultMetadata,omitempty"`
  4375  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  4376  	// include in API requests. By default, fields with empty or default values are
  4377  	// omitted from API requests. See
  4378  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4379  	// details.
  4380  	ForceSendFields []string `json:"-"`
  4381  	// NullFields is a list of field names (e.g. "Action") to include in API
  4382  	// requests with the JSON null value. By default, fields with empty values are
  4383  	// omitted from API requests. See
  4384  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4385  	NullFields []string `json:"-"`
  4386  }
  4387  
  4388  func (s *RuntimeActionSchema) MarshalJSON() ([]byte, error) {
  4389  	type NoMethod RuntimeActionSchema
  4390  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4391  }
  4392  
  4393  // RuntimeConfig: RuntimeConfig is the singleton resource of each location. It
  4394  // includes generic resource configs consumed by control plane and runtime
  4395  // plane like: pub/sub topic/subscription resource name, Cloud Storage location
  4396  // storing schema etc.
  4397  type RuntimeConfig struct {
  4398  	// ConndSubscription: Output only. Pub/Sub subscription for connd to receive
  4399  	// message. E.g. projects/{project-id}/subscriptions/{topic-id}
  4400  	ConndSubscription string `json:"conndSubscription,omitempty"`
  4401  	// ConndTopic: Output only. Pub/Sub topic for connd to send message. E.g.
  4402  	// projects/{project-id}/topics/{topic-id}
  4403  	ConndTopic string `json:"conndTopic,omitempty"`
  4404  	// ControlPlaneSubscription: Output only. Pub/Sub subscription for control
  4405  	// plane to receive message. E.g.
  4406  	// projects/{project-id}/subscriptions/{topic-id}
  4407  	ControlPlaneSubscription string `json:"controlPlaneSubscription,omitempty"`
  4408  	// ControlPlaneTopic: Output only. Pub/Sub topic for control plne to send
  4409  	// message. communication. E.g. projects/{project-id}/topics/{topic-id}
  4410  	ControlPlaneTopic string `json:"controlPlaneTopic,omitempty"`
  4411  	// LocationId: Output only. location_id of the runtime location. E.g.
  4412  	// "us-west1".
  4413  	LocationId string `json:"locationId,omitempty"`
  4414  	// Name: Output only. Name of the runtimeConfig resource. Format:
  4415  	// projects/{project}/locations/{location}/runtimeConfig
  4416  	Name string `json:"name,omitempty"`
  4417  	// RuntimeEndpoint: Output only. The endpoint of the connectors runtime
  4418  	// ingress.
  4419  	RuntimeEndpoint string `json:"runtimeEndpoint,omitempty"`
  4420  	// SchemaGcsBucket: Output only. The Cloud Storage bucket that stores
  4421  	// connector's schema reports.
  4422  	SchemaGcsBucket string `json:"schemaGcsBucket,omitempty"`
  4423  	// ServiceDirectory: Output only. The name of the Service Directory service
  4424  	// name.
  4425  	ServiceDirectory string `json:"serviceDirectory,omitempty"`
  4426  	// State: Output only. The state of the location.
  4427  	//
  4428  	// Possible values:
  4429  	//   "STATE_UNSPECIFIED" - STATE_UNSPECIFIED.
  4430  	//   "INACTIVE" - INACTIVE.
  4431  	//   "ACTIVATING" - ACTIVATING.
  4432  	//   "ACTIVE" - ACTIVE.
  4433  	//   "CREATING" - CREATING.
  4434  	//   "DELETING" - DELETING.
  4435  	//   "UPDATING" - UPDATING.
  4436  	State string `json:"state,omitempty"`
  4437  
  4438  	// ServerResponse contains the HTTP response code and headers from the server.
  4439  	googleapi.ServerResponse `json:"-"`
  4440  	// ForceSendFields is a list of field names (e.g. "ConndSubscription") to
  4441  	// unconditionally include in API requests. By default, fields with empty or
  4442  	// default values are omitted from API requests. See
  4443  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4444  	// details.
  4445  	ForceSendFields []string `json:"-"`
  4446  	// NullFields is a list of field names (e.g. "ConndSubscription") to include in
  4447  	// API requests with the JSON null value. By default, fields with empty values
  4448  	// are omitted from API requests. See
  4449  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4450  	NullFields []string `json:"-"`
  4451  }
  4452  
  4453  func (s *RuntimeConfig) MarshalJSON() ([]byte, error) {
  4454  	type NoMethod RuntimeConfig
  4455  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4456  }
  4457  
  4458  // RuntimeEntitySchema: Schema of a runtime entity.
  4459  type RuntimeEntitySchema struct {
  4460  	// Entity: Output only. Name of the entity.
  4461  	Entity string `json:"entity,omitempty"`
  4462  	// Fields: Output only. List of fields in the entity.
  4463  	Fields []*Field `json:"fields,omitempty"`
  4464  	// JsonSchema: Output only. JsonSchema representation of this entity's metadata
  4465  	JsonSchema *JsonSchema `json:"jsonSchema,omitempty"`
  4466  	// Operations: List of operations supported by this entity
  4467  	//
  4468  	// Possible values:
  4469  	//   "OPERATION_UNSPECIFIED" - Operation unspecified.
  4470  	//   "LIST" - This operation means entity type supports LIST entities.
  4471  	//   "GET" - This operation means entity type supports GET entity.
  4472  	//   "CREATE" - This operation means entity type supports CREATE entity.
  4473  	//   "UPDATE" - This operation means entity type supports UPDATE entity.
  4474  	//   "DELETE" - This operation means entity type supports DELETE entity.
  4475  	Operations []string `json:"operations,omitempty"`
  4476  	// ForceSendFields is a list of field names (e.g. "Entity") to unconditionally
  4477  	// include in API requests. By default, fields with empty or default values are
  4478  	// omitted from API requests. See
  4479  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4480  	// details.
  4481  	ForceSendFields []string `json:"-"`
  4482  	// NullFields is a list of field names (e.g. "Entity") to include in API
  4483  	// requests with the JSON null value. By default, fields with empty values are
  4484  	// omitted from API requests. See
  4485  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4486  	NullFields []string `json:"-"`
  4487  }
  4488  
  4489  func (s *RuntimeEntitySchema) MarshalJSON() ([]byte, error) {
  4490  	type NoMethod RuntimeEntitySchema
  4491  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4492  }
  4493  
  4494  // Schedule: Configure the schedule.
  4495  type Schedule struct {
  4496  	// Day: Allows to define schedule that runs specified day of the week.
  4497  	//
  4498  	// Possible values:
  4499  	//   "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
  4500  	//   "MONDAY" - Monday
  4501  	//   "TUESDAY" - Tuesday
  4502  	//   "WEDNESDAY" - Wednesday
  4503  	//   "THURSDAY" - Thursday
  4504  	//   "FRIDAY" - Friday
  4505  	//   "SATURDAY" - Saturday
  4506  	//   "SUNDAY" - Sunday
  4507  	Day string `json:"day,omitempty"`
  4508  	// Duration: Output only. Duration of the time window, set by service producer.
  4509  	Duration string `json:"duration,omitempty"`
  4510  	// StartTime: Time within the window to start the operations.
  4511  	StartTime *TimeOfDay `json:"startTime,omitempty"`
  4512  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  4513  	// include in API requests. By default, fields with empty or default values are
  4514  	// omitted from API requests. See
  4515  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4516  	// details.
  4517  	ForceSendFields []string `json:"-"`
  4518  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  4519  	// with the JSON null value. By default, fields with empty values are omitted
  4520  	// from API requests. See
  4521  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4522  	NullFields []string `json:"-"`
  4523  }
  4524  
  4525  func (s *Schedule) MarshalJSON() ([]byte, error) {
  4526  	type NoMethod Schedule
  4527  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4528  }
  4529  
  4530  // SchemaRefreshConfig: Config for connection schema refresh
  4531  type SchemaRefreshConfig struct {
  4532  	// UseActionDisplayNames: Whether to use displayName for actions in UI.
  4533  	UseActionDisplayNames bool `json:"useActionDisplayNames,omitempty"`
  4534  	// UseSynchronousSchemaRefresh: Whether to use synchronous schema refresh.
  4535  	UseSynchronousSchemaRefresh bool `json:"useSynchronousSchemaRefresh,omitempty"`
  4536  	// ForceSendFields is a list of field names (e.g. "UseActionDisplayNames") to
  4537  	// unconditionally include in API requests. By default, fields with empty or
  4538  	// default values are omitted from API requests. See
  4539  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4540  	// details.
  4541  	ForceSendFields []string `json:"-"`
  4542  	// NullFields is a list of field names (e.g. "UseActionDisplayNames") to
  4543  	// include in API requests with the JSON null value. By default, fields with
  4544  	// empty values are omitted from API requests. See
  4545  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4546  	NullFields []string `json:"-"`
  4547  }
  4548  
  4549  func (s *SchemaRefreshConfig) MarshalJSON() ([]byte, error) {
  4550  	type NoMethod SchemaRefreshConfig
  4551  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4552  }
  4553  
  4554  // SearchConnectionInstance: SearchConnectionInstance represents an instance of
  4555  // connector with specific fields
  4556  type SearchConnectionInstance struct {
  4557  	// ActionSchema: Output only. Schema of a runtime action.
  4558  	ActionSchema *RuntimeActionSchema `json:"actionSchema,omitempty"`
  4559  	// Connection: Output only. Connection details
  4560  	Connection *Connection `json:"connection,omitempty"`
  4561  	// EntitySchema: Output only. Schema of a runtime entity.
  4562  	EntitySchema *RuntimeEntitySchema `json:"entitySchema,omitempty"`
  4563  	// ForceSendFields is a list of field names (e.g. "ActionSchema") to
  4564  	// unconditionally include in API requests. By default, fields with empty or
  4565  	// default values are omitted from API requests. See
  4566  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4567  	// details.
  4568  	ForceSendFields []string `json:"-"`
  4569  	// NullFields is a list of field names (e.g. "ActionSchema") to include in API
  4570  	// requests with the JSON null value. By default, fields with empty values are
  4571  	// omitted from API requests. See
  4572  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4573  	NullFields []string `json:"-"`
  4574  }
  4575  
  4576  func (s *SearchConnectionInstance) MarshalJSON() ([]byte, error) {
  4577  	type NoMethod SearchConnectionInstance
  4578  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4579  }
  4580  
  4581  // SearchConnectionsResponse: Response message for
  4582  // Connectors.SearchConnections.
  4583  type SearchConnectionsResponse struct {
  4584  	// Connections: A list of connectors.
  4585  	Connections []*SearchConnectionInstance `json:"connections,omitempty"`
  4586  	// NextPageToken: Optional. page_token
  4587  	NextPageToken string `json:"nextPageToken,omitempty"`
  4588  	// Unreachable: Locations that could not be reached.
  4589  	Unreachable []string `json:"unreachable,omitempty"`
  4590  
  4591  	// ServerResponse contains the HTTP response code and headers from the server.
  4592  	googleapi.ServerResponse `json:"-"`
  4593  	// ForceSendFields is a list of field names (e.g. "Connections") to
  4594  	// unconditionally include in API requests. By default, fields with empty or
  4595  	// default values are omitted from API requests. See
  4596  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4597  	// details.
  4598  	ForceSendFields []string `json:"-"`
  4599  	// NullFields is a list of field names (e.g. "Connections") to include in API
  4600  	// requests with the JSON null value. By default, fields with empty values are
  4601  	// omitted from API requests. See
  4602  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4603  	NullFields []string `json:"-"`
  4604  }
  4605  
  4606  func (s *SearchConnectionsResponse) MarshalJSON() ([]byte, error) {
  4607  	type NoMethod SearchConnectionsResponse
  4608  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4609  }
  4610  
  4611  // Secret: Secret provides a reference to entries in Secret Manager.
  4612  type Secret struct {
  4613  	// SecretVersion: The resource name of the secret version in the format, format
  4614  	// as: `projects/*/secrets/*/versions/*`.
  4615  	SecretVersion string `json:"secretVersion,omitempty"`
  4616  	// ForceSendFields is a list of field names (e.g. "SecretVersion") to
  4617  	// unconditionally include in API requests. By default, fields with empty or
  4618  	// default values are omitted from API requests. See
  4619  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4620  	// details.
  4621  	ForceSendFields []string `json:"-"`
  4622  	// NullFields is a list of field names (e.g. "SecretVersion") to include in API
  4623  	// requests with the JSON null value. By default, fields with empty values are
  4624  	// omitted from API requests. See
  4625  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4626  	NullFields []string `json:"-"`
  4627  }
  4628  
  4629  func (s *Secret) MarshalJSON() ([]byte, error) {
  4630  	type NoMethod Secret
  4631  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4632  }
  4633  
  4634  // SetIamPolicyRequest: Request message for `SetIamPolicy` method.
  4635  type SetIamPolicyRequest struct {
  4636  	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
  4637  	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
  4638  	// policy but certain Google Cloud services (such as Projects) might reject
  4639  	// them.
  4640  	Policy *Policy `json:"policy,omitempty"`
  4641  	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to
  4642  	// modify. Only the fields in the mask will be modified. If no mask is
  4643  	// provided, the following default mask is used: `paths: "bindings, etag"
  4644  	UpdateMask string `json:"updateMask,omitempty"`
  4645  	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
  4646  	// include in API requests. By default, fields with empty or default values are
  4647  	// omitted from API requests. See
  4648  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4649  	// details.
  4650  	ForceSendFields []string `json:"-"`
  4651  	// NullFields is a list of field names (e.g. "Policy") to include in API
  4652  	// requests with the JSON null value. By default, fields with empty values are
  4653  	// omitted from API requests. See
  4654  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4655  	NullFields []string `json:"-"`
  4656  }
  4657  
  4658  func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  4659  	type NoMethod SetIamPolicyRequest
  4660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4661  }
  4662  
  4663  // Settings: Global Settings details.
  4664  type Settings struct {
  4665  	// Name: Output only. Resource name of the Connection. Format:
  4666  	// projects/{project}/locations/global/settings}
  4667  	Name string `json:"name,omitempty"`
  4668  	// Payg: Output only. Flag indicates if user is in PayG model
  4669  	Payg bool `json:"payg,omitempty"`
  4670  	// TenantProjectId: Output only. Tenant project id of the consumer project.
  4671  	TenantProjectId string `json:"tenantProjectId,omitempty"`
  4672  	// Vpcsc: Optional. Flag indicates whether vpc-sc is enabled.
  4673  	Vpcsc bool `json:"vpcsc,omitempty"`
  4674  
  4675  	// ServerResponse contains the HTTP response code and headers from the server.
  4676  	googleapi.ServerResponse `json:"-"`
  4677  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  4678  	// include in API requests. By default, fields with empty or default values are
  4679  	// omitted from API requests. See
  4680  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4681  	// details.
  4682  	ForceSendFields []string `json:"-"`
  4683  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  4684  	// with the JSON null value. By default, fields with empty values are omitted
  4685  	// from API requests. See
  4686  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4687  	NullFields []string `json:"-"`
  4688  }
  4689  
  4690  func (s *Settings) MarshalJSON() ([]byte, error) {
  4691  	type NoMethod Settings
  4692  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4693  }
  4694  
  4695  // SloEligibility: SloEligibility is a tuple containing eligibility value: true
  4696  // if an instance is eligible for SLO calculation or false if it should be
  4697  // excluded from all SLO-related calculations along with a user-defined reason.
  4698  type SloEligibility struct {
  4699  	// Eligible: Whether an instance is eligible or ineligible.
  4700  	Eligible bool `json:"eligible,omitempty"`
  4701  	// Reason: User-defined reason for the current value of instance eligibility.
  4702  	// Usually, this can be directly mapped to the internal state. An empty reason
  4703  	// is allowed.
  4704  	Reason string `json:"reason,omitempty"`
  4705  	// ForceSendFields is a list of field names (e.g. "Eligible") to
  4706  	// unconditionally include in API requests. By default, fields with empty or
  4707  	// default values are omitted from API requests. See
  4708  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4709  	// details.
  4710  	ForceSendFields []string `json:"-"`
  4711  	// NullFields is a list of field names (e.g. "Eligible") to include in API
  4712  	// requests with the JSON null value. By default, fields with empty values are
  4713  	// omitted from API requests. See
  4714  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4715  	NullFields []string `json:"-"`
  4716  }
  4717  
  4718  func (s *SloEligibility) MarshalJSON() ([]byte, error) {
  4719  	type NoMethod SloEligibility
  4720  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4721  }
  4722  
  4723  // SloMetadata: SloMetadata contains resources required for proper SLO
  4724  // classification of the instance.
  4725  type SloMetadata struct {
  4726  	// Nodes: Optional. List of nodes. Some producers need to use per-node metadata
  4727  	// to calculate SLO. This field allows such producers to publish per-node SLO
  4728  	// meta data, which will be consumed by SSA Eligibility Exporter and published
  4729  	// in the form of per node metric to Monarch.
  4730  	Nodes []*NodeSloMetadata `json:"nodes,omitempty"`
  4731  	// PerSliEligibility: Optional. Multiple per-instance SLI eligibilities which
  4732  	// apply for individual SLIs.
  4733  	PerSliEligibility *PerSliSloEligibility `json:"perSliEligibility,omitempty"`
  4734  	// Tier: Name of the SLO tier the Instance belongs to. This name will be
  4735  	// expected to match the tiers specified in the service SLO configuration.
  4736  	// Field is mandatory and must not be empty.
  4737  	Tier string `json:"tier,omitempty"`
  4738  	// ForceSendFields is a list of field names (e.g. "Nodes") to unconditionally
  4739  	// include in API requests. By default, fields with empty or default values are
  4740  	// omitted from API requests. See
  4741  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4742  	// details.
  4743  	ForceSendFields []string `json:"-"`
  4744  	// NullFields is a list of field names (e.g. "Nodes") to include in API
  4745  	// requests with the JSON null value. By default, fields with empty values are
  4746  	// omitted from API requests. See
  4747  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4748  	NullFields []string `json:"-"`
  4749  }
  4750  
  4751  func (s *SloMetadata) MarshalJSON() ([]byte, error) {
  4752  	type NoMethod SloMetadata
  4753  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4754  }
  4755  
  4756  // Source: Source to extract the backend from.
  4757  type Source struct {
  4758  	// FieldId: Field identifier. For example config vaiable name.
  4759  	FieldId string `json:"fieldId,omitempty"`
  4760  	// SourceType: Type of the source.
  4761  	//
  4762  	// Possible values:
  4763  	//   "SOURCE_TYPE_UNSPECIFIED" - Default SOURCE.
  4764  	//   "CONFIG_VARIABLE" - Config Variable source type.
  4765  	SourceType string `json:"sourceType,omitempty"`
  4766  	// ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally
  4767  	// include in API requests. By default, fields with empty or default values are
  4768  	// omitted from API requests. See
  4769  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4770  	// details.
  4771  	ForceSendFields []string `json:"-"`
  4772  	// NullFields is a list of field names (e.g. "FieldId") to include in API
  4773  	// requests with the JSON null value. By default, fields with empty values are
  4774  	// omitted from API requests. See
  4775  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4776  	NullFields []string `json:"-"`
  4777  }
  4778  
  4779  func (s *Source) MarshalJSON() ([]byte, error) {
  4780  	type NoMethod Source
  4781  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4782  }
  4783  
  4784  // SshPublicKey: Parameters to support Ssh public key Authentication.
  4785  type SshPublicKey struct {
  4786  	// CertType: Format of SSH Client cert.
  4787  	CertType string `json:"certType,omitempty"`
  4788  	// SshClientCert: SSH Client Cert. It should contain both public and private
  4789  	// key.
  4790  	SshClientCert *Secret `json:"sshClientCert,omitempty"`
  4791  	// SshClientCertPass: Password (passphrase) for ssh client certificate if it
  4792  	// has one.
  4793  	SshClientCertPass *Secret `json:"sshClientCertPass,omitempty"`
  4794  	// Username: The user account used to authenticate.
  4795  	Username string `json:"username,omitempty"`
  4796  	// ForceSendFields is a list of field names (e.g. "CertType") to
  4797  	// unconditionally include in API requests. By default, fields with empty or
  4798  	// default values are 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. "CertType") to include in API
  4803  	// requests with the JSON null value. By default, fields with empty values are
  4804  	// omitted 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 *SshPublicKey) MarshalJSON() ([]byte, error) {
  4810  	type NoMethod SshPublicKey
  4811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4812  }
  4813  
  4814  // SslConfig: SSL Configuration of a connection
  4815  type SslConfig struct {
  4816  	// AdditionalVariables: Additional SSL related field values
  4817  	AdditionalVariables []*ConfigVariable `json:"additionalVariables,omitempty"`
  4818  	// ClientCertType: Type of Client Cert (PEM/JKS/.. etc.)
  4819  	//
  4820  	// Possible values:
  4821  	//   "CERT_TYPE_UNSPECIFIED" - Cert type unspecified.
  4822  	//   "PEM" - Privacy Enhanced Mail (PEM) Type
  4823  	ClientCertType string `json:"clientCertType,omitempty"`
  4824  	// ClientCertificate: Client Certificate
  4825  	ClientCertificate *Secret `json:"clientCertificate,omitempty"`
  4826  	// ClientPrivateKey: Client Private Key
  4827  	ClientPrivateKey *Secret `json:"clientPrivateKey,omitempty"`
  4828  	// ClientPrivateKeyPass: Secret containing the passphrase protecting the Client
  4829  	// Private Key
  4830  	ClientPrivateKeyPass *Secret `json:"clientPrivateKeyPass,omitempty"`
  4831  	// PrivateServerCertificate: Private Server Certificate. Needs to be specified
  4832  	// if trust model is `PRIVATE`.
  4833  	PrivateServerCertificate *Secret `json:"privateServerCertificate,omitempty"`
  4834  	// ServerCertType: Type of Server Cert (PEM/JKS/.. etc.)
  4835  	//
  4836  	// Possible values:
  4837  	//   "CERT_TYPE_UNSPECIFIED" - Cert type unspecified.
  4838  	//   "PEM" - Privacy Enhanced Mail (PEM) Type
  4839  	ServerCertType string `json:"serverCertType,omitempty"`
  4840  	// TrustModel: Trust Model of the SSL connection
  4841  	//
  4842  	// Possible values:
  4843  	//   "PUBLIC" - Public Trust Model. Takes the Default Java trust store.
  4844  	//   "PRIVATE" - Private Trust Model. Takes custom/private trust store.
  4845  	//   "INSECURE" - Insecure Trust Model. Accept all certificates.
  4846  	TrustModel string `json:"trustModel,omitempty"`
  4847  	// Type: Controls the ssl type for the given connector version.
  4848  	//
  4849  	// Possible values:
  4850  	//   "SSL_TYPE_UNSPECIFIED" - No SSL configuration required.
  4851  	//   "TLS" - TLS Handshake
  4852  	//   "MTLS" - mutual TLS (MTLS) Handshake
  4853  	Type string `json:"type,omitempty"`
  4854  	// UseSsl: Bool for enabling SSL
  4855  	UseSsl bool `json:"useSsl,omitempty"`
  4856  	// ForceSendFields is a list of field names (e.g. "AdditionalVariables") to
  4857  	// unconditionally include in API requests. By default, fields with empty or
  4858  	// default values are omitted from API requests. See
  4859  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4860  	// details.
  4861  	ForceSendFields []string `json:"-"`
  4862  	// NullFields is a list of field names (e.g. "AdditionalVariables") to include
  4863  	// in API requests with the JSON null value. By default, fields with empty
  4864  	// values are omitted from API requests. See
  4865  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4866  	NullFields []string `json:"-"`
  4867  }
  4868  
  4869  func (s *SslConfig) MarshalJSON() ([]byte, error) {
  4870  	type NoMethod SslConfig
  4871  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4872  }
  4873  
  4874  // SslConfigTemplate: Ssl config details of a connector version
  4875  type SslConfigTemplate struct {
  4876  	// AdditionalVariables: Any additional fields that need to be rendered
  4877  	AdditionalVariables []*ConfigVariableTemplate `json:"additionalVariables,omitempty"`
  4878  	// ClientCertType: List of supported Client Cert Types
  4879  	//
  4880  	// Possible values:
  4881  	//   "CERT_TYPE_UNSPECIFIED" - Cert type unspecified.
  4882  	//   "PEM" - Privacy Enhanced Mail (PEM) Type
  4883  	ClientCertType []string `json:"clientCertType,omitempty"`
  4884  	// IsTlsMandatory: Boolean for determining if the connector version mandates
  4885  	// TLS.
  4886  	IsTlsMandatory bool `json:"isTlsMandatory,omitempty"`
  4887  	// ServerCertType: List of supported Server Cert Types
  4888  	//
  4889  	// Possible values:
  4890  	//   "CERT_TYPE_UNSPECIFIED" - Cert type unspecified.
  4891  	//   "PEM" - Privacy Enhanced Mail (PEM) Type
  4892  	ServerCertType []string `json:"serverCertType,omitempty"`
  4893  	// SslType: Controls the ssl type for the given connector version
  4894  	//
  4895  	// Possible values:
  4896  	//   "SSL_TYPE_UNSPECIFIED" - No SSL configuration required.
  4897  	//   "TLS" - TLS Handshake
  4898  	//   "MTLS" - mutual TLS (MTLS) Handshake
  4899  	SslType string `json:"sslType,omitempty"`
  4900  	// ForceSendFields is a list of field names (e.g. "AdditionalVariables") to
  4901  	// unconditionally include in API requests. By default, fields with empty or
  4902  	// default values are omitted from API requests. See
  4903  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4904  	// details.
  4905  	ForceSendFields []string `json:"-"`
  4906  	// NullFields is a list of field names (e.g. "AdditionalVariables") to include
  4907  	// in API requests with the JSON null value. By default, fields with empty
  4908  	// values are omitted from API requests. See
  4909  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4910  	NullFields []string `json:"-"`
  4911  }
  4912  
  4913  func (s *SslConfigTemplate) MarshalJSON() ([]byte, error) {
  4914  	type NoMethod SslConfigTemplate
  4915  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4916  }
  4917  
  4918  // Status: The `Status` type defines a logical error model that is suitable for
  4919  // different programming environments, including REST APIs and RPC APIs. It is
  4920  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  4921  // pieces of data: error code, error message, and error details. You can find
  4922  // out more about this error model and how to work with it in the API Design
  4923  // Guide (https://cloud.google.com/apis/design/errors).
  4924  type Status struct {
  4925  	// Code: The status code, which should be an enum value of google.rpc.Code.
  4926  	Code int64 `json:"code,omitempty"`
  4927  	// Details: A list of messages that carry the error details. There is a common
  4928  	// set of message types for APIs to use.
  4929  	Details []googleapi.RawMessage `json:"details,omitempty"`
  4930  	// Message: A developer-facing error message, which should be in English. Any
  4931  	// user-facing error message should be localized and sent in the
  4932  	// google.rpc.Status.details field, or localized by the client.
  4933  	Message string `json:"message,omitempty"`
  4934  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  4935  	// include in API requests. By default, fields with empty or default values are
  4936  	// omitted from API requests. See
  4937  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4938  	// details.
  4939  	ForceSendFields []string `json:"-"`
  4940  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  4941  	// with the JSON null value. By default, fields with empty values are omitted
  4942  	// from API requests. See
  4943  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4944  	NullFields []string `json:"-"`
  4945  }
  4946  
  4947  func (s *Status) MarshalJSON() ([]byte, error) {
  4948  	type NoMethod Status
  4949  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4950  }
  4951  
  4952  // SupportedRuntimeFeatures: Supported runtime features of a connector version.
  4953  type SupportedRuntimeFeatures struct {
  4954  	// ActionApis: Specifies if the connector supports action apis like
  4955  	// 'executeAction'.
  4956  	ActionApis bool `json:"actionApis,omitempty"`
  4957  	// EntityApis: Specifies if the connector supports entity apis like
  4958  	// 'createEntity'.
  4959  	EntityApis bool `json:"entityApis,omitempty"`
  4960  	// SqlQuery: Specifies if the connector supports 'ExecuteSqlQuery' operation.
  4961  	SqlQuery bool `json:"sqlQuery,omitempty"`
  4962  	// ForceSendFields is a list of field names (e.g. "ActionApis") to
  4963  	// unconditionally include in API requests. By default, fields with empty or
  4964  	// default values are omitted from API requests. See
  4965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4966  	// details.
  4967  	ForceSendFields []string `json:"-"`
  4968  	// NullFields is a list of field names (e.g. "ActionApis") to include in API
  4969  	// requests with the JSON null value. By default, fields with empty values are
  4970  	// omitted from API requests. See
  4971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4972  	NullFields []string `json:"-"`
  4973  }
  4974  
  4975  func (s *SupportedRuntimeFeatures) MarshalJSON() ([]byte, error) {
  4976  	type NoMethod SupportedRuntimeFeatures
  4977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4978  }
  4979  
  4980  // TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
  4981  type TestIamPermissionsRequest struct {
  4982  	// Permissions: The set of permissions to check for the `resource`. Permissions
  4983  	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
  4984  	// information see IAM Overview
  4985  	// (https://cloud.google.com/iam/docs/overview#permissions).
  4986  	Permissions []string `json:"permissions,omitempty"`
  4987  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  4988  	// unconditionally include in API requests. By default, fields with empty or
  4989  	// default values are omitted from API requests. See
  4990  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4991  	// details.
  4992  	ForceSendFields []string `json:"-"`
  4993  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  4994  	// requests with the JSON null value. By default, fields with empty values are
  4995  	// omitted from API requests. See
  4996  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4997  	NullFields []string `json:"-"`
  4998  }
  4999  
  5000  func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
  5001  	type NoMethod TestIamPermissionsRequest
  5002  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5003  }
  5004  
  5005  // TestIamPermissionsResponse: Response message for `TestIamPermissions`
  5006  // method.
  5007  type TestIamPermissionsResponse struct {
  5008  	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
  5009  	// caller is allowed.
  5010  	Permissions []string `json:"permissions,omitempty"`
  5011  
  5012  	// ServerResponse contains the HTTP response code and headers from the server.
  5013  	googleapi.ServerResponse `json:"-"`
  5014  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  5015  	// unconditionally include in API requests. By default, fields with empty or
  5016  	// default values are omitted from API requests. See
  5017  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5018  	// details.
  5019  	ForceSendFields []string `json:"-"`
  5020  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  5021  	// requests with the JSON null value. By default, fields with empty values are
  5022  	// omitted from API requests. See
  5023  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5024  	NullFields []string `json:"-"`
  5025  }
  5026  
  5027  func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
  5028  	type NoMethod TestIamPermissionsResponse
  5029  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5030  }
  5031  
  5032  // TimeOfDay: Represents a time of day. The date and time zone are either not
  5033  // significant or are specified elsewhere. An API may choose to allow leap
  5034  // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
  5035  type TimeOfDay struct {
  5036  	// Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may
  5037  	// choose to allow the value "24:00:00" for scenarios like business closing
  5038  	// time.
  5039  	Hours int64 `json:"hours,omitempty"`
  5040  	// Minutes: Minutes of hour of day. Must be from 0 to 59.
  5041  	Minutes int64 `json:"minutes,omitempty"`
  5042  	// Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
  5043  	Nanos int64 `json:"nanos,omitempty"`
  5044  	// Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An
  5045  	// API may allow the value 60 if it allows leap-seconds.
  5046  	Seconds int64 `json:"seconds,omitempty"`
  5047  	// ForceSendFields is a list of field names (e.g. "Hours") to unconditionally
  5048  	// include in API requests. By default, fields with empty or default values are
  5049  	// omitted from API requests. See
  5050  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5051  	// details.
  5052  	ForceSendFields []string `json:"-"`
  5053  	// NullFields is a list of field names (e.g. "Hours") to include in API
  5054  	// requests with the JSON null value. By default, fields with empty values are
  5055  	// omitted from API requests. See
  5056  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5057  	NullFields []string `json:"-"`
  5058  }
  5059  
  5060  func (s *TimeOfDay) MarshalJSON() ([]byte, error) {
  5061  	type NoMethod TimeOfDay
  5062  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5063  }
  5064  
  5065  // UpdatePolicy: Maintenance policy applicable to instance updates.
  5066  type UpdatePolicy struct {
  5067  	// Channel: Optional. Relative scheduling channel applied to resource.
  5068  	//
  5069  	// Possible values:
  5070  	//   "UPDATE_CHANNEL_UNSPECIFIED" - Unspecified channel.
  5071  	//   "EARLIER" - Early channel within a customer project.
  5072  	//   "LATER" - Later channel within a customer project.
  5073  	//   "WEEK1" - ! ! The follow channels can ONLY be used if you adopt the new MW
  5074  	// system! ! ! NOTE: all WEEK channels are assumed to be under a weekly window.
  5075  	// ! There is currently no dedicated channel definitions for Daily windows. !
  5076  	// If you use Daily window, the system will assume a 1d (24Hours) advanced !
  5077  	// notification period b/w EARLY and LATER. ! We may consider support more
  5078  	// flexible daily channel specifications in ! the future. WEEK1 == EARLIER with
  5079  	// minimum 7d advanced notification. {7d, 14d} The system will treat them
  5080  	// equally and will use WEEK1 whenever it can. New customers are encouraged to
  5081  	// use this channel annotation.
  5082  	//   "WEEK2" - WEEK2 == LATER with minimum 14d advanced notification {14d,
  5083  	// 21d}.
  5084  	//   "WEEK5" - WEEK5 == 40d support. minimum 35d advanced notification {35d,
  5085  	// 42d}.
  5086  	Channel string `json:"channel,omitempty"`
  5087  	// DenyMaintenancePeriods: Deny Maintenance Period that is applied to resource
  5088  	// to indicate when maintenance is forbidden. The protocol supports
  5089  	// zero-to-many such periods, but the current SLM Rollout implementation only
  5090  	// supports zero-to-one.
  5091  	DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"`
  5092  	// Window: Optional. Maintenance window that is applied to resources covered by
  5093  	// this policy.
  5094  	Window *MaintenanceWindow `json:"window,omitempty"`
  5095  	// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally
  5096  	// include in API requests. By default, fields with empty or default values are
  5097  	// omitted from API requests. See
  5098  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5099  	// details.
  5100  	ForceSendFields []string `json:"-"`
  5101  	// NullFields is a list of field names (e.g. "Channel") to include in API
  5102  	// requests with the JSON null value. By default, fields with empty values are
  5103  	// omitted from API requests. See
  5104  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5105  	NullFields []string `json:"-"`
  5106  }
  5107  
  5108  func (s *UpdatePolicy) MarshalJSON() ([]byte, error) {
  5109  	type NoMethod UpdatePolicy
  5110  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5111  }
  5112  
  5113  // UserPassword: Parameters to support Username and Password Authentication.
  5114  type UserPassword struct {
  5115  	// Password: Secret version reference containing the password.
  5116  	Password *Secret `json:"password,omitempty"`
  5117  	// Username: Username.
  5118  	Username string `json:"username,omitempty"`
  5119  	// ForceSendFields is a list of field names (e.g. "Password") to
  5120  	// unconditionally include in API requests. By default, fields with empty or
  5121  	// default values are omitted from API requests. See
  5122  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5123  	// details.
  5124  	ForceSendFields []string `json:"-"`
  5125  	// NullFields is a list of field names (e.g. "Password") to include in API
  5126  	// requests with the JSON null value. By default, fields with empty values are
  5127  	// omitted from API requests. See
  5128  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5129  	NullFields []string `json:"-"`
  5130  }
  5131  
  5132  func (s *UserPassword) MarshalJSON() ([]byte, error) {
  5133  	type NoMethod UserPassword
  5134  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5135  }
  5136  
  5137  // ValidateCustomConnectorSpecRequest: Request message for
  5138  // ConnectorsService.ValidateCustomConnectorSpec
  5139  type ValidateCustomConnectorSpecRequest struct {
  5140  	// ServiceAccount: Required. Service account to access the spec from Google
  5141  	// Cloud Storage.
  5142  	ServiceAccount string `json:"serviceAccount,omitempty"`
  5143  	// SpecLocation: Required. Location of the custom connector spec. The location
  5144  	// can be either a public url like `https://public-url.com/spec` Or a Google
  5145  	// Cloud Storage location like `gs:///`
  5146  	SpecLocation string `json:"specLocation,omitempty"`
  5147  	// SpecType: Required. Spec type of the custom connector spec.
  5148  	//
  5149  	// Possible values:
  5150  	//   "CUSTOM_CONNECTOR_TYPE_UNSPECIFIED" - Connector type is not specified.
  5151  	//   "OPEN_API" - OpenAPI connector.
  5152  	//   "PROTO" - Proto connector.
  5153  	SpecType string `json:"specType,omitempty"`
  5154  	// ForceSendFields is a list of field names (e.g. "ServiceAccount") to
  5155  	// unconditionally include in API requests. By default, fields with empty or
  5156  	// default values are omitted from API requests. See
  5157  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5158  	// details.
  5159  	ForceSendFields []string `json:"-"`
  5160  	// NullFields is a list of field names (e.g. "ServiceAccount") to include in
  5161  	// API requests with the JSON null value. By default, fields with empty values
  5162  	// are omitted from API requests. See
  5163  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5164  	NullFields []string `json:"-"`
  5165  }
  5166  
  5167  func (s *ValidateCustomConnectorSpecRequest) MarshalJSON() ([]byte, error) {
  5168  	type NoMethod ValidateCustomConnectorSpecRequest
  5169  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5170  }
  5171  
  5172  // ValidateCustomConnectorSpecResponse: Response message for
  5173  // ConnectorsService.ValidateCustomConnectorSpec
  5174  type ValidateCustomConnectorSpecResponse struct {
  5175  	// ErrorMessage: Error message. The spec is valid if the error message is
  5176  	// empty.
  5177  	ErrorMessage string `json:"errorMessage,omitempty"`
  5178  
  5179  	// ServerResponse contains the HTTP response code and headers from the server.
  5180  	googleapi.ServerResponse `json:"-"`
  5181  	// ForceSendFields is a list of field names (e.g. "ErrorMessage") to
  5182  	// unconditionally include in API requests. By default, fields with empty or
  5183  	// default values are omitted from API requests. See
  5184  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5185  	// details.
  5186  	ForceSendFields []string `json:"-"`
  5187  	// NullFields is a list of field names (e.g. "ErrorMessage") to include in API
  5188  	// requests with the JSON null value. By default, fields with empty values are
  5189  	// omitted from API requests. See
  5190  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5191  	NullFields []string `json:"-"`
  5192  }
  5193  
  5194  func (s *ValidateCustomConnectorSpecResponse) MarshalJSON() ([]byte, error) {
  5195  	type NoMethod ValidateCustomConnectorSpecResponse
  5196  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5197  }
  5198  
  5199  // WebhookData: WebhookData has details of webhook configuration.
  5200  type WebhookData struct {
  5201  	// AdditionalVariables: Output only. Additional webhook related field values.
  5202  	AdditionalVariables []*ConfigVariable `json:"additionalVariables,omitempty"`
  5203  	// CreateTime: Output only. Timestamp when the webhook was created.
  5204  	CreateTime string `json:"createTime,omitempty"`
  5205  	// Id: Output only. ID to uniquely identify webhook.
  5206  	Id string `json:"id,omitempty"`
  5207  	// Name: Output only. Name of the Webhook
  5208  	Name string `json:"name,omitempty"`
  5209  	// NextRefreshTime: Output only. Next webhook refresh time. Will be null if
  5210  	// refresh is not supported.
  5211  	NextRefreshTime string `json:"nextRefreshTime,omitempty"`
  5212  	// UpdateTime: Output only. Timestamp when the webhook was last updated.
  5213  	UpdateTime string `json:"updateTime,omitempty"`
  5214  	// ForceSendFields is a list of field names (e.g. "AdditionalVariables") to
  5215  	// unconditionally include in API requests. By default, fields with empty or
  5216  	// default values are omitted from API requests. See
  5217  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5218  	// details.
  5219  	ForceSendFields []string `json:"-"`
  5220  	// NullFields is a list of field names (e.g. "AdditionalVariables") to include
  5221  	// in API requests with the JSON null value. By default, fields with empty
  5222  	// values are omitted from API requests. See
  5223  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5224  	NullFields []string `json:"-"`
  5225  }
  5226  
  5227  func (s *WebhookData) MarshalJSON() ([]byte, error) {
  5228  	type NoMethod WebhookData
  5229  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5230  }
  5231  
  5232  // WeeklyCycle: Time window specified for weekly operations.
  5233  type WeeklyCycle struct {
  5234  	// Schedule: User can specify multiple windows in a week. Minimum of 1 window.
  5235  	Schedule []*Schedule `json:"schedule,omitempty"`
  5236  	// ForceSendFields is a list of field names (e.g. "Schedule") to
  5237  	// unconditionally include in API requests. By default, fields with empty or
  5238  	// default values are omitted from API requests. See
  5239  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5240  	// details.
  5241  	ForceSendFields []string `json:"-"`
  5242  	// NullFields is a list of field names (e.g. "Schedule") to include in API
  5243  	// requests with the JSON null value. By default, fields with empty values are
  5244  	// omitted from API requests. See
  5245  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5246  	NullFields []string `json:"-"`
  5247  }
  5248  
  5249  func (s *WeeklyCycle) MarshalJSON() ([]byte, error) {
  5250  	type NoMethod WeeklyCycle
  5251  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5252  }
  5253  
  5254  type ProjectsLocationsGetCall struct {
  5255  	s            *Service
  5256  	name         string
  5257  	urlParams_   gensupport.URLParams
  5258  	ifNoneMatch_ string
  5259  	ctx_         context.Context
  5260  	header_      http.Header
  5261  }
  5262  
  5263  // Get: Gets information about a location.
  5264  //
  5265  // - name: Resource name for the location.
  5266  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
  5267  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5268  	c.name = name
  5269  	return c
  5270  }
  5271  
  5272  // Fields allows partial responses to be retrieved. See
  5273  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5274  // details.
  5275  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
  5276  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5277  	return c
  5278  }
  5279  
  5280  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5281  // object's ETag matches the given value. This is useful for getting updates
  5282  // only after the object has changed since the last request.
  5283  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
  5284  	c.ifNoneMatch_ = entityTag
  5285  	return c
  5286  }
  5287  
  5288  // Context sets the context to be used in this call's Do method.
  5289  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
  5290  	c.ctx_ = ctx
  5291  	return c
  5292  }
  5293  
  5294  // Header returns a http.Header that can be modified by the caller to add
  5295  // headers to the request.
  5296  func (c *ProjectsLocationsGetCall) Header() http.Header {
  5297  	if c.header_ == nil {
  5298  		c.header_ = make(http.Header)
  5299  	}
  5300  	return c.header_
  5301  }
  5302  
  5303  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  5304  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5305  	if c.ifNoneMatch_ != "" {
  5306  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5307  	}
  5308  	var body io.Reader = nil
  5309  	c.urlParams_.Set("alt", alt)
  5310  	c.urlParams_.Set("prettyPrint", "false")
  5311  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5312  	urls += "?" + c.urlParams_.Encode()
  5313  	req, err := http.NewRequest("GET", urls, body)
  5314  	if err != nil {
  5315  		return nil, err
  5316  	}
  5317  	req.Header = reqHeaders
  5318  	googleapi.Expand(req.URL, map[string]string{
  5319  		"name": c.name,
  5320  	})
  5321  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5322  }
  5323  
  5324  // Do executes the "connectors.projects.locations.get" call.
  5325  // Any non-2xx status code is an error. Response headers are in either
  5326  // *Location.ServerResponse.Header or (if a response was returned at all) in
  5327  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5328  // whether the returned error was because http.StatusNotModified was returned.
  5329  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
  5330  	gensupport.SetOptions(c.urlParams_, opts...)
  5331  	res, err := c.doRequest("json")
  5332  	if res != nil && res.StatusCode == http.StatusNotModified {
  5333  		if res.Body != nil {
  5334  			res.Body.Close()
  5335  		}
  5336  		return nil, gensupport.WrapError(&googleapi.Error{
  5337  			Code:   res.StatusCode,
  5338  			Header: res.Header,
  5339  		})
  5340  	}
  5341  	if err != nil {
  5342  		return nil, err
  5343  	}
  5344  	defer googleapi.CloseBody(res)
  5345  	if err := googleapi.CheckResponse(res); err != nil {
  5346  		return nil, gensupport.WrapError(err)
  5347  	}
  5348  	ret := &Location{
  5349  		ServerResponse: googleapi.ServerResponse{
  5350  			Header:         res.Header,
  5351  			HTTPStatusCode: res.StatusCode,
  5352  		},
  5353  	}
  5354  	target := &ret
  5355  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5356  		return nil, err
  5357  	}
  5358  	return ret, nil
  5359  }
  5360  
  5361  type ProjectsLocationsGetRegionalSettingsCall struct {
  5362  	s            *Service
  5363  	name         string
  5364  	urlParams_   gensupport.URLParams
  5365  	ifNoneMatch_ string
  5366  	ctx_         context.Context
  5367  	header_      http.Header
  5368  }
  5369  
  5370  // GetRegionalSettings: GetRegionalSettings gets settings of a region.
  5371  // RegionalSettings is a singleton resource.
  5372  //
  5373  // - name: The resource name of the Regional Settings.
  5374  func (r *ProjectsLocationsService) GetRegionalSettings(name string) *ProjectsLocationsGetRegionalSettingsCall {
  5375  	c := &ProjectsLocationsGetRegionalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5376  	c.name = name
  5377  	return c
  5378  }
  5379  
  5380  // Fields allows partial responses to be retrieved. See
  5381  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5382  // details.
  5383  func (c *ProjectsLocationsGetRegionalSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetRegionalSettingsCall {
  5384  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5385  	return c
  5386  }
  5387  
  5388  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5389  // object's ETag matches the given value. This is useful for getting updates
  5390  // only after the object has changed since the last request.
  5391  func (c *ProjectsLocationsGetRegionalSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetRegionalSettingsCall {
  5392  	c.ifNoneMatch_ = entityTag
  5393  	return c
  5394  }
  5395  
  5396  // Context sets the context to be used in this call's Do method.
  5397  func (c *ProjectsLocationsGetRegionalSettingsCall) Context(ctx context.Context) *ProjectsLocationsGetRegionalSettingsCall {
  5398  	c.ctx_ = ctx
  5399  	return c
  5400  }
  5401  
  5402  // Header returns a http.Header that can be modified by the caller to add
  5403  // headers to the request.
  5404  func (c *ProjectsLocationsGetRegionalSettingsCall) Header() http.Header {
  5405  	if c.header_ == nil {
  5406  		c.header_ = make(http.Header)
  5407  	}
  5408  	return c.header_
  5409  }
  5410  
  5411  func (c *ProjectsLocationsGetRegionalSettingsCall) doRequest(alt string) (*http.Response, error) {
  5412  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5413  	if c.ifNoneMatch_ != "" {
  5414  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5415  	}
  5416  	var body io.Reader = nil
  5417  	c.urlParams_.Set("alt", alt)
  5418  	c.urlParams_.Set("prettyPrint", "false")
  5419  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5420  	urls += "?" + c.urlParams_.Encode()
  5421  	req, err := http.NewRequest("GET", urls, body)
  5422  	if err != nil {
  5423  		return nil, err
  5424  	}
  5425  	req.Header = reqHeaders
  5426  	googleapi.Expand(req.URL, map[string]string{
  5427  		"name": c.name,
  5428  	})
  5429  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5430  }
  5431  
  5432  // Do executes the "connectors.projects.locations.getRegionalSettings" call.
  5433  // Any non-2xx status code is an error. Response headers are in either
  5434  // *RegionalSettings.ServerResponse.Header or (if a response was returned at
  5435  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5436  // check whether the returned error was because http.StatusNotModified was
  5437  // returned.
  5438  func (c *ProjectsLocationsGetRegionalSettingsCall) Do(opts ...googleapi.CallOption) (*RegionalSettings, error) {
  5439  	gensupport.SetOptions(c.urlParams_, opts...)
  5440  	res, err := c.doRequest("json")
  5441  	if res != nil && res.StatusCode == http.StatusNotModified {
  5442  		if res.Body != nil {
  5443  			res.Body.Close()
  5444  		}
  5445  		return nil, gensupport.WrapError(&googleapi.Error{
  5446  			Code:   res.StatusCode,
  5447  			Header: res.Header,
  5448  		})
  5449  	}
  5450  	if err != nil {
  5451  		return nil, err
  5452  	}
  5453  	defer googleapi.CloseBody(res)
  5454  	if err := googleapi.CheckResponse(res); err != nil {
  5455  		return nil, gensupport.WrapError(err)
  5456  	}
  5457  	ret := &RegionalSettings{
  5458  		ServerResponse: googleapi.ServerResponse{
  5459  			Header:         res.Header,
  5460  			HTTPStatusCode: res.StatusCode,
  5461  		},
  5462  	}
  5463  	target := &ret
  5464  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5465  		return nil, err
  5466  	}
  5467  	return ret, nil
  5468  }
  5469  
  5470  type ProjectsLocationsGetRuntimeConfigCall struct {
  5471  	s            *Service
  5472  	name         string
  5473  	urlParams_   gensupport.URLParams
  5474  	ifNoneMatch_ string
  5475  	ctx_         context.Context
  5476  	header_      http.Header
  5477  }
  5478  
  5479  // GetRuntimeConfig: Gets the runtimeConfig of a location. RuntimeConfig is a
  5480  // singleton resource for each location.
  5481  //
  5482  // - name: Resource name of the form: `projects/*/locations/*/runtimeConfig`.
  5483  func (r *ProjectsLocationsService) GetRuntimeConfig(name string) *ProjectsLocationsGetRuntimeConfigCall {
  5484  	c := &ProjectsLocationsGetRuntimeConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5485  	c.name = name
  5486  	return c
  5487  }
  5488  
  5489  // Fields allows partial responses to be retrieved. See
  5490  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5491  // details.
  5492  func (c *ProjectsLocationsGetRuntimeConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetRuntimeConfigCall {
  5493  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5494  	return c
  5495  }
  5496  
  5497  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5498  // object's ETag matches the given value. This is useful for getting updates
  5499  // only after the object has changed since the last request.
  5500  func (c *ProjectsLocationsGetRuntimeConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetRuntimeConfigCall {
  5501  	c.ifNoneMatch_ = entityTag
  5502  	return c
  5503  }
  5504  
  5505  // Context sets the context to be used in this call's Do method.
  5506  func (c *ProjectsLocationsGetRuntimeConfigCall) Context(ctx context.Context) *ProjectsLocationsGetRuntimeConfigCall {
  5507  	c.ctx_ = ctx
  5508  	return c
  5509  }
  5510  
  5511  // Header returns a http.Header that can be modified by the caller to add
  5512  // headers to the request.
  5513  func (c *ProjectsLocationsGetRuntimeConfigCall) Header() http.Header {
  5514  	if c.header_ == nil {
  5515  		c.header_ = make(http.Header)
  5516  	}
  5517  	return c.header_
  5518  }
  5519  
  5520  func (c *ProjectsLocationsGetRuntimeConfigCall) doRequest(alt string) (*http.Response, error) {
  5521  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5522  	if c.ifNoneMatch_ != "" {
  5523  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5524  	}
  5525  	var body io.Reader = nil
  5526  	c.urlParams_.Set("alt", alt)
  5527  	c.urlParams_.Set("prettyPrint", "false")
  5528  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5529  	urls += "?" + c.urlParams_.Encode()
  5530  	req, err := http.NewRequest("GET", urls, body)
  5531  	if err != nil {
  5532  		return nil, err
  5533  	}
  5534  	req.Header = reqHeaders
  5535  	googleapi.Expand(req.URL, map[string]string{
  5536  		"name": c.name,
  5537  	})
  5538  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5539  }
  5540  
  5541  // Do executes the "connectors.projects.locations.getRuntimeConfig" call.
  5542  // Any non-2xx status code is an error. Response headers are in either
  5543  // *RuntimeConfig.ServerResponse.Header or (if a response was returned at all)
  5544  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5545  // whether the returned error was because http.StatusNotModified was returned.
  5546  func (c *ProjectsLocationsGetRuntimeConfigCall) Do(opts ...googleapi.CallOption) (*RuntimeConfig, error) {
  5547  	gensupport.SetOptions(c.urlParams_, opts...)
  5548  	res, err := c.doRequest("json")
  5549  	if res != nil && res.StatusCode == http.StatusNotModified {
  5550  		if res.Body != nil {
  5551  			res.Body.Close()
  5552  		}
  5553  		return nil, gensupport.WrapError(&googleapi.Error{
  5554  			Code:   res.StatusCode,
  5555  			Header: res.Header,
  5556  		})
  5557  	}
  5558  	if err != nil {
  5559  		return nil, err
  5560  	}
  5561  	defer googleapi.CloseBody(res)
  5562  	if err := googleapi.CheckResponse(res); err != nil {
  5563  		return nil, gensupport.WrapError(err)
  5564  	}
  5565  	ret := &RuntimeConfig{
  5566  		ServerResponse: googleapi.ServerResponse{
  5567  			Header:         res.Header,
  5568  			HTTPStatusCode: res.StatusCode,
  5569  		},
  5570  	}
  5571  	target := &ret
  5572  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5573  		return nil, err
  5574  	}
  5575  	return ret, nil
  5576  }
  5577  
  5578  type ProjectsLocationsListCall struct {
  5579  	s            *Service
  5580  	name         string
  5581  	urlParams_   gensupport.URLParams
  5582  	ifNoneMatch_ string
  5583  	ctx_         context.Context
  5584  	header_      http.Header
  5585  }
  5586  
  5587  // List: Lists information about the supported locations for this service.
  5588  //
  5589  // - name: The resource that owns the locations collection, if applicable.
  5590  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
  5591  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5592  	c.name = name
  5593  	return c
  5594  }
  5595  
  5596  // Filter sets the optional parameter "filter": A filter to narrow down results
  5597  // to a preferred subset. The filtering language accepts strings like
  5598  // "displayName=tokyo", and is documented in more detail in AIP-160
  5599  // (https://google.aip.dev/160).
  5600  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  5601  	c.urlParams_.Set("filter", filter)
  5602  	return c
  5603  }
  5604  
  5605  // PageSize sets the optional parameter "pageSize": The maximum number of
  5606  // results to return. If not set, the service selects a default.
  5607  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  5608  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5609  	return c
  5610  }
  5611  
  5612  // PageToken sets the optional parameter "pageToken": A page token received
  5613  // from the `next_page_token` field in the response. Send that page token to
  5614  // receive the subsequent page.
  5615  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  5616  	c.urlParams_.Set("pageToken", pageToken)
  5617  	return c
  5618  }
  5619  
  5620  // Fields allows partial responses to be retrieved. See
  5621  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5622  // details.
  5623  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  5624  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5625  	return c
  5626  }
  5627  
  5628  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5629  // object's ETag matches the given value. This is useful for getting updates
  5630  // only after the object has changed since the last request.
  5631  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  5632  	c.ifNoneMatch_ = entityTag
  5633  	return c
  5634  }
  5635  
  5636  // Context sets the context to be used in this call's Do method.
  5637  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  5638  	c.ctx_ = ctx
  5639  	return c
  5640  }
  5641  
  5642  // Header returns a http.Header that can be modified by the caller to add
  5643  // headers to the request.
  5644  func (c *ProjectsLocationsListCall) Header() http.Header {
  5645  	if c.header_ == nil {
  5646  		c.header_ = make(http.Header)
  5647  	}
  5648  	return c.header_
  5649  }
  5650  
  5651  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  5652  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5653  	if c.ifNoneMatch_ != "" {
  5654  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5655  	}
  5656  	var body io.Reader = nil
  5657  	c.urlParams_.Set("alt", alt)
  5658  	c.urlParams_.Set("prettyPrint", "false")
  5659  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
  5660  	urls += "?" + c.urlParams_.Encode()
  5661  	req, err := http.NewRequest("GET", urls, body)
  5662  	if err != nil {
  5663  		return nil, err
  5664  	}
  5665  	req.Header = reqHeaders
  5666  	googleapi.Expand(req.URL, map[string]string{
  5667  		"name": c.name,
  5668  	})
  5669  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5670  }
  5671  
  5672  // Do executes the "connectors.projects.locations.list" call.
  5673  // Any non-2xx status code is an error. Response headers are in either
  5674  // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
  5675  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5676  // check whether the returned error was because http.StatusNotModified was
  5677  // returned.
  5678  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  5679  	gensupport.SetOptions(c.urlParams_, opts...)
  5680  	res, err := c.doRequest("json")
  5681  	if res != nil && res.StatusCode == http.StatusNotModified {
  5682  		if res.Body != nil {
  5683  			res.Body.Close()
  5684  		}
  5685  		return nil, gensupport.WrapError(&googleapi.Error{
  5686  			Code:   res.StatusCode,
  5687  			Header: res.Header,
  5688  		})
  5689  	}
  5690  	if err != nil {
  5691  		return nil, err
  5692  	}
  5693  	defer googleapi.CloseBody(res)
  5694  	if err := googleapi.CheckResponse(res); err != nil {
  5695  		return nil, gensupport.WrapError(err)
  5696  	}
  5697  	ret := &ListLocationsResponse{
  5698  		ServerResponse: googleapi.ServerResponse{
  5699  			Header:         res.Header,
  5700  			HTTPStatusCode: res.StatusCode,
  5701  		},
  5702  	}
  5703  	target := &ret
  5704  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5705  		return nil, err
  5706  	}
  5707  	return ret, nil
  5708  }
  5709  
  5710  // Pages invokes f for each page of results.
  5711  // A non-nil error returned from f will halt the iteration.
  5712  // The provided context supersedes any context provided to the Context method.
  5713  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  5714  	c.ctx_ = ctx
  5715  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5716  	for {
  5717  		x, err := c.Do()
  5718  		if err != nil {
  5719  			return err
  5720  		}
  5721  		if err := f(x); err != nil {
  5722  			return err
  5723  		}
  5724  		if x.NextPageToken == "" {
  5725  			return nil
  5726  		}
  5727  		c.PageToken(x.NextPageToken)
  5728  	}
  5729  }
  5730  
  5731  type ProjectsLocationsUpdateRegionalSettingsCall struct {
  5732  	s                *Service
  5733  	name             string
  5734  	regionalsettings *RegionalSettings
  5735  	urlParams_       gensupport.URLParams
  5736  	ctx_             context.Context
  5737  	header_          http.Header
  5738  }
  5739  
  5740  // UpdateRegionalSettings: Update the settings of a region.
  5741  //
  5742  //   - name: Output only. Resource name of the Connection. Format:
  5743  //     projects/{project}/locations/{location}/regionalSettings.
  5744  func (r *ProjectsLocationsService) UpdateRegionalSettings(name string, regionalsettings *RegionalSettings) *ProjectsLocationsUpdateRegionalSettingsCall {
  5745  	c := &ProjectsLocationsUpdateRegionalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5746  	c.name = name
  5747  	c.regionalsettings = regionalsettings
  5748  	return c
  5749  }
  5750  
  5751  // UpdateMask sets the optional parameter "updateMask": Required. The list of
  5752  // fields to update.
  5753  func (c *ProjectsLocationsUpdateRegionalSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateRegionalSettingsCall {
  5754  	c.urlParams_.Set("updateMask", updateMask)
  5755  	return c
  5756  }
  5757  
  5758  // Fields allows partial responses to be retrieved. See
  5759  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5760  // details.
  5761  func (c *ProjectsLocationsUpdateRegionalSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateRegionalSettingsCall {
  5762  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5763  	return c
  5764  }
  5765  
  5766  // Context sets the context to be used in this call's Do method.
  5767  func (c *ProjectsLocationsUpdateRegionalSettingsCall) Context(ctx context.Context) *ProjectsLocationsUpdateRegionalSettingsCall {
  5768  	c.ctx_ = ctx
  5769  	return c
  5770  }
  5771  
  5772  // Header returns a http.Header that can be modified by the caller to add
  5773  // headers to the request.
  5774  func (c *ProjectsLocationsUpdateRegionalSettingsCall) Header() http.Header {
  5775  	if c.header_ == nil {
  5776  		c.header_ = make(http.Header)
  5777  	}
  5778  	return c.header_
  5779  }
  5780  
  5781  func (c *ProjectsLocationsUpdateRegionalSettingsCall) doRequest(alt string) (*http.Response, error) {
  5782  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5783  	var body io.Reader = nil
  5784  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.regionalsettings)
  5785  	if err != nil {
  5786  		return nil, err
  5787  	}
  5788  	c.urlParams_.Set("alt", alt)
  5789  	c.urlParams_.Set("prettyPrint", "false")
  5790  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5791  	urls += "?" + c.urlParams_.Encode()
  5792  	req, err := http.NewRequest("PATCH", urls, body)
  5793  	if err != nil {
  5794  		return nil, err
  5795  	}
  5796  	req.Header = reqHeaders
  5797  	googleapi.Expand(req.URL, map[string]string{
  5798  		"name": c.name,
  5799  	})
  5800  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5801  }
  5802  
  5803  // Do executes the "connectors.projects.locations.updateRegionalSettings" call.
  5804  // Any non-2xx status code is an error. Response headers are in either
  5805  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5806  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5807  // whether the returned error was because http.StatusNotModified was returned.
  5808  func (c *ProjectsLocationsUpdateRegionalSettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5809  	gensupport.SetOptions(c.urlParams_, opts...)
  5810  	res, err := c.doRequest("json")
  5811  	if res != nil && res.StatusCode == http.StatusNotModified {
  5812  		if res.Body != nil {
  5813  			res.Body.Close()
  5814  		}
  5815  		return nil, gensupport.WrapError(&googleapi.Error{
  5816  			Code:   res.StatusCode,
  5817  			Header: res.Header,
  5818  		})
  5819  	}
  5820  	if err != nil {
  5821  		return nil, err
  5822  	}
  5823  	defer googleapi.CloseBody(res)
  5824  	if err := googleapi.CheckResponse(res); err != nil {
  5825  		return nil, gensupport.WrapError(err)
  5826  	}
  5827  	ret := &Operation{
  5828  		ServerResponse: googleapi.ServerResponse{
  5829  			Header:         res.Header,
  5830  			HTTPStatusCode: res.StatusCode,
  5831  		},
  5832  	}
  5833  	target := &ret
  5834  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5835  		return nil, err
  5836  	}
  5837  	return ret, nil
  5838  }
  5839  
  5840  type ProjectsLocationsConnectionsCreateCall struct {
  5841  	s          *Service
  5842  	parent     string
  5843  	connection *Connection
  5844  	urlParams_ gensupport.URLParams
  5845  	ctx_       context.Context
  5846  	header_    http.Header
  5847  }
  5848  
  5849  // Create: Creates a new Connection in a given project and location.
  5850  //
  5851  //   - parent: Parent resource of the Connection, of the form:
  5852  //     `projects/*/locations/*`.
  5853  func (r *ProjectsLocationsConnectionsService) Create(parent string, connection *Connection) *ProjectsLocationsConnectionsCreateCall {
  5854  	c := &ProjectsLocationsConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5855  	c.parent = parent
  5856  	c.connection = connection
  5857  	return c
  5858  }
  5859  
  5860  // ConnectionId sets the optional parameter "connectionId": Required.
  5861  // Identifier to assign to the Connection. Must be unique within scope of the
  5862  // parent resource.
  5863  func (c *ProjectsLocationsConnectionsCreateCall) ConnectionId(connectionId string) *ProjectsLocationsConnectionsCreateCall {
  5864  	c.urlParams_.Set("connectionId", connectionId)
  5865  	return c
  5866  }
  5867  
  5868  // Fields allows partial responses to be retrieved. See
  5869  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5870  // details.
  5871  func (c *ProjectsLocationsConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsCreateCall {
  5872  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5873  	return c
  5874  }
  5875  
  5876  // Context sets the context to be used in this call's Do method.
  5877  func (c *ProjectsLocationsConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsCreateCall {
  5878  	c.ctx_ = ctx
  5879  	return c
  5880  }
  5881  
  5882  // Header returns a http.Header that can be modified by the caller to add
  5883  // headers to the request.
  5884  func (c *ProjectsLocationsConnectionsCreateCall) Header() http.Header {
  5885  	if c.header_ == nil {
  5886  		c.header_ = make(http.Header)
  5887  	}
  5888  	return c.header_
  5889  }
  5890  
  5891  func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Response, error) {
  5892  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5893  	var body io.Reader = nil
  5894  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.connection)
  5895  	if err != nil {
  5896  		return nil, err
  5897  	}
  5898  	c.urlParams_.Set("alt", alt)
  5899  	c.urlParams_.Set("prettyPrint", "false")
  5900  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connections")
  5901  	urls += "?" + c.urlParams_.Encode()
  5902  	req, err := http.NewRequest("POST", urls, body)
  5903  	if err != nil {
  5904  		return nil, err
  5905  	}
  5906  	req.Header = reqHeaders
  5907  	googleapi.Expand(req.URL, map[string]string{
  5908  		"parent": c.parent,
  5909  	})
  5910  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5911  }
  5912  
  5913  // Do executes the "connectors.projects.locations.connections.create" call.
  5914  // Any non-2xx status code is an error. Response headers are in either
  5915  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5916  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5917  // whether the returned error was because http.StatusNotModified was returned.
  5918  func (c *ProjectsLocationsConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5919  	gensupport.SetOptions(c.urlParams_, opts...)
  5920  	res, err := c.doRequest("json")
  5921  	if res != nil && res.StatusCode == http.StatusNotModified {
  5922  		if res.Body != nil {
  5923  			res.Body.Close()
  5924  		}
  5925  		return nil, gensupport.WrapError(&googleapi.Error{
  5926  			Code:   res.StatusCode,
  5927  			Header: res.Header,
  5928  		})
  5929  	}
  5930  	if err != nil {
  5931  		return nil, err
  5932  	}
  5933  	defer googleapi.CloseBody(res)
  5934  	if err := googleapi.CheckResponse(res); err != nil {
  5935  		return nil, gensupport.WrapError(err)
  5936  	}
  5937  	ret := &Operation{
  5938  		ServerResponse: googleapi.ServerResponse{
  5939  			Header:         res.Header,
  5940  			HTTPStatusCode: res.StatusCode,
  5941  		},
  5942  	}
  5943  	target := &ret
  5944  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5945  		return nil, err
  5946  	}
  5947  	return ret, nil
  5948  }
  5949  
  5950  type ProjectsLocationsConnectionsDeleteCall struct {
  5951  	s          *Service
  5952  	name       string
  5953  	urlParams_ gensupport.URLParams
  5954  	ctx_       context.Context
  5955  	header_    http.Header
  5956  }
  5957  
  5958  // Delete: Deletes a single Connection.
  5959  //
  5960  // - name: Resource name of the form: `projects/*/locations/*/connections/*`.
  5961  func (r *ProjectsLocationsConnectionsService) Delete(name string) *ProjectsLocationsConnectionsDeleteCall {
  5962  	c := &ProjectsLocationsConnectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5963  	c.name = name
  5964  	return c
  5965  }
  5966  
  5967  // Fields allows partial responses to be retrieved. See
  5968  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5969  // details.
  5970  func (c *ProjectsLocationsConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsDeleteCall {
  5971  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5972  	return c
  5973  }
  5974  
  5975  // Context sets the context to be used in this call's Do method.
  5976  func (c *ProjectsLocationsConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsDeleteCall {
  5977  	c.ctx_ = ctx
  5978  	return c
  5979  }
  5980  
  5981  // Header returns a http.Header that can be modified by the caller to add
  5982  // headers to the request.
  5983  func (c *ProjectsLocationsConnectionsDeleteCall) Header() http.Header {
  5984  	if c.header_ == nil {
  5985  		c.header_ = make(http.Header)
  5986  	}
  5987  	return c.header_
  5988  }
  5989  
  5990  func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Response, error) {
  5991  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5992  	var body io.Reader = nil
  5993  	c.urlParams_.Set("alt", alt)
  5994  	c.urlParams_.Set("prettyPrint", "false")
  5995  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5996  	urls += "?" + c.urlParams_.Encode()
  5997  	req, err := http.NewRequest("DELETE", urls, body)
  5998  	if err != nil {
  5999  		return nil, err
  6000  	}
  6001  	req.Header = reqHeaders
  6002  	googleapi.Expand(req.URL, map[string]string{
  6003  		"name": c.name,
  6004  	})
  6005  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6006  }
  6007  
  6008  // Do executes the "connectors.projects.locations.connections.delete" call.
  6009  // Any non-2xx status code is an error. Response headers are in either
  6010  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6011  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6012  // whether the returned error was because http.StatusNotModified was returned.
  6013  func (c *ProjectsLocationsConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6014  	gensupport.SetOptions(c.urlParams_, opts...)
  6015  	res, err := c.doRequest("json")
  6016  	if res != nil && res.StatusCode == http.StatusNotModified {
  6017  		if res.Body != nil {
  6018  			res.Body.Close()
  6019  		}
  6020  		return nil, gensupport.WrapError(&googleapi.Error{
  6021  			Code:   res.StatusCode,
  6022  			Header: res.Header,
  6023  		})
  6024  	}
  6025  	if err != nil {
  6026  		return nil, err
  6027  	}
  6028  	defer googleapi.CloseBody(res)
  6029  	if err := googleapi.CheckResponse(res); err != nil {
  6030  		return nil, gensupport.WrapError(err)
  6031  	}
  6032  	ret := &Operation{
  6033  		ServerResponse: googleapi.ServerResponse{
  6034  			Header:         res.Header,
  6035  			HTTPStatusCode: res.StatusCode,
  6036  		},
  6037  	}
  6038  	target := &ret
  6039  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6040  		return nil, err
  6041  	}
  6042  	return ret, nil
  6043  }
  6044  
  6045  type ProjectsLocationsConnectionsGetCall struct {
  6046  	s            *Service
  6047  	name         string
  6048  	urlParams_   gensupport.URLParams
  6049  	ifNoneMatch_ string
  6050  	ctx_         context.Context
  6051  	header_      http.Header
  6052  }
  6053  
  6054  // Get: Gets details of a single Connection.
  6055  //
  6056  // - name: Resource name of the form: `projects/*/locations/*/connections/*`.
  6057  func (r *ProjectsLocationsConnectionsService) Get(name string) *ProjectsLocationsConnectionsGetCall {
  6058  	c := &ProjectsLocationsConnectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6059  	c.name = name
  6060  	return c
  6061  }
  6062  
  6063  // View sets the optional parameter "view": Specifies which fields of the
  6064  // Connection are returned in the response. Defaults to `BASIC` view.
  6065  //
  6066  // Possible values:
  6067  //
  6068  //	"CONNECTION_VIEW_UNSPECIFIED" - CONNECTION_UNSPECIFIED.
  6069  //	"BASIC" - Do not include runtime required configs.
  6070  //	"FULL" - Include runtime required configs.
  6071  func (c *ProjectsLocationsConnectionsGetCall) View(view string) *ProjectsLocationsConnectionsGetCall {
  6072  	c.urlParams_.Set("view", view)
  6073  	return c
  6074  }
  6075  
  6076  // Fields allows partial responses to be retrieved. See
  6077  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6078  // details.
  6079  func (c *ProjectsLocationsConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetCall {
  6080  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6081  	return c
  6082  }
  6083  
  6084  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6085  // object's ETag matches the given value. This is useful for getting updates
  6086  // only after the object has changed since the last request.
  6087  func (c *ProjectsLocationsConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetCall {
  6088  	c.ifNoneMatch_ = entityTag
  6089  	return c
  6090  }
  6091  
  6092  // Context sets the context to be used in this call's Do method.
  6093  func (c *ProjectsLocationsConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetCall {
  6094  	c.ctx_ = ctx
  6095  	return c
  6096  }
  6097  
  6098  // Header returns a http.Header that can be modified by the caller to add
  6099  // headers to the request.
  6100  func (c *ProjectsLocationsConnectionsGetCall) Header() http.Header {
  6101  	if c.header_ == nil {
  6102  		c.header_ = make(http.Header)
  6103  	}
  6104  	return c.header_
  6105  }
  6106  
  6107  func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Response, error) {
  6108  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6109  	if c.ifNoneMatch_ != "" {
  6110  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6111  	}
  6112  	var body io.Reader = nil
  6113  	c.urlParams_.Set("alt", alt)
  6114  	c.urlParams_.Set("prettyPrint", "false")
  6115  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6116  	urls += "?" + c.urlParams_.Encode()
  6117  	req, err := http.NewRequest("GET", urls, body)
  6118  	if err != nil {
  6119  		return nil, err
  6120  	}
  6121  	req.Header = reqHeaders
  6122  	googleapi.Expand(req.URL, map[string]string{
  6123  		"name": c.name,
  6124  	})
  6125  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6126  }
  6127  
  6128  // Do executes the "connectors.projects.locations.connections.get" call.
  6129  // Any non-2xx status code is an error. Response headers are in either
  6130  // *Connection.ServerResponse.Header or (if a response was returned at all) in
  6131  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6132  // whether the returned error was because http.StatusNotModified was returned.
  6133  func (c *ProjectsLocationsConnectionsGetCall) Do(opts ...googleapi.CallOption) (*Connection, error) {
  6134  	gensupport.SetOptions(c.urlParams_, opts...)
  6135  	res, err := c.doRequest("json")
  6136  	if res != nil && res.StatusCode == http.StatusNotModified {
  6137  		if res.Body != nil {
  6138  			res.Body.Close()
  6139  		}
  6140  		return nil, gensupport.WrapError(&googleapi.Error{
  6141  			Code:   res.StatusCode,
  6142  			Header: res.Header,
  6143  		})
  6144  	}
  6145  	if err != nil {
  6146  		return nil, err
  6147  	}
  6148  	defer googleapi.CloseBody(res)
  6149  	if err := googleapi.CheckResponse(res); err != nil {
  6150  		return nil, gensupport.WrapError(err)
  6151  	}
  6152  	ret := &Connection{
  6153  		ServerResponse: googleapi.ServerResponse{
  6154  			Header:         res.Header,
  6155  			HTTPStatusCode: res.StatusCode,
  6156  		},
  6157  	}
  6158  	target := &ret
  6159  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6160  		return nil, err
  6161  	}
  6162  	return ret, nil
  6163  }
  6164  
  6165  type ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall struct {
  6166  	s            *Service
  6167  	name         string
  6168  	urlParams_   gensupport.URLParams
  6169  	ifNoneMatch_ string
  6170  	ctx_         context.Context
  6171  	header_      http.Header
  6172  }
  6173  
  6174  // GetConnectionSchemaMetadata: Gets schema metadata of a connection.
  6175  // SchemaMetadata is a singleton resource for each connection.
  6176  //
  6177  //   - name: Connection name Format:
  6178  //     projects/{project}/locations/{location}/connections/{connection}/connection
  6179  //     SchemaMetadata.
  6180  func (r *ProjectsLocationsConnectionsService) GetConnectionSchemaMetadata(name string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall {
  6181  	c := &ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6182  	c.name = name
  6183  	return c
  6184  }
  6185  
  6186  // Fields allows partial responses to be retrieved. See
  6187  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6188  // details.
  6189  func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall {
  6190  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6191  	return c
  6192  }
  6193  
  6194  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6195  // object's ETag matches the given value. This is useful for getting updates
  6196  // only after the object has changed since the last request.
  6197  func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall {
  6198  	c.ifNoneMatch_ = entityTag
  6199  	return c
  6200  }
  6201  
  6202  // Context sets the context to be used in this call's Do method.
  6203  func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall {
  6204  	c.ctx_ = ctx
  6205  	return c
  6206  }
  6207  
  6208  // Header returns a http.Header that can be modified by the caller to add
  6209  // headers to the request.
  6210  func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Header() http.Header {
  6211  	if c.header_ == nil {
  6212  		c.header_ = make(http.Header)
  6213  	}
  6214  	return c.header_
  6215  }
  6216  
  6217  func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) doRequest(alt string) (*http.Response, error) {
  6218  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6219  	if c.ifNoneMatch_ != "" {
  6220  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6221  	}
  6222  	var body io.Reader = nil
  6223  	c.urlParams_.Set("alt", alt)
  6224  	c.urlParams_.Set("prettyPrint", "false")
  6225  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6226  	urls += "?" + c.urlParams_.Encode()
  6227  	req, err := http.NewRequest("GET", urls, body)
  6228  	if err != nil {
  6229  		return nil, err
  6230  	}
  6231  	req.Header = reqHeaders
  6232  	googleapi.Expand(req.URL, map[string]string{
  6233  		"name": c.name,
  6234  	})
  6235  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6236  }
  6237  
  6238  // Do executes the "connectors.projects.locations.connections.getConnectionSchemaMetadata" call.
  6239  // Any non-2xx status code is an error. Response headers are in either
  6240  // *ConnectionSchemaMetadata.ServerResponse.Header or (if a response was
  6241  // returned at all) in error.(*googleapi.Error).Header. Use
  6242  // googleapi.IsNotModified to check whether the returned error was because
  6243  // http.StatusNotModified was returned.
  6244  func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Do(opts ...googleapi.CallOption) (*ConnectionSchemaMetadata, error) {
  6245  	gensupport.SetOptions(c.urlParams_, opts...)
  6246  	res, err := c.doRequest("json")
  6247  	if res != nil && res.StatusCode == http.StatusNotModified {
  6248  		if res.Body != nil {
  6249  			res.Body.Close()
  6250  		}
  6251  		return nil, gensupport.WrapError(&googleapi.Error{
  6252  			Code:   res.StatusCode,
  6253  			Header: res.Header,
  6254  		})
  6255  	}
  6256  	if err != nil {
  6257  		return nil, err
  6258  	}
  6259  	defer googleapi.CloseBody(res)
  6260  	if err := googleapi.CheckResponse(res); err != nil {
  6261  		return nil, gensupport.WrapError(err)
  6262  	}
  6263  	ret := &ConnectionSchemaMetadata{
  6264  		ServerResponse: googleapi.ServerResponse{
  6265  			Header:         res.Header,
  6266  			HTTPStatusCode: res.StatusCode,
  6267  		},
  6268  	}
  6269  	target := &ret
  6270  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6271  		return nil, err
  6272  	}
  6273  	return ret, nil
  6274  }
  6275  
  6276  type ProjectsLocationsConnectionsGetIamPolicyCall struct {
  6277  	s            *Service
  6278  	resource     string
  6279  	urlParams_   gensupport.URLParams
  6280  	ifNoneMatch_ string
  6281  	ctx_         context.Context
  6282  	header_      http.Header
  6283  }
  6284  
  6285  // GetIamPolicy: Gets the access control policy for a resource. Returns an
  6286  // empty policy if the resource exists and does not have a policy set.
  6287  //
  6288  //   - resource: REQUIRED: The resource for which the policy is being requested.
  6289  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  6290  //     for the appropriate value for this field.
  6291  func (r *ProjectsLocationsConnectionsService) GetIamPolicy(resource string) *ProjectsLocationsConnectionsGetIamPolicyCall {
  6292  	c := &ProjectsLocationsConnectionsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6293  	c.resource = resource
  6294  	return c
  6295  }
  6296  
  6297  // OptionsRequestedPolicyVersion sets the optional parameter
  6298  // "options.requestedPolicyVersion": The maximum policy version that will be
  6299  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
  6300  // an invalid value will be rejected. Requests for policies with any
  6301  // conditional role bindings must specify version 3. Policies with no
  6302  // conditional role bindings may specify any valid value or leave the field
  6303  // unset. The policy in the response might use the policy version that you
  6304  // specified, or it might use a lower policy version. For example, if you
  6305  // specify version 3, but the policy has no conditional role bindings, the
  6306  // response uses version 1. To learn which resources support conditions in
  6307  // their IAM policies, see the IAM documentation
  6308  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  6309  func (c *ProjectsLocationsConnectionsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsConnectionsGetIamPolicyCall {
  6310  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  6311  	return c
  6312  }
  6313  
  6314  // Fields allows partial responses to be retrieved. See
  6315  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6316  // details.
  6317  func (c *ProjectsLocationsConnectionsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetIamPolicyCall {
  6318  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6319  	return c
  6320  }
  6321  
  6322  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6323  // object's ETag matches the given value. This is useful for getting updates
  6324  // only after the object has changed since the last request.
  6325  func (c *ProjectsLocationsConnectionsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetIamPolicyCall {
  6326  	c.ifNoneMatch_ = entityTag
  6327  	return c
  6328  }
  6329  
  6330  // Context sets the context to be used in this call's Do method.
  6331  func (c *ProjectsLocationsConnectionsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetIamPolicyCall {
  6332  	c.ctx_ = ctx
  6333  	return c
  6334  }
  6335  
  6336  // Header returns a http.Header that can be modified by the caller to add
  6337  // headers to the request.
  6338  func (c *ProjectsLocationsConnectionsGetIamPolicyCall) Header() http.Header {
  6339  	if c.header_ == nil {
  6340  		c.header_ = make(http.Header)
  6341  	}
  6342  	return c.header_
  6343  }
  6344  
  6345  func (c *ProjectsLocationsConnectionsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  6346  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6347  	if c.ifNoneMatch_ != "" {
  6348  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6349  	}
  6350  	var body io.Reader = nil
  6351  	c.urlParams_.Set("alt", alt)
  6352  	c.urlParams_.Set("prettyPrint", "false")
  6353  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  6354  	urls += "?" + c.urlParams_.Encode()
  6355  	req, err := http.NewRequest("GET", urls, body)
  6356  	if err != nil {
  6357  		return nil, err
  6358  	}
  6359  	req.Header = reqHeaders
  6360  	googleapi.Expand(req.URL, map[string]string{
  6361  		"resource": c.resource,
  6362  	})
  6363  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6364  }
  6365  
  6366  // Do executes the "connectors.projects.locations.connections.getIamPolicy" call.
  6367  // Any non-2xx status code is an error. Response headers are in either
  6368  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  6369  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6370  // whether the returned error was because http.StatusNotModified was returned.
  6371  func (c *ProjectsLocationsConnectionsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  6372  	gensupport.SetOptions(c.urlParams_, opts...)
  6373  	res, err := c.doRequest("json")
  6374  	if res != nil && res.StatusCode == http.StatusNotModified {
  6375  		if res.Body != nil {
  6376  			res.Body.Close()
  6377  		}
  6378  		return nil, gensupport.WrapError(&googleapi.Error{
  6379  			Code:   res.StatusCode,
  6380  			Header: res.Header,
  6381  		})
  6382  	}
  6383  	if err != nil {
  6384  		return nil, err
  6385  	}
  6386  	defer googleapi.CloseBody(res)
  6387  	if err := googleapi.CheckResponse(res); err != nil {
  6388  		return nil, gensupport.WrapError(err)
  6389  	}
  6390  	ret := &Policy{
  6391  		ServerResponse: googleapi.ServerResponse{
  6392  			Header:         res.Header,
  6393  			HTTPStatusCode: res.StatusCode,
  6394  		},
  6395  	}
  6396  	target := &ret
  6397  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6398  		return nil, err
  6399  	}
  6400  	return ret, nil
  6401  }
  6402  
  6403  type ProjectsLocationsConnectionsListCall struct {
  6404  	s            *Service
  6405  	parent       string
  6406  	urlParams_   gensupport.URLParams
  6407  	ifNoneMatch_ string
  6408  	ctx_         context.Context
  6409  	header_      http.Header
  6410  }
  6411  
  6412  // List: Lists Connections in a given project and location.
  6413  //
  6414  //   - parent: Parent resource of the Connection, of the form:
  6415  //     `projects/*/locations/*`.
  6416  func (r *ProjectsLocationsConnectionsService) List(parent string) *ProjectsLocationsConnectionsListCall {
  6417  	c := &ProjectsLocationsConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6418  	c.parent = parent
  6419  	return c
  6420  }
  6421  
  6422  // Filter sets the optional parameter "filter": Filter.
  6423  func (c *ProjectsLocationsConnectionsListCall) Filter(filter string) *ProjectsLocationsConnectionsListCall {
  6424  	c.urlParams_.Set("filter", filter)
  6425  	return c
  6426  }
  6427  
  6428  // OrderBy sets the optional parameter "orderBy": Order by parameters.
  6429  func (c *ProjectsLocationsConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionsListCall {
  6430  	c.urlParams_.Set("orderBy", orderBy)
  6431  	return c
  6432  }
  6433  
  6434  // PageSize sets the optional parameter "pageSize": Page size.
  6435  func (c *ProjectsLocationsConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsListCall {
  6436  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6437  	return c
  6438  }
  6439  
  6440  // PageToken sets the optional parameter "pageToken": Page token.
  6441  func (c *ProjectsLocationsConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsListCall {
  6442  	c.urlParams_.Set("pageToken", pageToken)
  6443  	return c
  6444  }
  6445  
  6446  // View sets the optional parameter "view": Specifies which fields of the
  6447  // Connection are returned in the response. Defaults to `BASIC` view.
  6448  //
  6449  // Possible values:
  6450  //
  6451  //	"CONNECTION_VIEW_UNSPECIFIED" - CONNECTION_UNSPECIFIED.
  6452  //	"BASIC" - Do not include runtime required configs.
  6453  //	"FULL" - Include runtime required configs.
  6454  func (c *ProjectsLocationsConnectionsListCall) View(view string) *ProjectsLocationsConnectionsListCall {
  6455  	c.urlParams_.Set("view", view)
  6456  	return c
  6457  }
  6458  
  6459  // Fields allows partial responses to be retrieved. See
  6460  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6461  // details.
  6462  func (c *ProjectsLocationsConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListCall {
  6463  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6464  	return c
  6465  }
  6466  
  6467  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6468  // object's ETag matches the given value. This is useful for getting updates
  6469  // only after the object has changed since the last request.
  6470  func (c *ProjectsLocationsConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsListCall {
  6471  	c.ifNoneMatch_ = entityTag
  6472  	return c
  6473  }
  6474  
  6475  // Context sets the context to be used in this call's Do method.
  6476  func (c *ProjectsLocationsConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListCall {
  6477  	c.ctx_ = ctx
  6478  	return c
  6479  }
  6480  
  6481  // Header returns a http.Header that can be modified by the caller to add
  6482  // headers to the request.
  6483  func (c *ProjectsLocationsConnectionsListCall) Header() http.Header {
  6484  	if c.header_ == nil {
  6485  		c.header_ = make(http.Header)
  6486  	}
  6487  	return c.header_
  6488  }
  6489  
  6490  func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Response, error) {
  6491  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6492  	if c.ifNoneMatch_ != "" {
  6493  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6494  	}
  6495  	var body io.Reader = nil
  6496  	c.urlParams_.Set("alt", alt)
  6497  	c.urlParams_.Set("prettyPrint", "false")
  6498  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connections")
  6499  	urls += "?" + c.urlParams_.Encode()
  6500  	req, err := http.NewRequest("GET", urls, body)
  6501  	if err != nil {
  6502  		return nil, err
  6503  	}
  6504  	req.Header = reqHeaders
  6505  	googleapi.Expand(req.URL, map[string]string{
  6506  		"parent": c.parent,
  6507  	})
  6508  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6509  }
  6510  
  6511  // Do executes the "connectors.projects.locations.connections.list" call.
  6512  // Any non-2xx status code is an error. Response headers are in either
  6513  // *ListConnectionsResponse.ServerResponse.Header or (if a response was
  6514  // returned at all) in error.(*googleapi.Error).Header. Use
  6515  // googleapi.IsNotModified to check whether the returned error was because
  6516  // http.StatusNotModified was returned.
  6517  func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) (*ListConnectionsResponse, error) {
  6518  	gensupport.SetOptions(c.urlParams_, opts...)
  6519  	res, err := c.doRequest("json")
  6520  	if res != nil && res.StatusCode == http.StatusNotModified {
  6521  		if res.Body != nil {
  6522  			res.Body.Close()
  6523  		}
  6524  		return nil, gensupport.WrapError(&googleapi.Error{
  6525  			Code:   res.StatusCode,
  6526  			Header: res.Header,
  6527  		})
  6528  	}
  6529  	if err != nil {
  6530  		return nil, err
  6531  	}
  6532  	defer googleapi.CloseBody(res)
  6533  	if err := googleapi.CheckResponse(res); err != nil {
  6534  		return nil, gensupport.WrapError(err)
  6535  	}
  6536  	ret := &ListConnectionsResponse{
  6537  		ServerResponse: googleapi.ServerResponse{
  6538  			Header:         res.Header,
  6539  			HTTPStatusCode: res.StatusCode,
  6540  		},
  6541  	}
  6542  	target := &ret
  6543  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6544  		return nil, err
  6545  	}
  6546  	return ret, nil
  6547  }
  6548  
  6549  // Pages invokes f for each page of results.
  6550  // A non-nil error returned from f will halt the iteration.
  6551  // The provided context supersedes any context provided to the Context method.
  6552  func (c *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func(*ListConnectionsResponse) error) error {
  6553  	c.ctx_ = ctx
  6554  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6555  	for {
  6556  		x, err := c.Do()
  6557  		if err != nil {
  6558  			return err
  6559  		}
  6560  		if err := f(x); err != nil {
  6561  			return err
  6562  		}
  6563  		if x.NextPageToken == "" {
  6564  			return nil
  6565  		}
  6566  		c.PageToken(x.NextPageToken)
  6567  	}
  6568  }
  6569  
  6570  type ProjectsLocationsConnectionsListenEventCall struct {
  6571  	s                  *Service
  6572  	resourcePath       string
  6573  	listeneventrequest *ListenEventRequest
  6574  	urlParams_         gensupport.URLParams
  6575  	ctx_               context.Context
  6576  	header_            http.Header
  6577  }
  6578  
  6579  // ListenEvent: ListenEvent listens to the event.
  6580  //
  6581  // - resourcePath: Resource path for request.
  6582  func (r *ProjectsLocationsConnectionsService) ListenEvent(resourcePath string, listeneventrequest *ListenEventRequest) *ProjectsLocationsConnectionsListenEventCall {
  6583  	c := &ProjectsLocationsConnectionsListenEventCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6584  	c.resourcePath = resourcePath
  6585  	c.listeneventrequest = listeneventrequest
  6586  	return c
  6587  }
  6588  
  6589  // Fields allows partial responses to be retrieved. See
  6590  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6591  // details.
  6592  func (c *ProjectsLocationsConnectionsListenEventCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListenEventCall {
  6593  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6594  	return c
  6595  }
  6596  
  6597  // Context sets the context to be used in this call's Do method.
  6598  func (c *ProjectsLocationsConnectionsListenEventCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListenEventCall {
  6599  	c.ctx_ = ctx
  6600  	return c
  6601  }
  6602  
  6603  // Header returns a http.Header that can be modified by the caller to add
  6604  // headers to the request.
  6605  func (c *ProjectsLocationsConnectionsListenEventCall) Header() http.Header {
  6606  	if c.header_ == nil {
  6607  		c.header_ = make(http.Header)
  6608  	}
  6609  	return c.header_
  6610  }
  6611  
  6612  func (c *ProjectsLocationsConnectionsListenEventCall) doRequest(alt string) (*http.Response, error) {
  6613  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6614  	var body io.Reader = nil
  6615  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.listeneventrequest)
  6616  	if err != nil {
  6617  		return nil, err
  6618  	}
  6619  	c.urlParams_.Set("alt", alt)
  6620  	c.urlParams_.Set("prettyPrint", "false")
  6621  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resourcePath}:listenEvent")
  6622  	urls += "?" + c.urlParams_.Encode()
  6623  	req, err := http.NewRequest("POST", urls, body)
  6624  	if err != nil {
  6625  		return nil, err
  6626  	}
  6627  	req.Header = reqHeaders
  6628  	googleapi.Expand(req.URL, map[string]string{
  6629  		"resourcePath": c.resourcePath,
  6630  	})
  6631  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6632  }
  6633  
  6634  // Do executes the "connectors.projects.locations.connections.listenEvent" call.
  6635  // Any non-2xx status code is an error. Response headers are in either
  6636  // *ListenEventResponse.ServerResponse.Header or (if a response was returned at
  6637  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6638  // check whether the returned error was because http.StatusNotModified was
  6639  // returned.
  6640  func (c *ProjectsLocationsConnectionsListenEventCall) Do(opts ...googleapi.CallOption) (*ListenEventResponse, error) {
  6641  	gensupport.SetOptions(c.urlParams_, opts...)
  6642  	res, err := c.doRequest("json")
  6643  	if res != nil && res.StatusCode == http.StatusNotModified {
  6644  		if res.Body != nil {
  6645  			res.Body.Close()
  6646  		}
  6647  		return nil, gensupport.WrapError(&googleapi.Error{
  6648  			Code:   res.StatusCode,
  6649  			Header: res.Header,
  6650  		})
  6651  	}
  6652  	if err != nil {
  6653  		return nil, err
  6654  	}
  6655  	defer googleapi.CloseBody(res)
  6656  	if err := googleapi.CheckResponse(res); err != nil {
  6657  		return nil, gensupport.WrapError(err)
  6658  	}
  6659  	ret := &ListenEventResponse{
  6660  		ServerResponse: googleapi.ServerResponse{
  6661  			Header:         res.Header,
  6662  			HTTPStatusCode: res.StatusCode,
  6663  		},
  6664  	}
  6665  	target := &ret
  6666  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6667  		return nil, err
  6668  	}
  6669  	return ret, nil
  6670  }
  6671  
  6672  type ProjectsLocationsConnectionsPatchCall struct {
  6673  	s          *Service
  6674  	name       string
  6675  	connection *Connection
  6676  	urlParams_ gensupport.URLParams
  6677  	ctx_       context.Context
  6678  	header_    http.Header
  6679  }
  6680  
  6681  // Patch: Updates the parameters of a single Connection.
  6682  //
  6683  //   - name: Output only. Resource name of the Connection. Format:
  6684  //     projects/{project}/locations/{location}/connections/{connection}.
  6685  func (r *ProjectsLocationsConnectionsService) Patch(name string, connection *Connection) *ProjectsLocationsConnectionsPatchCall {
  6686  	c := &ProjectsLocationsConnectionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6687  	c.name = name
  6688  	c.connection = connection
  6689  	return c
  6690  }
  6691  
  6692  // UpdateMask sets the optional parameter "updateMask": Required. You can
  6693  // modify only the fields listed below. To lock/unlock a connection: *
  6694  // `lock_config` To suspend/resume a connection: * `suspended` To update the
  6695  // connection details: * `description` * `labels` * `connector_version` *
  6696  // `config_variables` * `auth_config` * `destination_configs` * `node_config` *
  6697  // `log_config` * `ssl_config` * `eventing_enablement_type` * `eventing_config`
  6698  // * `auth_override_enabled`
  6699  func (c *ProjectsLocationsConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionsPatchCall {
  6700  	c.urlParams_.Set("updateMask", updateMask)
  6701  	return c
  6702  }
  6703  
  6704  // Fields allows partial responses to be retrieved. See
  6705  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6706  // details.
  6707  func (c *ProjectsLocationsConnectionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsPatchCall {
  6708  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6709  	return c
  6710  }
  6711  
  6712  // Context sets the context to be used in this call's Do method.
  6713  func (c *ProjectsLocationsConnectionsPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsPatchCall {
  6714  	c.ctx_ = ctx
  6715  	return c
  6716  }
  6717  
  6718  // Header returns a http.Header that can be modified by the caller to add
  6719  // headers to the request.
  6720  func (c *ProjectsLocationsConnectionsPatchCall) Header() http.Header {
  6721  	if c.header_ == nil {
  6722  		c.header_ = make(http.Header)
  6723  	}
  6724  	return c.header_
  6725  }
  6726  
  6727  func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Response, error) {
  6728  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6729  	var body io.Reader = nil
  6730  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.connection)
  6731  	if err != nil {
  6732  		return nil, err
  6733  	}
  6734  	c.urlParams_.Set("alt", alt)
  6735  	c.urlParams_.Set("prettyPrint", "false")
  6736  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6737  	urls += "?" + c.urlParams_.Encode()
  6738  	req, err := http.NewRequest("PATCH", urls, body)
  6739  	if err != nil {
  6740  		return nil, err
  6741  	}
  6742  	req.Header = reqHeaders
  6743  	googleapi.Expand(req.URL, map[string]string{
  6744  		"name": c.name,
  6745  	})
  6746  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6747  }
  6748  
  6749  // Do executes the "connectors.projects.locations.connections.patch" call.
  6750  // Any non-2xx status code is an error. Response headers are in either
  6751  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6752  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6753  // whether the returned error was because http.StatusNotModified was returned.
  6754  func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6755  	gensupport.SetOptions(c.urlParams_, opts...)
  6756  	res, err := c.doRequest("json")
  6757  	if res != nil && res.StatusCode == http.StatusNotModified {
  6758  		if res.Body != nil {
  6759  			res.Body.Close()
  6760  		}
  6761  		return nil, gensupport.WrapError(&googleapi.Error{
  6762  			Code:   res.StatusCode,
  6763  			Header: res.Header,
  6764  		})
  6765  	}
  6766  	if err != nil {
  6767  		return nil, err
  6768  	}
  6769  	defer googleapi.CloseBody(res)
  6770  	if err := googleapi.CheckResponse(res); err != nil {
  6771  		return nil, gensupport.WrapError(err)
  6772  	}
  6773  	ret := &Operation{
  6774  		ServerResponse: googleapi.ServerResponse{
  6775  			Header:         res.Header,
  6776  			HTTPStatusCode: res.StatusCode,
  6777  		},
  6778  	}
  6779  	target := &ret
  6780  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6781  		return nil, err
  6782  	}
  6783  	return ret, nil
  6784  }
  6785  
  6786  type ProjectsLocationsConnectionsRepairEventingCall struct {
  6787  	s                     *Service
  6788  	name                  string
  6789  	repaireventingrequest *RepairEventingRequest
  6790  	urlParams_            gensupport.URLParams
  6791  	ctx_                  context.Context
  6792  	header_               http.Header
  6793  }
  6794  
  6795  // RepairEventing: RepaiEventing tries to repair eventing related event
  6796  // subscriptions.
  6797  //
  6798  // - name: Resource name of the form: `projects/*/locations/*/connections/*`.
  6799  func (r *ProjectsLocationsConnectionsService) RepairEventing(name string, repaireventingrequest *RepairEventingRequest) *ProjectsLocationsConnectionsRepairEventingCall {
  6800  	c := &ProjectsLocationsConnectionsRepairEventingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6801  	c.name = name
  6802  	c.repaireventingrequest = repaireventingrequest
  6803  	return c
  6804  }
  6805  
  6806  // Fields allows partial responses to be retrieved. See
  6807  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6808  // details.
  6809  func (c *ProjectsLocationsConnectionsRepairEventingCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRepairEventingCall {
  6810  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6811  	return c
  6812  }
  6813  
  6814  // Context sets the context to be used in this call's Do method.
  6815  func (c *ProjectsLocationsConnectionsRepairEventingCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRepairEventingCall {
  6816  	c.ctx_ = ctx
  6817  	return c
  6818  }
  6819  
  6820  // Header returns a http.Header that can be modified by the caller to add
  6821  // headers to the request.
  6822  func (c *ProjectsLocationsConnectionsRepairEventingCall) Header() http.Header {
  6823  	if c.header_ == nil {
  6824  		c.header_ = make(http.Header)
  6825  	}
  6826  	return c.header_
  6827  }
  6828  
  6829  func (c *ProjectsLocationsConnectionsRepairEventingCall) doRequest(alt string) (*http.Response, error) {
  6830  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6831  	var body io.Reader = nil
  6832  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.repaireventingrequest)
  6833  	if err != nil {
  6834  		return nil, err
  6835  	}
  6836  	c.urlParams_.Set("alt", alt)
  6837  	c.urlParams_.Set("prettyPrint", "false")
  6838  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:repairEventing")
  6839  	urls += "?" + c.urlParams_.Encode()
  6840  	req, err := http.NewRequest("POST", urls, body)
  6841  	if err != nil {
  6842  		return nil, err
  6843  	}
  6844  	req.Header = reqHeaders
  6845  	googleapi.Expand(req.URL, map[string]string{
  6846  		"name": c.name,
  6847  	})
  6848  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6849  }
  6850  
  6851  // Do executes the "connectors.projects.locations.connections.repairEventing" call.
  6852  // Any non-2xx status code is an error. Response headers are in either
  6853  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6854  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6855  // whether the returned error was because http.StatusNotModified was returned.
  6856  func (c *ProjectsLocationsConnectionsRepairEventingCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6857  	gensupport.SetOptions(c.urlParams_, opts...)
  6858  	res, err := c.doRequest("json")
  6859  	if res != nil && res.StatusCode == http.StatusNotModified {
  6860  		if res.Body != nil {
  6861  			res.Body.Close()
  6862  		}
  6863  		return nil, gensupport.WrapError(&googleapi.Error{
  6864  			Code:   res.StatusCode,
  6865  			Header: res.Header,
  6866  		})
  6867  	}
  6868  	if err != nil {
  6869  		return nil, err
  6870  	}
  6871  	defer googleapi.CloseBody(res)
  6872  	if err := googleapi.CheckResponse(res); err != nil {
  6873  		return nil, gensupport.WrapError(err)
  6874  	}
  6875  	ret := &Operation{
  6876  		ServerResponse: googleapi.ServerResponse{
  6877  			Header:         res.Header,
  6878  			HTTPStatusCode: res.StatusCode,
  6879  		},
  6880  	}
  6881  	target := &ret
  6882  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6883  		return nil, err
  6884  	}
  6885  	return ret, nil
  6886  }
  6887  
  6888  type ProjectsLocationsConnectionsSearchCall struct {
  6889  	s            *Service
  6890  	name         string
  6891  	urlParams_   gensupport.URLParams
  6892  	ifNoneMatch_ string
  6893  	ctx_         context.Context
  6894  	header_      http.Header
  6895  }
  6896  
  6897  // Search: Returns Top matching Connections for a given query.
  6898  //
  6899  //   - name: Parent resource of the Connection, of the form:
  6900  //     `projects/*/locations/*/connections`.
  6901  func (r *ProjectsLocationsConnectionsService) Search(name string) *ProjectsLocationsConnectionsSearchCall {
  6902  	c := &ProjectsLocationsConnectionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6903  	c.name = name
  6904  	return c
  6905  }
  6906  
  6907  // PageSize sets the optional parameter "pageSize": The number of top matching
  6908  // connectors to return
  6909  func (c *ProjectsLocationsConnectionsSearchCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsSearchCall {
  6910  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6911  	return c
  6912  }
  6913  
  6914  // PageToken sets the optional parameter "pageToken": page_token
  6915  func (c *ProjectsLocationsConnectionsSearchCall) PageToken(pageToken string) *ProjectsLocationsConnectionsSearchCall {
  6916  	c.urlParams_.Set("pageToken", pageToken)
  6917  	return c
  6918  }
  6919  
  6920  // Query sets the optional parameter "query": Required. The query against which
  6921  // the search needs to be done.
  6922  func (c *ProjectsLocationsConnectionsSearchCall) Query(query string) *ProjectsLocationsConnectionsSearchCall {
  6923  	c.urlParams_.Set("query", query)
  6924  	return c
  6925  }
  6926  
  6927  // Fields allows partial responses to be retrieved. See
  6928  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6929  // details.
  6930  func (c *ProjectsLocationsConnectionsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsSearchCall {
  6931  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6932  	return c
  6933  }
  6934  
  6935  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6936  // object's ETag matches the given value. This is useful for getting updates
  6937  // only after the object has changed since the last request.
  6938  func (c *ProjectsLocationsConnectionsSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsSearchCall {
  6939  	c.ifNoneMatch_ = entityTag
  6940  	return c
  6941  }
  6942  
  6943  // Context sets the context to be used in this call's Do method.
  6944  func (c *ProjectsLocationsConnectionsSearchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsSearchCall {
  6945  	c.ctx_ = ctx
  6946  	return c
  6947  }
  6948  
  6949  // Header returns a http.Header that can be modified by the caller to add
  6950  // headers to the request.
  6951  func (c *ProjectsLocationsConnectionsSearchCall) Header() http.Header {
  6952  	if c.header_ == nil {
  6953  		c.header_ = make(http.Header)
  6954  	}
  6955  	return c.header_
  6956  }
  6957  
  6958  func (c *ProjectsLocationsConnectionsSearchCall) doRequest(alt string) (*http.Response, error) {
  6959  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6960  	if c.ifNoneMatch_ != "" {
  6961  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6962  	}
  6963  	var body io.Reader = nil
  6964  	c.urlParams_.Set("alt", alt)
  6965  	c.urlParams_.Set("prettyPrint", "false")
  6966  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:search")
  6967  	urls += "?" + c.urlParams_.Encode()
  6968  	req, err := http.NewRequest("GET", urls, body)
  6969  	if err != nil {
  6970  		return nil, err
  6971  	}
  6972  	req.Header = reqHeaders
  6973  	googleapi.Expand(req.URL, map[string]string{
  6974  		"name": c.name,
  6975  	})
  6976  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6977  }
  6978  
  6979  // Do executes the "connectors.projects.locations.connections.search" call.
  6980  // Any non-2xx status code is an error. Response headers are in either
  6981  // *SearchConnectionsResponse.ServerResponse.Header or (if a response was
  6982  // returned at all) in error.(*googleapi.Error).Header. Use
  6983  // googleapi.IsNotModified to check whether the returned error was because
  6984  // http.StatusNotModified was returned.
  6985  func (c *ProjectsLocationsConnectionsSearchCall) Do(opts ...googleapi.CallOption) (*SearchConnectionsResponse, error) {
  6986  	gensupport.SetOptions(c.urlParams_, opts...)
  6987  	res, err := c.doRequest("json")
  6988  	if res != nil && res.StatusCode == http.StatusNotModified {
  6989  		if res.Body != nil {
  6990  			res.Body.Close()
  6991  		}
  6992  		return nil, gensupport.WrapError(&googleapi.Error{
  6993  			Code:   res.StatusCode,
  6994  			Header: res.Header,
  6995  		})
  6996  	}
  6997  	if err != nil {
  6998  		return nil, err
  6999  	}
  7000  	defer googleapi.CloseBody(res)
  7001  	if err := googleapi.CheckResponse(res); err != nil {
  7002  		return nil, gensupport.WrapError(err)
  7003  	}
  7004  	ret := &SearchConnectionsResponse{
  7005  		ServerResponse: googleapi.ServerResponse{
  7006  			Header:         res.Header,
  7007  			HTTPStatusCode: res.StatusCode,
  7008  		},
  7009  	}
  7010  	target := &ret
  7011  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7012  		return nil, err
  7013  	}
  7014  	return ret, nil
  7015  }
  7016  
  7017  // Pages invokes f for each page of results.
  7018  // A non-nil error returned from f will halt the iteration.
  7019  // The provided context supersedes any context provided to the Context method.
  7020  func (c *ProjectsLocationsConnectionsSearchCall) Pages(ctx context.Context, f func(*SearchConnectionsResponse) error) error {
  7021  	c.ctx_ = ctx
  7022  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7023  	for {
  7024  		x, err := c.Do()
  7025  		if err != nil {
  7026  			return err
  7027  		}
  7028  		if err := f(x); err != nil {
  7029  			return err
  7030  		}
  7031  		if x.NextPageToken == "" {
  7032  			return nil
  7033  		}
  7034  		c.PageToken(x.NextPageToken)
  7035  	}
  7036  }
  7037  
  7038  type ProjectsLocationsConnectionsSetIamPolicyCall struct {
  7039  	s                   *Service
  7040  	resource            string
  7041  	setiampolicyrequest *SetIamPolicyRequest
  7042  	urlParams_          gensupport.URLParams
  7043  	ctx_                context.Context
  7044  	header_             http.Header
  7045  }
  7046  
  7047  // SetIamPolicy: Sets the access control policy on the specified resource.
  7048  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
  7049  // and `PERMISSION_DENIED` errors.
  7050  //
  7051  //   - resource: REQUIRED: The resource for which the policy is being specified.
  7052  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  7053  //     for the appropriate value for this field.
  7054  func (r *ProjectsLocationsConnectionsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsConnectionsSetIamPolicyCall {
  7055  	c := &ProjectsLocationsConnectionsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7056  	c.resource = resource
  7057  	c.setiampolicyrequest = setiampolicyrequest
  7058  	return c
  7059  }
  7060  
  7061  // Fields allows partial responses to be retrieved. See
  7062  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7063  // details.
  7064  func (c *ProjectsLocationsConnectionsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsSetIamPolicyCall {
  7065  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7066  	return c
  7067  }
  7068  
  7069  // Context sets the context to be used in this call's Do method.
  7070  func (c *ProjectsLocationsConnectionsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionsSetIamPolicyCall {
  7071  	c.ctx_ = ctx
  7072  	return c
  7073  }
  7074  
  7075  // Header returns a http.Header that can be modified by the caller to add
  7076  // headers to the request.
  7077  func (c *ProjectsLocationsConnectionsSetIamPolicyCall) Header() http.Header {
  7078  	if c.header_ == nil {
  7079  		c.header_ = make(http.Header)
  7080  	}
  7081  	return c.header_
  7082  }
  7083  
  7084  func (c *ProjectsLocationsConnectionsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  7085  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7086  	var body io.Reader = nil
  7087  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  7088  	if err != nil {
  7089  		return nil, err
  7090  	}
  7091  	c.urlParams_.Set("alt", alt)
  7092  	c.urlParams_.Set("prettyPrint", "false")
  7093  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
  7094  	urls += "?" + c.urlParams_.Encode()
  7095  	req, err := http.NewRequest("POST", urls, body)
  7096  	if err != nil {
  7097  		return nil, err
  7098  	}
  7099  	req.Header = reqHeaders
  7100  	googleapi.Expand(req.URL, map[string]string{
  7101  		"resource": c.resource,
  7102  	})
  7103  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7104  }
  7105  
  7106  // Do executes the "connectors.projects.locations.connections.setIamPolicy" call.
  7107  // Any non-2xx status code is an error. Response headers are in either
  7108  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  7109  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7110  // whether the returned error was because http.StatusNotModified was returned.
  7111  func (c *ProjectsLocationsConnectionsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  7112  	gensupport.SetOptions(c.urlParams_, opts...)
  7113  	res, err := c.doRequest("json")
  7114  	if res != nil && res.StatusCode == http.StatusNotModified {
  7115  		if res.Body != nil {
  7116  			res.Body.Close()
  7117  		}
  7118  		return nil, gensupport.WrapError(&googleapi.Error{
  7119  			Code:   res.StatusCode,
  7120  			Header: res.Header,
  7121  		})
  7122  	}
  7123  	if err != nil {
  7124  		return nil, err
  7125  	}
  7126  	defer googleapi.CloseBody(res)
  7127  	if err := googleapi.CheckResponse(res); err != nil {
  7128  		return nil, gensupport.WrapError(err)
  7129  	}
  7130  	ret := &Policy{
  7131  		ServerResponse: googleapi.ServerResponse{
  7132  			Header:         res.Header,
  7133  			HTTPStatusCode: res.StatusCode,
  7134  		},
  7135  	}
  7136  	target := &ret
  7137  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7138  		return nil, err
  7139  	}
  7140  	return ret, nil
  7141  }
  7142  
  7143  type ProjectsLocationsConnectionsTestIamPermissionsCall struct {
  7144  	s                         *Service
  7145  	resource                  string
  7146  	testiampermissionsrequest *TestIamPermissionsRequest
  7147  	urlParams_                gensupport.URLParams
  7148  	ctx_                      context.Context
  7149  	header_                   http.Header
  7150  }
  7151  
  7152  // TestIamPermissions: Returns permissions that a caller has on the specified
  7153  // resource. If the resource does not exist, this will return an empty set of
  7154  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
  7155  // used for building permission-aware UIs and command-line tools, not for
  7156  // authorization checking. This operation may "fail open" without warning.
  7157  //
  7158  //   - resource: REQUIRED: The resource for which the policy detail is being
  7159  //     requested. See Resource names
  7160  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  7161  //     value for this field.
  7162  func (r *ProjectsLocationsConnectionsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsConnectionsTestIamPermissionsCall {
  7163  	c := &ProjectsLocationsConnectionsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7164  	c.resource = resource
  7165  	c.testiampermissionsrequest = testiampermissionsrequest
  7166  	return c
  7167  }
  7168  
  7169  // Fields allows partial responses to be retrieved. See
  7170  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7171  // details.
  7172  func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsTestIamPermissionsCall {
  7173  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7174  	return c
  7175  }
  7176  
  7177  // Context sets the context to be used in this call's Do method.
  7178  func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsTestIamPermissionsCall {
  7179  	c.ctx_ = ctx
  7180  	return c
  7181  }
  7182  
  7183  // Header returns a http.Header that can be modified by the caller to add
  7184  // headers to the request.
  7185  func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Header() http.Header {
  7186  	if c.header_ == nil {
  7187  		c.header_ = make(http.Header)
  7188  	}
  7189  	return c.header_
  7190  }
  7191  
  7192  func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  7193  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7194  	var body io.Reader = nil
  7195  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  7196  	if err != nil {
  7197  		return nil, err
  7198  	}
  7199  	c.urlParams_.Set("alt", alt)
  7200  	c.urlParams_.Set("prettyPrint", "false")
  7201  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
  7202  	urls += "?" + c.urlParams_.Encode()
  7203  	req, err := http.NewRequest("POST", urls, body)
  7204  	if err != nil {
  7205  		return nil, err
  7206  	}
  7207  	req.Header = reqHeaders
  7208  	googleapi.Expand(req.URL, map[string]string{
  7209  		"resource": c.resource,
  7210  	})
  7211  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7212  }
  7213  
  7214  // Do executes the "connectors.projects.locations.connections.testIamPermissions" call.
  7215  // Any non-2xx status code is an error. Response headers are in either
  7216  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
  7217  // returned at all) in error.(*googleapi.Error).Header. Use
  7218  // googleapi.IsNotModified to check whether the returned error was because
  7219  // http.StatusNotModified was returned.
  7220  func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  7221  	gensupport.SetOptions(c.urlParams_, opts...)
  7222  	res, err := c.doRequest("json")
  7223  	if res != nil && res.StatusCode == http.StatusNotModified {
  7224  		if res.Body != nil {
  7225  			res.Body.Close()
  7226  		}
  7227  		return nil, gensupport.WrapError(&googleapi.Error{
  7228  			Code:   res.StatusCode,
  7229  			Header: res.Header,
  7230  		})
  7231  	}
  7232  	if err != nil {
  7233  		return nil, err
  7234  	}
  7235  	defer googleapi.CloseBody(res)
  7236  	if err := googleapi.CheckResponse(res); err != nil {
  7237  		return nil, gensupport.WrapError(err)
  7238  	}
  7239  	ret := &TestIamPermissionsResponse{
  7240  		ServerResponse: googleapi.ServerResponse{
  7241  			Header:         res.Header,
  7242  			HTTPStatusCode: res.StatusCode,
  7243  		},
  7244  	}
  7245  	target := &ret
  7246  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7247  		return nil, err
  7248  	}
  7249  	return ret, nil
  7250  }
  7251  
  7252  type ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall struct {
  7253  	s            *Service
  7254  	name         string
  7255  	urlParams_   gensupport.URLParams
  7256  	ifNoneMatch_ string
  7257  	ctx_         context.Context
  7258  	header_      http.Header
  7259  }
  7260  
  7261  // GetAction: Get action.
  7262  //
  7263  //   - name: Resource name format:
  7264  //     projects/{project}/locations/{location}/connections/{connection}/connection
  7265  //     SchemaMetadata.
  7266  func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) GetAction(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall {
  7267  	c := &ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7268  	c.name = name
  7269  	return c
  7270  }
  7271  
  7272  // ActionId sets the optional parameter "actionId": Required. Id of the action.
  7273  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) ActionId(actionId string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall {
  7274  	c.urlParams_.Set("actionId", actionId)
  7275  	return c
  7276  }
  7277  
  7278  // Fields allows partial responses to be retrieved. See
  7279  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7280  // details.
  7281  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall {
  7282  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7283  	return c
  7284  }
  7285  
  7286  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7287  // object's ETag matches the given value. This is useful for getting updates
  7288  // only after the object has changed since the last request.
  7289  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall {
  7290  	c.ifNoneMatch_ = entityTag
  7291  	return c
  7292  }
  7293  
  7294  // Context sets the context to be used in this call's Do method.
  7295  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall {
  7296  	c.ctx_ = ctx
  7297  	return c
  7298  }
  7299  
  7300  // Header returns a http.Header that can be modified by the caller to add
  7301  // headers to the request.
  7302  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Header() http.Header {
  7303  	if c.header_ == nil {
  7304  		c.header_ = make(http.Header)
  7305  	}
  7306  	return c.header_
  7307  }
  7308  
  7309  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) doRequest(alt string) (*http.Response, error) {
  7310  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7311  	if c.ifNoneMatch_ != "" {
  7312  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7313  	}
  7314  	var body io.Reader = nil
  7315  	c.urlParams_.Set("alt", alt)
  7316  	c.urlParams_.Set("prettyPrint", "false")
  7317  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getAction")
  7318  	urls += "?" + c.urlParams_.Encode()
  7319  	req, err := http.NewRequest("GET", urls, body)
  7320  	if err != nil {
  7321  		return nil, err
  7322  	}
  7323  	req.Header = reqHeaders
  7324  	googleapi.Expand(req.URL, map[string]string{
  7325  		"name": c.name,
  7326  	})
  7327  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7328  }
  7329  
  7330  // Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.getAction" call.
  7331  // Any non-2xx status code is an error. Response headers are in either
  7332  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7333  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7334  // whether the returned error was because http.StatusNotModified was returned.
  7335  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7336  	gensupport.SetOptions(c.urlParams_, opts...)
  7337  	res, err := c.doRequest("json")
  7338  	if res != nil && res.StatusCode == http.StatusNotModified {
  7339  		if res.Body != nil {
  7340  			res.Body.Close()
  7341  		}
  7342  		return nil, gensupport.WrapError(&googleapi.Error{
  7343  			Code:   res.StatusCode,
  7344  			Header: res.Header,
  7345  		})
  7346  	}
  7347  	if err != nil {
  7348  		return nil, err
  7349  	}
  7350  	defer googleapi.CloseBody(res)
  7351  	if err := googleapi.CheckResponse(res); err != nil {
  7352  		return nil, gensupport.WrapError(err)
  7353  	}
  7354  	ret := &Operation{
  7355  		ServerResponse: googleapi.ServerResponse{
  7356  			Header:         res.Header,
  7357  			HTTPStatusCode: res.StatusCode,
  7358  		},
  7359  	}
  7360  	target := &ret
  7361  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7362  		return nil, err
  7363  	}
  7364  	return ret, nil
  7365  }
  7366  
  7367  type ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall struct {
  7368  	s            *Service
  7369  	name         string
  7370  	urlParams_   gensupport.URLParams
  7371  	ifNoneMatch_ string
  7372  	ctx_         context.Context
  7373  	header_      http.Header
  7374  }
  7375  
  7376  // GetEntityType: Get entity type.
  7377  //
  7378  //   - name: Resource name format:
  7379  //     projects/{project}/locations/{location}/connections/{connection}/connection
  7380  //     SchemaMetadata.
  7381  func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) GetEntityType(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall {
  7382  	c := &ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7383  	c.name = name
  7384  	return c
  7385  }
  7386  
  7387  // EntityId sets the optional parameter "entityId": Required. Id of the entity
  7388  // type.
  7389  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) EntityId(entityId string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall {
  7390  	c.urlParams_.Set("entityId", entityId)
  7391  	return c
  7392  }
  7393  
  7394  // Fields allows partial responses to be retrieved. See
  7395  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7396  // details.
  7397  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall {
  7398  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7399  	return c
  7400  }
  7401  
  7402  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7403  // object's ETag matches the given value. This is useful for getting updates
  7404  // only after the object has changed since the last request.
  7405  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall {
  7406  	c.ifNoneMatch_ = entityTag
  7407  	return c
  7408  }
  7409  
  7410  // Context sets the context to be used in this call's Do method.
  7411  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall {
  7412  	c.ctx_ = ctx
  7413  	return c
  7414  }
  7415  
  7416  // Header returns a http.Header that can be modified by the caller to add
  7417  // headers to the request.
  7418  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Header() http.Header {
  7419  	if c.header_ == nil {
  7420  		c.header_ = make(http.Header)
  7421  	}
  7422  	return c.header_
  7423  }
  7424  
  7425  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) doRequest(alt string) (*http.Response, error) {
  7426  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7427  	if c.ifNoneMatch_ != "" {
  7428  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7429  	}
  7430  	var body io.Reader = nil
  7431  	c.urlParams_.Set("alt", alt)
  7432  	c.urlParams_.Set("prettyPrint", "false")
  7433  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getEntityType")
  7434  	urls += "?" + c.urlParams_.Encode()
  7435  	req, err := http.NewRequest("GET", urls, body)
  7436  	if err != nil {
  7437  		return nil, err
  7438  	}
  7439  	req.Header = reqHeaders
  7440  	googleapi.Expand(req.URL, map[string]string{
  7441  		"name": c.name,
  7442  	})
  7443  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7444  }
  7445  
  7446  // Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.getEntityType" call.
  7447  // Any non-2xx status code is an error. Response headers are in either
  7448  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7449  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7450  // whether the returned error was because http.StatusNotModified was returned.
  7451  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7452  	gensupport.SetOptions(c.urlParams_, opts...)
  7453  	res, err := c.doRequest("json")
  7454  	if res != nil && res.StatusCode == http.StatusNotModified {
  7455  		if res.Body != nil {
  7456  			res.Body.Close()
  7457  		}
  7458  		return nil, gensupport.WrapError(&googleapi.Error{
  7459  			Code:   res.StatusCode,
  7460  			Header: res.Header,
  7461  		})
  7462  	}
  7463  	if err != nil {
  7464  		return nil, err
  7465  	}
  7466  	defer googleapi.CloseBody(res)
  7467  	if err := googleapi.CheckResponse(res); err != nil {
  7468  		return nil, gensupport.WrapError(err)
  7469  	}
  7470  	ret := &Operation{
  7471  		ServerResponse: googleapi.ServerResponse{
  7472  			Header:         res.Header,
  7473  			HTTPStatusCode: res.StatusCode,
  7474  		},
  7475  	}
  7476  	target := &ret
  7477  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7478  		return nil, err
  7479  	}
  7480  	return ret, nil
  7481  }
  7482  
  7483  type ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall struct {
  7484  	s            *Service
  7485  	name         string
  7486  	urlParams_   gensupport.URLParams
  7487  	ifNoneMatch_ string
  7488  	ctx_         context.Context
  7489  	header_      http.Header
  7490  }
  7491  
  7492  // ListActions: List actions.
  7493  //
  7494  //   - name: Resource name format.
  7495  //     projects/{project}/locations/{location}/connections/{connection}/connection
  7496  //     SchemaMetadata.
  7497  func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) ListActions(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall {
  7498  	c := &ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7499  	c.name = name
  7500  	return c
  7501  }
  7502  
  7503  // Filter sets the optional parameter "filter": Required. Filter Wildcards are
  7504  // not supported in the filter currently.
  7505  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Filter(filter string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall {
  7506  	c.urlParams_.Set("filter", filter)
  7507  	return c
  7508  }
  7509  
  7510  // PageSize sets the optional parameter "pageSize": Page size. If unspecified,
  7511  // at most 50 actions will be returned.
  7512  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall {
  7513  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7514  	return c
  7515  }
  7516  
  7517  // PageToken sets the optional parameter "pageToken": Page token.
  7518  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) PageToken(pageToken string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall {
  7519  	c.urlParams_.Set("pageToken", pageToken)
  7520  	return c
  7521  }
  7522  
  7523  // View sets the optional parameter "view": Specifies which fields are returned
  7524  // in response. Defaults to BASIC view.
  7525  //
  7526  // Possible values:
  7527  //
  7528  //	"VIEW_UNSPECIFIED"
  7529  //	"BASIC"
  7530  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) View(view string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall {
  7531  	c.urlParams_.Set("view", view)
  7532  	return c
  7533  }
  7534  
  7535  // Fields allows partial responses to be retrieved. See
  7536  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7537  // details.
  7538  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall {
  7539  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7540  	return c
  7541  }
  7542  
  7543  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7544  // object's ETag matches the given value. This is useful for getting updates
  7545  // only after the object has changed since the last request.
  7546  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall {
  7547  	c.ifNoneMatch_ = entityTag
  7548  	return c
  7549  }
  7550  
  7551  // Context sets the context to be used in this call's Do method.
  7552  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall {
  7553  	c.ctx_ = ctx
  7554  	return c
  7555  }
  7556  
  7557  // Header returns a http.Header that can be modified by the caller to add
  7558  // headers to the request.
  7559  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Header() http.Header {
  7560  	if c.header_ == nil {
  7561  		c.header_ = make(http.Header)
  7562  	}
  7563  	return c.header_
  7564  }
  7565  
  7566  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) doRequest(alt string) (*http.Response, error) {
  7567  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7568  	if c.ifNoneMatch_ != "" {
  7569  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7570  	}
  7571  	var body io.Reader = nil
  7572  	c.urlParams_.Set("alt", alt)
  7573  	c.urlParams_.Set("prettyPrint", "false")
  7574  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:listActions")
  7575  	urls += "?" + c.urlParams_.Encode()
  7576  	req, err := http.NewRequest("GET", urls, body)
  7577  	if err != nil {
  7578  		return nil, err
  7579  	}
  7580  	req.Header = reqHeaders
  7581  	googleapi.Expand(req.URL, map[string]string{
  7582  		"name": c.name,
  7583  	})
  7584  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7585  }
  7586  
  7587  // Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.listActions" call.
  7588  // Any non-2xx status code is an error. Response headers are in either
  7589  // *ListActionsResponse.ServerResponse.Header or (if a response was returned at
  7590  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7591  // check whether the returned error was because http.StatusNotModified was
  7592  // returned.
  7593  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Do(opts ...googleapi.CallOption) (*ListActionsResponse, error) {
  7594  	gensupport.SetOptions(c.urlParams_, opts...)
  7595  	res, err := c.doRequest("json")
  7596  	if res != nil && res.StatusCode == http.StatusNotModified {
  7597  		if res.Body != nil {
  7598  			res.Body.Close()
  7599  		}
  7600  		return nil, gensupport.WrapError(&googleapi.Error{
  7601  			Code:   res.StatusCode,
  7602  			Header: res.Header,
  7603  		})
  7604  	}
  7605  	if err != nil {
  7606  		return nil, err
  7607  	}
  7608  	defer googleapi.CloseBody(res)
  7609  	if err := googleapi.CheckResponse(res); err != nil {
  7610  		return nil, gensupport.WrapError(err)
  7611  	}
  7612  	ret := &ListActionsResponse{
  7613  		ServerResponse: googleapi.ServerResponse{
  7614  			Header:         res.Header,
  7615  			HTTPStatusCode: res.StatusCode,
  7616  		},
  7617  	}
  7618  	target := &ret
  7619  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7620  		return nil, err
  7621  	}
  7622  	return ret, nil
  7623  }
  7624  
  7625  // Pages invokes f for each page of results.
  7626  // A non-nil error returned from f will halt the iteration.
  7627  // The provided context supersedes any context provided to the Context method.
  7628  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Pages(ctx context.Context, f func(*ListActionsResponse) error) error {
  7629  	c.ctx_ = ctx
  7630  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7631  	for {
  7632  		x, err := c.Do()
  7633  		if err != nil {
  7634  			return err
  7635  		}
  7636  		if err := f(x); err != nil {
  7637  			return err
  7638  		}
  7639  		if x.NextPageToken == "" {
  7640  			return nil
  7641  		}
  7642  		c.PageToken(x.NextPageToken)
  7643  	}
  7644  }
  7645  
  7646  type ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall struct {
  7647  	s            *Service
  7648  	name         string
  7649  	urlParams_   gensupport.URLParams
  7650  	ifNoneMatch_ string
  7651  	ctx_         context.Context
  7652  	header_      http.Header
  7653  }
  7654  
  7655  // ListEntityTypes: List entity types.
  7656  //
  7657  //   - name: Resource name format:
  7658  //     projects/{project}/locations/{location}/connections/{connection}/connection
  7659  //     SchemaMetadata.
  7660  func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) ListEntityTypes(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall {
  7661  	c := &ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7662  	c.name = name
  7663  	return c
  7664  }
  7665  
  7666  // Filter sets the optional parameter "filter": Required. Filter Wildcards are
  7667  // not supported in the filter currently.
  7668  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Filter(filter string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall {
  7669  	c.urlParams_.Set("filter", filter)
  7670  	return c
  7671  }
  7672  
  7673  // PageSize sets the optional parameter "pageSize": Page size. If unspecified,
  7674  // at most 50 entity types will be returned.
  7675  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall {
  7676  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7677  	return c
  7678  }
  7679  
  7680  // PageToken sets the optional parameter "pageToken": Page token.
  7681  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) PageToken(pageToken string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall {
  7682  	c.urlParams_.Set("pageToken", pageToken)
  7683  	return c
  7684  }
  7685  
  7686  // View sets the optional parameter "view": Specifies which fields are returned
  7687  // in response. Defaults to BASIC view.
  7688  //
  7689  // Possible values:
  7690  //
  7691  //	"VIEW_UNSPECIFIED"
  7692  //	"BASIC"
  7693  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) View(view string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall {
  7694  	c.urlParams_.Set("view", view)
  7695  	return c
  7696  }
  7697  
  7698  // Fields allows partial responses to be retrieved. See
  7699  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7700  // details.
  7701  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall {
  7702  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7703  	return c
  7704  }
  7705  
  7706  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7707  // object's ETag matches the given value. This is useful for getting updates
  7708  // only after the object has changed since the last request.
  7709  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall {
  7710  	c.ifNoneMatch_ = entityTag
  7711  	return c
  7712  }
  7713  
  7714  // Context sets the context to be used in this call's Do method.
  7715  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall {
  7716  	c.ctx_ = ctx
  7717  	return c
  7718  }
  7719  
  7720  // Header returns a http.Header that can be modified by the caller to add
  7721  // headers to the request.
  7722  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Header() http.Header {
  7723  	if c.header_ == nil {
  7724  		c.header_ = make(http.Header)
  7725  	}
  7726  	return c.header_
  7727  }
  7728  
  7729  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) doRequest(alt string) (*http.Response, error) {
  7730  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7731  	if c.ifNoneMatch_ != "" {
  7732  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7733  	}
  7734  	var body io.Reader = nil
  7735  	c.urlParams_.Set("alt", alt)
  7736  	c.urlParams_.Set("prettyPrint", "false")
  7737  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:listEntityTypes")
  7738  	urls += "?" + c.urlParams_.Encode()
  7739  	req, err := http.NewRequest("GET", urls, body)
  7740  	if err != nil {
  7741  		return nil, err
  7742  	}
  7743  	req.Header = reqHeaders
  7744  	googleapi.Expand(req.URL, map[string]string{
  7745  		"name": c.name,
  7746  	})
  7747  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7748  }
  7749  
  7750  // Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.listEntityTypes" call.
  7751  // Any non-2xx status code is an error. Response headers are in either
  7752  // *ListEntityTypesResponse.ServerResponse.Header or (if a response was
  7753  // returned at all) in error.(*googleapi.Error).Header. Use
  7754  // googleapi.IsNotModified to check whether the returned error was because
  7755  // http.StatusNotModified was returned.
  7756  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Do(opts ...googleapi.CallOption) (*ListEntityTypesResponse, error) {
  7757  	gensupport.SetOptions(c.urlParams_, opts...)
  7758  	res, err := c.doRequest("json")
  7759  	if res != nil && res.StatusCode == http.StatusNotModified {
  7760  		if res.Body != nil {
  7761  			res.Body.Close()
  7762  		}
  7763  		return nil, gensupport.WrapError(&googleapi.Error{
  7764  			Code:   res.StatusCode,
  7765  			Header: res.Header,
  7766  		})
  7767  	}
  7768  	if err != nil {
  7769  		return nil, err
  7770  	}
  7771  	defer googleapi.CloseBody(res)
  7772  	if err := googleapi.CheckResponse(res); err != nil {
  7773  		return nil, gensupport.WrapError(err)
  7774  	}
  7775  	ret := &ListEntityTypesResponse{
  7776  		ServerResponse: googleapi.ServerResponse{
  7777  			Header:         res.Header,
  7778  			HTTPStatusCode: res.StatusCode,
  7779  		},
  7780  	}
  7781  	target := &ret
  7782  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7783  		return nil, err
  7784  	}
  7785  	return ret, nil
  7786  }
  7787  
  7788  // Pages invokes f for each page of results.
  7789  // A non-nil error returned from f will halt the iteration.
  7790  // The provided context supersedes any context provided to the Context method.
  7791  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Pages(ctx context.Context, f func(*ListEntityTypesResponse) error) error {
  7792  	c.ctx_ = ctx
  7793  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7794  	for {
  7795  		x, err := c.Do()
  7796  		if err != nil {
  7797  			return err
  7798  		}
  7799  		if err := f(x); err != nil {
  7800  			return err
  7801  		}
  7802  		if x.NextPageToken == "" {
  7803  			return nil
  7804  		}
  7805  		c.PageToken(x.NextPageToken)
  7806  	}
  7807  }
  7808  
  7809  type ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall struct {
  7810  	s                                      *Service
  7811  	name                                   string
  7812  	refreshconnectionschemametadatarequest *RefreshConnectionSchemaMetadataRequest
  7813  	urlParams_                             gensupport.URLParams
  7814  	ctx_                                   context.Context
  7815  	header_                                http.Header
  7816  }
  7817  
  7818  // Refresh: Refresh runtime schema of a connection.
  7819  //
  7820  //   - name: Resource name. Format:
  7821  //     projects/{project}/locations/{location}/connections/{connection}/connection
  7822  //     SchemaMetadata.
  7823  func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) Refresh(name string, refreshconnectionschemametadatarequest *RefreshConnectionSchemaMetadataRequest) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall {
  7824  	c := &ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7825  	c.name = name
  7826  	c.refreshconnectionschemametadatarequest = refreshconnectionschemametadatarequest
  7827  	return c
  7828  }
  7829  
  7830  // Fields allows partial responses to be retrieved. See
  7831  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7832  // details.
  7833  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall {
  7834  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7835  	return c
  7836  }
  7837  
  7838  // Context sets the context to be used in this call's Do method.
  7839  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall {
  7840  	c.ctx_ = ctx
  7841  	return c
  7842  }
  7843  
  7844  // Header returns a http.Header that can be modified by the caller to add
  7845  // headers to the request.
  7846  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Header() http.Header {
  7847  	if c.header_ == nil {
  7848  		c.header_ = make(http.Header)
  7849  	}
  7850  	return c.header_
  7851  }
  7852  
  7853  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) doRequest(alt string) (*http.Response, error) {
  7854  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7855  	var body io.Reader = nil
  7856  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.refreshconnectionschemametadatarequest)
  7857  	if err != nil {
  7858  		return nil, err
  7859  	}
  7860  	c.urlParams_.Set("alt", alt)
  7861  	c.urlParams_.Set("prettyPrint", "false")
  7862  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:refresh")
  7863  	urls += "?" + c.urlParams_.Encode()
  7864  	req, err := http.NewRequest("POST", urls, body)
  7865  	if err != nil {
  7866  		return nil, err
  7867  	}
  7868  	req.Header = reqHeaders
  7869  	googleapi.Expand(req.URL, map[string]string{
  7870  		"name": c.name,
  7871  	})
  7872  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7873  }
  7874  
  7875  // Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.refresh" call.
  7876  // Any non-2xx status code is an error. Response headers are in either
  7877  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7878  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7879  // whether the returned error was because http.StatusNotModified was returned.
  7880  func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7881  	gensupport.SetOptions(c.urlParams_, opts...)
  7882  	res, err := c.doRequest("json")
  7883  	if res != nil && res.StatusCode == http.StatusNotModified {
  7884  		if res.Body != nil {
  7885  			res.Body.Close()
  7886  		}
  7887  		return nil, gensupport.WrapError(&googleapi.Error{
  7888  			Code:   res.StatusCode,
  7889  			Header: res.Header,
  7890  		})
  7891  	}
  7892  	if err != nil {
  7893  		return nil, err
  7894  	}
  7895  	defer googleapi.CloseBody(res)
  7896  	if err := googleapi.CheckResponse(res); err != nil {
  7897  		return nil, gensupport.WrapError(err)
  7898  	}
  7899  	ret := &Operation{
  7900  		ServerResponse: googleapi.ServerResponse{
  7901  			Header:         res.Header,
  7902  			HTTPStatusCode: res.StatusCode,
  7903  		},
  7904  	}
  7905  	target := &ret
  7906  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7907  		return nil, err
  7908  	}
  7909  	return ret, nil
  7910  }
  7911  
  7912  type ProjectsLocationsConnectionsEventSubscriptionsCreateCall struct {
  7913  	s                 *Service
  7914  	parent            string
  7915  	eventsubscription *EventSubscription
  7916  	urlParams_        gensupport.URLParams
  7917  	ctx_              context.Context
  7918  	header_           http.Header
  7919  }
  7920  
  7921  // Create: Creates a new EventSubscription in a given project,location and
  7922  // connection.
  7923  //
  7924  //   - parent: Parent resource of the EventSubscription, of the form:
  7925  //     `projects/*/locations/*/connections/*`.
  7926  func (r *ProjectsLocationsConnectionsEventSubscriptionsService) Create(parent string, eventsubscription *EventSubscription) *ProjectsLocationsConnectionsEventSubscriptionsCreateCall {
  7927  	c := &ProjectsLocationsConnectionsEventSubscriptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7928  	c.parent = parent
  7929  	c.eventsubscription = eventsubscription
  7930  	return c
  7931  }
  7932  
  7933  // EventSubscriptionId sets the optional parameter "eventSubscriptionId":
  7934  // Required. Identifier to assign to the Event Subscription. Must be unique
  7935  // within scope of the parent resource.
  7936  func (c *ProjectsLocationsConnectionsEventSubscriptionsCreateCall) EventSubscriptionId(eventSubscriptionId string) *ProjectsLocationsConnectionsEventSubscriptionsCreateCall {
  7937  	c.urlParams_.Set("eventSubscriptionId", eventSubscriptionId)
  7938  	return c
  7939  }
  7940  
  7941  // Fields allows partial responses to be retrieved. See
  7942  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7943  // details.
  7944  func (c *ProjectsLocationsConnectionsEventSubscriptionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEventSubscriptionsCreateCall {
  7945  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7946  	return c
  7947  }
  7948  
  7949  // Context sets the context to be used in this call's Do method.
  7950  func (c *ProjectsLocationsConnectionsEventSubscriptionsCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEventSubscriptionsCreateCall {
  7951  	c.ctx_ = ctx
  7952  	return c
  7953  }
  7954  
  7955  // Header returns a http.Header that can be modified by the caller to add
  7956  // headers to the request.
  7957  func (c *ProjectsLocationsConnectionsEventSubscriptionsCreateCall) Header() http.Header {
  7958  	if c.header_ == nil {
  7959  		c.header_ = make(http.Header)
  7960  	}
  7961  	return c.header_
  7962  }
  7963  
  7964  func (c *ProjectsLocationsConnectionsEventSubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) {
  7965  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7966  	var body io.Reader = nil
  7967  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventsubscription)
  7968  	if err != nil {
  7969  		return nil, err
  7970  	}
  7971  	c.urlParams_.Set("alt", alt)
  7972  	c.urlParams_.Set("prettyPrint", "false")
  7973  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/eventSubscriptions")
  7974  	urls += "?" + c.urlParams_.Encode()
  7975  	req, err := http.NewRequest("POST", urls, body)
  7976  	if err != nil {
  7977  		return nil, err
  7978  	}
  7979  	req.Header = reqHeaders
  7980  	googleapi.Expand(req.URL, map[string]string{
  7981  		"parent": c.parent,
  7982  	})
  7983  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7984  }
  7985  
  7986  // Do executes the "connectors.projects.locations.connections.eventSubscriptions.create" call.
  7987  // Any non-2xx status code is an error. Response headers are in either
  7988  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7989  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7990  // whether the returned error was because http.StatusNotModified was returned.
  7991  func (c *ProjectsLocationsConnectionsEventSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7992  	gensupport.SetOptions(c.urlParams_, opts...)
  7993  	res, err := c.doRequest("json")
  7994  	if res != nil && res.StatusCode == http.StatusNotModified {
  7995  		if res.Body != nil {
  7996  			res.Body.Close()
  7997  		}
  7998  		return nil, gensupport.WrapError(&googleapi.Error{
  7999  			Code:   res.StatusCode,
  8000  			Header: res.Header,
  8001  		})
  8002  	}
  8003  	if err != nil {
  8004  		return nil, err
  8005  	}
  8006  	defer googleapi.CloseBody(res)
  8007  	if err := googleapi.CheckResponse(res); err != nil {
  8008  		return nil, gensupport.WrapError(err)
  8009  	}
  8010  	ret := &Operation{
  8011  		ServerResponse: googleapi.ServerResponse{
  8012  			Header:         res.Header,
  8013  			HTTPStatusCode: res.StatusCode,
  8014  		},
  8015  	}
  8016  	target := &ret
  8017  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8018  		return nil, err
  8019  	}
  8020  	return ret, nil
  8021  }
  8022  
  8023  type ProjectsLocationsConnectionsEventSubscriptionsDeleteCall struct {
  8024  	s          *Service
  8025  	name       string
  8026  	urlParams_ gensupport.URLParams
  8027  	ctx_       context.Context
  8028  	header_    http.Header
  8029  }
  8030  
  8031  // Delete: Deletes a single EventSubscription.
  8032  //
  8033  //   - name: Resource name of the form:
  8034  //     `projects/*/locations/*/connections/*/eventsubscriptions/*`.
  8035  func (r *ProjectsLocationsConnectionsEventSubscriptionsService) Delete(name string) *ProjectsLocationsConnectionsEventSubscriptionsDeleteCall {
  8036  	c := &ProjectsLocationsConnectionsEventSubscriptionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8037  	c.name = name
  8038  	return c
  8039  }
  8040  
  8041  // Fields allows partial responses to be retrieved. See
  8042  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8043  // details.
  8044  func (c *ProjectsLocationsConnectionsEventSubscriptionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEventSubscriptionsDeleteCall {
  8045  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8046  	return c
  8047  }
  8048  
  8049  // Context sets the context to be used in this call's Do method.
  8050  func (c *ProjectsLocationsConnectionsEventSubscriptionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEventSubscriptionsDeleteCall {
  8051  	c.ctx_ = ctx
  8052  	return c
  8053  }
  8054  
  8055  // Header returns a http.Header that can be modified by the caller to add
  8056  // headers to the request.
  8057  func (c *ProjectsLocationsConnectionsEventSubscriptionsDeleteCall) Header() http.Header {
  8058  	if c.header_ == nil {
  8059  		c.header_ = make(http.Header)
  8060  	}
  8061  	return c.header_
  8062  }
  8063  
  8064  func (c *ProjectsLocationsConnectionsEventSubscriptionsDeleteCall) doRequest(alt string) (*http.Response, error) {
  8065  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8066  	var body io.Reader = nil
  8067  	c.urlParams_.Set("alt", alt)
  8068  	c.urlParams_.Set("prettyPrint", "false")
  8069  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8070  	urls += "?" + c.urlParams_.Encode()
  8071  	req, err := http.NewRequest("DELETE", urls, body)
  8072  	if err != nil {
  8073  		return nil, err
  8074  	}
  8075  	req.Header = reqHeaders
  8076  	googleapi.Expand(req.URL, map[string]string{
  8077  		"name": c.name,
  8078  	})
  8079  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8080  }
  8081  
  8082  // Do executes the "connectors.projects.locations.connections.eventSubscriptions.delete" call.
  8083  // Any non-2xx status code is an error. Response headers are in either
  8084  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8085  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8086  // whether the returned error was because http.StatusNotModified was returned.
  8087  func (c *ProjectsLocationsConnectionsEventSubscriptionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8088  	gensupport.SetOptions(c.urlParams_, opts...)
  8089  	res, err := c.doRequest("json")
  8090  	if res != nil && res.StatusCode == http.StatusNotModified {
  8091  		if res.Body != nil {
  8092  			res.Body.Close()
  8093  		}
  8094  		return nil, gensupport.WrapError(&googleapi.Error{
  8095  			Code:   res.StatusCode,
  8096  			Header: res.Header,
  8097  		})
  8098  	}
  8099  	if err != nil {
  8100  		return nil, err
  8101  	}
  8102  	defer googleapi.CloseBody(res)
  8103  	if err := googleapi.CheckResponse(res); err != nil {
  8104  		return nil, gensupport.WrapError(err)
  8105  	}
  8106  	ret := &Operation{
  8107  		ServerResponse: googleapi.ServerResponse{
  8108  			Header:         res.Header,
  8109  			HTTPStatusCode: res.StatusCode,
  8110  		},
  8111  	}
  8112  	target := &ret
  8113  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8114  		return nil, err
  8115  	}
  8116  	return ret, nil
  8117  }
  8118  
  8119  type ProjectsLocationsConnectionsEventSubscriptionsGetCall struct {
  8120  	s            *Service
  8121  	name         string
  8122  	urlParams_   gensupport.URLParams
  8123  	ifNoneMatch_ string
  8124  	ctx_         context.Context
  8125  	header_      http.Header
  8126  }
  8127  
  8128  // Get: Gets details of a single EventSubscription.
  8129  //
  8130  //   - name: Resource name of the form:
  8131  //     `projects/*/locations/*/connections/*/eventSubscriptions/*`.
  8132  func (r *ProjectsLocationsConnectionsEventSubscriptionsService) Get(name string) *ProjectsLocationsConnectionsEventSubscriptionsGetCall {
  8133  	c := &ProjectsLocationsConnectionsEventSubscriptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8134  	c.name = name
  8135  	return c
  8136  }
  8137  
  8138  // Fields allows partial responses to be retrieved. See
  8139  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8140  // details.
  8141  func (c *ProjectsLocationsConnectionsEventSubscriptionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEventSubscriptionsGetCall {
  8142  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8143  	return c
  8144  }
  8145  
  8146  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8147  // object's ETag matches the given value. This is useful for getting updates
  8148  // only after the object has changed since the last request.
  8149  func (c *ProjectsLocationsConnectionsEventSubscriptionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEventSubscriptionsGetCall {
  8150  	c.ifNoneMatch_ = entityTag
  8151  	return c
  8152  }
  8153  
  8154  // Context sets the context to be used in this call's Do method.
  8155  func (c *ProjectsLocationsConnectionsEventSubscriptionsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEventSubscriptionsGetCall {
  8156  	c.ctx_ = ctx
  8157  	return c
  8158  }
  8159  
  8160  // Header returns a http.Header that can be modified by the caller to add
  8161  // headers to the request.
  8162  func (c *ProjectsLocationsConnectionsEventSubscriptionsGetCall) Header() http.Header {
  8163  	if c.header_ == nil {
  8164  		c.header_ = make(http.Header)
  8165  	}
  8166  	return c.header_
  8167  }
  8168  
  8169  func (c *ProjectsLocationsConnectionsEventSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) {
  8170  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8171  	if c.ifNoneMatch_ != "" {
  8172  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8173  	}
  8174  	var body io.Reader = nil
  8175  	c.urlParams_.Set("alt", alt)
  8176  	c.urlParams_.Set("prettyPrint", "false")
  8177  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8178  	urls += "?" + c.urlParams_.Encode()
  8179  	req, err := http.NewRequest("GET", urls, body)
  8180  	if err != nil {
  8181  		return nil, err
  8182  	}
  8183  	req.Header = reqHeaders
  8184  	googleapi.Expand(req.URL, map[string]string{
  8185  		"name": c.name,
  8186  	})
  8187  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8188  }
  8189  
  8190  // Do executes the "connectors.projects.locations.connections.eventSubscriptions.get" call.
  8191  // Any non-2xx status code is an error. Response headers are in either
  8192  // *EventSubscription.ServerResponse.Header or (if a response was returned at
  8193  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8194  // check whether the returned error was because http.StatusNotModified was
  8195  // returned.
  8196  func (c *ProjectsLocationsConnectionsEventSubscriptionsGetCall) Do(opts ...googleapi.CallOption) (*EventSubscription, error) {
  8197  	gensupport.SetOptions(c.urlParams_, opts...)
  8198  	res, err := c.doRequest("json")
  8199  	if res != nil && res.StatusCode == http.StatusNotModified {
  8200  		if res.Body != nil {
  8201  			res.Body.Close()
  8202  		}
  8203  		return nil, gensupport.WrapError(&googleapi.Error{
  8204  			Code:   res.StatusCode,
  8205  			Header: res.Header,
  8206  		})
  8207  	}
  8208  	if err != nil {
  8209  		return nil, err
  8210  	}
  8211  	defer googleapi.CloseBody(res)
  8212  	if err := googleapi.CheckResponse(res); err != nil {
  8213  		return nil, gensupport.WrapError(err)
  8214  	}
  8215  	ret := &EventSubscription{
  8216  		ServerResponse: googleapi.ServerResponse{
  8217  			Header:         res.Header,
  8218  			HTTPStatusCode: res.StatusCode,
  8219  		},
  8220  	}
  8221  	target := &ret
  8222  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8223  		return nil, err
  8224  	}
  8225  	return ret, nil
  8226  }
  8227  
  8228  type ProjectsLocationsConnectionsEventSubscriptionsListCall struct {
  8229  	s            *Service
  8230  	parent       string
  8231  	urlParams_   gensupport.URLParams
  8232  	ifNoneMatch_ string
  8233  	ctx_         context.Context
  8234  	header_      http.Header
  8235  }
  8236  
  8237  // List: List EventSubscriptions in a given project,location and connection.
  8238  //
  8239  //   - parent: Parent resource of the EventSubscription, of the form:
  8240  //     `projects/*/locations/*/connections/*`.
  8241  func (r *ProjectsLocationsConnectionsEventSubscriptionsService) List(parent string) *ProjectsLocationsConnectionsEventSubscriptionsListCall {
  8242  	c := &ProjectsLocationsConnectionsEventSubscriptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8243  	c.parent = parent
  8244  	return c
  8245  }
  8246  
  8247  // Filter sets the optional parameter "filter": Filter.
  8248  func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) Filter(filter string) *ProjectsLocationsConnectionsEventSubscriptionsListCall {
  8249  	c.urlParams_.Set("filter", filter)
  8250  	return c
  8251  }
  8252  
  8253  // OrderBy sets the optional parameter "orderBy": Order by parameters.
  8254  func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionsEventSubscriptionsListCall {
  8255  	c.urlParams_.Set("orderBy", orderBy)
  8256  	return c
  8257  }
  8258  
  8259  // PageSize sets the optional parameter "pageSize": Page size.
  8260  func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsEventSubscriptionsListCall {
  8261  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8262  	return c
  8263  }
  8264  
  8265  // PageToken sets the optional parameter "pageToken": Page token.
  8266  func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsEventSubscriptionsListCall {
  8267  	c.urlParams_.Set("pageToken", pageToken)
  8268  	return c
  8269  }
  8270  
  8271  // Fields allows partial responses to be retrieved. See
  8272  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8273  // details.
  8274  func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEventSubscriptionsListCall {
  8275  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8276  	return c
  8277  }
  8278  
  8279  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8280  // object's ETag matches the given value. This is useful for getting updates
  8281  // only after the object has changed since the last request.
  8282  func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEventSubscriptionsListCall {
  8283  	c.ifNoneMatch_ = entityTag
  8284  	return c
  8285  }
  8286  
  8287  // Context sets the context to be used in this call's Do method.
  8288  func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEventSubscriptionsListCall {
  8289  	c.ctx_ = ctx
  8290  	return c
  8291  }
  8292  
  8293  // Header returns a http.Header that can be modified by the caller to add
  8294  // headers to the request.
  8295  func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) Header() http.Header {
  8296  	if c.header_ == nil {
  8297  		c.header_ = make(http.Header)
  8298  	}
  8299  	return c.header_
  8300  }
  8301  
  8302  func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) doRequest(alt string) (*http.Response, error) {
  8303  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8304  	if c.ifNoneMatch_ != "" {
  8305  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8306  	}
  8307  	var body io.Reader = nil
  8308  	c.urlParams_.Set("alt", alt)
  8309  	c.urlParams_.Set("prettyPrint", "false")
  8310  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/eventSubscriptions")
  8311  	urls += "?" + c.urlParams_.Encode()
  8312  	req, err := http.NewRequest("GET", urls, body)
  8313  	if err != nil {
  8314  		return nil, err
  8315  	}
  8316  	req.Header = reqHeaders
  8317  	googleapi.Expand(req.URL, map[string]string{
  8318  		"parent": c.parent,
  8319  	})
  8320  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8321  }
  8322  
  8323  // Do executes the "connectors.projects.locations.connections.eventSubscriptions.list" call.
  8324  // Any non-2xx status code is an error. Response headers are in either
  8325  // *ListEventSubscriptionsResponse.ServerResponse.Header or (if a response was
  8326  // returned at all) in error.(*googleapi.Error).Header. Use
  8327  // googleapi.IsNotModified to check whether the returned error was because
  8328  // http.StatusNotModified was returned.
  8329  func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) Do(opts ...googleapi.CallOption) (*ListEventSubscriptionsResponse, error) {
  8330  	gensupport.SetOptions(c.urlParams_, opts...)
  8331  	res, err := c.doRequest("json")
  8332  	if res != nil && res.StatusCode == http.StatusNotModified {
  8333  		if res.Body != nil {
  8334  			res.Body.Close()
  8335  		}
  8336  		return nil, gensupport.WrapError(&googleapi.Error{
  8337  			Code:   res.StatusCode,
  8338  			Header: res.Header,
  8339  		})
  8340  	}
  8341  	if err != nil {
  8342  		return nil, err
  8343  	}
  8344  	defer googleapi.CloseBody(res)
  8345  	if err := googleapi.CheckResponse(res); err != nil {
  8346  		return nil, gensupport.WrapError(err)
  8347  	}
  8348  	ret := &ListEventSubscriptionsResponse{
  8349  		ServerResponse: googleapi.ServerResponse{
  8350  			Header:         res.Header,
  8351  			HTTPStatusCode: res.StatusCode,
  8352  		},
  8353  	}
  8354  	target := &ret
  8355  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8356  		return nil, err
  8357  	}
  8358  	return ret, nil
  8359  }
  8360  
  8361  // Pages invokes f for each page of results.
  8362  // A non-nil error returned from f will halt the iteration.
  8363  // The provided context supersedes any context provided to the Context method.
  8364  func (c *ProjectsLocationsConnectionsEventSubscriptionsListCall) Pages(ctx context.Context, f func(*ListEventSubscriptionsResponse) error) error {
  8365  	c.ctx_ = ctx
  8366  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8367  	for {
  8368  		x, err := c.Do()
  8369  		if err != nil {
  8370  			return err
  8371  		}
  8372  		if err := f(x); err != nil {
  8373  			return err
  8374  		}
  8375  		if x.NextPageToken == "" {
  8376  			return nil
  8377  		}
  8378  		c.PageToken(x.NextPageToken)
  8379  	}
  8380  }
  8381  
  8382  type ProjectsLocationsConnectionsEventSubscriptionsPatchCall struct {
  8383  	s                 *Service
  8384  	name              string
  8385  	eventsubscription *EventSubscription
  8386  	urlParams_        gensupport.URLParams
  8387  	ctx_              context.Context
  8388  	header_           http.Header
  8389  }
  8390  
  8391  // Patch: Updates the parameters of a single EventSubscription.
  8392  //
  8393  //   - name: Resource name of the EventSubscription. Format:
  8394  //     projects/{project}/locations/{location}/connections/{connection}/eventSubsc
  8395  //     riptions/{event_subscription}.
  8396  func (r *ProjectsLocationsConnectionsEventSubscriptionsService) Patch(name string, eventsubscription *EventSubscription) *ProjectsLocationsConnectionsEventSubscriptionsPatchCall {
  8397  	c := &ProjectsLocationsConnectionsEventSubscriptionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8398  	c.name = name
  8399  	c.eventsubscription = eventsubscription
  8400  	return c
  8401  }
  8402  
  8403  // UpdateMask sets the optional parameter "updateMask": Required. The list of
  8404  // fields to update. Fields are specified relative to the Subscription. A field
  8405  // will be overwritten if it is in the mask. You can modify only the fields
  8406  // listed below. To update the EventSubscription details: * `serviceAccount`
  8407  func (c *ProjectsLocationsConnectionsEventSubscriptionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionsEventSubscriptionsPatchCall {
  8408  	c.urlParams_.Set("updateMask", updateMask)
  8409  	return c
  8410  }
  8411  
  8412  // Fields allows partial responses to be retrieved. See
  8413  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8414  // details.
  8415  func (c *ProjectsLocationsConnectionsEventSubscriptionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEventSubscriptionsPatchCall {
  8416  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8417  	return c
  8418  }
  8419  
  8420  // Context sets the context to be used in this call's Do method.
  8421  func (c *ProjectsLocationsConnectionsEventSubscriptionsPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEventSubscriptionsPatchCall {
  8422  	c.ctx_ = ctx
  8423  	return c
  8424  }
  8425  
  8426  // Header returns a http.Header that can be modified by the caller to add
  8427  // headers to the request.
  8428  func (c *ProjectsLocationsConnectionsEventSubscriptionsPatchCall) Header() http.Header {
  8429  	if c.header_ == nil {
  8430  		c.header_ = make(http.Header)
  8431  	}
  8432  	return c.header_
  8433  }
  8434  
  8435  func (c *ProjectsLocationsConnectionsEventSubscriptionsPatchCall) doRequest(alt string) (*http.Response, error) {
  8436  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8437  	var body io.Reader = nil
  8438  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventsubscription)
  8439  	if err != nil {
  8440  		return nil, err
  8441  	}
  8442  	c.urlParams_.Set("alt", alt)
  8443  	c.urlParams_.Set("prettyPrint", "false")
  8444  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8445  	urls += "?" + c.urlParams_.Encode()
  8446  	req, err := http.NewRequest("PATCH", urls, body)
  8447  	if err != nil {
  8448  		return nil, err
  8449  	}
  8450  	req.Header = reqHeaders
  8451  	googleapi.Expand(req.URL, map[string]string{
  8452  		"name": c.name,
  8453  	})
  8454  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8455  }
  8456  
  8457  // Do executes the "connectors.projects.locations.connections.eventSubscriptions.patch" call.
  8458  // Any non-2xx status code is an error. Response headers are in either
  8459  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8460  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8461  // whether the returned error was because http.StatusNotModified was returned.
  8462  func (c *ProjectsLocationsConnectionsEventSubscriptionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8463  	gensupport.SetOptions(c.urlParams_, opts...)
  8464  	res, err := c.doRequest("json")
  8465  	if res != nil && res.StatusCode == http.StatusNotModified {
  8466  		if res.Body != nil {
  8467  			res.Body.Close()
  8468  		}
  8469  		return nil, gensupport.WrapError(&googleapi.Error{
  8470  			Code:   res.StatusCode,
  8471  			Header: res.Header,
  8472  		})
  8473  	}
  8474  	if err != nil {
  8475  		return nil, err
  8476  	}
  8477  	defer googleapi.CloseBody(res)
  8478  	if err := googleapi.CheckResponse(res); err != nil {
  8479  		return nil, gensupport.WrapError(err)
  8480  	}
  8481  	ret := &Operation{
  8482  		ServerResponse: googleapi.ServerResponse{
  8483  			Header:         res.Header,
  8484  			HTTPStatusCode: res.StatusCode,
  8485  		},
  8486  	}
  8487  	target := &ret
  8488  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8489  		return nil, err
  8490  	}
  8491  	return ret, nil
  8492  }
  8493  
  8494  type ProjectsLocationsConnectionsEventSubscriptionsRetryCall struct {
  8495  	s                             *Service
  8496  	name                          string
  8497  	retryeventsubscriptionrequest *RetryEventSubscriptionRequest
  8498  	urlParams_                    gensupport.URLParams
  8499  	ctx_                          context.Context
  8500  	header_                       http.Header
  8501  }
  8502  
  8503  // Retry: RetryEventSubscription retries the registration of Subscription.
  8504  //
  8505  //   - name: Resource name of the form:
  8506  //     `projects/*/locations/*/connections/*/eventSubscriptions/*`.
  8507  func (r *ProjectsLocationsConnectionsEventSubscriptionsService) Retry(name string, retryeventsubscriptionrequest *RetryEventSubscriptionRequest) *ProjectsLocationsConnectionsEventSubscriptionsRetryCall {
  8508  	c := &ProjectsLocationsConnectionsEventSubscriptionsRetryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8509  	c.name = name
  8510  	c.retryeventsubscriptionrequest = retryeventsubscriptionrequest
  8511  	return c
  8512  }
  8513  
  8514  // Fields allows partial responses to be retrieved. See
  8515  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8516  // details.
  8517  func (c *ProjectsLocationsConnectionsEventSubscriptionsRetryCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEventSubscriptionsRetryCall {
  8518  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8519  	return c
  8520  }
  8521  
  8522  // Context sets the context to be used in this call's Do method.
  8523  func (c *ProjectsLocationsConnectionsEventSubscriptionsRetryCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEventSubscriptionsRetryCall {
  8524  	c.ctx_ = ctx
  8525  	return c
  8526  }
  8527  
  8528  // Header returns a http.Header that can be modified by the caller to add
  8529  // headers to the request.
  8530  func (c *ProjectsLocationsConnectionsEventSubscriptionsRetryCall) Header() http.Header {
  8531  	if c.header_ == nil {
  8532  		c.header_ = make(http.Header)
  8533  	}
  8534  	return c.header_
  8535  }
  8536  
  8537  func (c *ProjectsLocationsConnectionsEventSubscriptionsRetryCall) doRequest(alt string) (*http.Response, error) {
  8538  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8539  	var body io.Reader = nil
  8540  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.retryeventsubscriptionrequest)
  8541  	if err != nil {
  8542  		return nil, err
  8543  	}
  8544  	c.urlParams_.Set("alt", alt)
  8545  	c.urlParams_.Set("prettyPrint", "false")
  8546  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:retry")
  8547  	urls += "?" + c.urlParams_.Encode()
  8548  	req, err := http.NewRequest("POST", urls, body)
  8549  	if err != nil {
  8550  		return nil, err
  8551  	}
  8552  	req.Header = reqHeaders
  8553  	googleapi.Expand(req.URL, map[string]string{
  8554  		"name": c.name,
  8555  	})
  8556  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8557  }
  8558  
  8559  // Do executes the "connectors.projects.locations.connections.eventSubscriptions.retry" call.
  8560  // Any non-2xx status code is an error. Response headers are in either
  8561  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8562  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8563  // whether the returned error was because http.StatusNotModified was returned.
  8564  func (c *ProjectsLocationsConnectionsEventSubscriptionsRetryCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8565  	gensupport.SetOptions(c.urlParams_, opts...)
  8566  	res, err := c.doRequest("json")
  8567  	if res != nil && res.StatusCode == http.StatusNotModified {
  8568  		if res.Body != nil {
  8569  			res.Body.Close()
  8570  		}
  8571  		return nil, gensupport.WrapError(&googleapi.Error{
  8572  			Code:   res.StatusCode,
  8573  			Header: res.Header,
  8574  		})
  8575  	}
  8576  	if err != nil {
  8577  		return nil, err
  8578  	}
  8579  	defer googleapi.CloseBody(res)
  8580  	if err := googleapi.CheckResponse(res); err != nil {
  8581  		return nil, gensupport.WrapError(err)
  8582  	}
  8583  	ret := &Operation{
  8584  		ServerResponse: googleapi.ServerResponse{
  8585  			Header:         res.Header,
  8586  			HTTPStatusCode: res.StatusCode,
  8587  		},
  8588  	}
  8589  	target := &ret
  8590  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8591  		return nil, err
  8592  	}
  8593  	return ret, nil
  8594  }
  8595  
  8596  type ProjectsLocationsConnectionsRuntimeActionSchemasListCall struct {
  8597  	s            *Service
  8598  	parent       string
  8599  	urlParams_   gensupport.URLParams
  8600  	ifNoneMatch_ string
  8601  	ctx_         context.Context
  8602  	header_      http.Header
  8603  }
  8604  
  8605  // List: List schema of a runtime actions filtered by action name.
  8606  //
  8607  //   - parent: Parent resource of RuntimeActionSchema Format:
  8608  //     projects/{project}/locations/{location}/connections/{connection}.
  8609  func (r *ProjectsLocationsConnectionsRuntimeActionSchemasService) List(parent string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall {
  8610  	c := &ProjectsLocationsConnectionsRuntimeActionSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8611  	c.parent = parent
  8612  	return c
  8613  }
  8614  
  8615  // Filter sets the optional parameter "filter": Required. Filter Format:
  8616  // action="{actionId}" Only action field is supported with literal equality
  8617  // operator. Accepted filter example: action="CancelOrder" Wildcards are not
  8618  // supported in the filter currently.
  8619  func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Filter(filter string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall {
  8620  	c.urlParams_.Set("filter", filter)
  8621  	return c
  8622  }
  8623  
  8624  // PageSize sets the optional parameter "pageSize": Page size.
  8625  func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall {
  8626  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8627  	return c
  8628  }
  8629  
  8630  // PageToken sets the optional parameter "pageToken": Page token.
  8631  func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall {
  8632  	c.urlParams_.Set("pageToken", pageToken)
  8633  	return c
  8634  }
  8635  
  8636  // Fields allows partial responses to be retrieved. See
  8637  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8638  // details.
  8639  func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall {
  8640  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8641  	return c
  8642  }
  8643  
  8644  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8645  // object's ETag matches the given value. This is useful for getting updates
  8646  // only after the object has changed since the last request.
  8647  func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall {
  8648  	c.ifNoneMatch_ = entityTag
  8649  	return c
  8650  }
  8651  
  8652  // Context sets the context to be used in this call's Do method.
  8653  func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRuntimeActionSchemasListCall {
  8654  	c.ctx_ = ctx
  8655  	return c
  8656  }
  8657  
  8658  // Header returns a http.Header that can be modified by the caller to add
  8659  // headers to the request.
  8660  func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Header() http.Header {
  8661  	if c.header_ == nil {
  8662  		c.header_ = make(http.Header)
  8663  	}
  8664  	return c.header_
  8665  }
  8666  
  8667  func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) doRequest(alt string) (*http.Response, error) {
  8668  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8669  	if c.ifNoneMatch_ != "" {
  8670  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8671  	}
  8672  	var body io.Reader = nil
  8673  	c.urlParams_.Set("alt", alt)
  8674  	c.urlParams_.Set("prettyPrint", "false")
  8675  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/runtimeActionSchemas")
  8676  	urls += "?" + c.urlParams_.Encode()
  8677  	req, err := http.NewRequest("GET", urls, body)
  8678  	if err != nil {
  8679  		return nil, err
  8680  	}
  8681  	req.Header = reqHeaders
  8682  	googleapi.Expand(req.URL, map[string]string{
  8683  		"parent": c.parent,
  8684  	})
  8685  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8686  }
  8687  
  8688  // Do executes the "connectors.projects.locations.connections.runtimeActionSchemas.list" call.
  8689  // Any non-2xx status code is an error. Response headers are in either
  8690  // *ListRuntimeActionSchemasResponse.ServerResponse.Header or (if a response
  8691  // was returned at all) in error.(*googleapi.Error).Header. Use
  8692  // googleapi.IsNotModified to check whether the returned error was because
  8693  // http.StatusNotModified was returned.
  8694  func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Do(opts ...googleapi.CallOption) (*ListRuntimeActionSchemasResponse, error) {
  8695  	gensupport.SetOptions(c.urlParams_, opts...)
  8696  	res, err := c.doRequest("json")
  8697  	if res != nil && res.StatusCode == http.StatusNotModified {
  8698  		if res.Body != nil {
  8699  			res.Body.Close()
  8700  		}
  8701  		return nil, gensupport.WrapError(&googleapi.Error{
  8702  			Code:   res.StatusCode,
  8703  			Header: res.Header,
  8704  		})
  8705  	}
  8706  	if err != nil {
  8707  		return nil, err
  8708  	}
  8709  	defer googleapi.CloseBody(res)
  8710  	if err := googleapi.CheckResponse(res); err != nil {
  8711  		return nil, gensupport.WrapError(err)
  8712  	}
  8713  	ret := &ListRuntimeActionSchemasResponse{
  8714  		ServerResponse: googleapi.ServerResponse{
  8715  			Header:         res.Header,
  8716  			HTTPStatusCode: res.StatusCode,
  8717  		},
  8718  	}
  8719  	target := &ret
  8720  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8721  		return nil, err
  8722  	}
  8723  	return ret, nil
  8724  }
  8725  
  8726  // Pages invokes f for each page of results.
  8727  // A non-nil error returned from f will halt the iteration.
  8728  // The provided context supersedes any context provided to the Context method.
  8729  func (c *ProjectsLocationsConnectionsRuntimeActionSchemasListCall) Pages(ctx context.Context, f func(*ListRuntimeActionSchemasResponse) error) error {
  8730  	c.ctx_ = ctx
  8731  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8732  	for {
  8733  		x, err := c.Do()
  8734  		if err != nil {
  8735  			return err
  8736  		}
  8737  		if err := f(x); err != nil {
  8738  			return err
  8739  		}
  8740  		if x.NextPageToken == "" {
  8741  			return nil
  8742  		}
  8743  		c.PageToken(x.NextPageToken)
  8744  	}
  8745  }
  8746  
  8747  type ProjectsLocationsConnectionsRuntimeEntitySchemasListCall struct {
  8748  	s            *Service
  8749  	parent       string
  8750  	urlParams_   gensupport.URLParams
  8751  	ifNoneMatch_ string
  8752  	ctx_         context.Context
  8753  	header_      http.Header
  8754  }
  8755  
  8756  // List: List schema of a runtime entities filtered by entity name.
  8757  //
  8758  //   - parent: Parent resource of RuntimeEntitySchema Format:
  8759  //     projects/{project}/locations/{location}/connections/{connection}.
  8760  func (r *ProjectsLocationsConnectionsRuntimeEntitySchemasService) List(parent string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall {
  8761  	c := &ProjectsLocationsConnectionsRuntimeEntitySchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8762  	c.parent = parent
  8763  	return c
  8764  }
  8765  
  8766  // Filter sets the optional parameter "filter": Required. Filter Format:
  8767  // entity="{entityId}" Only entity field is supported with literal equality
  8768  // operator. Accepted filter example: entity="Order" Wildcards are not
  8769  // supported in the filter currently.
  8770  func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Filter(filter string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall {
  8771  	c.urlParams_.Set("filter", filter)
  8772  	return c
  8773  }
  8774  
  8775  // PageSize sets the optional parameter "pageSize": Page size.
  8776  func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall {
  8777  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8778  	return c
  8779  }
  8780  
  8781  // PageToken sets the optional parameter "pageToken": Page token.
  8782  func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall {
  8783  	c.urlParams_.Set("pageToken", pageToken)
  8784  	return c
  8785  }
  8786  
  8787  // Fields allows partial responses to be retrieved. See
  8788  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8789  // details.
  8790  func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall {
  8791  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8792  	return c
  8793  }
  8794  
  8795  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8796  // object's ETag matches the given value. This is useful for getting updates
  8797  // only after the object has changed since the last request.
  8798  func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall {
  8799  	c.ifNoneMatch_ = entityTag
  8800  	return c
  8801  }
  8802  
  8803  // Context sets the context to be used in this call's Do method.
  8804  func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall {
  8805  	c.ctx_ = ctx
  8806  	return c
  8807  }
  8808  
  8809  // Header returns a http.Header that can be modified by the caller to add
  8810  // headers to the request.
  8811  func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Header() http.Header {
  8812  	if c.header_ == nil {
  8813  		c.header_ = make(http.Header)
  8814  	}
  8815  	return c.header_
  8816  }
  8817  
  8818  func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) doRequest(alt string) (*http.Response, error) {
  8819  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8820  	if c.ifNoneMatch_ != "" {
  8821  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8822  	}
  8823  	var body io.Reader = nil
  8824  	c.urlParams_.Set("alt", alt)
  8825  	c.urlParams_.Set("prettyPrint", "false")
  8826  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/runtimeEntitySchemas")
  8827  	urls += "?" + c.urlParams_.Encode()
  8828  	req, err := http.NewRequest("GET", urls, body)
  8829  	if err != nil {
  8830  		return nil, err
  8831  	}
  8832  	req.Header = reqHeaders
  8833  	googleapi.Expand(req.URL, map[string]string{
  8834  		"parent": c.parent,
  8835  	})
  8836  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8837  }
  8838  
  8839  // Do executes the "connectors.projects.locations.connections.runtimeEntitySchemas.list" call.
  8840  // Any non-2xx status code is an error. Response headers are in either
  8841  // *ListRuntimeEntitySchemasResponse.ServerResponse.Header or (if a response
  8842  // was returned at all) in error.(*googleapi.Error).Header. Use
  8843  // googleapi.IsNotModified to check whether the returned error was because
  8844  // http.StatusNotModified was returned.
  8845  func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Do(opts ...googleapi.CallOption) (*ListRuntimeEntitySchemasResponse, error) {
  8846  	gensupport.SetOptions(c.urlParams_, opts...)
  8847  	res, err := c.doRequest("json")
  8848  	if res != nil && res.StatusCode == http.StatusNotModified {
  8849  		if res.Body != nil {
  8850  			res.Body.Close()
  8851  		}
  8852  		return nil, gensupport.WrapError(&googleapi.Error{
  8853  			Code:   res.StatusCode,
  8854  			Header: res.Header,
  8855  		})
  8856  	}
  8857  	if err != nil {
  8858  		return nil, err
  8859  	}
  8860  	defer googleapi.CloseBody(res)
  8861  	if err := googleapi.CheckResponse(res); err != nil {
  8862  		return nil, gensupport.WrapError(err)
  8863  	}
  8864  	ret := &ListRuntimeEntitySchemasResponse{
  8865  		ServerResponse: googleapi.ServerResponse{
  8866  			Header:         res.Header,
  8867  			HTTPStatusCode: res.StatusCode,
  8868  		},
  8869  	}
  8870  	target := &ret
  8871  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8872  		return nil, err
  8873  	}
  8874  	return ret, nil
  8875  }
  8876  
  8877  // Pages invokes f for each page of results.
  8878  // A non-nil error returned from f will halt the iteration.
  8879  // The provided context supersedes any context provided to the Context method.
  8880  func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Pages(ctx context.Context, f func(*ListRuntimeEntitySchemasResponse) error) error {
  8881  	c.ctx_ = ctx
  8882  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8883  	for {
  8884  		x, err := c.Do()
  8885  		if err != nil {
  8886  			return err
  8887  		}
  8888  		if err := f(x); err != nil {
  8889  			return err
  8890  		}
  8891  		if x.NextPageToken == "" {
  8892  			return nil
  8893  		}
  8894  		c.PageToken(x.NextPageToken)
  8895  	}
  8896  }
  8897  
  8898  type ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall struct {
  8899  	s                                  *Service
  8900  	parent                             string
  8901  	validatecustomconnectorspecrequest *ValidateCustomConnectorSpecRequest
  8902  	urlParams_                         gensupport.URLParams
  8903  	ctx_                               context.Context
  8904  	header_                            http.Header
  8905  }
  8906  
  8907  // ValidateCustomConnectorSpec: Validates a Custom Connector Spec.
  8908  //
  8909  // - parent: Location at which the custom connector is being created.
  8910  func (r *ProjectsLocationsCustomConnectorsService) ValidateCustomConnectorSpec(parent string, validatecustomconnectorspecrequest *ValidateCustomConnectorSpecRequest) *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall {
  8911  	c := &ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8912  	c.parent = parent
  8913  	c.validatecustomconnectorspecrequest = validatecustomconnectorspecrequest
  8914  	return c
  8915  }
  8916  
  8917  // Fields allows partial responses to be retrieved. See
  8918  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8919  // details.
  8920  func (c *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall {
  8921  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8922  	return c
  8923  }
  8924  
  8925  // Context sets the context to be used in this call's Do method.
  8926  func (c *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall) Context(ctx context.Context) *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall {
  8927  	c.ctx_ = ctx
  8928  	return c
  8929  }
  8930  
  8931  // Header returns a http.Header that can be modified by the caller to add
  8932  // headers to the request.
  8933  func (c *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall) Header() http.Header {
  8934  	if c.header_ == nil {
  8935  		c.header_ = make(http.Header)
  8936  	}
  8937  	return c.header_
  8938  }
  8939  
  8940  func (c *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall) doRequest(alt string) (*http.Response, error) {
  8941  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8942  	var body io.Reader = nil
  8943  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.validatecustomconnectorspecrequest)
  8944  	if err != nil {
  8945  		return nil, err
  8946  	}
  8947  	c.urlParams_.Set("alt", alt)
  8948  	c.urlParams_.Set("prettyPrint", "false")
  8949  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/customConnectors:validateCustomConnectorSpec")
  8950  	urls += "?" + c.urlParams_.Encode()
  8951  	req, err := http.NewRequest("POST", urls, body)
  8952  	if err != nil {
  8953  		return nil, err
  8954  	}
  8955  	req.Header = reqHeaders
  8956  	googleapi.Expand(req.URL, map[string]string{
  8957  		"parent": c.parent,
  8958  	})
  8959  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8960  }
  8961  
  8962  // Do executes the "connectors.projects.locations.customConnectors.validateCustomConnectorSpec" call.
  8963  // Any non-2xx status code is an error. Response headers are in either
  8964  // *ValidateCustomConnectorSpecResponse.ServerResponse.Header or (if a response
  8965  // was returned at all) in error.(*googleapi.Error).Header. Use
  8966  // googleapi.IsNotModified to check whether the returned error was because
  8967  // http.StatusNotModified was returned.
  8968  func (c *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall) Do(opts ...googleapi.CallOption) (*ValidateCustomConnectorSpecResponse, error) {
  8969  	gensupport.SetOptions(c.urlParams_, opts...)
  8970  	res, err := c.doRequest("json")
  8971  	if res != nil && res.StatusCode == http.StatusNotModified {
  8972  		if res.Body != nil {
  8973  			res.Body.Close()
  8974  		}
  8975  		return nil, gensupport.WrapError(&googleapi.Error{
  8976  			Code:   res.StatusCode,
  8977  			Header: res.Header,
  8978  		})
  8979  	}
  8980  	if err != nil {
  8981  		return nil, err
  8982  	}
  8983  	defer googleapi.CloseBody(res)
  8984  	if err := googleapi.CheckResponse(res); err != nil {
  8985  		return nil, gensupport.WrapError(err)
  8986  	}
  8987  	ret := &ValidateCustomConnectorSpecResponse{
  8988  		ServerResponse: googleapi.ServerResponse{
  8989  			Header:         res.Header,
  8990  			HTTPStatusCode: res.StatusCode,
  8991  		},
  8992  	}
  8993  	target := &ret
  8994  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8995  		return nil, err
  8996  	}
  8997  	return ret, nil
  8998  }
  8999  
  9000  type ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeleteCall struct {
  9001  	s          *Service
  9002  	name       string
  9003  	urlParams_ gensupport.URLParams
  9004  	ctx_       context.Context
  9005  	header_    http.Header
  9006  }
  9007  
  9008  // Delete: Deletes a single CustomConnectorVersion.
  9009  //
  9010  //   - name: Resource name of the form:
  9011  //     `projects/{project}/locations/{location}/customConnectors/{custom_connector
  9012  //     }/customConnectorVersions/{custom_connector_version}`.
  9013  func (r *ProjectsLocationsCustomConnectorsCustomConnectorVersionsService) Delete(name string) *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeleteCall {
  9014  	c := &ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9015  	c.name = name
  9016  	return c
  9017  }
  9018  
  9019  // Fields allows partial responses to be retrieved. See
  9020  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9021  // details.
  9022  func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeleteCall {
  9023  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9024  	return c
  9025  }
  9026  
  9027  // Context sets the context to be used in this call's Do method.
  9028  func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeleteCall {
  9029  	c.ctx_ = ctx
  9030  	return c
  9031  }
  9032  
  9033  // Header returns a http.Header that can be modified by the caller to add
  9034  // headers to the request.
  9035  func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeleteCall) Header() http.Header {
  9036  	if c.header_ == nil {
  9037  		c.header_ = make(http.Header)
  9038  	}
  9039  	return c.header_
  9040  }
  9041  
  9042  func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
  9043  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9044  	var body io.Reader = nil
  9045  	c.urlParams_.Set("alt", alt)
  9046  	c.urlParams_.Set("prettyPrint", "false")
  9047  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9048  	urls += "?" + c.urlParams_.Encode()
  9049  	req, err := http.NewRequest("DELETE", urls, body)
  9050  	if err != nil {
  9051  		return nil, err
  9052  	}
  9053  	req.Header = reqHeaders
  9054  	googleapi.Expand(req.URL, map[string]string{
  9055  		"name": c.name,
  9056  	})
  9057  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9058  }
  9059  
  9060  // Do executes the "connectors.projects.locations.customConnectors.customConnectorVersions.delete" call.
  9061  // Any non-2xx status code is an error. Response headers are in either
  9062  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9063  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9064  // whether the returned error was because http.StatusNotModified was returned.
  9065  func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9066  	gensupport.SetOptions(c.urlParams_, opts...)
  9067  	res, err := c.doRequest("json")
  9068  	if res != nil && res.StatusCode == http.StatusNotModified {
  9069  		if res.Body != nil {
  9070  			res.Body.Close()
  9071  		}
  9072  		return nil, gensupport.WrapError(&googleapi.Error{
  9073  			Code:   res.StatusCode,
  9074  			Header: res.Header,
  9075  		})
  9076  	}
  9077  	if err != nil {
  9078  		return nil, err
  9079  	}
  9080  	defer googleapi.CloseBody(res)
  9081  	if err := googleapi.CheckResponse(res); err != nil {
  9082  		return nil, gensupport.WrapError(err)
  9083  	}
  9084  	ret := &Operation{
  9085  		ServerResponse: googleapi.ServerResponse{
  9086  			Header:         res.Header,
  9087  			HTTPStatusCode: res.StatusCode,
  9088  		},
  9089  	}
  9090  	target := &ret
  9091  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9092  		return nil, err
  9093  	}
  9094  	return ret, nil
  9095  }
  9096  
  9097  type ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeprecateCall struct {
  9098  	s                                      *Service
  9099  	name                                   string
  9100  	deprecatecustomconnectorversionrequest *DeprecateCustomConnectorVersionRequest
  9101  	urlParams_                             gensupport.URLParams
  9102  	ctx_                                   context.Context
  9103  	header_                                http.Header
  9104  }
  9105  
  9106  // Deprecate: Deprecates a single CustomConnectorVersion.
  9107  //
  9108  //   - name: Resource name of the form:
  9109  //     `projects/{project}/locations/{location}/customConnectors/{custom_connector
  9110  //     }/customConnectorVersions/{custom_connector_version}`.
  9111  func (r *ProjectsLocationsCustomConnectorsCustomConnectorVersionsService) Deprecate(name string, deprecatecustomconnectorversionrequest *DeprecateCustomConnectorVersionRequest) *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeprecateCall {
  9112  	c := &ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeprecateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9113  	c.name = name
  9114  	c.deprecatecustomconnectorversionrequest = deprecatecustomconnectorversionrequest
  9115  	return c
  9116  }
  9117  
  9118  // Fields allows partial responses to be retrieved. See
  9119  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9120  // details.
  9121  func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeprecateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeprecateCall {
  9122  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9123  	return c
  9124  }
  9125  
  9126  // Context sets the context to be used in this call's Do method.
  9127  func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeprecateCall) Context(ctx context.Context) *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeprecateCall {
  9128  	c.ctx_ = ctx
  9129  	return c
  9130  }
  9131  
  9132  // Header returns a http.Header that can be modified by the caller to add
  9133  // headers to the request.
  9134  func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeprecateCall) Header() http.Header {
  9135  	if c.header_ == nil {
  9136  		c.header_ = make(http.Header)
  9137  	}
  9138  	return c.header_
  9139  }
  9140  
  9141  func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeprecateCall) doRequest(alt string) (*http.Response, error) {
  9142  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9143  	var body io.Reader = nil
  9144  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.deprecatecustomconnectorversionrequest)
  9145  	if err != nil {
  9146  		return nil, err
  9147  	}
  9148  	c.urlParams_.Set("alt", alt)
  9149  	c.urlParams_.Set("prettyPrint", "false")
  9150  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:deprecate")
  9151  	urls += "?" + c.urlParams_.Encode()
  9152  	req, err := http.NewRequest("POST", urls, body)
  9153  	if err != nil {
  9154  		return nil, err
  9155  	}
  9156  	req.Header = reqHeaders
  9157  	googleapi.Expand(req.URL, map[string]string{
  9158  		"name": c.name,
  9159  	})
  9160  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9161  }
  9162  
  9163  // Do executes the "connectors.projects.locations.customConnectors.customConnectorVersions.deprecate" call.
  9164  // Any non-2xx status code is an error. Response headers are in either
  9165  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9166  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9167  // whether the returned error was because http.StatusNotModified was returned.
  9168  func (c *ProjectsLocationsCustomConnectorsCustomConnectorVersionsDeprecateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9169  	gensupport.SetOptions(c.urlParams_, opts...)
  9170  	res, err := c.doRequest("json")
  9171  	if res != nil && res.StatusCode == http.StatusNotModified {
  9172  		if res.Body != nil {
  9173  			res.Body.Close()
  9174  		}
  9175  		return nil, gensupport.WrapError(&googleapi.Error{
  9176  			Code:   res.StatusCode,
  9177  			Header: res.Header,
  9178  		})
  9179  	}
  9180  	if err != nil {
  9181  		return nil, err
  9182  	}
  9183  	defer googleapi.CloseBody(res)
  9184  	if err := googleapi.CheckResponse(res); err != nil {
  9185  		return nil, gensupport.WrapError(err)
  9186  	}
  9187  	ret := &Operation{
  9188  		ServerResponse: googleapi.ServerResponse{
  9189  			Header:         res.Header,
  9190  			HTTPStatusCode: res.StatusCode,
  9191  		},
  9192  	}
  9193  	target := &ret
  9194  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9195  		return nil, err
  9196  	}
  9197  	return ret, nil
  9198  }
  9199  
  9200  type ProjectsLocationsEndpointAttachmentsCreateCall struct {
  9201  	s                  *Service
  9202  	parent             string
  9203  	endpointattachment *EndpointAttachment
  9204  	urlParams_         gensupport.URLParams
  9205  	ctx_               context.Context
  9206  	header_            http.Header
  9207  }
  9208  
  9209  // Create: Creates a new EndpointAttachment in a given project and location.
  9210  //
  9211  //   - parent: Parent resource of the EndpointAttachment, of the form:
  9212  //     `projects/*/locations/*`.
  9213  func (r *ProjectsLocationsEndpointAttachmentsService) Create(parent string, endpointattachment *EndpointAttachment) *ProjectsLocationsEndpointAttachmentsCreateCall {
  9214  	c := &ProjectsLocationsEndpointAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9215  	c.parent = parent
  9216  	c.endpointattachment = endpointattachment
  9217  	return c
  9218  }
  9219  
  9220  // EndpointAttachmentId sets the optional parameter "endpointAttachmentId":
  9221  // Required. Identifier to assign to the EndpointAttachment. Must be unique
  9222  // within scope of the parent resource.
  9223  func (c *ProjectsLocationsEndpointAttachmentsCreateCall) EndpointAttachmentId(endpointAttachmentId string) *ProjectsLocationsEndpointAttachmentsCreateCall {
  9224  	c.urlParams_.Set("endpointAttachmentId", endpointAttachmentId)
  9225  	return c
  9226  }
  9227  
  9228  // Fields allows partial responses to be retrieved. See
  9229  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9230  // details.
  9231  func (c *ProjectsLocationsEndpointAttachmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointAttachmentsCreateCall {
  9232  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9233  	return c
  9234  }
  9235  
  9236  // Context sets the context to be used in this call's Do method.
  9237  func (c *ProjectsLocationsEndpointAttachmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsEndpointAttachmentsCreateCall {
  9238  	c.ctx_ = ctx
  9239  	return c
  9240  }
  9241  
  9242  // Header returns a http.Header that can be modified by the caller to add
  9243  // headers to the request.
  9244  func (c *ProjectsLocationsEndpointAttachmentsCreateCall) Header() http.Header {
  9245  	if c.header_ == nil {
  9246  		c.header_ = make(http.Header)
  9247  	}
  9248  	return c.header_
  9249  }
  9250  
  9251  func (c *ProjectsLocationsEndpointAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
  9252  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9253  	var body io.Reader = nil
  9254  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.endpointattachment)
  9255  	if err != nil {
  9256  		return nil, err
  9257  	}
  9258  	c.urlParams_.Set("alt", alt)
  9259  	c.urlParams_.Set("prettyPrint", "false")
  9260  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/endpointAttachments")
  9261  	urls += "?" + c.urlParams_.Encode()
  9262  	req, err := http.NewRequest("POST", urls, body)
  9263  	if err != nil {
  9264  		return nil, err
  9265  	}
  9266  	req.Header = reqHeaders
  9267  	googleapi.Expand(req.URL, map[string]string{
  9268  		"parent": c.parent,
  9269  	})
  9270  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9271  }
  9272  
  9273  // Do executes the "connectors.projects.locations.endpointAttachments.create" call.
  9274  // Any non-2xx status code is an error. Response headers are in either
  9275  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9276  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9277  // whether the returned error was because http.StatusNotModified was returned.
  9278  func (c *ProjectsLocationsEndpointAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9279  	gensupport.SetOptions(c.urlParams_, opts...)
  9280  	res, err := c.doRequest("json")
  9281  	if res != nil && res.StatusCode == http.StatusNotModified {
  9282  		if res.Body != nil {
  9283  			res.Body.Close()
  9284  		}
  9285  		return nil, gensupport.WrapError(&googleapi.Error{
  9286  			Code:   res.StatusCode,
  9287  			Header: res.Header,
  9288  		})
  9289  	}
  9290  	if err != nil {
  9291  		return nil, err
  9292  	}
  9293  	defer googleapi.CloseBody(res)
  9294  	if err := googleapi.CheckResponse(res); err != nil {
  9295  		return nil, gensupport.WrapError(err)
  9296  	}
  9297  	ret := &Operation{
  9298  		ServerResponse: googleapi.ServerResponse{
  9299  			Header:         res.Header,
  9300  			HTTPStatusCode: res.StatusCode,
  9301  		},
  9302  	}
  9303  	target := &ret
  9304  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9305  		return nil, err
  9306  	}
  9307  	return ret, nil
  9308  }
  9309  
  9310  type ProjectsLocationsEndpointAttachmentsDeleteCall struct {
  9311  	s          *Service
  9312  	name       string
  9313  	urlParams_ gensupport.URLParams
  9314  	ctx_       context.Context
  9315  	header_    http.Header
  9316  }
  9317  
  9318  // Delete: Deletes a single EndpointAttachment.
  9319  //
  9320  //   - name: Resource name of the form:
  9321  //     `projects/*/locations/*/endpointAttachments/*`.
  9322  func (r *ProjectsLocationsEndpointAttachmentsService) Delete(name string) *ProjectsLocationsEndpointAttachmentsDeleteCall {
  9323  	c := &ProjectsLocationsEndpointAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9324  	c.name = name
  9325  	return c
  9326  }
  9327  
  9328  // Fields allows partial responses to be retrieved. See
  9329  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9330  // details.
  9331  func (c *ProjectsLocationsEndpointAttachmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointAttachmentsDeleteCall {
  9332  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9333  	return c
  9334  }
  9335  
  9336  // Context sets the context to be used in this call's Do method.
  9337  func (c *ProjectsLocationsEndpointAttachmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointAttachmentsDeleteCall {
  9338  	c.ctx_ = ctx
  9339  	return c
  9340  }
  9341  
  9342  // Header returns a http.Header that can be modified by the caller to add
  9343  // headers to the request.
  9344  func (c *ProjectsLocationsEndpointAttachmentsDeleteCall) Header() http.Header {
  9345  	if c.header_ == nil {
  9346  		c.header_ = make(http.Header)
  9347  	}
  9348  	return c.header_
  9349  }
  9350  
  9351  func (c *ProjectsLocationsEndpointAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
  9352  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9353  	var body io.Reader = nil
  9354  	c.urlParams_.Set("alt", alt)
  9355  	c.urlParams_.Set("prettyPrint", "false")
  9356  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9357  	urls += "?" + c.urlParams_.Encode()
  9358  	req, err := http.NewRequest("DELETE", urls, body)
  9359  	if err != nil {
  9360  		return nil, err
  9361  	}
  9362  	req.Header = reqHeaders
  9363  	googleapi.Expand(req.URL, map[string]string{
  9364  		"name": c.name,
  9365  	})
  9366  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9367  }
  9368  
  9369  // Do executes the "connectors.projects.locations.endpointAttachments.delete" call.
  9370  // Any non-2xx status code is an error. Response headers are in either
  9371  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9372  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9373  // whether the returned error was because http.StatusNotModified was returned.
  9374  func (c *ProjectsLocationsEndpointAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9375  	gensupport.SetOptions(c.urlParams_, opts...)
  9376  	res, err := c.doRequest("json")
  9377  	if res != nil && res.StatusCode == http.StatusNotModified {
  9378  		if res.Body != nil {
  9379  			res.Body.Close()
  9380  		}
  9381  		return nil, gensupport.WrapError(&googleapi.Error{
  9382  			Code:   res.StatusCode,
  9383  			Header: res.Header,
  9384  		})
  9385  	}
  9386  	if err != nil {
  9387  		return nil, err
  9388  	}
  9389  	defer googleapi.CloseBody(res)
  9390  	if err := googleapi.CheckResponse(res); err != nil {
  9391  		return nil, gensupport.WrapError(err)
  9392  	}
  9393  	ret := &Operation{
  9394  		ServerResponse: googleapi.ServerResponse{
  9395  			Header:         res.Header,
  9396  			HTTPStatusCode: res.StatusCode,
  9397  		},
  9398  	}
  9399  	target := &ret
  9400  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9401  		return nil, err
  9402  	}
  9403  	return ret, nil
  9404  }
  9405  
  9406  type ProjectsLocationsEndpointAttachmentsGetCall struct {
  9407  	s            *Service
  9408  	name         string
  9409  	urlParams_   gensupport.URLParams
  9410  	ifNoneMatch_ string
  9411  	ctx_         context.Context
  9412  	header_      http.Header
  9413  }
  9414  
  9415  // Get: Gets details of a single EndpointAttachment.
  9416  //
  9417  //   - name: Resource name of the form:
  9418  //     `projects/*/locations/*/endpointAttachments/*`.
  9419  func (r *ProjectsLocationsEndpointAttachmentsService) Get(name string) *ProjectsLocationsEndpointAttachmentsGetCall {
  9420  	c := &ProjectsLocationsEndpointAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9421  	c.name = name
  9422  	return c
  9423  }
  9424  
  9425  // Fields allows partial responses to be retrieved. See
  9426  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9427  // details.
  9428  func (c *ProjectsLocationsEndpointAttachmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointAttachmentsGetCall {
  9429  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9430  	return c
  9431  }
  9432  
  9433  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9434  // object's ETag matches the given value. This is useful for getting updates
  9435  // only after the object has changed since the last request.
  9436  func (c *ProjectsLocationsEndpointAttachmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointAttachmentsGetCall {
  9437  	c.ifNoneMatch_ = entityTag
  9438  	return c
  9439  }
  9440  
  9441  // Context sets the context to be used in this call's Do method.
  9442  func (c *ProjectsLocationsEndpointAttachmentsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointAttachmentsGetCall {
  9443  	c.ctx_ = ctx
  9444  	return c
  9445  }
  9446  
  9447  // Header returns a http.Header that can be modified by the caller to add
  9448  // headers to the request.
  9449  func (c *ProjectsLocationsEndpointAttachmentsGetCall) Header() http.Header {
  9450  	if c.header_ == nil {
  9451  		c.header_ = make(http.Header)
  9452  	}
  9453  	return c.header_
  9454  }
  9455  
  9456  func (c *ProjectsLocationsEndpointAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
  9457  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9458  	if c.ifNoneMatch_ != "" {
  9459  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9460  	}
  9461  	var body io.Reader = nil
  9462  	c.urlParams_.Set("alt", alt)
  9463  	c.urlParams_.Set("prettyPrint", "false")
  9464  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9465  	urls += "?" + c.urlParams_.Encode()
  9466  	req, err := http.NewRequest("GET", urls, body)
  9467  	if err != nil {
  9468  		return nil, err
  9469  	}
  9470  	req.Header = reqHeaders
  9471  	googleapi.Expand(req.URL, map[string]string{
  9472  		"name": c.name,
  9473  	})
  9474  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9475  }
  9476  
  9477  // Do executes the "connectors.projects.locations.endpointAttachments.get" call.
  9478  // Any non-2xx status code is an error. Response headers are in either
  9479  // *EndpointAttachment.ServerResponse.Header or (if a response was returned at
  9480  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9481  // check whether the returned error was because http.StatusNotModified was
  9482  // returned.
  9483  func (c *ProjectsLocationsEndpointAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*EndpointAttachment, error) {
  9484  	gensupport.SetOptions(c.urlParams_, opts...)
  9485  	res, err := c.doRequest("json")
  9486  	if res != nil && res.StatusCode == http.StatusNotModified {
  9487  		if res.Body != nil {
  9488  			res.Body.Close()
  9489  		}
  9490  		return nil, gensupport.WrapError(&googleapi.Error{
  9491  			Code:   res.StatusCode,
  9492  			Header: res.Header,
  9493  		})
  9494  	}
  9495  	if err != nil {
  9496  		return nil, err
  9497  	}
  9498  	defer googleapi.CloseBody(res)
  9499  	if err := googleapi.CheckResponse(res); err != nil {
  9500  		return nil, gensupport.WrapError(err)
  9501  	}
  9502  	ret := &EndpointAttachment{
  9503  		ServerResponse: googleapi.ServerResponse{
  9504  			Header:         res.Header,
  9505  			HTTPStatusCode: res.StatusCode,
  9506  		},
  9507  	}
  9508  	target := &ret
  9509  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9510  		return nil, err
  9511  	}
  9512  	return ret, nil
  9513  }
  9514  
  9515  type ProjectsLocationsEndpointAttachmentsListCall struct {
  9516  	s            *Service
  9517  	parent       string
  9518  	urlParams_   gensupport.URLParams
  9519  	ifNoneMatch_ string
  9520  	ctx_         context.Context
  9521  	header_      http.Header
  9522  }
  9523  
  9524  // List: List EndpointAttachments in a given project
  9525  //
  9526  //   - parent: Parent resource od the EndpointAttachment, of the form:
  9527  //     `projects/*/locations/*`.
  9528  func (r *ProjectsLocationsEndpointAttachmentsService) List(parent string) *ProjectsLocationsEndpointAttachmentsListCall {
  9529  	c := &ProjectsLocationsEndpointAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9530  	c.parent = parent
  9531  	return c
  9532  }
  9533  
  9534  // Filter sets the optional parameter "filter": Filter.
  9535  func (c *ProjectsLocationsEndpointAttachmentsListCall) Filter(filter string) *ProjectsLocationsEndpointAttachmentsListCall {
  9536  	c.urlParams_.Set("filter", filter)
  9537  	return c
  9538  }
  9539  
  9540  // OrderBy sets the optional parameter "orderBy": Order by parameters.
  9541  func (c *ProjectsLocationsEndpointAttachmentsListCall) OrderBy(orderBy string) *ProjectsLocationsEndpointAttachmentsListCall {
  9542  	c.urlParams_.Set("orderBy", orderBy)
  9543  	return c
  9544  }
  9545  
  9546  // PageSize sets the optional parameter "pageSize": Page size.
  9547  func (c *ProjectsLocationsEndpointAttachmentsListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointAttachmentsListCall {
  9548  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9549  	return c
  9550  }
  9551  
  9552  // PageToken sets the optional parameter "pageToken": Page token.
  9553  func (c *ProjectsLocationsEndpointAttachmentsListCall) PageToken(pageToken string) *ProjectsLocationsEndpointAttachmentsListCall {
  9554  	c.urlParams_.Set("pageToken", pageToken)
  9555  	return c
  9556  }
  9557  
  9558  // Fields allows partial responses to be retrieved. See
  9559  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9560  // details.
  9561  func (c *ProjectsLocationsEndpointAttachmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointAttachmentsListCall {
  9562  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9563  	return c
  9564  }
  9565  
  9566  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9567  // object's ETag matches the given value. This is useful for getting updates
  9568  // only after the object has changed since the last request.
  9569  func (c *ProjectsLocationsEndpointAttachmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointAttachmentsListCall {
  9570  	c.ifNoneMatch_ = entityTag
  9571  	return c
  9572  }
  9573  
  9574  // Context sets the context to be used in this call's Do method.
  9575  func (c *ProjectsLocationsEndpointAttachmentsListCall) Context(ctx context.Context) *ProjectsLocationsEndpointAttachmentsListCall {
  9576  	c.ctx_ = ctx
  9577  	return c
  9578  }
  9579  
  9580  // Header returns a http.Header that can be modified by the caller to add
  9581  // headers to the request.
  9582  func (c *ProjectsLocationsEndpointAttachmentsListCall) Header() http.Header {
  9583  	if c.header_ == nil {
  9584  		c.header_ = make(http.Header)
  9585  	}
  9586  	return c.header_
  9587  }
  9588  
  9589  func (c *ProjectsLocationsEndpointAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
  9590  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9591  	if c.ifNoneMatch_ != "" {
  9592  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9593  	}
  9594  	var body io.Reader = nil
  9595  	c.urlParams_.Set("alt", alt)
  9596  	c.urlParams_.Set("prettyPrint", "false")
  9597  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/endpointAttachments")
  9598  	urls += "?" + c.urlParams_.Encode()
  9599  	req, err := http.NewRequest("GET", urls, body)
  9600  	if err != nil {
  9601  		return nil, err
  9602  	}
  9603  	req.Header = reqHeaders
  9604  	googleapi.Expand(req.URL, map[string]string{
  9605  		"parent": c.parent,
  9606  	})
  9607  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9608  }
  9609  
  9610  // Do executes the "connectors.projects.locations.endpointAttachments.list" call.
  9611  // Any non-2xx status code is an error. Response headers are in either
  9612  // *ListEndpointAttachmentsResponse.ServerResponse.Header or (if a response was
  9613  // returned at all) in error.(*googleapi.Error).Header. Use
  9614  // googleapi.IsNotModified to check whether the returned error was because
  9615  // http.StatusNotModified was returned.
  9616  func (c *ProjectsLocationsEndpointAttachmentsListCall) Do(opts ...googleapi.CallOption) (*ListEndpointAttachmentsResponse, error) {
  9617  	gensupport.SetOptions(c.urlParams_, opts...)
  9618  	res, err := c.doRequest("json")
  9619  	if res != nil && res.StatusCode == http.StatusNotModified {
  9620  		if res.Body != nil {
  9621  			res.Body.Close()
  9622  		}
  9623  		return nil, gensupport.WrapError(&googleapi.Error{
  9624  			Code:   res.StatusCode,
  9625  			Header: res.Header,
  9626  		})
  9627  	}
  9628  	if err != nil {
  9629  		return nil, err
  9630  	}
  9631  	defer googleapi.CloseBody(res)
  9632  	if err := googleapi.CheckResponse(res); err != nil {
  9633  		return nil, gensupport.WrapError(err)
  9634  	}
  9635  	ret := &ListEndpointAttachmentsResponse{
  9636  		ServerResponse: googleapi.ServerResponse{
  9637  			Header:         res.Header,
  9638  			HTTPStatusCode: res.StatusCode,
  9639  		},
  9640  	}
  9641  	target := &ret
  9642  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9643  		return nil, err
  9644  	}
  9645  	return ret, nil
  9646  }
  9647  
  9648  // Pages invokes f for each page of results.
  9649  // A non-nil error returned from f will halt the iteration.
  9650  // The provided context supersedes any context provided to the Context method.
  9651  func (c *ProjectsLocationsEndpointAttachmentsListCall) Pages(ctx context.Context, f func(*ListEndpointAttachmentsResponse) error) error {
  9652  	c.ctx_ = ctx
  9653  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9654  	for {
  9655  		x, err := c.Do()
  9656  		if err != nil {
  9657  			return err
  9658  		}
  9659  		if err := f(x); err != nil {
  9660  			return err
  9661  		}
  9662  		if x.NextPageToken == "" {
  9663  			return nil
  9664  		}
  9665  		c.PageToken(x.NextPageToken)
  9666  	}
  9667  }
  9668  
  9669  type ProjectsLocationsEndpointAttachmentsPatchCall struct {
  9670  	s                  *Service
  9671  	name               string
  9672  	endpointattachment *EndpointAttachment
  9673  	urlParams_         gensupport.URLParams
  9674  	ctx_               context.Context
  9675  	header_            http.Header
  9676  }
  9677  
  9678  // Patch: Updates the parameters of a single EndpointAttachment.
  9679  //
  9680  //   - name: Output only. Resource name of the Endpoint Attachment. Format:
  9681  //     projects/{project}/locations/{location}/endpointAttachments/{endpoint_attac
  9682  //     hment}.
  9683  func (r *ProjectsLocationsEndpointAttachmentsService) Patch(name string, endpointattachment *EndpointAttachment) *ProjectsLocationsEndpointAttachmentsPatchCall {
  9684  	c := &ProjectsLocationsEndpointAttachmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9685  	c.name = name
  9686  	c.endpointattachment = endpointattachment
  9687  	return c
  9688  }
  9689  
  9690  // UpdateMask sets the optional parameter "updateMask": Required. The list of
  9691  // fields to update. Fields are specified relative to the endpointAttachment. A
  9692  // field will be overwritten if it is in the mask. You can modify only the
  9693  // fields listed below. To update the endpointAttachment details: *
  9694  // `description` * `labels`
  9695  func (c *ProjectsLocationsEndpointAttachmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEndpointAttachmentsPatchCall {
  9696  	c.urlParams_.Set("updateMask", updateMask)
  9697  	return c
  9698  }
  9699  
  9700  // Fields allows partial responses to be retrieved. See
  9701  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9702  // details.
  9703  func (c *ProjectsLocationsEndpointAttachmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointAttachmentsPatchCall {
  9704  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9705  	return c
  9706  }
  9707  
  9708  // Context sets the context to be used in this call's Do method.
  9709  func (c *ProjectsLocationsEndpointAttachmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsEndpointAttachmentsPatchCall {
  9710  	c.ctx_ = ctx
  9711  	return c
  9712  }
  9713  
  9714  // Header returns a http.Header that can be modified by the caller to add
  9715  // headers to the request.
  9716  func (c *ProjectsLocationsEndpointAttachmentsPatchCall) Header() http.Header {
  9717  	if c.header_ == nil {
  9718  		c.header_ = make(http.Header)
  9719  	}
  9720  	return c.header_
  9721  }
  9722  
  9723  func (c *ProjectsLocationsEndpointAttachmentsPatchCall) doRequest(alt string) (*http.Response, error) {
  9724  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9725  	var body io.Reader = nil
  9726  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.endpointattachment)
  9727  	if err != nil {
  9728  		return nil, err
  9729  	}
  9730  	c.urlParams_.Set("alt", alt)
  9731  	c.urlParams_.Set("prettyPrint", "false")
  9732  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9733  	urls += "?" + c.urlParams_.Encode()
  9734  	req, err := http.NewRequest("PATCH", urls, body)
  9735  	if err != nil {
  9736  		return nil, err
  9737  	}
  9738  	req.Header = reqHeaders
  9739  	googleapi.Expand(req.URL, map[string]string{
  9740  		"name": c.name,
  9741  	})
  9742  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9743  }
  9744  
  9745  // Do executes the "connectors.projects.locations.endpointAttachments.patch" call.
  9746  // Any non-2xx status code is an error. Response headers are in either
  9747  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9748  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9749  // whether the returned error was because http.StatusNotModified was returned.
  9750  func (c *ProjectsLocationsEndpointAttachmentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9751  	gensupport.SetOptions(c.urlParams_, opts...)
  9752  	res, err := c.doRequest("json")
  9753  	if res != nil && res.StatusCode == http.StatusNotModified {
  9754  		if res.Body != nil {
  9755  			res.Body.Close()
  9756  		}
  9757  		return nil, gensupport.WrapError(&googleapi.Error{
  9758  			Code:   res.StatusCode,
  9759  			Header: res.Header,
  9760  		})
  9761  	}
  9762  	if err != nil {
  9763  		return nil, err
  9764  	}
  9765  	defer googleapi.CloseBody(res)
  9766  	if err := googleapi.CheckResponse(res); err != nil {
  9767  		return nil, gensupport.WrapError(err)
  9768  	}
  9769  	ret := &Operation{
  9770  		ServerResponse: googleapi.ServerResponse{
  9771  			Header:         res.Header,
  9772  			HTTPStatusCode: res.StatusCode,
  9773  		},
  9774  	}
  9775  	target := &ret
  9776  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9777  		return nil, err
  9778  	}
  9779  	return ret, nil
  9780  }
  9781  
  9782  type ProjectsLocationsGlobalGetSettingsCall struct {
  9783  	s            *Service
  9784  	name         string
  9785  	urlParams_   gensupport.URLParams
  9786  	ifNoneMatch_ string
  9787  	ctx_         context.Context
  9788  	header_      http.Header
  9789  }
  9790  
  9791  // GetSettings: GetGlobalSettings gets settings of a project. GlobalSettings is
  9792  // a singleton resource.
  9793  //
  9794  // - name: The resource name of the Settings.
  9795  func (r *ProjectsLocationsGlobalService) GetSettings(name string) *ProjectsLocationsGlobalGetSettingsCall {
  9796  	c := &ProjectsLocationsGlobalGetSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9797  	c.name = name
  9798  	return c
  9799  }
  9800  
  9801  // Fields allows partial responses to be retrieved. See
  9802  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9803  // details.
  9804  func (c *ProjectsLocationsGlobalGetSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalGetSettingsCall {
  9805  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9806  	return c
  9807  }
  9808  
  9809  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9810  // object's ETag matches the given value. This is useful for getting updates
  9811  // only after the object has changed since the last request.
  9812  func (c *ProjectsLocationsGlobalGetSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalGetSettingsCall {
  9813  	c.ifNoneMatch_ = entityTag
  9814  	return c
  9815  }
  9816  
  9817  // Context sets the context to be used in this call's Do method.
  9818  func (c *ProjectsLocationsGlobalGetSettingsCall) Context(ctx context.Context) *ProjectsLocationsGlobalGetSettingsCall {
  9819  	c.ctx_ = ctx
  9820  	return c
  9821  }
  9822  
  9823  // Header returns a http.Header that can be modified by the caller to add
  9824  // headers to the request.
  9825  func (c *ProjectsLocationsGlobalGetSettingsCall) Header() http.Header {
  9826  	if c.header_ == nil {
  9827  		c.header_ = make(http.Header)
  9828  	}
  9829  	return c.header_
  9830  }
  9831  
  9832  func (c *ProjectsLocationsGlobalGetSettingsCall) doRequest(alt string) (*http.Response, error) {
  9833  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9834  	if c.ifNoneMatch_ != "" {
  9835  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9836  	}
  9837  	var body io.Reader = nil
  9838  	c.urlParams_.Set("alt", alt)
  9839  	c.urlParams_.Set("prettyPrint", "false")
  9840  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9841  	urls += "?" + c.urlParams_.Encode()
  9842  	req, err := http.NewRequest("GET", urls, body)
  9843  	if err != nil {
  9844  		return nil, err
  9845  	}
  9846  	req.Header = reqHeaders
  9847  	googleapi.Expand(req.URL, map[string]string{
  9848  		"name": c.name,
  9849  	})
  9850  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9851  }
  9852  
  9853  // Do executes the "connectors.projects.locations.global.getSettings" call.
  9854  // Any non-2xx status code is an error. Response headers are in either
  9855  // *Settings.ServerResponse.Header or (if a response was returned at all) in
  9856  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9857  // whether the returned error was because http.StatusNotModified was returned.
  9858  func (c *ProjectsLocationsGlobalGetSettingsCall) Do(opts ...googleapi.CallOption) (*Settings, error) {
  9859  	gensupport.SetOptions(c.urlParams_, opts...)
  9860  	res, err := c.doRequest("json")
  9861  	if res != nil && res.StatusCode == http.StatusNotModified {
  9862  		if res.Body != nil {
  9863  			res.Body.Close()
  9864  		}
  9865  		return nil, gensupport.WrapError(&googleapi.Error{
  9866  			Code:   res.StatusCode,
  9867  			Header: res.Header,
  9868  		})
  9869  	}
  9870  	if err != nil {
  9871  		return nil, err
  9872  	}
  9873  	defer googleapi.CloseBody(res)
  9874  	if err := googleapi.CheckResponse(res); err != nil {
  9875  		return nil, gensupport.WrapError(err)
  9876  	}
  9877  	ret := &Settings{
  9878  		ServerResponse: googleapi.ServerResponse{
  9879  			Header:         res.Header,
  9880  			HTTPStatusCode: res.StatusCode,
  9881  		},
  9882  	}
  9883  	target := &ret
  9884  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9885  		return nil, err
  9886  	}
  9887  	return ret, nil
  9888  }
  9889  
  9890  type ProjectsLocationsGlobalUpdateSettingsCall struct {
  9891  	s          *Service
  9892  	name       string
  9893  	settings   *Settings
  9894  	urlParams_ gensupport.URLParams
  9895  	ctx_       context.Context
  9896  	header_    http.Header
  9897  }
  9898  
  9899  // UpdateSettings: Update the global settings of a project.
  9900  //
  9901  //   - name: Output only. Resource name of the Connection. Format:
  9902  //     projects/{project}/locations/global/settings}.
  9903  func (r *ProjectsLocationsGlobalService) UpdateSettings(name string, settings *Settings) *ProjectsLocationsGlobalUpdateSettingsCall {
  9904  	c := &ProjectsLocationsGlobalUpdateSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9905  	c.name = name
  9906  	c.settings = settings
  9907  	return c
  9908  }
  9909  
  9910  // UpdateMask sets the optional parameter "updateMask": Required. The list of
  9911  // fields to update.
  9912  func (c *ProjectsLocationsGlobalUpdateSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalUpdateSettingsCall {
  9913  	c.urlParams_.Set("updateMask", updateMask)
  9914  	return c
  9915  }
  9916  
  9917  // Fields allows partial responses to be retrieved. See
  9918  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9919  // details.
  9920  func (c *ProjectsLocationsGlobalUpdateSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalUpdateSettingsCall {
  9921  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9922  	return c
  9923  }
  9924  
  9925  // Context sets the context to be used in this call's Do method.
  9926  func (c *ProjectsLocationsGlobalUpdateSettingsCall) Context(ctx context.Context) *ProjectsLocationsGlobalUpdateSettingsCall {
  9927  	c.ctx_ = ctx
  9928  	return c
  9929  }
  9930  
  9931  // Header returns a http.Header that can be modified by the caller to add
  9932  // headers to the request.
  9933  func (c *ProjectsLocationsGlobalUpdateSettingsCall) Header() http.Header {
  9934  	if c.header_ == nil {
  9935  		c.header_ = make(http.Header)
  9936  	}
  9937  	return c.header_
  9938  }
  9939  
  9940  func (c *ProjectsLocationsGlobalUpdateSettingsCall) doRequest(alt string) (*http.Response, error) {
  9941  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9942  	var body io.Reader = nil
  9943  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.settings)
  9944  	if err != nil {
  9945  		return nil, err
  9946  	}
  9947  	c.urlParams_.Set("alt", alt)
  9948  	c.urlParams_.Set("prettyPrint", "false")
  9949  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9950  	urls += "?" + c.urlParams_.Encode()
  9951  	req, err := http.NewRequest("PATCH", urls, body)
  9952  	if err != nil {
  9953  		return nil, err
  9954  	}
  9955  	req.Header = reqHeaders
  9956  	googleapi.Expand(req.URL, map[string]string{
  9957  		"name": c.name,
  9958  	})
  9959  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9960  }
  9961  
  9962  // Do executes the "connectors.projects.locations.global.updateSettings" call.
  9963  // Any non-2xx status code is an error. Response headers are in either
  9964  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9965  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9966  // whether the returned error was because http.StatusNotModified was returned.
  9967  func (c *ProjectsLocationsGlobalUpdateSettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9968  	gensupport.SetOptions(c.urlParams_, opts...)
  9969  	res, err := c.doRequest("json")
  9970  	if res != nil && res.StatusCode == http.StatusNotModified {
  9971  		if res.Body != nil {
  9972  			res.Body.Close()
  9973  		}
  9974  		return nil, gensupport.WrapError(&googleapi.Error{
  9975  			Code:   res.StatusCode,
  9976  			Header: res.Header,
  9977  		})
  9978  	}
  9979  	if err != nil {
  9980  		return nil, err
  9981  	}
  9982  	defer googleapi.CloseBody(res)
  9983  	if err := googleapi.CheckResponse(res); err != nil {
  9984  		return nil, gensupport.WrapError(err)
  9985  	}
  9986  	ret := &Operation{
  9987  		ServerResponse: googleapi.ServerResponse{
  9988  			Header:         res.Header,
  9989  			HTTPStatusCode: res.StatusCode,
  9990  		},
  9991  	}
  9992  	target := &ret
  9993  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9994  		return nil, err
  9995  	}
  9996  	return ret, nil
  9997  }
  9998  
  9999  type ProjectsLocationsGlobalCustomConnectorsCreateCall struct {
 10000  	s               *Service
 10001  	parent          string
 10002  	customconnector *CustomConnector
 10003  	urlParams_      gensupport.URLParams
 10004  	ctx_            context.Context
 10005  	header_         http.Header
 10006  }
 10007  
 10008  // Create: Creates a new CustomConnector in a given project and location.
 10009  //
 10010  //   - parent: Parent resource of the CreateCustomConnector, of the form:
 10011  //     `projects/{project}/locations/*`.
 10012  func (r *ProjectsLocationsGlobalCustomConnectorsService) Create(parent string, customconnector *CustomConnector) *ProjectsLocationsGlobalCustomConnectorsCreateCall {
 10013  	c := &ProjectsLocationsGlobalCustomConnectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10014  	c.parent = parent
 10015  	c.customconnector = customconnector
 10016  	return c
 10017  }
 10018  
 10019  // CustomConnectorId sets the optional parameter "customConnectorId": Required.
 10020  // Identifier to assign to the CreateCustomConnector. Must be unique within
 10021  // scope of the parent resource.
 10022  func (c *ProjectsLocationsGlobalCustomConnectorsCreateCall) CustomConnectorId(customConnectorId string) *ProjectsLocationsGlobalCustomConnectorsCreateCall {
 10023  	c.urlParams_.Set("customConnectorId", customConnectorId)
 10024  	return c
 10025  }
 10026  
 10027  // Fields allows partial responses to be retrieved. See
 10028  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10029  // details.
 10030  func (c *ProjectsLocationsGlobalCustomConnectorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalCustomConnectorsCreateCall {
 10031  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10032  	return c
 10033  }
 10034  
 10035  // Context sets the context to be used in this call's Do method.
 10036  func (c *ProjectsLocationsGlobalCustomConnectorsCreateCall) Context(ctx context.Context) *ProjectsLocationsGlobalCustomConnectorsCreateCall {
 10037  	c.ctx_ = ctx
 10038  	return c
 10039  }
 10040  
 10041  // Header returns a http.Header that can be modified by the caller to add
 10042  // headers to the request.
 10043  func (c *ProjectsLocationsGlobalCustomConnectorsCreateCall) Header() http.Header {
 10044  	if c.header_ == nil {
 10045  		c.header_ = make(http.Header)
 10046  	}
 10047  	return c.header_
 10048  }
 10049  
 10050  func (c *ProjectsLocationsGlobalCustomConnectorsCreateCall) doRequest(alt string) (*http.Response, error) {
 10051  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10052  	var body io.Reader = nil
 10053  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.customconnector)
 10054  	if err != nil {
 10055  		return nil, err
 10056  	}
 10057  	c.urlParams_.Set("alt", alt)
 10058  	c.urlParams_.Set("prettyPrint", "false")
 10059  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/customConnectors")
 10060  	urls += "?" + c.urlParams_.Encode()
 10061  	req, err := http.NewRequest("POST", urls, body)
 10062  	if err != nil {
 10063  		return nil, err
 10064  	}
 10065  	req.Header = reqHeaders
 10066  	googleapi.Expand(req.URL, map[string]string{
 10067  		"parent": c.parent,
 10068  	})
 10069  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10070  }
 10071  
 10072  // Do executes the "connectors.projects.locations.global.customConnectors.create" call.
 10073  // Any non-2xx status code is an error. Response headers are in either
 10074  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10075  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10076  // whether the returned error was because http.StatusNotModified was returned.
 10077  func (c *ProjectsLocationsGlobalCustomConnectorsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10078  	gensupport.SetOptions(c.urlParams_, opts...)
 10079  	res, err := c.doRequest("json")
 10080  	if res != nil && res.StatusCode == http.StatusNotModified {
 10081  		if res.Body != nil {
 10082  			res.Body.Close()
 10083  		}
 10084  		return nil, gensupport.WrapError(&googleapi.Error{
 10085  			Code:   res.StatusCode,
 10086  			Header: res.Header,
 10087  		})
 10088  	}
 10089  	if err != nil {
 10090  		return nil, err
 10091  	}
 10092  	defer googleapi.CloseBody(res)
 10093  	if err := googleapi.CheckResponse(res); err != nil {
 10094  		return nil, gensupport.WrapError(err)
 10095  	}
 10096  	ret := &Operation{
 10097  		ServerResponse: googleapi.ServerResponse{
 10098  			Header:         res.Header,
 10099  			HTTPStatusCode: res.StatusCode,
 10100  		},
 10101  	}
 10102  	target := &ret
 10103  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10104  		return nil, err
 10105  	}
 10106  	return ret, nil
 10107  }
 10108  
 10109  type ProjectsLocationsGlobalCustomConnectorsDeleteCall struct {
 10110  	s          *Service
 10111  	name       string
 10112  	urlParams_ gensupport.URLParams
 10113  	ctx_       context.Context
 10114  	header_    http.Header
 10115  }
 10116  
 10117  // Delete: Deletes a single CustomConnector.
 10118  //
 10119  //   - name: Resource name of the form:
 10120  //     `projects/{project}/locations/{location}/customConnectors/{connector}`.
 10121  func (r *ProjectsLocationsGlobalCustomConnectorsService) Delete(name string) *ProjectsLocationsGlobalCustomConnectorsDeleteCall {
 10122  	c := &ProjectsLocationsGlobalCustomConnectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10123  	c.name = name
 10124  	return c
 10125  }
 10126  
 10127  // Force sets the optional parameter "force": If set to true, any
 10128  // customConnectorVersion which is a child resource will also be deleted.
 10129  // https://aip.dev/135#cascading-delete
 10130  func (c *ProjectsLocationsGlobalCustomConnectorsDeleteCall) Force(force bool) *ProjectsLocationsGlobalCustomConnectorsDeleteCall {
 10131  	c.urlParams_.Set("force", fmt.Sprint(force))
 10132  	return c
 10133  }
 10134  
 10135  // Fields allows partial responses to be retrieved. See
 10136  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10137  // details.
 10138  func (c *ProjectsLocationsGlobalCustomConnectorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalCustomConnectorsDeleteCall {
 10139  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10140  	return c
 10141  }
 10142  
 10143  // Context sets the context to be used in this call's Do method.
 10144  func (c *ProjectsLocationsGlobalCustomConnectorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalCustomConnectorsDeleteCall {
 10145  	c.ctx_ = ctx
 10146  	return c
 10147  }
 10148  
 10149  // Header returns a http.Header that can be modified by the caller to add
 10150  // headers to the request.
 10151  func (c *ProjectsLocationsGlobalCustomConnectorsDeleteCall) Header() http.Header {
 10152  	if c.header_ == nil {
 10153  		c.header_ = make(http.Header)
 10154  	}
 10155  	return c.header_
 10156  }
 10157  
 10158  func (c *ProjectsLocationsGlobalCustomConnectorsDeleteCall) doRequest(alt string) (*http.Response, error) {
 10159  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10160  	var body io.Reader = nil
 10161  	c.urlParams_.Set("alt", alt)
 10162  	c.urlParams_.Set("prettyPrint", "false")
 10163  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10164  	urls += "?" + c.urlParams_.Encode()
 10165  	req, err := http.NewRequest("DELETE", urls, body)
 10166  	if err != nil {
 10167  		return nil, err
 10168  	}
 10169  	req.Header = reqHeaders
 10170  	googleapi.Expand(req.URL, map[string]string{
 10171  		"name": c.name,
 10172  	})
 10173  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10174  }
 10175  
 10176  // Do executes the "connectors.projects.locations.global.customConnectors.delete" call.
 10177  // Any non-2xx status code is an error. Response headers are in either
 10178  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10179  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10180  // whether the returned error was because http.StatusNotModified was returned.
 10181  func (c *ProjectsLocationsGlobalCustomConnectorsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10182  	gensupport.SetOptions(c.urlParams_, opts...)
 10183  	res, err := c.doRequest("json")
 10184  	if res != nil && res.StatusCode == http.StatusNotModified {
 10185  		if res.Body != nil {
 10186  			res.Body.Close()
 10187  		}
 10188  		return nil, gensupport.WrapError(&googleapi.Error{
 10189  			Code:   res.StatusCode,
 10190  			Header: res.Header,
 10191  		})
 10192  	}
 10193  	if err != nil {
 10194  		return nil, err
 10195  	}
 10196  	defer googleapi.CloseBody(res)
 10197  	if err := googleapi.CheckResponse(res); err != nil {
 10198  		return nil, gensupport.WrapError(err)
 10199  	}
 10200  	ret := &Operation{
 10201  		ServerResponse: googleapi.ServerResponse{
 10202  			Header:         res.Header,
 10203  			HTTPStatusCode: res.StatusCode,
 10204  		},
 10205  	}
 10206  	target := &ret
 10207  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10208  		return nil, err
 10209  	}
 10210  	return ret, nil
 10211  }
 10212  
 10213  type ProjectsLocationsGlobalCustomConnectorsGetCall struct {
 10214  	s            *Service
 10215  	name         string
 10216  	urlParams_   gensupport.URLParams
 10217  	ifNoneMatch_ string
 10218  	ctx_         context.Context
 10219  	header_      http.Header
 10220  }
 10221  
 10222  // Get: Gets details of a single CustomConnector.
 10223  //
 10224  //   - name: Resource name of the form:
 10225  //     `projects/*/locations/*/customConnectors/*`.
 10226  func (r *ProjectsLocationsGlobalCustomConnectorsService) Get(name string) *ProjectsLocationsGlobalCustomConnectorsGetCall {
 10227  	c := &ProjectsLocationsGlobalCustomConnectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10228  	c.name = name
 10229  	return c
 10230  }
 10231  
 10232  // Fields allows partial responses to be retrieved. See
 10233  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10234  // details.
 10235  func (c *ProjectsLocationsGlobalCustomConnectorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalCustomConnectorsGetCall {
 10236  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10237  	return c
 10238  }
 10239  
 10240  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10241  // object's ETag matches the given value. This is useful for getting updates
 10242  // only after the object has changed since the last request.
 10243  func (c *ProjectsLocationsGlobalCustomConnectorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalCustomConnectorsGetCall {
 10244  	c.ifNoneMatch_ = entityTag
 10245  	return c
 10246  }
 10247  
 10248  // Context sets the context to be used in this call's Do method.
 10249  func (c *ProjectsLocationsGlobalCustomConnectorsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalCustomConnectorsGetCall {
 10250  	c.ctx_ = ctx
 10251  	return c
 10252  }
 10253  
 10254  // Header returns a http.Header that can be modified by the caller to add
 10255  // headers to the request.
 10256  func (c *ProjectsLocationsGlobalCustomConnectorsGetCall) Header() http.Header {
 10257  	if c.header_ == nil {
 10258  		c.header_ = make(http.Header)
 10259  	}
 10260  	return c.header_
 10261  }
 10262  
 10263  func (c *ProjectsLocationsGlobalCustomConnectorsGetCall) doRequest(alt string) (*http.Response, error) {
 10264  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10265  	if c.ifNoneMatch_ != "" {
 10266  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10267  	}
 10268  	var body io.Reader = nil
 10269  	c.urlParams_.Set("alt", alt)
 10270  	c.urlParams_.Set("prettyPrint", "false")
 10271  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10272  	urls += "?" + c.urlParams_.Encode()
 10273  	req, err := http.NewRequest("GET", urls, body)
 10274  	if err != nil {
 10275  		return nil, err
 10276  	}
 10277  	req.Header = reqHeaders
 10278  	googleapi.Expand(req.URL, map[string]string{
 10279  		"name": c.name,
 10280  	})
 10281  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10282  }
 10283  
 10284  // Do executes the "connectors.projects.locations.global.customConnectors.get" call.
 10285  // Any non-2xx status code is an error. Response headers are in either
 10286  // *CustomConnector.ServerResponse.Header or (if a response was returned at
 10287  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10288  // check whether the returned error was because http.StatusNotModified was
 10289  // returned.
 10290  func (c *ProjectsLocationsGlobalCustomConnectorsGetCall) Do(opts ...googleapi.CallOption) (*CustomConnector, error) {
 10291  	gensupport.SetOptions(c.urlParams_, opts...)
 10292  	res, err := c.doRequest("json")
 10293  	if res != nil && res.StatusCode == http.StatusNotModified {
 10294  		if res.Body != nil {
 10295  			res.Body.Close()
 10296  		}
 10297  		return nil, gensupport.WrapError(&googleapi.Error{
 10298  			Code:   res.StatusCode,
 10299  			Header: res.Header,
 10300  		})
 10301  	}
 10302  	if err != nil {
 10303  		return nil, err
 10304  	}
 10305  	defer googleapi.CloseBody(res)
 10306  	if err := googleapi.CheckResponse(res); err != nil {
 10307  		return nil, gensupport.WrapError(err)
 10308  	}
 10309  	ret := &CustomConnector{
 10310  		ServerResponse: googleapi.ServerResponse{
 10311  			Header:         res.Header,
 10312  			HTTPStatusCode: res.StatusCode,
 10313  		},
 10314  	}
 10315  	target := &ret
 10316  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10317  		return nil, err
 10318  	}
 10319  	return ret, nil
 10320  }
 10321  
 10322  type ProjectsLocationsGlobalCustomConnectorsListCall struct {
 10323  	s            *Service
 10324  	parent       string
 10325  	urlParams_   gensupport.URLParams
 10326  	ifNoneMatch_ string
 10327  	ctx_         context.Context
 10328  	header_      http.Header
 10329  }
 10330  
 10331  // List: List CustomConnectorVersions in a given project
 10332  //
 10333  //   - parent: Parent resource of the custom connectors, of the form:
 10334  //     `projects/*/locations/*` Only global location is supported for
 10335  //     CustomConnector resource.
 10336  func (r *ProjectsLocationsGlobalCustomConnectorsService) List(parent string) *ProjectsLocationsGlobalCustomConnectorsListCall {
 10337  	c := &ProjectsLocationsGlobalCustomConnectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10338  	c.parent = parent
 10339  	return c
 10340  }
 10341  
 10342  // Filter sets the optional parameter "filter": Filter string.
 10343  func (c *ProjectsLocationsGlobalCustomConnectorsListCall) Filter(filter string) *ProjectsLocationsGlobalCustomConnectorsListCall {
 10344  	c.urlParams_.Set("filter", filter)
 10345  	return c
 10346  }
 10347  
 10348  // PageSize sets the optional parameter "pageSize": Page size.
 10349  func (c *ProjectsLocationsGlobalCustomConnectorsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalCustomConnectorsListCall {
 10350  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10351  	return c
 10352  }
 10353  
 10354  // PageToken sets the optional parameter "pageToken": Page token.
 10355  func (c *ProjectsLocationsGlobalCustomConnectorsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalCustomConnectorsListCall {
 10356  	c.urlParams_.Set("pageToken", pageToken)
 10357  	return c
 10358  }
 10359  
 10360  // Fields allows partial responses to be retrieved. See
 10361  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10362  // details.
 10363  func (c *ProjectsLocationsGlobalCustomConnectorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalCustomConnectorsListCall {
 10364  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10365  	return c
 10366  }
 10367  
 10368  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10369  // object's ETag matches the given value. This is useful for getting updates
 10370  // only after the object has changed since the last request.
 10371  func (c *ProjectsLocationsGlobalCustomConnectorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalCustomConnectorsListCall {
 10372  	c.ifNoneMatch_ = entityTag
 10373  	return c
 10374  }
 10375  
 10376  // Context sets the context to be used in this call's Do method.
 10377  func (c *ProjectsLocationsGlobalCustomConnectorsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalCustomConnectorsListCall {
 10378  	c.ctx_ = ctx
 10379  	return c
 10380  }
 10381  
 10382  // Header returns a http.Header that can be modified by the caller to add
 10383  // headers to the request.
 10384  func (c *ProjectsLocationsGlobalCustomConnectorsListCall) Header() http.Header {
 10385  	if c.header_ == nil {
 10386  		c.header_ = make(http.Header)
 10387  	}
 10388  	return c.header_
 10389  }
 10390  
 10391  func (c *ProjectsLocationsGlobalCustomConnectorsListCall) doRequest(alt string) (*http.Response, error) {
 10392  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10393  	if c.ifNoneMatch_ != "" {
 10394  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10395  	}
 10396  	var body io.Reader = nil
 10397  	c.urlParams_.Set("alt", alt)
 10398  	c.urlParams_.Set("prettyPrint", "false")
 10399  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/customConnectors")
 10400  	urls += "?" + c.urlParams_.Encode()
 10401  	req, err := http.NewRequest("GET", urls, body)
 10402  	if err != nil {
 10403  		return nil, err
 10404  	}
 10405  	req.Header = reqHeaders
 10406  	googleapi.Expand(req.URL, map[string]string{
 10407  		"parent": c.parent,
 10408  	})
 10409  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10410  }
 10411  
 10412  // Do executes the "connectors.projects.locations.global.customConnectors.list" call.
 10413  // Any non-2xx status code is an error. Response headers are in either
 10414  // *ListCustomConnectorsResponse.ServerResponse.Header or (if a response was
 10415  // returned at all) in error.(*googleapi.Error).Header. Use
 10416  // googleapi.IsNotModified to check whether the returned error was because
 10417  // http.StatusNotModified was returned.
 10418  func (c *ProjectsLocationsGlobalCustomConnectorsListCall) Do(opts ...googleapi.CallOption) (*ListCustomConnectorsResponse, error) {
 10419  	gensupport.SetOptions(c.urlParams_, opts...)
 10420  	res, err := c.doRequest("json")
 10421  	if res != nil && res.StatusCode == http.StatusNotModified {
 10422  		if res.Body != nil {
 10423  			res.Body.Close()
 10424  		}
 10425  		return nil, gensupport.WrapError(&googleapi.Error{
 10426  			Code:   res.StatusCode,
 10427  			Header: res.Header,
 10428  		})
 10429  	}
 10430  	if err != nil {
 10431  		return nil, err
 10432  	}
 10433  	defer googleapi.CloseBody(res)
 10434  	if err := googleapi.CheckResponse(res); err != nil {
 10435  		return nil, gensupport.WrapError(err)
 10436  	}
 10437  	ret := &ListCustomConnectorsResponse{
 10438  		ServerResponse: googleapi.ServerResponse{
 10439  			Header:         res.Header,
 10440  			HTTPStatusCode: res.StatusCode,
 10441  		},
 10442  	}
 10443  	target := &ret
 10444  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10445  		return nil, err
 10446  	}
 10447  	return ret, nil
 10448  }
 10449  
 10450  // Pages invokes f for each page of results.
 10451  // A non-nil error returned from f will halt the iteration.
 10452  // The provided context supersedes any context provided to the Context method.
 10453  func (c *ProjectsLocationsGlobalCustomConnectorsListCall) Pages(ctx context.Context, f func(*ListCustomConnectorsResponse) error) error {
 10454  	c.ctx_ = ctx
 10455  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10456  	for {
 10457  		x, err := c.Do()
 10458  		if err != nil {
 10459  			return err
 10460  		}
 10461  		if err := f(x); err != nil {
 10462  			return err
 10463  		}
 10464  		if x.NextPageToken == "" {
 10465  			return nil
 10466  		}
 10467  		c.PageToken(x.NextPageToken)
 10468  	}
 10469  }
 10470  
 10471  type ProjectsLocationsGlobalCustomConnectorsPatchCall struct {
 10472  	s               *Service
 10473  	name            string
 10474  	customconnector *CustomConnector
 10475  	urlParams_      gensupport.URLParams
 10476  	ctx_            context.Context
 10477  	header_         http.Header
 10478  }
 10479  
 10480  // Patch: Updates the parameters of a CustomConnector.
 10481  //
 10482  //   - name: Identifier. Resource name of the CustomConnector. Format:
 10483  //     projects/{project}/locations/{location}/customConnectors/{connector}.
 10484  func (r *ProjectsLocationsGlobalCustomConnectorsService) Patch(name string, customconnector *CustomConnector) *ProjectsLocationsGlobalCustomConnectorsPatchCall {
 10485  	c := &ProjectsLocationsGlobalCustomConnectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10486  	c.name = name
 10487  	c.customconnector = customconnector
 10488  	return c
 10489  }
 10490  
 10491  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
 10492  // used to specify the fields to be overwritten in the Connector resource by
 10493  // the update. The fields specified in the update_mask are relative to the
 10494  // resource, not the full request. A field will be overwritten if it is in the
 10495  // mask. Set the mask as "*" for full replacement, which means all fields will
 10496  // be overwritten.
 10497  func (c *ProjectsLocationsGlobalCustomConnectorsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalCustomConnectorsPatchCall {
 10498  	c.urlParams_.Set("updateMask", updateMask)
 10499  	return c
 10500  }
 10501  
 10502  // Fields allows partial responses to be retrieved. See
 10503  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10504  // details.
 10505  func (c *ProjectsLocationsGlobalCustomConnectorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalCustomConnectorsPatchCall {
 10506  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10507  	return c
 10508  }
 10509  
 10510  // Context sets the context to be used in this call's Do method.
 10511  func (c *ProjectsLocationsGlobalCustomConnectorsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalCustomConnectorsPatchCall {
 10512  	c.ctx_ = ctx
 10513  	return c
 10514  }
 10515  
 10516  // Header returns a http.Header that can be modified by the caller to add
 10517  // headers to the request.
 10518  func (c *ProjectsLocationsGlobalCustomConnectorsPatchCall) Header() http.Header {
 10519  	if c.header_ == nil {
 10520  		c.header_ = make(http.Header)
 10521  	}
 10522  	return c.header_
 10523  }
 10524  
 10525  func (c *ProjectsLocationsGlobalCustomConnectorsPatchCall) doRequest(alt string) (*http.Response, error) {
 10526  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10527  	var body io.Reader = nil
 10528  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.customconnector)
 10529  	if err != nil {
 10530  		return nil, err
 10531  	}
 10532  	c.urlParams_.Set("alt", alt)
 10533  	c.urlParams_.Set("prettyPrint", "false")
 10534  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10535  	urls += "?" + c.urlParams_.Encode()
 10536  	req, err := http.NewRequest("PATCH", urls, body)
 10537  	if err != nil {
 10538  		return nil, err
 10539  	}
 10540  	req.Header = reqHeaders
 10541  	googleapi.Expand(req.URL, map[string]string{
 10542  		"name": c.name,
 10543  	})
 10544  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10545  }
 10546  
 10547  // Do executes the "connectors.projects.locations.global.customConnectors.patch" call.
 10548  // Any non-2xx status code is an error. Response headers are in either
 10549  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10550  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10551  // whether the returned error was because http.StatusNotModified was returned.
 10552  func (c *ProjectsLocationsGlobalCustomConnectorsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10553  	gensupport.SetOptions(c.urlParams_, opts...)
 10554  	res, err := c.doRequest("json")
 10555  	if res != nil && res.StatusCode == http.StatusNotModified {
 10556  		if res.Body != nil {
 10557  			res.Body.Close()
 10558  		}
 10559  		return nil, gensupport.WrapError(&googleapi.Error{
 10560  			Code:   res.StatusCode,
 10561  			Header: res.Header,
 10562  		})
 10563  	}
 10564  	if err != nil {
 10565  		return nil, err
 10566  	}
 10567  	defer googleapi.CloseBody(res)
 10568  	if err := googleapi.CheckResponse(res); err != nil {
 10569  		return nil, gensupport.WrapError(err)
 10570  	}
 10571  	ret := &Operation{
 10572  		ServerResponse: googleapi.ServerResponse{
 10573  			Header:         res.Header,
 10574  			HTTPStatusCode: res.StatusCode,
 10575  		},
 10576  	}
 10577  	target := &ret
 10578  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10579  		return nil, err
 10580  	}
 10581  	return ret, nil
 10582  }
 10583  
 10584  type ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall struct {
 10585  	s                      *Service
 10586  	parent                 string
 10587  	customconnectorversion *CustomConnectorVersion
 10588  	urlParams_             gensupport.URLParams
 10589  	ctx_                   context.Context
 10590  	header_                http.Header
 10591  }
 10592  
 10593  // Create: Creates a new CustomConnectorVersion in a given project and
 10594  // location.
 10595  //
 10596  //   - parent: Parent resource of the CreateCustomConnector, of the form:
 10597  //     `projects/{project}/locations/{location}/customConnectors/{custom_connector
 10598  //     }`.
 10599  func (r *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsService) Create(parent string, customconnectorversion *CustomConnectorVersion) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall {
 10600  	c := &ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10601  	c.parent = parent
 10602  	c.customconnectorversion = customconnectorversion
 10603  	return c
 10604  }
 10605  
 10606  // CustomConnectorVersionId sets the optional parameter
 10607  // "customConnectorVersionId": Required. Identifier to assign to the
 10608  // CreateCustomConnectorVersion. Must be unique within scope of the parent
 10609  // resource.
 10610  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall) CustomConnectorVersionId(customConnectorVersionId string) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall {
 10611  	c.urlParams_.Set("customConnectorVersionId", customConnectorVersionId)
 10612  	return c
 10613  }
 10614  
 10615  // Fields allows partial responses to be retrieved. See
 10616  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10617  // details.
 10618  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall {
 10619  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10620  	return c
 10621  }
 10622  
 10623  // Context sets the context to be used in this call's Do method.
 10624  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall {
 10625  	c.ctx_ = ctx
 10626  	return c
 10627  }
 10628  
 10629  // Header returns a http.Header that can be modified by the caller to add
 10630  // headers to the request.
 10631  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall) Header() http.Header {
 10632  	if c.header_ == nil {
 10633  		c.header_ = make(http.Header)
 10634  	}
 10635  	return c.header_
 10636  }
 10637  
 10638  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
 10639  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10640  	var body io.Reader = nil
 10641  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.customconnectorversion)
 10642  	if err != nil {
 10643  		return nil, err
 10644  	}
 10645  	c.urlParams_.Set("alt", alt)
 10646  	c.urlParams_.Set("prettyPrint", "false")
 10647  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/customConnectorVersions")
 10648  	urls += "?" + c.urlParams_.Encode()
 10649  	req, err := http.NewRequest("POST", urls, body)
 10650  	if err != nil {
 10651  		return nil, err
 10652  	}
 10653  	req.Header = reqHeaders
 10654  	googleapi.Expand(req.URL, map[string]string{
 10655  		"parent": c.parent,
 10656  	})
 10657  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10658  }
 10659  
 10660  // Do executes the "connectors.projects.locations.global.customConnectors.customConnectorVersions.create" call.
 10661  // Any non-2xx status code is an error. Response headers are in either
 10662  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10663  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10664  // whether the returned error was because http.StatusNotModified was returned.
 10665  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10666  	gensupport.SetOptions(c.urlParams_, opts...)
 10667  	res, err := c.doRequest("json")
 10668  	if res != nil && res.StatusCode == http.StatusNotModified {
 10669  		if res.Body != nil {
 10670  			res.Body.Close()
 10671  		}
 10672  		return nil, gensupport.WrapError(&googleapi.Error{
 10673  			Code:   res.StatusCode,
 10674  			Header: res.Header,
 10675  		})
 10676  	}
 10677  	if err != nil {
 10678  		return nil, err
 10679  	}
 10680  	defer googleapi.CloseBody(res)
 10681  	if err := googleapi.CheckResponse(res); err != nil {
 10682  		return nil, gensupport.WrapError(err)
 10683  	}
 10684  	ret := &Operation{
 10685  		ServerResponse: googleapi.ServerResponse{
 10686  			Header:         res.Header,
 10687  			HTTPStatusCode: res.StatusCode,
 10688  		},
 10689  	}
 10690  	target := &ret
 10691  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10692  		return nil, err
 10693  	}
 10694  	return ret, nil
 10695  }
 10696  
 10697  type ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall struct {
 10698  	s            *Service
 10699  	name         string
 10700  	urlParams_   gensupport.URLParams
 10701  	ifNoneMatch_ string
 10702  	ctx_         context.Context
 10703  	header_      http.Header
 10704  }
 10705  
 10706  // Get: Gets details of a single CustomConnectorVersion.
 10707  //
 10708  //   - name: Resource name of the form:
 10709  //     `projects/*/locations/{location}/customConnectors/*/customConnectorVersions
 10710  //     /*`.
 10711  func (r *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsService) Get(name string) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall {
 10712  	c := &ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10713  	c.name = name
 10714  	return c
 10715  }
 10716  
 10717  // Fields allows partial responses to be retrieved. See
 10718  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10719  // details.
 10720  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall {
 10721  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10722  	return c
 10723  }
 10724  
 10725  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10726  // object's ETag matches the given value. This is useful for getting updates
 10727  // only after the object has changed since the last request.
 10728  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall {
 10729  	c.ifNoneMatch_ = entityTag
 10730  	return c
 10731  }
 10732  
 10733  // Context sets the context to be used in this call's Do method.
 10734  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall {
 10735  	c.ctx_ = ctx
 10736  	return c
 10737  }
 10738  
 10739  // Header returns a http.Header that can be modified by the caller to add
 10740  // headers to the request.
 10741  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall) Header() http.Header {
 10742  	if c.header_ == nil {
 10743  		c.header_ = make(http.Header)
 10744  	}
 10745  	return c.header_
 10746  }
 10747  
 10748  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall) doRequest(alt string) (*http.Response, error) {
 10749  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10750  	if c.ifNoneMatch_ != "" {
 10751  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10752  	}
 10753  	var body io.Reader = nil
 10754  	c.urlParams_.Set("alt", alt)
 10755  	c.urlParams_.Set("prettyPrint", "false")
 10756  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10757  	urls += "?" + c.urlParams_.Encode()
 10758  	req, err := http.NewRequest("GET", urls, body)
 10759  	if err != nil {
 10760  		return nil, err
 10761  	}
 10762  	req.Header = reqHeaders
 10763  	googleapi.Expand(req.URL, map[string]string{
 10764  		"name": c.name,
 10765  	})
 10766  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10767  }
 10768  
 10769  // Do executes the "connectors.projects.locations.global.customConnectors.customConnectorVersions.get" call.
 10770  // Any non-2xx status code is an error. Response headers are in either
 10771  // *CustomConnectorVersion.ServerResponse.Header or (if a response was returned
 10772  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10773  // check whether the returned error was because http.StatusNotModified was
 10774  // returned.
 10775  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall) Do(opts ...googleapi.CallOption) (*CustomConnectorVersion, error) {
 10776  	gensupport.SetOptions(c.urlParams_, opts...)
 10777  	res, err := c.doRequest("json")
 10778  	if res != nil && res.StatusCode == http.StatusNotModified {
 10779  		if res.Body != nil {
 10780  			res.Body.Close()
 10781  		}
 10782  		return nil, gensupport.WrapError(&googleapi.Error{
 10783  			Code:   res.StatusCode,
 10784  			Header: res.Header,
 10785  		})
 10786  	}
 10787  	if err != nil {
 10788  		return nil, err
 10789  	}
 10790  	defer googleapi.CloseBody(res)
 10791  	if err := googleapi.CheckResponse(res); err != nil {
 10792  		return nil, gensupport.WrapError(err)
 10793  	}
 10794  	ret := &CustomConnectorVersion{
 10795  		ServerResponse: googleapi.ServerResponse{
 10796  			Header:         res.Header,
 10797  			HTTPStatusCode: res.StatusCode,
 10798  		},
 10799  	}
 10800  	target := &ret
 10801  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10802  		return nil, err
 10803  	}
 10804  	return ret, nil
 10805  }
 10806  
 10807  type ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall struct {
 10808  	s            *Service
 10809  	parent       string
 10810  	urlParams_   gensupport.URLParams
 10811  	ifNoneMatch_ string
 10812  	ctx_         context.Context
 10813  	header_      http.Header
 10814  }
 10815  
 10816  // List: List CustomConnectorVersions in a given project
 10817  //
 10818  //   - parent: Parent resource of the connectors, of the form:
 10819  //     `projects/*/locations/{location}/customConnectors/*/customConnectorVersions
 10820  //     /*`.
 10821  func (r *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsService) List(parent string) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall {
 10822  	c := &ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10823  	c.parent = parent
 10824  	return c
 10825  }
 10826  
 10827  // PageSize sets the optional parameter "pageSize": Page size.
 10828  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall {
 10829  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10830  	return c
 10831  }
 10832  
 10833  // PageToken sets the optional parameter "pageToken": Page token.
 10834  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall {
 10835  	c.urlParams_.Set("pageToken", pageToken)
 10836  	return c
 10837  }
 10838  
 10839  // Fields allows partial responses to be retrieved. See
 10840  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10841  // details.
 10842  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall {
 10843  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10844  	return c
 10845  }
 10846  
 10847  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10848  // object's ETag matches the given value. This is useful for getting updates
 10849  // only after the object has changed since the last request.
 10850  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall {
 10851  	c.ifNoneMatch_ = entityTag
 10852  	return c
 10853  }
 10854  
 10855  // Context sets the context to be used in this call's Do method.
 10856  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall {
 10857  	c.ctx_ = ctx
 10858  	return c
 10859  }
 10860  
 10861  // Header returns a http.Header that can be modified by the caller to add
 10862  // headers to the request.
 10863  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall) Header() http.Header {
 10864  	if c.header_ == nil {
 10865  		c.header_ = make(http.Header)
 10866  	}
 10867  	return c.header_
 10868  }
 10869  
 10870  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall) doRequest(alt string) (*http.Response, error) {
 10871  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10872  	if c.ifNoneMatch_ != "" {
 10873  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10874  	}
 10875  	var body io.Reader = nil
 10876  	c.urlParams_.Set("alt", alt)
 10877  	c.urlParams_.Set("prettyPrint", "false")
 10878  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/customConnectorVersions")
 10879  	urls += "?" + c.urlParams_.Encode()
 10880  	req, err := http.NewRequest("GET", urls, body)
 10881  	if err != nil {
 10882  		return nil, err
 10883  	}
 10884  	req.Header = reqHeaders
 10885  	googleapi.Expand(req.URL, map[string]string{
 10886  		"parent": c.parent,
 10887  	})
 10888  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10889  }
 10890  
 10891  // Do executes the "connectors.projects.locations.global.customConnectors.customConnectorVersions.list" call.
 10892  // Any non-2xx status code is an error. Response headers are in either
 10893  // *ListCustomConnectorVersionsResponse.ServerResponse.Header or (if a response
 10894  // was returned at all) in error.(*googleapi.Error).Header. Use
 10895  // googleapi.IsNotModified to check whether the returned error was because
 10896  // http.StatusNotModified was returned.
 10897  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall) Do(opts ...googleapi.CallOption) (*ListCustomConnectorVersionsResponse, error) {
 10898  	gensupport.SetOptions(c.urlParams_, opts...)
 10899  	res, err := c.doRequest("json")
 10900  	if res != nil && res.StatusCode == http.StatusNotModified {
 10901  		if res.Body != nil {
 10902  			res.Body.Close()
 10903  		}
 10904  		return nil, gensupport.WrapError(&googleapi.Error{
 10905  			Code:   res.StatusCode,
 10906  			Header: res.Header,
 10907  		})
 10908  	}
 10909  	if err != nil {
 10910  		return nil, err
 10911  	}
 10912  	defer googleapi.CloseBody(res)
 10913  	if err := googleapi.CheckResponse(res); err != nil {
 10914  		return nil, gensupport.WrapError(err)
 10915  	}
 10916  	ret := &ListCustomConnectorVersionsResponse{
 10917  		ServerResponse: googleapi.ServerResponse{
 10918  			Header:         res.Header,
 10919  			HTTPStatusCode: res.StatusCode,
 10920  		},
 10921  	}
 10922  	target := &ret
 10923  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10924  		return nil, err
 10925  	}
 10926  	return ret, nil
 10927  }
 10928  
 10929  // Pages invokes f for each page of results.
 10930  // A non-nil error returned from f will halt the iteration.
 10931  // The provided context supersedes any context provided to the Context method.
 10932  func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall) Pages(ctx context.Context, f func(*ListCustomConnectorVersionsResponse) error) error {
 10933  	c.ctx_ = ctx
 10934  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10935  	for {
 10936  		x, err := c.Do()
 10937  		if err != nil {
 10938  			return err
 10939  		}
 10940  		if err := f(x); err != nil {
 10941  			return err
 10942  		}
 10943  		if x.NextPageToken == "" {
 10944  			return nil
 10945  		}
 10946  		c.PageToken(x.NextPageToken)
 10947  	}
 10948  }
 10949  
 10950  type ProjectsLocationsGlobalManagedZonesCreateCall struct {
 10951  	s           *Service
 10952  	parent      string
 10953  	managedzone *ManagedZone
 10954  	urlParams_  gensupport.URLParams
 10955  	ctx_        context.Context
 10956  	header_     http.Header
 10957  }
 10958  
 10959  // Create: Creates a new ManagedZone in a given project and location.
 10960  //
 10961  //   - parent: Parent resource of the ManagedZone, of the form:
 10962  //     `projects/*/locations/global`.
 10963  func (r *ProjectsLocationsGlobalManagedZonesService) Create(parent string, managedzone *ManagedZone) *ProjectsLocationsGlobalManagedZonesCreateCall {
 10964  	c := &ProjectsLocationsGlobalManagedZonesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10965  	c.parent = parent
 10966  	c.managedzone = managedzone
 10967  	return c
 10968  }
 10969  
 10970  // ManagedZoneId sets the optional parameter "managedZoneId": Required.
 10971  // Identifier to assign to the ManagedZone. Must be unique within scope of the
 10972  // parent resource.
 10973  func (c *ProjectsLocationsGlobalManagedZonesCreateCall) ManagedZoneId(managedZoneId string) *ProjectsLocationsGlobalManagedZonesCreateCall {
 10974  	c.urlParams_.Set("managedZoneId", managedZoneId)
 10975  	return c
 10976  }
 10977  
 10978  // Fields allows partial responses to be retrieved. See
 10979  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10980  // details.
 10981  func (c *ProjectsLocationsGlobalManagedZonesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalManagedZonesCreateCall {
 10982  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10983  	return c
 10984  }
 10985  
 10986  // Context sets the context to be used in this call's Do method.
 10987  func (c *ProjectsLocationsGlobalManagedZonesCreateCall) Context(ctx context.Context) *ProjectsLocationsGlobalManagedZonesCreateCall {
 10988  	c.ctx_ = ctx
 10989  	return c
 10990  }
 10991  
 10992  // Header returns a http.Header that can be modified by the caller to add
 10993  // headers to the request.
 10994  func (c *ProjectsLocationsGlobalManagedZonesCreateCall) Header() http.Header {
 10995  	if c.header_ == nil {
 10996  		c.header_ = make(http.Header)
 10997  	}
 10998  	return c.header_
 10999  }
 11000  
 11001  func (c *ProjectsLocationsGlobalManagedZonesCreateCall) doRequest(alt string) (*http.Response, error) {
 11002  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11003  	var body io.Reader = nil
 11004  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.managedzone)
 11005  	if err != nil {
 11006  		return nil, err
 11007  	}
 11008  	c.urlParams_.Set("alt", alt)
 11009  	c.urlParams_.Set("prettyPrint", "false")
 11010  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/managedZones")
 11011  	urls += "?" + c.urlParams_.Encode()
 11012  	req, err := http.NewRequest("POST", urls, body)
 11013  	if err != nil {
 11014  		return nil, err
 11015  	}
 11016  	req.Header = reqHeaders
 11017  	googleapi.Expand(req.URL, map[string]string{
 11018  		"parent": c.parent,
 11019  	})
 11020  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11021  }
 11022  
 11023  // Do executes the "connectors.projects.locations.global.managedZones.create" call.
 11024  // Any non-2xx status code is an error. Response headers are in either
 11025  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11026  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11027  // whether the returned error was because http.StatusNotModified was returned.
 11028  func (c *ProjectsLocationsGlobalManagedZonesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11029  	gensupport.SetOptions(c.urlParams_, opts...)
 11030  	res, err := c.doRequest("json")
 11031  	if res != nil && res.StatusCode == http.StatusNotModified {
 11032  		if res.Body != nil {
 11033  			res.Body.Close()
 11034  		}
 11035  		return nil, gensupport.WrapError(&googleapi.Error{
 11036  			Code:   res.StatusCode,
 11037  			Header: res.Header,
 11038  		})
 11039  	}
 11040  	if err != nil {
 11041  		return nil, err
 11042  	}
 11043  	defer googleapi.CloseBody(res)
 11044  	if err := googleapi.CheckResponse(res); err != nil {
 11045  		return nil, gensupport.WrapError(err)
 11046  	}
 11047  	ret := &Operation{
 11048  		ServerResponse: googleapi.ServerResponse{
 11049  			Header:         res.Header,
 11050  			HTTPStatusCode: res.StatusCode,
 11051  		},
 11052  	}
 11053  	target := &ret
 11054  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11055  		return nil, err
 11056  	}
 11057  	return ret, nil
 11058  }
 11059  
 11060  type ProjectsLocationsGlobalManagedZonesDeleteCall struct {
 11061  	s          *Service
 11062  	name       string
 11063  	urlParams_ gensupport.URLParams
 11064  	ctx_       context.Context
 11065  	header_    http.Header
 11066  }
 11067  
 11068  // Delete: Deletes a single ManagedZone.
 11069  //
 11070  //   - name: Resource name of the form:
 11071  //     `projects/*/locations/global/managedZones/*`.
 11072  func (r *ProjectsLocationsGlobalManagedZonesService) Delete(name string) *ProjectsLocationsGlobalManagedZonesDeleteCall {
 11073  	c := &ProjectsLocationsGlobalManagedZonesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11074  	c.name = name
 11075  	return c
 11076  }
 11077  
 11078  // Fields allows partial responses to be retrieved. See
 11079  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11080  // details.
 11081  func (c *ProjectsLocationsGlobalManagedZonesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalManagedZonesDeleteCall {
 11082  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11083  	return c
 11084  }
 11085  
 11086  // Context sets the context to be used in this call's Do method.
 11087  func (c *ProjectsLocationsGlobalManagedZonesDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalManagedZonesDeleteCall {
 11088  	c.ctx_ = ctx
 11089  	return c
 11090  }
 11091  
 11092  // Header returns a http.Header that can be modified by the caller to add
 11093  // headers to the request.
 11094  func (c *ProjectsLocationsGlobalManagedZonesDeleteCall) Header() http.Header {
 11095  	if c.header_ == nil {
 11096  		c.header_ = make(http.Header)
 11097  	}
 11098  	return c.header_
 11099  }
 11100  
 11101  func (c *ProjectsLocationsGlobalManagedZonesDeleteCall) doRequest(alt string) (*http.Response, error) {
 11102  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11103  	var body io.Reader = nil
 11104  	c.urlParams_.Set("alt", alt)
 11105  	c.urlParams_.Set("prettyPrint", "false")
 11106  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11107  	urls += "?" + c.urlParams_.Encode()
 11108  	req, err := http.NewRequest("DELETE", urls, body)
 11109  	if err != nil {
 11110  		return nil, err
 11111  	}
 11112  	req.Header = reqHeaders
 11113  	googleapi.Expand(req.URL, map[string]string{
 11114  		"name": c.name,
 11115  	})
 11116  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11117  }
 11118  
 11119  // Do executes the "connectors.projects.locations.global.managedZones.delete" call.
 11120  // Any non-2xx status code is an error. Response headers are in either
 11121  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11122  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11123  // whether the returned error was because http.StatusNotModified was returned.
 11124  func (c *ProjectsLocationsGlobalManagedZonesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11125  	gensupport.SetOptions(c.urlParams_, opts...)
 11126  	res, err := c.doRequest("json")
 11127  	if res != nil && res.StatusCode == http.StatusNotModified {
 11128  		if res.Body != nil {
 11129  			res.Body.Close()
 11130  		}
 11131  		return nil, gensupport.WrapError(&googleapi.Error{
 11132  			Code:   res.StatusCode,
 11133  			Header: res.Header,
 11134  		})
 11135  	}
 11136  	if err != nil {
 11137  		return nil, err
 11138  	}
 11139  	defer googleapi.CloseBody(res)
 11140  	if err := googleapi.CheckResponse(res); err != nil {
 11141  		return nil, gensupport.WrapError(err)
 11142  	}
 11143  	ret := &Operation{
 11144  		ServerResponse: googleapi.ServerResponse{
 11145  			Header:         res.Header,
 11146  			HTTPStatusCode: res.StatusCode,
 11147  		},
 11148  	}
 11149  	target := &ret
 11150  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11151  		return nil, err
 11152  	}
 11153  	return ret, nil
 11154  }
 11155  
 11156  type ProjectsLocationsGlobalManagedZonesGetCall struct {
 11157  	s            *Service
 11158  	name         string
 11159  	urlParams_   gensupport.URLParams
 11160  	ifNoneMatch_ string
 11161  	ctx_         context.Context
 11162  	header_      http.Header
 11163  }
 11164  
 11165  // Get: Gets details of a single ManagedZone.
 11166  //
 11167  //   - name: Resource name of the form:
 11168  //     `projects/*/locations/global/managedZones/*`.
 11169  func (r *ProjectsLocationsGlobalManagedZonesService) Get(name string) *ProjectsLocationsGlobalManagedZonesGetCall {
 11170  	c := &ProjectsLocationsGlobalManagedZonesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11171  	c.name = name
 11172  	return c
 11173  }
 11174  
 11175  // Fields allows partial responses to be retrieved. See
 11176  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11177  // details.
 11178  func (c *ProjectsLocationsGlobalManagedZonesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalManagedZonesGetCall {
 11179  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11180  	return c
 11181  }
 11182  
 11183  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11184  // object's ETag matches the given value. This is useful for getting updates
 11185  // only after the object has changed since the last request.
 11186  func (c *ProjectsLocationsGlobalManagedZonesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalManagedZonesGetCall {
 11187  	c.ifNoneMatch_ = entityTag
 11188  	return c
 11189  }
 11190  
 11191  // Context sets the context to be used in this call's Do method.
 11192  func (c *ProjectsLocationsGlobalManagedZonesGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalManagedZonesGetCall {
 11193  	c.ctx_ = ctx
 11194  	return c
 11195  }
 11196  
 11197  // Header returns a http.Header that can be modified by the caller to add
 11198  // headers to the request.
 11199  func (c *ProjectsLocationsGlobalManagedZonesGetCall) Header() http.Header {
 11200  	if c.header_ == nil {
 11201  		c.header_ = make(http.Header)
 11202  	}
 11203  	return c.header_
 11204  }
 11205  
 11206  func (c *ProjectsLocationsGlobalManagedZonesGetCall) doRequest(alt string) (*http.Response, error) {
 11207  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11208  	if c.ifNoneMatch_ != "" {
 11209  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11210  	}
 11211  	var body io.Reader = nil
 11212  	c.urlParams_.Set("alt", alt)
 11213  	c.urlParams_.Set("prettyPrint", "false")
 11214  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11215  	urls += "?" + c.urlParams_.Encode()
 11216  	req, err := http.NewRequest("GET", urls, body)
 11217  	if err != nil {
 11218  		return nil, err
 11219  	}
 11220  	req.Header = reqHeaders
 11221  	googleapi.Expand(req.URL, map[string]string{
 11222  		"name": c.name,
 11223  	})
 11224  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11225  }
 11226  
 11227  // Do executes the "connectors.projects.locations.global.managedZones.get" call.
 11228  // Any non-2xx status code is an error. Response headers are in either
 11229  // *ManagedZone.ServerResponse.Header or (if a response was returned at all) in
 11230  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11231  // whether the returned error was because http.StatusNotModified was returned.
 11232  func (c *ProjectsLocationsGlobalManagedZonesGetCall) Do(opts ...googleapi.CallOption) (*ManagedZone, error) {
 11233  	gensupport.SetOptions(c.urlParams_, opts...)
 11234  	res, err := c.doRequest("json")
 11235  	if res != nil && res.StatusCode == http.StatusNotModified {
 11236  		if res.Body != nil {
 11237  			res.Body.Close()
 11238  		}
 11239  		return nil, gensupport.WrapError(&googleapi.Error{
 11240  			Code:   res.StatusCode,
 11241  			Header: res.Header,
 11242  		})
 11243  	}
 11244  	if err != nil {
 11245  		return nil, err
 11246  	}
 11247  	defer googleapi.CloseBody(res)
 11248  	if err := googleapi.CheckResponse(res); err != nil {
 11249  		return nil, gensupport.WrapError(err)
 11250  	}
 11251  	ret := &ManagedZone{
 11252  		ServerResponse: googleapi.ServerResponse{
 11253  			Header:         res.Header,
 11254  			HTTPStatusCode: res.StatusCode,
 11255  		},
 11256  	}
 11257  	target := &ret
 11258  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11259  		return nil, err
 11260  	}
 11261  	return ret, nil
 11262  }
 11263  
 11264  type ProjectsLocationsGlobalManagedZonesListCall struct {
 11265  	s            *Service
 11266  	parent       string
 11267  	urlParams_   gensupport.URLParams
 11268  	ifNoneMatch_ string
 11269  	ctx_         context.Context
 11270  	header_      http.Header
 11271  }
 11272  
 11273  // List: List ManagedZones in a given project
 11274  //
 11275  //   - parent: Parent resource of the Managed Zone, of the form:
 11276  //     `projects/*/locations/global`.
 11277  func (r *ProjectsLocationsGlobalManagedZonesService) List(parent string) *ProjectsLocationsGlobalManagedZonesListCall {
 11278  	c := &ProjectsLocationsGlobalManagedZonesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11279  	c.parent = parent
 11280  	return c
 11281  }
 11282  
 11283  // Filter sets the optional parameter "filter": Filter.
 11284  func (c *ProjectsLocationsGlobalManagedZonesListCall) Filter(filter string) *ProjectsLocationsGlobalManagedZonesListCall {
 11285  	c.urlParams_.Set("filter", filter)
 11286  	return c
 11287  }
 11288  
 11289  // OrderBy sets the optional parameter "orderBy": Order by parameters.
 11290  func (c *ProjectsLocationsGlobalManagedZonesListCall) OrderBy(orderBy string) *ProjectsLocationsGlobalManagedZonesListCall {
 11291  	c.urlParams_.Set("orderBy", orderBy)
 11292  	return c
 11293  }
 11294  
 11295  // PageSize sets the optional parameter "pageSize": Page size.
 11296  func (c *ProjectsLocationsGlobalManagedZonesListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalManagedZonesListCall {
 11297  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11298  	return c
 11299  }
 11300  
 11301  // PageToken sets the optional parameter "pageToken": Page token.
 11302  func (c *ProjectsLocationsGlobalManagedZonesListCall) PageToken(pageToken string) *ProjectsLocationsGlobalManagedZonesListCall {
 11303  	c.urlParams_.Set("pageToken", pageToken)
 11304  	return c
 11305  }
 11306  
 11307  // Fields allows partial responses to be retrieved. See
 11308  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11309  // details.
 11310  func (c *ProjectsLocationsGlobalManagedZonesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalManagedZonesListCall {
 11311  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11312  	return c
 11313  }
 11314  
 11315  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11316  // object's ETag matches the given value. This is useful for getting updates
 11317  // only after the object has changed since the last request.
 11318  func (c *ProjectsLocationsGlobalManagedZonesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalManagedZonesListCall {
 11319  	c.ifNoneMatch_ = entityTag
 11320  	return c
 11321  }
 11322  
 11323  // Context sets the context to be used in this call's Do method.
 11324  func (c *ProjectsLocationsGlobalManagedZonesListCall) Context(ctx context.Context) *ProjectsLocationsGlobalManagedZonesListCall {
 11325  	c.ctx_ = ctx
 11326  	return c
 11327  }
 11328  
 11329  // Header returns a http.Header that can be modified by the caller to add
 11330  // headers to the request.
 11331  func (c *ProjectsLocationsGlobalManagedZonesListCall) Header() http.Header {
 11332  	if c.header_ == nil {
 11333  		c.header_ = make(http.Header)
 11334  	}
 11335  	return c.header_
 11336  }
 11337  
 11338  func (c *ProjectsLocationsGlobalManagedZonesListCall) doRequest(alt string) (*http.Response, error) {
 11339  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11340  	if c.ifNoneMatch_ != "" {
 11341  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11342  	}
 11343  	var body io.Reader = nil
 11344  	c.urlParams_.Set("alt", alt)
 11345  	c.urlParams_.Set("prettyPrint", "false")
 11346  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/managedZones")
 11347  	urls += "?" + c.urlParams_.Encode()
 11348  	req, err := http.NewRequest("GET", urls, body)
 11349  	if err != nil {
 11350  		return nil, err
 11351  	}
 11352  	req.Header = reqHeaders
 11353  	googleapi.Expand(req.URL, map[string]string{
 11354  		"parent": c.parent,
 11355  	})
 11356  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11357  }
 11358  
 11359  // Do executes the "connectors.projects.locations.global.managedZones.list" call.
 11360  // Any non-2xx status code is an error. Response headers are in either
 11361  // *ListManagedZonesResponse.ServerResponse.Header or (if a response was
 11362  // returned at all) in error.(*googleapi.Error).Header. Use
 11363  // googleapi.IsNotModified to check whether the returned error was because
 11364  // http.StatusNotModified was returned.
 11365  func (c *ProjectsLocationsGlobalManagedZonesListCall) Do(opts ...googleapi.CallOption) (*ListManagedZonesResponse, error) {
 11366  	gensupport.SetOptions(c.urlParams_, opts...)
 11367  	res, err := c.doRequest("json")
 11368  	if res != nil && res.StatusCode == http.StatusNotModified {
 11369  		if res.Body != nil {
 11370  			res.Body.Close()
 11371  		}
 11372  		return nil, gensupport.WrapError(&googleapi.Error{
 11373  			Code:   res.StatusCode,
 11374  			Header: res.Header,
 11375  		})
 11376  	}
 11377  	if err != nil {
 11378  		return nil, err
 11379  	}
 11380  	defer googleapi.CloseBody(res)
 11381  	if err := googleapi.CheckResponse(res); err != nil {
 11382  		return nil, gensupport.WrapError(err)
 11383  	}
 11384  	ret := &ListManagedZonesResponse{
 11385  		ServerResponse: googleapi.ServerResponse{
 11386  			Header:         res.Header,
 11387  			HTTPStatusCode: res.StatusCode,
 11388  		},
 11389  	}
 11390  	target := &ret
 11391  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11392  		return nil, err
 11393  	}
 11394  	return ret, nil
 11395  }
 11396  
 11397  // Pages invokes f for each page of results.
 11398  // A non-nil error returned from f will halt the iteration.
 11399  // The provided context supersedes any context provided to the Context method.
 11400  func (c *ProjectsLocationsGlobalManagedZonesListCall) Pages(ctx context.Context, f func(*ListManagedZonesResponse) error) error {
 11401  	c.ctx_ = ctx
 11402  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11403  	for {
 11404  		x, err := c.Do()
 11405  		if err != nil {
 11406  			return err
 11407  		}
 11408  		if err := f(x); err != nil {
 11409  			return err
 11410  		}
 11411  		if x.NextPageToken == "" {
 11412  			return nil
 11413  		}
 11414  		c.PageToken(x.NextPageToken)
 11415  	}
 11416  }
 11417  
 11418  type ProjectsLocationsGlobalManagedZonesPatchCall struct {
 11419  	s           *Service
 11420  	name        string
 11421  	managedzone *ManagedZone
 11422  	urlParams_  gensupport.URLParams
 11423  	ctx_        context.Context
 11424  	header_     http.Header
 11425  }
 11426  
 11427  // Patch: Updates the parameters of a single ManagedZone.
 11428  //
 11429  //   - name: Output only. Resource name of the Managed Zone. Format:
 11430  //     projects/{project}/locations/global/managedZones/{managed_zone}.
 11431  func (r *ProjectsLocationsGlobalManagedZonesService) Patch(name string, managedzone *ManagedZone) *ProjectsLocationsGlobalManagedZonesPatchCall {
 11432  	c := &ProjectsLocationsGlobalManagedZonesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11433  	c.name = name
 11434  	c.managedzone = managedzone
 11435  	return c
 11436  }
 11437  
 11438  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 11439  // fields to update. Fields are specified relative to the managedZone. A field
 11440  // will be overwritten if it is in the mask. You can modify only the fields
 11441  // listed below. To update the managedZone details: * `description` * `labels`
 11442  // * `target_project` * `target_network`
 11443  func (c *ProjectsLocationsGlobalManagedZonesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalManagedZonesPatchCall {
 11444  	c.urlParams_.Set("updateMask", updateMask)
 11445  	return c
 11446  }
 11447  
 11448  // Fields allows partial responses to be retrieved. See
 11449  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11450  // details.
 11451  func (c *ProjectsLocationsGlobalManagedZonesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalManagedZonesPatchCall {
 11452  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11453  	return c
 11454  }
 11455  
 11456  // Context sets the context to be used in this call's Do method.
 11457  func (c *ProjectsLocationsGlobalManagedZonesPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalManagedZonesPatchCall {
 11458  	c.ctx_ = ctx
 11459  	return c
 11460  }
 11461  
 11462  // Header returns a http.Header that can be modified by the caller to add
 11463  // headers to the request.
 11464  func (c *ProjectsLocationsGlobalManagedZonesPatchCall) Header() http.Header {
 11465  	if c.header_ == nil {
 11466  		c.header_ = make(http.Header)
 11467  	}
 11468  	return c.header_
 11469  }
 11470  
 11471  func (c *ProjectsLocationsGlobalManagedZonesPatchCall) doRequest(alt string) (*http.Response, error) {
 11472  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11473  	var body io.Reader = nil
 11474  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.managedzone)
 11475  	if err != nil {
 11476  		return nil, err
 11477  	}
 11478  	c.urlParams_.Set("alt", alt)
 11479  	c.urlParams_.Set("prettyPrint", "false")
 11480  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11481  	urls += "?" + c.urlParams_.Encode()
 11482  	req, err := http.NewRequest("PATCH", urls, body)
 11483  	if err != nil {
 11484  		return nil, err
 11485  	}
 11486  	req.Header = reqHeaders
 11487  	googleapi.Expand(req.URL, map[string]string{
 11488  		"name": c.name,
 11489  	})
 11490  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11491  }
 11492  
 11493  // Do executes the "connectors.projects.locations.global.managedZones.patch" call.
 11494  // Any non-2xx status code is an error. Response headers are in either
 11495  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11496  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11497  // whether the returned error was because http.StatusNotModified was returned.
 11498  func (c *ProjectsLocationsGlobalManagedZonesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11499  	gensupport.SetOptions(c.urlParams_, opts...)
 11500  	res, err := c.doRequest("json")
 11501  	if res != nil && res.StatusCode == http.StatusNotModified {
 11502  		if res.Body != nil {
 11503  			res.Body.Close()
 11504  		}
 11505  		return nil, gensupport.WrapError(&googleapi.Error{
 11506  			Code:   res.StatusCode,
 11507  			Header: res.Header,
 11508  		})
 11509  	}
 11510  	if err != nil {
 11511  		return nil, err
 11512  	}
 11513  	defer googleapi.CloseBody(res)
 11514  	if err := googleapi.CheckResponse(res); err != nil {
 11515  		return nil, gensupport.WrapError(err)
 11516  	}
 11517  	ret := &Operation{
 11518  		ServerResponse: googleapi.ServerResponse{
 11519  			Header:         res.Header,
 11520  			HTTPStatusCode: res.StatusCode,
 11521  		},
 11522  	}
 11523  	target := &ret
 11524  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11525  		return nil, err
 11526  	}
 11527  	return ret, nil
 11528  }
 11529  
 11530  type ProjectsLocationsOperationsCancelCall struct {
 11531  	s                      *Service
 11532  	name                   string
 11533  	canceloperationrequest *CancelOperationRequest
 11534  	urlParams_             gensupport.URLParams
 11535  	ctx_                   context.Context
 11536  	header_                http.Header
 11537  }
 11538  
 11539  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 11540  // server makes a best effort to cancel the operation, but success is not
 11541  // guaranteed. If the server doesn't support this method, it returns
 11542  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 11543  // other methods to check whether the cancellation succeeded or whether the
 11544  // operation completed despite cancellation. On successful cancellation, the
 11545  // operation is not deleted; instead, it becomes an operation with an
 11546  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 11547  // `Code.CANCELLED`.
 11548  //
 11549  // - name: The name of the operation resource to be cancelled.
 11550  func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
 11551  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11552  	c.name = name
 11553  	c.canceloperationrequest = canceloperationrequest
 11554  	return c
 11555  }
 11556  
 11557  // Fields allows partial responses to be retrieved. See
 11558  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11559  // details.
 11560  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
 11561  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11562  	return c
 11563  }
 11564  
 11565  // Context sets the context to be used in this call's Do method.
 11566  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
 11567  	c.ctx_ = ctx
 11568  	return c
 11569  }
 11570  
 11571  // Header returns a http.Header that can be modified by the caller to add
 11572  // headers to the request.
 11573  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
 11574  	if c.header_ == nil {
 11575  		c.header_ = make(http.Header)
 11576  	}
 11577  	return c.header_
 11578  }
 11579  
 11580  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 11581  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11582  	var body io.Reader = nil
 11583  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
 11584  	if err != nil {
 11585  		return nil, err
 11586  	}
 11587  	c.urlParams_.Set("alt", alt)
 11588  	c.urlParams_.Set("prettyPrint", "false")
 11589  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
 11590  	urls += "?" + c.urlParams_.Encode()
 11591  	req, err := http.NewRequest("POST", urls, body)
 11592  	if err != nil {
 11593  		return nil, err
 11594  	}
 11595  	req.Header = reqHeaders
 11596  	googleapi.Expand(req.URL, map[string]string{
 11597  		"name": c.name,
 11598  	})
 11599  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11600  }
 11601  
 11602  // Do executes the "connectors.projects.locations.operations.cancel" call.
 11603  // Any non-2xx status code is an error. Response headers are in either
 11604  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 11605  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11606  // whether the returned error was because http.StatusNotModified was returned.
 11607  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 11608  	gensupport.SetOptions(c.urlParams_, opts...)
 11609  	res, err := c.doRequest("json")
 11610  	if res != nil && res.StatusCode == http.StatusNotModified {
 11611  		if res.Body != nil {
 11612  			res.Body.Close()
 11613  		}
 11614  		return nil, gensupport.WrapError(&googleapi.Error{
 11615  			Code:   res.StatusCode,
 11616  			Header: res.Header,
 11617  		})
 11618  	}
 11619  	if err != nil {
 11620  		return nil, err
 11621  	}
 11622  	defer googleapi.CloseBody(res)
 11623  	if err := googleapi.CheckResponse(res); err != nil {
 11624  		return nil, gensupport.WrapError(err)
 11625  	}
 11626  	ret := &Empty{
 11627  		ServerResponse: googleapi.ServerResponse{
 11628  			Header:         res.Header,
 11629  			HTTPStatusCode: res.StatusCode,
 11630  		},
 11631  	}
 11632  	target := &ret
 11633  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11634  		return nil, err
 11635  	}
 11636  	return ret, nil
 11637  }
 11638  
 11639  type ProjectsLocationsOperationsDeleteCall struct {
 11640  	s          *Service
 11641  	name       string
 11642  	urlParams_ gensupport.URLParams
 11643  	ctx_       context.Context
 11644  	header_    http.Header
 11645  }
 11646  
 11647  // Delete: Deletes a long-running operation. This method indicates that the
 11648  // client is no longer interested in the operation result. It does not cancel
 11649  // the operation. If the server doesn't support this method, it returns
 11650  // `google.rpc.Code.UNIMPLEMENTED`.
 11651  //
 11652  // - name: The name of the operation resource to be deleted.
 11653  func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
 11654  	c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11655  	c.name = name
 11656  	return c
 11657  }
 11658  
 11659  // Fields allows partial responses to be retrieved. See
 11660  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11661  // details.
 11662  func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
 11663  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11664  	return c
 11665  }
 11666  
 11667  // Context sets the context to be used in this call's Do method.
 11668  func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
 11669  	c.ctx_ = ctx
 11670  	return c
 11671  }
 11672  
 11673  // Header returns a http.Header that can be modified by the caller to add
 11674  // headers to the request.
 11675  func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
 11676  	if c.header_ == nil {
 11677  		c.header_ = make(http.Header)
 11678  	}
 11679  	return c.header_
 11680  }
 11681  
 11682  func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 11683  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11684  	var body io.Reader = nil
 11685  	c.urlParams_.Set("alt", alt)
 11686  	c.urlParams_.Set("prettyPrint", "false")
 11687  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11688  	urls += "?" + c.urlParams_.Encode()
 11689  	req, err := http.NewRequest("DELETE", urls, body)
 11690  	if err != nil {
 11691  		return nil, err
 11692  	}
 11693  	req.Header = reqHeaders
 11694  	googleapi.Expand(req.URL, map[string]string{
 11695  		"name": c.name,
 11696  	})
 11697  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11698  }
 11699  
 11700  // Do executes the "connectors.projects.locations.operations.delete" call.
 11701  // Any non-2xx status code is an error. Response headers are in either
 11702  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 11703  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11704  // whether the returned error was because http.StatusNotModified was returned.
 11705  func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 11706  	gensupport.SetOptions(c.urlParams_, opts...)
 11707  	res, err := c.doRequest("json")
 11708  	if res != nil && res.StatusCode == http.StatusNotModified {
 11709  		if res.Body != nil {
 11710  			res.Body.Close()
 11711  		}
 11712  		return nil, gensupport.WrapError(&googleapi.Error{
 11713  			Code:   res.StatusCode,
 11714  			Header: res.Header,
 11715  		})
 11716  	}
 11717  	if err != nil {
 11718  		return nil, err
 11719  	}
 11720  	defer googleapi.CloseBody(res)
 11721  	if err := googleapi.CheckResponse(res); err != nil {
 11722  		return nil, gensupport.WrapError(err)
 11723  	}
 11724  	ret := &Empty{
 11725  		ServerResponse: googleapi.ServerResponse{
 11726  			Header:         res.Header,
 11727  			HTTPStatusCode: res.StatusCode,
 11728  		},
 11729  	}
 11730  	target := &ret
 11731  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11732  		return nil, err
 11733  	}
 11734  	return ret, nil
 11735  }
 11736  
 11737  type ProjectsLocationsOperationsGetCall struct {
 11738  	s            *Service
 11739  	name         string
 11740  	urlParams_   gensupport.URLParams
 11741  	ifNoneMatch_ string
 11742  	ctx_         context.Context
 11743  	header_      http.Header
 11744  }
 11745  
 11746  // Get: Gets the latest state of a long-running operation. Clients can use this
 11747  // method to poll the operation result at intervals as recommended by the API
 11748  // service.
 11749  //
 11750  // - name: The name of the operation resource.
 11751  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 11752  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11753  	c.name = name
 11754  	return c
 11755  }
 11756  
 11757  // Fields allows partial responses to be retrieved. See
 11758  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11759  // details.
 11760  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 11761  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11762  	return c
 11763  }
 11764  
 11765  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11766  // object's ETag matches the given value. This is useful for getting updates
 11767  // only after the object has changed since the last request.
 11768  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 11769  	c.ifNoneMatch_ = entityTag
 11770  	return c
 11771  }
 11772  
 11773  // Context sets the context to be used in this call's Do method.
 11774  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 11775  	c.ctx_ = ctx
 11776  	return c
 11777  }
 11778  
 11779  // Header returns a http.Header that can be modified by the caller to add
 11780  // headers to the request.
 11781  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 11782  	if c.header_ == nil {
 11783  		c.header_ = make(http.Header)
 11784  	}
 11785  	return c.header_
 11786  }
 11787  
 11788  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 11789  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11790  	if c.ifNoneMatch_ != "" {
 11791  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11792  	}
 11793  	var body io.Reader = nil
 11794  	c.urlParams_.Set("alt", alt)
 11795  	c.urlParams_.Set("prettyPrint", "false")
 11796  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11797  	urls += "?" + c.urlParams_.Encode()
 11798  	req, err := http.NewRequest("GET", urls, body)
 11799  	if err != nil {
 11800  		return nil, err
 11801  	}
 11802  	req.Header = reqHeaders
 11803  	googleapi.Expand(req.URL, map[string]string{
 11804  		"name": c.name,
 11805  	})
 11806  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11807  }
 11808  
 11809  // Do executes the "connectors.projects.locations.operations.get" call.
 11810  // Any non-2xx status code is an error. Response headers are in either
 11811  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11812  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11813  // whether the returned error was because http.StatusNotModified was returned.
 11814  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11815  	gensupport.SetOptions(c.urlParams_, opts...)
 11816  	res, err := c.doRequest("json")
 11817  	if res != nil && res.StatusCode == http.StatusNotModified {
 11818  		if res.Body != nil {
 11819  			res.Body.Close()
 11820  		}
 11821  		return nil, gensupport.WrapError(&googleapi.Error{
 11822  			Code:   res.StatusCode,
 11823  			Header: res.Header,
 11824  		})
 11825  	}
 11826  	if err != nil {
 11827  		return nil, err
 11828  	}
 11829  	defer googleapi.CloseBody(res)
 11830  	if err := googleapi.CheckResponse(res); err != nil {
 11831  		return nil, gensupport.WrapError(err)
 11832  	}
 11833  	ret := &Operation{
 11834  		ServerResponse: googleapi.ServerResponse{
 11835  			Header:         res.Header,
 11836  			HTTPStatusCode: res.StatusCode,
 11837  		},
 11838  	}
 11839  	target := &ret
 11840  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11841  		return nil, err
 11842  	}
 11843  	return ret, nil
 11844  }
 11845  
 11846  type ProjectsLocationsOperationsListCall struct {
 11847  	s            *Service
 11848  	name         string
 11849  	urlParams_   gensupport.URLParams
 11850  	ifNoneMatch_ string
 11851  	ctx_         context.Context
 11852  	header_      http.Header
 11853  }
 11854  
 11855  // List: Lists operations that match the specified filter in the request. If
 11856  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 11857  //
 11858  // - name: The name of the operation's parent resource.
 11859  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 11860  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11861  	c.name = name
 11862  	return c
 11863  }
 11864  
 11865  // Filter sets the optional parameter "filter": The standard list filter.
 11866  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 11867  	c.urlParams_.Set("filter", filter)
 11868  	return c
 11869  }
 11870  
 11871  // PageSize sets the optional parameter "pageSize": The standard list page
 11872  // size.
 11873  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 11874  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11875  	return c
 11876  }
 11877  
 11878  // PageToken sets the optional parameter "pageToken": The standard list page
 11879  // token.
 11880  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 11881  	c.urlParams_.Set("pageToken", pageToken)
 11882  	return c
 11883  }
 11884  
 11885  // Fields allows partial responses to be retrieved. See
 11886  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11887  // details.
 11888  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 11889  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11890  	return c
 11891  }
 11892  
 11893  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11894  // object's ETag matches the given value. This is useful for getting updates
 11895  // only after the object has changed since the last request.
 11896  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 11897  	c.ifNoneMatch_ = entityTag
 11898  	return c
 11899  }
 11900  
 11901  // Context sets the context to be used in this call's Do method.
 11902  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 11903  	c.ctx_ = ctx
 11904  	return c
 11905  }
 11906  
 11907  // Header returns a http.Header that can be modified by the caller to add
 11908  // headers to the request.
 11909  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 11910  	if c.header_ == nil {
 11911  		c.header_ = make(http.Header)
 11912  	}
 11913  	return c.header_
 11914  }
 11915  
 11916  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 11917  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11918  	if c.ifNoneMatch_ != "" {
 11919  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11920  	}
 11921  	var body io.Reader = nil
 11922  	c.urlParams_.Set("alt", alt)
 11923  	c.urlParams_.Set("prettyPrint", "false")
 11924  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 11925  	urls += "?" + c.urlParams_.Encode()
 11926  	req, err := http.NewRequest("GET", urls, body)
 11927  	if err != nil {
 11928  		return nil, err
 11929  	}
 11930  	req.Header = reqHeaders
 11931  	googleapi.Expand(req.URL, map[string]string{
 11932  		"name": c.name,
 11933  	})
 11934  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11935  }
 11936  
 11937  // Do executes the "connectors.projects.locations.operations.list" call.
 11938  // Any non-2xx status code is an error. Response headers are in either
 11939  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
 11940  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11941  // check whether the returned error was because http.StatusNotModified was
 11942  // returned.
 11943  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
 11944  	gensupport.SetOptions(c.urlParams_, opts...)
 11945  	res, err := c.doRequest("json")
 11946  	if res != nil && res.StatusCode == http.StatusNotModified {
 11947  		if res.Body != nil {
 11948  			res.Body.Close()
 11949  		}
 11950  		return nil, gensupport.WrapError(&googleapi.Error{
 11951  			Code:   res.StatusCode,
 11952  			Header: res.Header,
 11953  		})
 11954  	}
 11955  	if err != nil {
 11956  		return nil, err
 11957  	}
 11958  	defer googleapi.CloseBody(res)
 11959  	if err := googleapi.CheckResponse(res); err != nil {
 11960  		return nil, gensupport.WrapError(err)
 11961  	}
 11962  	ret := &ListOperationsResponse{
 11963  		ServerResponse: googleapi.ServerResponse{
 11964  			Header:         res.Header,
 11965  			HTTPStatusCode: res.StatusCode,
 11966  		},
 11967  	}
 11968  	target := &ret
 11969  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11970  		return nil, err
 11971  	}
 11972  	return ret, nil
 11973  }
 11974  
 11975  // Pages invokes f for each page of results.
 11976  // A non-nil error returned from f will halt the iteration.
 11977  // The provided context supersedes any context provided to the Context method.
 11978  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
 11979  	c.ctx_ = ctx
 11980  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11981  	for {
 11982  		x, err := c.Do()
 11983  		if err != nil {
 11984  			return err
 11985  		}
 11986  		if err := f(x); err != nil {
 11987  			return err
 11988  		}
 11989  		if x.NextPageToken == "" {
 11990  			return nil
 11991  		}
 11992  		c.PageToken(x.NextPageToken)
 11993  	}
 11994  }
 11995  
 11996  type ProjectsLocationsProvidersGetCall struct {
 11997  	s            *Service
 11998  	name         string
 11999  	urlParams_   gensupport.URLParams
 12000  	ifNoneMatch_ string
 12001  	ctx_         context.Context
 12002  	header_      http.Header
 12003  }
 12004  
 12005  // Get: Gets details of a provider.
 12006  //
 12007  //   - name: Resource name of the form: `projects/*/locations/*/providers/*` Only
 12008  //     global location is supported for Provider resource.
 12009  func (r *ProjectsLocationsProvidersService) Get(name string) *ProjectsLocationsProvidersGetCall {
 12010  	c := &ProjectsLocationsProvidersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12011  	c.name = name
 12012  	return c
 12013  }
 12014  
 12015  // Fields allows partial responses to be retrieved. See
 12016  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12017  // details.
 12018  func (c *ProjectsLocationsProvidersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvidersGetCall {
 12019  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12020  	return c
 12021  }
 12022  
 12023  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12024  // object's ETag matches the given value. This is useful for getting updates
 12025  // only after the object has changed since the last request.
 12026  func (c *ProjectsLocationsProvidersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvidersGetCall {
 12027  	c.ifNoneMatch_ = entityTag
 12028  	return c
 12029  }
 12030  
 12031  // Context sets the context to be used in this call's Do method.
 12032  func (c *ProjectsLocationsProvidersGetCall) Context(ctx context.Context) *ProjectsLocationsProvidersGetCall {
 12033  	c.ctx_ = ctx
 12034  	return c
 12035  }
 12036  
 12037  // Header returns a http.Header that can be modified by the caller to add
 12038  // headers to the request.
 12039  func (c *ProjectsLocationsProvidersGetCall) Header() http.Header {
 12040  	if c.header_ == nil {
 12041  		c.header_ = make(http.Header)
 12042  	}
 12043  	return c.header_
 12044  }
 12045  
 12046  func (c *ProjectsLocationsProvidersGetCall) doRequest(alt string) (*http.Response, error) {
 12047  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12048  	if c.ifNoneMatch_ != "" {
 12049  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12050  	}
 12051  	var body io.Reader = nil
 12052  	c.urlParams_.Set("alt", alt)
 12053  	c.urlParams_.Set("prettyPrint", "false")
 12054  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12055  	urls += "?" + c.urlParams_.Encode()
 12056  	req, err := http.NewRequest("GET", urls, body)
 12057  	if err != nil {
 12058  		return nil, err
 12059  	}
 12060  	req.Header = reqHeaders
 12061  	googleapi.Expand(req.URL, map[string]string{
 12062  		"name": c.name,
 12063  	})
 12064  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12065  }
 12066  
 12067  // Do executes the "connectors.projects.locations.providers.get" call.
 12068  // Any non-2xx status code is an error. Response headers are in either
 12069  // *Provider.ServerResponse.Header or (if a response was returned at all) in
 12070  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12071  // whether the returned error was because http.StatusNotModified was returned.
 12072  func (c *ProjectsLocationsProvidersGetCall) Do(opts ...googleapi.CallOption) (*Provider, error) {
 12073  	gensupport.SetOptions(c.urlParams_, opts...)
 12074  	res, err := c.doRequest("json")
 12075  	if res != nil && res.StatusCode == http.StatusNotModified {
 12076  		if res.Body != nil {
 12077  			res.Body.Close()
 12078  		}
 12079  		return nil, gensupport.WrapError(&googleapi.Error{
 12080  			Code:   res.StatusCode,
 12081  			Header: res.Header,
 12082  		})
 12083  	}
 12084  	if err != nil {
 12085  		return nil, err
 12086  	}
 12087  	defer googleapi.CloseBody(res)
 12088  	if err := googleapi.CheckResponse(res); err != nil {
 12089  		return nil, gensupport.WrapError(err)
 12090  	}
 12091  	ret := &Provider{
 12092  		ServerResponse: googleapi.ServerResponse{
 12093  			Header:         res.Header,
 12094  			HTTPStatusCode: res.StatusCode,
 12095  		},
 12096  	}
 12097  	target := &ret
 12098  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12099  		return nil, err
 12100  	}
 12101  	return ret, nil
 12102  }
 12103  
 12104  type ProjectsLocationsProvidersGetIamPolicyCall struct {
 12105  	s            *Service
 12106  	resource     string
 12107  	urlParams_   gensupport.URLParams
 12108  	ifNoneMatch_ string
 12109  	ctx_         context.Context
 12110  	header_      http.Header
 12111  }
 12112  
 12113  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 12114  // empty policy if the resource exists and does not have a policy set.
 12115  //
 12116  //   - resource: REQUIRED: The resource for which the policy is being requested.
 12117  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 12118  //     for the appropriate value for this field.
 12119  func (r *ProjectsLocationsProvidersService) GetIamPolicy(resource string) *ProjectsLocationsProvidersGetIamPolicyCall {
 12120  	c := &ProjectsLocationsProvidersGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12121  	c.resource = resource
 12122  	return c
 12123  }
 12124  
 12125  // OptionsRequestedPolicyVersion sets the optional parameter
 12126  // "options.requestedPolicyVersion": The maximum policy version that will be
 12127  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
 12128  // an invalid value will be rejected. Requests for policies with any
 12129  // conditional role bindings must specify version 3. Policies with no
 12130  // conditional role bindings may specify any valid value or leave the field
 12131  // unset. The policy in the response might use the policy version that you
 12132  // specified, or it might use a lower policy version. For example, if you
 12133  // specify version 3, but the policy has no conditional role bindings, the
 12134  // response uses version 1. To learn which resources support conditions in
 12135  // their IAM policies, see the IAM documentation
 12136  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 12137  func (c *ProjectsLocationsProvidersGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsProvidersGetIamPolicyCall {
 12138  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 12139  	return c
 12140  }
 12141  
 12142  // Fields allows partial responses to be retrieved. See
 12143  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12144  // details.
 12145  func (c *ProjectsLocationsProvidersGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvidersGetIamPolicyCall {
 12146  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12147  	return c
 12148  }
 12149  
 12150  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12151  // object's ETag matches the given value. This is useful for getting updates
 12152  // only after the object has changed since the last request.
 12153  func (c *ProjectsLocationsProvidersGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvidersGetIamPolicyCall {
 12154  	c.ifNoneMatch_ = entityTag
 12155  	return c
 12156  }
 12157  
 12158  // Context sets the context to be used in this call's Do method.
 12159  func (c *ProjectsLocationsProvidersGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsProvidersGetIamPolicyCall {
 12160  	c.ctx_ = ctx
 12161  	return c
 12162  }
 12163  
 12164  // Header returns a http.Header that can be modified by the caller to add
 12165  // headers to the request.
 12166  func (c *ProjectsLocationsProvidersGetIamPolicyCall) Header() http.Header {
 12167  	if c.header_ == nil {
 12168  		c.header_ = make(http.Header)
 12169  	}
 12170  	return c.header_
 12171  }
 12172  
 12173  func (c *ProjectsLocationsProvidersGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 12174  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12175  	if c.ifNoneMatch_ != "" {
 12176  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12177  	}
 12178  	var body io.Reader = nil
 12179  	c.urlParams_.Set("alt", alt)
 12180  	c.urlParams_.Set("prettyPrint", "false")
 12181  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 12182  	urls += "?" + c.urlParams_.Encode()
 12183  	req, err := http.NewRequest("GET", urls, body)
 12184  	if err != nil {
 12185  		return nil, err
 12186  	}
 12187  	req.Header = reqHeaders
 12188  	googleapi.Expand(req.URL, map[string]string{
 12189  		"resource": c.resource,
 12190  	})
 12191  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12192  }
 12193  
 12194  // Do executes the "connectors.projects.locations.providers.getIamPolicy" call.
 12195  // Any non-2xx status code is an error. Response headers are in either
 12196  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 12197  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12198  // whether the returned error was because http.StatusNotModified was returned.
 12199  func (c *ProjectsLocationsProvidersGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 12200  	gensupport.SetOptions(c.urlParams_, opts...)
 12201  	res, err := c.doRequest("json")
 12202  	if res != nil && res.StatusCode == http.StatusNotModified {
 12203  		if res.Body != nil {
 12204  			res.Body.Close()
 12205  		}
 12206  		return nil, gensupport.WrapError(&googleapi.Error{
 12207  			Code:   res.StatusCode,
 12208  			Header: res.Header,
 12209  		})
 12210  	}
 12211  	if err != nil {
 12212  		return nil, err
 12213  	}
 12214  	defer googleapi.CloseBody(res)
 12215  	if err := googleapi.CheckResponse(res); err != nil {
 12216  		return nil, gensupport.WrapError(err)
 12217  	}
 12218  	ret := &Policy{
 12219  		ServerResponse: googleapi.ServerResponse{
 12220  			Header:         res.Header,
 12221  			HTTPStatusCode: res.StatusCode,
 12222  		},
 12223  	}
 12224  	target := &ret
 12225  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12226  		return nil, err
 12227  	}
 12228  	return ret, nil
 12229  }
 12230  
 12231  type ProjectsLocationsProvidersListCall struct {
 12232  	s            *Service
 12233  	parent       string
 12234  	urlParams_   gensupport.URLParams
 12235  	ifNoneMatch_ string
 12236  	ctx_         context.Context
 12237  	header_      http.Header
 12238  }
 12239  
 12240  // List: Lists Providers in a given project and location.
 12241  //
 12242  //   - parent: Parent resource of the API, of the form: `projects/*/locations/*`
 12243  //     Only global location is supported for Provider resource.
 12244  func (r *ProjectsLocationsProvidersService) List(parent string) *ProjectsLocationsProvidersListCall {
 12245  	c := &ProjectsLocationsProvidersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12246  	c.parent = parent
 12247  	return c
 12248  }
 12249  
 12250  // PageSize sets the optional parameter "pageSize": Page size.
 12251  func (c *ProjectsLocationsProvidersListCall) PageSize(pageSize int64) *ProjectsLocationsProvidersListCall {
 12252  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12253  	return c
 12254  }
 12255  
 12256  // PageToken sets the optional parameter "pageToken": Page token.
 12257  func (c *ProjectsLocationsProvidersListCall) PageToken(pageToken string) *ProjectsLocationsProvidersListCall {
 12258  	c.urlParams_.Set("pageToken", pageToken)
 12259  	return c
 12260  }
 12261  
 12262  // Fields allows partial responses to be retrieved. See
 12263  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12264  // details.
 12265  func (c *ProjectsLocationsProvidersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvidersListCall {
 12266  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12267  	return c
 12268  }
 12269  
 12270  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12271  // object's ETag matches the given value. This is useful for getting updates
 12272  // only after the object has changed since the last request.
 12273  func (c *ProjectsLocationsProvidersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvidersListCall {
 12274  	c.ifNoneMatch_ = entityTag
 12275  	return c
 12276  }
 12277  
 12278  // Context sets the context to be used in this call's Do method.
 12279  func (c *ProjectsLocationsProvidersListCall) Context(ctx context.Context) *ProjectsLocationsProvidersListCall {
 12280  	c.ctx_ = ctx
 12281  	return c
 12282  }
 12283  
 12284  // Header returns a http.Header that can be modified by the caller to add
 12285  // headers to the request.
 12286  func (c *ProjectsLocationsProvidersListCall) Header() http.Header {
 12287  	if c.header_ == nil {
 12288  		c.header_ = make(http.Header)
 12289  	}
 12290  	return c.header_
 12291  }
 12292  
 12293  func (c *ProjectsLocationsProvidersListCall) doRequest(alt string) (*http.Response, error) {
 12294  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12295  	if c.ifNoneMatch_ != "" {
 12296  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12297  	}
 12298  	var body io.Reader = nil
 12299  	c.urlParams_.Set("alt", alt)
 12300  	c.urlParams_.Set("prettyPrint", "false")
 12301  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/providers")
 12302  	urls += "?" + c.urlParams_.Encode()
 12303  	req, err := http.NewRequest("GET", urls, body)
 12304  	if err != nil {
 12305  		return nil, err
 12306  	}
 12307  	req.Header = reqHeaders
 12308  	googleapi.Expand(req.URL, map[string]string{
 12309  		"parent": c.parent,
 12310  	})
 12311  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12312  }
 12313  
 12314  // Do executes the "connectors.projects.locations.providers.list" call.
 12315  // Any non-2xx status code is an error. Response headers are in either
 12316  // *ListProvidersResponse.ServerResponse.Header or (if a response was returned
 12317  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12318  // check whether the returned error was because http.StatusNotModified was
 12319  // returned.
 12320  func (c *ProjectsLocationsProvidersListCall) Do(opts ...googleapi.CallOption) (*ListProvidersResponse, error) {
 12321  	gensupport.SetOptions(c.urlParams_, opts...)
 12322  	res, err := c.doRequest("json")
 12323  	if res != nil && res.StatusCode == http.StatusNotModified {
 12324  		if res.Body != nil {
 12325  			res.Body.Close()
 12326  		}
 12327  		return nil, gensupport.WrapError(&googleapi.Error{
 12328  			Code:   res.StatusCode,
 12329  			Header: res.Header,
 12330  		})
 12331  	}
 12332  	if err != nil {
 12333  		return nil, err
 12334  	}
 12335  	defer googleapi.CloseBody(res)
 12336  	if err := googleapi.CheckResponse(res); err != nil {
 12337  		return nil, gensupport.WrapError(err)
 12338  	}
 12339  	ret := &ListProvidersResponse{
 12340  		ServerResponse: googleapi.ServerResponse{
 12341  			Header:         res.Header,
 12342  			HTTPStatusCode: res.StatusCode,
 12343  		},
 12344  	}
 12345  	target := &ret
 12346  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12347  		return nil, err
 12348  	}
 12349  	return ret, nil
 12350  }
 12351  
 12352  // Pages invokes f for each page of results.
 12353  // A non-nil error returned from f will halt the iteration.
 12354  // The provided context supersedes any context provided to the Context method.
 12355  func (c *ProjectsLocationsProvidersListCall) Pages(ctx context.Context, f func(*ListProvidersResponse) error) error {
 12356  	c.ctx_ = ctx
 12357  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12358  	for {
 12359  		x, err := c.Do()
 12360  		if err != nil {
 12361  			return err
 12362  		}
 12363  		if err := f(x); err != nil {
 12364  			return err
 12365  		}
 12366  		if x.NextPageToken == "" {
 12367  			return nil
 12368  		}
 12369  		c.PageToken(x.NextPageToken)
 12370  	}
 12371  }
 12372  
 12373  type ProjectsLocationsProvidersSetIamPolicyCall struct {
 12374  	s                   *Service
 12375  	resource            string
 12376  	setiampolicyrequest *SetIamPolicyRequest
 12377  	urlParams_          gensupport.URLParams
 12378  	ctx_                context.Context
 12379  	header_             http.Header
 12380  }
 12381  
 12382  // SetIamPolicy: Sets the access control policy on the specified resource.
 12383  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
 12384  // and `PERMISSION_DENIED` errors.
 12385  //
 12386  //   - resource: REQUIRED: The resource for which the policy is being specified.
 12387  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 12388  //     for the appropriate value for this field.
 12389  func (r *ProjectsLocationsProvidersService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsProvidersSetIamPolicyCall {
 12390  	c := &ProjectsLocationsProvidersSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12391  	c.resource = resource
 12392  	c.setiampolicyrequest = setiampolicyrequest
 12393  	return c
 12394  }
 12395  
 12396  // Fields allows partial responses to be retrieved. See
 12397  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12398  // details.
 12399  func (c *ProjectsLocationsProvidersSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvidersSetIamPolicyCall {
 12400  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12401  	return c
 12402  }
 12403  
 12404  // Context sets the context to be used in this call's Do method.
 12405  func (c *ProjectsLocationsProvidersSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsProvidersSetIamPolicyCall {
 12406  	c.ctx_ = ctx
 12407  	return c
 12408  }
 12409  
 12410  // Header returns a http.Header that can be modified by the caller to add
 12411  // headers to the request.
 12412  func (c *ProjectsLocationsProvidersSetIamPolicyCall) Header() http.Header {
 12413  	if c.header_ == nil {
 12414  		c.header_ = make(http.Header)
 12415  	}
 12416  	return c.header_
 12417  }
 12418  
 12419  func (c *ProjectsLocationsProvidersSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 12420  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12421  	var body io.Reader = nil
 12422  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 12423  	if err != nil {
 12424  		return nil, err
 12425  	}
 12426  	c.urlParams_.Set("alt", alt)
 12427  	c.urlParams_.Set("prettyPrint", "false")
 12428  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 12429  	urls += "?" + c.urlParams_.Encode()
 12430  	req, err := http.NewRequest("POST", urls, body)
 12431  	if err != nil {
 12432  		return nil, err
 12433  	}
 12434  	req.Header = reqHeaders
 12435  	googleapi.Expand(req.URL, map[string]string{
 12436  		"resource": c.resource,
 12437  	})
 12438  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12439  }
 12440  
 12441  // Do executes the "connectors.projects.locations.providers.setIamPolicy" call.
 12442  // Any non-2xx status code is an error. Response headers are in either
 12443  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 12444  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12445  // whether the returned error was because http.StatusNotModified was returned.
 12446  func (c *ProjectsLocationsProvidersSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 12447  	gensupport.SetOptions(c.urlParams_, opts...)
 12448  	res, err := c.doRequest("json")
 12449  	if res != nil && res.StatusCode == http.StatusNotModified {
 12450  		if res.Body != nil {
 12451  			res.Body.Close()
 12452  		}
 12453  		return nil, gensupport.WrapError(&googleapi.Error{
 12454  			Code:   res.StatusCode,
 12455  			Header: res.Header,
 12456  		})
 12457  	}
 12458  	if err != nil {
 12459  		return nil, err
 12460  	}
 12461  	defer googleapi.CloseBody(res)
 12462  	if err := googleapi.CheckResponse(res); err != nil {
 12463  		return nil, gensupport.WrapError(err)
 12464  	}
 12465  	ret := &Policy{
 12466  		ServerResponse: googleapi.ServerResponse{
 12467  			Header:         res.Header,
 12468  			HTTPStatusCode: res.StatusCode,
 12469  		},
 12470  	}
 12471  	target := &ret
 12472  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12473  		return nil, err
 12474  	}
 12475  	return ret, nil
 12476  }
 12477  
 12478  type ProjectsLocationsProvidersTestIamPermissionsCall struct {
 12479  	s                         *Service
 12480  	resource                  string
 12481  	testiampermissionsrequest *TestIamPermissionsRequest
 12482  	urlParams_                gensupport.URLParams
 12483  	ctx_                      context.Context
 12484  	header_                   http.Header
 12485  }
 12486  
 12487  // TestIamPermissions: Returns permissions that a caller has on the specified
 12488  // resource. If the resource does not exist, this will return an empty set of
 12489  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
 12490  // used for building permission-aware UIs and command-line tools, not for
 12491  // authorization checking. This operation may "fail open" without warning.
 12492  //
 12493  //   - resource: REQUIRED: The resource for which the policy detail is being
 12494  //     requested. See Resource names
 12495  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 12496  //     value for this field.
 12497  func (r *ProjectsLocationsProvidersService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsProvidersTestIamPermissionsCall {
 12498  	c := &ProjectsLocationsProvidersTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12499  	c.resource = resource
 12500  	c.testiampermissionsrequest = testiampermissionsrequest
 12501  	return c
 12502  }
 12503  
 12504  // Fields allows partial responses to be retrieved. See
 12505  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12506  // details.
 12507  func (c *ProjectsLocationsProvidersTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvidersTestIamPermissionsCall {
 12508  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12509  	return c
 12510  }
 12511  
 12512  // Context sets the context to be used in this call's Do method.
 12513  func (c *ProjectsLocationsProvidersTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsProvidersTestIamPermissionsCall {
 12514  	c.ctx_ = ctx
 12515  	return c
 12516  }
 12517  
 12518  // Header returns a http.Header that can be modified by the caller to add
 12519  // headers to the request.
 12520  func (c *ProjectsLocationsProvidersTestIamPermissionsCall) Header() http.Header {
 12521  	if c.header_ == nil {
 12522  		c.header_ = make(http.Header)
 12523  	}
 12524  	return c.header_
 12525  }
 12526  
 12527  func (c *ProjectsLocationsProvidersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 12528  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12529  	var body io.Reader = nil
 12530  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 12531  	if err != nil {
 12532  		return nil, err
 12533  	}
 12534  	c.urlParams_.Set("alt", alt)
 12535  	c.urlParams_.Set("prettyPrint", "false")
 12536  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 12537  	urls += "?" + c.urlParams_.Encode()
 12538  	req, err := http.NewRequest("POST", urls, body)
 12539  	if err != nil {
 12540  		return nil, err
 12541  	}
 12542  	req.Header = reqHeaders
 12543  	googleapi.Expand(req.URL, map[string]string{
 12544  		"resource": c.resource,
 12545  	})
 12546  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12547  }
 12548  
 12549  // Do executes the "connectors.projects.locations.providers.testIamPermissions" call.
 12550  // Any non-2xx status code is an error. Response headers are in either
 12551  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 12552  // returned at all) in error.(*googleapi.Error).Header. Use
 12553  // googleapi.IsNotModified to check whether the returned error was because
 12554  // http.StatusNotModified was returned.
 12555  func (c *ProjectsLocationsProvidersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 12556  	gensupport.SetOptions(c.urlParams_, opts...)
 12557  	res, err := c.doRequest("json")
 12558  	if res != nil && res.StatusCode == http.StatusNotModified {
 12559  		if res.Body != nil {
 12560  			res.Body.Close()
 12561  		}
 12562  		return nil, gensupport.WrapError(&googleapi.Error{
 12563  			Code:   res.StatusCode,
 12564  			Header: res.Header,
 12565  		})
 12566  	}
 12567  	if err != nil {
 12568  		return nil, err
 12569  	}
 12570  	defer googleapi.CloseBody(res)
 12571  	if err := googleapi.CheckResponse(res); err != nil {
 12572  		return nil, gensupport.WrapError(err)
 12573  	}
 12574  	ret := &TestIamPermissionsResponse{
 12575  		ServerResponse: googleapi.ServerResponse{
 12576  			Header:         res.Header,
 12577  			HTTPStatusCode: res.StatusCode,
 12578  		},
 12579  	}
 12580  	target := &ret
 12581  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12582  		return nil, err
 12583  	}
 12584  	return ret, nil
 12585  }
 12586  
 12587  type ProjectsLocationsProvidersConnectorsGetCall struct {
 12588  	s            *Service
 12589  	name         string
 12590  	urlParams_   gensupport.URLParams
 12591  	ifNoneMatch_ string
 12592  	ctx_         context.Context
 12593  	header_      http.Header
 12594  }
 12595  
 12596  // Get: Gets details of a single Connector.
 12597  //
 12598  //   - name: Resource name of the form:
 12599  //     `projects/*/locations/*/providers/*/connectors/*` Only global location is
 12600  //     supported for Connector resource.
 12601  func (r *ProjectsLocationsProvidersConnectorsService) Get(name string) *ProjectsLocationsProvidersConnectorsGetCall {
 12602  	c := &ProjectsLocationsProvidersConnectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12603  	c.name = name
 12604  	return c
 12605  }
 12606  
 12607  // Fields allows partial responses to be retrieved. See
 12608  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12609  // details.
 12610  func (c *ProjectsLocationsProvidersConnectorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvidersConnectorsGetCall {
 12611  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12612  	return c
 12613  }
 12614  
 12615  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12616  // object's ETag matches the given value. This is useful for getting updates
 12617  // only after the object has changed since the last request.
 12618  func (c *ProjectsLocationsProvidersConnectorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvidersConnectorsGetCall {
 12619  	c.ifNoneMatch_ = entityTag
 12620  	return c
 12621  }
 12622  
 12623  // Context sets the context to be used in this call's Do method.
 12624  func (c *ProjectsLocationsProvidersConnectorsGetCall) Context(ctx context.Context) *ProjectsLocationsProvidersConnectorsGetCall {
 12625  	c.ctx_ = ctx
 12626  	return c
 12627  }
 12628  
 12629  // Header returns a http.Header that can be modified by the caller to add
 12630  // headers to the request.
 12631  func (c *ProjectsLocationsProvidersConnectorsGetCall) Header() http.Header {
 12632  	if c.header_ == nil {
 12633  		c.header_ = make(http.Header)
 12634  	}
 12635  	return c.header_
 12636  }
 12637  
 12638  func (c *ProjectsLocationsProvidersConnectorsGetCall) doRequest(alt string) (*http.Response, error) {
 12639  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12640  	if c.ifNoneMatch_ != "" {
 12641  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12642  	}
 12643  	var body io.Reader = nil
 12644  	c.urlParams_.Set("alt", alt)
 12645  	c.urlParams_.Set("prettyPrint", "false")
 12646  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12647  	urls += "?" + c.urlParams_.Encode()
 12648  	req, err := http.NewRequest("GET", urls, body)
 12649  	if err != nil {
 12650  		return nil, err
 12651  	}
 12652  	req.Header = reqHeaders
 12653  	googleapi.Expand(req.URL, map[string]string{
 12654  		"name": c.name,
 12655  	})
 12656  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12657  }
 12658  
 12659  // Do executes the "connectors.projects.locations.providers.connectors.get" call.
 12660  // Any non-2xx status code is an error. Response headers are in either
 12661  // *Connector.ServerResponse.Header or (if a response was returned at all) in
 12662  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12663  // whether the returned error was because http.StatusNotModified was returned.
 12664  func (c *ProjectsLocationsProvidersConnectorsGetCall) Do(opts ...googleapi.CallOption) (*Connector, error) {
 12665  	gensupport.SetOptions(c.urlParams_, opts...)
 12666  	res, err := c.doRequest("json")
 12667  	if res != nil && res.StatusCode == http.StatusNotModified {
 12668  		if res.Body != nil {
 12669  			res.Body.Close()
 12670  		}
 12671  		return nil, gensupport.WrapError(&googleapi.Error{
 12672  			Code:   res.StatusCode,
 12673  			Header: res.Header,
 12674  		})
 12675  	}
 12676  	if err != nil {
 12677  		return nil, err
 12678  	}
 12679  	defer googleapi.CloseBody(res)
 12680  	if err := googleapi.CheckResponse(res); err != nil {
 12681  		return nil, gensupport.WrapError(err)
 12682  	}
 12683  	ret := &Connector{
 12684  		ServerResponse: googleapi.ServerResponse{
 12685  			Header:         res.Header,
 12686  			HTTPStatusCode: res.StatusCode,
 12687  		},
 12688  	}
 12689  	target := &ret
 12690  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12691  		return nil, err
 12692  	}
 12693  	return ret, nil
 12694  }
 12695  
 12696  type ProjectsLocationsProvidersConnectorsListCall struct {
 12697  	s            *Service
 12698  	parent       string
 12699  	urlParams_   gensupport.URLParams
 12700  	ifNoneMatch_ string
 12701  	ctx_         context.Context
 12702  	header_      http.Header
 12703  }
 12704  
 12705  // List: Lists Connectors in a given project and location.
 12706  //
 12707  //   - parent: Parent resource of the connectors, of the form:
 12708  //     `projects/*/locations/*/providers/*` Only global location is supported for
 12709  //     Connector resource.
 12710  func (r *ProjectsLocationsProvidersConnectorsService) List(parent string) *ProjectsLocationsProvidersConnectorsListCall {
 12711  	c := &ProjectsLocationsProvidersConnectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12712  	c.parent = parent
 12713  	return c
 12714  }
 12715  
 12716  // Filter sets the optional parameter "filter": Filter string.
 12717  func (c *ProjectsLocationsProvidersConnectorsListCall) Filter(filter string) *ProjectsLocationsProvidersConnectorsListCall {
 12718  	c.urlParams_.Set("filter", filter)
 12719  	return c
 12720  }
 12721  
 12722  // PageSize sets the optional parameter "pageSize": Page size.
 12723  func (c *ProjectsLocationsProvidersConnectorsListCall) PageSize(pageSize int64) *ProjectsLocationsProvidersConnectorsListCall {
 12724  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12725  	return c
 12726  }
 12727  
 12728  // PageToken sets the optional parameter "pageToken": Page token.
 12729  func (c *ProjectsLocationsProvidersConnectorsListCall) PageToken(pageToken string) *ProjectsLocationsProvidersConnectorsListCall {
 12730  	c.urlParams_.Set("pageToken", pageToken)
 12731  	return c
 12732  }
 12733  
 12734  // Fields allows partial responses to be retrieved. See
 12735  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12736  // details.
 12737  func (c *ProjectsLocationsProvidersConnectorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvidersConnectorsListCall {
 12738  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12739  	return c
 12740  }
 12741  
 12742  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12743  // object's ETag matches the given value. This is useful for getting updates
 12744  // only after the object has changed since the last request.
 12745  func (c *ProjectsLocationsProvidersConnectorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvidersConnectorsListCall {
 12746  	c.ifNoneMatch_ = entityTag
 12747  	return c
 12748  }
 12749  
 12750  // Context sets the context to be used in this call's Do method.
 12751  func (c *ProjectsLocationsProvidersConnectorsListCall) Context(ctx context.Context) *ProjectsLocationsProvidersConnectorsListCall {
 12752  	c.ctx_ = ctx
 12753  	return c
 12754  }
 12755  
 12756  // Header returns a http.Header that can be modified by the caller to add
 12757  // headers to the request.
 12758  func (c *ProjectsLocationsProvidersConnectorsListCall) Header() http.Header {
 12759  	if c.header_ == nil {
 12760  		c.header_ = make(http.Header)
 12761  	}
 12762  	return c.header_
 12763  }
 12764  
 12765  func (c *ProjectsLocationsProvidersConnectorsListCall) doRequest(alt string) (*http.Response, error) {
 12766  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12767  	if c.ifNoneMatch_ != "" {
 12768  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12769  	}
 12770  	var body io.Reader = nil
 12771  	c.urlParams_.Set("alt", alt)
 12772  	c.urlParams_.Set("prettyPrint", "false")
 12773  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectors")
 12774  	urls += "?" + c.urlParams_.Encode()
 12775  	req, err := http.NewRequest("GET", urls, body)
 12776  	if err != nil {
 12777  		return nil, err
 12778  	}
 12779  	req.Header = reqHeaders
 12780  	googleapi.Expand(req.URL, map[string]string{
 12781  		"parent": c.parent,
 12782  	})
 12783  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12784  }
 12785  
 12786  // Do executes the "connectors.projects.locations.providers.connectors.list" call.
 12787  // Any non-2xx status code is an error. Response headers are in either
 12788  // *ListConnectorsResponse.ServerResponse.Header or (if a response was returned
 12789  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12790  // check whether the returned error was because http.StatusNotModified was
 12791  // returned.
 12792  func (c *ProjectsLocationsProvidersConnectorsListCall) Do(opts ...googleapi.CallOption) (*ListConnectorsResponse, error) {
 12793  	gensupport.SetOptions(c.urlParams_, opts...)
 12794  	res, err := c.doRequest("json")
 12795  	if res != nil && res.StatusCode == http.StatusNotModified {
 12796  		if res.Body != nil {
 12797  			res.Body.Close()
 12798  		}
 12799  		return nil, gensupport.WrapError(&googleapi.Error{
 12800  			Code:   res.StatusCode,
 12801  			Header: res.Header,
 12802  		})
 12803  	}
 12804  	if err != nil {
 12805  		return nil, err
 12806  	}
 12807  	defer googleapi.CloseBody(res)
 12808  	if err := googleapi.CheckResponse(res); err != nil {
 12809  		return nil, gensupport.WrapError(err)
 12810  	}
 12811  	ret := &ListConnectorsResponse{
 12812  		ServerResponse: googleapi.ServerResponse{
 12813  			Header:         res.Header,
 12814  			HTTPStatusCode: res.StatusCode,
 12815  		},
 12816  	}
 12817  	target := &ret
 12818  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12819  		return nil, err
 12820  	}
 12821  	return ret, nil
 12822  }
 12823  
 12824  // Pages invokes f for each page of results.
 12825  // A non-nil error returned from f will halt the iteration.
 12826  // The provided context supersedes any context provided to the Context method.
 12827  func (c *ProjectsLocationsProvidersConnectorsListCall) Pages(ctx context.Context, f func(*ListConnectorsResponse) error) error {
 12828  	c.ctx_ = ctx
 12829  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12830  	for {
 12831  		x, err := c.Do()
 12832  		if err != nil {
 12833  			return err
 12834  		}
 12835  		if err := f(x); err != nil {
 12836  			return err
 12837  		}
 12838  		if x.NextPageToken == "" {
 12839  			return nil
 12840  		}
 12841  		c.PageToken(x.NextPageToken)
 12842  	}
 12843  }
 12844  
 12845  type ProjectsLocationsProvidersConnectorsVersionsGetCall struct {
 12846  	s            *Service
 12847  	name         string
 12848  	urlParams_   gensupport.URLParams
 12849  	ifNoneMatch_ string
 12850  	ctx_         context.Context
 12851  	header_      http.Header
 12852  }
 12853  
 12854  // Get: Gets details of a single connector version.
 12855  //
 12856  //   - name: Resource name of the form:
 12857  //     `projects/*/locations/*/providers/*/connectors/*/versions/*` Only global
 12858  //     location is supported for ConnectorVersion resource.
 12859  func (r *ProjectsLocationsProvidersConnectorsVersionsService) Get(name string) *ProjectsLocationsProvidersConnectorsVersionsGetCall {
 12860  	c := &ProjectsLocationsProvidersConnectorsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12861  	c.name = name
 12862  	return c
 12863  }
 12864  
 12865  // View sets the optional parameter "view": Specifies which fields of the
 12866  // ConnectorVersion are returned in the response. Defaults to `CUSTOMER` view.
 12867  //
 12868  // Possible values:
 12869  //
 12870  //	"CONNECTOR_VERSION_VIEW_UNSPECIFIED" - CONNECTOR_VERSION_VIEW_UNSPECIFIED.
 12871  //	"CONNECTOR_VERSION_VIEW_BASIC" - Do not include role grant configs.
 12872  //	"CONNECTOR_VERSION_VIEW_FULL" - Include role grant configs.
 12873  func (c *ProjectsLocationsProvidersConnectorsVersionsGetCall) View(view string) *ProjectsLocationsProvidersConnectorsVersionsGetCall {
 12874  	c.urlParams_.Set("view", view)
 12875  	return c
 12876  }
 12877  
 12878  // Fields allows partial responses to be retrieved. See
 12879  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12880  // details.
 12881  func (c *ProjectsLocationsProvidersConnectorsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvidersConnectorsVersionsGetCall {
 12882  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12883  	return c
 12884  }
 12885  
 12886  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12887  // object's ETag matches the given value. This is useful for getting updates
 12888  // only after the object has changed since the last request.
 12889  func (c *ProjectsLocationsProvidersConnectorsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvidersConnectorsVersionsGetCall {
 12890  	c.ifNoneMatch_ = entityTag
 12891  	return c
 12892  }
 12893  
 12894  // Context sets the context to be used in this call's Do method.
 12895  func (c *ProjectsLocationsProvidersConnectorsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsProvidersConnectorsVersionsGetCall {
 12896  	c.ctx_ = ctx
 12897  	return c
 12898  }
 12899  
 12900  // Header returns a http.Header that can be modified by the caller to add
 12901  // headers to the request.
 12902  func (c *ProjectsLocationsProvidersConnectorsVersionsGetCall) Header() http.Header {
 12903  	if c.header_ == nil {
 12904  		c.header_ = make(http.Header)
 12905  	}
 12906  	return c.header_
 12907  }
 12908  
 12909  func (c *ProjectsLocationsProvidersConnectorsVersionsGetCall) doRequest(alt string) (*http.Response, error) {
 12910  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12911  	if c.ifNoneMatch_ != "" {
 12912  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12913  	}
 12914  	var body io.Reader = nil
 12915  	c.urlParams_.Set("alt", alt)
 12916  	c.urlParams_.Set("prettyPrint", "false")
 12917  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12918  	urls += "?" + c.urlParams_.Encode()
 12919  	req, err := http.NewRequest("GET", urls, body)
 12920  	if err != nil {
 12921  		return nil, err
 12922  	}
 12923  	req.Header = reqHeaders
 12924  	googleapi.Expand(req.URL, map[string]string{
 12925  		"name": c.name,
 12926  	})
 12927  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12928  }
 12929  
 12930  // Do executes the "connectors.projects.locations.providers.connectors.versions.get" call.
 12931  // Any non-2xx status code is an error. Response headers are in either
 12932  // *ConnectorVersion.ServerResponse.Header or (if a response was returned at
 12933  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12934  // check whether the returned error was because http.StatusNotModified was
 12935  // returned.
 12936  func (c *ProjectsLocationsProvidersConnectorsVersionsGetCall) Do(opts ...googleapi.CallOption) (*ConnectorVersion, error) {
 12937  	gensupport.SetOptions(c.urlParams_, opts...)
 12938  	res, err := c.doRequest("json")
 12939  	if res != nil && res.StatusCode == http.StatusNotModified {
 12940  		if res.Body != nil {
 12941  			res.Body.Close()
 12942  		}
 12943  		return nil, gensupport.WrapError(&googleapi.Error{
 12944  			Code:   res.StatusCode,
 12945  			Header: res.Header,
 12946  		})
 12947  	}
 12948  	if err != nil {
 12949  		return nil, err
 12950  	}
 12951  	defer googleapi.CloseBody(res)
 12952  	if err := googleapi.CheckResponse(res); err != nil {
 12953  		return nil, gensupport.WrapError(err)
 12954  	}
 12955  	ret := &ConnectorVersion{
 12956  		ServerResponse: googleapi.ServerResponse{
 12957  			Header:         res.Header,
 12958  			HTTPStatusCode: res.StatusCode,
 12959  		},
 12960  	}
 12961  	target := &ret
 12962  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12963  		return nil, err
 12964  	}
 12965  	return ret, nil
 12966  }
 12967  
 12968  type ProjectsLocationsProvidersConnectorsVersionsListCall struct {
 12969  	s            *Service
 12970  	parent       string
 12971  	urlParams_   gensupport.URLParams
 12972  	ifNoneMatch_ string
 12973  	ctx_         context.Context
 12974  	header_      http.Header
 12975  }
 12976  
 12977  // List: Lists Connector Versions in a given project and location.
 12978  //
 12979  //   - parent: Parent resource of the connectors, of the form:
 12980  //     `projects/*/locations/*/providers/*/connectors/*` Only global location is
 12981  //     supported for ConnectorVersion resource.
 12982  func (r *ProjectsLocationsProvidersConnectorsVersionsService) List(parent string) *ProjectsLocationsProvidersConnectorsVersionsListCall {
 12983  	c := &ProjectsLocationsProvidersConnectorsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12984  	c.parent = parent
 12985  	return c
 12986  }
 12987  
 12988  // PageSize sets the optional parameter "pageSize": Page size.
 12989  func (c *ProjectsLocationsProvidersConnectorsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsProvidersConnectorsVersionsListCall {
 12990  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12991  	return c
 12992  }
 12993  
 12994  // PageToken sets the optional parameter "pageToken": Page token.
 12995  func (c *ProjectsLocationsProvidersConnectorsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsProvidersConnectorsVersionsListCall {
 12996  	c.urlParams_.Set("pageToken", pageToken)
 12997  	return c
 12998  }
 12999  
 13000  // View sets the optional parameter "view": Specifies which fields of the
 13001  // ConnectorVersion are returned in the response. Defaults to `BASIC` view.
 13002  //
 13003  // Possible values:
 13004  //
 13005  //	"CONNECTOR_VERSION_VIEW_UNSPECIFIED" - CONNECTOR_VERSION_VIEW_UNSPECIFIED.
 13006  //	"CONNECTOR_VERSION_VIEW_BASIC" - Do not include role grant configs.
 13007  //	"CONNECTOR_VERSION_VIEW_FULL" - Include role grant configs.
 13008  func (c *ProjectsLocationsProvidersConnectorsVersionsListCall) View(view string) *ProjectsLocationsProvidersConnectorsVersionsListCall {
 13009  	c.urlParams_.Set("view", view)
 13010  	return c
 13011  }
 13012  
 13013  // Fields allows partial responses to be retrieved. See
 13014  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13015  // details.
 13016  func (c *ProjectsLocationsProvidersConnectorsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvidersConnectorsVersionsListCall {
 13017  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13018  	return c
 13019  }
 13020  
 13021  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13022  // object's ETag matches the given value. This is useful for getting updates
 13023  // only after the object has changed since the last request.
 13024  func (c *ProjectsLocationsProvidersConnectorsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvidersConnectorsVersionsListCall {
 13025  	c.ifNoneMatch_ = entityTag
 13026  	return c
 13027  }
 13028  
 13029  // Context sets the context to be used in this call's Do method.
 13030  func (c *ProjectsLocationsProvidersConnectorsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsProvidersConnectorsVersionsListCall {
 13031  	c.ctx_ = ctx
 13032  	return c
 13033  }
 13034  
 13035  // Header returns a http.Header that can be modified by the caller to add
 13036  // headers to the request.
 13037  func (c *ProjectsLocationsProvidersConnectorsVersionsListCall) Header() http.Header {
 13038  	if c.header_ == nil {
 13039  		c.header_ = make(http.Header)
 13040  	}
 13041  	return c.header_
 13042  }
 13043  
 13044  func (c *ProjectsLocationsProvidersConnectorsVersionsListCall) doRequest(alt string) (*http.Response, error) {
 13045  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13046  	if c.ifNoneMatch_ != "" {
 13047  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13048  	}
 13049  	var body io.Reader = nil
 13050  	c.urlParams_.Set("alt", alt)
 13051  	c.urlParams_.Set("prettyPrint", "false")
 13052  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions")
 13053  	urls += "?" + c.urlParams_.Encode()
 13054  	req, err := http.NewRequest("GET", urls, body)
 13055  	if err != nil {
 13056  		return nil, err
 13057  	}
 13058  	req.Header = reqHeaders
 13059  	googleapi.Expand(req.URL, map[string]string{
 13060  		"parent": c.parent,
 13061  	})
 13062  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13063  }
 13064  
 13065  // Do executes the "connectors.projects.locations.providers.connectors.versions.list" call.
 13066  // Any non-2xx status code is an error. Response headers are in either
 13067  // *ListConnectorVersionsResponse.ServerResponse.Header or (if a response was
 13068  // returned at all) in error.(*googleapi.Error).Header. Use
 13069  // googleapi.IsNotModified to check whether the returned error was because
 13070  // http.StatusNotModified was returned.
 13071  func (c *ProjectsLocationsProvidersConnectorsVersionsListCall) Do(opts ...googleapi.CallOption) (*ListConnectorVersionsResponse, error) {
 13072  	gensupport.SetOptions(c.urlParams_, opts...)
 13073  	res, err := c.doRequest("json")
 13074  	if res != nil && res.StatusCode == http.StatusNotModified {
 13075  		if res.Body != nil {
 13076  			res.Body.Close()
 13077  		}
 13078  		return nil, gensupport.WrapError(&googleapi.Error{
 13079  			Code:   res.StatusCode,
 13080  			Header: res.Header,
 13081  		})
 13082  	}
 13083  	if err != nil {
 13084  		return nil, err
 13085  	}
 13086  	defer googleapi.CloseBody(res)
 13087  	if err := googleapi.CheckResponse(res); err != nil {
 13088  		return nil, gensupport.WrapError(err)
 13089  	}
 13090  	ret := &ListConnectorVersionsResponse{
 13091  		ServerResponse: googleapi.ServerResponse{
 13092  			Header:         res.Header,
 13093  			HTTPStatusCode: res.StatusCode,
 13094  		},
 13095  	}
 13096  	target := &ret
 13097  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13098  		return nil, err
 13099  	}
 13100  	return ret, nil
 13101  }
 13102  
 13103  // Pages invokes f for each page of results.
 13104  // A non-nil error returned from f will halt the iteration.
 13105  // The provided context supersedes any context provided to the Context method.
 13106  func (c *ProjectsLocationsProvidersConnectorsVersionsListCall) Pages(ctx context.Context, f func(*ListConnectorVersionsResponse) error) error {
 13107  	c.ctx_ = ctx
 13108  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13109  	for {
 13110  		x, err := c.Do()
 13111  		if err != nil {
 13112  			return err
 13113  		}
 13114  		if err := f(x); err != nil {
 13115  			return err
 13116  		}
 13117  		if x.NextPageToken == "" {
 13118  			return nil
 13119  		}
 13120  		c.PageToken(x.NextPageToken)
 13121  	}
 13122  }
 13123  
 13124  type ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall struct {
 13125  	s            *Service
 13126  	name         string
 13127  	urlParams_   gensupport.URLParams
 13128  	ifNoneMatch_ string
 13129  	ctx_         context.Context
 13130  	header_      http.Header
 13131  }
 13132  
 13133  // Get: Gets details of a single event type.
 13134  //
 13135  //   - name: Resource name of the form:
 13136  //     `projects/*/locations/*/providers/*/connectors/*/versions/*/eventtypes/*`
 13137  //     Only global location is supported for EventType resource.
 13138  func (r *ProjectsLocationsProvidersConnectorsVersionsEventtypesService) Get(name string) *ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall {
 13139  	c := &ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13140  	c.name = name
 13141  	return c
 13142  }
 13143  
 13144  // Fields allows partial responses to be retrieved. See
 13145  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13146  // details.
 13147  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall {
 13148  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13149  	return c
 13150  }
 13151  
 13152  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13153  // object's ETag matches the given value. This is useful for getting updates
 13154  // only after the object has changed since the last request.
 13155  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall {
 13156  	c.ifNoneMatch_ = entityTag
 13157  	return c
 13158  }
 13159  
 13160  // Context sets the context to be used in this call's Do method.
 13161  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall) Context(ctx context.Context) *ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall {
 13162  	c.ctx_ = ctx
 13163  	return c
 13164  }
 13165  
 13166  // Header returns a http.Header that can be modified by the caller to add
 13167  // headers to the request.
 13168  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall) Header() http.Header {
 13169  	if c.header_ == nil {
 13170  		c.header_ = make(http.Header)
 13171  	}
 13172  	return c.header_
 13173  }
 13174  
 13175  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall) doRequest(alt string) (*http.Response, error) {
 13176  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13177  	if c.ifNoneMatch_ != "" {
 13178  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13179  	}
 13180  	var body io.Reader = nil
 13181  	c.urlParams_.Set("alt", alt)
 13182  	c.urlParams_.Set("prettyPrint", "false")
 13183  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13184  	urls += "?" + c.urlParams_.Encode()
 13185  	req, err := http.NewRequest("GET", urls, body)
 13186  	if err != nil {
 13187  		return nil, err
 13188  	}
 13189  	req.Header = reqHeaders
 13190  	googleapi.Expand(req.URL, map[string]string{
 13191  		"name": c.name,
 13192  	})
 13193  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13194  }
 13195  
 13196  // Do executes the "connectors.projects.locations.providers.connectors.versions.eventtypes.get" call.
 13197  // Any non-2xx status code is an error. Response headers are in either
 13198  // *EventType.ServerResponse.Header or (if a response was returned at all) in
 13199  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13200  // whether the returned error was because http.StatusNotModified was returned.
 13201  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesGetCall) Do(opts ...googleapi.CallOption) (*EventType, error) {
 13202  	gensupport.SetOptions(c.urlParams_, opts...)
 13203  	res, err := c.doRequest("json")
 13204  	if res != nil && res.StatusCode == http.StatusNotModified {
 13205  		if res.Body != nil {
 13206  			res.Body.Close()
 13207  		}
 13208  		return nil, gensupport.WrapError(&googleapi.Error{
 13209  			Code:   res.StatusCode,
 13210  			Header: res.Header,
 13211  		})
 13212  	}
 13213  	if err != nil {
 13214  		return nil, err
 13215  	}
 13216  	defer googleapi.CloseBody(res)
 13217  	if err := googleapi.CheckResponse(res); err != nil {
 13218  		return nil, gensupport.WrapError(err)
 13219  	}
 13220  	ret := &EventType{
 13221  		ServerResponse: googleapi.ServerResponse{
 13222  			Header:         res.Header,
 13223  			HTTPStatusCode: res.StatusCode,
 13224  		},
 13225  	}
 13226  	target := &ret
 13227  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13228  		return nil, err
 13229  	}
 13230  	return ret, nil
 13231  }
 13232  
 13233  type ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall struct {
 13234  	s            *Service
 13235  	parent       string
 13236  	urlParams_   gensupport.URLParams
 13237  	ifNoneMatch_ string
 13238  	ctx_         context.Context
 13239  	header_      http.Header
 13240  }
 13241  
 13242  // List: Lists Event Types in a given Connector Version.
 13243  //
 13244  //   - parent: Parent resource of the connectors, of the form:
 13245  //     `projects/*/locations/*/providers/*/connectors/*/versions/*` Only global
 13246  //     location is supported for EventType resource.
 13247  func (r *ProjectsLocationsProvidersConnectorsVersionsEventtypesService) List(parent string) *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall {
 13248  	c := &ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13249  	c.parent = parent
 13250  	return c
 13251  }
 13252  
 13253  // PageSize sets the optional parameter "pageSize": Page size.
 13254  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall) PageSize(pageSize int64) *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall {
 13255  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13256  	return c
 13257  }
 13258  
 13259  // PageToken sets the optional parameter "pageToken": Page token.
 13260  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall) PageToken(pageToken string) *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall {
 13261  	c.urlParams_.Set("pageToken", pageToken)
 13262  	return c
 13263  }
 13264  
 13265  // Fields allows partial responses to be retrieved. See
 13266  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13267  // details.
 13268  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall {
 13269  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13270  	return c
 13271  }
 13272  
 13273  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13274  // object's ETag matches the given value. This is useful for getting updates
 13275  // only after the object has changed since the last request.
 13276  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall {
 13277  	c.ifNoneMatch_ = entityTag
 13278  	return c
 13279  }
 13280  
 13281  // Context sets the context to be used in this call's Do method.
 13282  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall) Context(ctx context.Context) *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall {
 13283  	c.ctx_ = ctx
 13284  	return c
 13285  }
 13286  
 13287  // Header returns a http.Header that can be modified by the caller to add
 13288  // headers to the request.
 13289  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall) Header() http.Header {
 13290  	if c.header_ == nil {
 13291  		c.header_ = make(http.Header)
 13292  	}
 13293  	return c.header_
 13294  }
 13295  
 13296  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall) doRequest(alt string) (*http.Response, error) {
 13297  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13298  	if c.ifNoneMatch_ != "" {
 13299  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13300  	}
 13301  	var body io.Reader = nil
 13302  	c.urlParams_.Set("alt", alt)
 13303  	c.urlParams_.Set("prettyPrint", "false")
 13304  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/eventtypes")
 13305  	urls += "?" + c.urlParams_.Encode()
 13306  	req, err := http.NewRequest("GET", urls, body)
 13307  	if err != nil {
 13308  		return nil, err
 13309  	}
 13310  	req.Header = reqHeaders
 13311  	googleapi.Expand(req.URL, map[string]string{
 13312  		"parent": c.parent,
 13313  	})
 13314  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13315  }
 13316  
 13317  // Do executes the "connectors.projects.locations.providers.connectors.versions.eventtypes.list" call.
 13318  // Any non-2xx status code is an error. Response headers are in either
 13319  // *ListEventTypesResponse.ServerResponse.Header or (if a response was returned
 13320  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13321  // check whether the returned error was because http.StatusNotModified was
 13322  // returned.
 13323  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall) Do(opts ...googleapi.CallOption) (*ListEventTypesResponse, error) {
 13324  	gensupport.SetOptions(c.urlParams_, opts...)
 13325  	res, err := c.doRequest("json")
 13326  	if res != nil && res.StatusCode == http.StatusNotModified {
 13327  		if res.Body != nil {
 13328  			res.Body.Close()
 13329  		}
 13330  		return nil, gensupport.WrapError(&googleapi.Error{
 13331  			Code:   res.StatusCode,
 13332  			Header: res.Header,
 13333  		})
 13334  	}
 13335  	if err != nil {
 13336  		return nil, err
 13337  	}
 13338  	defer googleapi.CloseBody(res)
 13339  	if err := googleapi.CheckResponse(res); err != nil {
 13340  		return nil, gensupport.WrapError(err)
 13341  	}
 13342  	ret := &ListEventTypesResponse{
 13343  		ServerResponse: googleapi.ServerResponse{
 13344  			Header:         res.Header,
 13345  			HTTPStatusCode: res.StatusCode,
 13346  		},
 13347  	}
 13348  	target := &ret
 13349  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13350  		return nil, err
 13351  	}
 13352  	return ret, nil
 13353  }
 13354  
 13355  // Pages invokes f for each page of results.
 13356  // A non-nil error returned from f will halt the iteration.
 13357  // The provided context supersedes any context provided to the Context method.
 13358  func (c *ProjectsLocationsProvidersConnectorsVersionsEventtypesListCall) Pages(ctx context.Context, f func(*ListEventTypesResponse) error) error {
 13359  	c.ctx_ = ctx
 13360  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13361  	for {
 13362  		x, err := c.Do()
 13363  		if err != nil {
 13364  			return err
 13365  		}
 13366  		if err := f(x); err != nil {
 13367  			return err
 13368  		}
 13369  		if x.NextPageToken == "" {
 13370  			return nil
 13371  		}
 13372  		c.PageToken(x.NextPageToken)
 13373  	}
 13374  }
 13375  

View as plain text