...

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

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

     1  // Copyright 2024 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated file. DO NOT EDIT.
     6  
     7  // Package 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/v2"
    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/v2"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "connectors:v2"
    90  const apiName = "connectors"
    91  const apiVersion = "v2"
    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  	return rs
   173  }
   174  
   175  type ProjectsLocationsService struct {
   176  	s *Service
   177  
   178  	Connections *ProjectsLocationsConnectionsService
   179  }
   180  
   181  func NewProjectsLocationsConnectionsService(s *Service) *ProjectsLocationsConnectionsService {
   182  	rs := &ProjectsLocationsConnectionsService{s: s}
   183  	rs.Actions = NewProjectsLocationsConnectionsActionsService(s)
   184  	rs.EntityTypes = NewProjectsLocationsConnectionsEntityTypesService(s)
   185  	return rs
   186  }
   187  
   188  type ProjectsLocationsConnectionsService struct {
   189  	s *Service
   190  
   191  	Actions *ProjectsLocationsConnectionsActionsService
   192  
   193  	EntityTypes *ProjectsLocationsConnectionsEntityTypesService
   194  }
   195  
   196  func NewProjectsLocationsConnectionsActionsService(s *Service) *ProjectsLocationsConnectionsActionsService {
   197  	rs := &ProjectsLocationsConnectionsActionsService{s: s}
   198  	return rs
   199  }
   200  
   201  type ProjectsLocationsConnectionsActionsService struct {
   202  	s *Service
   203  }
   204  
   205  func NewProjectsLocationsConnectionsEntityTypesService(s *Service) *ProjectsLocationsConnectionsEntityTypesService {
   206  	rs := &ProjectsLocationsConnectionsEntityTypesService{s: s}
   207  	rs.Entities = NewProjectsLocationsConnectionsEntityTypesEntitiesService(s)
   208  	return rs
   209  }
   210  
   211  type ProjectsLocationsConnectionsEntityTypesService struct {
   212  	s *Service
   213  
   214  	Entities *ProjectsLocationsConnectionsEntityTypesEntitiesService
   215  }
   216  
   217  func NewProjectsLocationsConnectionsEntityTypesEntitiesService(s *Service) *ProjectsLocationsConnectionsEntityTypesEntitiesService {
   218  	rs := &ProjectsLocationsConnectionsEntityTypesEntitiesService{s: s}
   219  	return rs
   220  }
   221  
   222  type ProjectsLocationsConnectionsEntityTypesEntitiesService struct {
   223  	s *Service
   224  }
   225  
   226  // AccessCredentials: AccessCredentials includes the OAuth access token, and
   227  // the other fields returned along with it.
   228  type AccessCredentials struct {
   229  	// AccessToken: OAuth access token.
   230  	AccessToken string `json:"accessToken,omitempty"`
   231  	// ExpiresIn: Duration till the access token expires.
   232  	ExpiresIn string `json:"expiresIn,omitempty"`
   233  	// RefreshToken: OAuth refresh token.
   234  	RefreshToken string `json:"refreshToken,omitempty"`
   235  	// ForceSendFields is a list of field names (e.g. "AccessToken") to
   236  	// unconditionally include in API requests. By default, fields with empty or
   237  	// default values are omitted from API requests. See
   238  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   239  	// details.
   240  	ForceSendFields []string `json:"-"`
   241  	// NullFields is a list of field names (e.g. "AccessToken") to include in API
   242  	// requests with the JSON null value. By default, fields with empty values are
   243  	// omitted from API requests. See
   244  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   245  	NullFields []string `json:"-"`
   246  }
   247  
   248  func (s *AccessCredentials) MarshalJSON() ([]byte, error) {
   249  	type NoMethod AccessCredentials
   250  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   251  }
   252  
   253  // Action: Action message contains metadata information about a single action
   254  // present in the external system.
   255  type Action struct {
   256  	// Description: Brief Description of action
   257  	Description string `json:"description,omitempty"`
   258  	// DisplayName: Display Name of action to be shown on client side
   259  	DisplayName string `json:"displayName,omitempty"`
   260  	// InputJsonSchema: JsonSchema representation of this actions's input schema
   261  	InputJsonSchema *JsonSchema `json:"inputJsonSchema,omitempty"`
   262  	// InputParameters: List containing input parameter metadata.
   263  	InputParameters []*InputParameter `json:"inputParameters,omitempty"`
   264  	// Name: Name of the action.
   265  	Name string `json:"name,omitempty"`
   266  	// ResultJsonSchema: JsonSchema representation of this actions's result schema
   267  	ResultJsonSchema *JsonSchema `json:"resultJsonSchema,omitempty"`
   268  	// ResultMetadata: List containing the metadata of result fields.
   269  	ResultMetadata []*ResultMetadata `json:"resultMetadata,omitempty"`
   270  
   271  	// ServerResponse contains the HTTP response code and headers from the server.
   272  	googleapi.ServerResponse `json:"-"`
   273  	// ForceSendFields is a list of field names (e.g. "Description") to
   274  	// unconditionally include in API requests. By default, fields with empty or
   275  	// default values are omitted from API requests. See
   276  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   277  	// details.
   278  	ForceSendFields []string `json:"-"`
   279  	// NullFields is a list of field names (e.g. "Description") to include in API
   280  	// requests with the JSON null value. By default, fields with empty values are
   281  	// omitted from API requests. See
   282  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   283  	NullFields []string `json:"-"`
   284  }
   285  
   286  func (s *Action) MarshalJSON() ([]byte, error) {
   287  	type NoMethod Action
   288  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   289  }
   290  
   291  // CheckReadinessResponse: Response containing status of the connector for
   292  // readiness prober.
   293  type CheckReadinessResponse struct {
   294  	Status string `json:"status,omitempty"`
   295  
   296  	// ServerResponse contains the HTTP response code and headers from the server.
   297  	googleapi.ServerResponse `json:"-"`
   298  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
   299  	// include in API requests. By default, fields with empty or default values are
   300  	// omitted from API requests. See
   301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   302  	// details.
   303  	ForceSendFields []string `json:"-"`
   304  	// NullFields is a list of field names (e.g. "Status") to include in API
   305  	// requests with the JSON null value. By default, fields with empty values are
   306  	// omitted from API requests. See
   307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   308  	NullFields []string `json:"-"`
   309  }
   310  
   311  func (s *CheckReadinessResponse) MarshalJSON() ([]byte, error) {
   312  	type NoMethod CheckReadinessResponse
   313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   314  }
   315  
   316  // CheckStatusResponse: The status of the connector.
   317  type CheckStatusResponse struct {
   318  	// Description: When the connector is not in ACTIVE state, the description must
   319  	// be populated to specify the reason why it's not in ACTIVE state.
   320  	Description string `json:"description,omitempty"`
   321  	// State: State of the connector.
   322  	//
   323  	// Possible values:
   324  	//   "STATE_UNSPECIFIED" - State unspecified.
   325  	//   "ACTIVE" - The connector is active and ready to process runtime requests.
   326  	// This can also mean that from the connector's perspective, the connector is
   327  	// not in an error state and should be able to process runtime requests
   328  	// successfully.
   329  	//   "ERROR" - The connector is in an error state and cannot process runtime
   330  	// requests. An example reason would be that the connection container has some
   331  	// network issues that prevent outbound requests from being sent.
   332  	//   "AUTH_ERROR" - This is a more specific error state that the developers can
   333  	// opt to use when the connector is facing auth-related errors caused by auth
   334  	// configuration not present, invalid auth credentials, etc.
   335  	State string `json:"state,omitempty"`
   336  
   337  	// ServerResponse contains the HTTP response code and headers from the server.
   338  	googleapi.ServerResponse `json:"-"`
   339  	// ForceSendFields is a list of field names (e.g. "Description") to
   340  	// unconditionally include in API requests. By default, fields with empty or
   341  	// default values are omitted from API requests. See
   342  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   343  	// details.
   344  	ForceSendFields []string `json:"-"`
   345  	// NullFields is a list of field names (e.g. "Description") to include in API
   346  	// requests with the JSON null value. By default, fields with empty values are
   347  	// omitted from API requests. See
   348  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   349  	NullFields []string `json:"-"`
   350  }
   351  
   352  func (s *CheckStatusResponse) MarshalJSON() ([]byte, error) {
   353  	type NoMethod CheckStatusResponse
   354  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   355  }
   356  
   357  // DailyCycle: Time window specified for daily operations.
   358  type DailyCycle struct {
   359  	// Duration: Output only. Duration of the time window, set by service producer.
   360  	Duration string `json:"duration,omitempty"`
   361  	// StartTime: Time within the day to start the operations.
   362  	StartTime *TimeOfDay `json:"startTime,omitempty"`
   363  	// ForceSendFields is a list of field names (e.g. "Duration") to
   364  	// unconditionally include in API requests. By default, fields with empty or
   365  	// default values are omitted from API requests. See
   366  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   367  	// details.
   368  	ForceSendFields []string `json:"-"`
   369  	// NullFields is a list of field names (e.g. "Duration") to include in API
   370  	// requests with the JSON null value. By default, fields with empty values are
   371  	// omitted from API requests. See
   372  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   373  	NullFields []string `json:"-"`
   374  }
   375  
   376  func (s *DailyCycle) MarshalJSON() ([]byte, error) {
   377  	type NoMethod DailyCycle
   378  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   379  }
   380  
   381  // Date: Represents a whole or partial calendar date, such as a birthday. The
   382  // time of day and time zone are either specified elsewhere or are
   383  // insignificant. The date is relative to the Gregorian Calendar. This can
   384  // represent one of the following: * A full date, with non-zero year, month,
   385  // and day values. * A month and day, with a zero year (for example, an
   386  // anniversary). * A year on its own, with a zero month and a zero day. * A
   387  // year and month, with a zero day (for example, a credit card expiration
   388  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
   389  // google.protobuf.Timestamp
   390  type Date struct {
   391  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
   392  	// or 0 to specify a year by itself or a year and month where the day isn't
   393  	// significant.
   394  	Day int64 `json:"day,omitempty"`
   395  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
   396  	// a month and day.
   397  	Month int64 `json:"month,omitempty"`
   398  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
   399  	// without a year.
   400  	Year int64 `json:"year,omitempty"`
   401  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
   402  	// include in API requests. By default, fields with empty or default values are
   403  	// omitted from API requests. See
   404  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   405  	// details.
   406  	ForceSendFields []string `json:"-"`
   407  	// NullFields is a list of field names (e.g. "Day") to include in API requests
   408  	// with the JSON null value. By default, fields with empty values are omitted
   409  	// from API requests. See
   410  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   411  	NullFields []string `json:"-"`
   412  }
   413  
   414  func (s *Date) MarshalJSON() ([]byte, error) {
   415  	type NoMethod Date
   416  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   417  }
   418  
   419  // DenyMaintenancePeriod: DenyMaintenancePeriod definition. Maintenance is
   420  // forbidden within the deny period. The start_date must be less than the
   421  // end_date.
   422  type DenyMaintenancePeriod struct {
   423  	// EndDate: Deny period end date. This can be: * A full date, with non-zero
   424  	// year, month and day values. * A month and day value, with a zero year.
   425  	// Allows recurring deny periods each year. Date matching this period will have
   426  	// to be before the end.
   427  	EndDate *Date `json:"endDate,omitempty"`
   428  	// StartDate: Deny period start date. This can be: * A full date, with non-zero
   429  	// year, month and day values. * A month and day value, with a zero year.
   430  	// Allows recurring deny periods each year. Date matching this period will have
   431  	// to be the same or after the start.
   432  	StartDate *Date `json:"startDate,omitempty"`
   433  	// Time: Time in UTC when the Blackout period starts on start_date and ends on
   434  	// end_date. This can be: * Full time. * All zeros for 00:00:00 UTC
   435  	Time *TimeOfDay `json:"time,omitempty"`
   436  	// ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally
   437  	// include in API requests. By default, fields with empty or default values are
   438  	// omitted from API requests. See
   439  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   440  	// details.
   441  	ForceSendFields []string `json:"-"`
   442  	// NullFields is a list of field names (e.g. "EndDate") to include in API
   443  	// requests with the JSON null value. By default, fields with empty values are
   444  	// omitted from API requests. See
   445  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   446  	NullFields []string `json:"-"`
   447  }
   448  
   449  func (s *DenyMaintenancePeriod) MarshalJSON() ([]byte, error) {
   450  	type NoMethod DenyMaintenancePeriod
   451  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   452  }
   453  
   454  // Empty: A generic empty message that you can re-use to avoid defining
   455  // duplicated empty messages in your APIs. A typical example is to use it as
   456  // the request or the response type of an API method. For instance: service Foo
   457  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
   458  type Empty struct {
   459  	// ServerResponse contains the HTTP response code and headers from the server.
   460  	googleapi.ServerResponse `json:"-"`
   461  }
   462  
   463  // Entity: 'Entity row'/ 'Entity' refers to a single row of an entity type.
   464  type Entity struct {
   465  	// Fields: Fields of the entity. The key is name of the field and the value
   466  	// contains the applicable `google.protobuf.Value` entry for this field.
   467  	Fields googleapi.RawMessage `json:"fields,omitempty"`
   468  	// Name: Output only. Resource name of the Entity. Format:
   469  	// projects/{project}/locations/{location}/connections/{connection}/entityTypes/
   470  	// {type}/entities/{id}
   471  	Name string `json:"name,omitempty"`
   472  
   473  	// ServerResponse contains the HTTP response code and headers from the server.
   474  	googleapi.ServerResponse `json:"-"`
   475  	// ForceSendFields is a list of field names (e.g. "Fields") to unconditionally
   476  	// include in API requests. By default, fields with empty or default values are
   477  	// omitted from API requests. See
   478  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   479  	// details.
   480  	ForceSendFields []string `json:"-"`
   481  	// NullFields is a list of field names (e.g. "Fields") to include in API
   482  	// requests with the JSON null value. By default, fields with empty values are
   483  	// omitted from API requests. See
   484  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   485  	NullFields []string `json:"-"`
   486  }
   487  
   488  func (s *Entity) MarshalJSON() ([]byte, error) {
   489  	type NoMethod Entity
   490  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   491  }
   492  
   493  // EntityType: EntityType message contains metadata information about a single
   494  // entity type present in the external system.
   495  type EntityType struct {
   496  	// Fields: List containing metadata information about each field of the entity
   497  	// type.
   498  	Fields []*Field `json:"fields,omitempty"`
   499  	// JsonSchema: JsonSchema representation of this entity's schema
   500  	JsonSchema *JsonSchema `json:"jsonSchema,omitempty"`
   501  	// Name: The name of the entity type.
   502  	Name string `json:"name,omitempty"`
   503  	// Possible values:
   504  	//   "OPERATION_UNSPECIFIED" - Operation unspecified.
   505  	//   "LIST" - This operation means entity type supports LIST method.
   506  	//   "GET" - This operation means entity type supports GET method.
   507  	//   "CREATE" - This operation means entity type supports CREATE method.
   508  	//   "UPDATE" - This operation means entity type supports UPDATE method.
   509  	//   "DELETE" - This operation means entity type supports DELETE method.
   510  	Operations []string `json:"operations,omitempty"`
   511  
   512  	// ServerResponse contains the HTTP response code and headers from the server.
   513  	googleapi.ServerResponse `json:"-"`
   514  	// ForceSendFields is a list of field names (e.g. "Fields") to unconditionally
   515  	// include in API requests. By default, fields with empty or default values are
   516  	// omitted from API requests. See
   517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   518  	// details.
   519  	ForceSendFields []string `json:"-"`
   520  	// NullFields is a list of field names (e.g. "Fields") to include in API
   521  	// requests with the JSON null value. By default, fields with empty values are
   522  	// omitted from API requests. See
   523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   524  	NullFields []string `json:"-"`
   525  }
   526  
   527  func (s *EntityType) MarshalJSON() ([]byte, error) {
   528  	type NoMethod EntityType
   529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   530  }
   531  
   532  // ExchangeAuthCodeRequest: ExchangeAuthCodeRequest currently includes no
   533  // fields.
   534  type ExchangeAuthCodeRequest struct {
   535  }
   536  
   537  // ExchangeAuthCodeResponse: ExchangeAuthCodeResponse includes the returned
   538  // access token and its associated credentials.
   539  type ExchangeAuthCodeResponse struct {
   540  	AccessCredentials *AccessCredentials `json:"accessCredentials,omitempty"`
   541  
   542  	// ServerResponse contains the HTTP response code and headers from the server.
   543  	googleapi.ServerResponse `json:"-"`
   544  	// ForceSendFields is a list of field names (e.g. "AccessCredentials") to
   545  	// unconditionally include in API requests. By default, fields with empty or
   546  	// default values are omitted from API requests. See
   547  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   548  	// details.
   549  	ForceSendFields []string `json:"-"`
   550  	// NullFields is a list of field names (e.g. "AccessCredentials") to include in
   551  	// API requests with the JSON null value. By default, fields with empty values
   552  	// are omitted from API requests. See
   553  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   554  	NullFields []string `json:"-"`
   555  }
   556  
   557  func (s *ExchangeAuthCodeResponse) MarshalJSON() ([]byte, error) {
   558  	type NoMethod ExchangeAuthCodeResponse
   559  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   560  }
   561  
   562  // ExecuteActionRequest: Request message for ActionService.ExecuteAction
   563  type ExecuteActionRequest struct {
   564  	// Parameters: Parameters for executing the action. The parameters can be
   565  	// key/value pairs or nested structs.
   566  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
   567  	// ForceSendFields is a list of field names (e.g. "Parameters") to
   568  	// unconditionally include in API requests. By default, fields with empty or
   569  	// default values are omitted from API requests. See
   570  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   571  	// details.
   572  	ForceSendFields []string `json:"-"`
   573  	// NullFields is a list of field names (e.g. "Parameters") to include in API
   574  	// requests with the JSON null value. By default, fields with empty values are
   575  	// omitted from API requests. See
   576  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   577  	NullFields []string `json:"-"`
   578  }
   579  
   580  func (s *ExecuteActionRequest) MarshalJSON() ([]byte, error) {
   581  	type NoMethod ExecuteActionRequest
   582  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   583  }
   584  
   585  // ExecuteActionResponse: Response message for ActionService.ExecuteAction
   586  type ExecuteActionResponse struct {
   587  	// Results: In the case of successful invocation of the specified action, the
   588  	// results Struct contains values based on the response of the action invoked.
   589  	// 1. If the action execution produces any entities as a result, they are
   590  	// returned as an array of Structs with the 'key' being the field name and the
   591  	// 'value' being the value of that field in each result row. { 'results':
   592  	// [{'key': 'value'}, ...] }
   593  	Results []googleapi.RawMessage `json:"results,omitempty"`
   594  
   595  	// ServerResponse contains the HTTP response code and headers from the server.
   596  	googleapi.ServerResponse `json:"-"`
   597  	// ForceSendFields is a list of field names (e.g. "Results") to unconditionally
   598  	// include in API requests. By default, fields with empty or default values are
   599  	// omitted from API requests. See
   600  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   601  	// details.
   602  	ForceSendFields []string `json:"-"`
   603  	// NullFields is a list of field names (e.g. "Results") to include in API
   604  	// requests with the JSON null value. By default, fields with empty values are
   605  	// omitted from API requests. See
   606  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   607  	NullFields []string `json:"-"`
   608  }
   609  
   610  func (s *ExecuteActionResponse) MarshalJSON() ([]byte, error) {
   611  	type NoMethod ExecuteActionResponse
   612  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   613  }
   614  
   615  // ExecuteSqlQueryRequest: An execute sql query request containing the query
   616  // and the connection to execute it on.
   617  type ExecuteSqlQueryRequest struct {
   618  	// Query: Required. SQL statement passed by clients like Integration Platform,
   619  	// the query is passed as-is to the driver used for interfacing with external
   620  	// systems.
   621  	Query *Query `json:"query,omitempty"`
   622  	// ForceSendFields is a list of field names (e.g. "Query") to unconditionally
   623  	// include in API requests. By default, fields with empty or default values are
   624  	// omitted from API requests. See
   625  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   626  	// details.
   627  	ForceSendFields []string `json:"-"`
   628  	// NullFields is a list of field names (e.g. "Query") to include in API
   629  	// requests with the JSON null value. By default, fields with empty values are
   630  	// omitted from API requests. See
   631  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   632  	NullFields []string `json:"-"`
   633  }
   634  
   635  func (s *ExecuteSqlQueryRequest) MarshalJSON() ([]byte, error) {
   636  	type NoMethod ExecuteSqlQueryRequest
   637  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   638  }
   639  
   640  // ExecuteSqlQueryResponse: A response returned by the connection after
   641  // executing the sql query.
   642  type ExecuteSqlQueryResponse struct {
   643  	// Results: In the case of successful execution of the query the response
   644  	// contains results returned by the external system. For example, the result
   645  	// rows of the query are contained in the 'results' Struct list - "results": [
   646  	// { "field1": "val1", "field2": "val2",.. },.. ] Each Struct row can contain
   647  	// fields any type of like nested Structs or lists.
   648  	Results []googleapi.RawMessage `json:"results,omitempty"`
   649  
   650  	// ServerResponse contains the HTTP response code and headers from the server.
   651  	googleapi.ServerResponse `json:"-"`
   652  	// ForceSendFields is a list of field names (e.g. "Results") to unconditionally
   653  	// include in API requests. By default, fields with empty or default values are
   654  	// omitted from API requests. See
   655  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   656  	// details.
   657  	ForceSendFields []string `json:"-"`
   658  	// NullFields is a list of field names (e.g. "Results") to include in API
   659  	// requests with the JSON null value. By default, fields with empty values are
   660  	// omitted from API requests. See
   661  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   662  	NullFields []string `json:"-"`
   663  }
   664  
   665  func (s *ExecuteSqlQueryResponse) MarshalJSON() ([]byte, error) {
   666  	type NoMethod ExecuteSqlQueryResponse
   667  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   668  }
   669  
   670  // Field: Message contains EntityType's Field metadata.
   671  type Field struct {
   672  	// AdditionalDetails: The following map contains fields that are not explicitly
   673  	// mentioned above,this give connectors the flexibility to add new metadata
   674  	// fields.
   675  	AdditionalDetails googleapi.RawMessage `json:"additionalDetails,omitempty"`
   676  	// DataType: The data type of the Field.
   677  	//
   678  	// Possible values:
   679  	//   "DATA_TYPE_UNSPECIFIED" - Datatype unspecified.
   680  	//   "INT" - Deprecated Int type, use INTEGER type instead.
   681  	//   "SMALLINT" - Small int type.
   682  	//   "DOUBLE" - Double type.
   683  	//   "DATE" - Date type.
   684  	//   "DATETIME" - Deprecated Datetime type.
   685  	//   "TIME" - Time type.
   686  	//   "STRING" - Deprecated string type, use VARCHAR type instead.
   687  	//   "LONG" - Deprecated Long type, use BIGINT type instead.
   688  	//   "BOOLEAN" - Boolean type.
   689  	//   "DECIMAL" - Decimal type.
   690  	//   "UUID" - Deprecated UUID type, use VARCHAR instead.
   691  	//   "BLOB" - Blob type.
   692  	//   "BIT" - Bit type.
   693  	//   "TINYINT" - Tiny int type.
   694  	//   "INTEGER" - Integer type.
   695  	//   "BIGINT" - Big int type.
   696  	//   "FLOAT" - Float type.
   697  	//   "REAL" - Real type.
   698  	//   "NUMERIC" - Numeric type.
   699  	//   "CHAR" - Char type.
   700  	//   "VARCHAR" - Varchar type.
   701  	//   "LONGVARCHAR" - Long varchar type.
   702  	//   "TIMESTAMP" - Timestamp type.
   703  	//   "NCHAR" - Nchar type.
   704  	//   "NVARCHAR" - Nvarchar type.
   705  	//   "LONGNVARCHAR" - Long Nvarchar type.
   706  	//   "NULL" - Null type.
   707  	//   "OTHER" - Other type.
   708  	//   "JAVA_OBJECT" - Java object type.
   709  	//   "DISTINCT" - Distinct type keyword.
   710  	//   "STRUCT" - Struct type.
   711  	//   "ARRAY" - Array type.
   712  	//   "CLOB" - Clob type.
   713  	//   "REF" - Ref type.
   714  	//   "DATALINK" - Datalink type.
   715  	//   "ROWID" - Row ID type.
   716  	//   "BINARY" - Binary type.
   717  	//   "VARBINARY" - Varbinary type.
   718  	//   "LONGVARBINARY" - Long Varbinary type.
   719  	//   "NCLOB" - Nclob type.
   720  	//   "SQLXML" - SQLXML type.
   721  	//   "REF_CURSOR" - Ref_cursor type.
   722  	//   "TIME_WITH_TIMEZONE" - Time with timezone type.
   723  	//   "TIMESTAMP_WITH_TIMEZONE" - Timestamp with timezone type.
   724  	DataType string `json:"dataType,omitempty"`
   725  	// DefaultValue: The following field specifies the default value of the Field
   726  	// provided by the external system if a value is not provided.
   727  	DefaultValue interface{} `json:"defaultValue,omitempty"`
   728  	// Description: A brief description of the Field.
   729  	Description string `json:"description,omitempty"`
   730  	// JsonSchema: JsonSchema of the field, applicable only if field is of type
   731  	// `STRUCT`
   732  	JsonSchema *JsonSchema `json:"jsonSchema,omitempty"`
   733  	// Key: The following boolean field specifies if the current Field acts as a
   734  	// primary key or id if the parent is of type entity.
   735  	Key bool `json:"key,omitempty"`
   736  	// Name: Name of the Field.
   737  	Name string `json:"name,omitempty"`
   738  	// Nullable: Specifies whether a null value is allowed.
   739  	Nullable bool `json:"nullable,omitempty"`
   740  	// Reference: Reference captures the association between two different entity
   741  	// types. Value links to the reference of another entity type.
   742  	Reference *Reference `json:"reference,omitempty"`
   743  	// ForceSendFields is a list of field names (e.g. "AdditionalDetails") to
   744  	// unconditionally include in API requests. By default, fields with empty or
   745  	// default values are omitted from API requests. See
   746  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   747  	// details.
   748  	ForceSendFields []string `json:"-"`
   749  	// NullFields is a list of field names (e.g. "AdditionalDetails") to include in
   750  	// API requests with the JSON null value. By default, fields with empty values
   751  	// are omitted from API requests. See
   752  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   753  	NullFields []string `json:"-"`
   754  }
   755  
   756  func (s *Field) MarshalJSON() ([]byte, error) {
   757  	type NoMethod Field
   758  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   759  }
   760  
   761  // InputParameter: Input Parameter message contains metadata about the
   762  // parameters required for executing an Action.
   763  type InputParameter struct {
   764  	// AdditionalDetails: The following map contains fields that are not explicitly
   765  	// mentioned above,this give connectors the flexibility to add new metadata
   766  	// fields.
   767  	AdditionalDetails googleapi.RawMessage `json:"additionalDetails,omitempty"`
   768  	// DataType: The data type of the Parameter
   769  	//
   770  	// Possible values:
   771  	//   "DATA_TYPE_UNSPECIFIED" - Datatype unspecified.
   772  	//   "INT" - Deprecated Int type, use INTEGER type instead.
   773  	//   "SMALLINT" - Small int type.
   774  	//   "DOUBLE" - Double type.
   775  	//   "DATE" - Date type.
   776  	//   "DATETIME" - Deprecated Datetime type.
   777  	//   "TIME" - Time type.
   778  	//   "STRING" - Deprecated string type, use VARCHAR type instead.
   779  	//   "LONG" - Deprecated Long type, use BIGINT type instead.
   780  	//   "BOOLEAN" - Boolean type.
   781  	//   "DECIMAL" - Decimal type.
   782  	//   "UUID" - Deprecated UUID type, use VARCHAR instead.
   783  	//   "BLOB" - Blob type.
   784  	//   "BIT" - Bit type.
   785  	//   "TINYINT" - Tiny int type.
   786  	//   "INTEGER" - Integer type.
   787  	//   "BIGINT" - Big int type.
   788  	//   "FLOAT" - Float type.
   789  	//   "REAL" - Real type.
   790  	//   "NUMERIC" - Numeric type.
   791  	//   "CHAR" - Char type.
   792  	//   "VARCHAR" - Varchar type.
   793  	//   "LONGVARCHAR" - Long varchar type.
   794  	//   "TIMESTAMP" - Timestamp type.
   795  	//   "NCHAR" - Nchar type.
   796  	//   "NVARCHAR" - Nvarchar type.
   797  	//   "LONGNVARCHAR" - Long Nvarchar type.
   798  	//   "NULL" - Null type.
   799  	//   "OTHER" - Other type.
   800  	//   "JAVA_OBJECT" - Java object type.
   801  	//   "DISTINCT" - Distinct type keyword.
   802  	//   "STRUCT" - Struct type.
   803  	//   "ARRAY" - Array type.
   804  	//   "CLOB" - Clob type.
   805  	//   "REF" - Ref type.
   806  	//   "DATALINK" - Datalink type.
   807  	//   "ROWID" - Row ID type.
   808  	//   "BINARY" - Binary type.
   809  	//   "VARBINARY" - Varbinary type.
   810  	//   "LONGVARBINARY" - Long Varbinary type.
   811  	//   "NCLOB" - Nclob type.
   812  	//   "SQLXML" - SQLXML type.
   813  	//   "REF_CURSOR" - Ref_cursor type.
   814  	//   "TIME_WITH_TIMEZONE" - Time with timezone type.
   815  	//   "TIMESTAMP_WITH_TIMEZONE" - Timestamp with timezone type.
   816  	DataType string `json:"dataType,omitempty"`
   817  	// DefaultValue: The following field specifies the default value of the
   818  	// Parameter provided by the external system if a value is not provided.
   819  	DefaultValue interface{} `json:"defaultValue,omitempty"`
   820  	// Description: A brief description of the Parameter.
   821  	Description string `json:"description,omitempty"`
   822  	// JsonSchema: JsonSchema of the parameter, applicable only if parameter is of
   823  	// type `STRUCT`
   824  	JsonSchema *JsonSchema `json:"jsonSchema,omitempty"`
   825  	// Name: Name of the Parameter.
   826  	Name string `json:"name,omitempty"`
   827  	// Nullable: Specifies whether a null value is allowed.
   828  	Nullable bool `json:"nullable,omitempty"`
   829  	// ForceSendFields is a list of field names (e.g. "AdditionalDetails") to
   830  	// unconditionally include in API requests. By default, fields with empty or
   831  	// default values are omitted from API requests. See
   832  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   833  	// details.
   834  	ForceSendFields []string `json:"-"`
   835  	// NullFields is a list of field names (e.g. "AdditionalDetails") to include in
   836  	// API requests with the JSON null value. By default, fields with empty values
   837  	// are omitted from API requests. See
   838  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   839  	NullFields []string `json:"-"`
   840  }
   841  
   842  func (s *InputParameter) MarshalJSON() ([]byte, error) {
   843  	type NoMethod InputParameter
   844  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   845  }
   846  
   847  // Instance: Instance represents the interface for SLM services to actuate the
   848  // state of control plane resources. Example Instance in JSON, where
   849  // consumer-project-number=123456, producer-project-id=cloud-sql: ```json
   850  // Instance: { "name":
   851  // "projects/123456/locations/us-east1/instances/prod-instance", "create_time":
   852  // { "seconds": 1526406431, }, "labels": { "env": "prod", "foo": "bar" },
   853  // "state": READY, "software_versions": { "software_update":
   854  // "cloud-sql-09-28-2018", }, "maintenance_policy_names": { "UpdatePolicy":
   855  // "projects/123456/locations/us-east1/maintenancePolicies/prod-update-policy",
   856  // } "tenant_project_id": "cloud-sql-test-tenant", "producer_metadata": {
   857  // "cloud-sql-tier": "basic", "cloud-sql-instance-size": "1G", },
   858  // "provisioned_resources": [ { "resource-type": "compute-instance",
   859  // "resource-url":
   860  // "https://www.googleapis.com/compute/v1/projects/cloud-sql/zones/us-east1-b/in
   861  // stances/vm-1", } ], "maintenance_schedules": { "csa_rollout": {
   862  // "start_time": { "seconds": 1526406431, }, "end_time": { "seconds":
   863  // 1535406431, }, }, "ncsa_rollout": { "start_time": { "seconds": 1526406431,
   864  // }, "end_time": { "seconds": 1535406431, }, } }, "consumer_defined_name":
   865  // "my-sql-instance1", } ``` LINT.IfChange
   866  type Instance struct {
   867  	// ConsumerDefinedName: consumer_defined_name is the name of the instance set
   868  	// by the service consumers. Generally this is different from the `name` field
   869  	// which reperesents the system-assigned id of the instance which the service
   870  	// consumers do not recognize. This is a required field for tenants onboarding
   871  	// to Maintenance Window notifications
   872  	// (go/slm-rollout-maintenance-policies#prerequisites).
   873  	ConsumerDefinedName string `json:"consumerDefinedName,omitempty"`
   874  	// CreateTime: Output only. Timestamp when the resource was created.
   875  	CreateTime string `json:"createTime,omitempty"`
   876  	// InstanceType: Optional. The instance_type of this instance of format:
   877  	// projects/{project_number}/locations/{location_id}/instanceTypes/{instance_typ
   878  	// e_id}. Instance Type represents a high-level tier or SKU of the service that
   879  	// this instance belong to. When enabled(eg: Maintenance Rollout), Rollout uses
   880  	// 'instance_type' along with 'software_versions' to determine whether instance
   881  	// needs an update or not.
   882  	InstanceType string `json:"instanceType,omitempty"`
   883  	// Labels: Optional. Resource labels to represent user provided metadata. Each
   884  	// label is a key-value pair, where both the key and the value are arbitrary
   885  	// strings provided by the user.
   886  	Labels map[string]string `json:"labels,omitempty"`
   887  	// MaintenancePolicyNames: Optional. The MaintenancePolicies that have been
   888  	// attached to the instance. The key must be of the type name of the oneof
   889  	// policy name defined in MaintenancePolicy, and the referenced policy must
   890  	// define the same policy type. For details, please refer to go/mr-user-guide.
   891  	// Should not be set if maintenance_settings.maintenance_policies is set.
   892  	MaintenancePolicyNames map[string]string `json:"maintenancePolicyNames,omitempty"`
   893  	// MaintenanceSchedules: The MaintenanceSchedule contains the scheduling
   894  	// information of published maintenance schedule with same key as
   895  	// software_versions.
   896  	MaintenanceSchedules map[string]MaintenanceSchedule `json:"maintenanceSchedules,omitempty"`
   897  	// MaintenanceSettings: Optional. The MaintenanceSettings associated with
   898  	// instance.
   899  	MaintenanceSettings *MaintenanceSettings `json:"maintenanceSettings,omitempty"`
   900  	// Name: Unique name of the resource. It uses the form:
   901  	// `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
   902  	// Note: This name is passed, stored and logged across the rollout system. So
   903  	// use of consumer project_id or any other consumer PII in the name is strongly
   904  	// discouraged for wipeout (go/wipeout) compliance. See
   905  	// go/elysium/project_ids#storage-guidance for more details.
   906  	Name string `json:"name,omitempty"`
   907  	// NotificationParameters: Optional. notification_parameter are information
   908  	// that service producers may like to include that is not relevant to Rollout.
   909  	// This parameter will only be passed to Gamma and Cloud Logging for
   910  	// notification/logging purpose.
   911  	NotificationParameters map[string]NotificationParameter `json:"notificationParameters,omitempty"`
   912  	// ProducerMetadata: Output only. Custom string attributes used primarily to
   913  	// expose producer-specific information in monitoring dashboards. See
   914  	// go/get-instance-metadata.
   915  	ProducerMetadata map[string]string `json:"producerMetadata,omitempty"`
   916  	// ProvisionedResources: Output only. The list of data plane resources
   917  	// provisioned for this instance, e.g. compute VMs. See
   918  	// go/get-instance-metadata.
   919  	ProvisionedResources []*ProvisionedResource `json:"provisionedResources,omitempty"`
   920  	// SlmInstanceTemplate: Link to the SLM instance template. Only populated when
   921  	// updating SLM instances via SSA's Actuation service adaptor. Service
   922  	// producers with custom control plane (e.g. Cloud SQL) doesn't need to
   923  	// populate this field. Instead they should use software_versions.
   924  	SlmInstanceTemplate string `json:"slmInstanceTemplate,omitempty"`
   925  	// SloMetadata: Output only. SLO metadata for instance classification in the
   926  	// Standardized dataplane SLO platform. See go/cloud-ssa-standard-slo for
   927  	// feature description.
   928  	SloMetadata *SloMetadata `json:"sloMetadata,omitempty"`
   929  	// SoftwareVersions: Software versions that are used to deploy this instance.
   930  	// This can be mutated by rollout services.
   931  	SoftwareVersions map[string]string `json:"softwareVersions,omitempty"`
   932  	// State: Output only. Current lifecycle state of the resource (e.g. if it's
   933  	// being created or ready to use).
   934  	//
   935  	// Possible values:
   936  	//   "STATE_UNSPECIFIED" - Unspecified state.
   937  	//   "CREATING" - Instance is being created.
   938  	//   "READY" - Instance has been created and is ready to use.
   939  	//   "UPDATING" - Instance is being updated.
   940  	//   "REPAIRING" - Instance is unheathy and under repair.
   941  	//   "DELETING" - Instance is being deleted.
   942  	//   "ERROR" - Instance encountered an error and is in indeterministic state.
   943  	State string `json:"state,omitempty"`
   944  	// TenantProjectId: Output only. ID of the associated GCP tenant project. See
   945  	// go/get-instance-metadata.
   946  	TenantProjectId string `json:"tenantProjectId,omitempty"`
   947  	// UpdateTime: Output only. Timestamp when the resource was last modified.
   948  	UpdateTime string `json:"updateTime,omitempty"`
   949  	// ForceSendFields is a list of field names (e.g. "ConsumerDefinedName") to
   950  	// unconditionally include in API requests. By default, fields with empty or
   951  	// default values are omitted from API requests. See
   952  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   953  	// details.
   954  	ForceSendFields []string `json:"-"`
   955  	// NullFields is a list of field names (e.g. "ConsumerDefinedName") to include
   956  	// in API requests with the JSON null value. By default, fields with empty
   957  	// values are omitted from API requests. See
   958  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   959  	NullFields []string `json:"-"`
   960  }
   961  
   962  func (s *Instance) MarshalJSON() ([]byte, error) {
   963  	type NoMethod Instance
   964  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   965  }
   966  
   967  // JsonSchema: JsonSchema representation of schema metadata
   968  type JsonSchema struct {
   969  	// AdditionalDetails: Additional details apart from standard json schema
   970  	// fields, this gives flexibility to store metadata about the schema
   971  	AdditionalDetails googleapi.RawMessage `json:"additionalDetails,omitempty"`
   972  	// Default: The default value of the field or object described by this schema.
   973  	Default interface{} `json:"default,omitempty"`
   974  	// Description: A description of this schema.
   975  	Description string `json:"description,omitempty"`
   976  	// Enum: Possible values for an enumeration. This works in conjunction with
   977  	// `type` to represent types with a fixed set of legal values
   978  	Enum []interface{} `json:"enum,omitempty"`
   979  	// Format: Format of the value as per
   980  	// https://json-schema.org/understanding-json-schema/reference/string.html#format
   981  	Format string `json:"format,omitempty"`
   982  	// Items: Schema that applies to array values, applicable only if this is of
   983  	// type `array`.
   984  	Items *JsonSchema `json:"items,omitempty"`
   985  	// JdbcType: JDBC datatype of the field.
   986  	//
   987  	// Possible values:
   988  	//   "DATA_TYPE_UNSPECIFIED" - Datatype unspecified.
   989  	//   "INT" - Deprecated Int type, use INTEGER type instead.
   990  	//   "SMALLINT" - Small int type.
   991  	//   "DOUBLE" - Double type.
   992  	//   "DATE" - Date type.
   993  	//   "DATETIME" - Deprecated Datetime type.
   994  	//   "TIME" - Time type.
   995  	//   "STRING" - Deprecated string type, use VARCHAR type instead.
   996  	//   "LONG" - Deprecated Long type, use BIGINT type instead.
   997  	//   "BOOLEAN" - Boolean type.
   998  	//   "DECIMAL" - Decimal type.
   999  	//   "UUID" - Deprecated UUID type, use VARCHAR instead.
  1000  	//   "BLOB" - Blob type.
  1001  	//   "BIT" - Bit type.
  1002  	//   "TINYINT" - Tiny int type.
  1003  	//   "INTEGER" - Integer type.
  1004  	//   "BIGINT" - Big int type.
  1005  	//   "FLOAT" - Float type.
  1006  	//   "REAL" - Real type.
  1007  	//   "NUMERIC" - Numeric type.
  1008  	//   "CHAR" - Char type.
  1009  	//   "VARCHAR" - Varchar type.
  1010  	//   "LONGVARCHAR" - Long varchar type.
  1011  	//   "TIMESTAMP" - Timestamp type.
  1012  	//   "NCHAR" - Nchar type.
  1013  	//   "NVARCHAR" - Nvarchar type.
  1014  	//   "LONGNVARCHAR" - Long Nvarchar type.
  1015  	//   "NULL" - Null type.
  1016  	//   "OTHER" - Other type.
  1017  	//   "JAVA_OBJECT" - Java object type.
  1018  	//   "DISTINCT" - Distinct type keyword.
  1019  	//   "STRUCT" - Struct type.
  1020  	//   "ARRAY" - Array type.
  1021  	//   "CLOB" - Clob type.
  1022  	//   "REF" - Ref type.
  1023  	//   "DATALINK" - Datalink type.
  1024  	//   "ROWID" - Row ID type.
  1025  	//   "BINARY" - Binary type.
  1026  	//   "VARBINARY" - Varbinary type.
  1027  	//   "LONGVARBINARY" - Long Varbinary type.
  1028  	//   "NCLOB" - Nclob type.
  1029  	//   "SQLXML" - SQLXML type.
  1030  	//   "REF_CURSOR" - Ref_cursor type.
  1031  	//   "TIME_WITH_TIMEZONE" - Time with timezone type.
  1032  	//   "TIMESTAMP_WITH_TIMEZONE" - Timestamp with timezone type.
  1033  	JdbcType string `json:"jdbcType,omitempty"`
  1034  	// Properties: The child schemas, applicable only if this is of type `object`.
  1035  	// The key is the name of the property and the value is the json schema that
  1036  	// describes that property
  1037  	Properties map[string]JsonSchema `json:"properties,omitempty"`
  1038  	// Required: Whether this property is required.
  1039  	Required []string `json:"required,omitempty"`
  1040  	// Type: JSON Schema Validation: A Vocabulary for Structural Validation of JSON
  1041  	Type []string `json:"type,omitempty"`
  1042  	// ForceSendFields is a list of field names (e.g. "AdditionalDetails") to
  1043  	// unconditionally include in API requests. By default, fields with empty or
  1044  	// default values are omitted from API requests. See
  1045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1046  	// details.
  1047  	ForceSendFields []string `json:"-"`
  1048  	// NullFields is a list of field names (e.g. "AdditionalDetails") to include in
  1049  	// API requests with the JSON null value. By default, fields with empty values
  1050  	// are omitted from API requests. See
  1051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1052  	NullFields []string `json:"-"`
  1053  }
  1054  
  1055  func (s *JsonSchema) MarshalJSON() ([]byte, error) {
  1056  	type NoMethod JsonSchema
  1057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1058  }
  1059  
  1060  // ListActionsResponse: Response message for ActionService.ListActions
  1061  type ListActionsResponse struct {
  1062  	// Actions: List of action metadata.
  1063  	Actions []*Action `json:"actions,omitempty"`
  1064  	// NextPageToken: Next page token if more actions available.
  1065  	NextPageToken string `json:"nextPageToken,omitempty"`
  1066  	// UnsupportedActionNames: List of actions which contain unsupported Datatypes.
  1067  	// Check datatype.proto for more information.
  1068  	UnsupportedActionNames []string `json:"unsupportedActionNames,omitempty"`
  1069  
  1070  	// ServerResponse contains the HTTP response code and headers from the server.
  1071  	googleapi.ServerResponse `json:"-"`
  1072  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  1073  	// include in API requests. By default, fields with empty or default values are
  1074  	// omitted from API requests. See
  1075  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1076  	// details.
  1077  	ForceSendFields []string `json:"-"`
  1078  	// NullFields is a list of field names (e.g. "Actions") to include in API
  1079  	// requests with the JSON null value. By default, fields with empty values are
  1080  	// omitted from API requests. See
  1081  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1082  	NullFields []string `json:"-"`
  1083  }
  1084  
  1085  func (s *ListActionsResponse) MarshalJSON() ([]byte, error) {
  1086  	type NoMethod ListActionsResponse
  1087  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1088  }
  1089  
  1090  // ListEntitiesResponse: Response message for EntityService.ListEntities
  1091  type ListEntitiesResponse struct {
  1092  	// Entities: List containing entity rows.
  1093  	Entities []*Entity `json:"entities,omitempty"`
  1094  	// NextPageToken: Next page token if more records are available.
  1095  	NextPageToken string `json:"nextPageToken,omitempty"`
  1096  
  1097  	// ServerResponse contains the HTTP response code and headers from the server.
  1098  	googleapi.ServerResponse `json:"-"`
  1099  	// ForceSendFields is a list of field names (e.g. "Entities") to
  1100  	// unconditionally include in API requests. By default, fields with empty or
  1101  	// default values are omitted from API requests. See
  1102  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1103  	// details.
  1104  	ForceSendFields []string `json:"-"`
  1105  	// NullFields is a list of field names (e.g. "Entities") to include in API
  1106  	// requests with the JSON null value. By default, fields with empty values are
  1107  	// omitted from API requests. See
  1108  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1109  	NullFields []string `json:"-"`
  1110  }
  1111  
  1112  func (s *ListEntitiesResponse) MarshalJSON() ([]byte, error) {
  1113  	type NoMethod ListEntitiesResponse
  1114  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1115  }
  1116  
  1117  // ListEntityTypesResponse: Response message for EntityService.ListEntityTypes
  1118  type ListEntityTypesResponse struct {
  1119  	// NextPageToken: Next page token if more entity types available.
  1120  	NextPageToken string `json:"nextPageToken,omitempty"`
  1121  	// Types: List of metadata related to all entity types.
  1122  	Types []*EntityType `json:"types,omitempty"`
  1123  	// UnsupportedTypeNames: List of entity type names which contain unsupported
  1124  	// Datatypes. Check datatype.proto for more information.
  1125  	UnsupportedTypeNames []string `json:"unsupportedTypeNames,omitempty"`
  1126  
  1127  	// ServerResponse contains the HTTP response code and headers from the server.
  1128  	googleapi.ServerResponse `json:"-"`
  1129  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1130  	// unconditionally include in API requests. By default, fields with empty or
  1131  	// default values are omitted from API requests. See
  1132  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1133  	// details.
  1134  	ForceSendFields []string `json:"-"`
  1135  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1136  	// requests with the JSON null value. By default, fields with empty values are
  1137  	// omitted from API requests. See
  1138  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1139  	NullFields []string `json:"-"`
  1140  }
  1141  
  1142  func (s *ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
  1143  	type NoMethod ListEntityTypesResponse
  1144  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1145  }
  1146  
  1147  // MaintenancePolicy: Defines policies to service maintenance events.
  1148  type MaintenancePolicy struct {
  1149  	// CreateTime: Output only. The time when the resource was created.
  1150  	CreateTime string `json:"createTime,omitempty"`
  1151  	// Description: Optional. Description of what this policy is for. Create/Update
  1152  	// methods return INVALID_ARGUMENT if the length is greater than 512.
  1153  	Description string `json:"description,omitempty"`
  1154  	// Labels: Optional. Resource labels to represent user provided metadata. Each
  1155  	// label is a key-value pair, where both the key and the value are arbitrary
  1156  	// strings provided by the user.
  1157  	Labels map[string]string `json:"labels,omitempty"`
  1158  	// Name: Required. MaintenancePolicy name using the form:
  1159  	// `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenan
  1160  	// ce_policy_id}` where {project_id} refers to a GCP consumer project ID,
  1161  	// {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be
  1162  	// 1-63 characters long and match the regular expression
  1163  	// `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.
  1164  	Name string `json:"name,omitempty"`
  1165  	// State: Optional. The state of the policy.
  1166  	//
  1167  	// Possible values:
  1168  	//   "STATE_UNSPECIFIED" - Unspecified state.
  1169  	//   "READY" - Resource is ready to be used.
  1170  	//   "DELETING" - Resource is being deleted. It can no longer be attached to
  1171  	// instances.
  1172  	State string `json:"state,omitempty"`
  1173  	// UpdatePolicy: Maintenance policy applicable to instance update.
  1174  	UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"`
  1175  	// UpdateTime: Output only. The time when the resource was updated.
  1176  	UpdateTime string `json:"updateTime,omitempty"`
  1177  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1178  	// unconditionally include in API requests. By default, fields with empty or
  1179  	// default values are omitted from API requests. See
  1180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1181  	// details.
  1182  	ForceSendFields []string `json:"-"`
  1183  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1184  	// requests with the JSON null value. By default, fields with empty values are
  1185  	// omitted from API requests. See
  1186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1187  	NullFields []string `json:"-"`
  1188  }
  1189  
  1190  func (s *MaintenancePolicy) MarshalJSON() ([]byte, error) {
  1191  	type NoMethod MaintenancePolicy
  1192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1193  }
  1194  
  1195  // MaintenanceSchedule: Maintenance schedule which is exposed to customer and
  1196  // potentially end user, indicating published upcoming future maintenance
  1197  // schedule
  1198  type MaintenanceSchedule struct {
  1199  	// CanReschedule: This field is deprecated, and will be always set to true
  1200  	// since reschedule can happen multiple times now. This field should not be
  1201  	// removed until all service producers remove this for their customers.
  1202  	CanReschedule bool `json:"canReschedule,omitempty"`
  1203  	// EndTime: The scheduled end time for the maintenance.
  1204  	EndTime string `json:"endTime,omitempty"`
  1205  	// RolloutManagementPolicy: The rollout management policy this maintenance
  1206  	// schedule is associated with. When doing reschedule update request, the
  1207  	// reschedule should be against this given policy.
  1208  	RolloutManagementPolicy string `json:"rolloutManagementPolicy,omitempty"`
  1209  	// ScheduleDeadlineTime: schedule_deadline_time is the time deadline any
  1210  	// schedule start time cannot go beyond, including reschedule. It's normally
  1211  	// the initial schedule start time plus maintenance window length (1 day or 1
  1212  	// week). Maintenance cannot be scheduled to start beyond this deadline.
  1213  	ScheduleDeadlineTime string `json:"scheduleDeadlineTime,omitempty"`
  1214  	// StartTime: The scheduled start time for the maintenance.
  1215  	StartTime string `json:"startTime,omitempty"`
  1216  	// ForceSendFields is a list of field names (e.g. "CanReschedule") 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. "CanReschedule") to include in API
  1223  	// requests with the JSON null value. By default, fields with empty values are
  1224  	// 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 *MaintenanceSchedule) MarshalJSON() ([]byte, error) {
  1230  	type NoMethod MaintenanceSchedule
  1231  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1232  }
  1233  
  1234  // MaintenanceSettings: Maintenance settings associated with instance. Allows
  1235  // service producers and end users to assign settings that controls maintenance
  1236  // on this instance.
  1237  type MaintenanceSettings struct {
  1238  	// Exclude: Optional. Exclude instance from maintenance. When true, rollout
  1239  	// service will not attempt maintenance on the instance. Rollout service will
  1240  	// include the instance in reported rollout progress as not attempted.
  1241  	Exclude bool `json:"exclude,omitempty"`
  1242  	// IsRollback: Optional. If the update call is triggered from rollback, set the
  1243  	// value as true.
  1244  	IsRollback bool `json:"isRollback,omitempty"`
  1245  	// MaintenancePolicies: Optional. The MaintenancePolicies that have been
  1246  	// attached to the instance. The key must be of the type name of the oneof
  1247  	// policy name defined in MaintenancePolicy, and the embedded policy must
  1248  	// define the same policy type. For details, please refer to go/mr-user-guide.
  1249  	// Should not be set if maintenance_policy_names is set. If only the name is
  1250  	// needed, then only populate MaintenancePolicy.name.
  1251  	MaintenancePolicies map[string]MaintenancePolicy `json:"maintenancePolicies,omitempty"`
  1252  	// ForceSendFields is a list of field names (e.g. "Exclude") to unconditionally
  1253  	// include in API requests. By default, fields with empty or default values are
  1254  	// omitted from API requests. See
  1255  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1256  	// details.
  1257  	ForceSendFields []string `json:"-"`
  1258  	// NullFields is a list of field names (e.g. "Exclude") to include in API
  1259  	// requests with the JSON null value. By default, fields with empty values are
  1260  	// omitted from API requests. See
  1261  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1262  	NullFields []string `json:"-"`
  1263  }
  1264  
  1265  func (s *MaintenanceSettings) MarshalJSON() ([]byte, error) {
  1266  	type NoMethod MaintenanceSettings
  1267  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1268  }
  1269  
  1270  // MaintenanceWindow: MaintenanceWindow definition.
  1271  type MaintenanceWindow struct {
  1272  	// DailyCycle: Daily cycle.
  1273  	DailyCycle *DailyCycle `json:"dailyCycle,omitempty"`
  1274  	// WeeklyCycle: Weekly cycle.
  1275  	WeeklyCycle *WeeklyCycle `json:"weeklyCycle,omitempty"`
  1276  	// ForceSendFields is a list of field names (e.g. "DailyCycle") to
  1277  	// unconditionally include in API requests. By default, fields with empty or
  1278  	// default values are omitted from API requests. See
  1279  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1280  	// details.
  1281  	ForceSendFields []string `json:"-"`
  1282  	// NullFields is a list of field names (e.g. "DailyCycle") to include in API
  1283  	// requests with the JSON null value. By default, fields with empty values are
  1284  	// omitted from API requests. See
  1285  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1286  	NullFields []string `json:"-"`
  1287  }
  1288  
  1289  func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) {
  1290  	type NoMethod MaintenanceWindow
  1291  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1292  }
  1293  
  1294  // NodeSloMetadata: Node information for custom per-node SLO implementations.
  1295  // SSA does not support per-node SLO, but producers can populate per-node
  1296  // information in SloMetadata for custom precomputations. SSA Eligibility
  1297  // Exporter will emit per-node metric based on this information.
  1298  type NodeSloMetadata struct {
  1299  	// Location: The location of the node, if different from instance location.
  1300  	Location string `json:"location,omitempty"`
  1301  	// NodeId: The id of the node. This should be equal to
  1302  	// SaasInstanceNode.node_id.
  1303  	NodeId string `json:"nodeId,omitempty"`
  1304  	// PerSliEligibility: If present, this will override eligibility for the node
  1305  	// coming from instance or exclusions for specified SLIs.
  1306  	PerSliEligibility *PerSliSloEligibility `json:"perSliEligibility,omitempty"`
  1307  	// ForceSendFields is a list of field names (e.g. "Location") to
  1308  	// unconditionally include in API requests. By default, fields with empty or
  1309  	// default values are omitted from API requests. See
  1310  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1311  	// details.
  1312  	ForceSendFields []string `json:"-"`
  1313  	// NullFields is a list of field names (e.g. "Location") to include in API
  1314  	// requests with the JSON null value. By default, fields with empty values are
  1315  	// omitted from API requests. See
  1316  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1317  	NullFields []string `json:"-"`
  1318  }
  1319  
  1320  func (s *NodeSloMetadata) MarshalJSON() ([]byte, error) {
  1321  	type NoMethod NodeSloMetadata
  1322  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1323  }
  1324  
  1325  // NotificationParameter: Contains notification related data.
  1326  type NotificationParameter struct {
  1327  	// Values: Optional. Array of string values. e.g. instance's replica
  1328  	// information.
  1329  	Values []string `json:"values,omitempty"`
  1330  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  1331  	// include in API requests. By default, fields with empty or default values are
  1332  	// omitted from API requests. See
  1333  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1334  	// details.
  1335  	ForceSendFields []string `json:"-"`
  1336  	// NullFields is a list of field names (e.g. "Values") to include in API
  1337  	// requests with the JSON null value. By default, fields with empty values are
  1338  	// omitted from API requests. See
  1339  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1340  	NullFields []string `json:"-"`
  1341  }
  1342  
  1343  func (s *NotificationParameter) MarshalJSON() ([]byte, error) {
  1344  	type NoMethod NotificationParameter
  1345  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1346  }
  1347  
  1348  // PerSliSloEligibility: PerSliSloEligibility is a mapping from an SLI name to
  1349  // eligibility.
  1350  type PerSliSloEligibility struct {
  1351  	// Eligibilities: An entry in the eligibilities map specifies an eligibility
  1352  	// for a particular SLI for the given instance. The SLI key in the name must be
  1353  	// a valid SLI name specified in the Eligibility Exporter binary flags
  1354  	// otherwise an error will be emitted by Eligibility Exporter and the oncaller
  1355  	// will be alerted. If an SLI has been defined in the binary flags but the
  1356  	// eligibilities map does not contain it, the corresponding SLI time series
  1357  	// will not be emitted by the Eligibility Exporter. This ensures a smooth
  1358  	// rollout and compatibility between the data produced by different versions of
  1359  	// the Eligibility Exporters. If eligibilities map contains a key for an SLI
  1360  	// which has not been declared in the binary flags, there will be an error
  1361  	// message emitted in the Eligibility Exporter log and the metric for the SLI
  1362  	// in question will not be emitted.
  1363  	Eligibilities map[string]SloEligibility `json:"eligibilities,omitempty"`
  1364  	// ForceSendFields is a list of field names (e.g. "Eligibilities") to
  1365  	// unconditionally include in API requests. By default, fields with empty or
  1366  	// default values are omitted from API requests. See
  1367  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1368  	// details.
  1369  	ForceSendFields []string `json:"-"`
  1370  	// NullFields is a list of field names (e.g. "Eligibilities") to include in API
  1371  	// requests with the JSON null value. By default, fields with empty values are
  1372  	// omitted from API requests. See
  1373  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1374  	NullFields []string `json:"-"`
  1375  }
  1376  
  1377  func (s *PerSliSloEligibility) MarshalJSON() ([]byte, error) {
  1378  	type NoMethod PerSliSloEligibility
  1379  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1380  }
  1381  
  1382  // ProvisionedResource: Describes provisioned dataplane resources.
  1383  type ProvisionedResource struct {
  1384  	// ResourceType: Type of the resource. This can be either a GCP resource or a
  1385  	// custom one (e.g. another cloud provider's VM). For GCP compute resources use
  1386  	// singular form of the names listed in GCP compute API documentation
  1387  	// (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed with
  1388  	// 'compute-', for example: 'compute-instance', 'compute-disk',
  1389  	// 'compute-autoscaler'.
  1390  	ResourceType string `json:"resourceType,omitempty"`
  1391  	// ResourceUrl: URL identifying the resource, e.g.
  1392  	// "https://www.googleapis.com/compute/v1/projects/...)".
  1393  	ResourceUrl string `json:"resourceUrl,omitempty"`
  1394  	// ForceSendFields is a list of field names (e.g. "ResourceType") to
  1395  	// unconditionally include in API requests. By default, fields with empty or
  1396  	// default values are omitted from API requests. See
  1397  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1398  	// details.
  1399  	ForceSendFields []string `json:"-"`
  1400  	// NullFields is a list of field names (e.g. "ResourceType") to include in API
  1401  	// requests with the JSON null value. By default, fields with empty values are
  1402  	// omitted from API requests. See
  1403  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1404  	NullFields []string `json:"-"`
  1405  }
  1406  
  1407  func (s *ProvisionedResource) MarshalJSON() ([]byte, error) {
  1408  	type NoMethod ProvisionedResource
  1409  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1410  }
  1411  
  1412  // Query: A wrapper around the SQL query statement. This is needed so that the
  1413  // JSON representation of ExecuteSqlQueryRequest has the following format:
  1414  // `{"query":"select *"}`.
  1415  type Query struct {
  1416  	// MaxRows: Sets the limit for the maximum number of rows returned after the
  1417  	// query execution.
  1418  	MaxRows int64 `json:"maxRows,omitempty,string"`
  1419  	// Query: Required. Sql query to execute.
  1420  	Query string `json:"query,omitempty"`
  1421  	// QueryParameters: In the struct, the value corresponds to the value of query
  1422  	// parameter and date type corresponds to the date type of the query parameter.
  1423  	QueryParameters []*QueryParameter `json:"queryParameters,omitempty"`
  1424  	// Timeout: Sets the number of seconds the driver will wait for a query to
  1425  	// execute.
  1426  	Timeout int64 `json:"timeout,omitempty,string"`
  1427  	// ForceSendFields is a list of field names (e.g. "MaxRows") to unconditionally
  1428  	// include in API requests. By default, fields with empty or default values are
  1429  	// omitted from API requests. See
  1430  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1431  	// details.
  1432  	ForceSendFields []string `json:"-"`
  1433  	// NullFields is a list of field names (e.g. "MaxRows") to include in API
  1434  	// requests with the JSON null value. By default, fields with empty values are
  1435  	// omitted from API requests. See
  1436  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1437  	NullFields []string `json:"-"`
  1438  }
  1439  
  1440  func (s *Query) MarshalJSON() ([]byte, error) {
  1441  	type NoMethod Query
  1442  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1443  }
  1444  
  1445  // QueryParameter: Query parameter definition
  1446  type QueryParameter struct {
  1447  	// Possible values:
  1448  	//   "DATA_TYPE_UNSPECIFIED" - Datatype unspecified.
  1449  	//   "INT" - Deprecated Int type, use INTEGER type instead.
  1450  	//   "SMALLINT" - Small int type.
  1451  	//   "DOUBLE" - Double type.
  1452  	//   "DATE" - Date type.
  1453  	//   "DATETIME" - Deprecated Datetime type.
  1454  	//   "TIME" - Time type.
  1455  	//   "STRING" - Deprecated string type, use VARCHAR type instead.
  1456  	//   "LONG" - Deprecated Long type, use BIGINT type instead.
  1457  	//   "BOOLEAN" - Boolean type.
  1458  	//   "DECIMAL" - Decimal type.
  1459  	//   "UUID" - Deprecated UUID type, use VARCHAR instead.
  1460  	//   "BLOB" - Blob type.
  1461  	//   "BIT" - Bit type.
  1462  	//   "TINYINT" - Tiny int type.
  1463  	//   "INTEGER" - Integer type.
  1464  	//   "BIGINT" - Big int type.
  1465  	//   "FLOAT" - Float type.
  1466  	//   "REAL" - Real type.
  1467  	//   "NUMERIC" - Numeric type.
  1468  	//   "CHAR" - Char type.
  1469  	//   "VARCHAR" - Varchar type.
  1470  	//   "LONGVARCHAR" - Long varchar type.
  1471  	//   "TIMESTAMP" - Timestamp type.
  1472  	//   "NCHAR" - Nchar type.
  1473  	//   "NVARCHAR" - Nvarchar type.
  1474  	//   "LONGNVARCHAR" - Long Nvarchar type.
  1475  	//   "NULL" - Null type.
  1476  	//   "OTHER" - Other type.
  1477  	//   "JAVA_OBJECT" - Java object type.
  1478  	//   "DISTINCT" - Distinct type keyword.
  1479  	//   "STRUCT" - Struct type.
  1480  	//   "ARRAY" - Array type.
  1481  	//   "CLOB" - Clob type.
  1482  	//   "REF" - Ref type.
  1483  	//   "DATALINK" - Datalink type.
  1484  	//   "ROWID" - Row ID type.
  1485  	//   "BINARY" - Binary type.
  1486  	//   "VARBINARY" - Varbinary type.
  1487  	//   "LONGVARBINARY" - Long Varbinary type.
  1488  	//   "NCLOB" - Nclob type.
  1489  	//   "SQLXML" - SQLXML type.
  1490  	//   "REF_CURSOR" - Ref_cursor type.
  1491  	//   "TIME_WITH_TIMEZONE" - Time with timezone type.
  1492  	//   "TIMESTAMP_WITH_TIMEZONE" - Timestamp with timezone type.
  1493  	DataType string      `json:"dataType,omitempty"`
  1494  	Value    interface{} `json:"value,omitempty"`
  1495  	// ForceSendFields is a list of field names (e.g. "DataType") to
  1496  	// unconditionally include in API requests. By default, fields with empty or
  1497  	// default values are omitted from API requests. See
  1498  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1499  	// details.
  1500  	ForceSendFields []string `json:"-"`
  1501  	// NullFields is a list of field names (e.g. "DataType") to include in API
  1502  	// requests with the JSON null value. By default, fields with empty values are
  1503  	// omitted from API requests. See
  1504  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1505  	NullFields []string `json:"-"`
  1506  }
  1507  
  1508  func (s *QueryParameter) MarshalJSON() ([]byte, error) {
  1509  	type NoMethod QueryParameter
  1510  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1511  }
  1512  
  1513  type Reference struct {
  1514  	// Name: Name of the reference field.
  1515  	Name string `json:"name,omitempty"`
  1516  	// Type: Name of reference entity type.
  1517  	Type string `json:"type,omitempty"`
  1518  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1519  	// include in API requests. By default, fields with empty or default values are
  1520  	// omitted from API requests. See
  1521  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1522  	// details.
  1523  	ForceSendFields []string `json:"-"`
  1524  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1525  	// with the JSON null value. By default, fields with empty values are omitted
  1526  	// from API requests. See
  1527  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1528  	NullFields []string `json:"-"`
  1529  }
  1530  
  1531  func (s *Reference) MarshalJSON() ([]byte, error) {
  1532  	type NoMethod Reference
  1533  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1534  }
  1535  
  1536  // RefreshAccessTokenRequest: RefreshAccessTokenRequest currently includes no
  1537  // fields.
  1538  type RefreshAccessTokenRequest struct {
  1539  }
  1540  
  1541  // RefreshAccessTokenResponse: RefreshAccessTokenResponse includes the returned
  1542  // access token and its associated credentials.
  1543  type RefreshAccessTokenResponse struct {
  1544  	AccessCredentials *AccessCredentials `json:"accessCredentials,omitempty"`
  1545  
  1546  	// ServerResponse contains the HTTP response code and headers from the server.
  1547  	googleapi.ServerResponse `json:"-"`
  1548  	// ForceSendFields is a list of field names (e.g. "AccessCredentials") to
  1549  	// unconditionally include in API requests. By default, fields with empty or
  1550  	// default values are omitted from API requests. See
  1551  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1552  	// details.
  1553  	ForceSendFields []string `json:"-"`
  1554  	// NullFields is a list of field names (e.g. "AccessCredentials") to include in
  1555  	// API requests with the JSON null value. By default, fields with empty values
  1556  	// are omitted from API requests. See
  1557  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1558  	NullFields []string `json:"-"`
  1559  }
  1560  
  1561  func (s *RefreshAccessTokenResponse) MarshalJSON() ([]byte, error) {
  1562  	type NoMethod RefreshAccessTokenResponse
  1563  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1564  }
  1565  
  1566  // ResultMetadata: Result Metadata message contains metadata about the result
  1567  // returned after executing an Action.
  1568  type ResultMetadata struct {
  1569  	// DataType: The data type of the metadata field
  1570  	//
  1571  	// Possible values:
  1572  	//   "DATA_TYPE_UNSPECIFIED" - Datatype unspecified.
  1573  	//   "INT" - Deprecated Int type, use INTEGER type instead.
  1574  	//   "SMALLINT" - Small int type.
  1575  	//   "DOUBLE" - Double type.
  1576  	//   "DATE" - Date type.
  1577  	//   "DATETIME" - Deprecated Datetime type.
  1578  	//   "TIME" - Time type.
  1579  	//   "STRING" - Deprecated string type, use VARCHAR type instead.
  1580  	//   "LONG" - Deprecated Long type, use BIGINT type instead.
  1581  	//   "BOOLEAN" - Boolean type.
  1582  	//   "DECIMAL" - Decimal type.
  1583  	//   "UUID" - Deprecated UUID type, use VARCHAR instead.
  1584  	//   "BLOB" - Blob type.
  1585  	//   "BIT" - Bit type.
  1586  	//   "TINYINT" - Tiny int type.
  1587  	//   "INTEGER" - Integer type.
  1588  	//   "BIGINT" - Big int type.
  1589  	//   "FLOAT" - Float type.
  1590  	//   "REAL" - Real type.
  1591  	//   "NUMERIC" - Numeric type.
  1592  	//   "CHAR" - Char type.
  1593  	//   "VARCHAR" - Varchar type.
  1594  	//   "LONGVARCHAR" - Long varchar type.
  1595  	//   "TIMESTAMP" - Timestamp type.
  1596  	//   "NCHAR" - Nchar type.
  1597  	//   "NVARCHAR" - Nvarchar type.
  1598  	//   "LONGNVARCHAR" - Long Nvarchar type.
  1599  	//   "NULL" - Null type.
  1600  	//   "OTHER" - Other type.
  1601  	//   "JAVA_OBJECT" - Java object type.
  1602  	//   "DISTINCT" - Distinct type keyword.
  1603  	//   "STRUCT" - Struct type.
  1604  	//   "ARRAY" - Array type.
  1605  	//   "CLOB" - Clob type.
  1606  	//   "REF" - Ref type.
  1607  	//   "DATALINK" - Datalink type.
  1608  	//   "ROWID" - Row ID type.
  1609  	//   "BINARY" - Binary type.
  1610  	//   "VARBINARY" - Varbinary type.
  1611  	//   "LONGVARBINARY" - Long Varbinary type.
  1612  	//   "NCLOB" - Nclob type.
  1613  	//   "SQLXML" - SQLXML type.
  1614  	//   "REF_CURSOR" - Ref_cursor type.
  1615  	//   "TIME_WITH_TIMEZONE" - Time with timezone type.
  1616  	//   "TIMESTAMP_WITH_TIMEZONE" - Timestamp with timezone type.
  1617  	DataType string `json:"dataType,omitempty"`
  1618  	// Description: A brief description of the metadata field.
  1619  	Description string `json:"description,omitempty"`
  1620  	// JsonSchema: JsonSchema of the result, applicable only if parameter is of
  1621  	// type `STRUCT`
  1622  	JsonSchema *JsonSchema `json:"jsonSchema,omitempty"`
  1623  	// Name: Name of the metadata field.
  1624  	Name string `json:"name,omitempty"`
  1625  	// ForceSendFields is a list of field names (e.g. "DataType") to
  1626  	// unconditionally include in API requests. By default, fields with empty or
  1627  	// default values are omitted from API requests. See
  1628  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1629  	// details.
  1630  	ForceSendFields []string `json:"-"`
  1631  	// NullFields is a list of field names (e.g. "DataType") to include in API
  1632  	// requests with the JSON null value. By default, fields with empty values are
  1633  	// omitted from API requests. See
  1634  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1635  	NullFields []string `json:"-"`
  1636  }
  1637  
  1638  func (s *ResultMetadata) MarshalJSON() ([]byte, error) {
  1639  	type NoMethod ResultMetadata
  1640  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1641  }
  1642  
  1643  // Schedule: Configure the schedule.
  1644  type Schedule struct {
  1645  	// Day: Allows to define schedule that runs specified day of the week.
  1646  	//
  1647  	// Possible values:
  1648  	//   "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
  1649  	//   "MONDAY" - Monday
  1650  	//   "TUESDAY" - Tuesday
  1651  	//   "WEDNESDAY" - Wednesday
  1652  	//   "THURSDAY" - Thursday
  1653  	//   "FRIDAY" - Friday
  1654  	//   "SATURDAY" - Saturday
  1655  	//   "SUNDAY" - Sunday
  1656  	Day string `json:"day,omitempty"`
  1657  	// Duration: Output only. Duration of the time window, set by service producer.
  1658  	Duration string `json:"duration,omitempty"`
  1659  	// StartTime: Time within the window to start the operations.
  1660  	StartTime *TimeOfDay `json:"startTime,omitempty"`
  1661  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  1662  	// include in API requests. By default, fields with empty or default values are
  1663  	// omitted from API requests. See
  1664  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1665  	// details.
  1666  	ForceSendFields []string `json:"-"`
  1667  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  1668  	// with the JSON null value. By default, fields with empty values are omitted
  1669  	// from API requests. See
  1670  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1671  	NullFields []string `json:"-"`
  1672  }
  1673  
  1674  func (s *Schedule) MarshalJSON() ([]byte, error) {
  1675  	type NoMethod Schedule
  1676  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1677  }
  1678  
  1679  // SloEligibility: SloEligibility is a tuple containing eligibility value: true
  1680  // if an instance is eligible for SLO calculation or false if it should be
  1681  // excluded from all SLO-related calculations along with a user-defined reason.
  1682  type SloEligibility struct {
  1683  	// Eligible: Whether an instance is eligible or ineligible.
  1684  	Eligible bool `json:"eligible,omitempty"`
  1685  	// Reason: User-defined reason for the current value of instance eligibility.
  1686  	// Usually, this can be directly mapped to the internal state. An empty reason
  1687  	// is allowed.
  1688  	Reason string `json:"reason,omitempty"`
  1689  	// ForceSendFields is a list of field names (e.g. "Eligible") to
  1690  	// unconditionally include in API requests. By default, fields with empty or
  1691  	// default values are omitted from API requests. See
  1692  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1693  	// details.
  1694  	ForceSendFields []string `json:"-"`
  1695  	// NullFields is a list of field names (e.g. "Eligible") to include in API
  1696  	// requests with the JSON null value. By default, fields with empty values are
  1697  	// omitted from API requests. See
  1698  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1699  	NullFields []string `json:"-"`
  1700  }
  1701  
  1702  func (s *SloEligibility) MarshalJSON() ([]byte, error) {
  1703  	type NoMethod SloEligibility
  1704  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1705  }
  1706  
  1707  // SloMetadata: SloMetadata contains resources required for proper SLO
  1708  // classification of the instance.
  1709  type SloMetadata struct {
  1710  	// Nodes: Optional. List of nodes. Some producers need to use per-node metadata
  1711  	// to calculate SLO. This field allows such producers to publish per-node SLO
  1712  	// meta data, which will be consumed by SSA Eligibility Exporter and published
  1713  	// in the form of per node metric to Monarch.
  1714  	Nodes []*NodeSloMetadata `json:"nodes,omitempty"`
  1715  	// PerSliEligibility: Optional. Multiple per-instance SLI eligibilities which
  1716  	// apply for individual SLIs.
  1717  	PerSliEligibility *PerSliSloEligibility `json:"perSliEligibility,omitempty"`
  1718  	// Tier: Name of the SLO tier the Instance belongs to. This name will be
  1719  	// expected to match the tiers specified in the service SLO configuration.
  1720  	// Field is mandatory and must not be empty.
  1721  	Tier string `json:"tier,omitempty"`
  1722  	// ForceSendFields is a list of field names (e.g. "Nodes") to unconditionally
  1723  	// include in API requests. By default, fields with empty or default values are
  1724  	// omitted from API requests. See
  1725  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1726  	// details.
  1727  	ForceSendFields []string `json:"-"`
  1728  	// NullFields is a list of field names (e.g. "Nodes") to include in API
  1729  	// requests with the JSON null value. By default, fields with empty values are
  1730  	// omitted from API requests. See
  1731  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1732  	NullFields []string `json:"-"`
  1733  }
  1734  
  1735  func (s *SloMetadata) MarshalJSON() ([]byte, error) {
  1736  	type NoMethod SloMetadata
  1737  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1738  }
  1739  
  1740  // TimeOfDay: Represents a time of day. The date and time zone are either not
  1741  // significant or are specified elsewhere. An API may choose to allow leap
  1742  // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
  1743  type TimeOfDay struct {
  1744  	// Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may
  1745  	// choose to allow the value "24:00:00" for scenarios like business closing
  1746  	// time.
  1747  	Hours int64 `json:"hours,omitempty"`
  1748  	// Minutes: Minutes of hour of day. Must be from 0 to 59.
  1749  	Minutes int64 `json:"minutes,omitempty"`
  1750  	// Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
  1751  	Nanos int64 `json:"nanos,omitempty"`
  1752  	// Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An
  1753  	// API may allow the value 60 if it allows leap-seconds.
  1754  	Seconds int64 `json:"seconds,omitempty"`
  1755  	// ForceSendFields is a list of field names (e.g. "Hours") to unconditionally
  1756  	// include in API requests. By default, fields with empty or default values are
  1757  	// omitted from API requests. See
  1758  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1759  	// details.
  1760  	ForceSendFields []string `json:"-"`
  1761  	// NullFields is a list of field names (e.g. "Hours") to include in API
  1762  	// requests with the JSON null value. By default, fields with empty values are
  1763  	// omitted from API requests. See
  1764  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1765  	NullFields []string `json:"-"`
  1766  }
  1767  
  1768  func (s *TimeOfDay) MarshalJSON() ([]byte, error) {
  1769  	type NoMethod TimeOfDay
  1770  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1771  }
  1772  
  1773  // UpdateEntitiesWithConditionsResponse: Response message for
  1774  // EntityService.UpdateEntitiesWithConditions
  1775  type UpdateEntitiesWithConditionsResponse struct {
  1776  	// Response: Response returned by the external system.
  1777  	Response googleapi.RawMessage `json:"response,omitempty"`
  1778  
  1779  	// ServerResponse contains the HTTP response code and headers from the server.
  1780  	googleapi.ServerResponse `json:"-"`
  1781  	// ForceSendFields is a list of field names (e.g. "Response") to
  1782  	// unconditionally include in API requests. By default, fields with empty or
  1783  	// default values are omitted from API requests. See
  1784  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1785  	// details.
  1786  	ForceSendFields []string `json:"-"`
  1787  	// NullFields is a list of field names (e.g. "Response") to include in API
  1788  	// requests with the JSON null value. By default, fields with empty values are
  1789  	// omitted from API requests. See
  1790  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1791  	NullFields []string `json:"-"`
  1792  }
  1793  
  1794  func (s *UpdateEntitiesWithConditionsResponse) MarshalJSON() ([]byte, error) {
  1795  	type NoMethod UpdateEntitiesWithConditionsResponse
  1796  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1797  }
  1798  
  1799  // UpdatePolicy: Maintenance policy applicable to instance updates.
  1800  type UpdatePolicy struct {
  1801  	// Channel: Optional. Relative scheduling channel applied to resource.
  1802  	//
  1803  	// Possible values:
  1804  	//   "UPDATE_CHANNEL_UNSPECIFIED" - Unspecified channel.
  1805  	//   "EARLIER" - Early channel within a customer project.
  1806  	//   "LATER" - Later channel within a customer project.
  1807  	//   "WEEK1" - ! ! The follow channels can ONLY be used if you adopt the new MW
  1808  	// system! ! ! NOTE: all WEEK channels are assumed to be under a weekly window.
  1809  	// ! There is currently no dedicated channel definitions for Daily windows. !
  1810  	// If you use Daily window, the system will assume a 1d (24Hours) advanced !
  1811  	// notification period b/w EARLY and LATER. ! We may consider support more
  1812  	// flexible daily channel specifications in ! the future. WEEK1 == EARLIER with
  1813  	// minimum 7d advanced notification. {7d, 14d} The system will treat them
  1814  	// equally and will use WEEK1 whenever it can. New customers are encouraged to
  1815  	// use this channel annotation.
  1816  	//   "WEEK2" - WEEK2 == LATER with minimum 14d advanced notification {14d,
  1817  	// 21d}.
  1818  	//   "WEEK5" - WEEK5 == 40d support. minimum 35d advanced notification {35d,
  1819  	// 42d}.
  1820  	Channel string `json:"channel,omitempty"`
  1821  	// DenyMaintenancePeriods: Deny Maintenance Period that is applied to resource
  1822  	// to indicate when maintenance is forbidden. The protocol supports
  1823  	// zero-to-many such periods, but the current SLM Rollout implementation only
  1824  	// supports zero-to-one.
  1825  	DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"`
  1826  	// Window: Optional. Maintenance window that is applied to resources covered by
  1827  	// this policy.
  1828  	Window *MaintenanceWindow `json:"window,omitempty"`
  1829  	// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally
  1830  	// include in API requests. By default, fields with empty or default values are
  1831  	// omitted from API requests. See
  1832  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1833  	// details.
  1834  	ForceSendFields []string `json:"-"`
  1835  	// NullFields is a list of field names (e.g. "Channel") to include in API
  1836  	// requests with the JSON null value. By default, fields with empty values are
  1837  	// omitted from API requests. See
  1838  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1839  	NullFields []string `json:"-"`
  1840  }
  1841  
  1842  func (s *UpdatePolicy) MarshalJSON() ([]byte, error) {
  1843  	type NoMethod UpdatePolicy
  1844  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1845  }
  1846  
  1847  // WeeklyCycle: Time window specified for weekly operations.
  1848  type WeeklyCycle struct {
  1849  	// Schedule: User can specify multiple windows in a week. Minimum of 1 window.
  1850  	Schedule []*Schedule `json:"schedule,omitempty"`
  1851  	// ForceSendFields is a list of field names (e.g. "Schedule") to
  1852  	// unconditionally include in API requests. By default, fields with empty or
  1853  	// default values are omitted from API requests. See
  1854  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1855  	// details.
  1856  	ForceSendFields []string `json:"-"`
  1857  	// NullFields is a list of field names (e.g. "Schedule") to include in API
  1858  	// requests with the JSON null value. By default, fields with empty values are
  1859  	// omitted from API requests. See
  1860  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1861  	NullFields []string `json:"-"`
  1862  }
  1863  
  1864  func (s *WeeklyCycle) MarshalJSON() ([]byte, error) {
  1865  	type NoMethod WeeklyCycle
  1866  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1867  }
  1868  
  1869  type ProjectsLocationsConnectionsCheckReadinessCall struct {
  1870  	s            *Service
  1871  	name         string
  1872  	urlParams_   gensupport.URLParams
  1873  	ifNoneMatch_ string
  1874  	ctx_         context.Context
  1875  	header_      http.Header
  1876  }
  1877  
  1878  // CheckReadiness: Reports readiness status of the connector. Similar logic to
  1879  // GetStatus but modified for kubernetes health check to understand.
  1880  //
  1881  // - name: .
  1882  func (r *ProjectsLocationsConnectionsService) CheckReadiness(name string) *ProjectsLocationsConnectionsCheckReadinessCall {
  1883  	c := &ProjectsLocationsConnectionsCheckReadinessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1884  	c.name = name
  1885  	return c
  1886  }
  1887  
  1888  // Fields allows partial responses to be retrieved. See
  1889  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1890  // details.
  1891  func (c *ProjectsLocationsConnectionsCheckReadinessCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsCheckReadinessCall {
  1892  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1893  	return c
  1894  }
  1895  
  1896  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  1897  // object's ETag matches the given value. This is useful for getting updates
  1898  // only after the object has changed since the last request.
  1899  func (c *ProjectsLocationsConnectionsCheckReadinessCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsCheckReadinessCall {
  1900  	c.ifNoneMatch_ = entityTag
  1901  	return c
  1902  }
  1903  
  1904  // Context sets the context to be used in this call's Do method.
  1905  func (c *ProjectsLocationsConnectionsCheckReadinessCall) Context(ctx context.Context) *ProjectsLocationsConnectionsCheckReadinessCall {
  1906  	c.ctx_ = ctx
  1907  	return c
  1908  }
  1909  
  1910  // Header returns a http.Header that can be modified by the caller to add
  1911  // headers to the request.
  1912  func (c *ProjectsLocationsConnectionsCheckReadinessCall) Header() http.Header {
  1913  	if c.header_ == nil {
  1914  		c.header_ = make(http.Header)
  1915  	}
  1916  	return c.header_
  1917  }
  1918  
  1919  func (c *ProjectsLocationsConnectionsCheckReadinessCall) doRequest(alt string) (*http.Response, error) {
  1920  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1921  	if c.ifNoneMatch_ != "" {
  1922  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1923  	}
  1924  	var body io.Reader = nil
  1925  	c.urlParams_.Set("alt", alt)
  1926  	c.urlParams_.Set("prettyPrint", "false")
  1927  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:checkReadiness")
  1928  	urls += "?" + c.urlParams_.Encode()
  1929  	req, err := http.NewRequest("GET", urls, body)
  1930  	if err != nil {
  1931  		return nil, err
  1932  	}
  1933  	req.Header = reqHeaders
  1934  	googleapi.Expand(req.URL, map[string]string{
  1935  		"name": c.name,
  1936  	})
  1937  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1938  }
  1939  
  1940  // Do executes the "connectors.projects.locations.connections.checkReadiness" call.
  1941  // Any non-2xx status code is an error. Response headers are in either
  1942  // *CheckReadinessResponse.ServerResponse.Header or (if a response was returned
  1943  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  1944  // check whether the returned error was because http.StatusNotModified was
  1945  // returned.
  1946  func (c *ProjectsLocationsConnectionsCheckReadinessCall) Do(opts ...googleapi.CallOption) (*CheckReadinessResponse, error) {
  1947  	gensupport.SetOptions(c.urlParams_, opts...)
  1948  	res, err := c.doRequest("json")
  1949  	if res != nil && res.StatusCode == http.StatusNotModified {
  1950  		if res.Body != nil {
  1951  			res.Body.Close()
  1952  		}
  1953  		return nil, gensupport.WrapError(&googleapi.Error{
  1954  			Code:   res.StatusCode,
  1955  			Header: res.Header,
  1956  		})
  1957  	}
  1958  	if err != nil {
  1959  		return nil, err
  1960  	}
  1961  	defer googleapi.CloseBody(res)
  1962  	if err := googleapi.CheckResponse(res); err != nil {
  1963  		return nil, gensupport.WrapError(err)
  1964  	}
  1965  	ret := &CheckReadinessResponse{
  1966  		ServerResponse: googleapi.ServerResponse{
  1967  			Header:         res.Header,
  1968  			HTTPStatusCode: res.StatusCode,
  1969  		},
  1970  	}
  1971  	target := &ret
  1972  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1973  		return nil, err
  1974  	}
  1975  	return ret, nil
  1976  }
  1977  
  1978  type ProjectsLocationsConnectionsCheckStatusCall struct {
  1979  	s            *Service
  1980  	name         string
  1981  	urlParams_   gensupport.URLParams
  1982  	ifNoneMatch_ string
  1983  	ctx_         context.Context
  1984  	header_      http.Header
  1985  }
  1986  
  1987  // CheckStatus: Reports the status of the connection. Note that when the
  1988  // connection is in a state that is not ACTIVE, the implementation of this RPC
  1989  // method must return a Status with the corresponding State instead of
  1990  // returning a gRPC status code that is not "OK", which indicates that
  1991  // ConnectionStatus itself, not the connection, failed.
  1992  //
  1993  // - name: .
  1994  func (r *ProjectsLocationsConnectionsService) CheckStatus(name string) *ProjectsLocationsConnectionsCheckStatusCall {
  1995  	c := &ProjectsLocationsConnectionsCheckStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1996  	c.name = name
  1997  	return c
  1998  }
  1999  
  2000  // Fields allows partial responses to be retrieved. See
  2001  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2002  // details.
  2003  func (c *ProjectsLocationsConnectionsCheckStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsCheckStatusCall {
  2004  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2005  	return c
  2006  }
  2007  
  2008  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2009  // object's ETag matches the given value. This is useful for getting updates
  2010  // only after the object has changed since the last request.
  2011  func (c *ProjectsLocationsConnectionsCheckStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsCheckStatusCall {
  2012  	c.ifNoneMatch_ = entityTag
  2013  	return c
  2014  }
  2015  
  2016  // Context sets the context to be used in this call's Do method.
  2017  func (c *ProjectsLocationsConnectionsCheckStatusCall) Context(ctx context.Context) *ProjectsLocationsConnectionsCheckStatusCall {
  2018  	c.ctx_ = ctx
  2019  	return c
  2020  }
  2021  
  2022  // Header returns a http.Header that can be modified by the caller to add
  2023  // headers to the request.
  2024  func (c *ProjectsLocationsConnectionsCheckStatusCall) Header() http.Header {
  2025  	if c.header_ == nil {
  2026  		c.header_ = make(http.Header)
  2027  	}
  2028  	return c.header_
  2029  }
  2030  
  2031  func (c *ProjectsLocationsConnectionsCheckStatusCall) doRequest(alt string) (*http.Response, error) {
  2032  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2033  	if c.ifNoneMatch_ != "" {
  2034  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2035  	}
  2036  	var body io.Reader = nil
  2037  	c.urlParams_.Set("alt", alt)
  2038  	c.urlParams_.Set("prettyPrint", "false")
  2039  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:checkStatus")
  2040  	urls += "?" + c.urlParams_.Encode()
  2041  	req, err := http.NewRequest("GET", urls, body)
  2042  	if err != nil {
  2043  		return nil, err
  2044  	}
  2045  	req.Header = reqHeaders
  2046  	googleapi.Expand(req.URL, map[string]string{
  2047  		"name": c.name,
  2048  	})
  2049  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2050  }
  2051  
  2052  // Do executes the "connectors.projects.locations.connections.checkStatus" call.
  2053  // Any non-2xx status code is an error. Response headers are in either
  2054  // *CheckStatusResponse.ServerResponse.Header or (if a response was returned at
  2055  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  2056  // check whether the returned error was because http.StatusNotModified was
  2057  // returned.
  2058  func (c *ProjectsLocationsConnectionsCheckStatusCall) Do(opts ...googleapi.CallOption) (*CheckStatusResponse, error) {
  2059  	gensupport.SetOptions(c.urlParams_, opts...)
  2060  	res, err := c.doRequest("json")
  2061  	if res != nil && res.StatusCode == http.StatusNotModified {
  2062  		if res.Body != nil {
  2063  			res.Body.Close()
  2064  		}
  2065  		return nil, gensupport.WrapError(&googleapi.Error{
  2066  			Code:   res.StatusCode,
  2067  			Header: res.Header,
  2068  		})
  2069  	}
  2070  	if err != nil {
  2071  		return nil, err
  2072  	}
  2073  	defer googleapi.CloseBody(res)
  2074  	if err := googleapi.CheckResponse(res); err != nil {
  2075  		return nil, gensupport.WrapError(err)
  2076  	}
  2077  	ret := &CheckStatusResponse{
  2078  		ServerResponse: googleapi.ServerResponse{
  2079  			Header:         res.Header,
  2080  			HTTPStatusCode: res.StatusCode,
  2081  		},
  2082  	}
  2083  	target := &ret
  2084  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2085  		return nil, err
  2086  	}
  2087  	return ret, nil
  2088  }
  2089  
  2090  type ProjectsLocationsConnectionsExchangeAuthCodeCall struct {
  2091  	s                       *Service
  2092  	name                    string
  2093  	exchangeauthcoderequest *ExchangeAuthCodeRequest
  2094  	urlParams_              gensupport.URLParams
  2095  	ctx_                    context.Context
  2096  	header_                 http.Header
  2097  }
  2098  
  2099  // ExchangeAuthCode: ExchangeAuthCode exchanges the OAuth authorization code
  2100  // (and other necessary data) for an access token (and associated credentials).
  2101  //
  2102  // - name: .
  2103  func (r *ProjectsLocationsConnectionsService) ExchangeAuthCode(name string, exchangeauthcoderequest *ExchangeAuthCodeRequest) *ProjectsLocationsConnectionsExchangeAuthCodeCall {
  2104  	c := &ProjectsLocationsConnectionsExchangeAuthCodeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2105  	c.name = name
  2106  	c.exchangeauthcoderequest = exchangeauthcoderequest
  2107  	return c
  2108  }
  2109  
  2110  // Fields allows partial responses to be retrieved. See
  2111  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2112  // details.
  2113  func (c *ProjectsLocationsConnectionsExchangeAuthCodeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsExchangeAuthCodeCall {
  2114  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2115  	return c
  2116  }
  2117  
  2118  // Context sets the context to be used in this call's Do method.
  2119  func (c *ProjectsLocationsConnectionsExchangeAuthCodeCall) Context(ctx context.Context) *ProjectsLocationsConnectionsExchangeAuthCodeCall {
  2120  	c.ctx_ = ctx
  2121  	return c
  2122  }
  2123  
  2124  // Header returns a http.Header that can be modified by the caller to add
  2125  // headers to the request.
  2126  func (c *ProjectsLocationsConnectionsExchangeAuthCodeCall) Header() http.Header {
  2127  	if c.header_ == nil {
  2128  		c.header_ = make(http.Header)
  2129  	}
  2130  	return c.header_
  2131  }
  2132  
  2133  func (c *ProjectsLocationsConnectionsExchangeAuthCodeCall) doRequest(alt string) (*http.Response, error) {
  2134  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2135  	var body io.Reader = nil
  2136  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.exchangeauthcoderequest)
  2137  	if err != nil {
  2138  		return nil, err
  2139  	}
  2140  	c.urlParams_.Set("alt", alt)
  2141  	c.urlParams_.Set("prettyPrint", "false")
  2142  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:exchangeAuthCode")
  2143  	urls += "?" + c.urlParams_.Encode()
  2144  	req, err := http.NewRequest("POST", urls, body)
  2145  	if err != nil {
  2146  		return nil, err
  2147  	}
  2148  	req.Header = reqHeaders
  2149  	googleapi.Expand(req.URL, map[string]string{
  2150  		"name": c.name,
  2151  	})
  2152  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2153  }
  2154  
  2155  // Do executes the "connectors.projects.locations.connections.exchangeAuthCode" call.
  2156  // Any non-2xx status code is an error. Response headers are in either
  2157  // *ExchangeAuthCodeResponse.ServerResponse.Header or (if a response was
  2158  // returned at all) in error.(*googleapi.Error).Header. Use
  2159  // googleapi.IsNotModified to check whether the returned error was because
  2160  // http.StatusNotModified was returned.
  2161  func (c *ProjectsLocationsConnectionsExchangeAuthCodeCall) Do(opts ...googleapi.CallOption) (*ExchangeAuthCodeResponse, error) {
  2162  	gensupport.SetOptions(c.urlParams_, opts...)
  2163  	res, err := c.doRequest("json")
  2164  	if res != nil && res.StatusCode == http.StatusNotModified {
  2165  		if res.Body != nil {
  2166  			res.Body.Close()
  2167  		}
  2168  		return nil, gensupport.WrapError(&googleapi.Error{
  2169  			Code:   res.StatusCode,
  2170  			Header: res.Header,
  2171  		})
  2172  	}
  2173  	if err != nil {
  2174  		return nil, err
  2175  	}
  2176  	defer googleapi.CloseBody(res)
  2177  	if err := googleapi.CheckResponse(res); err != nil {
  2178  		return nil, gensupport.WrapError(err)
  2179  	}
  2180  	ret := &ExchangeAuthCodeResponse{
  2181  		ServerResponse: googleapi.ServerResponse{
  2182  			Header:         res.Header,
  2183  			HTTPStatusCode: res.StatusCode,
  2184  		},
  2185  	}
  2186  	target := &ret
  2187  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2188  		return nil, err
  2189  	}
  2190  	return ret, nil
  2191  }
  2192  
  2193  type ProjectsLocationsConnectionsExecuteSqlQueryCall struct {
  2194  	s                      *Service
  2195  	connection             string
  2196  	executesqlqueryrequest *ExecuteSqlQueryRequest
  2197  	urlParams_             gensupport.URLParams
  2198  	ctx_                   context.Context
  2199  	header_                http.Header
  2200  }
  2201  
  2202  // ExecuteSqlQuery: Executes a SQL statement specified in the body of the
  2203  // request. An example of this SQL statement in the case of Salesforce
  2204  // connector would be 'select * from Account a, Order o where a.Id =
  2205  // o.AccountId'.
  2206  //
  2207  //   - connection: Resource name of the Connection. Format:
  2208  //     projects/{project}/locations/{location}/connections/{connection}.
  2209  func (r *ProjectsLocationsConnectionsService) ExecuteSqlQuery(connection string, executesqlqueryrequest *ExecuteSqlQueryRequest) *ProjectsLocationsConnectionsExecuteSqlQueryCall {
  2210  	c := &ProjectsLocationsConnectionsExecuteSqlQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2211  	c.connection = connection
  2212  	c.executesqlqueryrequest = executesqlqueryrequest
  2213  	return c
  2214  }
  2215  
  2216  // Fields allows partial responses to be retrieved. See
  2217  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2218  // details.
  2219  func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsExecuteSqlQueryCall {
  2220  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2221  	return c
  2222  }
  2223  
  2224  // Context sets the context to be used in this call's Do method.
  2225  func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Context(ctx context.Context) *ProjectsLocationsConnectionsExecuteSqlQueryCall {
  2226  	c.ctx_ = ctx
  2227  	return c
  2228  }
  2229  
  2230  // Header returns a http.Header that can be modified by the caller to add
  2231  // headers to the request.
  2232  func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Header() http.Header {
  2233  	if c.header_ == nil {
  2234  		c.header_ = make(http.Header)
  2235  	}
  2236  	return c.header_
  2237  }
  2238  
  2239  func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) doRequest(alt string) (*http.Response, error) {
  2240  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2241  	var body io.Reader = nil
  2242  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.executesqlqueryrequest)
  2243  	if err != nil {
  2244  		return nil, err
  2245  	}
  2246  	c.urlParams_.Set("alt", alt)
  2247  	c.urlParams_.Set("prettyPrint", "false")
  2248  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+connection}:executeSqlQuery")
  2249  	urls += "?" + c.urlParams_.Encode()
  2250  	req, err := http.NewRequest("POST", urls, body)
  2251  	if err != nil {
  2252  		return nil, err
  2253  	}
  2254  	req.Header = reqHeaders
  2255  	googleapi.Expand(req.URL, map[string]string{
  2256  		"connection": c.connection,
  2257  	})
  2258  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2259  }
  2260  
  2261  // Do executes the "connectors.projects.locations.connections.executeSqlQuery" call.
  2262  // Any non-2xx status code is an error. Response headers are in either
  2263  // *ExecuteSqlQueryResponse.ServerResponse.Header or (if a response was
  2264  // returned at all) in error.(*googleapi.Error).Header. Use
  2265  // googleapi.IsNotModified to check whether the returned error was because
  2266  // http.StatusNotModified was returned.
  2267  func (c *ProjectsLocationsConnectionsExecuteSqlQueryCall) Do(opts ...googleapi.CallOption) (*ExecuteSqlQueryResponse, error) {
  2268  	gensupport.SetOptions(c.urlParams_, opts...)
  2269  	res, err := c.doRequest("json")
  2270  	if res != nil && res.StatusCode == http.StatusNotModified {
  2271  		if res.Body != nil {
  2272  			res.Body.Close()
  2273  		}
  2274  		return nil, gensupport.WrapError(&googleapi.Error{
  2275  			Code:   res.StatusCode,
  2276  			Header: res.Header,
  2277  		})
  2278  	}
  2279  	if err != nil {
  2280  		return nil, err
  2281  	}
  2282  	defer googleapi.CloseBody(res)
  2283  	if err := googleapi.CheckResponse(res); err != nil {
  2284  		return nil, gensupport.WrapError(err)
  2285  	}
  2286  	ret := &ExecuteSqlQueryResponse{
  2287  		ServerResponse: googleapi.ServerResponse{
  2288  			Header:         res.Header,
  2289  			HTTPStatusCode: res.StatusCode,
  2290  		},
  2291  	}
  2292  	target := &ret
  2293  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2294  		return nil, err
  2295  	}
  2296  	return ret, nil
  2297  }
  2298  
  2299  type ProjectsLocationsConnectionsRefreshAccessTokenCall struct {
  2300  	s                         *Service
  2301  	name                      string
  2302  	refreshaccesstokenrequest *RefreshAccessTokenRequest
  2303  	urlParams_                gensupport.URLParams
  2304  	ctx_                      context.Context
  2305  	header_                   http.Header
  2306  }
  2307  
  2308  // RefreshAccessToken: RefreshAccessToken exchanges the OAuth refresh token
  2309  // (and other necessary data) for a new access token (and new associated
  2310  // credentials).
  2311  //
  2312  // - name: .
  2313  func (r *ProjectsLocationsConnectionsService) RefreshAccessToken(name string, refreshaccesstokenrequest *RefreshAccessTokenRequest) *ProjectsLocationsConnectionsRefreshAccessTokenCall {
  2314  	c := &ProjectsLocationsConnectionsRefreshAccessTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2315  	c.name = name
  2316  	c.refreshaccesstokenrequest = refreshaccesstokenrequest
  2317  	return c
  2318  }
  2319  
  2320  // Fields allows partial responses to be retrieved. See
  2321  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2322  // details.
  2323  func (c *ProjectsLocationsConnectionsRefreshAccessTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRefreshAccessTokenCall {
  2324  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2325  	return c
  2326  }
  2327  
  2328  // Context sets the context to be used in this call's Do method.
  2329  func (c *ProjectsLocationsConnectionsRefreshAccessTokenCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRefreshAccessTokenCall {
  2330  	c.ctx_ = ctx
  2331  	return c
  2332  }
  2333  
  2334  // Header returns a http.Header that can be modified by the caller to add
  2335  // headers to the request.
  2336  func (c *ProjectsLocationsConnectionsRefreshAccessTokenCall) Header() http.Header {
  2337  	if c.header_ == nil {
  2338  		c.header_ = make(http.Header)
  2339  	}
  2340  	return c.header_
  2341  }
  2342  
  2343  func (c *ProjectsLocationsConnectionsRefreshAccessTokenCall) doRequest(alt string) (*http.Response, error) {
  2344  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2345  	var body io.Reader = nil
  2346  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.refreshaccesstokenrequest)
  2347  	if err != nil {
  2348  		return nil, err
  2349  	}
  2350  	c.urlParams_.Set("alt", alt)
  2351  	c.urlParams_.Set("prettyPrint", "false")
  2352  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:refreshAccessToken")
  2353  	urls += "?" + c.urlParams_.Encode()
  2354  	req, err := http.NewRequest("POST", urls, body)
  2355  	if err != nil {
  2356  		return nil, err
  2357  	}
  2358  	req.Header = reqHeaders
  2359  	googleapi.Expand(req.URL, map[string]string{
  2360  		"name": c.name,
  2361  	})
  2362  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2363  }
  2364  
  2365  // Do executes the "connectors.projects.locations.connections.refreshAccessToken" call.
  2366  // Any non-2xx status code is an error. Response headers are in either
  2367  // *RefreshAccessTokenResponse.ServerResponse.Header or (if a response was
  2368  // returned at all) in error.(*googleapi.Error).Header. Use
  2369  // googleapi.IsNotModified to check whether the returned error was because
  2370  // http.StatusNotModified was returned.
  2371  func (c *ProjectsLocationsConnectionsRefreshAccessTokenCall) Do(opts ...googleapi.CallOption) (*RefreshAccessTokenResponse, error) {
  2372  	gensupport.SetOptions(c.urlParams_, opts...)
  2373  	res, err := c.doRequest("json")
  2374  	if res != nil && res.StatusCode == http.StatusNotModified {
  2375  		if res.Body != nil {
  2376  			res.Body.Close()
  2377  		}
  2378  		return nil, gensupport.WrapError(&googleapi.Error{
  2379  			Code:   res.StatusCode,
  2380  			Header: res.Header,
  2381  		})
  2382  	}
  2383  	if err != nil {
  2384  		return nil, err
  2385  	}
  2386  	defer googleapi.CloseBody(res)
  2387  	if err := googleapi.CheckResponse(res); err != nil {
  2388  		return nil, gensupport.WrapError(err)
  2389  	}
  2390  	ret := &RefreshAccessTokenResponse{
  2391  		ServerResponse: googleapi.ServerResponse{
  2392  			Header:         res.Header,
  2393  			HTTPStatusCode: res.StatusCode,
  2394  		},
  2395  	}
  2396  	target := &ret
  2397  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2398  		return nil, err
  2399  	}
  2400  	return ret, nil
  2401  }
  2402  
  2403  type ProjectsLocationsConnectionsActionsExecuteCall struct {
  2404  	s                    *Service
  2405  	name                 string
  2406  	executeactionrequest *ExecuteActionRequest
  2407  	urlParams_           gensupport.URLParams
  2408  	ctx_                 context.Context
  2409  	header_              http.Header
  2410  }
  2411  
  2412  // Execute: Executes an action with the name specified in the request. The
  2413  // input parameters for executing the action are passed through the body of the
  2414  // ExecuteAction request.
  2415  //
  2416  //   - name: Resource name of the Action. Format:
  2417  //     projects/{project}/locations/{location}/connections/{connection}/actions/{a
  2418  //     ction}.
  2419  func (r *ProjectsLocationsConnectionsActionsService) Execute(name string, executeactionrequest *ExecuteActionRequest) *ProjectsLocationsConnectionsActionsExecuteCall {
  2420  	c := &ProjectsLocationsConnectionsActionsExecuteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2421  	c.name = name
  2422  	c.executeactionrequest = executeactionrequest
  2423  	return c
  2424  }
  2425  
  2426  // Fields allows partial responses to be retrieved. See
  2427  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2428  // details.
  2429  func (c *ProjectsLocationsConnectionsActionsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsActionsExecuteCall {
  2430  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2431  	return c
  2432  }
  2433  
  2434  // Context sets the context to be used in this call's Do method.
  2435  func (c *ProjectsLocationsConnectionsActionsExecuteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsActionsExecuteCall {
  2436  	c.ctx_ = ctx
  2437  	return c
  2438  }
  2439  
  2440  // Header returns a http.Header that can be modified by the caller to add
  2441  // headers to the request.
  2442  func (c *ProjectsLocationsConnectionsActionsExecuteCall) Header() http.Header {
  2443  	if c.header_ == nil {
  2444  		c.header_ = make(http.Header)
  2445  	}
  2446  	return c.header_
  2447  }
  2448  
  2449  func (c *ProjectsLocationsConnectionsActionsExecuteCall) doRequest(alt string) (*http.Response, error) {
  2450  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2451  	var body io.Reader = nil
  2452  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.executeactionrequest)
  2453  	if err != nil {
  2454  		return nil, err
  2455  	}
  2456  	c.urlParams_.Set("alt", alt)
  2457  	c.urlParams_.Set("prettyPrint", "false")
  2458  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:execute")
  2459  	urls += "?" + c.urlParams_.Encode()
  2460  	req, err := http.NewRequest("POST", urls, body)
  2461  	if err != nil {
  2462  		return nil, err
  2463  	}
  2464  	req.Header = reqHeaders
  2465  	googleapi.Expand(req.URL, map[string]string{
  2466  		"name": c.name,
  2467  	})
  2468  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2469  }
  2470  
  2471  // Do executes the "connectors.projects.locations.connections.actions.execute" call.
  2472  // Any non-2xx status code is an error. Response headers are in either
  2473  // *ExecuteActionResponse.ServerResponse.Header or (if a response was returned
  2474  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  2475  // check whether the returned error was because http.StatusNotModified was
  2476  // returned.
  2477  func (c *ProjectsLocationsConnectionsActionsExecuteCall) Do(opts ...googleapi.CallOption) (*ExecuteActionResponse, error) {
  2478  	gensupport.SetOptions(c.urlParams_, opts...)
  2479  	res, err := c.doRequest("json")
  2480  	if res != nil && res.StatusCode == http.StatusNotModified {
  2481  		if res.Body != nil {
  2482  			res.Body.Close()
  2483  		}
  2484  		return nil, gensupport.WrapError(&googleapi.Error{
  2485  			Code:   res.StatusCode,
  2486  			Header: res.Header,
  2487  		})
  2488  	}
  2489  	if err != nil {
  2490  		return nil, err
  2491  	}
  2492  	defer googleapi.CloseBody(res)
  2493  	if err := googleapi.CheckResponse(res); err != nil {
  2494  		return nil, gensupport.WrapError(err)
  2495  	}
  2496  	ret := &ExecuteActionResponse{
  2497  		ServerResponse: googleapi.ServerResponse{
  2498  			Header:         res.Header,
  2499  			HTTPStatusCode: res.StatusCode,
  2500  		},
  2501  	}
  2502  	target := &ret
  2503  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2504  		return nil, err
  2505  	}
  2506  	return ret, nil
  2507  }
  2508  
  2509  type ProjectsLocationsConnectionsActionsGetCall struct {
  2510  	s            *Service
  2511  	name         string
  2512  	urlParams_   gensupport.URLParams
  2513  	ifNoneMatch_ string
  2514  	ctx_         context.Context
  2515  	header_      http.Header
  2516  }
  2517  
  2518  // Get: Gets the schema of the given action.
  2519  //
  2520  //   - name: Resource name of the Action. Format:
  2521  //     projects/{project}/locations/{location}/connections/{connection}/actions/{a
  2522  //     ction}.
  2523  func (r *ProjectsLocationsConnectionsActionsService) Get(name string) *ProjectsLocationsConnectionsActionsGetCall {
  2524  	c := &ProjectsLocationsConnectionsActionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2525  	c.name = name
  2526  	return c
  2527  }
  2528  
  2529  // Fields allows partial responses to be retrieved. See
  2530  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2531  // details.
  2532  func (c *ProjectsLocationsConnectionsActionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsActionsGetCall {
  2533  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2534  	return c
  2535  }
  2536  
  2537  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2538  // object's ETag matches the given value. This is useful for getting updates
  2539  // only after the object has changed since the last request.
  2540  func (c *ProjectsLocationsConnectionsActionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsActionsGetCall {
  2541  	c.ifNoneMatch_ = entityTag
  2542  	return c
  2543  }
  2544  
  2545  // Context sets the context to be used in this call's Do method.
  2546  func (c *ProjectsLocationsConnectionsActionsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsActionsGetCall {
  2547  	c.ctx_ = ctx
  2548  	return c
  2549  }
  2550  
  2551  // Header returns a http.Header that can be modified by the caller to add
  2552  // headers to the request.
  2553  func (c *ProjectsLocationsConnectionsActionsGetCall) Header() http.Header {
  2554  	if c.header_ == nil {
  2555  		c.header_ = make(http.Header)
  2556  	}
  2557  	return c.header_
  2558  }
  2559  
  2560  func (c *ProjectsLocationsConnectionsActionsGetCall) doRequest(alt string) (*http.Response, error) {
  2561  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2562  	if c.ifNoneMatch_ != "" {
  2563  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2564  	}
  2565  	var body io.Reader = nil
  2566  	c.urlParams_.Set("alt", alt)
  2567  	c.urlParams_.Set("prettyPrint", "false")
  2568  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  2569  	urls += "?" + c.urlParams_.Encode()
  2570  	req, err := http.NewRequest("GET", urls, body)
  2571  	if err != nil {
  2572  		return nil, err
  2573  	}
  2574  	req.Header = reqHeaders
  2575  	googleapi.Expand(req.URL, map[string]string{
  2576  		"name": c.name,
  2577  	})
  2578  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2579  }
  2580  
  2581  // Do executes the "connectors.projects.locations.connections.actions.get" call.
  2582  // Any non-2xx status code is an error. Response headers are in either
  2583  // *Action.ServerResponse.Header or (if a response was returned at all) in
  2584  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2585  // whether the returned error was because http.StatusNotModified was returned.
  2586  func (c *ProjectsLocationsConnectionsActionsGetCall) Do(opts ...googleapi.CallOption) (*Action, error) {
  2587  	gensupport.SetOptions(c.urlParams_, opts...)
  2588  	res, err := c.doRequest("json")
  2589  	if res != nil && res.StatusCode == http.StatusNotModified {
  2590  		if res.Body != nil {
  2591  			res.Body.Close()
  2592  		}
  2593  		return nil, gensupport.WrapError(&googleapi.Error{
  2594  			Code:   res.StatusCode,
  2595  			Header: res.Header,
  2596  		})
  2597  	}
  2598  	if err != nil {
  2599  		return nil, err
  2600  	}
  2601  	defer googleapi.CloseBody(res)
  2602  	if err := googleapi.CheckResponse(res); err != nil {
  2603  		return nil, gensupport.WrapError(err)
  2604  	}
  2605  	ret := &Action{
  2606  		ServerResponse: googleapi.ServerResponse{
  2607  			Header:         res.Header,
  2608  			HTTPStatusCode: res.StatusCode,
  2609  		},
  2610  	}
  2611  	target := &ret
  2612  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2613  		return nil, err
  2614  	}
  2615  	return ret, nil
  2616  }
  2617  
  2618  type ProjectsLocationsConnectionsActionsListCall struct {
  2619  	s            *Service
  2620  	parent       string
  2621  	urlParams_   gensupport.URLParams
  2622  	ifNoneMatch_ string
  2623  	ctx_         context.Context
  2624  	header_      http.Header
  2625  }
  2626  
  2627  // List: Gets the schema of all the actions supported by the connector.
  2628  //
  2629  //   - parent: Parent resource name of the Action. Format:
  2630  //     projects/{project}/locations/{location}/connections/{connection}.
  2631  func (r *ProjectsLocationsConnectionsActionsService) List(parent string) *ProjectsLocationsConnectionsActionsListCall {
  2632  	c := &ProjectsLocationsConnectionsActionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2633  	c.parent = parent
  2634  	return c
  2635  }
  2636  
  2637  // PageSize sets the optional parameter "pageSize": Number of Actions to
  2638  // return. Defaults to 25.
  2639  func (c *ProjectsLocationsConnectionsActionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsActionsListCall {
  2640  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2641  	return c
  2642  }
  2643  
  2644  // PageToken sets the optional parameter "pageToken": Page token, return from a
  2645  // previous ListActions call, that can be used retrieve the next page of
  2646  // content. If unspecified, the request returns the first page of actions.
  2647  func (c *ProjectsLocationsConnectionsActionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsActionsListCall {
  2648  	c.urlParams_.Set("pageToken", pageToken)
  2649  	return c
  2650  }
  2651  
  2652  // View sets the optional parameter "view": Specifies which fields of the
  2653  // Action are returned in the response.
  2654  //
  2655  // Possible values:
  2656  //
  2657  //	"ACTION_VIEW_UNSPECIFIED" - VIEW_UNSPECIFIED. The unset value Defaults to
  2658  //
  2659  // FULL View.
  2660  //
  2661  //	"ACTION_VIEW_BASIC" - Return only action names.
  2662  //	"ACTION_VIEW_FULL" - Return actions with schema.
  2663  func (c *ProjectsLocationsConnectionsActionsListCall) View(view string) *ProjectsLocationsConnectionsActionsListCall {
  2664  	c.urlParams_.Set("view", view)
  2665  	return c
  2666  }
  2667  
  2668  // Fields allows partial responses to be retrieved. See
  2669  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2670  // details.
  2671  func (c *ProjectsLocationsConnectionsActionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsActionsListCall {
  2672  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2673  	return c
  2674  }
  2675  
  2676  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2677  // object's ETag matches the given value. This is useful for getting updates
  2678  // only after the object has changed since the last request.
  2679  func (c *ProjectsLocationsConnectionsActionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsActionsListCall {
  2680  	c.ifNoneMatch_ = entityTag
  2681  	return c
  2682  }
  2683  
  2684  // Context sets the context to be used in this call's Do method.
  2685  func (c *ProjectsLocationsConnectionsActionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsActionsListCall {
  2686  	c.ctx_ = ctx
  2687  	return c
  2688  }
  2689  
  2690  // Header returns a http.Header that can be modified by the caller to add
  2691  // headers to the request.
  2692  func (c *ProjectsLocationsConnectionsActionsListCall) Header() http.Header {
  2693  	if c.header_ == nil {
  2694  		c.header_ = make(http.Header)
  2695  	}
  2696  	return c.header_
  2697  }
  2698  
  2699  func (c *ProjectsLocationsConnectionsActionsListCall) doRequest(alt string) (*http.Response, error) {
  2700  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2701  	if c.ifNoneMatch_ != "" {
  2702  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2703  	}
  2704  	var body io.Reader = nil
  2705  	c.urlParams_.Set("alt", alt)
  2706  	c.urlParams_.Set("prettyPrint", "false")
  2707  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/actions")
  2708  	urls += "?" + c.urlParams_.Encode()
  2709  	req, err := http.NewRequest("GET", urls, body)
  2710  	if err != nil {
  2711  		return nil, err
  2712  	}
  2713  	req.Header = reqHeaders
  2714  	googleapi.Expand(req.URL, map[string]string{
  2715  		"parent": c.parent,
  2716  	})
  2717  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2718  }
  2719  
  2720  // Do executes the "connectors.projects.locations.connections.actions.list" call.
  2721  // Any non-2xx status code is an error. Response headers are in either
  2722  // *ListActionsResponse.ServerResponse.Header or (if a response was returned at
  2723  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  2724  // check whether the returned error was because http.StatusNotModified was
  2725  // returned.
  2726  func (c *ProjectsLocationsConnectionsActionsListCall) Do(opts ...googleapi.CallOption) (*ListActionsResponse, error) {
  2727  	gensupport.SetOptions(c.urlParams_, opts...)
  2728  	res, err := c.doRequest("json")
  2729  	if res != nil && res.StatusCode == http.StatusNotModified {
  2730  		if res.Body != nil {
  2731  			res.Body.Close()
  2732  		}
  2733  		return nil, gensupport.WrapError(&googleapi.Error{
  2734  			Code:   res.StatusCode,
  2735  			Header: res.Header,
  2736  		})
  2737  	}
  2738  	if err != nil {
  2739  		return nil, err
  2740  	}
  2741  	defer googleapi.CloseBody(res)
  2742  	if err := googleapi.CheckResponse(res); err != nil {
  2743  		return nil, gensupport.WrapError(err)
  2744  	}
  2745  	ret := &ListActionsResponse{
  2746  		ServerResponse: googleapi.ServerResponse{
  2747  			Header:         res.Header,
  2748  			HTTPStatusCode: res.StatusCode,
  2749  		},
  2750  	}
  2751  	target := &ret
  2752  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2753  		return nil, err
  2754  	}
  2755  	return ret, nil
  2756  }
  2757  
  2758  // Pages invokes f for each page of results.
  2759  // A non-nil error returned from f will halt the iteration.
  2760  // The provided context supersedes any context provided to the Context method.
  2761  func (c *ProjectsLocationsConnectionsActionsListCall) Pages(ctx context.Context, f func(*ListActionsResponse) error) error {
  2762  	c.ctx_ = ctx
  2763  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2764  	for {
  2765  		x, err := c.Do()
  2766  		if err != nil {
  2767  			return err
  2768  		}
  2769  		if err := f(x); err != nil {
  2770  			return err
  2771  		}
  2772  		if x.NextPageToken == "" {
  2773  			return nil
  2774  		}
  2775  		c.PageToken(x.NextPageToken)
  2776  	}
  2777  }
  2778  
  2779  type ProjectsLocationsConnectionsEntityTypesGetCall struct {
  2780  	s            *Service
  2781  	name         string
  2782  	urlParams_   gensupport.URLParams
  2783  	ifNoneMatch_ string
  2784  	ctx_         context.Context
  2785  	header_      http.Header
  2786  }
  2787  
  2788  // Get: Gets metadata of given entity type
  2789  //
  2790  //   - name: Resource name of the Entity Type. Format:
  2791  //     projects/{project}/locations/{location}/connections/{connection}/entityType
  2792  //     s/{entityType}.
  2793  func (r *ProjectsLocationsConnectionsEntityTypesService) Get(name string) *ProjectsLocationsConnectionsEntityTypesGetCall {
  2794  	c := &ProjectsLocationsConnectionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2795  	c.name = name
  2796  	return c
  2797  }
  2798  
  2799  // Fields allows partial responses to be retrieved. See
  2800  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2801  // details.
  2802  func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesGetCall {
  2803  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2804  	return c
  2805  }
  2806  
  2807  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2808  // object's ETag matches the given value. This is useful for getting updates
  2809  // only after the object has changed since the last request.
  2810  func (c *ProjectsLocationsConnectionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesGetCall {
  2811  	c.ifNoneMatch_ = entityTag
  2812  	return c
  2813  }
  2814  
  2815  // Context sets the context to be used in this call's Do method.
  2816  func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesGetCall {
  2817  	c.ctx_ = ctx
  2818  	return c
  2819  }
  2820  
  2821  // Header returns a http.Header that can be modified by the caller to add
  2822  // headers to the request.
  2823  func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Header() http.Header {
  2824  	if c.header_ == nil {
  2825  		c.header_ = make(http.Header)
  2826  	}
  2827  	return c.header_
  2828  }
  2829  
  2830  func (c *ProjectsLocationsConnectionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
  2831  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2832  	if c.ifNoneMatch_ != "" {
  2833  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2834  	}
  2835  	var body io.Reader = nil
  2836  	c.urlParams_.Set("alt", alt)
  2837  	c.urlParams_.Set("prettyPrint", "false")
  2838  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  2839  	urls += "?" + c.urlParams_.Encode()
  2840  	req, err := http.NewRequest("GET", urls, body)
  2841  	if err != nil {
  2842  		return nil, err
  2843  	}
  2844  	req.Header = reqHeaders
  2845  	googleapi.Expand(req.URL, map[string]string{
  2846  		"name": c.name,
  2847  	})
  2848  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2849  }
  2850  
  2851  // Do executes the "connectors.projects.locations.connections.entityTypes.get" call.
  2852  // Any non-2xx status code is an error. Response headers are in either
  2853  // *EntityType.ServerResponse.Header or (if a response was returned at all) in
  2854  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2855  // whether the returned error was because http.StatusNotModified was returned.
  2856  func (c *ProjectsLocationsConnectionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*EntityType, error) {
  2857  	gensupport.SetOptions(c.urlParams_, opts...)
  2858  	res, err := c.doRequest("json")
  2859  	if res != nil && res.StatusCode == http.StatusNotModified {
  2860  		if res.Body != nil {
  2861  			res.Body.Close()
  2862  		}
  2863  		return nil, gensupport.WrapError(&googleapi.Error{
  2864  			Code:   res.StatusCode,
  2865  			Header: res.Header,
  2866  		})
  2867  	}
  2868  	if err != nil {
  2869  		return nil, err
  2870  	}
  2871  	defer googleapi.CloseBody(res)
  2872  	if err := googleapi.CheckResponse(res); err != nil {
  2873  		return nil, gensupport.WrapError(err)
  2874  	}
  2875  	ret := &EntityType{
  2876  		ServerResponse: googleapi.ServerResponse{
  2877  			Header:         res.Header,
  2878  			HTTPStatusCode: res.StatusCode,
  2879  		},
  2880  	}
  2881  	target := &ret
  2882  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2883  		return nil, err
  2884  	}
  2885  	return ret, nil
  2886  }
  2887  
  2888  type ProjectsLocationsConnectionsEntityTypesListCall struct {
  2889  	s            *Service
  2890  	parent       string
  2891  	urlParams_   gensupport.URLParams
  2892  	ifNoneMatch_ string
  2893  	ctx_         context.Context
  2894  	header_      http.Header
  2895  }
  2896  
  2897  // List: Lists metadata related to all entity types present in the external
  2898  // system.
  2899  //
  2900  //   - parent: Resource name of the Entity Type. Format:
  2901  //     projects/{project}/locations/{location}/connections/{connection}.
  2902  func (r *ProjectsLocationsConnectionsEntityTypesService) List(parent string) *ProjectsLocationsConnectionsEntityTypesListCall {
  2903  	c := &ProjectsLocationsConnectionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2904  	c.parent = parent
  2905  	return c
  2906  }
  2907  
  2908  // PageSize sets the optional parameter "pageSize": Number of entity types to
  2909  // return. Defaults to 25.
  2910  func (c *ProjectsLocationsConnectionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsEntityTypesListCall {
  2911  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2912  	return c
  2913  }
  2914  
  2915  // PageToken sets the optional parameter "pageToken": Page token, return from a
  2916  // previous ListEntityTypes call, that can be used retrieve the next page of
  2917  // content. If unspecified, the request returns the first page of entity types.
  2918  func (c *ProjectsLocationsConnectionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsEntityTypesListCall {
  2919  	c.urlParams_.Set("pageToken", pageToken)
  2920  	return c
  2921  }
  2922  
  2923  // View sets the optional parameter "view": Specifies which fields of the
  2924  // Entity Type are returned in the response.
  2925  //
  2926  // Possible values:
  2927  //
  2928  //	"ENTITY_TYPE_VIEW_UNSPECIFIED" - VIEW_UNSPECIFIED. The unset value.
  2929  //
  2930  // Defaults to FULL View.
  2931  //
  2932  //	"ENTITY_TYPE_VIEW_BASIC" - Return only entity type names.
  2933  //	"ENTITY_TYPE_VIEW_FULL" - Return entity types with schema
  2934  func (c *ProjectsLocationsConnectionsEntityTypesListCall) View(view string) *ProjectsLocationsConnectionsEntityTypesListCall {
  2935  	c.urlParams_.Set("view", view)
  2936  	return c
  2937  }
  2938  
  2939  // Fields allows partial responses to be retrieved. See
  2940  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2941  // details.
  2942  func (c *ProjectsLocationsConnectionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesListCall {
  2943  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2944  	return c
  2945  }
  2946  
  2947  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2948  // object's ETag matches the given value. This is useful for getting updates
  2949  // only after the object has changed since the last request.
  2950  func (c *ProjectsLocationsConnectionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesListCall {
  2951  	c.ifNoneMatch_ = entityTag
  2952  	return c
  2953  }
  2954  
  2955  // Context sets the context to be used in this call's Do method.
  2956  func (c *ProjectsLocationsConnectionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesListCall {
  2957  	c.ctx_ = ctx
  2958  	return c
  2959  }
  2960  
  2961  // Header returns a http.Header that can be modified by the caller to add
  2962  // headers to the request.
  2963  func (c *ProjectsLocationsConnectionsEntityTypesListCall) Header() http.Header {
  2964  	if c.header_ == nil {
  2965  		c.header_ = make(http.Header)
  2966  	}
  2967  	return c.header_
  2968  }
  2969  
  2970  func (c *ProjectsLocationsConnectionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
  2971  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2972  	if c.ifNoneMatch_ != "" {
  2973  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2974  	}
  2975  	var body io.Reader = nil
  2976  	c.urlParams_.Set("alt", alt)
  2977  	c.urlParams_.Set("prettyPrint", "false")
  2978  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
  2979  	urls += "?" + c.urlParams_.Encode()
  2980  	req, err := http.NewRequest("GET", urls, body)
  2981  	if err != nil {
  2982  		return nil, err
  2983  	}
  2984  	req.Header = reqHeaders
  2985  	googleapi.Expand(req.URL, map[string]string{
  2986  		"parent": c.parent,
  2987  	})
  2988  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2989  }
  2990  
  2991  // Do executes the "connectors.projects.locations.connections.entityTypes.list" call.
  2992  // Any non-2xx status code is an error. Response headers are in either
  2993  // *ListEntityTypesResponse.ServerResponse.Header or (if a response was
  2994  // returned at all) in error.(*googleapi.Error).Header. Use
  2995  // googleapi.IsNotModified to check whether the returned error was because
  2996  // http.StatusNotModified was returned.
  2997  func (c *ProjectsLocationsConnectionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*ListEntityTypesResponse, error) {
  2998  	gensupport.SetOptions(c.urlParams_, opts...)
  2999  	res, err := c.doRequest("json")
  3000  	if res != nil && res.StatusCode == http.StatusNotModified {
  3001  		if res.Body != nil {
  3002  			res.Body.Close()
  3003  		}
  3004  		return nil, gensupport.WrapError(&googleapi.Error{
  3005  			Code:   res.StatusCode,
  3006  			Header: res.Header,
  3007  		})
  3008  	}
  3009  	if err != nil {
  3010  		return nil, err
  3011  	}
  3012  	defer googleapi.CloseBody(res)
  3013  	if err := googleapi.CheckResponse(res); err != nil {
  3014  		return nil, gensupport.WrapError(err)
  3015  	}
  3016  	ret := &ListEntityTypesResponse{
  3017  		ServerResponse: googleapi.ServerResponse{
  3018  			Header:         res.Header,
  3019  			HTTPStatusCode: res.StatusCode,
  3020  		},
  3021  	}
  3022  	target := &ret
  3023  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3024  		return nil, err
  3025  	}
  3026  	return ret, nil
  3027  }
  3028  
  3029  // Pages invokes f for each page of results.
  3030  // A non-nil error returned from f will halt the iteration.
  3031  // The provided context supersedes any context provided to the Context method.
  3032  func (c *ProjectsLocationsConnectionsEntityTypesListCall) Pages(ctx context.Context, f func(*ListEntityTypesResponse) error) error {
  3033  	c.ctx_ = ctx
  3034  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3035  	for {
  3036  		x, err := c.Do()
  3037  		if err != nil {
  3038  			return err
  3039  		}
  3040  		if err := f(x); err != nil {
  3041  			return err
  3042  		}
  3043  		if x.NextPageToken == "" {
  3044  			return nil
  3045  		}
  3046  		c.PageToken(x.NextPageToken)
  3047  	}
  3048  }
  3049  
  3050  type ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall struct {
  3051  	s          *Service
  3052  	parent     string
  3053  	entity     *Entity
  3054  	urlParams_ gensupport.URLParams
  3055  	ctx_       context.Context
  3056  	header_    http.Header
  3057  }
  3058  
  3059  // Create: Creates a new entity row of the specified entity type in the
  3060  // external system. The field values for creating the row are contained in the
  3061  // body of the request. The response message contains a `Entity` message object
  3062  // returned as a response by the external system.
  3063  //
  3064  //   - parent: Resource name of the Entity Type. Format:
  3065  //     projects/{project}/locations/{location}/connections/{connection}/entityType
  3066  //     s/{type}.
  3067  func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Create(parent string, entity *Entity) *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall {
  3068  	c := &ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3069  	c.parent = parent
  3070  	c.entity = entity
  3071  	return c
  3072  }
  3073  
  3074  // Fields allows partial responses to be retrieved. See
  3075  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3076  // details.
  3077  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall {
  3078  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3079  	return c
  3080  }
  3081  
  3082  // Context sets the context to be used in this call's Do method.
  3083  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall {
  3084  	c.ctx_ = ctx
  3085  	return c
  3086  }
  3087  
  3088  // Header returns a http.Header that can be modified by the caller to add
  3089  // headers to the request.
  3090  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Header() http.Header {
  3091  	if c.header_ == nil {
  3092  		c.header_ = make(http.Header)
  3093  	}
  3094  	return c.header_
  3095  }
  3096  
  3097  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) doRequest(alt string) (*http.Response, error) {
  3098  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3099  	var body io.Reader = nil
  3100  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.entity)
  3101  	if err != nil {
  3102  		return nil, err
  3103  	}
  3104  	c.urlParams_.Set("alt", alt)
  3105  	c.urlParams_.Set("prettyPrint", "false")
  3106  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities")
  3107  	urls += "?" + c.urlParams_.Encode()
  3108  	req, err := http.NewRequest("POST", urls, body)
  3109  	if err != nil {
  3110  		return nil, err
  3111  	}
  3112  	req.Header = reqHeaders
  3113  	googleapi.Expand(req.URL, map[string]string{
  3114  		"parent": c.parent,
  3115  	})
  3116  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3117  }
  3118  
  3119  // Do executes the "connectors.projects.locations.connections.entityTypes.entities.create" call.
  3120  // Any non-2xx status code is an error. Response headers are in either
  3121  // *Entity.ServerResponse.Header or (if a response was returned at all) in
  3122  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3123  // whether the returned error was because http.StatusNotModified was returned.
  3124  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesCreateCall) Do(opts ...googleapi.CallOption) (*Entity, error) {
  3125  	gensupport.SetOptions(c.urlParams_, opts...)
  3126  	res, err := c.doRequest("json")
  3127  	if res != nil && res.StatusCode == http.StatusNotModified {
  3128  		if res.Body != nil {
  3129  			res.Body.Close()
  3130  		}
  3131  		return nil, gensupport.WrapError(&googleapi.Error{
  3132  			Code:   res.StatusCode,
  3133  			Header: res.Header,
  3134  		})
  3135  	}
  3136  	if err != nil {
  3137  		return nil, err
  3138  	}
  3139  	defer googleapi.CloseBody(res)
  3140  	if err := googleapi.CheckResponse(res); err != nil {
  3141  		return nil, gensupport.WrapError(err)
  3142  	}
  3143  	ret := &Entity{
  3144  		ServerResponse: googleapi.ServerResponse{
  3145  			Header:         res.Header,
  3146  			HTTPStatusCode: res.StatusCode,
  3147  		},
  3148  	}
  3149  	target := &ret
  3150  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3151  		return nil, err
  3152  	}
  3153  	return ret, nil
  3154  }
  3155  
  3156  type ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall struct {
  3157  	s          *Service
  3158  	name       string
  3159  	urlParams_ gensupport.URLParams
  3160  	ctx_       context.Context
  3161  	header_    http.Header
  3162  }
  3163  
  3164  // Delete: Deletes an existing entity row matching the entity type and entity
  3165  // id specified in the request.
  3166  //
  3167  //   - name: Resource name of the Entity Type. Format:
  3168  //     projects/{project}/locations/{location}/connections/{connection}/entityType
  3169  //     s/{type}/entities/{id}.
  3170  func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Delete(name string) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall {
  3171  	c := &ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3172  	c.name = name
  3173  	return c
  3174  }
  3175  
  3176  // Fields allows partial responses to be retrieved. See
  3177  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3178  // details.
  3179  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall {
  3180  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3181  	return c
  3182  }
  3183  
  3184  // Context sets the context to be used in this call's Do method.
  3185  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall {
  3186  	c.ctx_ = ctx
  3187  	return c
  3188  }
  3189  
  3190  // Header returns a http.Header that can be modified by the caller to add
  3191  // headers to the request.
  3192  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Header() http.Header {
  3193  	if c.header_ == nil {
  3194  		c.header_ = make(http.Header)
  3195  	}
  3196  	return c.header_
  3197  }
  3198  
  3199  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) doRequest(alt string) (*http.Response, error) {
  3200  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3201  	var body io.Reader = nil
  3202  	c.urlParams_.Set("alt", alt)
  3203  	c.urlParams_.Set("prettyPrint", "false")
  3204  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  3205  	urls += "?" + c.urlParams_.Encode()
  3206  	req, err := http.NewRequest("DELETE", urls, body)
  3207  	if err != nil {
  3208  		return nil, err
  3209  	}
  3210  	req.Header = reqHeaders
  3211  	googleapi.Expand(req.URL, map[string]string{
  3212  		"name": c.name,
  3213  	})
  3214  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3215  }
  3216  
  3217  // Do executes the "connectors.projects.locations.connections.entityTypes.entities.delete" call.
  3218  // Any non-2xx status code is an error. Response headers are in either
  3219  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  3220  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3221  // whether the returned error was because http.StatusNotModified was returned.
  3222  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  3223  	gensupport.SetOptions(c.urlParams_, opts...)
  3224  	res, err := c.doRequest("json")
  3225  	if res != nil && res.StatusCode == http.StatusNotModified {
  3226  		if res.Body != nil {
  3227  			res.Body.Close()
  3228  		}
  3229  		return nil, gensupport.WrapError(&googleapi.Error{
  3230  			Code:   res.StatusCode,
  3231  			Header: res.Header,
  3232  		})
  3233  	}
  3234  	if err != nil {
  3235  		return nil, err
  3236  	}
  3237  	defer googleapi.CloseBody(res)
  3238  	if err := googleapi.CheckResponse(res); err != nil {
  3239  		return nil, gensupport.WrapError(err)
  3240  	}
  3241  	ret := &Empty{
  3242  		ServerResponse: googleapi.ServerResponse{
  3243  			Header:         res.Header,
  3244  			HTTPStatusCode: res.StatusCode,
  3245  		},
  3246  	}
  3247  	target := &ret
  3248  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3249  		return nil, err
  3250  	}
  3251  	return ret, nil
  3252  }
  3253  
  3254  type ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall struct {
  3255  	s          *Service
  3256  	entityType string
  3257  	urlParams_ gensupport.URLParams
  3258  	ctx_       context.Context
  3259  	header_    http.Header
  3260  }
  3261  
  3262  // DeleteEntitiesWithConditions: Deletes entities based on conditions specified
  3263  // in the request and not on entity id.
  3264  //
  3265  //   - entityType: Resource name of the Entity Type. Format:
  3266  //     projects/{project}/locations/{location}/connections/{connection}/entityType
  3267  //     s/{type}.
  3268  func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) DeleteEntitiesWithConditions(entityType string) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall {
  3269  	c := &ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3270  	c.entityType = entityType
  3271  	return c
  3272  }
  3273  
  3274  // Conditions sets the optional parameter "conditions": Required. Conditions to
  3275  // be used when deleting entities. From a proto standpoint, There are no
  3276  // restrictions on what can be passed using this field. The connector
  3277  // documentation should have information about what format of
  3278  // filters/conditions are supported. Note: If this conditions field is left
  3279  // empty, an exception is thrown. We don't want to consider 'empty conditions'
  3280  // to be a match-all case. Connector developers can determine and document what
  3281  // a match-all case constraint would be.
  3282  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Conditions(conditions string) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall {
  3283  	c.urlParams_.Set("conditions", conditions)
  3284  	return c
  3285  }
  3286  
  3287  // Fields allows partial responses to be retrieved. See
  3288  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3289  // details.
  3290  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall {
  3291  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3292  	return c
  3293  }
  3294  
  3295  // Context sets the context to be used in this call's Do method.
  3296  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall {
  3297  	c.ctx_ = ctx
  3298  	return c
  3299  }
  3300  
  3301  // Header returns a http.Header that can be modified by the caller to add
  3302  // headers to the request.
  3303  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Header() http.Header {
  3304  	if c.header_ == nil {
  3305  		c.header_ = make(http.Header)
  3306  	}
  3307  	return c.header_
  3308  }
  3309  
  3310  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) doRequest(alt string) (*http.Response, error) {
  3311  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3312  	var body io.Reader = nil
  3313  	c.urlParams_.Set("alt", alt)
  3314  	c.urlParams_.Set("prettyPrint", "false")
  3315  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+entityType}/entities:deleteEntitiesWithConditions")
  3316  	urls += "?" + c.urlParams_.Encode()
  3317  	req, err := http.NewRequest("POST", urls, body)
  3318  	if err != nil {
  3319  		return nil, err
  3320  	}
  3321  	req.Header = reqHeaders
  3322  	googleapi.Expand(req.URL, map[string]string{
  3323  		"entityType": c.entityType,
  3324  	})
  3325  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3326  }
  3327  
  3328  // Do executes the "connectors.projects.locations.connections.entityTypes.entities.deleteEntitiesWithConditions" call.
  3329  // Any non-2xx status code is an error. Response headers are in either
  3330  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  3331  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3332  // whether the returned error was because http.StatusNotModified was returned.
  3333  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesDeleteEntitiesWithConditionsCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  3334  	gensupport.SetOptions(c.urlParams_, opts...)
  3335  	res, err := c.doRequest("json")
  3336  	if res != nil && res.StatusCode == http.StatusNotModified {
  3337  		if res.Body != nil {
  3338  			res.Body.Close()
  3339  		}
  3340  		return nil, gensupport.WrapError(&googleapi.Error{
  3341  			Code:   res.StatusCode,
  3342  			Header: res.Header,
  3343  		})
  3344  	}
  3345  	if err != nil {
  3346  		return nil, err
  3347  	}
  3348  	defer googleapi.CloseBody(res)
  3349  	if err := googleapi.CheckResponse(res); err != nil {
  3350  		return nil, gensupport.WrapError(err)
  3351  	}
  3352  	ret := &Empty{
  3353  		ServerResponse: googleapi.ServerResponse{
  3354  			Header:         res.Header,
  3355  			HTTPStatusCode: res.StatusCode,
  3356  		},
  3357  	}
  3358  	target := &ret
  3359  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3360  		return nil, err
  3361  	}
  3362  	return ret, nil
  3363  }
  3364  
  3365  type ProjectsLocationsConnectionsEntityTypesEntitiesGetCall struct {
  3366  	s            *Service
  3367  	name         string
  3368  	urlParams_   gensupport.URLParams
  3369  	ifNoneMatch_ string
  3370  	ctx_         context.Context
  3371  	header_      http.Header
  3372  }
  3373  
  3374  // Get: Gets a single entity row matching the entity type and entity id
  3375  // specified in the request.
  3376  //
  3377  //   - name: Resource name of the Entity Type. Format:
  3378  //     projects/{project}/locations/{location}/connections/{connection}/entityType
  3379  //     s/{type}/entities/{id}.
  3380  func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Get(name string) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall {
  3381  	c := &ProjectsLocationsConnectionsEntityTypesEntitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3382  	c.name = name
  3383  	return c
  3384  }
  3385  
  3386  // Fields allows partial responses to be retrieved. See
  3387  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3388  // details.
  3389  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall {
  3390  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3391  	return c
  3392  }
  3393  
  3394  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3395  // object's ETag matches the given value. This is useful for getting updates
  3396  // only after the object has changed since the last request.
  3397  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall {
  3398  	c.ifNoneMatch_ = entityTag
  3399  	return c
  3400  }
  3401  
  3402  // Context sets the context to be used in this call's Do method.
  3403  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall {
  3404  	c.ctx_ = ctx
  3405  	return c
  3406  }
  3407  
  3408  // Header returns a http.Header that can be modified by the caller to add
  3409  // headers to the request.
  3410  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Header() http.Header {
  3411  	if c.header_ == nil {
  3412  		c.header_ = make(http.Header)
  3413  	}
  3414  	return c.header_
  3415  }
  3416  
  3417  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) doRequest(alt string) (*http.Response, error) {
  3418  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3419  	if c.ifNoneMatch_ != "" {
  3420  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3421  	}
  3422  	var body io.Reader = nil
  3423  	c.urlParams_.Set("alt", alt)
  3424  	c.urlParams_.Set("prettyPrint", "false")
  3425  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  3426  	urls += "?" + c.urlParams_.Encode()
  3427  	req, err := http.NewRequest("GET", urls, body)
  3428  	if err != nil {
  3429  		return nil, err
  3430  	}
  3431  	req.Header = reqHeaders
  3432  	googleapi.Expand(req.URL, map[string]string{
  3433  		"name": c.name,
  3434  	})
  3435  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3436  }
  3437  
  3438  // Do executes the "connectors.projects.locations.connections.entityTypes.entities.get" call.
  3439  // Any non-2xx status code is an error. Response headers are in either
  3440  // *Entity.ServerResponse.Header or (if a response was returned at all) in
  3441  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3442  // whether the returned error was because http.StatusNotModified was returned.
  3443  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesGetCall) Do(opts ...googleapi.CallOption) (*Entity, error) {
  3444  	gensupport.SetOptions(c.urlParams_, opts...)
  3445  	res, err := c.doRequest("json")
  3446  	if res != nil && res.StatusCode == http.StatusNotModified {
  3447  		if res.Body != nil {
  3448  			res.Body.Close()
  3449  		}
  3450  		return nil, gensupport.WrapError(&googleapi.Error{
  3451  			Code:   res.StatusCode,
  3452  			Header: res.Header,
  3453  		})
  3454  	}
  3455  	if err != nil {
  3456  		return nil, err
  3457  	}
  3458  	defer googleapi.CloseBody(res)
  3459  	if err := googleapi.CheckResponse(res); err != nil {
  3460  		return nil, gensupport.WrapError(err)
  3461  	}
  3462  	ret := &Entity{
  3463  		ServerResponse: googleapi.ServerResponse{
  3464  			Header:         res.Header,
  3465  			HTTPStatusCode: res.StatusCode,
  3466  		},
  3467  	}
  3468  	target := &ret
  3469  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3470  		return nil, err
  3471  	}
  3472  	return ret, nil
  3473  }
  3474  
  3475  type ProjectsLocationsConnectionsEntityTypesEntitiesListCall struct {
  3476  	s            *Service
  3477  	parent       string
  3478  	urlParams_   gensupport.URLParams
  3479  	ifNoneMatch_ string
  3480  	ctx_         context.Context
  3481  	header_      http.Header
  3482  }
  3483  
  3484  // List: Lists entity rows of a particular entity type contained in the
  3485  // request. Note: 1. Currently, only max of one 'sort_by' column is supported.
  3486  // 2. If no 'sort_by' column is provided, the primary key of the table is used.
  3487  // If zero or more than one primary key is available, we default to the
  3488  // unpaginated list entities logic which only returns the first page. 3. The
  3489  // values of the 'sort_by' columns must uniquely identify an entity row,
  3490  // otherwise undefined behaviors may be observed during pagination. 4. Since
  3491  // transactions are not supported, any updates, inserts or deletes during
  3492  // pagination can lead to stale data being returned or other unexpected
  3493  // behaviors.
  3494  //
  3495  //   - parent: Resource name of the Entity Type. Format:
  3496  //     projects/{project}/locations/{location}/connections/{connection}/entityType
  3497  //     s/{type}.
  3498  func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) List(parent string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall {
  3499  	c := &ProjectsLocationsConnectionsEntityTypesEntitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3500  	c.parent = parent
  3501  	return c
  3502  }
  3503  
  3504  // Conditions sets the optional parameter "conditions": Conditions to be used
  3505  // when listing entities. From a proto standpoint, There are no restrictions on
  3506  // what can be passed using this field. The connector documentation should have
  3507  // information about what format of filters/conditions are supported.
  3508  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Conditions(conditions string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall {
  3509  	c.urlParams_.Set("conditions", conditions)
  3510  	return c
  3511  }
  3512  
  3513  // PageSize sets the optional parameter "pageSize": Number of entity rows to
  3514  // return. Defaults page size = 25. Max page size = 200.
  3515  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall {
  3516  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3517  	return c
  3518  }
  3519  
  3520  // PageToken sets the optional parameter "pageToken": Page token value if
  3521  // available from a previous request.
  3522  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall {
  3523  	c.urlParams_.Set("pageToken", pageToken)
  3524  	return c
  3525  }
  3526  
  3527  // SortBy sets the optional parameter "sortBy": List of 'sort_by' columns to
  3528  // use when returning the results.
  3529  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) SortBy(sortBy ...string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall {
  3530  	c.urlParams_.SetMulti("sortBy", append([]string{}, sortBy...))
  3531  	return c
  3532  }
  3533  
  3534  // Fields allows partial responses to be retrieved. See
  3535  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3536  // details.
  3537  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall {
  3538  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3539  	return c
  3540  }
  3541  
  3542  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3543  // object's ETag matches the given value. This is useful for getting updates
  3544  // only after the object has changed since the last request.
  3545  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall {
  3546  	c.ifNoneMatch_ = entityTag
  3547  	return c
  3548  }
  3549  
  3550  // Context sets the context to be used in this call's Do method.
  3551  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesListCall {
  3552  	c.ctx_ = ctx
  3553  	return c
  3554  }
  3555  
  3556  // Header returns a http.Header that can be modified by the caller to add
  3557  // headers to the request.
  3558  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Header() http.Header {
  3559  	if c.header_ == nil {
  3560  		c.header_ = make(http.Header)
  3561  	}
  3562  	return c.header_
  3563  }
  3564  
  3565  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) doRequest(alt string) (*http.Response, error) {
  3566  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3567  	if c.ifNoneMatch_ != "" {
  3568  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3569  	}
  3570  	var body io.Reader = nil
  3571  	c.urlParams_.Set("alt", alt)
  3572  	c.urlParams_.Set("prettyPrint", "false")
  3573  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities")
  3574  	urls += "?" + c.urlParams_.Encode()
  3575  	req, err := http.NewRequest("GET", urls, body)
  3576  	if err != nil {
  3577  		return nil, err
  3578  	}
  3579  	req.Header = reqHeaders
  3580  	googleapi.Expand(req.URL, map[string]string{
  3581  		"parent": c.parent,
  3582  	})
  3583  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3584  }
  3585  
  3586  // Do executes the "connectors.projects.locations.connections.entityTypes.entities.list" call.
  3587  // Any non-2xx status code is an error. Response headers are in either
  3588  // *ListEntitiesResponse.ServerResponse.Header or (if a response was returned
  3589  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  3590  // check whether the returned error was because http.StatusNotModified was
  3591  // returned.
  3592  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Do(opts ...googleapi.CallOption) (*ListEntitiesResponse, error) {
  3593  	gensupport.SetOptions(c.urlParams_, opts...)
  3594  	res, err := c.doRequest("json")
  3595  	if res != nil && res.StatusCode == http.StatusNotModified {
  3596  		if res.Body != nil {
  3597  			res.Body.Close()
  3598  		}
  3599  		return nil, gensupport.WrapError(&googleapi.Error{
  3600  			Code:   res.StatusCode,
  3601  			Header: res.Header,
  3602  		})
  3603  	}
  3604  	if err != nil {
  3605  		return nil, err
  3606  	}
  3607  	defer googleapi.CloseBody(res)
  3608  	if err := googleapi.CheckResponse(res); err != nil {
  3609  		return nil, gensupport.WrapError(err)
  3610  	}
  3611  	ret := &ListEntitiesResponse{
  3612  		ServerResponse: googleapi.ServerResponse{
  3613  			Header:         res.Header,
  3614  			HTTPStatusCode: res.StatusCode,
  3615  		},
  3616  	}
  3617  	target := &ret
  3618  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3619  		return nil, err
  3620  	}
  3621  	return ret, nil
  3622  }
  3623  
  3624  // Pages invokes f for each page of results.
  3625  // A non-nil error returned from f will halt the iteration.
  3626  // The provided context supersedes any context provided to the Context method.
  3627  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesListCall) Pages(ctx context.Context, f func(*ListEntitiesResponse) error) error {
  3628  	c.ctx_ = ctx
  3629  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3630  	for {
  3631  		x, err := c.Do()
  3632  		if err != nil {
  3633  			return err
  3634  		}
  3635  		if err := f(x); err != nil {
  3636  			return err
  3637  		}
  3638  		if x.NextPageToken == "" {
  3639  			return nil
  3640  		}
  3641  		c.PageToken(x.NextPageToken)
  3642  	}
  3643  }
  3644  
  3645  type ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall struct {
  3646  	s          *Service
  3647  	name       string
  3648  	entity     *Entity
  3649  	urlParams_ gensupport.URLParams
  3650  	ctx_       context.Context
  3651  	header_    http.Header
  3652  }
  3653  
  3654  // Patch: Updates an existing entity row matching the entity type and entity id
  3655  // specified in the request. The fields in the entity row that need to be
  3656  // modified are contained in the body of the request. All unspecified fields
  3657  // are left unchanged. The response message contains a `Entity` message object
  3658  // returned as a response by the external system.
  3659  //
  3660  //   - name: Output only. Resource name of the Entity. Format:
  3661  //     projects/{project}/locations/{location}/connections/{connection}/entityType
  3662  //     s/{type}/entities/{id}.
  3663  func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) Patch(name string, entity *Entity) *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall {
  3664  	c := &ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3665  	c.name = name
  3666  	c.entity = entity
  3667  	return c
  3668  }
  3669  
  3670  // Fields allows partial responses to be retrieved. See
  3671  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3672  // details.
  3673  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall {
  3674  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3675  	return c
  3676  }
  3677  
  3678  // Context sets the context to be used in this call's Do method.
  3679  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall {
  3680  	c.ctx_ = ctx
  3681  	return c
  3682  }
  3683  
  3684  // Header returns a http.Header that can be modified by the caller to add
  3685  // headers to the request.
  3686  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Header() http.Header {
  3687  	if c.header_ == nil {
  3688  		c.header_ = make(http.Header)
  3689  	}
  3690  	return c.header_
  3691  }
  3692  
  3693  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) doRequest(alt string) (*http.Response, error) {
  3694  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3695  	var body io.Reader = nil
  3696  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.entity)
  3697  	if err != nil {
  3698  		return nil, err
  3699  	}
  3700  	c.urlParams_.Set("alt", alt)
  3701  	c.urlParams_.Set("prettyPrint", "false")
  3702  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  3703  	urls += "?" + c.urlParams_.Encode()
  3704  	req, err := http.NewRequest("PATCH", urls, body)
  3705  	if err != nil {
  3706  		return nil, err
  3707  	}
  3708  	req.Header = reqHeaders
  3709  	googleapi.Expand(req.URL, map[string]string{
  3710  		"name": c.name,
  3711  	})
  3712  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3713  }
  3714  
  3715  // Do executes the "connectors.projects.locations.connections.entityTypes.entities.patch" call.
  3716  // Any non-2xx status code is an error. Response headers are in either
  3717  // *Entity.ServerResponse.Header or (if a response was returned at all) in
  3718  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3719  // whether the returned error was because http.StatusNotModified was returned.
  3720  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesPatchCall) Do(opts ...googleapi.CallOption) (*Entity, error) {
  3721  	gensupport.SetOptions(c.urlParams_, opts...)
  3722  	res, err := c.doRequest("json")
  3723  	if res != nil && res.StatusCode == http.StatusNotModified {
  3724  		if res.Body != nil {
  3725  			res.Body.Close()
  3726  		}
  3727  		return nil, gensupport.WrapError(&googleapi.Error{
  3728  			Code:   res.StatusCode,
  3729  			Header: res.Header,
  3730  		})
  3731  	}
  3732  	if err != nil {
  3733  		return nil, err
  3734  	}
  3735  	defer googleapi.CloseBody(res)
  3736  	if err := googleapi.CheckResponse(res); err != nil {
  3737  		return nil, gensupport.WrapError(err)
  3738  	}
  3739  	ret := &Entity{
  3740  		ServerResponse: googleapi.ServerResponse{
  3741  			Header:         res.Header,
  3742  			HTTPStatusCode: res.StatusCode,
  3743  		},
  3744  	}
  3745  	target := &ret
  3746  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3747  		return nil, err
  3748  	}
  3749  	return ret, nil
  3750  }
  3751  
  3752  type ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall struct {
  3753  	s          *Service
  3754  	entityType string
  3755  	entity     *Entity
  3756  	urlParams_ gensupport.URLParams
  3757  	ctx_       context.Context
  3758  	header_    http.Header
  3759  }
  3760  
  3761  // UpdateEntitiesWithConditions: Updates entities based on conditions specified
  3762  // in the request and not on entity id.
  3763  //
  3764  //   - entityType: Resource name of the Entity Type. Format:
  3765  //     projects/{project}/locations/{location}/connections/{connection}/entityType
  3766  //     s/{type}.
  3767  func (r *ProjectsLocationsConnectionsEntityTypesEntitiesService) UpdateEntitiesWithConditions(entityType string, entity *Entity) *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall {
  3768  	c := &ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3769  	c.entityType = entityType
  3770  	c.entity = entity
  3771  	return c
  3772  }
  3773  
  3774  // Conditions sets the optional parameter "conditions": Required. Conditions to
  3775  // be used when updating entities. From a proto standpoint, There are no
  3776  // restrictions on what can be passed using this field. The connector
  3777  // documentation should have information about what format of
  3778  // filters/conditions are supported. Note: If this conditions field is left
  3779  // empty, an exception is thrown. We don't want to consider 'empty conditions'
  3780  // to be a match-all case. Connector developers can determine and document what
  3781  // a match-all case constraint would be.
  3782  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Conditions(conditions string) *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall {
  3783  	c.urlParams_.Set("conditions", conditions)
  3784  	return c
  3785  }
  3786  
  3787  // Fields allows partial responses to be retrieved. See
  3788  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3789  // details.
  3790  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall {
  3791  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3792  	return c
  3793  }
  3794  
  3795  // Context sets the context to be used in this call's Do method.
  3796  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall {
  3797  	c.ctx_ = ctx
  3798  	return c
  3799  }
  3800  
  3801  // Header returns a http.Header that can be modified by the caller to add
  3802  // headers to the request.
  3803  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Header() http.Header {
  3804  	if c.header_ == nil {
  3805  		c.header_ = make(http.Header)
  3806  	}
  3807  	return c.header_
  3808  }
  3809  
  3810  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) doRequest(alt string) (*http.Response, error) {
  3811  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3812  	var body io.Reader = nil
  3813  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.entity)
  3814  	if err != nil {
  3815  		return nil, err
  3816  	}
  3817  	c.urlParams_.Set("alt", alt)
  3818  	c.urlParams_.Set("prettyPrint", "false")
  3819  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+entityType}/entities:updateEntitiesWithConditions")
  3820  	urls += "?" + c.urlParams_.Encode()
  3821  	req, err := http.NewRequest("POST", urls, body)
  3822  	if err != nil {
  3823  		return nil, err
  3824  	}
  3825  	req.Header = reqHeaders
  3826  	googleapi.Expand(req.URL, map[string]string{
  3827  		"entityType": c.entityType,
  3828  	})
  3829  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3830  }
  3831  
  3832  // Do executes the "connectors.projects.locations.connections.entityTypes.entities.updateEntitiesWithConditions" call.
  3833  // Any non-2xx status code is an error. Response headers are in either
  3834  // *UpdateEntitiesWithConditionsResponse.ServerResponse.Header or (if a
  3835  // response was returned at all) in error.(*googleapi.Error).Header. Use
  3836  // googleapi.IsNotModified to check whether the returned error was because
  3837  // http.StatusNotModified was returned.
  3838  func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithConditionsCall) Do(opts ...googleapi.CallOption) (*UpdateEntitiesWithConditionsResponse, error) {
  3839  	gensupport.SetOptions(c.urlParams_, opts...)
  3840  	res, err := c.doRequest("json")
  3841  	if res != nil && res.StatusCode == http.StatusNotModified {
  3842  		if res.Body != nil {
  3843  			res.Body.Close()
  3844  		}
  3845  		return nil, gensupport.WrapError(&googleapi.Error{
  3846  			Code:   res.StatusCode,
  3847  			Header: res.Header,
  3848  		})
  3849  	}
  3850  	if err != nil {
  3851  		return nil, err
  3852  	}
  3853  	defer googleapi.CloseBody(res)
  3854  	if err := googleapi.CheckResponse(res); err != nil {
  3855  		return nil, gensupport.WrapError(err)
  3856  	}
  3857  	ret := &UpdateEntitiesWithConditionsResponse{
  3858  		ServerResponse: googleapi.ServerResponse{
  3859  			Header:         res.Header,
  3860  			HTTPStatusCode: res.StatusCode,
  3861  		},
  3862  	}
  3863  	target := &ret
  3864  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3865  		return nil, err
  3866  	}
  3867  	return ret, nil
  3868  }
  3869  

View as plain text