...

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

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

     1  // Copyright 2024 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated file. DO NOT EDIT.
     6  
     7  // Package managedidentities provides access to the Managed Service for Microsoft Active Directory API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/managed-microsoft-ad/
    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/managedidentities/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	managedidentitiesService, err := managedidentities.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  //	managedidentitiesService, err := managedidentities.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  //	managedidentitiesService, err := managedidentities.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package managedidentities // import "google.golang.org/api/managedidentities/v1"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "managedidentities:v1"
    90  const apiName = "managedidentities"
    91  const apiVersion = "v1"
    92  const basePath = "https://managedidentities.googleapis.com/"
    93  const basePathTemplate = "https://managedidentities.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://managedidentities.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.Global = NewProjectsLocationsGlobalService(s)
   172  	return rs
   173  }
   174  
   175  type ProjectsLocationsService struct {
   176  	s *Service
   177  
   178  	Global *ProjectsLocationsGlobalService
   179  }
   180  
   181  func NewProjectsLocationsGlobalService(s *Service) *ProjectsLocationsGlobalService {
   182  	rs := &ProjectsLocationsGlobalService{s: s}
   183  	rs.Domains = NewProjectsLocationsGlobalDomainsService(s)
   184  	rs.Operations = NewProjectsLocationsGlobalOperationsService(s)
   185  	rs.Peerings = NewProjectsLocationsGlobalPeeringsService(s)
   186  	return rs
   187  }
   188  
   189  type ProjectsLocationsGlobalService struct {
   190  	s *Service
   191  
   192  	Domains *ProjectsLocationsGlobalDomainsService
   193  
   194  	Operations *ProjectsLocationsGlobalOperationsService
   195  
   196  	Peerings *ProjectsLocationsGlobalPeeringsService
   197  }
   198  
   199  func NewProjectsLocationsGlobalDomainsService(s *Service) *ProjectsLocationsGlobalDomainsService {
   200  	rs := &ProjectsLocationsGlobalDomainsService{s: s}
   201  	rs.Backups = NewProjectsLocationsGlobalDomainsBackupsService(s)
   202  	rs.SqlIntegrations = NewProjectsLocationsGlobalDomainsSqlIntegrationsService(s)
   203  	return rs
   204  }
   205  
   206  type ProjectsLocationsGlobalDomainsService struct {
   207  	s *Service
   208  
   209  	Backups *ProjectsLocationsGlobalDomainsBackupsService
   210  
   211  	SqlIntegrations *ProjectsLocationsGlobalDomainsSqlIntegrationsService
   212  }
   213  
   214  func NewProjectsLocationsGlobalDomainsBackupsService(s *Service) *ProjectsLocationsGlobalDomainsBackupsService {
   215  	rs := &ProjectsLocationsGlobalDomainsBackupsService{s: s}
   216  	return rs
   217  }
   218  
   219  type ProjectsLocationsGlobalDomainsBackupsService struct {
   220  	s *Service
   221  }
   222  
   223  func NewProjectsLocationsGlobalDomainsSqlIntegrationsService(s *Service) *ProjectsLocationsGlobalDomainsSqlIntegrationsService {
   224  	rs := &ProjectsLocationsGlobalDomainsSqlIntegrationsService{s: s}
   225  	return rs
   226  }
   227  
   228  type ProjectsLocationsGlobalDomainsSqlIntegrationsService struct {
   229  	s *Service
   230  }
   231  
   232  func NewProjectsLocationsGlobalOperationsService(s *Service) *ProjectsLocationsGlobalOperationsService {
   233  	rs := &ProjectsLocationsGlobalOperationsService{s: s}
   234  	return rs
   235  }
   236  
   237  type ProjectsLocationsGlobalOperationsService struct {
   238  	s *Service
   239  }
   240  
   241  func NewProjectsLocationsGlobalPeeringsService(s *Service) *ProjectsLocationsGlobalPeeringsService {
   242  	rs := &ProjectsLocationsGlobalPeeringsService{s: s}
   243  	return rs
   244  }
   245  
   246  type ProjectsLocationsGlobalPeeringsService struct {
   247  	s *Service
   248  }
   249  
   250  // AttachTrustRequest: Request message for AttachTrust
   251  type AttachTrustRequest struct {
   252  	// Trust: Required. The domain trust resource.
   253  	Trust *Trust `json:"trust,omitempty"`
   254  	// ForceSendFields is a list of field names (e.g. "Trust") to unconditionally
   255  	// include in API requests. By default, fields with empty or default values are
   256  	// omitted from API requests. See
   257  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   258  	// details.
   259  	ForceSendFields []string `json:"-"`
   260  	// NullFields is a list of field names (e.g. "Trust") to include in API
   261  	// requests with the JSON null value. By default, fields with empty values are
   262  	// omitted from API requests. See
   263  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   264  	NullFields []string `json:"-"`
   265  }
   266  
   267  func (s *AttachTrustRequest) MarshalJSON() ([]byte, error) {
   268  	type NoMethod AttachTrustRequest
   269  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   270  }
   271  
   272  // Backup: Represents a Managed Microsoft Identities backup.
   273  type Backup struct {
   274  	// CreateTime: Output only. The time the backups was created.
   275  	CreateTime string `json:"createTime,omitempty"`
   276  	// Labels: Optional. Resource labels to represent user provided metadata.
   277  	Labels map[string]string `json:"labels,omitempty"`
   278  	// Name: Output only. The unique name of the Backup in the form of
   279  	// `projects/{project_id}/locations/global/domains/{domain_name}/backups/{name}`
   280  	Name string `json:"name,omitempty"`
   281  	// State: Output only. The current state of the backup.
   282  	//
   283  	// Possible values:
   284  	//   "STATE_UNSPECIFIED" - Not set.
   285  	//   "CREATING" - Backup is being created.
   286  	//   "ACTIVE" - Backup has been created and validated.
   287  	//   "FAILED" - Backup has been created but failed validation.
   288  	//   "DELETING" - Backup is being deleted.
   289  	State string `json:"state,omitempty"`
   290  	// StatusMessage: Output only. Additional information about the current status
   291  	// of this backup, if available.
   292  	StatusMessage string `json:"statusMessage,omitempty"`
   293  	// Type: Output only. Indicates whether it’s an on-demand backup or
   294  	// scheduled.
   295  	//
   296  	// Possible values:
   297  	//   "TYPE_UNSPECIFIED" - Backup was manually created.
   298  	//   "ON_DEMAND" - Backup was manually created.
   299  	//   "SCHEDULED" - Backup was automatically created.
   300  	Type string `json:"type,omitempty"`
   301  	// UpdateTime: Output only. Last update time.
   302  	UpdateTime string `json:"updateTime,omitempty"`
   303  
   304  	// ServerResponse contains the HTTP response code and headers from the server.
   305  	googleapi.ServerResponse `json:"-"`
   306  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
   307  	// unconditionally include in API requests. By default, fields with empty or
   308  	// default values are omitted from API requests. See
   309  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   310  	// details.
   311  	ForceSendFields []string `json:"-"`
   312  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
   313  	// requests with the JSON null value. By default, fields with empty values are
   314  	// omitted from API requests. See
   315  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   316  	NullFields []string `json:"-"`
   317  }
   318  
   319  func (s *Backup) MarshalJSON() ([]byte, error) {
   320  	type NoMethod Backup
   321  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   322  }
   323  
   324  // Binding: Associates `members`, or principals, with a `role`.
   325  type Binding struct {
   326  	// Condition: The condition that is associated with this binding. If the
   327  	// condition evaluates to `true`, then this binding applies to the current
   328  	// request. If the condition evaluates to `false`, then this binding does not
   329  	// apply to the current request. However, a different role binding might grant
   330  	// the same role to one or more of the principals in this binding. To learn
   331  	// which resources support conditions in their IAM policies, see the IAM
   332  	// documentation
   333  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
   334  	Condition *Expr `json:"condition,omitempty"`
   335  	// Members: Specifies the principals requesting access for a Google Cloud
   336  	// resource. `members` can have the following values: * `allUsers`: A special
   337  	// identifier that represents anyone who is on the internet; with or without a
   338  	// Google account. * `allAuthenticatedUsers`: A special identifier that
   339  	// represents anyone who is authenticated with a Google account or a service
   340  	// account. Does not include identities that come from external identity
   341  	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
   342  	// address that represents a specific Google account. For example,
   343  	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
   344  	// represents a Google service account. For example,
   345  	// `my-other-app@appspot.gserviceaccount.com`. *
   346  	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
   347  	// identifier for a Kubernetes service account
   348  	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
   349  	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
   350  	// `group:{emailid}`: An email address that represents a Google group. For
   351  	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
   352  	// (primary) that represents all the users of that domain. For example,
   353  	// `google.com` or `example.com`. *
   354  	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
   355  	// ject/{subject_attribute_value}`: A single identity in a workforce identity
   356  	// pool. *
   357  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   358  	// group/{group_id}`: All workforce identities in a group. *
   359  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   360  	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
   361  	// a specific attribute value. *
   362  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   363  	// *`: All identities in a workforce identity pool. *
   364  	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
   365  	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
   366  	// identity in a workload identity pool. *
   367  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   368  	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
   369  	// group. *
   370  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   371  	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
   372  	// `: All identities in a workload identity pool with a certain attribute. *
   373  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   374  	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
   375  	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
   376  	// unique identifier) representing a user that has been recently deleted. For
   377  	// example, `alice@example.com?uid=123456789012345678901`. If the user is
   378  	// recovered, this value reverts to `user:{emailid}` and the recovered user
   379  	// retains the role in the binding. *
   380  	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
   381  	// unique identifier) representing a service account that has been recently
   382  	// deleted. For example,
   383  	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
   384  	// service account is undeleted, this value reverts to
   385  	// `serviceAccount:{emailid}` and the undeleted service account retains the
   386  	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
   387  	// address (plus unique identifier) representing a Google group that has been
   388  	// recently deleted. For example,
   389  	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
   390  	// this value reverts to `group:{emailid}` and the recovered group retains the
   391  	// role in the binding. *
   392  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
   393  	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
   394  	// workforce identity pool. For example,
   395  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
   396  	// ol-id/subject/my-subject-attribute-value`.
   397  	Members []string `json:"members,omitempty"`
   398  	// Role: Role that is assigned to the list of `members`, or principals. For
   399  	// example, `roles/viewer`, `roles/editor`, or `roles/owner`.
   400  	Role string `json:"role,omitempty"`
   401  	// ForceSendFields is a list of field names (e.g. "Condition") to
   402  	// unconditionally include in API requests. By default, fields with empty or
   403  	// default values are 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. "Condition") to include in API
   408  	// requests with the JSON null value. By default, fields with empty values are
   409  	// omitted 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 *Binding) MarshalJSON() ([]byte, error) {
   415  	type NoMethod Binding
   416  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   417  }
   418  
   419  // CancelOperationRequest: The request message for Operations.CancelOperation.
   420  type CancelOperationRequest struct {
   421  }
   422  
   423  // Certificate: Certificate used to configure LDAPS.
   424  type Certificate struct {
   425  	// ExpireTime: The certificate expire time.
   426  	ExpireTime string `json:"expireTime,omitempty"`
   427  	// IssuingCertificate: The issuer of this certificate.
   428  	IssuingCertificate *Certificate `json:"issuingCertificate,omitempty"`
   429  	// Subject: The certificate subject.
   430  	Subject string `json:"subject,omitempty"`
   431  	// SubjectAlternativeName: The additional hostnames for the domain.
   432  	SubjectAlternativeName []string `json:"subjectAlternativeName,omitempty"`
   433  	// Thumbprint: The certificate thumbprint which uniquely identifies the
   434  	// certificate.
   435  	Thumbprint string `json:"thumbprint,omitempty"`
   436  	// ForceSendFields is a list of field names (e.g. "ExpireTime") to
   437  	// unconditionally include in API requests. By default, fields with empty or
   438  	// default values are 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. "ExpireTime") 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 *Certificate) MarshalJSON() ([]byte, error) {
   450  	type NoMethod Certificate
   451  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   452  }
   453  
   454  // CheckMigrationPermissionRequest: CheckMigrationPermissionRequest is the
   455  // request message for CheckMigrationPermission method.
   456  type CheckMigrationPermissionRequest struct {
   457  }
   458  
   459  // CheckMigrationPermissionResponse: CheckMigrationPermissionResponse is the
   460  // response message for CheckMigrationPermission method.
   461  type CheckMigrationPermissionResponse struct {
   462  	// OnpremDomains: The state of SID filtering of all the domains which has trust
   463  	// established.
   464  	OnpremDomains []*OnPremDomainSIDDetails `json:"onpremDomains,omitempty"`
   465  	// State: The state of DomainMigration.
   466  	//
   467  	// Possible values:
   468  	//   "STATE_UNSPECIFIED" - DomainMigration is in unspecified state.
   469  	//   "DISABLED" - Domain Migration is Disabled.
   470  	//   "ENABLED" - Domain Migration is Enabled.
   471  	//   "NEEDS_MAINTENANCE" - Domain Migration is not in valid state.
   472  	State string `json:"state,omitempty"`
   473  
   474  	// ServerResponse contains the HTTP response code and headers from the server.
   475  	googleapi.ServerResponse `json:"-"`
   476  	// ForceSendFields is a list of field names (e.g. "OnpremDomains") to
   477  	// unconditionally include in API requests. By default, fields with empty or
   478  	// default values are omitted from API requests. See
   479  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   480  	// details.
   481  	ForceSendFields []string `json:"-"`
   482  	// NullFields is a list of field names (e.g. "OnpremDomains") to include in API
   483  	// requests with the JSON null value. By default, fields with empty values are
   484  	// omitted from API requests. See
   485  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   486  	NullFields []string `json:"-"`
   487  }
   488  
   489  func (s *CheckMigrationPermissionResponse) MarshalJSON() ([]byte, error) {
   490  	type NoMethod CheckMigrationPermissionResponse
   491  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   492  }
   493  
   494  // DailyCycle: Time window specified for daily operations.
   495  type DailyCycle struct {
   496  	// Duration: Output only. Duration of the time window, set by service producer.
   497  	Duration string `json:"duration,omitempty"`
   498  	// StartTime: Time within the day to start the operations.
   499  	StartTime *TimeOfDay `json:"startTime,omitempty"`
   500  	// ForceSendFields is a list of field names (e.g. "Duration") to
   501  	// unconditionally include in API requests. By default, fields with empty or
   502  	// default values are omitted from API requests. See
   503  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   504  	// details.
   505  	ForceSendFields []string `json:"-"`
   506  	// NullFields is a list of field names (e.g. "Duration") to include in API
   507  	// requests with the JSON null value. By default, fields with empty values are
   508  	// omitted from API requests. See
   509  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   510  	NullFields []string `json:"-"`
   511  }
   512  
   513  func (s *DailyCycle) MarshalJSON() ([]byte, error) {
   514  	type NoMethod DailyCycle
   515  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   516  }
   517  
   518  // Date: Represents a whole or partial calendar date, such as a birthday. The
   519  // time of day and time zone are either specified elsewhere or are
   520  // insignificant. The date is relative to the Gregorian Calendar. This can
   521  // represent one of the following: * A full date, with non-zero year, month,
   522  // and day values. * A month and day, with a zero year (for example, an
   523  // anniversary). * A year on its own, with a zero month and a zero day. * A
   524  // year and month, with a zero day (for example, a credit card expiration
   525  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
   526  // google.protobuf.Timestamp
   527  type Date struct {
   528  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
   529  	// or 0 to specify a year by itself or a year and month where the day isn't
   530  	// significant.
   531  	Day int64 `json:"day,omitempty"`
   532  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
   533  	// a month and day.
   534  	Month int64 `json:"month,omitempty"`
   535  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
   536  	// without a year.
   537  	Year int64 `json:"year,omitempty"`
   538  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
   539  	// include in API requests. By default, fields with empty or default values are
   540  	// omitted from API requests. See
   541  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   542  	// details.
   543  	ForceSendFields []string `json:"-"`
   544  	// NullFields is a list of field names (e.g. "Day") to include in API requests
   545  	// with the JSON null value. By default, fields with empty values are omitted
   546  	// from API requests. See
   547  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   548  	NullFields []string `json:"-"`
   549  }
   550  
   551  func (s *Date) MarshalJSON() ([]byte, error) {
   552  	type NoMethod Date
   553  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   554  }
   555  
   556  // DenyMaintenancePeriod: DenyMaintenancePeriod definition. Maintenance is
   557  // forbidden within the deny period. The start_date must be less than the
   558  // end_date.
   559  type DenyMaintenancePeriod struct {
   560  	// EndDate: Deny period end date. This can be: * A full date, with non-zero
   561  	// year, month and day values. * A month and day value, with a zero year.
   562  	// Allows recurring deny periods each year. Date matching this period will have
   563  	// to be before the end.
   564  	EndDate *Date `json:"endDate,omitempty"`
   565  	// StartDate: Deny period start date. This can be: * A full date, with non-zero
   566  	// year, month and day values. * A month and day value, with a zero year.
   567  	// Allows recurring deny periods each year. Date matching this period will have
   568  	// to be the same or after the start.
   569  	StartDate *Date `json:"startDate,omitempty"`
   570  	// Time: Time in UTC when the Blackout period starts on start_date and ends on
   571  	// end_date. This can be: * Full time. * All zeros for 00:00:00 UTC
   572  	Time *TimeOfDay `json:"time,omitempty"`
   573  	// ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally
   574  	// include in API requests. By default, fields with empty or default values are
   575  	// omitted from API requests. See
   576  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   577  	// details.
   578  	ForceSendFields []string `json:"-"`
   579  	// NullFields is a list of field names (e.g. "EndDate") to include in API
   580  	// requests with the JSON null value. By default, fields with empty values are
   581  	// omitted from API requests. See
   582  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   583  	NullFields []string `json:"-"`
   584  }
   585  
   586  func (s *DenyMaintenancePeriod) MarshalJSON() ([]byte, error) {
   587  	type NoMethod DenyMaintenancePeriod
   588  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   589  }
   590  
   591  // DetachTrustRequest: Request message for DetachTrust
   592  type DetachTrustRequest struct {
   593  	// Trust: Required. The domain trust resource to removed.
   594  	Trust *Trust `json:"trust,omitempty"`
   595  	// ForceSendFields is a list of field names (e.g. "Trust") to unconditionally
   596  	// include in API requests. By default, fields with empty or default values are
   597  	// omitted from API requests. See
   598  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   599  	// details.
   600  	ForceSendFields []string `json:"-"`
   601  	// NullFields is a list of field names (e.g. "Trust") to include in API
   602  	// requests with the JSON null value. By default, fields with empty values are
   603  	// omitted from API requests. See
   604  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   605  	NullFields []string `json:"-"`
   606  }
   607  
   608  func (s *DetachTrustRequest) MarshalJSON() ([]byte, error) {
   609  	type NoMethod DetachTrustRequest
   610  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   611  }
   612  
   613  // DisableMigrationRequest: DisableMigrationRequest is the request message for
   614  // DisableMigration method.
   615  type DisableMigrationRequest struct {
   616  }
   617  
   618  // Domain: Represents a managed Microsoft Active Directory domain. If the
   619  // domain is being changed, it will be placed into the UPDATING state, which
   620  // indicates that the resource is being reconciled. At this point, Get will
   621  // reflect an intermediate state.
   622  type Domain struct {
   623  	// Admin: Optional. The name of delegated administrator account used to perform
   624  	// Active Directory operations. If not specified, `setupadmin` will be used.
   625  	Admin string `json:"admin,omitempty"`
   626  	// AuditLogsEnabled: Optional. Configuration for audit logs. True if audit logs
   627  	// are enabled, else false. Default is audit logs disabled.
   628  	AuditLogsEnabled bool `json:"auditLogsEnabled,omitempty"`
   629  	// AuthorizedNetworks: Optional. The full names of the Google Compute Engine
   630  	// networks (/compute/docs/networks-and-firewalls#networks) the domain instance
   631  	// is connected to. Networks can be added using UpdateDomain. The domain is
   632  	// only available on networks listed in `authorized_networks`. If CIDR subnets
   633  	// overlap between networks, domain creation will fail.
   634  	AuthorizedNetworks []string `json:"authorizedNetworks,omitempty"`
   635  	// CreateTime: Output only. The time the instance was created.
   636  	CreateTime string `json:"createTime,omitempty"`
   637  	// Fqdn: Output only. The fully-qualified domain name of the exposed domain
   638  	// used by clients to connect to the service. Similar to what would be chosen
   639  	// for an Active Directory set up on an internal network.
   640  	Fqdn string `json:"fqdn,omitempty"`
   641  	// Labels: Optional. Resource labels that can contain user-provided metadata.
   642  	Labels map[string]string `json:"labels,omitempty"`
   643  	// Locations: Required. Locations where domain needs to be provisioned. regions
   644  	// e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each
   645  	// location will use a /26 block.
   646  	Locations []string `json:"locations,omitempty"`
   647  	// Name: Required. The unique name of the domain using the form:
   648  	// `projects/{project_id}/locations/global/domains/{domain_name}`.
   649  	Name string `json:"name,omitempty"`
   650  	// ReservedIpRange: Required. The CIDR range of internal addresses that are
   651  	// reserved for this domain. Reserved networks must be /24 or larger. Ranges
   652  	// must be unique and non-overlapping with existing subnets in
   653  	// [Domain].[authorized_networks].
   654  	ReservedIpRange string `json:"reservedIpRange,omitempty"`
   655  	// State: Output only. The current state of this domain.
   656  	//
   657  	// Possible values:
   658  	//   "STATE_UNSPECIFIED" - Not set.
   659  	//   "CREATING" - The domain is being created.
   660  	//   "READY" - The domain has been created and is fully usable.
   661  	//   "UPDATING" - The domain's configuration is being updated.
   662  	//   "DELETING" - The domain is being deleted.
   663  	//   "REPAIRING" - The domain is being repaired and may be unusable. Details
   664  	// can be found in the `status_message` field.
   665  	//   "PERFORMING_MAINTENANCE" - The domain is undergoing maintenance.
   666  	//   "UNAVAILABLE" - The domain is not serving requests.
   667  	State string `json:"state,omitempty"`
   668  	// StatusMessage: Output only. Additional information about the current status
   669  	// of this domain, if available.
   670  	StatusMessage string `json:"statusMessage,omitempty"`
   671  	// Trusts: Output only. The current trusts associated with the domain.
   672  	Trusts []*Trust `json:"trusts,omitempty"`
   673  	// UpdateTime: Output only. The last update time.
   674  	UpdateTime string `json:"updateTime,omitempty"`
   675  
   676  	// ServerResponse contains the HTTP response code and headers from the server.
   677  	googleapi.ServerResponse `json:"-"`
   678  	// ForceSendFields is a list of field names (e.g. "Admin") to unconditionally
   679  	// include in API requests. By default, fields with empty or default values are
   680  	// omitted from API requests. See
   681  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   682  	// details.
   683  	ForceSendFields []string `json:"-"`
   684  	// NullFields is a list of field names (e.g. "Admin") to include in API
   685  	// requests with the JSON null value. By default, fields with empty values are
   686  	// omitted from API requests. See
   687  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   688  	NullFields []string `json:"-"`
   689  }
   690  
   691  func (s *Domain) MarshalJSON() ([]byte, error) {
   692  	type NoMethod Domain
   693  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   694  }
   695  
   696  // DomainJoinMachineRequest: DomainJoinMachineRequest is the request message
   697  // for DomainJoinMachine method
   698  type DomainJoinMachineRequest struct {
   699  	// Force: Optional. force if True, forces domain join even if the computer
   700  	// account already exists.
   701  	Force bool `json:"force,omitempty"`
   702  	// OuName: Optional. OU name where the VM needs to be domain joined
   703  	OuName string `json:"ouName,omitempty"`
   704  	// VmIdToken: Required. Full instance id token of compute engine VM to verify
   705  	// instance identity. More about this:
   706  	// https://cloud.google.com/compute/docs/instances/verifying-instance-identity#request_signature
   707  	VmIdToken string `json:"vmIdToken,omitempty"`
   708  	// ForceSendFields is a list of field names (e.g. "Force") to unconditionally
   709  	// include in API requests. By default, fields with empty or default values are
   710  	// omitted from API requests. See
   711  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   712  	// details.
   713  	ForceSendFields []string `json:"-"`
   714  	// NullFields is a list of field names (e.g. "Force") to include in API
   715  	// requests with the JSON null value. By default, fields with empty values are
   716  	// omitted from API requests. See
   717  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   718  	NullFields []string `json:"-"`
   719  }
   720  
   721  func (s *DomainJoinMachineRequest) MarshalJSON() ([]byte, error) {
   722  	type NoMethod DomainJoinMachineRequest
   723  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   724  }
   725  
   726  // DomainJoinMachineResponse: DomainJoinMachineResponse is the response message
   727  // for DomainJoinMachine method
   728  type DomainJoinMachineResponse struct {
   729  	// DomainJoinBlob: Offline domain join blob as the response
   730  	DomainJoinBlob string `json:"domainJoinBlob,omitempty"`
   731  
   732  	// ServerResponse contains the HTTP response code and headers from the server.
   733  	googleapi.ServerResponse `json:"-"`
   734  	// ForceSendFields is a list of field names (e.g. "DomainJoinBlob") to
   735  	// unconditionally include in API requests. By default, fields with empty or
   736  	// default values are omitted from API requests. See
   737  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   738  	// details.
   739  	ForceSendFields []string `json:"-"`
   740  	// NullFields is a list of field names (e.g. "DomainJoinBlob") to include in
   741  	// API requests with the JSON null value. By default, fields with empty values
   742  	// are omitted from API requests. See
   743  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   744  	NullFields []string `json:"-"`
   745  }
   746  
   747  func (s *DomainJoinMachineResponse) MarshalJSON() ([]byte, error) {
   748  	type NoMethod DomainJoinMachineResponse
   749  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   750  }
   751  
   752  // Empty: A generic empty message that you can re-use to avoid defining
   753  // duplicated empty messages in your APIs. A typical example is to use it as
   754  // the request or the response type of an API method. For instance: service Foo
   755  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
   756  type Empty struct {
   757  	// ServerResponse contains the HTTP response code and headers from the server.
   758  	googleapi.ServerResponse `json:"-"`
   759  }
   760  
   761  // EnableMigrationRequest: EnableMigrationRequest is the request message for
   762  // EnableMigration method.
   763  type EnableMigrationRequest struct {
   764  	// MigratingDomains: Required. List of the on-prem domains to be migrated.
   765  	MigratingDomains []*OnPremDomainDetails `json:"migratingDomains,omitempty"`
   766  	// ForceSendFields is a list of field names (e.g. "MigratingDomains") to
   767  	// unconditionally include in API requests. By default, fields with empty or
   768  	// default values are omitted from API requests. See
   769  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   770  	// details.
   771  	ForceSendFields []string `json:"-"`
   772  	// NullFields is a list of field names (e.g. "MigratingDomains") to include in
   773  	// API requests with the JSON null value. By default, fields with empty values
   774  	// are omitted from API requests. See
   775  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   776  	NullFields []string `json:"-"`
   777  }
   778  
   779  func (s *EnableMigrationRequest) MarshalJSON() ([]byte, error) {
   780  	type NoMethod EnableMigrationRequest
   781  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   782  }
   783  
   784  // Expr: Represents a textual expression in the Common Expression Language
   785  // (CEL) syntax. CEL is a C-like expression language. The syntax and semantics
   786  // of CEL are documented at https://github.com/google/cel-spec. Example
   787  // (Comparison): title: "Summary size limit" description: "Determines if a
   788  // summary is less than 100 chars" expression: "document.summary.size() < 100"
   789  // Example (Equality): title: "Requestor is owner" description: "Determines if
   790  // requestor is the document owner" expression: "document.owner ==
   791  // request.auth.claims.email" Example (Logic): title: "Public documents"
   792  // description: "Determine whether the document should be publicly visible"
   793  // expression: "document.type != 'private' && document.type != 'internal'"
   794  // Example (Data Manipulation): title: "Notification string" description:
   795  // "Create a notification string with a timestamp." expression: "'New message
   796  // received at ' + string(document.create_time)" The exact variables and
   797  // functions that may be referenced within an expression are determined by the
   798  // service that evaluates it. See the service documentation for additional
   799  // information.
   800  type Expr struct {
   801  	// Description: Optional. Description of the expression. This is a longer text
   802  	// which describes the expression, e.g. when hovered over it in a UI.
   803  	Description string `json:"description,omitempty"`
   804  	// Expression: Textual representation of an expression in Common Expression
   805  	// Language syntax.
   806  	Expression string `json:"expression,omitempty"`
   807  	// Location: Optional. String indicating the location of the expression for
   808  	// error reporting, e.g. a file name and a position in the file.
   809  	Location string `json:"location,omitempty"`
   810  	// Title: Optional. Title for the expression, i.e. a short string describing
   811  	// its purpose. This can be used e.g. in UIs which allow to enter the
   812  	// expression.
   813  	Title string `json:"title,omitempty"`
   814  	// ForceSendFields is a list of field names (e.g. "Description") to
   815  	// unconditionally include in API requests. By default, fields with empty or
   816  	// default values are omitted from API requests. See
   817  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   818  	// details.
   819  	ForceSendFields []string `json:"-"`
   820  	// NullFields is a list of field names (e.g. "Description") to include in API
   821  	// requests with the JSON null value. By default, fields with empty values are
   822  	// omitted from API requests. See
   823  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   824  	NullFields []string `json:"-"`
   825  }
   826  
   827  func (s *Expr) MarshalJSON() ([]byte, error) {
   828  	type NoMethod Expr
   829  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   830  }
   831  
   832  // ExtendSchemaRequest: ExtendSchemaRequest is the request message for
   833  // ExtendSchema method.
   834  type ExtendSchemaRequest struct {
   835  	// Description: Required. Description for Schema Change.
   836  	Description string `json:"description,omitempty"`
   837  	// FileContents: File uploaded as a byte stream input.
   838  	FileContents string `json:"fileContents,omitempty"`
   839  	// GcsPath: File stored in Cloud Storage bucket and represented in the form
   840  	// projects/{project_id}/buckets/{bucket_name}/objects/{object_name} File
   841  	// should be in the same project as the domain.
   842  	GcsPath string `json:"gcsPath,omitempty"`
   843  	// ForceSendFields is a list of field names (e.g. "Description") to
   844  	// unconditionally include in API requests. By default, fields with empty or
   845  	// default values are omitted from API requests. See
   846  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   847  	// details.
   848  	ForceSendFields []string `json:"-"`
   849  	// NullFields is a list of field names (e.g. "Description") to include in API
   850  	// requests with the JSON null value. By default, fields with empty values are
   851  	// omitted from API requests. See
   852  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   853  	NullFields []string `json:"-"`
   854  }
   855  
   856  func (s *ExtendSchemaRequest) MarshalJSON() ([]byte, error) {
   857  	type NoMethod ExtendSchemaRequest
   858  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   859  }
   860  
   861  // GoogleCloudManagedidentitiesV1OpMetadata: Represents the metadata of the
   862  // long-running operation.
   863  type GoogleCloudManagedidentitiesV1OpMetadata struct {
   864  	// ApiVersion: Output only. API version used to start the operation.
   865  	ApiVersion string `json:"apiVersion,omitempty"`
   866  	// CreateTime: Output only. The time the operation was created.
   867  	CreateTime string `json:"createTime,omitempty"`
   868  	// EndTime: Output only. The time the operation finished running.
   869  	EndTime string `json:"endTime,omitempty"`
   870  	// RequestedCancellation: Output only. Identifies whether the user has
   871  	// requested cancellation of the operation. Operations that have successfully
   872  	// been cancelled have Operation.error value with a google.rpc.Status.code of
   873  	// 1, corresponding to `Code.CANCELLED`.
   874  	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
   875  	// Target: Output only. Server-defined resource path for the target of the
   876  	// operation.
   877  	Target string `json:"target,omitempty"`
   878  	// Verb: Output only. Name of the verb executed by the operation.
   879  	Verb string `json:"verb,omitempty"`
   880  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
   881  	// unconditionally include in API requests. By default, fields with empty or
   882  	// default values are omitted from API requests. See
   883  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   884  	// details.
   885  	ForceSendFields []string `json:"-"`
   886  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
   887  	// requests with the JSON null value. By default, fields with empty values are
   888  	// omitted from API requests. See
   889  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   890  	NullFields []string `json:"-"`
   891  }
   892  
   893  func (s *GoogleCloudManagedidentitiesV1OpMetadata) MarshalJSON() ([]byte, error) {
   894  	type NoMethod GoogleCloudManagedidentitiesV1OpMetadata
   895  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   896  }
   897  
   898  // GoogleCloudManagedidentitiesV1alpha1OpMetadata: Represents the metadata of
   899  // the long-running operation.
   900  type GoogleCloudManagedidentitiesV1alpha1OpMetadata struct {
   901  	// ApiVersion: Output only. API version used to start the operation.
   902  	ApiVersion string `json:"apiVersion,omitempty"`
   903  	// CreateTime: Output only. The time the operation was created.
   904  	CreateTime string `json:"createTime,omitempty"`
   905  	// EndTime: Output only. The time the operation finished running.
   906  	EndTime string `json:"endTime,omitempty"`
   907  	// RequestedCancellation: Output only. Identifies whether the user has
   908  	// requested cancellation of the operation. Operations that have successfully
   909  	// been cancelled have Operation.error value with a google.rpc.Status.code of
   910  	// 1, corresponding to `Code.CANCELLED`.
   911  	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
   912  	// Target: Output only. Server-defined resource path for the target of the
   913  	// operation.
   914  	Target string `json:"target,omitempty"`
   915  	// Verb: Output only. Name of the verb executed by the operation.
   916  	Verb string `json:"verb,omitempty"`
   917  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
   918  	// unconditionally include in API requests. By default, fields with empty or
   919  	// default values are omitted from API requests. See
   920  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   921  	// details.
   922  	ForceSendFields []string `json:"-"`
   923  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
   924  	// requests with the JSON null value. By default, fields with empty values are
   925  	// omitted from API requests. See
   926  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   927  	NullFields []string `json:"-"`
   928  }
   929  
   930  func (s *GoogleCloudManagedidentitiesV1alpha1OpMetadata) MarshalJSON() ([]byte, error) {
   931  	type NoMethod GoogleCloudManagedidentitiesV1alpha1OpMetadata
   932  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   933  }
   934  
   935  // GoogleCloudManagedidentitiesV1beta1OpMetadata: Represents the metadata of
   936  // the long-running operation.
   937  type GoogleCloudManagedidentitiesV1beta1OpMetadata struct {
   938  	// ApiVersion: Output only. API version used to start the operation.
   939  	ApiVersion string `json:"apiVersion,omitempty"`
   940  	// CreateTime: Output only. The time the operation was created.
   941  	CreateTime string `json:"createTime,omitempty"`
   942  	// EndTime: Output only. The time the operation finished running.
   943  	EndTime string `json:"endTime,omitempty"`
   944  	// RequestedCancellation: Output only. Identifies whether the user has
   945  	// requested cancellation of the operation. Operations that have successfully
   946  	// been cancelled have Operation.error value with a google.rpc.Status.code of
   947  	// 1, corresponding to `Code.CANCELLED`.
   948  	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
   949  	// Target: Output only. Server-defined resource path for the target of the
   950  	// operation.
   951  	Target string `json:"target,omitempty"`
   952  	// Verb: Output only. Name of the verb executed by the operation.
   953  	Verb string `json:"verb,omitempty"`
   954  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
   955  	// unconditionally include in API requests. By default, fields with empty or
   956  	// default values are omitted from API requests. See
   957  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   958  	// details.
   959  	ForceSendFields []string `json:"-"`
   960  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
   961  	// requests with the JSON null value. By default, fields with empty values are
   962  	// omitted from API requests. See
   963  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   964  	NullFields []string `json:"-"`
   965  }
   966  
   967  func (s *GoogleCloudManagedidentitiesV1beta1OpMetadata) MarshalJSON() ([]byte, error) {
   968  	type NoMethod GoogleCloudManagedidentitiesV1beta1OpMetadata
   969  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   970  }
   971  
   972  // GoogleCloudSaasacceleratorManagementProvidersV1Instance: Instance represents
   973  // the interface for SLM services to actuate the state of control plane
   974  // resources. Example Instance in JSON, where consumer-project-number=123456,
   975  // producer-project-id=cloud-sql: ```json Instance: { "name":
   976  // "projects/123456/locations/us-east1/instances/prod-instance", "create_time":
   977  // { "seconds": 1526406431, }, "labels": { "env": "prod", "foo": "bar" },
   978  // "state": READY, "software_versions": { "software_update":
   979  // "cloud-sql-09-28-2018", }, "maintenance_policy_names": { "UpdatePolicy":
   980  // "projects/123456/locations/us-east1/maintenancePolicies/prod-update-policy",
   981  // } "tenant_project_id": "cloud-sql-test-tenant", "producer_metadata": {
   982  // "cloud-sql-tier": "basic", "cloud-sql-instance-size": "1G", },
   983  // "provisioned_resources": [ { "resource-type": "compute-instance",
   984  // "resource-url":
   985  // "https://www.googleapis.com/compute/v1/projects/cloud-sql/zones/us-east1-b/in
   986  // stances/vm-1", } ], "maintenance_schedules": { "csa_rollout": {
   987  // "start_time": { "seconds": 1526406431, }, "end_time": { "seconds":
   988  // 1535406431, }, }, "ncsa_rollout": { "start_time": { "seconds": 1526406431,
   989  // }, "end_time": { "seconds": 1535406431, }, } }, "consumer_defined_name":
   990  // "my-sql-instance1", } ``` LINT.IfChange
   991  type GoogleCloudSaasacceleratorManagementProvidersV1Instance struct {
   992  	// ConsumerDefinedName: consumer_defined_name is the name of the instance set
   993  	// by the service consumers. Generally this is different from the `name` field
   994  	// which reperesents the system-assigned id of the instance which the service
   995  	// consumers do not recognize. This is a required field for tenants onboarding
   996  	// to Maintenance Window notifications
   997  	// (go/slm-rollout-maintenance-policies#prerequisites).
   998  	ConsumerDefinedName string `json:"consumerDefinedName,omitempty"`
   999  	// CreateTime: Output only. Timestamp when the resource was created.
  1000  	CreateTime string `json:"createTime,omitempty"`
  1001  	// InstanceType: Optional. The instance_type of this instance of format:
  1002  	// projects/{project_number}/locations/{location_id}/instanceTypes/{instance_typ
  1003  	// e_id}. Instance Type represents a high-level tier or SKU of the service that
  1004  	// this instance belong to. When enabled(eg: Maintenance Rollout), Rollout uses
  1005  	// 'instance_type' along with 'software_versions' to determine whether instance
  1006  	// needs an update or not.
  1007  	InstanceType string `json:"instanceType,omitempty"`
  1008  	// Labels: Optional. Resource labels to represent user provided metadata. Each
  1009  	// label is a key-value pair, where both the key and the value are arbitrary
  1010  	// strings provided by the user.
  1011  	Labels map[string]string `json:"labels,omitempty"`
  1012  	// MaintenancePolicyNames: Optional. The MaintenancePolicies that have been
  1013  	// attached to the instance. The key must be of the type name of the oneof
  1014  	// policy name defined in MaintenancePolicy, and the referenced policy must
  1015  	// define the same policy type. For details, please refer to go/mr-user-guide.
  1016  	// Should not be set if maintenance_settings.maintenance_policies is set.
  1017  	MaintenancePolicyNames map[string]string `json:"maintenancePolicyNames,omitempty"`
  1018  	// MaintenanceSchedules: The MaintenanceSchedule contains the scheduling
  1019  	// information of published maintenance schedule with same key as
  1020  	// software_versions.
  1021  	MaintenanceSchedules map[string]GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule `json:"maintenanceSchedules,omitempty"`
  1022  	// MaintenanceSettings: Optional. The MaintenanceSettings associated with
  1023  	// instance.
  1024  	MaintenanceSettings *GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings `json:"maintenanceSettings,omitempty"`
  1025  	// Name: Unique name of the resource. It uses the form:
  1026  	// `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
  1027  	// Note: This name is passed, stored and logged across the rollout system. So
  1028  	// use of consumer project_id or any other consumer PII in the name is strongly
  1029  	// discouraged for wipeout (go/wipeout) compliance. See
  1030  	// go/elysium/project_ids#storage-guidance for more details.
  1031  	Name string `json:"name,omitempty"`
  1032  	// NotificationParameters: Optional. notification_parameter are information
  1033  	// that service producers may like to include that is not relevant to Rollout.
  1034  	// This parameter will only be passed to Gamma and Cloud Logging for
  1035  	// notification/logging purpose.
  1036  	NotificationParameters map[string]GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter `json:"notificationParameters,omitempty"`
  1037  	// ProducerMetadata: Output only. Custom string attributes used primarily to
  1038  	// expose producer-specific information in monitoring dashboards. See
  1039  	// go/get-instance-metadata.
  1040  	ProducerMetadata map[string]string `json:"producerMetadata,omitempty"`
  1041  	// ProvisionedResources: Output only. The list of data plane resources
  1042  	// provisioned for this instance, e.g. compute VMs. See
  1043  	// go/get-instance-metadata.
  1044  	ProvisionedResources []*GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource `json:"provisionedResources,omitempty"`
  1045  	// SlmInstanceTemplate: Link to the SLM instance template. Only populated when
  1046  	// updating SLM instances via SSA's Actuation service adaptor. Service
  1047  	// producers with custom control plane (e.g. Cloud SQL) doesn't need to
  1048  	// populate this field. Instead they should use software_versions.
  1049  	SlmInstanceTemplate string `json:"slmInstanceTemplate,omitempty"`
  1050  	// SloMetadata: Output only. SLO metadata for instance classification in the
  1051  	// Standardized dataplane SLO platform. See go/cloud-ssa-standard-slo for
  1052  	// feature description.
  1053  	SloMetadata *GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata `json:"sloMetadata,omitempty"`
  1054  	// SoftwareVersions: Software versions that are used to deploy this instance.
  1055  	// This can be mutated by rollout services.
  1056  	SoftwareVersions map[string]string `json:"softwareVersions,omitempty"`
  1057  	// State: Output only. Current lifecycle state of the resource (e.g. if it's
  1058  	// being created or ready to use).
  1059  	//
  1060  	// Possible values:
  1061  	//   "STATE_UNSPECIFIED" - Unspecified state.
  1062  	//   "CREATING" - Instance is being created.
  1063  	//   "READY" - Instance has been created and is ready to use.
  1064  	//   "UPDATING" - Instance is being updated.
  1065  	//   "REPAIRING" - Instance is unheathy and under repair.
  1066  	//   "DELETING" - Instance is being deleted.
  1067  	//   "ERROR" - Instance encountered an error and is in indeterministic state.
  1068  	State string `json:"state,omitempty"`
  1069  	// TenantProjectId: Output only. ID of the associated GCP tenant project. See
  1070  	// go/get-instance-metadata.
  1071  	TenantProjectId string `json:"tenantProjectId,omitempty"`
  1072  	// UpdateTime: Output only. Timestamp when the resource was last modified.
  1073  	UpdateTime string `json:"updateTime,omitempty"`
  1074  	// ForceSendFields is a list of field names (e.g. "ConsumerDefinedName") to
  1075  	// unconditionally include in API requests. By default, fields with empty or
  1076  	// default values are omitted from API requests. See
  1077  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1078  	// details.
  1079  	ForceSendFields []string `json:"-"`
  1080  	// NullFields is a list of field names (e.g. "ConsumerDefinedName") to include
  1081  	// in API requests with the JSON null value. By default, fields with empty
  1082  	// values are omitted from API requests. See
  1083  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1084  	NullFields []string `json:"-"`
  1085  }
  1086  
  1087  func (s *GoogleCloudSaasacceleratorManagementProvidersV1Instance) MarshalJSON() ([]byte, error) {
  1088  	type NoMethod GoogleCloudSaasacceleratorManagementProvidersV1Instance
  1089  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1090  }
  1091  
  1092  // GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule:
  1093  // Maintenance schedule which is exposed to customer and potentially end user,
  1094  // indicating published upcoming future maintenance schedule
  1095  type GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule struct {
  1096  	// CanReschedule: This field is deprecated, and will be always set to true
  1097  	// since reschedule can happen multiple times now. This field should not be
  1098  	// removed until all service producers remove this for their customers.
  1099  	CanReschedule bool `json:"canReschedule,omitempty"`
  1100  	// EndTime: The scheduled end time for the maintenance.
  1101  	EndTime string `json:"endTime,omitempty"`
  1102  	// RolloutManagementPolicy: The rollout management policy this maintenance
  1103  	// schedule is associated with. When doing reschedule update request, the
  1104  	// reschedule should be against this given policy.
  1105  	RolloutManagementPolicy string `json:"rolloutManagementPolicy,omitempty"`
  1106  	// ScheduleDeadlineTime: schedule_deadline_time is the time deadline any
  1107  	// schedule start time cannot go beyond, including reschedule. It's normally
  1108  	// the initial schedule start time plus maintenance window length (1 day or 1
  1109  	// week). Maintenance cannot be scheduled to start beyond this deadline.
  1110  	ScheduleDeadlineTime string `json:"scheduleDeadlineTime,omitempty"`
  1111  	// StartTime: The scheduled start time for the maintenance.
  1112  	StartTime string `json:"startTime,omitempty"`
  1113  	// ForceSendFields is a list of field names (e.g. "CanReschedule") to
  1114  	// unconditionally include in API requests. By default, fields with empty or
  1115  	// default values are omitted from API requests. See
  1116  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1117  	// details.
  1118  	ForceSendFields []string `json:"-"`
  1119  	// NullFields is a list of field names (e.g. "CanReschedule") to include in API
  1120  	// requests with the JSON null value. By default, fields with empty values are
  1121  	// omitted from API requests. See
  1122  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1123  	NullFields []string `json:"-"`
  1124  }
  1125  
  1126  func (s *GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule) MarshalJSON() ([]byte, error) {
  1127  	type NoMethod GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
  1128  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1129  }
  1130  
  1131  // GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings:
  1132  // Maintenance settings associated with instance. Allows service producers and
  1133  // end users to assign settings that controls maintenance on this instance.
  1134  type GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings struct {
  1135  	// Exclude: Optional. Exclude instance from maintenance. When true, rollout
  1136  	// service will not attempt maintenance on the instance. Rollout service will
  1137  	// include the instance in reported rollout progress as not attempted.
  1138  	Exclude bool `json:"exclude,omitempty"`
  1139  	// IsRollback: Optional. If the update call is triggered from rollback, set the
  1140  	// value as true.
  1141  	IsRollback bool `json:"isRollback,omitempty"`
  1142  	// MaintenancePolicies: Optional. The MaintenancePolicies that have been
  1143  	// attached to the instance. The key must be of the type name of the oneof
  1144  	// policy name defined in MaintenancePolicy, and the embedded policy must
  1145  	// define the same policy type. For details, please refer to go/mr-user-guide.
  1146  	// Should not be set if maintenance_policy_names is set. If only the name is
  1147  	// needed, then only populate MaintenancePolicy.name.
  1148  	MaintenancePolicies map[string]MaintenancePolicy `json:"maintenancePolicies,omitempty"`
  1149  	// ForceSendFields is a list of field names (e.g. "Exclude") to unconditionally
  1150  	// include in API requests. By default, fields with empty or default values are
  1151  	// omitted from API requests. See
  1152  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1153  	// details.
  1154  	ForceSendFields []string `json:"-"`
  1155  	// NullFields is a list of field names (e.g. "Exclude") to include in API
  1156  	// requests with the JSON null value. By default, fields with empty values are
  1157  	// omitted from API requests. See
  1158  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1159  	NullFields []string `json:"-"`
  1160  }
  1161  
  1162  func (s *GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings) MarshalJSON() ([]byte, error) {
  1163  	type NoMethod GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings
  1164  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1165  }
  1166  
  1167  // GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata: Node
  1168  // information for custom per-node SLO implementations. SSA does not support
  1169  // per-node SLO, but producers can populate per-node information in SloMetadata
  1170  // for custom precomputations. SSA Eligibility Exporter will emit per-node
  1171  // metric based on this information.
  1172  type GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata struct {
  1173  	// Location: The location of the node, if different from instance location.
  1174  	Location string `json:"location,omitempty"`
  1175  	// NodeId: The id of the node. This should be equal to
  1176  	// SaasInstanceNode.node_id.
  1177  	NodeId string `json:"nodeId,omitempty"`
  1178  	// PerSliEligibility: If present, this will override eligibility for the node
  1179  	// coming from instance or exclusions for specified SLIs.
  1180  	PerSliEligibility *GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility `json:"perSliEligibility,omitempty"`
  1181  	// ForceSendFields is a list of field names (e.g. "Location") to
  1182  	// unconditionally include in API requests. By default, fields with empty or
  1183  	// default values are omitted from API requests. See
  1184  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1185  	// details.
  1186  	ForceSendFields []string `json:"-"`
  1187  	// NullFields is a list of field names (e.g. "Location") to include in API
  1188  	// requests with the JSON null value. By default, fields with empty values are
  1189  	// omitted from API requests. See
  1190  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1191  	NullFields []string `json:"-"`
  1192  }
  1193  
  1194  func (s *GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata) MarshalJSON() ([]byte, error) {
  1195  	type NoMethod GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
  1196  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1197  }
  1198  
  1199  // GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter:
  1200  // Contains notification related data.
  1201  type GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter struct {
  1202  	// Values: Optional. Array of string values. e.g. instance's replica
  1203  	// information.
  1204  	Values []string `json:"values,omitempty"`
  1205  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  1206  	// include in API requests. By default, fields with empty or default values are
  1207  	// omitted from API requests. See
  1208  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1209  	// details.
  1210  	ForceSendFields []string `json:"-"`
  1211  	// NullFields is a list of field names (e.g. "Values") to include in API
  1212  	// requests with the JSON null value. By default, fields with empty values are
  1213  	// omitted from API requests. See
  1214  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1215  	NullFields []string `json:"-"`
  1216  }
  1217  
  1218  func (s *GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter) MarshalJSON() ([]byte, error) {
  1219  	type NoMethod GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
  1220  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1221  }
  1222  
  1223  // GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility:
  1224  // PerSliSloEligibility is a mapping from an SLI name to eligibility.
  1225  type GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility struct {
  1226  	// Eligibilities: An entry in the eligibilities map specifies an eligibility
  1227  	// for a particular SLI for the given instance. The SLI key in the name must be
  1228  	// a valid SLI name specified in the Eligibility Exporter binary flags
  1229  	// otherwise an error will be emitted by Eligibility Exporter and the oncaller
  1230  	// will be alerted. If an SLI has been defined in the binary flags but the
  1231  	// eligibilities map does not contain it, the corresponding SLI time series
  1232  	// will not be emitted by the Eligibility Exporter. This ensures a smooth
  1233  	// rollout and compatibility between the data produced by different versions of
  1234  	// the Eligibility Exporters. If eligibilities map contains a key for an SLI
  1235  	// which has not been declared in the binary flags, there will be an error
  1236  	// message emitted in the Eligibility Exporter log and the metric for the SLI
  1237  	// in question will not be emitted.
  1238  	Eligibilities map[string]GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility `json:"eligibilities,omitempty"`
  1239  	// ForceSendFields is a list of field names (e.g. "Eligibilities") to
  1240  	// unconditionally include in API requests. By default, fields with empty or
  1241  	// default values are omitted from API requests. See
  1242  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1243  	// details.
  1244  	ForceSendFields []string `json:"-"`
  1245  	// NullFields is a list of field names (e.g. "Eligibilities") to include in API
  1246  	// requests with the JSON null value. By default, fields with empty values are
  1247  	// omitted from API requests. See
  1248  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1249  	NullFields []string `json:"-"`
  1250  }
  1251  
  1252  func (s *GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility) MarshalJSON() ([]byte, error) {
  1253  	type NoMethod GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
  1254  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1255  }
  1256  
  1257  // GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource:
  1258  // Describes provisioned dataplane resources.
  1259  type GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource struct {
  1260  	// ResourceType: Type of the resource. This can be either a GCP resource or a
  1261  	// custom one (e.g. another cloud provider's VM). For GCP compute resources use
  1262  	// singular form of the names listed in GCP compute API documentation
  1263  	// (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed with
  1264  	// 'compute-', for example: 'compute-instance', 'compute-disk',
  1265  	// 'compute-autoscaler'.
  1266  	ResourceType string `json:"resourceType,omitempty"`
  1267  	// ResourceUrl: URL identifying the resource, e.g.
  1268  	// "https://www.googleapis.com/compute/v1/projects/...)".
  1269  	ResourceUrl string `json:"resourceUrl,omitempty"`
  1270  	// ForceSendFields is a list of field names (e.g. "ResourceType") to
  1271  	// unconditionally include in API requests. By default, fields with empty or
  1272  	// default values are omitted from API requests. See
  1273  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1274  	// details.
  1275  	ForceSendFields []string `json:"-"`
  1276  	// NullFields is a list of field names (e.g. "ResourceType") to include in API
  1277  	// requests with the JSON null value. By default, fields with empty values are
  1278  	// omitted from API requests. See
  1279  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1280  	NullFields []string `json:"-"`
  1281  }
  1282  
  1283  func (s *GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource) MarshalJSON() ([]byte, error) {
  1284  	type NoMethod GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource
  1285  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1286  }
  1287  
  1288  // GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility:
  1289  // SloEligibility is a tuple containing eligibility value: true if an instance
  1290  // is eligible for SLO calculation or false if it should be excluded from all
  1291  // SLO-related calculations along with a user-defined reason.
  1292  type GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility struct {
  1293  	// Eligible: Whether an instance is eligible or ineligible.
  1294  	Eligible bool `json:"eligible,omitempty"`
  1295  	// Reason: User-defined reason for the current value of instance eligibility.
  1296  	// Usually, this can be directly mapped to the internal state. An empty reason
  1297  	// is allowed.
  1298  	Reason string `json:"reason,omitempty"`
  1299  	// ForceSendFields is a list of field names (e.g. "Eligible") to
  1300  	// unconditionally include in API requests. By default, fields with empty or
  1301  	// default values are omitted from API requests. See
  1302  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1303  	// details.
  1304  	ForceSendFields []string `json:"-"`
  1305  	// NullFields is a list of field names (e.g. "Eligible") to include in API
  1306  	// requests with the JSON null value. By default, fields with empty values are
  1307  	// omitted from API requests. See
  1308  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1309  	NullFields []string `json:"-"`
  1310  }
  1311  
  1312  func (s *GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility) MarshalJSON() ([]byte, error) {
  1313  	type NoMethod GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
  1314  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1315  }
  1316  
  1317  // GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata: SloMetadata
  1318  // contains resources required for proper SLO classification of the instance.
  1319  type GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata struct {
  1320  	// Nodes: Optional. List of nodes. Some producers need to use per-node metadata
  1321  	// to calculate SLO. This field allows such producers to publish per-node SLO
  1322  	// meta data, which will be consumed by SSA Eligibility Exporter and published
  1323  	// in the form of per node metric to Monarch.
  1324  	Nodes []*GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata `json:"nodes,omitempty"`
  1325  	// PerSliEligibility: Optional. Multiple per-instance SLI eligibilities which
  1326  	// apply for individual SLIs.
  1327  	PerSliEligibility *GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility `json:"perSliEligibility,omitempty"`
  1328  	// Tier: Name of the SLO tier the Instance belongs to. This name will be
  1329  	// expected to match the tiers specified in the service SLO configuration.
  1330  	// Field is mandatory and must not be empty.
  1331  	Tier string `json:"tier,omitempty"`
  1332  	// ForceSendFields is a list of field names (e.g. "Nodes") to unconditionally
  1333  	// include in API requests. By default, fields with empty or default values are
  1334  	// omitted from API requests. See
  1335  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1336  	// details.
  1337  	ForceSendFields []string `json:"-"`
  1338  	// NullFields is a list of field names (e.g. "Nodes") to include in API
  1339  	// requests with the JSON null value. By default, fields with empty values are
  1340  	// omitted from API requests. See
  1341  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1342  	NullFields []string `json:"-"`
  1343  }
  1344  
  1345  func (s *GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata) MarshalJSON() ([]byte, error) {
  1346  	type NoMethod GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
  1347  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1348  }
  1349  
  1350  // LDAPSSettings: LDAPSSettings represents the ldaps settings for domain
  1351  // resource. LDAP is the Lightweight Directory Access Protocol, defined in
  1352  // https://tools.ietf.org/html/rfc4511. The settings object configures LDAP
  1353  // over SSL/TLS, whether it is over port 636 or the StartTLS operation. If
  1354  // LDAPSSettings is being changed, it will be placed into the UPDATING state,
  1355  // which indicates that the resource is being reconciled. At this point, Get
  1356  // will reflect an intermediate state.
  1357  type LDAPSSettings struct {
  1358  	// Certificate: Output only. The certificate used to configure LDAPS.
  1359  	// Certificates can be chained with a maximum length of 15.
  1360  	Certificate *Certificate `json:"certificate,omitempty"`
  1361  	// CertificatePassword: Input only. The password used to encrypt the uploaded
  1362  	// PFX certificate.
  1363  	CertificatePassword string `json:"certificatePassword,omitempty"`
  1364  	// CertificatePfx: Input only. The uploaded PKCS12-formatted certificate to
  1365  	// configure LDAPS with. It will enable the domain controllers in this domain
  1366  	// to accept LDAPS connections (either LDAP over SSL/TLS or the StartTLS
  1367  	// operation). A valid certificate chain must form a valid x.509 certificate
  1368  	// chain (or be comprised of a single self-signed certificate. It must be
  1369  	// encrypted with either: 1) PBES2 + PBKDF2 + AES256 encryption and SHA256 PRF;
  1370  	// or 2) pbeWithSHA1And3-KeyTripleDES-CBC Private key must be included for the
  1371  	// leaf / single self-signed certificate. Note: For a fqdn
  1372  	// your-example-domain.com, the wildcard fqdn is *.your-example-domain.com.
  1373  	// Specifically the leaf certificate must have: - Either a blank subject or a
  1374  	// subject with CN matching the wildcard fqdn. - Exactly two SANs - the fqdn
  1375  	// and wildcard fqdn. - Encipherment and digital key signature key usages. -
  1376  	// Server authentication extended key usage (OID=1.3.6.1.5.5.7.3.1) - Private
  1377  	// key must be in one of the following formats: RSA, ECDSA, ED25519. - Private
  1378  	// key must have appropriate key length: 2048 for RSA, 256 for ECDSA -
  1379  	// Signature algorithm of the leaf certificate cannot be MD2, MD5 or SHA1.
  1380  	CertificatePfx string `json:"certificatePfx,omitempty"`
  1381  	// Name: The resource name of the LDAPS settings. Uses the form:
  1382  	// `projects/{project}/locations/{location}/domains/{domain}`.
  1383  	Name string `json:"name,omitempty"`
  1384  	// State: Output only. The current state of this LDAPS settings.
  1385  	//
  1386  	// Possible values:
  1387  	//   "STATE_UNSPECIFIED" - Not Set
  1388  	//   "UPDATING" - The LDAPS setting is being updated.
  1389  	//   "ACTIVE" - The LDAPS setting is ready.
  1390  	//   "FAILED" - The LDAPS setting is not applied correctly.
  1391  	State string `json:"state,omitempty"`
  1392  	// UpdateTime: Output only. Last update time.
  1393  	UpdateTime string `json:"updateTime,omitempty"`
  1394  
  1395  	// ServerResponse contains the HTTP response code and headers from the server.
  1396  	googleapi.ServerResponse `json:"-"`
  1397  	// ForceSendFields is a list of field names (e.g. "Certificate") to
  1398  	// unconditionally include in API requests. By default, fields with empty or
  1399  	// default values are omitted from API requests. See
  1400  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1401  	// details.
  1402  	ForceSendFields []string `json:"-"`
  1403  	// NullFields is a list of field names (e.g. "Certificate") to include in API
  1404  	// requests with the JSON null value. By default, fields with empty values are
  1405  	// omitted from API requests. See
  1406  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1407  	NullFields []string `json:"-"`
  1408  }
  1409  
  1410  func (s *LDAPSSettings) MarshalJSON() ([]byte, error) {
  1411  	type NoMethod LDAPSSettings
  1412  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1413  }
  1414  
  1415  // ListBackupsResponse: ListBackupsResponse is the response message for
  1416  // ListBackups method.
  1417  type ListBackupsResponse struct {
  1418  	// Backups: A list of Cloud AD backups in the domain.
  1419  	Backups []*Backup `json:"backups,omitempty"`
  1420  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  1421  	// are no more results in the list.
  1422  	NextPageToken string `json:"nextPageToken,omitempty"`
  1423  	// Unreachable: Locations that could not be reached.
  1424  	Unreachable []string `json:"unreachable,omitempty"`
  1425  
  1426  	// ServerResponse contains the HTTP response code and headers from the server.
  1427  	googleapi.ServerResponse `json:"-"`
  1428  	// ForceSendFields is a list of field names (e.g. "Backups") to unconditionally
  1429  	// include in API requests. By default, fields with empty or default values are
  1430  	// omitted from API requests. See
  1431  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1432  	// details.
  1433  	ForceSendFields []string `json:"-"`
  1434  	// NullFields is a list of field names (e.g. "Backups") to include in API
  1435  	// requests with the JSON null value. By default, fields with empty values are
  1436  	// omitted from API requests. See
  1437  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1438  	NullFields []string `json:"-"`
  1439  }
  1440  
  1441  func (s *ListBackupsResponse) MarshalJSON() ([]byte, error) {
  1442  	type NoMethod ListBackupsResponse
  1443  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1444  }
  1445  
  1446  // ListDomainsResponse: Response message for ListDomains
  1447  type ListDomainsResponse struct {
  1448  	// Domains: A list of Managed Identities Service domains in the project.
  1449  	Domains []*Domain `json:"domains,omitempty"`
  1450  	// NextPageToken: A token to retrieve the next page of results, or empty if
  1451  	// there are no more results in the list.
  1452  	NextPageToken string `json:"nextPageToken,omitempty"`
  1453  	// Unreachable: A list of locations that could not be reached.
  1454  	Unreachable []string `json:"unreachable,omitempty"`
  1455  
  1456  	// ServerResponse contains the HTTP response code and headers from the server.
  1457  	googleapi.ServerResponse `json:"-"`
  1458  	// ForceSendFields is a list of field names (e.g. "Domains") to unconditionally
  1459  	// include in API requests. By default, fields with empty or default values are
  1460  	// omitted from API requests. See
  1461  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1462  	// details.
  1463  	ForceSendFields []string `json:"-"`
  1464  	// NullFields is a list of field names (e.g. "Domains") to include in API
  1465  	// requests with the JSON null value. By default, fields with empty values are
  1466  	// omitted from API requests. See
  1467  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1468  	NullFields []string `json:"-"`
  1469  }
  1470  
  1471  func (s *ListDomainsResponse) MarshalJSON() ([]byte, error) {
  1472  	type NoMethod ListDomainsResponse
  1473  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1474  }
  1475  
  1476  // ListLocationsResponse: The response message for Locations.ListLocations.
  1477  type ListLocationsResponse struct {
  1478  	// Locations: A list of locations that matches the specified filter in the
  1479  	// request.
  1480  	Locations []*Location `json:"locations,omitempty"`
  1481  	// NextPageToken: The standard List next-page token.
  1482  	NextPageToken string `json:"nextPageToken,omitempty"`
  1483  
  1484  	// ServerResponse contains the HTTP response code and headers from the server.
  1485  	googleapi.ServerResponse `json:"-"`
  1486  	// ForceSendFields is a list of field names (e.g. "Locations") to
  1487  	// unconditionally include in API requests. By default, fields with empty or
  1488  	// default values are omitted from API requests. See
  1489  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1490  	// details.
  1491  	ForceSendFields []string `json:"-"`
  1492  	// NullFields is a list of field names (e.g. "Locations") to include in API
  1493  	// requests with the JSON null value. By default, fields with empty values are
  1494  	// omitted from API requests. See
  1495  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1496  	NullFields []string `json:"-"`
  1497  }
  1498  
  1499  func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
  1500  	type NoMethod ListLocationsResponse
  1501  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1502  }
  1503  
  1504  // ListOperationsResponse: The response message for Operations.ListOperations.
  1505  type ListOperationsResponse struct {
  1506  	// NextPageToken: The standard List next-page token.
  1507  	NextPageToken string `json:"nextPageToken,omitempty"`
  1508  	// Operations: A list of operations that matches the specified filter in the
  1509  	// request.
  1510  	Operations []*Operation `json:"operations,omitempty"`
  1511  
  1512  	// ServerResponse contains the HTTP response code and headers from the server.
  1513  	googleapi.ServerResponse `json:"-"`
  1514  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1515  	// unconditionally include in API requests. By default, fields with empty or
  1516  	// default values are omitted from API requests. See
  1517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1518  	// details.
  1519  	ForceSendFields []string `json:"-"`
  1520  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1521  	// requests with the JSON null value. By default, fields with empty values are
  1522  	// omitted from API requests. See
  1523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1524  	NullFields []string `json:"-"`
  1525  }
  1526  
  1527  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
  1528  	type NoMethod ListOperationsResponse
  1529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1530  }
  1531  
  1532  // ListPeeringsResponse: ListPeeringsResponse is the response message for
  1533  // ListPeerings method.
  1534  type ListPeeringsResponse struct {
  1535  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  1536  	// are no more results in the list.
  1537  	NextPageToken string `json:"nextPageToken,omitempty"`
  1538  	// Peerings: A list of Managed Identities Service Peerings in the project.
  1539  	Peerings []*Peering `json:"peerings,omitempty"`
  1540  	// Unreachable: Locations that could not be reached.
  1541  	Unreachable []string `json:"unreachable,omitempty"`
  1542  
  1543  	// ServerResponse contains the HTTP response code and headers from the server.
  1544  	googleapi.ServerResponse `json:"-"`
  1545  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1546  	// unconditionally include in API requests. By default, fields with empty or
  1547  	// default values are omitted from API requests. See
  1548  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1549  	// details.
  1550  	ForceSendFields []string `json:"-"`
  1551  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1552  	// requests with the JSON null value. By default, fields with empty values are
  1553  	// omitted from API requests. See
  1554  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1555  	NullFields []string `json:"-"`
  1556  }
  1557  
  1558  func (s *ListPeeringsResponse) MarshalJSON() ([]byte, error) {
  1559  	type NoMethod ListPeeringsResponse
  1560  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1561  }
  1562  
  1563  // ListSqlIntegrationsResponse: ListSqlIntegrationsResponse is the response
  1564  // message for ListSqlIntegrations method.
  1565  type ListSqlIntegrationsResponse struct {
  1566  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  1567  	// are no more results in the list.
  1568  	NextPageToken string `json:"nextPageToken,omitempty"`
  1569  	// SqlIntegrations: A list of SQLIntegrations of a domain.
  1570  	SqlIntegrations []*SqlIntegration `json:"sqlIntegrations,omitempty"`
  1571  	// Unreachable: A list of locations that could not be reached.
  1572  	Unreachable []string `json:"unreachable,omitempty"`
  1573  
  1574  	// ServerResponse contains the HTTP response code and headers from the server.
  1575  	googleapi.ServerResponse `json:"-"`
  1576  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1577  	// unconditionally include in API requests. By default, fields with empty or
  1578  	// default values are omitted from API requests. See
  1579  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1580  	// details.
  1581  	ForceSendFields []string `json:"-"`
  1582  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1583  	// requests with the JSON null value. By default, fields with empty values are
  1584  	// omitted from API requests. See
  1585  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1586  	NullFields []string `json:"-"`
  1587  }
  1588  
  1589  func (s *ListSqlIntegrationsResponse) MarshalJSON() ([]byte, error) {
  1590  	type NoMethod ListSqlIntegrationsResponse
  1591  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1592  }
  1593  
  1594  // Location: A resource that represents a Google Cloud location.
  1595  type Location struct {
  1596  	// DisplayName: The friendly name for this location, typically a nearby city
  1597  	// name. For example, "Tokyo".
  1598  	DisplayName string `json:"displayName,omitempty"`
  1599  	// Labels: Cross-service attributes for the location. For example
  1600  	// {"cloud.googleapis.com/region": "us-east1"}
  1601  	Labels map[string]string `json:"labels,omitempty"`
  1602  	// LocationId: The canonical id for this location. For example: "us-east1".
  1603  	LocationId string `json:"locationId,omitempty"`
  1604  	// Metadata: Service-specific metadata. For example the available capacity at
  1605  	// the given location.
  1606  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  1607  	// Name: Resource name for the location, which may vary between
  1608  	// implementations. For example:
  1609  	// "projects/example-project/locations/us-east1"
  1610  	Name string `json:"name,omitempty"`
  1611  
  1612  	// ServerResponse contains the HTTP response code and headers from the server.
  1613  	googleapi.ServerResponse `json:"-"`
  1614  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  1615  	// unconditionally include in API requests. By default, fields with empty or
  1616  	// default values are omitted from API requests. See
  1617  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1618  	// details.
  1619  	ForceSendFields []string `json:"-"`
  1620  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  1621  	// requests with the JSON null value. By default, fields with empty values are
  1622  	// omitted from API requests. See
  1623  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1624  	NullFields []string `json:"-"`
  1625  }
  1626  
  1627  func (s *Location) MarshalJSON() ([]byte, error) {
  1628  	type NoMethod Location
  1629  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1630  }
  1631  
  1632  // MaintenancePolicy: LINT.IfChange Defines policies to service maintenance
  1633  // events.
  1634  type MaintenancePolicy struct {
  1635  	// CreateTime: Output only. The time when the resource was created.
  1636  	CreateTime string `json:"createTime,omitempty"`
  1637  	// Description: Optional. Description of what this policy is for. Create/Update
  1638  	// methods return INVALID_ARGUMENT if the length is greater than 512.
  1639  	Description string `json:"description,omitempty"`
  1640  	// Labels: Optional. Resource labels to represent user provided metadata. Each
  1641  	// label is a key-value pair, where both the key and the value are arbitrary
  1642  	// strings provided by the user.
  1643  	Labels map[string]string `json:"labels,omitempty"`
  1644  	// Name: Required. MaintenancePolicy name using the form:
  1645  	// `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenan
  1646  	// ce_policy_id}` where {project_id} refers to a GCP consumer project ID,
  1647  	// {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be
  1648  	// 1-63 characters long and match the regular expression
  1649  	// `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.
  1650  	Name string `json:"name,omitempty"`
  1651  	// State: Optional. The state of the policy.
  1652  	//
  1653  	// Possible values:
  1654  	//   "STATE_UNSPECIFIED" - Unspecified state.
  1655  	//   "READY" - Resource is ready to be used.
  1656  	//   "DELETING" - Resource is being deleted. It can no longer be attached to
  1657  	// instances.
  1658  	State string `json:"state,omitempty"`
  1659  	// UpdatePolicy: Maintenance policy applicable to instance update.
  1660  	UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"`
  1661  	// UpdateTime: Output only. The time when the resource was updated.
  1662  	UpdateTime string `json:"updateTime,omitempty"`
  1663  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1664  	// unconditionally include in API requests. By default, fields with empty or
  1665  	// default values are omitted from API requests. See
  1666  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1667  	// details.
  1668  	ForceSendFields []string `json:"-"`
  1669  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1670  	// requests with the JSON null value. By default, fields with empty values are
  1671  	// omitted from API requests. See
  1672  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1673  	NullFields []string `json:"-"`
  1674  }
  1675  
  1676  func (s *MaintenancePolicy) MarshalJSON() ([]byte, error) {
  1677  	type NoMethod MaintenancePolicy
  1678  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1679  }
  1680  
  1681  // MaintenanceWindow: MaintenanceWindow definition.
  1682  type MaintenanceWindow struct {
  1683  	// DailyCycle: Daily cycle.
  1684  	DailyCycle *DailyCycle `json:"dailyCycle,omitempty"`
  1685  	// WeeklyCycle: Weekly cycle.
  1686  	WeeklyCycle *WeeklyCycle `json:"weeklyCycle,omitempty"`
  1687  	// ForceSendFields is a list of field names (e.g. "DailyCycle") to
  1688  	// unconditionally include in API requests. By default, fields with empty or
  1689  	// default values are omitted from API requests. See
  1690  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1691  	// details.
  1692  	ForceSendFields []string `json:"-"`
  1693  	// NullFields is a list of field names (e.g. "DailyCycle") to include in API
  1694  	// requests with the JSON null value. By default, fields with empty values are
  1695  	// omitted from API requests. See
  1696  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1697  	NullFields []string `json:"-"`
  1698  }
  1699  
  1700  func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) {
  1701  	type NoMethod MaintenanceWindow
  1702  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1703  }
  1704  
  1705  // OnPremDomainDetails: OnPremDomainDetails is the message which contains
  1706  // details of on-prem domain which is trusted and needs to be migrated.
  1707  type OnPremDomainDetails struct {
  1708  	// DisableSidFiltering: Optional. Option to disable SID filtering.
  1709  	DisableSidFiltering bool `json:"disableSidFiltering,omitempty"`
  1710  	// DomainName: Required. FQDN of the on-prem domain being migrated.
  1711  	DomainName string `json:"domainName,omitempty"`
  1712  	// ForceSendFields is a list of field names (e.g. "DisableSidFiltering") to
  1713  	// unconditionally include in API requests. By default, fields with empty or
  1714  	// default values are omitted from API requests. See
  1715  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1716  	// details.
  1717  	ForceSendFields []string `json:"-"`
  1718  	// NullFields is a list of field names (e.g. "DisableSidFiltering") to include
  1719  	// in API requests with the JSON null value. By default, fields with empty
  1720  	// values are omitted from API requests. See
  1721  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1722  	NullFields []string `json:"-"`
  1723  }
  1724  
  1725  func (s *OnPremDomainDetails) MarshalJSON() ([]byte, error) {
  1726  	type NoMethod OnPremDomainDetails
  1727  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1728  }
  1729  
  1730  // OnPremDomainSIDDetails: OnPremDomainDetails is the message which contains
  1731  // details of on-prem domain which is trusted and needs to be migrated.
  1732  type OnPremDomainSIDDetails struct {
  1733  	// Name: FQDN of the on-prem domain being migrated.
  1734  	Name string `json:"name,omitempty"`
  1735  	// SidFilteringState: Current SID filtering state.
  1736  	//
  1737  	// Possible values:
  1738  	//   "SID_FILTERING_STATE_UNSPECIFIED" - SID Filtering is in unspecified state.
  1739  	//   "ENABLED" - SID Filtering is Enabled.
  1740  	//   "DISABLED" - SID Filtering is Disabled.
  1741  	SidFilteringState string `json:"sidFilteringState,omitempty"`
  1742  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1743  	// include in API requests. By default, fields with empty or default values are
  1744  	// omitted from API requests. See
  1745  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1746  	// details.
  1747  	ForceSendFields []string `json:"-"`
  1748  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1749  	// with the JSON null value. By default, fields with empty values are omitted
  1750  	// from API requests. See
  1751  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1752  	NullFields []string `json:"-"`
  1753  }
  1754  
  1755  func (s *OnPremDomainSIDDetails) MarshalJSON() ([]byte, error) {
  1756  	type NoMethod OnPremDomainSIDDetails
  1757  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1758  }
  1759  
  1760  // Operation: This resource represents a long-running operation that is the
  1761  // result of a network API call.
  1762  type Operation struct {
  1763  	// Done: If the value is `false`, it means the operation is still in progress.
  1764  	// If `true`, the operation is completed, and either `error` or `response` is
  1765  	// available.
  1766  	Done bool `json:"done,omitempty"`
  1767  	// Error: The error result of the operation in case of failure or cancellation.
  1768  	Error *Status `json:"error,omitempty"`
  1769  	// Metadata: Service-specific metadata associated with the operation. It
  1770  	// typically contains progress information and common metadata such as create
  1771  	// time. Some services might not provide such metadata. Any method that returns
  1772  	// a long-running operation should document the metadata type, if any.
  1773  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  1774  	// Name: The server-assigned name, which is only unique within the same service
  1775  	// that originally returns it. If you use the default HTTP mapping, the `name`
  1776  	// should be a resource name ending with `operations/{unique_id}`.
  1777  	Name string `json:"name,omitempty"`
  1778  	// Response: The normal, successful response of the operation. If the original
  1779  	// method returns no data on success, such as `Delete`, the response is
  1780  	// `google.protobuf.Empty`. If the original method is standard
  1781  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  1782  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  1783  	// original method name. For example, if the original method name is
  1784  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  1785  	Response googleapi.RawMessage `json:"response,omitempty"`
  1786  
  1787  	// ServerResponse contains the HTTP response code and headers from the server.
  1788  	googleapi.ServerResponse `json:"-"`
  1789  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  1790  	// include in API requests. By default, fields with empty or default values are
  1791  	// omitted from API requests. See
  1792  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1793  	// details.
  1794  	ForceSendFields []string `json:"-"`
  1795  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  1796  	// with the JSON null value. By default, fields with empty values are omitted
  1797  	// from API requests. See
  1798  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1799  	NullFields []string `json:"-"`
  1800  }
  1801  
  1802  func (s *Operation) MarshalJSON() ([]byte, error) {
  1803  	type NoMethod Operation
  1804  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1805  }
  1806  
  1807  // OperationMetadata: Represents the metadata of the long-running operation.
  1808  type OperationMetadata struct {
  1809  	// ApiVersion: Output only. API version used to start the operation.
  1810  	ApiVersion string `json:"apiVersion,omitempty"`
  1811  	// CancelRequested: Output only. Identifies whether the user has requested
  1812  	// cancellation of the operation. Operations that have been cancelled
  1813  	// successfully have Operation.error value with a google.rpc.Status.code of 1,
  1814  	// corresponding to `Code.CANCELLED`.
  1815  	CancelRequested bool `json:"cancelRequested,omitempty"`
  1816  	// CreateTime: Output only. The time the operation was created.
  1817  	CreateTime string `json:"createTime,omitempty"`
  1818  	// EndTime: Output only. The time the operation finished running.
  1819  	EndTime string `json:"endTime,omitempty"`
  1820  	// StatusDetail: Output only. Human-readable status of the operation, if any.
  1821  	StatusDetail string `json:"statusDetail,omitempty"`
  1822  	// Target: Output only. Server-defined resource path for the target of the
  1823  	// operation.
  1824  	Target string `json:"target,omitempty"`
  1825  	// Verb: Output only. Name of the verb executed by the operation.
  1826  	Verb string `json:"verb,omitempty"`
  1827  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  1828  	// unconditionally include in API requests. By default, fields with empty or
  1829  	// default values are omitted from API requests. See
  1830  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1831  	// details.
  1832  	ForceSendFields []string `json:"-"`
  1833  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  1834  	// requests with the JSON null value. By default, fields with empty values are
  1835  	// omitted from API requests. See
  1836  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1837  	NullFields []string `json:"-"`
  1838  }
  1839  
  1840  func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
  1841  	type NoMethod OperationMetadata
  1842  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1843  }
  1844  
  1845  // Peering: Represents a Managed Service for Microsoft Active Directory
  1846  // Peering.
  1847  type Peering struct {
  1848  	// AuthorizedNetwork: Required. The full names of the Google Compute Engine
  1849  	// networks (/compute/docs/networks-and-firewalls#networks) to which the
  1850  	// instance is connected. Caller needs to make sure that CIDR subnets do not
  1851  	// overlap between networks, else peering creation will fail.
  1852  	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
  1853  	// CreateTime: Output only. The time the instance was created.
  1854  	CreateTime string `json:"createTime,omitempty"`
  1855  	// DomainResource: Required. Full domain resource path for the Managed AD
  1856  	// Domain involved in peering. The resource path should be in the form:
  1857  	// `projects/{project_id}/locations/global/domains/{domain_name}`
  1858  	DomainResource string `json:"domainResource,omitempty"`
  1859  	// Labels: Optional. Resource labels to represent user-provided metadata.
  1860  	Labels map[string]string `json:"labels,omitempty"`
  1861  	// Name: Output only. Unique name of the peering in this scope including
  1862  	// projects and location using the form:
  1863  	// `projects/{project_id}/locations/global/peerings/{peering_id}`.
  1864  	Name string `json:"name,omitempty"`
  1865  	// State: Output only. The current state of this Peering.
  1866  	//
  1867  	// Possible values:
  1868  	//   "STATE_UNSPECIFIED" - Not set.
  1869  	//   "CREATING" - Peering is being created.
  1870  	//   "CONNECTED" - Peering is connected.
  1871  	//   "DISCONNECTED" - Peering is disconnected.
  1872  	//   "DELETING" - Peering is being deleted.
  1873  	State string `json:"state,omitempty"`
  1874  	// StatusMessage: Output only. Additional information about the current status
  1875  	// of this peering, if available.
  1876  	StatusMessage string `json:"statusMessage,omitempty"`
  1877  	// UpdateTime: Output only. Last update time.
  1878  	UpdateTime string `json:"updateTime,omitempty"`
  1879  
  1880  	// ServerResponse contains the HTTP response code and headers from the server.
  1881  	googleapi.ServerResponse `json:"-"`
  1882  	// ForceSendFields is a list of field names (e.g. "AuthorizedNetwork") to
  1883  	// unconditionally include in API requests. By default, fields with empty or
  1884  	// default values are omitted from API requests. See
  1885  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1886  	// details.
  1887  	ForceSendFields []string `json:"-"`
  1888  	// NullFields is a list of field names (e.g. "AuthorizedNetwork") to include in
  1889  	// API requests with the JSON null value. By default, fields with empty values
  1890  	// are omitted from API requests. See
  1891  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1892  	NullFields []string `json:"-"`
  1893  }
  1894  
  1895  func (s *Peering) MarshalJSON() ([]byte, error) {
  1896  	type NoMethod Peering
  1897  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1898  }
  1899  
  1900  // Policy: An Identity and Access Management (IAM) policy, which specifies
  1901  // access controls for Google Cloud resources. A `Policy` is a collection of
  1902  // `bindings`. A `binding` binds one or more `members`, or principals, to a
  1903  // single `role`. Principals can be user accounts, service accounts, Google
  1904  // groups, and domains (such as G Suite). A `role` is a named list of
  1905  // permissions; each `role` can be an IAM predefined role or a user-created
  1906  // custom role. For some types of Google Cloud resources, a `binding` can also
  1907  // specify a `condition`, which is a logical expression that allows access to a
  1908  // resource only if the expression evaluates to `true`. A condition can add
  1909  // constraints based on attributes of the request, the resource, or both. To
  1910  // learn which resources support conditions in their IAM policies, see the IAM
  1911  // documentation
  1912  // (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON
  1913  // example:** ``` { "bindings": [ { "role":
  1914  // "roles/resourcemanager.organizationAdmin", "members": [
  1915  // "user:mike@example.com", "group:admins@example.com", "domain:google.com",
  1916  // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":
  1917  // "roles/resourcemanager.organizationViewer", "members": [
  1918  // "user:eve@example.com" ], "condition": { "title": "expirable access",
  1919  // "description": "Does not grant access after Sep 2020", "expression":
  1920  // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":
  1921  // "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: -
  1922  // members: - user:mike@example.com - group:admins@example.com -
  1923  // domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
  1924  // role: roles/resourcemanager.organizationAdmin - members: -
  1925  // user:eve@example.com role: roles/resourcemanager.organizationViewer
  1926  // condition: title: expirable access description: Does not grant access after
  1927  // Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
  1928  // etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features,
  1929  // see the IAM documentation (https://cloud.google.com/iam/docs/).
  1930  type Policy struct {
  1931  	// Bindings: Associates a list of `members`, or principals, with a `role`.
  1932  	// Optionally, may specify a `condition` that determines how and when the
  1933  	// `bindings` are applied. Each of the `bindings` must contain at least one
  1934  	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
  1935  	// up to 250 of these principals can be Google groups. Each occurrence of a
  1936  	// principal counts towards these limits. For example, if the `bindings` grant
  1937  	// 50 different roles to `user:alice@example.com`, and not to any other
  1938  	// principal, then you can add another 1,450 principals to the `bindings` in
  1939  	// the `Policy`.
  1940  	Bindings []*Binding `json:"bindings,omitempty"`
  1941  	// Etag: `etag` is used for optimistic concurrency control as a way to help
  1942  	// prevent simultaneous updates of a policy from overwriting each other. It is
  1943  	// strongly suggested that systems make use of the `etag` in the
  1944  	// read-modify-write cycle to perform policy updates in order to avoid race
  1945  	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
  1946  	// systems are expected to put that etag in the request to `setIamPolicy` to
  1947  	// ensure that their change will be applied to the same version of the policy.
  1948  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  1949  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  1950  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  1951  	// the conditions in the version `3` policy are lost.
  1952  	Etag string `json:"etag,omitempty"`
  1953  	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
  1954  	// `3`. Requests that specify an invalid value are rejected. Any operation that
  1955  	// affects conditional role bindings must specify version `3`. This requirement
  1956  	// applies to the following operations: * Getting a policy that includes a
  1957  	// conditional role binding * Adding a conditional role binding to a policy *
  1958  	// Changing a conditional role binding in a policy * Removing any role binding,
  1959  	// with or without a condition, from a policy that includes conditions
  1960  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  1961  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  1962  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  1963  	// the conditions in the version `3` policy are lost. If a policy does not
  1964  	// include any conditions, operations on that policy may specify any valid
  1965  	// version or leave the field unset. To learn which resources support
  1966  	// conditions in their IAM policies, see the IAM documentation
  1967  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  1968  	Version int64 `json:"version,omitempty"`
  1969  
  1970  	// ServerResponse contains the HTTP response code and headers from the server.
  1971  	googleapi.ServerResponse `json:"-"`
  1972  	// ForceSendFields is a list of field names (e.g. "Bindings") to
  1973  	// unconditionally include in API requests. By default, fields with empty or
  1974  	// default values are omitted from API requests. See
  1975  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1976  	// details.
  1977  	ForceSendFields []string `json:"-"`
  1978  	// NullFields is a list of field names (e.g. "Bindings") to include in API
  1979  	// requests with the JSON null value. By default, fields with empty values are
  1980  	// omitted from API requests. See
  1981  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1982  	NullFields []string `json:"-"`
  1983  }
  1984  
  1985  func (s *Policy) MarshalJSON() ([]byte, error) {
  1986  	type NoMethod Policy
  1987  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1988  }
  1989  
  1990  // ReconfigureTrustRequest: Request message for ReconfigureTrust
  1991  type ReconfigureTrustRequest struct {
  1992  	// TargetDnsIpAddresses: Required. The target DNS server IP addresses to
  1993  	// resolve the remote domain involved in the trust.
  1994  	TargetDnsIpAddresses []string `json:"targetDnsIpAddresses,omitempty"`
  1995  	// TargetDomainName: Required. The fully-qualified target domain name which
  1996  	// will be in trust with current domain.
  1997  	TargetDomainName string `json:"targetDomainName,omitempty"`
  1998  	// ForceSendFields is a list of field names (e.g. "TargetDnsIpAddresses") to
  1999  	// unconditionally include in API requests. By default, fields with empty or
  2000  	// default values are omitted from API requests. See
  2001  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2002  	// details.
  2003  	ForceSendFields []string `json:"-"`
  2004  	// NullFields is a list of field names (e.g. "TargetDnsIpAddresses") to include
  2005  	// in API requests with the JSON null value. By default, fields with empty
  2006  	// values are omitted from API requests. See
  2007  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2008  	NullFields []string `json:"-"`
  2009  }
  2010  
  2011  func (s *ReconfigureTrustRequest) MarshalJSON() ([]byte, error) {
  2012  	type NoMethod ReconfigureTrustRequest
  2013  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2014  }
  2015  
  2016  // ResetAdminPasswordRequest: Request message for ResetAdminPassword
  2017  type ResetAdminPasswordRequest struct {
  2018  }
  2019  
  2020  // ResetAdminPasswordResponse: Response message for ResetAdminPassword
  2021  type ResetAdminPasswordResponse struct {
  2022  	// Password: A random password. See admin for more information.
  2023  	Password string `json:"password,omitempty"`
  2024  
  2025  	// ServerResponse contains the HTTP response code and headers from the server.
  2026  	googleapi.ServerResponse `json:"-"`
  2027  	// ForceSendFields is a list of field names (e.g. "Password") to
  2028  	// unconditionally include in API requests. By default, fields with empty or
  2029  	// default values are omitted from API requests. See
  2030  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2031  	// details.
  2032  	ForceSendFields []string `json:"-"`
  2033  	// NullFields is a list of field names (e.g. "Password") to include in API
  2034  	// requests with the JSON null value. By default, fields with empty values are
  2035  	// omitted from API requests. See
  2036  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2037  	NullFields []string `json:"-"`
  2038  }
  2039  
  2040  func (s *ResetAdminPasswordResponse) MarshalJSON() ([]byte, error) {
  2041  	type NoMethod ResetAdminPasswordResponse
  2042  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2043  }
  2044  
  2045  // RestoreDomainRequest: RestoreDomainRequest is the request received by
  2046  // RestoreDomain rpc
  2047  type RestoreDomainRequest struct {
  2048  	// BackupId: Required. ID of the backup to be restored
  2049  	BackupId string `json:"backupId,omitempty"`
  2050  	// ForceSendFields is a list of field names (e.g. "BackupId") to
  2051  	// unconditionally include in API requests. By default, fields with empty or
  2052  	// default values are omitted from API requests. See
  2053  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2054  	// details.
  2055  	ForceSendFields []string `json:"-"`
  2056  	// NullFields is a list of field names (e.g. "BackupId") to include in API
  2057  	// requests with the JSON null value. By default, fields with empty values are
  2058  	// omitted from API requests. See
  2059  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2060  	NullFields []string `json:"-"`
  2061  }
  2062  
  2063  func (s *RestoreDomainRequest) MarshalJSON() ([]byte, error) {
  2064  	type NoMethod RestoreDomainRequest
  2065  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2066  }
  2067  
  2068  // Schedule: Configure the schedule.
  2069  type Schedule struct {
  2070  	// Day: Allows to define schedule that runs specified day of the week.
  2071  	//
  2072  	// Possible values:
  2073  	//   "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
  2074  	//   "MONDAY" - Monday
  2075  	//   "TUESDAY" - Tuesday
  2076  	//   "WEDNESDAY" - Wednesday
  2077  	//   "THURSDAY" - Thursday
  2078  	//   "FRIDAY" - Friday
  2079  	//   "SATURDAY" - Saturday
  2080  	//   "SUNDAY" - Sunday
  2081  	Day string `json:"day,omitempty"`
  2082  	// Duration: Output only. Duration of the time window, set by service producer.
  2083  	Duration string `json:"duration,omitempty"`
  2084  	// StartTime: Time within the window to start the operations.
  2085  	StartTime *TimeOfDay `json:"startTime,omitempty"`
  2086  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  2087  	// include in API requests. By default, fields with empty or default values are
  2088  	// omitted from API requests. See
  2089  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2090  	// details.
  2091  	ForceSendFields []string `json:"-"`
  2092  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  2093  	// with the JSON null value. By default, fields with empty values are omitted
  2094  	// from API requests. See
  2095  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2096  	NullFields []string `json:"-"`
  2097  }
  2098  
  2099  func (s *Schedule) MarshalJSON() ([]byte, error) {
  2100  	type NoMethod Schedule
  2101  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2102  }
  2103  
  2104  // SetIamPolicyRequest: Request message for `SetIamPolicy` method.
  2105  type SetIamPolicyRequest struct {
  2106  	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
  2107  	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
  2108  	// policy but certain Google Cloud services (such as Projects) might reject
  2109  	// them.
  2110  	Policy *Policy `json:"policy,omitempty"`
  2111  	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
  2112  	// include in API requests. By default, fields with empty or default values are
  2113  	// omitted from API requests. See
  2114  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2115  	// details.
  2116  	ForceSendFields []string `json:"-"`
  2117  	// NullFields is a list of field names (e.g. "Policy") to include in API
  2118  	// requests with the JSON null value. By default, fields with empty values are
  2119  	// omitted from API requests. See
  2120  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2121  	NullFields []string `json:"-"`
  2122  }
  2123  
  2124  func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  2125  	type NoMethod SetIamPolicyRequest
  2126  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2127  }
  2128  
  2129  // SqlIntegration: Represents the SQL instance integrated with Managed AD.
  2130  type SqlIntegration struct {
  2131  	// CreateTime: Output only. The time the SQL integration was created.
  2132  	CreateTime string `json:"createTime,omitempty"`
  2133  	// Name: The unique name of the SQL integration in the form of
  2134  	// `projects/{project_id}/locations/global/domains/{domain_name}/sqlIntegrations
  2135  	// /{sql_integration}`
  2136  	Name string `json:"name,omitempty"`
  2137  	// SqlInstance: The full resource name of an integrated SQL instance
  2138  	SqlInstance string `json:"sqlInstance,omitempty"`
  2139  	// State: Output only. The current state of the SQL integration.
  2140  	//
  2141  	// Possible values:
  2142  	//   "STATE_UNSPECIFIED" - Not Set
  2143  	//   "CREATING" - The SQL integration is being created.
  2144  	//   "DELETING" - The SQL integration is being deleted.
  2145  	//   "READY" - The SQL integration is ready.
  2146  	State string `json:"state,omitempty"`
  2147  	// UpdateTime: Output only. The time the SQL integration was updated.
  2148  	UpdateTime string `json:"updateTime,omitempty"`
  2149  
  2150  	// ServerResponse contains the HTTP response code and headers from the server.
  2151  	googleapi.ServerResponse `json:"-"`
  2152  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2153  	// unconditionally include in API requests. By default, fields with empty or
  2154  	// default values are omitted from API requests. See
  2155  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2156  	// details.
  2157  	ForceSendFields []string `json:"-"`
  2158  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2159  	// requests with the JSON null value. By default, fields with empty values are
  2160  	// omitted from API requests. See
  2161  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2162  	NullFields []string `json:"-"`
  2163  }
  2164  
  2165  func (s *SqlIntegration) MarshalJSON() ([]byte, error) {
  2166  	type NoMethod SqlIntegration
  2167  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2168  }
  2169  
  2170  // Status: The `Status` type defines a logical error model that is suitable for
  2171  // different programming environments, including REST APIs and RPC APIs. It is
  2172  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  2173  // pieces of data: error code, error message, and error details. You can find
  2174  // out more about this error model and how to work with it in the API Design
  2175  // Guide (https://cloud.google.com/apis/design/errors).
  2176  type Status struct {
  2177  	// Code: The status code, which should be an enum value of google.rpc.Code.
  2178  	Code int64 `json:"code,omitempty"`
  2179  	// Details: A list of messages that carry the error details. There is a common
  2180  	// set of message types for APIs to use.
  2181  	Details []googleapi.RawMessage `json:"details,omitempty"`
  2182  	// Message: A developer-facing error message, which should be in English. Any
  2183  	// user-facing error message should be localized and sent in the
  2184  	// google.rpc.Status.details field, or localized by the client.
  2185  	Message string `json:"message,omitempty"`
  2186  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  2187  	// include in API requests. By default, fields with empty or default values are
  2188  	// omitted from API requests. See
  2189  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2190  	// details.
  2191  	ForceSendFields []string `json:"-"`
  2192  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  2193  	// with the JSON null value. By default, fields with empty values are omitted
  2194  	// from API requests. See
  2195  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2196  	NullFields []string `json:"-"`
  2197  }
  2198  
  2199  func (s *Status) MarshalJSON() ([]byte, error) {
  2200  	type NoMethod Status
  2201  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2202  }
  2203  
  2204  // TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
  2205  type TestIamPermissionsRequest struct {
  2206  	// Permissions: The set of permissions to check for the `resource`. Permissions
  2207  	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
  2208  	// information see IAM Overview
  2209  	// (https://cloud.google.com/iam/docs/overview#permissions).
  2210  	Permissions []string `json:"permissions,omitempty"`
  2211  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  2212  	// unconditionally include in API requests. By default, fields with empty or
  2213  	// default values are omitted from API requests. See
  2214  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2215  	// details.
  2216  	ForceSendFields []string `json:"-"`
  2217  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  2218  	// requests with the JSON null value. By default, fields with empty values are
  2219  	// omitted from API requests. See
  2220  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2221  	NullFields []string `json:"-"`
  2222  }
  2223  
  2224  func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
  2225  	type NoMethod TestIamPermissionsRequest
  2226  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2227  }
  2228  
  2229  // TestIamPermissionsResponse: Response message for `TestIamPermissions`
  2230  // method.
  2231  type TestIamPermissionsResponse struct {
  2232  	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
  2233  	// caller is allowed.
  2234  	Permissions []string `json:"permissions,omitempty"`
  2235  
  2236  	// ServerResponse contains the HTTP response code and headers from the server.
  2237  	googleapi.ServerResponse `json:"-"`
  2238  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  2239  	// unconditionally include in API requests. By default, fields with empty or
  2240  	// default values are omitted from API requests. See
  2241  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2242  	// details.
  2243  	ForceSendFields []string `json:"-"`
  2244  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  2245  	// requests with the JSON null value. By default, fields with empty values are
  2246  	// omitted from API requests. See
  2247  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2248  	NullFields []string `json:"-"`
  2249  }
  2250  
  2251  func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
  2252  	type NoMethod TestIamPermissionsResponse
  2253  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2254  }
  2255  
  2256  // TimeOfDay: Represents a time of day. The date and time zone are either not
  2257  // significant or are specified elsewhere. An API may choose to allow leap
  2258  // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
  2259  type TimeOfDay struct {
  2260  	// Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may
  2261  	// choose to allow the value "24:00:00" for scenarios like business closing
  2262  	// time.
  2263  	Hours int64 `json:"hours,omitempty"`
  2264  	// Minutes: Minutes of hour of day. Must be from 0 to 59.
  2265  	Minutes int64 `json:"minutes,omitempty"`
  2266  	// Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
  2267  	Nanos int64 `json:"nanos,omitempty"`
  2268  	// Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An
  2269  	// API may allow the value 60 if it allows leap-seconds.
  2270  	Seconds int64 `json:"seconds,omitempty"`
  2271  	// ForceSendFields is a list of field names (e.g. "Hours") to unconditionally
  2272  	// include in API requests. By default, fields with empty or default values are
  2273  	// omitted from API requests. See
  2274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2275  	// details.
  2276  	ForceSendFields []string `json:"-"`
  2277  	// NullFields is a list of field names (e.g. "Hours") to include in API
  2278  	// requests with the JSON null value. By default, fields with empty values are
  2279  	// omitted from API requests. See
  2280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2281  	NullFields []string `json:"-"`
  2282  }
  2283  
  2284  func (s *TimeOfDay) MarshalJSON() ([]byte, error) {
  2285  	type NoMethod TimeOfDay
  2286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2287  }
  2288  
  2289  // Trust: Represents a relationship between two domains. This allows a
  2290  // controller in one domain to authenticate a user in another domain. If the
  2291  // trust is being changed, it will be placed into the UPDATING state, which
  2292  // indicates that the resource is being reconciled. At this point, Get will
  2293  // reflect an intermediate state.
  2294  type Trust struct {
  2295  	// CreateTime: Output only. The time the instance was created.
  2296  	CreateTime string `json:"createTime,omitempty"`
  2297  	// LastTrustHeartbeatTime: Output only. The last heartbeat time when the trust
  2298  	// was known to be connected.
  2299  	LastTrustHeartbeatTime string `json:"lastTrustHeartbeatTime,omitempty"`
  2300  	// SelectiveAuthentication: Optional. The trust authentication type, which
  2301  	// decides whether the trusted side has forest/domain wide access or selective
  2302  	// access to an approved set of resources.
  2303  	SelectiveAuthentication bool `json:"selectiveAuthentication,omitempty"`
  2304  	// State: Output only. The current state of the trust.
  2305  	//
  2306  	// Possible values:
  2307  	//   "STATE_UNSPECIFIED" - Not set.
  2308  	//   "CREATING" - The domain trust is being created.
  2309  	//   "UPDATING" - The domain trust is being updated.
  2310  	//   "DELETING" - The domain trust is being deleted.
  2311  	//   "CONNECTED" - The domain trust is connected.
  2312  	//   "DISCONNECTED" - The domain trust is disconnected.
  2313  	State string `json:"state,omitempty"`
  2314  	// StateDescription: Output only. Additional information about the current
  2315  	// state of the trust, if available.
  2316  	StateDescription string `json:"stateDescription,omitempty"`
  2317  	// TargetDnsIpAddresses: Required. The target DNS server IP addresses which can
  2318  	// resolve the remote domain involved in the trust.
  2319  	TargetDnsIpAddresses []string `json:"targetDnsIpAddresses,omitempty"`
  2320  	// TargetDomainName: Required. The fully qualified target domain name which
  2321  	// will be in trust with the current domain.
  2322  	TargetDomainName string `json:"targetDomainName,omitempty"`
  2323  	// TrustDirection: Required. The trust direction, which decides if the current
  2324  	// domain is trusted, trusting, or both.
  2325  	//
  2326  	// Possible values:
  2327  	//   "TRUST_DIRECTION_UNSPECIFIED" - Not set.
  2328  	//   "INBOUND" - The inbound direction represents the trusting side.
  2329  	//   "OUTBOUND" - The outboud direction represents the trusted side.
  2330  	//   "BIDIRECTIONAL" - The bidirectional direction represents the trusted /
  2331  	// trusting side.
  2332  	TrustDirection string `json:"trustDirection,omitempty"`
  2333  	// TrustHandshakeSecret: Required. The trust secret used for the handshake with
  2334  	// the target domain. This will not be stored.
  2335  	TrustHandshakeSecret string `json:"trustHandshakeSecret,omitempty"`
  2336  	// TrustType: Required. The type of trust represented by the trust resource.
  2337  	//
  2338  	// Possible values:
  2339  	//   "TRUST_TYPE_UNSPECIFIED" - Not set.
  2340  	//   "FOREST" - The forest trust.
  2341  	//   "EXTERNAL" - The external domain trust.
  2342  	TrustType string `json:"trustType,omitempty"`
  2343  	// UpdateTime: Output only. The last update time.
  2344  	UpdateTime string `json:"updateTime,omitempty"`
  2345  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2346  	// unconditionally include in API requests. By default, fields with empty or
  2347  	// default values are omitted from API requests. See
  2348  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2349  	// details.
  2350  	ForceSendFields []string `json:"-"`
  2351  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2352  	// requests with the JSON null value. By default, fields with empty values are
  2353  	// omitted from API requests. See
  2354  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2355  	NullFields []string `json:"-"`
  2356  }
  2357  
  2358  func (s *Trust) MarshalJSON() ([]byte, error) {
  2359  	type NoMethod Trust
  2360  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2361  }
  2362  
  2363  // UpdatePolicy: Maintenance policy applicable to instance updates.
  2364  type UpdatePolicy struct {
  2365  	// Channel: Optional. Relative scheduling channel applied to resource.
  2366  	//
  2367  	// Possible values:
  2368  	//   "UPDATE_CHANNEL_UNSPECIFIED" - Unspecified channel.
  2369  	//   "EARLIER" - Early channel within a customer project.
  2370  	//   "LATER" - Later channel within a customer project.
  2371  	//   "WEEK1" - ! ! The follow channels can ONLY be used if you adopt the new MW
  2372  	// system! ! ! NOTE: all WEEK channels are assumed to be under a weekly window.
  2373  	// ! There is currently no dedicated channel definitions for Daily windows. !
  2374  	// If you use Daily window, the system will assume a 1d (24Hours) advanced !
  2375  	// notification period b/w EARLY and LATER. ! We may consider support more
  2376  	// flexible daily channel specifications in ! the future. WEEK1 == EARLIER with
  2377  	// minimum 7d advanced notification. {7d, 14d} The system will treat them
  2378  	// equally and will use WEEK1 whenever it can. New customers are encouraged to
  2379  	// use this channel annotation.
  2380  	//   "WEEK2" - WEEK2 == LATER with minimum 14d advanced notification {14d,
  2381  	// 21d}.
  2382  	//   "WEEK5" - WEEK5 == 40d support. minimum 35d advanced notification {35d,
  2383  	// 42d}.
  2384  	Channel string `json:"channel,omitempty"`
  2385  	// DenyMaintenancePeriods: Deny Maintenance Period that is applied to resource
  2386  	// to indicate when maintenance is forbidden. The protocol supports
  2387  	// zero-to-many such periods, but the current SLM Rollout implementation only
  2388  	// supports zero-to-one.
  2389  	DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"`
  2390  	// Window: Optional. Maintenance window that is applied to resources covered by
  2391  	// this policy.
  2392  	Window *MaintenanceWindow `json:"window,omitempty"`
  2393  	// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally
  2394  	// include in API requests. By default, fields with empty or default values are
  2395  	// omitted from API requests. See
  2396  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2397  	// details.
  2398  	ForceSendFields []string `json:"-"`
  2399  	// NullFields is a list of field names (e.g. "Channel") to include in API
  2400  	// requests with the JSON null value. By default, fields with empty values are
  2401  	// omitted from API requests. See
  2402  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2403  	NullFields []string `json:"-"`
  2404  }
  2405  
  2406  func (s *UpdatePolicy) MarshalJSON() ([]byte, error) {
  2407  	type NoMethod UpdatePolicy
  2408  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2409  }
  2410  
  2411  // ValidateTrustRequest: Request message for ValidateTrust
  2412  type ValidateTrustRequest struct {
  2413  	// Trust: Required. The domain trust to validate trust state for.
  2414  	Trust *Trust `json:"trust,omitempty"`
  2415  	// ForceSendFields is a list of field names (e.g. "Trust") to unconditionally
  2416  	// include in API requests. By default, fields with empty or default values are
  2417  	// omitted from API requests. See
  2418  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2419  	// details.
  2420  	ForceSendFields []string `json:"-"`
  2421  	// NullFields is a list of field names (e.g. "Trust") to include in API
  2422  	// requests with the JSON null value. By default, fields with empty values are
  2423  	// omitted from API requests. See
  2424  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2425  	NullFields []string `json:"-"`
  2426  }
  2427  
  2428  func (s *ValidateTrustRequest) MarshalJSON() ([]byte, error) {
  2429  	type NoMethod ValidateTrustRequest
  2430  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2431  }
  2432  
  2433  // WeeklyCycle: Time window specified for weekly operations.
  2434  type WeeklyCycle struct {
  2435  	// Schedule: User can specify multiple windows in a week. Minimum of 1 window.
  2436  	Schedule []*Schedule `json:"schedule,omitempty"`
  2437  	// ForceSendFields is a list of field names (e.g. "Schedule") to
  2438  	// unconditionally include in API requests. By default, fields with empty or
  2439  	// default values are omitted from API requests. See
  2440  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2441  	// details.
  2442  	ForceSendFields []string `json:"-"`
  2443  	// NullFields is a list of field names (e.g. "Schedule") to include in API
  2444  	// requests with the JSON null value. By default, fields with empty values are
  2445  	// omitted from API requests. See
  2446  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2447  	NullFields []string `json:"-"`
  2448  }
  2449  
  2450  func (s *WeeklyCycle) MarshalJSON() ([]byte, error) {
  2451  	type NoMethod WeeklyCycle
  2452  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2453  }
  2454  
  2455  type ProjectsLocationsGetCall struct {
  2456  	s            *Service
  2457  	name         string
  2458  	urlParams_   gensupport.URLParams
  2459  	ifNoneMatch_ string
  2460  	ctx_         context.Context
  2461  	header_      http.Header
  2462  }
  2463  
  2464  // Get: Gets information about a location.
  2465  //
  2466  // - name: Resource name for the location.
  2467  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
  2468  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2469  	c.name = name
  2470  	return c
  2471  }
  2472  
  2473  // Fields allows partial responses to be retrieved. See
  2474  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2475  // details.
  2476  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
  2477  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2478  	return c
  2479  }
  2480  
  2481  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2482  // object's ETag matches the given value. This is useful for getting updates
  2483  // only after the object has changed since the last request.
  2484  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
  2485  	c.ifNoneMatch_ = entityTag
  2486  	return c
  2487  }
  2488  
  2489  // Context sets the context to be used in this call's Do method.
  2490  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
  2491  	c.ctx_ = ctx
  2492  	return c
  2493  }
  2494  
  2495  // Header returns a http.Header that can be modified by the caller to add
  2496  // headers to the request.
  2497  func (c *ProjectsLocationsGetCall) Header() http.Header {
  2498  	if c.header_ == nil {
  2499  		c.header_ = make(http.Header)
  2500  	}
  2501  	return c.header_
  2502  }
  2503  
  2504  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  2505  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2506  	if c.ifNoneMatch_ != "" {
  2507  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2508  	}
  2509  	var body io.Reader = nil
  2510  	c.urlParams_.Set("alt", alt)
  2511  	c.urlParams_.Set("prettyPrint", "false")
  2512  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  2513  	urls += "?" + c.urlParams_.Encode()
  2514  	req, err := http.NewRequest("GET", urls, body)
  2515  	if err != nil {
  2516  		return nil, err
  2517  	}
  2518  	req.Header = reqHeaders
  2519  	googleapi.Expand(req.URL, map[string]string{
  2520  		"name": c.name,
  2521  	})
  2522  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2523  }
  2524  
  2525  // Do executes the "managedidentities.projects.locations.get" call.
  2526  // Any non-2xx status code is an error. Response headers are in either
  2527  // *Location.ServerResponse.Header or (if a response was returned at all) in
  2528  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2529  // whether the returned error was because http.StatusNotModified was returned.
  2530  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
  2531  	gensupport.SetOptions(c.urlParams_, opts...)
  2532  	res, err := c.doRequest("json")
  2533  	if res != nil && res.StatusCode == http.StatusNotModified {
  2534  		if res.Body != nil {
  2535  			res.Body.Close()
  2536  		}
  2537  		return nil, gensupport.WrapError(&googleapi.Error{
  2538  			Code:   res.StatusCode,
  2539  			Header: res.Header,
  2540  		})
  2541  	}
  2542  	if err != nil {
  2543  		return nil, err
  2544  	}
  2545  	defer googleapi.CloseBody(res)
  2546  	if err := googleapi.CheckResponse(res); err != nil {
  2547  		return nil, gensupport.WrapError(err)
  2548  	}
  2549  	ret := &Location{
  2550  		ServerResponse: googleapi.ServerResponse{
  2551  			Header:         res.Header,
  2552  			HTTPStatusCode: res.StatusCode,
  2553  		},
  2554  	}
  2555  	target := &ret
  2556  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2557  		return nil, err
  2558  	}
  2559  	return ret, nil
  2560  }
  2561  
  2562  type ProjectsLocationsListCall struct {
  2563  	s            *Service
  2564  	name         string
  2565  	urlParams_   gensupport.URLParams
  2566  	ifNoneMatch_ string
  2567  	ctx_         context.Context
  2568  	header_      http.Header
  2569  }
  2570  
  2571  // List: Lists information about the supported locations for this service.
  2572  //
  2573  // - name: The resource that owns the locations collection, if applicable.
  2574  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
  2575  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2576  	c.name = name
  2577  	return c
  2578  }
  2579  
  2580  // Filter sets the optional parameter "filter": A filter to narrow down results
  2581  // to a preferred subset. The filtering language accepts strings like
  2582  // "displayName=tokyo", and is documented in more detail in AIP-160
  2583  // (https://google.aip.dev/160).
  2584  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  2585  	c.urlParams_.Set("filter", filter)
  2586  	return c
  2587  }
  2588  
  2589  // PageSize sets the optional parameter "pageSize": The maximum number of
  2590  // results to return. If not set, the service selects a default.
  2591  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  2592  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2593  	return c
  2594  }
  2595  
  2596  // PageToken sets the optional parameter "pageToken": A page token received
  2597  // from the `next_page_token` field in the response. Send that page token to
  2598  // receive the subsequent page.
  2599  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  2600  	c.urlParams_.Set("pageToken", pageToken)
  2601  	return c
  2602  }
  2603  
  2604  // Fields allows partial responses to be retrieved. See
  2605  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2606  // details.
  2607  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  2608  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2609  	return c
  2610  }
  2611  
  2612  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2613  // object's ETag matches the given value. This is useful for getting updates
  2614  // only after the object has changed since the last request.
  2615  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  2616  	c.ifNoneMatch_ = entityTag
  2617  	return c
  2618  }
  2619  
  2620  // Context sets the context to be used in this call's Do method.
  2621  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  2622  	c.ctx_ = ctx
  2623  	return c
  2624  }
  2625  
  2626  // Header returns a http.Header that can be modified by the caller to add
  2627  // headers to the request.
  2628  func (c *ProjectsLocationsListCall) Header() http.Header {
  2629  	if c.header_ == nil {
  2630  		c.header_ = make(http.Header)
  2631  	}
  2632  	return c.header_
  2633  }
  2634  
  2635  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  2636  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2637  	if c.ifNoneMatch_ != "" {
  2638  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2639  	}
  2640  	var body io.Reader = nil
  2641  	c.urlParams_.Set("alt", alt)
  2642  	c.urlParams_.Set("prettyPrint", "false")
  2643  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
  2644  	urls += "?" + c.urlParams_.Encode()
  2645  	req, err := http.NewRequest("GET", urls, body)
  2646  	if err != nil {
  2647  		return nil, err
  2648  	}
  2649  	req.Header = reqHeaders
  2650  	googleapi.Expand(req.URL, map[string]string{
  2651  		"name": c.name,
  2652  	})
  2653  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2654  }
  2655  
  2656  // Do executes the "managedidentities.projects.locations.list" call.
  2657  // Any non-2xx status code is an error. Response headers are in either
  2658  // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
  2659  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  2660  // check whether the returned error was because http.StatusNotModified was
  2661  // returned.
  2662  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  2663  	gensupport.SetOptions(c.urlParams_, opts...)
  2664  	res, err := c.doRequest("json")
  2665  	if res != nil && res.StatusCode == http.StatusNotModified {
  2666  		if res.Body != nil {
  2667  			res.Body.Close()
  2668  		}
  2669  		return nil, gensupport.WrapError(&googleapi.Error{
  2670  			Code:   res.StatusCode,
  2671  			Header: res.Header,
  2672  		})
  2673  	}
  2674  	if err != nil {
  2675  		return nil, err
  2676  	}
  2677  	defer googleapi.CloseBody(res)
  2678  	if err := googleapi.CheckResponse(res); err != nil {
  2679  		return nil, gensupport.WrapError(err)
  2680  	}
  2681  	ret := &ListLocationsResponse{
  2682  		ServerResponse: googleapi.ServerResponse{
  2683  			Header:         res.Header,
  2684  			HTTPStatusCode: res.StatusCode,
  2685  		},
  2686  	}
  2687  	target := &ret
  2688  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2689  		return nil, err
  2690  	}
  2691  	return ret, nil
  2692  }
  2693  
  2694  // Pages invokes f for each page of results.
  2695  // A non-nil error returned from f will halt the iteration.
  2696  // The provided context supersedes any context provided to the Context method.
  2697  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  2698  	c.ctx_ = ctx
  2699  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2700  	for {
  2701  		x, err := c.Do()
  2702  		if err != nil {
  2703  			return err
  2704  		}
  2705  		if err := f(x); err != nil {
  2706  			return err
  2707  		}
  2708  		if x.NextPageToken == "" {
  2709  			return nil
  2710  		}
  2711  		c.PageToken(x.NextPageToken)
  2712  	}
  2713  }
  2714  
  2715  type ProjectsLocationsGlobalDomainsAttachTrustCall struct {
  2716  	s                  *Service
  2717  	name               string
  2718  	attachtrustrequest *AttachTrustRequest
  2719  	urlParams_         gensupport.URLParams
  2720  	ctx_               context.Context
  2721  	header_            http.Header
  2722  }
  2723  
  2724  // AttachTrust: Adds an AD trust to a domain.
  2725  //
  2726  //   - name: The resource domain name, project name and location using the form:
  2727  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  2728  func (r *ProjectsLocationsGlobalDomainsService) AttachTrust(name string, attachtrustrequest *AttachTrustRequest) *ProjectsLocationsGlobalDomainsAttachTrustCall {
  2729  	c := &ProjectsLocationsGlobalDomainsAttachTrustCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2730  	c.name = name
  2731  	c.attachtrustrequest = attachtrustrequest
  2732  	return c
  2733  }
  2734  
  2735  // Fields allows partial responses to be retrieved. See
  2736  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2737  // details.
  2738  func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsAttachTrustCall {
  2739  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2740  	return c
  2741  }
  2742  
  2743  // Context sets the context to be used in this call's Do method.
  2744  func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsAttachTrustCall {
  2745  	c.ctx_ = ctx
  2746  	return c
  2747  }
  2748  
  2749  // Header returns a http.Header that can be modified by the caller to add
  2750  // headers to the request.
  2751  func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) Header() http.Header {
  2752  	if c.header_ == nil {
  2753  		c.header_ = make(http.Header)
  2754  	}
  2755  	return c.header_
  2756  }
  2757  
  2758  func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) doRequest(alt string) (*http.Response, error) {
  2759  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2760  	var body io.Reader = nil
  2761  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.attachtrustrequest)
  2762  	if err != nil {
  2763  		return nil, err
  2764  	}
  2765  	c.urlParams_.Set("alt", alt)
  2766  	c.urlParams_.Set("prettyPrint", "false")
  2767  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:attachTrust")
  2768  	urls += "?" + c.urlParams_.Encode()
  2769  	req, err := http.NewRequest("POST", urls, body)
  2770  	if err != nil {
  2771  		return nil, err
  2772  	}
  2773  	req.Header = reqHeaders
  2774  	googleapi.Expand(req.URL, map[string]string{
  2775  		"name": c.name,
  2776  	})
  2777  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2778  }
  2779  
  2780  // Do executes the "managedidentities.projects.locations.global.domains.attachTrust" call.
  2781  // Any non-2xx status code is an error. Response headers are in either
  2782  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  2783  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2784  // whether the returned error was because http.StatusNotModified was returned.
  2785  func (c *ProjectsLocationsGlobalDomainsAttachTrustCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  2786  	gensupport.SetOptions(c.urlParams_, opts...)
  2787  	res, err := c.doRequest("json")
  2788  	if res != nil && res.StatusCode == http.StatusNotModified {
  2789  		if res.Body != nil {
  2790  			res.Body.Close()
  2791  		}
  2792  		return nil, gensupport.WrapError(&googleapi.Error{
  2793  			Code:   res.StatusCode,
  2794  			Header: res.Header,
  2795  		})
  2796  	}
  2797  	if err != nil {
  2798  		return nil, err
  2799  	}
  2800  	defer googleapi.CloseBody(res)
  2801  	if err := googleapi.CheckResponse(res); err != nil {
  2802  		return nil, gensupport.WrapError(err)
  2803  	}
  2804  	ret := &Operation{
  2805  		ServerResponse: googleapi.ServerResponse{
  2806  			Header:         res.Header,
  2807  			HTTPStatusCode: res.StatusCode,
  2808  		},
  2809  	}
  2810  	target := &ret
  2811  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2812  		return nil, err
  2813  	}
  2814  	return ret, nil
  2815  }
  2816  
  2817  type ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall struct {
  2818  	s                               *Service
  2819  	domain                          string
  2820  	checkmigrationpermissionrequest *CheckMigrationPermissionRequest
  2821  	urlParams_                      gensupport.URLParams
  2822  	ctx_                            context.Context
  2823  	header_                         http.Header
  2824  }
  2825  
  2826  // CheckMigrationPermission: CheckMigrationPermission API gets the current
  2827  // state of DomainMigration
  2828  //
  2829  //   - domain: The domain resource name using the form:
  2830  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  2831  func (r *ProjectsLocationsGlobalDomainsService) CheckMigrationPermission(domain string, checkmigrationpermissionrequest *CheckMigrationPermissionRequest) *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall {
  2832  	c := &ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2833  	c.domain = domain
  2834  	c.checkmigrationpermissionrequest = checkmigrationpermissionrequest
  2835  	return c
  2836  }
  2837  
  2838  // Fields allows partial responses to be retrieved. See
  2839  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2840  // details.
  2841  func (c *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall {
  2842  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2843  	return c
  2844  }
  2845  
  2846  // Context sets the context to be used in this call's Do method.
  2847  func (c *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall {
  2848  	c.ctx_ = ctx
  2849  	return c
  2850  }
  2851  
  2852  // Header returns a http.Header that can be modified by the caller to add
  2853  // headers to the request.
  2854  func (c *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) Header() http.Header {
  2855  	if c.header_ == nil {
  2856  		c.header_ = make(http.Header)
  2857  	}
  2858  	return c.header_
  2859  }
  2860  
  2861  func (c *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) doRequest(alt string) (*http.Response, error) {
  2862  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2863  	var body io.Reader = nil
  2864  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.checkmigrationpermissionrequest)
  2865  	if err != nil {
  2866  		return nil, err
  2867  	}
  2868  	c.urlParams_.Set("alt", alt)
  2869  	c.urlParams_.Set("prettyPrint", "false")
  2870  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+domain}:checkMigrationPermission")
  2871  	urls += "?" + c.urlParams_.Encode()
  2872  	req, err := http.NewRequest("POST", urls, body)
  2873  	if err != nil {
  2874  		return nil, err
  2875  	}
  2876  	req.Header = reqHeaders
  2877  	googleapi.Expand(req.URL, map[string]string{
  2878  		"domain": c.domain,
  2879  	})
  2880  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2881  }
  2882  
  2883  // Do executes the "managedidentities.projects.locations.global.domains.checkMigrationPermission" call.
  2884  // Any non-2xx status code is an error. Response headers are in either
  2885  // *CheckMigrationPermissionResponse.ServerResponse.Header or (if a response
  2886  // was returned at all) in error.(*googleapi.Error).Header. Use
  2887  // googleapi.IsNotModified to check whether the returned error was because
  2888  // http.StatusNotModified was returned.
  2889  func (c *ProjectsLocationsGlobalDomainsCheckMigrationPermissionCall) Do(opts ...googleapi.CallOption) (*CheckMigrationPermissionResponse, error) {
  2890  	gensupport.SetOptions(c.urlParams_, opts...)
  2891  	res, err := c.doRequest("json")
  2892  	if res != nil && res.StatusCode == http.StatusNotModified {
  2893  		if res.Body != nil {
  2894  			res.Body.Close()
  2895  		}
  2896  		return nil, gensupport.WrapError(&googleapi.Error{
  2897  			Code:   res.StatusCode,
  2898  			Header: res.Header,
  2899  		})
  2900  	}
  2901  	if err != nil {
  2902  		return nil, err
  2903  	}
  2904  	defer googleapi.CloseBody(res)
  2905  	if err := googleapi.CheckResponse(res); err != nil {
  2906  		return nil, gensupport.WrapError(err)
  2907  	}
  2908  	ret := &CheckMigrationPermissionResponse{
  2909  		ServerResponse: googleapi.ServerResponse{
  2910  			Header:         res.Header,
  2911  			HTTPStatusCode: res.StatusCode,
  2912  		},
  2913  	}
  2914  	target := &ret
  2915  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2916  		return nil, err
  2917  	}
  2918  	return ret, nil
  2919  }
  2920  
  2921  type ProjectsLocationsGlobalDomainsCreateCall struct {
  2922  	s          *Service
  2923  	parent     string
  2924  	domain     *Domain
  2925  	urlParams_ gensupport.URLParams
  2926  	ctx_       context.Context
  2927  	header_    http.Header
  2928  }
  2929  
  2930  // Create: Creates a Microsoft AD domain.
  2931  //
  2932  //   - parent: The resource project name and location using the form:
  2933  //     `projects/{project_id}/locations/global`.
  2934  func (r *ProjectsLocationsGlobalDomainsService) Create(parent string, domain *Domain) *ProjectsLocationsGlobalDomainsCreateCall {
  2935  	c := &ProjectsLocationsGlobalDomainsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2936  	c.parent = parent
  2937  	c.domain = domain
  2938  	return c
  2939  }
  2940  
  2941  // DomainName sets the optional parameter "domainName": Required. The fully
  2942  // qualified domain name. e.g. mydomain.myorganization.com, with the following
  2943  // restrictions: * Must contain only lowercase letters, numbers, periods and
  2944  // hyphens. * Must start with a letter. * Must contain between 2-64 characters.
  2945  // * Must end with a number or a letter. * Must not start with period. * First
  2946  // segment length (mydomain for example above) shouldn't exceed 15 chars. * The
  2947  // last segment cannot be fully numeric. * Must be unique within the customer
  2948  // project.
  2949  func (c *ProjectsLocationsGlobalDomainsCreateCall) DomainName(domainName string) *ProjectsLocationsGlobalDomainsCreateCall {
  2950  	c.urlParams_.Set("domainName", domainName)
  2951  	return c
  2952  }
  2953  
  2954  // Fields allows partial responses to be retrieved. See
  2955  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2956  // details.
  2957  func (c *ProjectsLocationsGlobalDomainsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsCreateCall {
  2958  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2959  	return c
  2960  }
  2961  
  2962  // Context sets the context to be used in this call's Do method.
  2963  func (c *ProjectsLocationsGlobalDomainsCreateCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsCreateCall {
  2964  	c.ctx_ = ctx
  2965  	return c
  2966  }
  2967  
  2968  // Header returns a http.Header that can be modified by the caller to add
  2969  // headers to the request.
  2970  func (c *ProjectsLocationsGlobalDomainsCreateCall) Header() http.Header {
  2971  	if c.header_ == nil {
  2972  		c.header_ = make(http.Header)
  2973  	}
  2974  	return c.header_
  2975  }
  2976  
  2977  func (c *ProjectsLocationsGlobalDomainsCreateCall) doRequest(alt string) (*http.Response, error) {
  2978  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2979  	var body io.Reader = nil
  2980  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domain)
  2981  	if err != nil {
  2982  		return nil, err
  2983  	}
  2984  	c.urlParams_.Set("alt", alt)
  2985  	c.urlParams_.Set("prettyPrint", "false")
  2986  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/domains")
  2987  	urls += "?" + c.urlParams_.Encode()
  2988  	req, err := http.NewRequest("POST", urls, body)
  2989  	if err != nil {
  2990  		return nil, err
  2991  	}
  2992  	req.Header = reqHeaders
  2993  	googleapi.Expand(req.URL, map[string]string{
  2994  		"parent": c.parent,
  2995  	})
  2996  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2997  }
  2998  
  2999  // Do executes the "managedidentities.projects.locations.global.domains.create" call.
  3000  // Any non-2xx status code is an error. Response headers are in either
  3001  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3002  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3003  // whether the returned error was because http.StatusNotModified was returned.
  3004  func (c *ProjectsLocationsGlobalDomainsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3005  	gensupport.SetOptions(c.urlParams_, opts...)
  3006  	res, err := c.doRequest("json")
  3007  	if res != nil && res.StatusCode == http.StatusNotModified {
  3008  		if res.Body != nil {
  3009  			res.Body.Close()
  3010  		}
  3011  		return nil, gensupport.WrapError(&googleapi.Error{
  3012  			Code:   res.StatusCode,
  3013  			Header: res.Header,
  3014  		})
  3015  	}
  3016  	if err != nil {
  3017  		return nil, err
  3018  	}
  3019  	defer googleapi.CloseBody(res)
  3020  	if err := googleapi.CheckResponse(res); err != nil {
  3021  		return nil, gensupport.WrapError(err)
  3022  	}
  3023  	ret := &Operation{
  3024  		ServerResponse: googleapi.ServerResponse{
  3025  			Header:         res.Header,
  3026  			HTTPStatusCode: res.StatusCode,
  3027  		},
  3028  	}
  3029  	target := &ret
  3030  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3031  		return nil, err
  3032  	}
  3033  	return ret, nil
  3034  }
  3035  
  3036  type ProjectsLocationsGlobalDomainsDeleteCall struct {
  3037  	s          *Service
  3038  	name       string
  3039  	urlParams_ gensupport.URLParams
  3040  	ctx_       context.Context
  3041  	header_    http.Header
  3042  }
  3043  
  3044  // Delete: Deletes a domain.
  3045  //
  3046  //   - name: The domain resource name using the form:
  3047  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  3048  func (r *ProjectsLocationsGlobalDomainsService) Delete(name string) *ProjectsLocationsGlobalDomainsDeleteCall {
  3049  	c := &ProjectsLocationsGlobalDomainsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3050  	c.name = name
  3051  	return c
  3052  }
  3053  
  3054  // Fields allows partial responses to be retrieved. See
  3055  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3056  // details.
  3057  func (c *ProjectsLocationsGlobalDomainsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsDeleteCall {
  3058  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3059  	return c
  3060  }
  3061  
  3062  // Context sets the context to be used in this call's Do method.
  3063  func (c *ProjectsLocationsGlobalDomainsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsDeleteCall {
  3064  	c.ctx_ = ctx
  3065  	return c
  3066  }
  3067  
  3068  // Header returns a http.Header that can be modified by the caller to add
  3069  // headers to the request.
  3070  func (c *ProjectsLocationsGlobalDomainsDeleteCall) Header() http.Header {
  3071  	if c.header_ == nil {
  3072  		c.header_ = make(http.Header)
  3073  	}
  3074  	return c.header_
  3075  }
  3076  
  3077  func (c *ProjectsLocationsGlobalDomainsDeleteCall) doRequest(alt string) (*http.Response, error) {
  3078  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3079  	var body io.Reader = nil
  3080  	c.urlParams_.Set("alt", alt)
  3081  	c.urlParams_.Set("prettyPrint", "false")
  3082  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  3083  	urls += "?" + c.urlParams_.Encode()
  3084  	req, err := http.NewRequest("DELETE", urls, body)
  3085  	if err != nil {
  3086  		return nil, err
  3087  	}
  3088  	req.Header = reqHeaders
  3089  	googleapi.Expand(req.URL, map[string]string{
  3090  		"name": c.name,
  3091  	})
  3092  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3093  }
  3094  
  3095  // Do executes the "managedidentities.projects.locations.global.domains.delete" call.
  3096  // Any non-2xx status code is an error. Response headers are in either
  3097  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3098  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3099  // whether the returned error was because http.StatusNotModified was returned.
  3100  func (c *ProjectsLocationsGlobalDomainsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3101  	gensupport.SetOptions(c.urlParams_, opts...)
  3102  	res, err := c.doRequest("json")
  3103  	if res != nil && res.StatusCode == http.StatusNotModified {
  3104  		if res.Body != nil {
  3105  			res.Body.Close()
  3106  		}
  3107  		return nil, gensupport.WrapError(&googleapi.Error{
  3108  			Code:   res.StatusCode,
  3109  			Header: res.Header,
  3110  		})
  3111  	}
  3112  	if err != nil {
  3113  		return nil, err
  3114  	}
  3115  	defer googleapi.CloseBody(res)
  3116  	if err := googleapi.CheckResponse(res); err != nil {
  3117  		return nil, gensupport.WrapError(err)
  3118  	}
  3119  	ret := &Operation{
  3120  		ServerResponse: googleapi.ServerResponse{
  3121  			Header:         res.Header,
  3122  			HTTPStatusCode: res.StatusCode,
  3123  		},
  3124  	}
  3125  	target := &ret
  3126  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3127  		return nil, err
  3128  	}
  3129  	return ret, nil
  3130  }
  3131  
  3132  type ProjectsLocationsGlobalDomainsDetachTrustCall struct {
  3133  	s                  *Service
  3134  	name               string
  3135  	detachtrustrequest *DetachTrustRequest
  3136  	urlParams_         gensupport.URLParams
  3137  	ctx_               context.Context
  3138  	header_            http.Header
  3139  }
  3140  
  3141  // DetachTrust: Removes an AD trust.
  3142  //
  3143  //   - name: The resource domain name, project name, and location using the form:
  3144  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  3145  func (r *ProjectsLocationsGlobalDomainsService) DetachTrust(name string, detachtrustrequest *DetachTrustRequest) *ProjectsLocationsGlobalDomainsDetachTrustCall {
  3146  	c := &ProjectsLocationsGlobalDomainsDetachTrustCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3147  	c.name = name
  3148  	c.detachtrustrequest = detachtrustrequest
  3149  	return c
  3150  }
  3151  
  3152  // Fields allows partial responses to be retrieved. See
  3153  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3154  // details.
  3155  func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsDetachTrustCall {
  3156  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3157  	return c
  3158  }
  3159  
  3160  // Context sets the context to be used in this call's Do method.
  3161  func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsDetachTrustCall {
  3162  	c.ctx_ = ctx
  3163  	return c
  3164  }
  3165  
  3166  // Header returns a http.Header that can be modified by the caller to add
  3167  // headers to the request.
  3168  func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) Header() http.Header {
  3169  	if c.header_ == nil {
  3170  		c.header_ = make(http.Header)
  3171  	}
  3172  	return c.header_
  3173  }
  3174  
  3175  func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) doRequest(alt string) (*http.Response, error) {
  3176  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3177  	var body io.Reader = nil
  3178  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.detachtrustrequest)
  3179  	if err != nil {
  3180  		return nil, err
  3181  	}
  3182  	c.urlParams_.Set("alt", alt)
  3183  	c.urlParams_.Set("prettyPrint", "false")
  3184  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:detachTrust")
  3185  	urls += "?" + c.urlParams_.Encode()
  3186  	req, err := http.NewRequest("POST", urls, body)
  3187  	if err != nil {
  3188  		return nil, err
  3189  	}
  3190  	req.Header = reqHeaders
  3191  	googleapi.Expand(req.URL, map[string]string{
  3192  		"name": c.name,
  3193  	})
  3194  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3195  }
  3196  
  3197  // Do executes the "managedidentities.projects.locations.global.domains.detachTrust" call.
  3198  // Any non-2xx status code is an error. Response headers are in either
  3199  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3200  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3201  // whether the returned error was because http.StatusNotModified was returned.
  3202  func (c *ProjectsLocationsGlobalDomainsDetachTrustCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3203  	gensupport.SetOptions(c.urlParams_, opts...)
  3204  	res, err := c.doRequest("json")
  3205  	if res != nil && res.StatusCode == http.StatusNotModified {
  3206  		if res.Body != nil {
  3207  			res.Body.Close()
  3208  		}
  3209  		return nil, gensupport.WrapError(&googleapi.Error{
  3210  			Code:   res.StatusCode,
  3211  			Header: res.Header,
  3212  		})
  3213  	}
  3214  	if err != nil {
  3215  		return nil, err
  3216  	}
  3217  	defer googleapi.CloseBody(res)
  3218  	if err := googleapi.CheckResponse(res); err != nil {
  3219  		return nil, gensupport.WrapError(err)
  3220  	}
  3221  	ret := &Operation{
  3222  		ServerResponse: googleapi.ServerResponse{
  3223  			Header:         res.Header,
  3224  			HTTPStatusCode: res.StatusCode,
  3225  		},
  3226  	}
  3227  	target := &ret
  3228  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3229  		return nil, err
  3230  	}
  3231  	return ret, nil
  3232  }
  3233  
  3234  type ProjectsLocationsGlobalDomainsDisableMigrationCall struct {
  3235  	s                       *Service
  3236  	domain                  string
  3237  	disablemigrationrequest *DisableMigrationRequest
  3238  	urlParams_              gensupport.URLParams
  3239  	ctx_                    context.Context
  3240  	header_                 http.Header
  3241  }
  3242  
  3243  // DisableMigration: Disable Domain Migration
  3244  //
  3245  //   - domain: The domain resource name using the form:
  3246  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  3247  func (r *ProjectsLocationsGlobalDomainsService) DisableMigration(domain string, disablemigrationrequest *DisableMigrationRequest) *ProjectsLocationsGlobalDomainsDisableMigrationCall {
  3248  	c := &ProjectsLocationsGlobalDomainsDisableMigrationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3249  	c.domain = domain
  3250  	c.disablemigrationrequest = disablemigrationrequest
  3251  	return c
  3252  }
  3253  
  3254  // Fields allows partial responses to be retrieved. See
  3255  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3256  // details.
  3257  func (c *ProjectsLocationsGlobalDomainsDisableMigrationCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsDisableMigrationCall {
  3258  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3259  	return c
  3260  }
  3261  
  3262  // Context sets the context to be used in this call's Do method.
  3263  func (c *ProjectsLocationsGlobalDomainsDisableMigrationCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsDisableMigrationCall {
  3264  	c.ctx_ = ctx
  3265  	return c
  3266  }
  3267  
  3268  // Header returns a http.Header that can be modified by the caller to add
  3269  // headers to the request.
  3270  func (c *ProjectsLocationsGlobalDomainsDisableMigrationCall) Header() http.Header {
  3271  	if c.header_ == nil {
  3272  		c.header_ = make(http.Header)
  3273  	}
  3274  	return c.header_
  3275  }
  3276  
  3277  func (c *ProjectsLocationsGlobalDomainsDisableMigrationCall) doRequest(alt string) (*http.Response, error) {
  3278  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3279  	var body io.Reader = nil
  3280  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.disablemigrationrequest)
  3281  	if err != nil {
  3282  		return nil, err
  3283  	}
  3284  	c.urlParams_.Set("alt", alt)
  3285  	c.urlParams_.Set("prettyPrint", "false")
  3286  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+domain}:disableMigration")
  3287  	urls += "?" + c.urlParams_.Encode()
  3288  	req, err := http.NewRequest("POST", urls, body)
  3289  	if err != nil {
  3290  		return nil, err
  3291  	}
  3292  	req.Header = reqHeaders
  3293  	googleapi.Expand(req.URL, map[string]string{
  3294  		"domain": c.domain,
  3295  	})
  3296  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3297  }
  3298  
  3299  // Do executes the "managedidentities.projects.locations.global.domains.disableMigration" call.
  3300  // Any non-2xx status code is an error. Response headers are in either
  3301  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3302  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3303  // whether the returned error was because http.StatusNotModified was returned.
  3304  func (c *ProjectsLocationsGlobalDomainsDisableMigrationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3305  	gensupport.SetOptions(c.urlParams_, opts...)
  3306  	res, err := c.doRequest("json")
  3307  	if res != nil && res.StatusCode == http.StatusNotModified {
  3308  		if res.Body != nil {
  3309  			res.Body.Close()
  3310  		}
  3311  		return nil, gensupport.WrapError(&googleapi.Error{
  3312  			Code:   res.StatusCode,
  3313  			Header: res.Header,
  3314  		})
  3315  	}
  3316  	if err != nil {
  3317  		return nil, err
  3318  	}
  3319  	defer googleapi.CloseBody(res)
  3320  	if err := googleapi.CheckResponse(res); err != nil {
  3321  		return nil, gensupport.WrapError(err)
  3322  	}
  3323  	ret := &Operation{
  3324  		ServerResponse: googleapi.ServerResponse{
  3325  			Header:         res.Header,
  3326  			HTTPStatusCode: res.StatusCode,
  3327  		},
  3328  	}
  3329  	target := &ret
  3330  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3331  		return nil, err
  3332  	}
  3333  	return ret, nil
  3334  }
  3335  
  3336  type ProjectsLocationsGlobalDomainsDomainJoinMachineCall struct {
  3337  	s                        *Service
  3338  	domain                   string
  3339  	domainjoinmachinerequest *DomainJoinMachineRequest
  3340  	urlParams_               gensupport.URLParams
  3341  	ctx_                     context.Context
  3342  	header_                  http.Header
  3343  }
  3344  
  3345  // DomainJoinMachine: DomainJoinMachine API joins a Compute Engine VM to the
  3346  // domain
  3347  //
  3348  //   - domain: The domain resource name using the form:
  3349  //     projects/{project_id}/locations/global/domains/{domain_name}.
  3350  func (r *ProjectsLocationsGlobalDomainsService) DomainJoinMachine(domain string, domainjoinmachinerequest *DomainJoinMachineRequest) *ProjectsLocationsGlobalDomainsDomainJoinMachineCall {
  3351  	c := &ProjectsLocationsGlobalDomainsDomainJoinMachineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3352  	c.domain = domain
  3353  	c.domainjoinmachinerequest = domainjoinmachinerequest
  3354  	return c
  3355  }
  3356  
  3357  // Fields allows partial responses to be retrieved. See
  3358  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3359  // details.
  3360  func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsDomainJoinMachineCall {
  3361  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3362  	return c
  3363  }
  3364  
  3365  // Context sets the context to be used in this call's Do method.
  3366  func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsDomainJoinMachineCall {
  3367  	c.ctx_ = ctx
  3368  	return c
  3369  }
  3370  
  3371  // Header returns a http.Header that can be modified by the caller to add
  3372  // headers to the request.
  3373  func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) Header() http.Header {
  3374  	if c.header_ == nil {
  3375  		c.header_ = make(http.Header)
  3376  	}
  3377  	return c.header_
  3378  }
  3379  
  3380  func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) doRequest(alt string) (*http.Response, error) {
  3381  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3382  	var body io.Reader = nil
  3383  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainjoinmachinerequest)
  3384  	if err != nil {
  3385  		return nil, err
  3386  	}
  3387  	c.urlParams_.Set("alt", alt)
  3388  	c.urlParams_.Set("prettyPrint", "false")
  3389  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+domain}:domainJoinMachine")
  3390  	urls += "?" + c.urlParams_.Encode()
  3391  	req, err := http.NewRequest("POST", urls, body)
  3392  	if err != nil {
  3393  		return nil, err
  3394  	}
  3395  	req.Header = reqHeaders
  3396  	googleapi.Expand(req.URL, map[string]string{
  3397  		"domain": c.domain,
  3398  	})
  3399  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3400  }
  3401  
  3402  // Do executes the "managedidentities.projects.locations.global.domains.domainJoinMachine" call.
  3403  // Any non-2xx status code is an error. Response headers are in either
  3404  // *DomainJoinMachineResponse.ServerResponse.Header or (if a response was
  3405  // returned at all) in error.(*googleapi.Error).Header. Use
  3406  // googleapi.IsNotModified to check whether the returned error was because
  3407  // http.StatusNotModified was returned.
  3408  func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) Do(opts ...googleapi.CallOption) (*DomainJoinMachineResponse, error) {
  3409  	gensupport.SetOptions(c.urlParams_, opts...)
  3410  	res, err := c.doRequest("json")
  3411  	if res != nil && res.StatusCode == http.StatusNotModified {
  3412  		if res.Body != nil {
  3413  			res.Body.Close()
  3414  		}
  3415  		return nil, gensupport.WrapError(&googleapi.Error{
  3416  			Code:   res.StatusCode,
  3417  			Header: res.Header,
  3418  		})
  3419  	}
  3420  	if err != nil {
  3421  		return nil, err
  3422  	}
  3423  	defer googleapi.CloseBody(res)
  3424  	if err := googleapi.CheckResponse(res); err != nil {
  3425  		return nil, gensupport.WrapError(err)
  3426  	}
  3427  	ret := &DomainJoinMachineResponse{
  3428  		ServerResponse: googleapi.ServerResponse{
  3429  			Header:         res.Header,
  3430  			HTTPStatusCode: res.StatusCode,
  3431  		},
  3432  	}
  3433  	target := &ret
  3434  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3435  		return nil, err
  3436  	}
  3437  	return ret, nil
  3438  }
  3439  
  3440  type ProjectsLocationsGlobalDomainsEnableMigrationCall struct {
  3441  	s                      *Service
  3442  	domain                 string
  3443  	enablemigrationrequest *EnableMigrationRequest
  3444  	urlParams_             gensupport.URLParams
  3445  	ctx_                   context.Context
  3446  	header_                http.Header
  3447  }
  3448  
  3449  // EnableMigration: Enable Domain Migration
  3450  //
  3451  //   - domain: The domain resource name using the form:
  3452  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  3453  func (r *ProjectsLocationsGlobalDomainsService) EnableMigration(domain string, enablemigrationrequest *EnableMigrationRequest) *ProjectsLocationsGlobalDomainsEnableMigrationCall {
  3454  	c := &ProjectsLocationsGlobalDomainsEnableMigrationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3455  	c.domain = domain
  3456  	c.enablemigrationrequest = enablemigrationrequest
  3457  	return c
  3458  }
  3459  
  3460  // Fields allows partial responses to be retrieved. See
  3461  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3462  // details.
  3463  func (c *ProjectsLocationsGlobalDomainsEnableMigrationCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsEnableMigrationCall {
  3464  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3465  	return c
  3466  }
  3467  
  3468  // Context sets the context to be used in this call's Do method.
  3469  func (c *ProjectsLocationsGlobalDomainsEnableMigrationCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsEnableMigrationCall {
  3470  	c.ctx_ = ctx
  3471  	return c
  3472  }
  3473  
  3474  // Header returns a http.Header that can be modified by the caller to add
  3475  // headers to the request.
  3476  func (c *ProjectsLocationsGlobalDomainsEnableMigrationCall) Header() http.Header {
  3477  	if c.header_ == nil {
  3478  		c.header_ = make(http.Header)
  3479  	}
  3480  	return c.header_
  3481  }
  3482  
  3483  func (c *ProjectsLocationsGlobalDomainsEnableMigrationCall) doRequest(alt string) (*http.Response, error) {
  3484  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3485  	var body io.Reader = nil
  3486  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.enablemigrationrequest)
  3487  	if err != nil {
  3488  		return nil, err
  3489  	}
  3490  	c.urlParams_.Set("alt", alt)
  3491  	c.urlParams_.Set("prettyPrint", "false")
  3492  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+domain}:enableMigration")
  3493  	urls += "?" + c.urlParams_.Encode()
  3494  	req, err := http.NewRequest("POST", urls, body)
  3495  	if err != nil {
  3496  		return nil, err
  3497  	}
  3498  	req.Header = reqHeaders
  3499  	googleapi.Expand(req.URL, map[string]string{
  3500  		"domain": c.domain,
  3501  	})
  3502  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3503  }
  3504  
  3505  // Do executes the "managedidentities.projects.locations.global.domains.enableMigration" call.
  3506  // Any non-2xx status code is an error. Response headers are in either
  3507  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3508  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3509  // whether the returned error was because http.StatusNotModified was returned.
  3510  func (c *ProjectsLocationsGlobalDomainsEnableMigrationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3511  	gensupport.SetOptions(c.urlParams_, opts...)
  3512  	res, err := c.doRequest("json")
  3513  	if res != nil && res.StatusCode == http.StatusNotModified {
  3514  		if res.Body != nil {
  3515  			res.Body.Close()
  3516  		}
  3517  		return nil, gensupport.WrapError(&googleapi.Error{
  3518  			Code:   res.StatusCode,
  3519  			Header: res.Header,
  3520  		})
  3521  	}
  3522  	if err != nil {
  3523  		return nil, err
  3524  	}
  3525  	defer googleapi.CloseBody(res)
  3526  	if err := googleapi.CheckResponse(res); err != nil {
  3527  		return nil, gensupport.WrapError(err)
  3528  	}
  3529  	ret := &Operation{
  3530  		ServerResponse: googleapi.ServerResponse{
  3531  			Header:         res.Header,
  3532  			HTTPStatusCode: res.StatusCode,
  3533  		},
  3534  	}
  3535  	target := &ret
  3536  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3537  		return nil, err
  3538  	}
  3539  	return ret, nil
  3540  }
  3541  
  3542  type ProjectsLocationsGlobalDomainsExtendSchemaCall struct {
  3543  	s                   *Service
  3544  	domain              string
  3545  	extendschemarequest *ExtendSchemaRequest
  3546  	urlParams_          gensupport.URLParams
  3547  	ctx_                context.Context
  3548  	header_             http.Header
  3549  }
  3550  
  3551  // ExtendSchema: Extend Schema for Domain
  3552  //
  3553  //   - domain: The domain resource name using the form:
  3554  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  3555  func (r *ProjectsLocationsGlobalDomainsService) ExtendSchema(domain string, extendschemarequest *ExtendSchemaRequest) *ProjectsLocationsGlobalDomainsExtendSchemaCall {
  3556  	c := &ProjectsLocationsGlobalDomainsExtendSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3557  	c.domain = domain
  3558  	c.extendschemarequest = extendschemarequest
  3559  	return c
  3560  }
  3561  
  3562  // Fields allows partial responses to be retrieved. See
  3563  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3564  // details.
  3565  func (c *ProjectsLocationsGlobalDomainsExtendSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsExtendSchemaCall {
  3566  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3567  	return c
  3568  }
  3569  
  3570  // Context sets the context to be used in this call's Do method.
  3571  func (c *ProjectsLocationsGlobalDomainsExtendSchemaCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsExtendSchemaCall {
  3572  	c.ctx_ = ctx
  3573  	return c
  3574  }
  3575  
  3576  // Header returns a http.Header that can be modified by the caller to add
  3577  // headers to the request.
  3578  func (c *ProjectsLocationsGlobalDomainsExtendSchemaCall) Header() http.Header {
  3579  	if c.header_ == nil {
  3580  		c.header_ = make(http.Header)
  3581  	}
  3582  	return c.header_
  3583  }
  3584  
  3585  func (c *ProjectsLocationsGlobalDomainsExtendSchemaCall) doRequest(alt string) (*http.Response, error) {
  3586  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3587  	var body io.Reader = nil
  3588  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.extendschemarequest)
  3589  	if err != nil {
  3590  		return nil, err
  3591  	}
  3592  	c.urlParams_.Set("alt", alt)
  3593  	c.urlParams_.Set("prettyPrint", "false")
  3594  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+domain}:extendSchema")
  3595  	urls += "?" + c.urlParams_.Encode()
  3596  	req, err := http.NewRequest("POST", urls, body)
  3597  	if err != nil {
  3598  		return nil, err
  3599  	}
  3600  	req.Header = reqHeaders
  3601  	googleapi.Expand(req.URL, map[string]string{
  3602  		"domain": c.domain,
  3603  	})
  3604  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3605  }
  3606  
  3607  // Do executes the "managedidentities.projects.locations.global.domains.extendSchema" call.
  3608  // Any non-2xx status code is an error. Response headers are in either
  3609  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3610  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3611  // whether the returned error was because http.StatusNotModified was returned.
  3612  func (c *ProjectsLocationsGlobalDomainsExtendSchemaCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3613  	gensupport.SetOptions(c.urlParams_, opts...)
  3614  	res, err := c.doRequest("json")
  3615  	if res != nil && res.StatusCode == http.StatusNotModified {
  3616  		if res.Body != nil {
  3617  			res.Body.Close()
  3618  		}
  3619  		return nil, gensupport.WrapError(&googleapi.Error{
  3620  			Code:   res.StatusCode,
  3621  			Header: res.Header,
  3622  		})
  3623  	}
  3624  	if err != nil {
  3625  		return nil, err
  3626  	}
  3627  	defer googleapi.CloseBody(res)
  3628  	if err := googleapi.CheckResponse(res); err != nil {
  3629  		return nil, gensupport.WrapError(err)
  3630  	}
  3631  	ret := &Operation{
  3632  		ServerResponse: googleapi.ServerResponse{
  3633  			Header:         res.Header,
  3634  			HTTPStatusCode: res.StatusCode,
  3635  		},
  3636  	}
  3637  	target := &ret
  3638  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3639  		return nil, err
  3640  	}
  3641  	return ret, nil
  3642  }
  3643  
  3644  type ProjectsLocationsGlobalDomainsGetCall struct {
  3645  	s            *Service
  3646  	name         string
  3647  	urlParams_   gensupport.URLParams
  3648  	ifNoneMatch_ string
  3649  	ctx_         context.Context
  3650  	header_      http.Header
  3651  }
  3652  
  3653  // Get: Gets information about a domain.
  3654  //
  3655  //   - name: The domain resource name using the form:
  3656  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  3657  func (r *ProjectsLocationsGlobalDomainsService) Get(name string) *ProjectsLocationsGlobalDomainsGetCall {
  3658  	c := &ProjectsLocationsGlobalDomainsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3659  	c.name = name
  3660  	return c
  3661  }
  3662  
  3663  // Fields allows partial responses to be retrieved. See
  3664  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3665  // details.
  3666  func (c *ProjectsLocationsGlobalDomainsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsGetCall {
  3667  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3668  	return c
  3669  }
  3670  
  3671  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3672  // object's ETag matches the given value. This is useful for getting updates
  3673  // only after the object has changed since the last request.
  3674  func (c *ProjectsLocationsGlobalDomainsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalDomainsGetCall {
  3675  	c.ifNoneMatch_ = entityTag
  3676  	return c
  3677  }
  3678  
  3679  // Context sets the context to be used in this call's Do method.
  3680  func (c *ProjectsLocationsGlobalDomainsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsGetCall {
  3681  	c.ctx_ = ctx
  3682  	return c
  3683  }
  3684  
  3685  // Header returns a http.Header that can be modified by the caller to add
  3686  // headers to the request.
  3687  func (c *ProjectsLocationsGlobalDomainsGetCall) Header() http.Header {
  3688  	if c.header_ == nil {
  3689  		c.header_ = make(http.Header)
  3690  	}
  3691  	return c.header_
  3692  }
  3693  
  3694  func (c *ProjectsLocationsGlobalDomainsGetCall) doRequest(alt string) (*http.Response, error) {
  3695  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3696  	if c.ifNoneMatch_ != "" {
  3697  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3698  	}
  3699  	var body io.Reader = nil
  3700  	c.urlParams_.Set("alt", alt)
  3701  	c.urlParams_.Set("prettyPrint", "false")
  3702  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  3703  	urls += "?" + c.urlParams_.Encode()
  3704  	req, err := http.NewRequest("GET", 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 "managedidentities.projects.locations.global.domains.get" call.
  3716  // Any non-2xx status code is an error. Response headers are in either
  3717  // *Domain.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 *ProjectsLocationsGlobalDomainsGetCall) Do(opts ...googleapi.CallOption) (*Domain, 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 := &Domain{
  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 ProjectsLocationsGlobalDomainsGetIamPolicyCall struct {
  3753  	s            *Service
  3754  	resource     string
  3755  	urlParams_   gensupport.URLParams
  3756  	ifNoneMatch_ string
  3757  	ctx_         context.Context
  3758  	header_      http.Header
  3759  }
  3760  
  3761  // GetIamPolicy: Gets the access control policy for a resource. Returns an
  3762  // empty policy if the resource exists and does not have a policy set.
  3763  //
  3764  //   - resource: REQUIRED: The resource for which the policy is being requested.
  3765  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  3766  //     for the appropriate value for this field.
  3767  func (r *ProjectsLocationsGlobalDomainsService) GetIamPolicy(resource string) *ProjectsLocationsGlobalDomainsGetIamPolicyCall {
  3768  	c := &ProjectsLocationsGlobalDomainsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3769  	c.resource = resource
  3770  	return c
  3771  }
  3772  
  3773  // OptionsRequestedPolicyVersion sets the optional parameter
  3774  // "options.requestedPolicyVersion": The maximum policy version that will be
  3775  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
  3776  // an invalid value will be rejected. Requests for policies with any
  3777  // conditional role bindings must specify version 3. Policies with no
  3778  // conditional role bindings may specify any valid value or leave the field
  3779  // unset. The policy in the response might use the policy version that you
  3780  // specified, or it might use a lower policy version. For example, if you
  3781  // specify version 3, but the policy has no conditional role bindings, the
  3782  // response uses version 1. To learn which resources support conditions in
  3783  // their IAM policies, see the IAM documentation
  3784  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  3785  func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGlobalDomainsGetIamPolicyCall {
  3786  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  3787  	return c
  3788  }
  3789  
  3790  // Fields allows partial responses to be retrieved. See
  3791  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3792  // details.
  3793  func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsGetIamPolicyCall {
  3794  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3795  	return c
  3796  }
  3797  
  3798  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3799  // object's ETag matches the given value. This is useful for getting updates
  3800  // only after the object has changed since the last request.
  3801  func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalDomainsGetIamPolicyCall {
  3802  	c.ifNoneMatch_ = entityTag
  3803  	return c
  3804  }
  3805  
  3806  // Context sets the context to be used in this call's Do method.
  3807  func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsGetIamPolicyCall {
  3808  	c.ctx_ = ctx
  3809  	return c
  3810  }
  3811  
  3812  // Header returns a http.Header that can be modified by the caller to add
  3813  // headers to the request.
  3814  func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) Header() http.Header {
  3815  	if c.header_ == nil {
  3816  		c.header_ = make(http.Header)
  3817  	}
  3818  	return c.header_
  3819  }
  3820  
  3821  func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  3822  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3823  	if c.ifNoneMatch_ != "" {
  3824  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3825  	}
  3826  	var body io.Reader = nil
  3827  	c.urlParams_.Set("alt", alt)
  3828  	c.urlParams_.Set("prettyPrint", "false")
  3829  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  3830  	urls += "?" + c.urlParams_.Encode()
  3831  	req, err := http.NewRequest("GET", urls, body)
  3832  	if err != nil {
  3833  		return nil, err
  3834  	}
  3835  	req.Header = reqHeaders
  3836  	googleapi.Expand(req.URL, map[string]string{
  3837  		"resource": c.resource,
  3838  	})
  3839  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3840  }
  3841  
  3842  // Do executes the "managedidentities.projects.locations.global.domains.getIamPolicy" call.
  3843  // Any non-2xx status code is an error. Response headers are in either
  3844  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  3845  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3846  // whether the returned error was because http.StatusNotModified was returned.
  3847  func (c *ProjectsLocationsGlobalDomainsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  3848  	gensupport.SetOptions(c.urlParams_, opts...)
  3849  	res, err := c.doRequest("json")
  3850  	if res != nil && res.StatusCode == http.StatusNotModified {
  3851  		if res.Body != nil {
  3852  			res.Body.Close()
  3853  		}
  3854  		return nil, gensupport.WrapError(&googleapi.Error{
  3855  			Code:   res.StatusCode,
  3856  			Header: res.Header,
  3857  		})
  3858  	}
  3859  	if err != nil {
  3860  		return nil, err
  3861  	}
  3862  	defer googleapi.CloseBody(res)
  3863  	if err := googleapi.CheckResponse(res); err != nil {
  3864  		return nil, gensupport.WrapError(err)
  3865  	}
  3866  	ret := &Policy{
  3867  		ServerResponse: googleapi.ServerResponse{
  3868  			Header:         res.Header,
  3869  			HTTPStatusCode: res.StatusCode,
  3870  		},
  3871  	}
  3872  	target := &ret
  3873  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3874  		return nil, err
  3875  	}
  3876  	return ret, nil
  3877  }
  3878  
  3879  type ProjectsLocationsGlobalDomainsGetLdapssettingsCall struct {
  3880  	s            *Service
  3881  	name         string
  3882  	urlParams_   gensupport.URLParams
  3883  	ifNoneMatch_ string
  3884  	ctx_         context.Context
  3885  	header_      http.Header
  3886  }
  3887  
  3888  // GetLdapssettings: Gets the domain ldaps settings.
  3889  //
  3890  //   - name: The domain resource name using the form:
  3891  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  3892  func (r *ProjectsLocationsGlobalDomainsService) GetLdapssettings(name string) *ProjectsLocationsGlobalDomainsGetLdapssettingsCall {
  3893  	c := &ProjectsLocationsGlobalDomainsGetLdapssettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3894  	c.name = name
  3895  	return c
  3896  }
  3897  
  3898  // Fields allows partial responses to be retrieved. See
  3899  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3900  // details.
  3901  func (c *ProjectsLocationsGlobalDomainsGetLdapssettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsGetLdapssettingsCall {
  3902  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3903  	return c
  3904  }
  3905  
  3906  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3907  // object's ETag matches the given value. This is useful for getting updates
  3908  // only after the object has changed since the last request.
  3909  func (c *ProjectsLocationsGlobalDomainsGetLdapssettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalDomainsGetLdapssettingsCall {
  3910  	c.ifNoneMatch_ = entityTag
  3911  	return c
  3912  }
  3913  
  3914  // Context sets the context to be used in this call's Do method.
  3915  func (c *ProjectsLocationsGlobalDomainsGetLdapssettingsCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsGetLdapssettingsCall {
  3916  	c.ctx_ = ctx
  3917  	return c
  3918  }
  3919  
  3920  // Header returns a http.Header that can be modified by the caller to add
  3921  // headers to the request.
  3922  func (c *ProjectsLocationsGlobalDomainsGetLdapssettingsCall) Header() http.Header {
  3923  	if c.header_ == nil {
  3924  		c.header_ = make(http.Header)
  3925  	}
  3926  	return c.header_
  3927  }
  3928  
  3929  func (c *ProjectsLocationsGlobalDomainsGetLdapssettingsCall) doRequest(alt string) (*http.Response, error) {
  3930  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3931  	if c.ifNoneMatch_ != "" {
  3932  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3933  	}
  3934  	var body io.Reader = nil
  3935  	c.urlParams_.Set("alt", alt)
  3936  	c.urlParams_.Set("prettyPrint", "false")
  3937  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/ldapssettings")
  3938  	urls += "?" + c.urlParams_.Encode()
  3939  	req, err := http.NewRequest("GET", urls, body)
  3940  	if err != nil {
  3941  		return nil, err
  3942  	}
  3943  	req.Header = reqHeaders
  3944  	googleapi.Expand(req.URL, map[string]string{
  3945  		"name": c.name,
  3946  	})
  3947  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3948  }
  3949  
  3950  // Do executes the "managedidentities.projects.locations.global.domains.getLdapssettings" call.
  3951  // Any non-2xx status code is an error. Response headers are in either
  3952  // *LDAPSSettings.ServerResponse.Header or (if a response was returned at all)
  3953  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3954  // whether the returned error was because http.StatusNotModified was returned.
  3955  func (c *ProjectsLocationsGlobalDomainsGetLdapssettingsCall) Do(opts ...googleapi.CallOption) (*LDAPSSettings, error) {
  3956  	gensupport.SetOptions(c.urlParams_, opts...)
  3957  	res, err := c.doRequest("json")
  3958  	if res != nil && res.StatusCode == http.StatusNotModified {
  3959  		if res.Body != nil {
  3960  			res.Body.Close()
  3961  		}
  3962  		return nil, gensupport.WrapError(&googleapi.Error{
  3963  			Code:   res.StatusCode,
  3964  			Header: res.Header,
  3965  		})
  3966  	}
  3967  	if err != nil {
  3968  		return nil, err
  3969  	}
  3970  	defer googleapi.CloseBody(res)
  3971  	if err := googleapi.CheckResponse(res); err != nil {
  3972  		return nil, gensupport.WrapError(err)
  3973  	}
  3974  	ret := &LDAPSSettings{
  3975  		ServerResponse: googleapi.ServerResponse{
  3976  			Header:         res.Header,
  3977  			HTTPStatusCode: res.StatusCode,
  3978  		},
  3979  	}
  3980  	target := &ret
  3981  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3982  		return nil, err
  3983  	}
  3984  	return ret, nil
  3985  }
  3986  
  3987  type ProjectsLocationsGlobalDomainsListCall struct {
  3988  	s            *Service
  3989  	parent       string
  3990  	urlParams_   gensupport.URLParams
  3991  	ifNoneMatch_ string
  3992  	ctx_         context.Context
  3993  	header_      http.Header
  3994  }
  3995  
  3996  // List: Lists domains in a project.
  3997  //
  3998  //   - parent: The resource name of the domain location using the form:
  3999  //     `projects/{project_id}/locations/global`.
  4000  func (r *ProjectsLocationsGlobalDomainsService) List(parent string) *ProjectsLocationsGlobalDomainsListCall {
  4001  	c := &ProjectsLocationsGlobalDomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4002  	c.parent = parent
  4003  	return c
  4004  }
  4005  
  4006  // Filter sets the optional parameter "filter": A filter specifying constraints
  4007  // of a list operation. For example, `Domain.fqdn="mydomain.myorginization".
  4008  func (c *ProjectsLocationsGlobalDomainsListCall) Filter(filter string) *ProjectsLocationsGlobalDomainsListCall {
  4009  	c.urlParams_.Set("filter", filter)
  4010  	return c
  4011  }
  4012  
  4013  // OrderBy sets the optional parameter "orderBy": Specifies the ordering of
  4014  // results. See Sorting order
  4015  // (https://cloud.google.com/apis/design/design_patterns#sorting_order) for
  4016  // more information.
  4017  func (c *ProjectsLocationsGlobalDomainsListCall) OrderBy(orderBy string) *ProjectsLocationsGlobalDomainsListCall {
  4018  	c.urlParams_.Set("orderBy", orderBy)
  4019  	return c
  4020  }
  4021  
  4022  // PageSize sets the optional parameter "pageSize": The maximum number of items
  4023  // to return. If not specified, a default value of 1000 will be used.
  4024  // Regardless of the page_size value, the response may include a partial list.
  4025  // Callers should rely on a response's next_page_token to determine if there
  4026  // are additional results to list.
  4027  func (c *ProjectsLocationsGlobalDomainsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalDomainsListCall {
  4028  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  4029  	return c
  4030  }
  4031  
  4032  // PageToken sets the optional parameter "pageToken": The `next_page_token`
  4033  // value returned from a previous ListDomainsRequest request, if any.
  4034  func (c *ProjectsLocationsGlobalDomainsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalDomainsListCall {
  4035  	c.urlParams_.Set("pageToken", pageToken)
  4036  	return c
  4037  }
  4038  
  4039  // Fields allows partial responses to be retrieved. See
  4040  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4041  // details.
  4042  func (c *ProjectsLocationsGlobalDomainsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsListCall {
  4043  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4044  	return c
  4045  }
  4046  
  4047  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4048  // object's ETag matches the given value. This is useful for getting updates
  4049  // only after the object has changed since the last request.
  4050  func (c *ProjectsLocationsGlobalDomainsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalDomainsListCall {
  4051  	c.ifNoneMatch_ = entityTag
  4052  	return c
  4053  }
  4054  
  4055  // Context sets the context to be used in this call's Do method.
  4056  func (c *ProjectsLocationsGlobalDomainsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsListCall {
  4057  	c.ctx_ = ctx
  4058  	return c
  4059  }
  4060  
  4061  // Header returns a http.Header that can be modified by the caller to add
  4062  // headers to the request.
  4063  func (c *ProjectsLocationsGlobalDomainsListCall) Header() http.Header {
  4064  	if c.header_ == nil {
  4065  		c.header_ = make(http.Header)
  4066  	}
  4067  	return c.header_
  4068  }
  4069  
  4070  func (c *ProjectsLocationsGlobalDomainsListCall) doRequest(alt string) (*http.Response, error) {
  4071  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4072  	if c.ifNoneMatch_ != "" {
  4073  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4074  	}
  4075  	var body io.Reader = nil
  4076  	c.urlParams_.Set("alt", alt)
  4077  	c.urlParams_.Set("prettyPrint", "false")
  4078  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/domains")
  4079  	urls += "?" + c.urlParams_.Encode()
  4080  	req, err := http.NewRequest("GET", urls, body)
  4081  	if err != nil {
  4082  		return nil, err
  4083  	}
  4084  	req.Header = reqHeaders
  4085  	googleapi.Expand(req.URL, map[string]string{
  4086  		"parent": c.parent,
  4087  	})
  4088  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4089  }
  4090  
  4091  // Do executes the "managedidentities.projects.locations.global.domains.list" call.
  4092  // Any non-2xx status code is an error. Response headers are in either
  4093  // *ListDomainsResponse.ServerResponse.Header or (if a response was returned at
  4094  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  4095  // check whether the returned error was because http.StatusNotModified was
  4096  // returned.
  4097  func (c *ProjectsLocationsGlobalDomainsListCall) Do(opts ...googleapi.CallOption) (*ListDomainsResponse, error) {
  4098  	gensupport.SetOptions(c.urlParams_, opts...)
  4099  	res, err := c.doRequest("json")
  4100  	if res != nil && res.StatusCode == http.StatusNotModified {
  4101  		if res.Body != nil {
  4102  			res.Body.Close()
  4103  		}
  4104  		return nil, gensupport.WrapError(&googleapi.Error{
  4105  			Code:   res.StatusCode,
  4106  			Header: res.Header,
  4107  		})
  4108  	}
  4109  	if err != nil {
  4110  		return nil, err
  4111  	}
  4112  	defer googleapi.CloseBody(res)
  4113  	if err := googleapi.CheckResponse(res); err != nil {
  4114  		return nil, gensupport.WrapError(err)
  4115  	}
  4116  	ret := &ListDomainsResponse{
  4117  		ServerResponse: googleapi.ServerResponse{
  4118  			Header:         res.Header,
  4119  			HTTPStatusCode: res.StatusCode,
  4120  		},
  4121  	}
  4122  	target := &ret
  4123  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4124  		return nil, err
  4125  	}
  4126  	return ret, nil
  4127  }
  4128  
  4129  // Pages invokes f for each page of results.
  4130  // A non-nil error returned from f will halt the iteration.
  4131  // The provided context supersedes any context provided to the Context method.
  4132  func (c *ProjectsLocationsGlobalDomainsListCall) Pages(ctx context.Context, f func(*ListDomainsResponse) error) error {
  4133  	c.ctx_ = ctx
  4134  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  4135  	for {
  4136  		x, err := c.Do()
  4137  		if err != nil {
  4138  			return err
  4139  		}
  4140  		if err := f(x); err != nil {
  4141  			return err
  4142  		}
  4143  		if x.NextPageToken == "" {
  4144  			return nil
  4145  		}
  4146  		c.PageToken(x.NextPageToken)
  4147  	}
  4148  }
  4149  
  4150  type ProjectsLocationsGlobalDomainsPatchCall struct {
  4151  	s          *Service
  4152  	name       string
  4153  	domain     *Domain
  4154  	urlParams_ gensupport.URLParams
  4155  	ctx_       context.Context
  4156  	header_    http.Header
  4157  }
  4158  
  4159  // Patch: Updates the metadata and configuration of a domain.
  4160  //
  4161  //   - name: The unique name of the domain using the form:
  4162  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  4163  func (r *ProjectsLocationsGlobalDomainsService) Patch(name string, domain *Domain) *ProjectsLocationsGlobalDomainsPatchCall {
  4164  	c := &ProjectsLocationsGlobalDomainsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4165  	c.name = name
  4166  	c.domain = domain
  4167  	return c
  4168  }
  4169  
  4170  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
  4171  // fields to update. At least one path must be supplied in this field. The
  4172  // elements of the repeated paths field may only include fields from Domain: *
  4173  // `labels` * `locations` * `authorized_networks` * `audit_logs_enabled`
  4174  func (c *ProjectsLocationsGlobalDomainsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalDomainsPatchCall {
  4175  	c.urlParams_.Set("updateMask", updateMask)
  4176  	return c
  4177  }
  4178  
  4179  // Fields allows partial responses to be retrieved. See
  4180  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4181  // details.
  4182  func (c *ProjectsLocationsGlobalDomainsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsPatchCall {
  4183  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4184  	return c
  4185  }
  4186  
  4187  // Context sets the context to be used in this call's Do method.
  4188  func (c *ProjectsLocationsGlobalDomainsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsPatchCall {
  4189  	c.ctx_ = ctx
  4190  	return c
  4191  }
  4192  
  4193  // Header returns a http.Header that can be modified by the caller to add
  4194  // headers to the request.
  4195  func (c *ProjectsLocationsGlobalDomainsPatchCall) Header() http.Header {
  4196  	if c.header_ == nil {
  4197  		c.header_ = make(http.Header)
  4198  	}
  4199  	return c.header_
  4200  }
  4201  
  4202  func (c *ProjectsLocationsGlobalDomainsPatchCall) doRequest(alt string) (*http.Response, error) {
  4203  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4204  	var body io.Reader = nil
  4205  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domain)
  4206  	if err != nil {
  4207  		return nil, err
  4208  	}
  4209  	c.urlParams_.Set("alt", alt)
  4210  	c.urlParams_.Set("prettyPrint", "false")
  4211  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  4212  	urls += "?" + c.urlParams_.Encode()
  4213  	req, err := http.NewRequest("PATCH", urls, body)
  4214  	if err != nil {
  4215  		return nil, err
  4216  	}
  4217  	req.Header = reqHeaders
  4218  	googleapi.Expand(req.URL, map[string]string{
  4219  		"name": c.name,
  4220  	})
  4221  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4222  }
  4223  
  4224  // Do executes the "managedidentities.projects.locations.global.domains.patch" call.
  4225  // Any non-2xx status code is an error. Response headers are in either
  4226  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4227  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4228  // whether the returned error was because http.StatusNotModified was returned.
  4229  func (c *ProjectsLocationsGlobalDomainsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4230  	gensupport.SetOptions(c.urlParams_, opts...)
  4231  	res, err := c.doRequest("json")
  4232  	if res != nil && res.StatusCode == http.StatusNotModified {
  4233  		if res.Body != nil {
  4234  			res.Body.Close()
  4235  		}
  4236  		return nil, gensupport.WrapError(&googleapi.Error{
  4237  			Code:   res.StatusCode,
  4238  			Header: res.Header,
  4239  		})
  4240  	}
  4241  	if err != nil {
  4242  		return nil, err
  4243  	}
  4244  	defer googleapi.CloseBody(res)
  4245  	if err := googleapi.CheckResponse(res); err != nil {
  4246  		return nil, gensupport.WrapError(err)
  4247  	}
  4248  	ret := &Operation{
  4249  		ServerResponse: googleapi.ServerResponse{
  4250  			Header:         res.Header,
  4251  			HTTPStatusCode: res.StatusCode,
  4252  		},
  4253  	}
  4254  	target := &ret
  4255  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4256  		return nil, err
  4257  	}
  4258  	return ret, nil
  4259  }
  4260  
  4261  type ProjectsLocationsGlobalDomainsReconfigureTrustCall struct {
  4262  	s                       *Service
  4263  	name                    string
  4264  	reconfiguretrustrequest *ReconfigureTrustRequest
  4265  	urlParams_              gensupport.URLParams
  4266  	ctx_                    context.Context
  4267  	header_                 http.Header
  4268  }
  4269  
  4270  // ReconfigureTrust: Updates the DNS conditional forwarder.
  4271  //
  4272  //   - name: The resource domain name, project name and location using the form:
  4273  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  4274  func (r *ProjectsLocationsGlobalDomainsService) ReconfigureTrust(name string, reconfiguretrustrequest *ReconfigureTrustRequest) *ProjectsLocationsGlobalDomainsReconfigureTrustCall {
  4275  	c := &ProjectsLocationsGlobalDomainsReconfigureTrustCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4276  	c.name = name
  4277  	c.reconfiguretrustrequest = reconfiguretrustrequest
  4278  	return c
  4279  }
  4280  
  4281  // Fields allows partial responses to be retrieved. See
  4282  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4283  // details.
  4284  func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsReconfigureTrustCall {
  4285  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4286  	return c
  4287  }
  4288  
  4289  // Context sets the context to be used in this call's Do method.
  4290  func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsReconfigureTrustCall {
  4291  	c.ctx_ = ctx
  4292  	return c
  4293  }
  4294  
  4295  // Header returns a http.Header that can be modified by the caller to add
  4296  // headers to the request.
  4297  func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) Header() http.Header {
  4298  	if c.header_ == nil {
  4299  		c.header_ = make(http.Header)
  4300  	}
  4301  	return c.header_
  4302  }
  4303  
  4304  func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) doRequest(alt string) (*http.Response, error) {
  4305  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4306  	var body io.Reader = nil
  4307  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.reconfiguretrustrequest)
  4308  	if err != nil {
  4309  		return nil, err
  4310  	}
  4311  	c.urlParams_.Set("alt", alt)
  4312  	c.urlParams_.Set("prettyPrint", "false")
  4313  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:reconfigureTrust")
  4314  	urls += "?" + c.urlParams_.Encode()
  4315  	req, err := http.NewRequest("POST", urls, body)
  4316  	if err != nil {
  4317  		return nil, err
  4318  	}
  4319  	req.Header = reqHeaders
  4320  	googleapi.Expand(req.URL, map[string]string{
  4321  		"name": c.name,
  4322  	})
  4323  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4324  }
  4325  
  4326  // Do executes the "managedidentities.projects.locations.global.domains.reconfigureTrust" call.
  4327  // Any non-2xx status code is an error. Response headers are in either
  4328  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4329  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4330  // whether the returned error was because http.StatusNotModified was returned.
  4331  func (c *ProjectsLocationsGlobalDomainsReconfigureTrustCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4332  	gensupport.SetOptions(c.urlParams_, opts...)
  4333  	res, err := c.doRequest("json")
  4334  	if res != nil && res.StatusCode == http.StatusNotModified {
  4335  		if res.Body != nil {
  4336  			res.Body.Close()
  4337  		}
  4338  		return nil, gensupport.WrapError(&googleapi.Error{
  4339  			Code:   res.StatusCode,
  4340  			Header: res.Header,
  4341  		})
  4342  	}
  4343  	if err != nil {
  4344  		return nil, err
  4345  	}
  4346  	defer googleapi.CloseBody(res)
  4347  	if err := googleapi.CheckResponse(res); err != nil {
  4348  		return nil, gensupport.WrapError(err)
  4349  	}
  4350  	ret := &Operation{
  4351  		ServerResponse: googleapi.ServerResponse{
  4352  			Header:         res.Header,
  4353  			HTTPStatusCode: res.StatusCode,
  4354  		},
  4355  	}
  4356  	target := &ret
  4357  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4358  		return nil, err
  4359  	}
  4360  	return ret, nil
  4361  }
  4362  
  4363  type ProjectsLocationsGlobalDomainsResetAdminPasswordCall struct {
  4364  	s                         *Service
  4365  	name                      string
  4366  	resetadminpasswordrequest *ResetAdminPasswordRequest
  4367  	urlParams_                gensupport.URLParams
  4368  	ctx_                      context.Context
  4369  	header_                   http.Header
  4370  }
  4371  
  4372  // ResetAdminPassword: Resets a domain's administrator password.
  4373  //
  4374  //   - name: The domain resource name using the form:
  4375  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  4376  func (r *ProjectsLocationsGlobalDomainsService) ResetAdminPassword(name string, resetadminpasswordrequest *ResetAdminPasswordRequest) *ProjectsLocationsGlobalDomainsResetAdminPasswordCall {
  4377  	c := &ProjectsLocationsGlobalDomainsResetAdminPasswordCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4378  	c.name = name
  4379  	c.resetadminpasswordrequest = resetadminpasswordrequest
  4380  	return c
  4381  }
  4382  
  4383  // Fields allows partial responses to be retrieved. See
  4384  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4385  // details.
  4386  func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsResetAdminPasswordCall {
  4387  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4388  	return c
  4389  }
  4390  
  4391  // Context sets the context to be used in this call's Do method.
  4392  func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsResetAdminPasswordCall {
  4393  	c.ctx_ = ctx
  4394  	return c
  4395  }
  4396  
  4397  // Header returns a http.Header that can be modified by the caller to add
  4398  // headers to the request.
  4399  func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) Header() http.Header {
  4400  	if c.header_ == nil {
  4401  		c.header_ = make(http.Header)
  4402  	}
  4403  	return c.header_
  4404  }
  4405  
  4406  func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) doRequest(alt string) (*http.Response, error) {
  4407  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4408  	var body io.Reader = nil
  4409  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.resetadminpasswordrequest)
  4410  	if err != nil {
  4411  		return nil, err
  4412  	}
  4413  	c.urlParams_.Set("alt", alt)
  4414  	c.urlParams_.Set("prettyPrint", "false")
  4415  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:resetAdminPassword")
  4416  	urls += "?" + c.urlParams_.Encode()
  4417  	req, err := http.NewRequest("POST", urls, body)
  4418  	if err != nil {
  4419  		return nil, err
  4420  	}
  4421  	req.Header = reqHeaders
  4422  	googleapi.Expand(req.URL, map[string]string{
  4423  		"name": c.name,
  4424  	})
  4425  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4426  }
  4427  
  4428  // Do executes the "managedidentities.projects.locations.global.domains.resetAdminPassword" call.
  4429  // Any non-2xx status code is an error. Response headers are in either
  4430  // *ResetAdminPasswordResponse.ServerResponse.Header or (if a response was
  4431  // returned at all) in error.(*googleapi.Error).Header. Use
  4432  // googleapi.IsNotModified to check whether the returned error was because
  4433  // http.StatusNotModified was returned.
  4434  func (c *ProjectsLocationsGlobalDomainsResetAdminPasswordCall) Do(opts ...googleapi.CallOption) (*ResetAdminPasswordResponse, error) {
  4435  	gensupport.SetOptions(c.urlParams_, opts...)
  4436  	res, err := c.doRequest("json")
  4437  	if res != nil && res.StatusCode == http.StatusNotModified {
  4438  		if res.Body != nil {
  4439  			res.Body.Close()
  4440  		}
  4441  		return nil, gensupport.WrapError(&googleapi.Error{
  4442  			Code:   res.StatusCode,
  4443  			Header: res.Header,
  4444  		})
  4445  	}
  4446  	if err != nil {
  4447  		return nil, err
  4448  	}
  4449  	defer googleapi.CloseBody(res)
  4450  	if err := googleapi.CheckResponse(res); err != nil {
  4451  		return nil, gensupport.WrapError(err)
  4452  	}
  4453  	ret := &ResetAdminPasswordResponse{
  4454  		ServerResponse: googleapi.ServerResponse{
  4455  			Header:         res.Header,
  4456  			HTTPStatusCode: res.StatusCode,
  4457  		},
  4458  	}
  4459  	target := &ret
  4460  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4461  		return nil, err
  4462  	}
  4463  	return ret, nil
  4464  }
  4465  
  4466  type ProjectsLocationsGlobalDomainsRestoreCall struct {
  4467  	s                    *Service
  4468  	name                 string
  4469  	restoredomainrequest *RestoreDomainRequest
  4470  	urlParams_           gensupport.URLParams
  4471  	ctx_                 context.Context
  4472  	header_              http.Header
  4473  }
  4474  
  4475  // Restore: RestoreDomain restores domain backup mentioned in the
  4476  // RestoreDomainRequest
  4477  //
  4478  // - name: Resource name for the domain to which the backup belongs.
  4479  func (r *ProjectsLocationsGlobalDomainsService) Restore(name string, restoredomainrequest *RestoreDomainRequest) *ProjectsLocationsGlobalDomainsRestoreCall {
  4480  	c := &ProjectsLocationsGlobalDomainsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4481  	c.name = name
  4482  	c.restoredomainrequest = restoredomainrequest
  4483  	return c
  4484  }
  4485  
  4486  // Fields allows partial responses to be retrieved. See
  4487  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4488  // details.
  4489  func (c *ProjectsLocationsGlobalDomainsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsRestoreCall {
  4490  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4491  	return c
  4492  }
  4493  
  4494  // Context sets the context to be used in this call's Do method.
  4495  func (c *ProjectsLocationsGlobalDomainsRestoreCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsRestoreCall {
  4496  	c.ctx_ = ctx
  4497  	return c
  4498  }
  4499  
  4500  // Header returns a http.Header that can be modified by the caller to add
  4501  // headers to the request.
  4502  func (c *ProjectsLocationsGlobalDomainsRestoreCall) Header() http.Header {
  4503  	if c.header_ == nil {
  4504  		c.header_ = make(http.Header)
  4505  	}
  4506  	return c.header_
  4507  }
  4508  
  4509  func (c *ProjectsLocationsGlobalDomainsRestoreCall) doRequest(alt string) (*http.Response, error) {
  4510  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4511  	var body io.Reader = nil
  4512  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.restoredomainrequest)
  4513  	if err != nil {
  4514  		return nil, err
  4515  	}
  4516  	c.urlParams_.Set("alt", alt)
  4517  	c.urlParams_.Set("prettyPrint", "false")
  4518  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:restore")
  4519  	urls += "?" + c.urlParams_.Encode()
  4520  	req, err := http.NewRequest("POST", urls, body)
  4521  	if err != nil {
  4522  		return nil, err
  4523  	}
  4524  	req.Header = reqHeaders
  4525  	googleapi.Expand(req.URL, map[string]string{
  4526  		"name": c.name,
  4527  	})
  4528  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4529  }
  4530  
  4531  // Do executes the "managedidentities.projects.locations.global.domains.restore" call.
  4532  // Any non-2xx status code is an error. Response headers are in either
  4533  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4534  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4535  // whether the returned error was because http.StatusNotModified was returned.
  4536  func (c *ProjectsLocationsGlobalDomainsRestoreCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4537  	gensupport.SetOptions(c.urlParams_, opts...)
  4538  	res, err := c.doRequest("json")
  4539  	if res != nil && res.StatusCode == http.StatusNotModified {
  4540  		if res.Body != nil {
  4541  			res.Body.Close()
  4542  		}
  4543  		return nil, gensupport.WrapError(&googleapi.Error{
  4544  			Code:   res.StatusCode,
  4545  			Header: res.Header,
  4546  		})
  4547  	}
  4548  	if err != nil {
  4549  		return nil, err
  4550  	}
  4551  	defer googleapi.CloseBody(res)
  4552  	if err := googleapi.CheckResponse(res); err != nil {
  4553  		return nil, gensupport.WrapError(err)
  4554  	}
  4555  	ret := &Operation{
  4556  		ServerResponse: googleapi.ServerResponse{
  4557  			Header:         res.Header,
  4558  			HTTPStatusCode: res.StatusCode,
  4559  		},
  4560  	}
  4561  	target := &ret
  4562  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4563  		return nil, err
  4564  	}
  4565  	return ret, nil
  4566  }
  4567  
  4568  type ProjectsLocationsGlobalDomainsSetIamPolicyCall struct {
  4569  	s                   *Service
  4570  	resource            string
  4571  	setiampolicyrequest *SetIamPolicyRequest
  4572  	urlParams_          gensupport.URLParams
  4573  	ctx_                context.Context
  4574  	header_             http.Header
  4575  }
  4576  
  4577  // SetIamPolicy: Sets the access control policy on the specified resource.
  4578  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
  4579  // and `PERMISSION_DENIED` errors.
  4580  //
  4581  //   - resource: REQUIRED: The resource for which the policy is being specified.
  4582  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  4583  //     for the appropriate value for this field.
  4584  func (r *ProjectsLocationsGlobalDomainsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsGlobalDomainsSetIamPolicyCall {
  4585  	c := &ProjectsLocationsGlobalDomainsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4586  	c.resource = resource
  4587  	c.setiampolicyrequest = setiampolicyrequest
  4588  	return c
  4589  }
  4590  
  4591  // Fields allows partial responses to be retrieved. See
  4592  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4593  // details.
  4594  func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsSetIamPolicyCall {
  4595  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4596  	return c
  4597  }
  4598  
  4599  // Context sets the context to be used in this call's Do method.
  4600  func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsSetIamPolicyCall {
  4601  	c.ctx_ = ctx
  4602  	return c
  4603  }
  4604  
  4605  // Header returns a http.Header that can be modified by the caller to add
  4606  // headers to the request.
  4607  func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) Header() http.Header {
  4608  	if c.header_ == nil {
  4609  		c.header_ = make(http.Header)
  4610  	}
  4611  	return c.header_
  4612  }
  4613  
  4614  func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  4615  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4616  	var body io.Reader = nil
  4617  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  4618  	if err != nil {
  4619  		return nil, err
  4620  	}
  4621  	c.urlParams_.Set("alt", alt)
  4622  	c.urlParams_.Set("prettyPrint", "false")
  4623  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
  4624  	urls += "?" + c.urlParams_.Encode()
  4625  	req, err := http.NewRequest("POST", urls, body)
  4626  	if err != nil {
  4627  		return nil, err
  4628  	}
  4629  	req.Header = reqHeaders
  4630  	googleapi.Expand(req.URL, map[string]string{
  4631  		"resource": c.resource,
  4632  	})
  4633  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4634  }
  4635  
  4636  // Do executes the "managedidentities.projects.locations.global.domains.setIamPolicy" call.
  4637  // Any non-2xx status code is an error. Response headers are in either
  4638  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  4639  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4640  // whether the returned error was because http.StatusNotModified was returned.
  4641  func (c *ProjectsLocationsGlobalDomainsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  4642  	gensupport.SetOptions(c.urlParams_, opts...)
  4643  	res, err := c.doRequest("json")
  4644  	if res != nil && res.StatusCode == http.StatusNotModified {
  4645  		if res.Body != nil {
  4646  			res.Body.Close()
  4647  		}
  4648  		return nil, gensupport.WrapError(&googleapi.Error{
  4649  			Code:   res.StatusCode,
  4650  			Header: res.Header,
  4651  		})
  4652  	}
  4653  	if err != nil {
  4654  		return nil, err
  4655  	}
  4656  	defer googleapi.CloseBody(res)
  4657  	if err := googleapi.CheckResponse(res); err != nil {
  4658  		return nil, gensupport.WrapError(err)
  4659  	}
  4660  	ret := &Policy{
  4661  		ServerResponse: googleapi.ServerResponse{
  4662  			Header:         res.Header,
  4663  			HTTPStatusCode: res.StatusCode,
  4664  		},
  4665  	}
  4666  	target := &ret
  4667  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4668  		return nil, err
  4669  	}
  4670  	return ret, nil
  4671  }
  4672  
  4673  type ProjectsLocationsGlobalDomainsTestIamPermissionsCall struct {
  4674  	s                         *Service
  4675  	resource                  string
  4676  	testiampermissionsrequest *TestIamPermissionsRequest
  4677  	urlParams_                gensupport.URLParams
  4678  	ctx_                      context.Context
  4679  	header_                   http.Header
  4680  }
  4681  
  4682  // TestIamPermissions: Returns permissions that a caller has on the specified
  4683  // resource. If the resource does not exist, this will return an empty set of
  4684  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
  4685  // used for building permission-aware UIs and command-line tools, not for
  4686  // authorization checking. This operation may "fail open" without warning.
  4687  //
  4688  //   - resource: REQUIRED: The resource for which the policy detail is being
  4689  //     requested. See Resource names
  4690  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  4691  //     value for this field.
  4692  func (r *ProjectsLocationsGlobalDomainsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsGlobalDomainsTestIamPermissionsCall {
  4693  	c := &ProjectsLocationsGlobalDomainsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4694  	c.resource = resource
  4695  	c.testiampermissionsrequest = testiampermissionsrequest
  4696  	return c
  4697  }
  4698  
  4699  // Fields allows partial responses to be retrieved. See
  4700  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4701  // details.
  4702  func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsTestIamPermissionsCall {
  4703  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4704  	return c
  4705  }
  4706  
  4707  // Context sets the context to be used in this call's Do method.
  4708  func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsTestIamPermissionsCall {
  4709  	c.ctx_ = ctx
  4710  	return c
  4711  }
  4712  
  4713  // Header returns a http.Header that can be modified by the caller to add
  4714  // headers to the request.
  4715  func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) Header() http.Header {
  4716  	if c.header_ == nil {
  4717  		c.header_ = make(http.Header)
  4718  	}
  4719  	return c.header_
  4720  }
  4721  
  4722  func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  4723  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4724  	var body io.Reader = nil
  4725  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  4726  	if err != nil {
  4727  		return nil, err
  4728  	}
  4729  	c.urlParams_.Set("alt", alt)
  4730  	c.urlParams_.Set("prettyPrint", "false")
  4731  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
  4732  	urls += "?" + c.urlParams_.Encode()
  4733  	req, err := http.NewRequest("POST", urls, body)
  4734  	if err != nil {
  4735  		return nil, err
  4736  	}
  4737  	req.Header = reqHeaders
  4738  	googleapi.Expand(req.URL, map[string]string{
  4739  		"resource": c.resource,
  4740  	})
  4741  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4742  }
  4743  
  4744  // Do executes the "managedidentities.projects.locations.global.domains.testIamPermissions" call.
  4745  // Any non-2xx status code is an error. Response headers are in either
  4746  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
  4747  // returned at all) in error.(*googleapi.Error).Header. Use
  4748  // googleapi.IsNotModified to check whether the returned error was because
  4749  // http.StatusNotModified was returned.
  4750  func (c *ProjectsLocationsGlobalDomainsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  4751  	gensupport.SetOptions(c.urlParams_, opts...)
  4752  	res, err := c.doRequest("json")
  4753  	if res != nil && res.StatusCode == http.StatusNotModified {
  4754  		if res.Body != nil {
  4755  			res.Body.Close()
  4756  		}
  4757  		return nil, gensupport.WrapError(&googleapi.Error{
  4758  			Code:   res.StatusCode,
  4759  			Header: res.Header,
  4760  		})
  4761  	}
  4762  	if err != nil {
  4763  		return nil, err
  4764  	}
  4765  	defer googleapi.CloseBody(res)
  4766  	if err := googleapi.CheckResponse(res); err != nil {
  4767  		return nil, gensupport.WrapError(err)
  4768  	}
  4769  	ret := &TestIamPermissionsResponse{
  4770  		ServerResponse: googleapi.ServerResponse{
  4771  			Header:         res.Header,
  4772  			HTTPStatusCode: res.StatusCode,
  4773  		},
  4774  	}
  4775  	target := &ret
  4776  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4777  		return nil, err
  4778  	}
  4779  	return ret, nil
  4780  }
  4781  
  4782  type ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall struct {
  4783  	s             *Service
  4784  	name          string
  4785  	ldapssettings *LDAPSSettings
  4786  	urlParams_    gensupport.URLParams
  4787  	ctx_          context.Context
  4788  	header_       http.Header
  4789  }
  4790  
  4791  // UpdateLdapssettings: Patches a single ldaps settings.
  4792  //
  4793  //   - name: The resource name of the LDAPS settings. Uses the form:
  4794  //     `projects/{project}/locations/{location}/domains/{domain}`.
  4795  func (r *ProjectsLocationsGlobalDomainsService) UpdateLdapssettings(name string, ldapssettings *LDAPSSettings) *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall {
  4796  	c := &ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4797  	c.name = name
  4798  	c.ldapssettings = ldapssettings
  4799  	return c
  4800  }
  4801  
  4802  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
  4803  // fields to update. At least one path must be supplied in this field. For the
  4804  // `FieldMask` definition, see
  4805  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
  4806  func (c *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall {
  4807  	c.urlParams_.Set("updateMask", updateMask)
  4808  	return c
  4809  }
  4810  
  4811  // Fields allows partial responses to be retrieved. See
  4812  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4813  // details.
  4814  func (c *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall {
  4815  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4816  	return c
  4817  }
  4818  
  4819  // Context sets the context to be used in this call's Do method.
  4820  func (c *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall {
  4821  	c.ctx_ = ctx
  4822  	return c
  4823  }
  4824  
  4825  // Header returns a http.Header that can be modified by the caller to add
  4826  // headers to the request.
  4827  func (c *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall) Header() http.Header {
  4828  	if c.header_ == nil {
  4829  		c.header_ = make(http.Header)
  4830  	}
  4831  	return c.header_
  4832  }
  4833  
  4834  func (c *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall) doRequest(alt string) (*http.Response, error) {
  4835  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4836  	var body io.Reader = nil
  4837  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ldapssettings)
  4838  	if err != nil {
  4839  		return nil, err
  4840  	}
  4841  	c.urlParams_.Set("alt", alt)
  4842  	c.urlParams_.Set("prettyPrint", "false")
  4843  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/ldapssettings")
  4844  	urls += "?" + c.urlParams_.Encode()
  4845  	req, err := http.NewRequest("PATCH", urls, body)
  4846  	if err != nil {
  4847  		return nil, err
  4848  	}
  4849  	req.Header = reqHeaders
  4850  	googleapi.Expand(req.URL, map[string]string{
  4851  		"name": c.name,
  4852  	})
  4853  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4854  }
  4855  
  4856  // Do executes the "managedidentities.projects.locations.global.domains.updateLdapssettings" call.
  4857  // Any non-2xx status code is an error. Response headers are in either
  4858  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4859  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4860  // whether the returned error was because http.StatusNotModified was returned.
  4861  func (c *ProjectsLocationsGlobalDomainsUpdateLdapssettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4862  	gensupport.SetOptions(c.urlParams_, opts...)
  4863  	res, err := c.doRequest("json")
  4864  	if res != nil && res.StatusCode == http.StatusNotModified {
  4865  		if res.Body != nil {
  4866  			res.Body.Close()
  4867  		}
  4868  		return nil, gensupport.WrapError(&googleapi.Error{
  4869  			Code:   res.StatusCode,
  4870  			Header: res.Header,
  4871  		})
  4872  	}
  4873  	if err != nil {
  4874  		return nil, err
  4875  	}
  4876  	defer googleapi.CloseBody(res)
  4877  	if err := googleapi.CheckResponse(res); err != nil {
  4878  		return nil, gensupport.WrapError(err)
  4879  	}
  4880  	ret := &Operation{
  4881  		ServerResponse: googleapi.ServerResponse{
  4882  			Header:         res.Header,
  4883  			HTTPStatusCode: res.StatusCode,
  4884  		},
  4885  	}
  4886  	target := &ret
  4887  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4888  		return nil, err
  4889  	}
  4890  	return ret, nil
  4891  }
  4892  
  4893  type ProjectsLocationsGlobalDomainsValidateTrustCall struct {
  4894  	s                    *Service
  4895  	name                 string
  4896  	validatetrustrequest *ValidateTrustRequest
  4897  	urlParams_           gensupport.URLParams
  4898  	ctx_                 context.Context
  4899  	header_              http.Header
  4900  }
  4901  
  4902  // ValidateTrust: Validates a trust state, that the target domain is reachable,
  4903  // and that the target domain is able to accept incoming trust requests.
  4904  //
  4905  //   - name: The resource domain name, project name, and location using the form:
  4906  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  4907  func (r *ProjectsLocationsGlobalDomainsService) ValidateTrust(name string, validatetrustrequest *ValidateTrustRequest) *ProjectsLocationsGlobalDomainsValidateTrustCall {
  4908  	c := &ProjectsLocationsGlobalDomainsValidateTrustCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4909  	c.name = name
  4910  	c.validatetrustrequest = validatetrustrequest
  4911  	return c
  4912  }
  4913  
  4914  // Fields allows partial responses to be retrieved. See
  4915  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4916  // details.
  4917  func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsValidateTrustCall {
  4918  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4919  	return c
  4920  }
  4921  
  4922  // Context sets the context to be used in this call's Do method.
  4923  func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsValidateTrustCall {
  4924  	c.ctx_ = ctx
  4925  	return c
  4926  }
  4927  
  4928  // Header returns a http.Header that can be modified by the caller to add
  4929  // headers to the request.
  4930  func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) Header() http.Header {
  4931  	if c.header_ == nil {
  4932  		c.header_ = make(http.Header)
  4933  	}
  4934  	return c.header_
  4935  }
  4936  
  4937  func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) doRequest(alt string) (*http.Response, error) {
  4938  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4939  	var body io.Reader = nil
  4940  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.validatetrustrequest)
  4941  	if err != nil {
  4942  		return nil, err
  4943  	}
  4944  	c.urlParams_.Set("alt", alt)
  4945  	c.urlParams_.Set("prettyPrint", "false")
  4946  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:validateTrust")
  4947  	urls += "?" + c.urlParams_.Encode()
  4948  	req, err := http.NewRequest("POST", urls, body)
  4949  	if err != nil {
  4950  		return nil, err
  4951  	}
  4952  	req.Header = reqHeaders
  4953  	googleapi.Expand(req.URL, map[string]string{
  4954  		"name": c.name,
  4955  	})
  4956  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4957  }
  4958  
  4959  // Do executes the "managedidentities.projects.locations.global.domains.validateTrust" call.
  4960  // Any non-2xx status code is an error. Response headers are in either
  4961  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4962  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4963  // whether the returned error was because http.StatusNotModified was returned.
  4964  func (c *ProjectsLocationsGlobalDomainsValidateTrustCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4965  	gensupport.SetOptions(c.urlParams_, opts...)
  4966  	res, err := c.doRequest("json")
  4967  	if res != nil && res.StatusCode == http.StatusNotModified {
  4968  		if res.Body != nil {
  4969  			res.Body.Close()
  4970  		}
  4971  		return nil, gensupport.WrapError(&googleapi.Error{
  4972  			Code:   res.StatusCode,
  4973  			Header: res.Header,
  4974  		})
  4975  	}
  4976  	if err != nil {
  4977  		return nil, err
  4978  	}
  4979  	defer googleapi.CloseBody(res)
  4980  	if err := googleapi.CheckResponse(res); err != nil {
  4981  		return nil, gensupport.WrapError(err)
  4982  	}
  4983  	ret := &Operation{
  4984  		ServerResponse: googleapi.ServerResponse{
  4985  			Header:         res.Header,
  4986  			HTTPStatusCode: res.StatusCode,
  4987  		},
  4988  	}
  4989  	target := &ret
  4990  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4991  		return nil, err
  4992  	}
  4993  	return ret, nil
  4994  }
  4995  
  4996  type ProjectsLocationsGlobalDomainsBackupsCreateCall struct {
  4997  	s          *Service
  4998  	parent     string
  4999  	backup     *Backup
  5000  	urlParams_ gensupport.URLParams
  5001  	ctx_       context.Context
  5002  	header_    http.Header
  5003  }
  5004  
  5005  // Create: Creates a Backup for a domain.
  5006  //
  5007  //   - parent: The domain resource name using the form:
  5008  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  5009  func (r *ProjectsLocationsGlobalDomainsBackupsService) Create(parent string, backup *Backup) *ProjectsLocationsGlobalDomainsBackupsCreateCall {
  5010  	c := &ProjectsLocationsGlobalDomainsBackupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5011  	c.parent = parent
  5012  	c.backup = backup
  5013  	return c
  5014  }
  5015  
  5016  // BackupId sets the optional parameter "backupId": Required. Backup Id, unique
  5017  // name to identify the backups with the following restrictions: * Must be
  5018  // lowercase letters, numbers, and hyphens * Must start with a letter. * Must
  5019  // contain between 1-63 characters. * Must end with a number or a letter. *
  5020  // Must be unique within the domain.
  5021  func (c *ProjectsLocationsGlobalDomainsBackupsCreateCall) BackupId(backupId string) *ProjectsLocationsGlobalDomainsBackupsCreateCall {
  5022  	c.urlParams_.Set("backupId", backupId)
  5023  	return c
  5024  }
  5025  
  5026  // Fields allows partial responses to be retrieved. See
  5027  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5028  // details.
  5029  func (c *ProjectsLocationsGlobalDomainsBackupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsBackupsCreateCall {
  5030  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5031  	return c
  5032  }
  5033  
  5034  // Context sets the context to be used in this call's Do method.
  5035  func (c *ProjectsLocationsGlobalDomainsBackupsCreateCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsBackupsCreateCall {
  5036  	c.ctx_ = ctx
  5037  	return c
  5038  }
  5039  
  5040  // Header returns a http.Header that can be modified by the caller to add
  5041  // headers to the request.
  5042  func (c *ProjectsLocationsGlobalDomainsBackupsCreateCall) Header() http.Header {
  5043  	if c.header_ == nil {
  5044  		c.header_ = make(http.Header)
  5045  	}
  5046  	return c.header_
  5047  }
  5048  
  5049  func (c *ProjectsLocationsGlobalDomainsBackupsCreateCall) doRequest(alt string) (*http.Response, error) {
  5050  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5051  	var body io.Reader = nil
  5052  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.backup)
  5053  	if err != nil {
  5054  		return nil, err
  5055  	}
  5056  	c.urlParams_.Set("alt", alt)
  5057  	c.urlParams_.Set("prettyPrint", "false")
  5058  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/backups")
  5059  	urls += "?" + c.urlParams_.Encode()
  5060  	req, err := http.NewRequest("POST", urls, body)
  5061  	if err != nil {
  5062  		return nil, err
  5063  	}
  5064  	req.Header = reqHeaders
  5065  	googleapi.Expand(req.URL, map[string]string{
  5066  		"parent": c.parent,
  5067  	})
  5068  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5069  }
  5070  
  5071  // Do executes the "managedidentities.projects.locations.global.domains.backups.create" call.
  5072  // Any non-2xx status code is an error. Response headers are in either
  5073  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5074  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5075  // whether the returned error was because http.StatusNotModified was returned.
  5076  func (c *ProjectsLocationsGlobalDomainsBackupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5077  	gensupport.SetOptions(c.urlParams_, opts...)
  5078  	res, err := c.doRequest("json")
  5079  	if res != nil && res.StatusCode == http.StatusNotModified {
  5080  		if res.Body != nil {
  5081  			res.Body.Close()
  5082  		}
  5083  		return nil, gensupport.WrapError(&googleapi.Error{
  5084  			Code:   res.StatusCode,
  5085  			Header: res.Header,
  5086  		})
  5087  	}
  5088  	if err != nil {
  5089  		return nil, err
  5090  	}
  5091  	defer googleapi.CloseBody(res)
  5092  	if err := googleapi.CheckResponse(res); err != nil {
  5093  		return nil, gensupport.WrapError(err)
  5094  	}
  5095  	ret := &Operation{
  5096  		ServerResponse: googleapi.ServerResponse{
  5097  			Header:         res.Header,
  5098  			HTTPStatusCode: res.StatusCode,
  5099  		},
  5100  	}
  5101  	target := &ret
  5102  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5103  		return nil, err
  5104  	}
  5105  	return ret, nil
  5106  }
  5107  
  5108  type ProjectsLocationsGlobalDomainsBackupsDeleteCall struct {
  5109  	s          *Service
  5110  	name       string
  5111  	urlParams_ gensupport.URLParams
  5112  	ctx_       context.Context
  5113  	header_    http.Header
  5114  }
  5115  
  5116  // Delete: Deletes identified Backup.
  5117  //
  5118  //   - name: The backup resource name using the form:
  5119  //     `projects/{project_id}/locations/global/domains/{domain_name}/backups/{back
  5120  //     up_id}`.
  5121  func (r *ProjectsLocationsGlobalDomainsBackupsService) Delete(name string) *ProjectsLocationsGlobalDomainsBackupsDeleteCall {
  5122  	c := &ProjectsLocationsGlobalDomainsBackupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5123  	c.name = name
  5124  	return c
  5125  }
  5126  
  5127  // Fields allows partial responses to be retrieved. See
  5128  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5129  // details.
  5130  func (c *ProjectsLocationsGlobalDomainsBackupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsBackupsDeleteCall {
  5131  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5132  	return c
  5133  }
  5134  
  5135  // Context sets the context to be used in this call's Do method.
  5136  func (c *ProjectsLocationsGlobalDomainsBackupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsBackupsDeleteCall {
  5137  	c.ctx_ = ctx
  5138  	return c
  5139  }
  5140  
  5141  // Header returns a http.Header that can be modified by the caller to add
  5142  // headers to the request.
  5143  func (c *ProjectsLocationsGlobalDomainsBackupsDeleteCall) Header() http.Header {
  5144  	if c.header_ == nil {
  5145  		c.header_ = make(http.Header)
  5146  	}
  5147  	return c.header_
  5148  }
  5149  
  5150  func (c *ProjectsLocationsGlobalDomainsBackupsDeleteCall) doRequest(alt string) (*http.Response, error) {
  5151  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5152  	var body io.Reader = nil
  5153  	c.urlParams_.Set("alt", alt)
  5154  	c.urlParams_.Set("prettyPrint", "false")
  5155  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5156  	urls += "?" + c.urlParams_.Encode()
  5157  	req, err := http.NewRequest("DELETE", urls, body)
  5158  	if err != nil {
  5159  		return nil, err
  5160  	}
  5161  	req.Header = reqHeaders
  5162  	googleapi.Expand(req.URL, map[string]string{
  5163  		"name": c.name,
  5164  	})
  5165  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5166  }
  5167  
  5168  // Do executes the "managedidentities.projects.locations.global.domains.backups.delete" call.
  5169  // Any non-2xx status code is an error. Response headers are in either
  5170  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5171  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5172  // whether the returned error was because http.StatusNotModified was returned.
  5173  func (c *ProjectsLocationsGlobalDomainsBackupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5174  	gensupport.SetOptions(c.urlParams_, opts...)
  5175  	res, err := c.doRequest("json")
  5176  	if res != nil && res.StatusCode == http.StatusNotModified {
  5177  		if res.Body != nil {
  5178  			res.Body.Close()
  5179  		}
  5180  		return nil, gensupport.WrapError(&googleapi.Error{
  5181  			Code:   res.StatusCode,
  5182  			Header: res.Header,
  5183  		})
  5184  	}
  5185  	if err != nil {
  5186  		return nil, err
  5187  	}
  5188  	defer googleapi.CloseBody(res)
  5189  	if err := googleapi.CheckResponse(res); err != nil {
  5190  		return nil, gensupport.WrapError(err)
  5191  	}
  5192  	ret := &Operation{
  5193  		ServerResponse: googleapi.ServerResponse{
  5194  			Header:         res.Header,
  5195  			HTTPStatusCode: res.StatusCode,
  5196  		},
  5197  	}
  5198  	target := &ret
  5199  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5200  		return nil, err
  5201  	}
  5202  	return ret, nil
  5203  }
  5204  
  5205  type ProjectsLocationsGlobalDomainsBackupsGetCall struct {
  5206  	s            *Service
  5207  	name         string
  5208  	urlParams_   gensupport.URLParams
  5209  	ifNoneMatch_ string
  5210  	ctx_         context.Context
  5211  	header_      http.Header
  5212  }
  5213  
  5214  // Get: Gets details of a single Backup.
  5215  //
  5216  //   - name: The backup resource name using the form:
  5217  //     `projects/{project_id}/locations/global/domains/{domain_name}/backups/{back
  5218  //     up_id}`.
  5219  func (r *ProjectsLocationsGlobalDomainsBackupsService) Get(name string) *ProjectsLocationsGlobalDomainsBackupsGetCall {
  5220  	c := &ProjectsLocationsGlobalDomainsBackupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5221  	c.name = name
  5222  	return c
  5223  }
  5224  
  5225  // Fields allows partial responses to be retrieved. See
  5226  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5227  // details.
  5228  func (c *ProjectsLocationsGlobalDomainsBackupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsBackupsGetCall {
  5229  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5230  	return c
  5231  }
  5232  
  5233  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5234  // object's ETag matches the given value. This is useful for getting updates
  5235  // only after the object has changed since the last request.
  5236  func (c *ProjectsLocationsGlobalDomainsBackupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalDomainsBackupsGetCall {
  5237  	c.ifNoneMatch_ = entityTag
  5238  	return c
  5239  }
  5240  
  5241  // Context sets the context to be used in this call's Do method.
  5242  func (c *ProjectsLocationsGlobalDomainsBackupsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsBackupsGetCall {
  5243  	c.ctx_ = ctx
  5244  	return c
  5245  }
  5246  
  5247  // Header returns a http.Header that can be modified by the caller to add
  5248  // headers to the request.
  5249  func (c *ProjectsLocationsGlobalDomainsBackupsGetCall) Header() http.Header {
  5250  	if c.header_ == nil {
  5251  		c.header_ = make(http.Header)
  5252  	}
  5253  	return c.header_
  5254  }
  5255  
  5256  func (c *ProjectsLocationsGlobalDomainsBackupsGetCall) doRequest(alt string) (*http.Response, error) {
  5257  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5258  	if c.ifNoneMatch_ != "" {
  5259  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5260  	}
  5261  	var body io.Reader = nil
  5262  	c.urlParams_.Set("alt", alt)
  5263  	c.urlParams_.Set("prettyPrint", "false")
  5264  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5265  	urls += "?" + c.urlParams_.Encode()
  5266  	req, err := http.NewRequest("GET", urls, body)
  5267  	if err != nil {
  5268  		return nil, err
  5269  	}
  5270  	req.Header = reqHeaders
  5271  	googleapi.Expand(req.URL, map[string]string{
  5272  		"name": c.name,
  5273  	})
  5274  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5275  }
  5276  
  5277  // Do executes the "managedidentities.projects.locations.global.domains.backups.get" call.
  5278  // Any non-2xx status code is an error. Response headers are in either
  5279  // *Backup.ServerResponse.Header or (if a response was returned at all) in
  5280  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5281  // whether the returned error was because http.StatusNotModified was returned.
  5282  func (c *ProjectsLocationsGlobalDomainsBackupsGetCall) Do(opts ...googleapi.CallOption) (*Backup, error) {
  5283  	gensupport.SetOptions(c.urlParams_, opts...)
  5284  	res, err := c.doRequest("json")
  5285  	if res != nil && res.StatusCode == http.StatusNotModified {
  5286  		if res.Body != nil {
  5287  			res.Body.Close()
  5288  		}
  5289  		return nil, gensupport.WrapError(&googleapi.Error{
  5290  			Code:   res.StatusCode,
  5291  			Header: res.Header,
  5292  		})
  5293  	}
  5294  	if err != nil {
  5295  		return nil, err
  5296  	}
  5297  	defer googleapi.CloseBody(res)
  5298  	if err := googleapi.CheckResponse(res); err != nil {
  5299  		return nil, gensupport.WrapError(err)
  5300  	}
  5301  	ret := &Backup{
  5302  		ServerResponse: googleapi.ServerResponse{
  5303  			Header:         res.Header,
  5304  			HTTPStatusCode: res.StatusCode,
  5305  		},
  5306  	}
  5307  	target := &ret
  5308  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5309  		return nil, err
  5310  	}
  5311  	return ret, nil
  5312  }
  5313  
  5314  type ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall struct {
  5315  	s            *Service
  5316  	resource     string
  5317  	urlParams_   gensupport.URLParams
  5318  	ifNoneMatch_ string
  5319  	ctx_         context.Context
  5320  	header_      http.Header
  5321  }
  5322  
  5323  // GetIamPolicy: Gets the access control policy for a resource. Returns an
  5324  // empty policy if the resource exists and does not have a policy set.
  5325  //
  5326  //   - resource: REQUIRED: The resource for which the policy is being requested.
  5327  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  5328  //     for the appropriate value for this field.
  5329  func (r *ProjectsLocationsGlobalDomainsBackupsService) GetIamPolicy(resource string) *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall {
  5330  	c := &ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5331  	c.resource = resource
  5332  	return c
  5333  }
  5334  
  5335  // OptionsRequestedPolicyVersion sets the optional parameter
  5336  // "options.requestedPolicyVersion": The maximum policy version that will be
  5337  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
  5338  // an invalid value will be rejected. Requests for policies with any
  5339  // conditional role bindings must specify version 3. Policies with no
  5340  // conditional role bindings may specify any valid value or leave the field
  5341  // unset. The policy in the response might use the policy version that you
  5342  // specified, or it might use a lower policy version. For example, if you
  5343  // specify version 3, but the policy has no conditional role bindings, the
  5344  // response uses version 1. To learn which resources support conditions in
  5345  // their IAM policies, see the IAM documentation
  5346  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  5347  func (c *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall {
  5348  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  5349  	return c
  5350  }
  5351  
  5352  // Fields allows partial responses to be retrieved. See
  5353  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5354  // details.
  5355  func (c *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall {
  5356  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5357  	return c
  5358  }
  5359  
  5360  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5361  // object's ETag matches the given value. This is useful for getting updates
  5362  // only after the object has changed since the last request.
  5363  func (c *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall {
  5364  	c.ifNoneMatch_ = entityTag
  5365  	return c
  5366  }
  5367  
  5368  // Context sets the context to be used in this call's Do method.
  5369  func (c *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall {
  5370  	c.ctx_ = ctx
  5371  	return c
  5372  }
  5373  
  5374  // Header returns a http.Header that can be modified by the caller to add
  5375  // headers to the request.
  5376  func (c *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall) Header() http.Header {
  5377  	if c.header_ == nil {
  5378  		c.header_ = make(http.Header)
  5379  	}
  5380  	return c.header_
  5381  }
  5382  
  5383  func (c *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  5384  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5385  	if c.ifNoneMatch_ != "" {
  5386  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5387  	}
  5388  	var body io.Reader = nil
  5389  	c.urlParams_.Set("alt", alt)
  5390  	c.urlParams_.Set("prettyPrint", "false")
  5391  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  5392  	urls += "?" + c.urlParams_.Encode()
  5393  	req, err := http.NewRequest("GET", urls, body)
  5394  	if err != nil {
  5395  		return nil, err
  5396  	}
  5397  	req.Header = reqHeaders
  5398  	googleapi.Expand(req.URL, map[string]string{
  5399  		"resource": c.resource,
  5400  	})
  5401  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5402  }
  5403  
  5404  // Do executes the "managedidentities.projects.locations.global.domains.backups.getIamPolicy" call.
  5405  // Any non-2xx status code is an error. Response headers are in either
  5406  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  5407  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5408  // whether the returned error was because http.StatusNotModified was returned.
  5409  func (c *ProjectsLocationsGlobalDomainsBackupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  5410  	gensupport.SetOptions(c.urlParams_, opts...)
  5411  	res, err := c.doRequest("json")
  5412  	if res != nil && res.StatusCode == http.StatusNotModified {
  5413  		if res.Body != nil {
  5414  			res.Body.Close()
  5415  		}
  5416  		return nil, gensupport.WrapError(&googleapi.Error{
  5417  			Code:   res.StatusCode,
  5418  			Header: res.Header,
  5419  		})
  5420  	}
  5421  	if err != nil {
  5422  		return nil, err
  5423  	}
  5424  	defer googleapi.CloseBody(res)
  5425  	if err := googleapi.CheckResponse(res); err != nil {
  5426  		return nil, gensupport.WrapError(err)
  5427  	}
  5428  	ret := &Policy{
  5429  		ServerResponse: googleapi.ServerResponse{
  5430  			Header:         res.Header,
  5431  			HTTPStatusCode: res.StatusCode,
  5432  		},
  5433  	}
  5434  	target := &ret
  5435  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5436  		return nil, err
  5437  	}
  5438  	return ret, nil
  5439  }
  5440  
  5441  type ProjectsLocationsGlobalDomainsBackupsListCall struct {
  5442  	s            *Service
  5443  	parent       string
  5444  	urlParams_   gensupport.URLParams
  5445  	ifNoneMatch_ string
  5446  	ctx_         context.Context
  5447  	header_      http.Header
  5448  }
  5449  
  5450  // List: Lists Backup in a given project.
  5451  //
  5452  //   - parent: The domain resource name using the form:
  5453  //     `projects/{project_id}/locations/global/domains/{domain_name}`.
  5454  func (r *ProjectsLocationsGlobalDomainsBackupsService) List(parent string) *ProjectsLocationsGlobalDomainsBackupsListCall {
  5455  	c := &ProjectsLocationsGlobalDomainsBackupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5456  	c.parent = parent
  5457  	return c
  5458  }
  5459  
  5460  // Filter sets the optional parameter "filter": Filter specifying constraints
  5461  // of a list operation.
  5462  func (c *ProjectsLocationsGlobalDomainsBackupsListCall) Filter(filter string) *ProjectsLocationsGlobalDomainsBackupsListCall {
  5463  	c.urlParams_.Set("filter", filter)
  5464  	return c
  5465  }
  5466  
  5467  // OrderBy sets the optional parameter "orderBy": Specifies the ordering of
  5468  // results following syntax at
  5469  // https://cloud.google.com/apis/design/design_patterns#sorting_order.
  5470  func (c *ProjectsLocationsGlobalDomainsBackupsListCall) OrderBy(orderBy string) *ProjectsLocationsGlobalDomainsBackupsListCall {
  5471  	c.urlParams_.Set("orderBy", orderBy)
  5472  	return c
  5473  }
  5474  
  5475  // PageSize sets the optional parameter "pageSize": The maximum number of items
  5476  // to return. If not specified, a default value of 1000 will be used by the
  5477  // service. Regardless of the page_size value, the response may include a
  5478  // partial list and a caller should only rely on response's next_page_token to
  5479  // determine if there are more instances left to be queried.
  5480  func (c *ProjectsLocationsGlobalDomainsBackupsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalDomainsBackupsListCall {
  5481  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5482  	return c
  5483  }
  5484  
  5485  // PageToken sets the optional parameter "pageToken": The `next_page_token`
  5486  // value returned from a previous List request, if any.
  5487  func (c *ProjectsLocationsGlobalDomainsBackupsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalDomainsBackupsListCall {
  5488  	c.urlParams_.Set("pageToken", pageToken)
  5489  	return c
  5490  }
  5491  
  5492  // Fields allows partial responses to be retrieved. See
  5493  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5494  // details.
  5495  func (c *ProjectsLocationsGlobalDomainsBackupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsBackupsListCall {
  5496  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5497  	return c
  5498  }
  5499  
  5500  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5501  // object's ETag matches the given value. This is useful for getting updates
  5502  // only after the object has changed since the last request.
  5503  func (c *ProjectsLocationsGlobalDomainsBackupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalDomainsBackupsListCall {
  5504  	c.ifNoneMatch_ = entityTag
  5505  	return c
  5506  }
  5507  
  5508  // Context sets the context to be used in this call's Do method.
  5509  func (c *ProjectsLocationsGlobalDomainsBackupsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsBackupsListCall {
  5510  	c.ctx_ = ctx
  5511  	return c
  5512  }
  5513  
  5514  // Header returns a http.Header that can be modified by the caller to add
  5515  // headers to the request.
  5516  func (c *ProjectsLocationsGlobalDomainsBackupsListCall) Header() http.Header {
  5517  	if c.header_ == nil {
  5518  		c.header_ = make(http.Header)
  5519  	}
  5520  	return c.header_
  5521  }
  5522  
  5523  func (c *ProjectsLocationsGlobalDomainsBackupsListCall) doRequest(alt string) (*http.Response, error) {
  5524  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5525  	if c.ifNoneMatch_ != "" {
  5526  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5527  	}
  5528  	var body io.Reader = nil
  5529  	c.urlParams_.Set("alt", alt)
  5530  	c.urlParams_.Set("prettyPrint", "false")
  5531  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/backups")
  5532  	urls += "?" + c.urlParams_.Encode()
  5533  	req, err := http.NewRequest("GET", urls, body)
  5534  	if err != nil {
  5535  		return nil, err
  5536  	}
  5537  	req.Header = reqHeaders
  5538  	googleapi.Expand(req.URL, map[string]string{
  5539  		"parent": c.parent,
  5540  	})
  5541  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5542  }
  5543  
  5544  // Do executes the "managedidentities.projects.locations.global.domains.backups.list" call.
  5545  // Any non-2xx status code is an error. Response headers are in either
  5546  // *ListBackupsResponse.ServerResponse.Header or (if a response was returned at
  5547  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5548  // check whether the returned error was because http.StatusNotModified was
  5549  // returned.
  5550  func (c *ProjectsLocationsGlobalDomainsBackupsListCall) Do(opts ...googleapi.CallOption) (*ListBackupsResponse, error) {
  5551  	gensupport.SetOptions(c.urlParams_, opts...)
  5552  	res, err := c.doRequest("json")
  5553  	if res != nil && res.StatusCode == http.StatusNotModified {
  5554  		if res.Body != nil {
  5555  			res.Body.Close()
  5556  		}
  5557  		return nil, gensupport.WrapError(&googleapi.Error{
  5558  			Code:   res.StatusCode,
  5559  			Header: res.Header,
  5560  		})
  5561  	}
  5562  	if err != nil {
  5563  		return nil, err
  5564  	}
  5565  	defer googleapi.CloseBody(res)
  5566  	if err := googleapi.CheckResponse(res); err != nil {
  5567  		return nil, gensupport.WrapError(err)
  5568  	}
  5569  	ret := &ListBackupsResponse{
  5570  		ServerResponse: googleapi.ServerResponse{
  5571  			Header:         res.Header,
  5572  			HTTPStatusCode: res.StatusCode,
  5573  		},
  5574  	}
  5575  	target := &ret
  5576  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5577  		return nil, err
  5578  	}
  5579  	return ret, nil
  5580  }
  5581  
  5582  // Pages invokes f for each page of results.
  5583  // A non-nil error returned from f will halt the iteration.
  5584  // The provided context supersedes any context provided to the Context method.
  5585  func (c *ProjectsLocationsGlobalDomainsBackupsListCall) Pages(ctx context.Context, f func(*ListBackupsResponse) error) error {
  5586  	c.ctx_ = ctx
  5587  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5588  	for {
  5589  		x, err := c.Do()
  5590  		if err != nil {
  5591  			return err
  5592  		}
  5593  		if err := f(x); err != nil {
  5594  			return err
  5595  		}
  5596  		if x.NextPageToken == "" {
  5597  			return nil
  5598  		}
  5599  		c.PageToken(x.NextPageToken)
  5600  	}
  5601  }
  5602  
  5603  type ProjectsLocationsGlobalDomainsBackupsPatchCall struct {
  5604  	s          *Service
  5605  	name       string
  5606  	backup     *Backup
  5607  	urlParams_ gensupport.URLParams
  5608  	ctx_       context.Context
  5609  	header_    http.Header
  5610  }
  5611  
  5612  // Patch: Updates the labels for specified Backup.
  5613  //
  5614  //   - name: Output only. The unique name of the Backup in the form of
  5615  //     `projects/{project_id}/locations/global/domains/{domain_name}/backups/{name
  5616  //     }`.
  5617  func (r *ProjectsLocationsGlobalDomainsBackupsService) Patch(name string, backup *Backup) *ProjectsLocationsGlobalDomainsBackupsPatchCall {
  5618  	c := &ProjectsLocationsGlobalDomainsBackupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5619  	c.name = name
  5620  	c.backup = backup
  5621  	return c
  5622  }
  5623  
  5624  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
  5625  // fields to update. At least one path must be supplied in this field. The
  5626  // elements of the repeated paths field may only include these fields from
  5627  // Backup: * `labels`
  5628  func (c *ProjectsLocationsGlobalDomainsBackupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalDomainsBackupsPatchCall {
  5629  	c.urlParams_.Set("updateMask", updateMask)
  5630  	return c
  5631  }
  5632  
  5633  // Fields allows partial responses to be retrieved. See
  5634  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5635  // details.
  5636  func (c *ProjectsLocationsGlobalDomainsBackupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsBackupsPatchCall {
  5637  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5638  	return c
  5639  }
  5640  
  5641  // Context sets the context to be used in this call's Do method.
  5642  func (c *ProjectsLocationsGlobalDomainsBackupsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsBackupsPatchCall {
  5643  	c.ctx_ = ctx
  5644  	return c
  5645  }
  5646  
  5647  // Header returns a http.Header that can be modified by the caller to add
  5648  // headers to the request.
  5649  func (c *ProjectsLocationsGlobalDomainsBackupsPatchCall) Header() http.Header {
  5650  	if c.header_ == nil {
  5651  		c.header_ = make(http.Header)
  5652  	}
  5653  	return c.header_
  5654  }
  5655  
  5656  func (c *ProjectsLocationsGlobalDomainsBackupsPatchCall) doRequest(alt string) (*http.Response, error) {
  5657  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5658  	var body io.Reader = nil
  5659  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.backup)
  5660  	if err != nil {
  5661  		return nil, err
  5662  	}
  5663  	c.urlParams_.Set("alt", alt)
  5664  	c.urlParams_.Set("prettyPrint", "false")
  5665  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5666  	urls += "?" + c.urlParams_.Encode()
  5667  	req, err := http.NewRequest("PATCH", urls, body)
  5668  	if err != nil {
  5669  		return nil, err
  5670  	}
  5671  	req.Header = reqHeaders
  5672  	googleapi.Expand(req.URL, map[string]string{
  5673  		"name": c.name,
  5674  	})
  5675  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5676  }
  5677  
  5678  // Do executes the "managedidentities.projects.locations.global.domains.backups.patch" call.
  5679  // Any non-2xx status code is an error. Response headers are in either
  5680  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5681  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5682  // whether the returned error was because http.StatusNotModified was returned.
  5683  func (c *ProjectsLocationsGlobalDomainsBackupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5684  	gensupport.SetOptions(c.urlParams_, opts...)
  5685  	res, err := c.doRequest("json")
  5686  	if res != nil && res.StatusCode == http.StatusNotModified {
  5687  		if res.Body != nil {
  5688  			res.Body.Close()
  5689  		}
  5690  		return nil, gensupport.WrapError(&googleapi.Error{
  5691  			Code:   res.StatusCode,
  5692  			Header: res.Header,
  5693  		})
  5694  	}
  5695  	if err != nil {
  5696  		return nil, err
  5697  	}
  5698  	defer googleapi.CloseBody(res)
  5699  	if err := googleapi.CheckResponse(res); err != nil {
  5700  		return nil, gensupport.WrapError(err)
  5701  	}
  5702  	ret := &Operation{
  5703  		ServerResponse: googleapi.ServerResponse{
  5704  			Header:         res.Header,
  5705  			HTTPStatusCode: res.StatusCode,
  5706  		},
  5707  	}
  5708  	target := &ret
  5709  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5710  		return nil, err
  5711  	}
  5712  	return ret, nil
  5713  }
  5714  
  5715  type ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall struct {
  5716  	s                   *Service
  5717  	resource            string
  5718  	setiampolicyrequest *SetIamPolicyRequest
  5719  	urlParams_          gensupport.URLParams
  5720  	ctx_                context.Context
  5721  	header_             http.Header
  5722  }
  5723  
  5724  // SetIamPolicy: Sets the access control policy on the specified resource.
  5725  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
  5726  // and `PERMISSION_DENIED` errors.
  5727  //
  5728  //   - resource: REQUIRED: The resource for which the policy is being specified.
  5729  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  5730  //     for the appropriate value for this field.
  5731  func (r *ProjectsLocationsGlobalDomainsBackupsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall {
  5732  	c := &ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5733  	c.resource = resource
  5734  	c.setiampolicyrequest = setiampolicyrequest
  5735  	return c
  5736  }
  5737  
  5738  // Fields allows partial responses to be retrieved. See
  5739  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5740  // details.
  5741  func (c *ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall {
  5742  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5743  	return c
  5744  }
  5745  
  5746  // Context sets the context to be used in this call's Do method.
  5747  func (c *ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall {
  5748  	c.ctx_ = ctx
  5749  	return c
  5750  }
  5751  
  5752  // Header returns a http.Header that can be modified by the caller to add
  5753  // headers to the request.
  5754  func (c *ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall) Header() http.Header {
  5755  	if c.header_ == nil {
  5756  		c.header_ = make(http.Header)
  5757  	}
  5758  	return c.header_
  5759  }
  5760  
  5761  func (c *ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  5762  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5763  	var body io.Reader = nil
  5764  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  5765  	if err != nil {
  5766  		return nil, err
  5767  	}
  5768  	c.urlParams_.Set("alt", alt)
  5769  	c.urlParams_.Set("prettyPrint", "false")
  5770  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
  5771  	urls += "?" + c.urlParams_.Encode()
  5772  	req, err := http.NewRequest("POST", urls, body)
  5773  	if err != nil {
  5774  		return nil, err
  5775  	}
  5776  	req.Header = reqHeaders
  5777  	googleapi.Expand(req.URL, map[string]string{
  5778  		"resource": c.resource,
  5779  	})
  5780  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5781  }
  5782  
  5783  // Do executes the "managedidentities.projects.locations.global.domains.backups.setIamPolicy" call.
  5784  // Any non-2xx status code is an error. Response headers are in either
  5785  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  5786  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5787  // whether the returned error was because http.StatusNotModified was returned.
  5788  func (c *ProjectsLocationsGlobalDomainsBackupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  5789  	gensupport.SetOptions(c.urlParams_, opts...)
  5790  	res, err := c.doRequest("json")
  5791  	if res != nil && res.StatusCode == http.StatusNotModified {
  5792  		if res.Body != nil {
  5793  			res.Body.Close()
  5794  		}
  5795  		return nil, gensupport.WrapError(&googleapi.Error{
  5796  			Code:   res.StatusCode,
  5797  			Header: res.Header,
  5798  		})
  5799  	}
  5800  	if err != nil {
  5801  		return nil, err
  5802  	}
  5803  	defer googleapi.CloseBody(res)
  5804  	if err := googleapi.CheckResponse(res); err != nil {
  5805  		return nil, gensupport.WrapError(err)
  5806  	}
  5807  	ret := &Policy{
  5808  		ServerResponse: googleapi.ServerResponse{
  5809  			Header:         res.Header,
  5810  			HTTPStatusCode: res.StatusCode,
  5811  		},
  5812  	}
  5813  	target := &ret
  5814  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5815  		return nil, err
  5816  	}
  5817  	return ret, nil
  5818  }
  5819  
  5820  type ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall struct {
  5821  	s                         *Service
  5822  	resource                  string
  5823  	testiampermissionsrequest *TestIamPermissionsRequest
  5824  	urlParams_                gensupport.URLParams
  5825  	ctx_                      context.Context
  5826  	header_                   http.Header
  5827  }
  5828  
  5829  // TestIamPermissions: Returns permissions that a caller has on the specified
  5830  // resource. If the resource does not exist, this will return an empty set of
  5831  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
  5832  // used for building permission-aware UIs and command-line tools, not for
  5833  // authorization checking. This operation may "fail open" without warning.
  5834  //
  5835  //   - resource: REQUIRED: The resource for which the policy detail is being
  5836  //     requested. See Resource names
  5837  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  5838  //     value for this field.
  5839  func (r *ProjectsLocationsGlobalDomainsBackupsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall {
  5840  	c := &ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5841  	c.resource = resource
  5842  	c.testiampermissionsrequest = testiampermissionsrequest
  5843  	return c
  5844  }
  5845  
  5846  // Fields allows partial responses to be retrieved. See
  5847  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5848  // details.
  5849  func (c *ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall {
  5850  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5851  	return c
  5852  }
  5853  
  5854  // Context sets the context to be used in this call's Do method.
  5855  func (c *ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall {
  5856  	c.ctx_ = ctx
  5857  	return c
  5858  }
  5859  
  5860  // Header returns a http.Header that can be modified by the caller to add
  5861  // headers to the request.
  5862  func (c *ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall) Header() http.Header {
  5863  	if c.header_ == nil {
  5864  		c.header_ = make(http.Header)
  5865  	}
  5866  	return c.header_
  5867  }
  5868  
  5869  func (c *ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  5870  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5871  	var body io.Reader = nil
  5872  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  5873  	if err != nil {
  5874  		return nil, err
  5875  	}
  5876  	c.urlParams_.Set("alt", alt)
  5877  	c.urlParams_.Set("prettyPrint", "false")
  5878  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
  5879  	urls += "?" + c.urlParams_.Encode()
  5880  	req, err := http.NewRequest("POST", urls, body)
  5881  	if err != nil {
  5882  		return nil, err
  5883  	}
  5884  	req.Header = reqHeaders
  5885  	googleapi.Expand(req.URL, map[string]string{
  5886  		"resource": c.resource,
  5887  	})
  5888  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5889  }
  5890  
  5891  // Do executes the "managedidentities.projects.locations.global.domains.backups.testIamPermissions" call.
  5892  // Any non-2xx status code is an error. Response headers are in either
  5893  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
  5894  // returned at all) in error.(*googleapi.Error).Header. Use
  5895  // googleapi.IsNotModified to check whether the returned error was because
  5896  // http.StatusNotModified was returned.
  5897  func (c *ProjectsLocationsGlobalDomainsBackupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  5898  	gensupport.SetOptions(c.urlParams_, opts...)
  5899  	res, err := c.doRequest("json")
  5900  	if res != nil && res.StatusCode == http.StatusNotModified {
  5901  		if res.Body != nil {
  5902  			res.Body.Close()
  5903  		}
  5904  		return nil, gensupport.WrapError(&googleapi.Error{
  5905  			Code:   res.StatusCode,
  5906  			Header: res.Header,
  5907  		})
  5908  	}
  5909  	if err != nil {
  5910  		return nil, err
  5911  	}
  5912  	defer googleapi.CloseBody(res)
  5913  	if err := googleapi.CheckResponse(res); err != nil {
  5914  		return nil, gensupport.WrapError(err)
  5915  	}
  5916  	ret := &TestIamPermissionsResponse{
  5917  		ServerResponse: googleapi.ServerResponse{
  5918  			Header:         res.Header,
  5919  			HTTPStatusCode: res.StatusCode,
  5920  		},
  5921  	}
  5922  	target := &ret
  5923  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5924  		return nil, err
  5925  	}
  5926  	return ret, nil
  5927  }
  5928  
  5929  type ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall struct {
  5930  	s            *Service
  5931  	name         string
  5932  	urlParams_   gensupport.URLParams
  5933  	ifNoneMatch_ string
  5934  	ctx_         context.Context
  5935  	header_      http.Header
  5936  }
  5937  
  5938  // Get: Gets details of a single sqlIntegration.
  5939  //
  5940  //   - name: SQLIntegration resource name using the form:
  5941  //     `projects/{project_id}/locations/global/domains/{domain}/sqlIntegrations/{n
  5942  //     ame}`.
  5943  func (r *ProjectsLocationsGlobalDomainsSqlIntegrationsService) Get(name string) *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall {
  5944  	c := &ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5945  	c.name = name
  5946  	return c
  5947  }
  5948  
  5949  // Fields allows partial responses to be retrieved. See
  5950  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5951  // details.
  5952  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall {
  5953  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5954  	return c
  5955  }
  5956  
  5957  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5958  // object's ETag matches the given value. This is useful for getting updates
  5959  // only after the object has changed since the last request.
  5960  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall {
  5961  	c.ifNoneMatch_ = entityTag
  5962  	return c
  5963  }
  5964  
  5965  // Context sets the context to be used in this call's Do method.
  5966  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall {
  5967  	c.ctx_ = ctx
  5968  	return c
  5969  }
  5970  
  5971  // Header returns a http.Header that can be modified by the caller to add
  5972  // headers to the request.
  5973  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) Header() http.Header {
  5974  	if c.header_ == nil {
  5975  		c.header_ = make(http.Header)
  5976  	}
  5977  	return c.header_
  5978  }
  5979  
  5980  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) doRequest(alt string) (*http.Response, error) {
  5981  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5982  	if c.ifNoneMatch_ != "" {
  5983  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5984  	}
  5985  	var body io.Reader = nil
  5986  	c.urlParams_.Set("alt", alt)
  5987  	c.urlParams_.Set("prettyPrint", "false")
  5988  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5989  	urls += "?" + c.urlParams_.Encode()
  5990  	req, err := http.NewRequest("GET", urls, body)
  5991  	if err != nil {
  5992  		return nil, err
  5993  	}
  5994  	req.Header = reqHeaders
  5995  	googleapi.Expand(req.URL, map[string]string{
  5996  		"name": c.name,
  5997  	})
  5998  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5999  }
  6000  
  6001  // Do executes the "managedidentities.projects.locations.global.domains.sqlIntegrations.get" call.
  6002  // Any non-2xx status code is an error. Response headers are in either
  6003  // *SqlIntegration.ServerResponse.Header or (if a response was returned at all)
  6004  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6005  // whether the returned error was because http.StatusNotModified was returned.
  6006  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsGetCall) Do(opts ...googleapi.CallOption) (*SqlIntegration, error) {
  6007  	gensupport.SetOptions(c.urlParams_, opts...)
  6008  	res, err := c.doRequest("json")
  6009  	if res != nil && res.StatusCode == http.StatusNotModified {
  6010  		if res.Body != nil {
  6011  			res.Body.Close()
  6012  		}
  6013  		return nil, gensupport.WrapError(&googleapi.Error{
  6014  			Code:   res.StatusCode,
  6015  			Header: res.Header,
  6016  		})
  6017  	}
  6018  	if err != nil {
  6019  		return nil, err
  6020  	}
  6021  	defer googleapi.CloseBody(res)
  6022  	if err := googleapi.CheckResponse(res); err != nil {
  6023  		return nil, gensupport.WrapError(err)
  6024  	}
  6025  	ret := &SqlIntegration{
  6026  		ServerResponse: googleapi.ServerResponse{
  6027  			Header:         res.Header,
  6028  			HTTPStatusCode: res.StatusCode,
  6029  		},
  6030  	}
  6031  	target := &ret
  6032  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6033  		return nil, err
  6034  	}
  6035  	return ret, nil
  6036  }
  6037  
  6038  type ProjectsLocationsGlobalDomainsSqlIntegrationsListCall struct {
  6039  	s            *Service
  6040  	parent       string
  6041  	urlParams_   gensupport.URLParams
  6042  	ifNoneMatch_ string
  6043  	ctx_         context.Context
  6044  	header_      http.Header
  6045  }
  6046  
  6047  // List: Lists SqlIntegrations in a given domain.
  6048  //
  6049  //   - parent: The resource name of the SqlIntegrations using the form:
  6050  //     `projects/{project_id}/locations/global/domains/*`.
  6051  func (r *ProjectsLocationsGlobalDomainsSqlIntegrationsService) List(parent string) *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall {
  6052  	c := &ProjectsLocationsGlobalDomainsSqlIntegrationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6053  	c.parent = parent
  6054  	return c
  6055  }
  6056  
  6057  // Filter sets the optional parameter "filter": Filter specifying constraints
  6058  // of a list operation. For example, `SqlIntegration.name="sql".
  6059  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) Filter(filter string) *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall {
  6060  	c.urlParams_.Set("filter", filter)
  6061  	return c
  6062  }
  6063  
  6064  // OrderBy sets the optional parameter "orderBy": Specifies the ordering of
  6065  // results following syntax at
  6066  // https://cloud.google.com/apis/design/design_patterns#sorting_order.
  6067  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) OrderBy(orderBy string) *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall {
  6068  	c.urlParams_.Set("orderBy", orderBy)
  6069  	return c
  6070  }
  6071  
  6072  // PageSize sets the optional parameter "pageSize": The maximum number of items
  6073  // to return. If not specified, a default value of 1000 will be used by the
  6074  // service. Regardless of the page_size value, the response may include a
  6075  // partial list and a caller should only rely on response'ANIZATIONs
  6076  // next_page_token to determine if there are more instances left to be queried.
  6077  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall {
  6078  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6079  	return c
  6080  }
  6081  
  6082  // PageToken sets the optional parameter "pageToken": The next_page_token value
  6083  // returned from a previous List request, if any.
  6084  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall {
  6085  	c.urlParams_.Set("pageToken", pageToken)
  6086  	return c
  6087  }
  6088  
  6089  // Fields allows partial responses to be retrieved. See
  6090  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6091  // details.
  6092  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall {
  6093  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6094  	return c
  6095  }
  6096  
  6097  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6098  // object's ETag matches the given value. This is useful for getting updates
  6099  // only after the object has changed since the last request.
  6100  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall {
  6101  	c.ifNoneMatch_ = entityTag
  6102  	return c
  6103  }
  6104  
  6105  // Context sets the context to be used in this call's Do method.
  6106  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall {
  6107  	c.ctx_ = ctx
  6108  	return c
  6109  }
  6110  
  6111  // Header returns a http.Header that can be modified by the caller to add
  6112  // headers to the request.
  6113  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) Header() http.Header {
  6114  	if c.header_ == nil {
  6115  		c.header_ = make(http.Header)
  6116  	}
  6117  	return c.header_
  6118  }
  6119  
  6120  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) doRequest(alt string) (*http.Response, error) {
  6121  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6122  	if c.ifNoneMatch_ != "" {
  6123  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6124  	}
  6125  	var body io.Reader = nil
  6126  	c.urlParams_.Set("alt", alt)
  6127  	c.urlParams_.Set("prettyPrint", "false")
  6128  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sqlIntegrations")
  6129  	urls += "?" + c.urlParams_.Encode()
  6130  	req, err := http.NewRequest("GET", urls, body)
  6131  	if err != nil {
  6132  		return nil, err
  6133  	}
  6134  	req.Header = reqHeaders
  6135  	googleapi.Expand(req.URL, map[string]string{
  6136  		"parent": c.parent,
  6137  	})
  6138  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6139  }
  6140  
  6141  // Do executes the "managedidentities.projects.locations.global.domains.sqlIntegrations.list" call.
  6142  // Any non-2xx status code is an error. Response headers are in either
  6143  // *ListSqlIntegrationsResponse.ServerResponse.Header or (if a response was
  6144  // returned at all) in error.(*googleapi.Error).Header. Use
  6145  // googleapi.IsNotModified to check whether the returned error was because
  6146  // http.StatusNotModified was returned.
  6147  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) Do(opts ...googleapi.CallOption) (*ListSqlIntegrationsResponse, error) {
  6148  	gensupport.SetOptions(c.urlParams_, opts...)
  6149  	res, err := c.doRequest("json")
  6150  	if res != nil && res.StatusCode == http.StatusNotModified {
  6151  		if res.Body != nil {
  6152  			res.Body.Close()
  6153  		}
  6154  		return nil, gensupport.WrapError(&googleapi.Error{
  6155  			Code:   res.StatusCode,
  6156  			Header: res.Header,
  6157  		})
  6158  	}
  6159  	if err != nil {
  6160  		return nil, err
  6161  	}
  6162  	defer googleapi.CloseBody(res)
  6163  	if err := googleapi.CheckResponse(res); err != nil {
  6164  		return nil, gensupport.WrapError(err)
  6165  	}
  6166  	ret := &ListSqlIntegrationsResponse{
  6167  		ServerResponse: googleapi.ServerResponse{
  6168  			Header:         res.Header,
  6169  			HTTPStatusCode: res.StatusCode,
  6170  		},
  6171  	}
  6172  	target := &ret
  6173  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6174  		return nil, err
  6175  	}
  6176  	return ret, nil
  6177  }
  6178  
  6179  // Pages invokes f for each page of results.
  6180  // A non-nil error returned from f will halt the iteration.
  6181  // The provided context supersedes any context provided to the Context method.
  6182  func (c *ProjectsLocationsGlobalDomainsSqlIntegrationsListCall) Pages(ctx context.Context, f func(*ListSqlIntegrationsResponse) error) error {
  6183  	c.ctx_ = ctx
  6184  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6185  	for {
  6186  		x, err := c.Do()
  6187  		if err != nil {
  6188  			return err
  6189  		}
  6190  		if err := f(x); err != nil {
  6191  			return err
  6192  		}
  6193  		if x.NextPageToken == "" {
  6194  			return nil
  6195  		}
  6196  		c.PageToken(x.NextPageToken)
  6197  	}
  6198  }
  6199  
  6200  type ProjectsLocationsGlobalOperationsCancelCall struct {
  6201  	s                      *Service
  6202  	name                   string
  6203  	canceloperationrequest *CancelOperationRequest
  6204  	urlParams_             gensupport.URLParams
  6205  	ctx_                   context.Context
  6206  	header_                http.Header
  6207  }
  6208  
  6209  // Cancel: Starts asynchronous cancellation on a long-running operation. The
  6210  // server makes a best effort to cancel the operation, but success is not
  6211  // guaranteed. If the server doesn't support this method, it returns
  6212  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
  6213  // other methods to check whether the cancellation succeeded or whether the
  6214  // operation completed despite cancellation. On successful cancellation, the
  6215  // operation is not deleted; instead, it becomes an operation with an
  6216  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
  6217  // `Code.CANCELLED`.
  6218  //
  6219  // - name: The name of the operation resource to be cancelled.
  6220  func (r *ProjectsLocationsGlobalOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsGlobalOperationsCancelCall {
  6221  	c := &ProjectsLocationsGlobalOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6222  	c.name = name
  6223  	c.canceloperationrequest = canceloperationrequest
  6224  	return c
  6225  }
  6226  
  6227  // Fields allows partial responses to be retrieved. See
  6228  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6229  // details.
  6230  func (c *ProjectsLocationsGlobalOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsCancelCall {
  6231  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6232  	return c
  6233  }
  6234  
  6235  // Context sets the context to be used in this call's Do method.
  6236  func (c *ProjectsLocationsGlobalOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsCancelCall {
  6237  	c.ctx_ = ctx
  6238  	return c
  6239  }
  6240  
  6241  // Header returns a http.Header that can be modified by the caller to add
  6242  // headers to the request.
  6243  func (c *ProjectsLocationsGlobalOperationsCancelCall) Header() http.Header {
  6244  	if c.header_ == nil {
  6245  		c.header_ = make(http.Header)
  6246  	}
  6247  	return c.header_
  6248  }
  6249  
  6250  func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
  6251  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6252  	var body io.Reader = nil
  6253  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
  6254  	if err != nil {
  6255  		return nil, err
  6256  	}
  6257  	c.urlParams_.Set("alt", alt)
  6258  	c.urlParams_.Set("prettyPrint", "false")
  6259  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
  6260  	urls += "?" + c.urlParams_.Encode()
  6261  	req, err := http.NewRequest("POST", urls, body)
  6262  	if err != nil {
  6263  		return nil, err
  6264  	}
  6265  	req.Header = reqHeaders
  6266  	googleapi.Expand(req.URL, map[string]string{
  6267  		"name": c.name,
  6268  	})
  6269  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6270  }
  6271  
  6272  // Do executes the "managedidentities.projects.locations.global.operations.cancel" call.
  6273  // Any non-2xx status code is an error. Response headers are in either
  6274  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  6275  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6276  // whether the returned error was because http.StatusNotModified was returned.
  6277  func (c *ProjectsLocationsGlobalOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  6278  	gensupport.SetOptions(c.urlParams_, opts...)
  6279  	res, err := c.doRequest("json")
  6280  	if res != nil && res.StatusCode == http.StatusNotModified {
  6281  		if res.Body != nil {
  6282  			res.Body.Close()
  6283  		}
  6284  		return nil, gensupport.WrapError(&googleapi.Error{
  6285  			Code:   res.StatusCode,
  6286  			Header: res.Header,
  6287  		})
  6288  	}
  6289  	if err != nil {
  6290  		return nil, err
  6291  	}
  6292  	defer googleapi.CloseBody(res)
  6293  	if err := googleapi.CheckResponse(res); err != nil {
  6294  		return nil, gensupport.WrapError(err)
  6295  	}
  6296  	ret := &Empty{
  6297  		ServerResponse: googleapi.ServerResponse{
  6298  			Header:         res.Header,
  6299  			HTTPStatusCode: res.StatusCode,
  6300  		},
  6301  	}
  6302  	target := &ret
  6303  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6304  		return nil, err
  6305  	}
  6306  	return ret, nil
  6307  }
  6308  
  6309  type ProjectsLocationsGlobalOperationsDeleteCall struct {
  6310  	s          *Service
  6311  	name       string
  6312  	urlParams_ gensupport.URLParams
  6313  	ctx_       context.Context
  6314  	header_    http.Header
  6315  }
  6316  
  6317  // Delete: Deletes a long-running operation. This method indicates that the
  6318  // client is no longer interested in the operation result. It does not cancel
  6319  // the operation. If the server doesn't support this method, it returns
  6320  // `google.rpc.Code.UNIMPLEMENTED`.
  6321  //
  6322  // - name: The name of the operation resource to be deleted.
  6323  func (r *ProjectsLocationsGlobalOperationsService) Delete(name string) *ProjectsLocationsGlobalOperationsDeleteCall {
  6324  	c := &ProjectsLocationsGlobalOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6325  	c.name = name
  6326  	return c
  6327  }
  6328  
  6329  // Fields allows partial responses to be retrieved. See
  6330  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6331  // details.
  6332  func (c *ProjectsLocationsGlobalOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsDeleteCall {
  6333  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6334  	return c
  6335  }
  6336  
  6337  // Context sets the context to be used in this call's Do method.
  6338  func (c *ProjectsLocationsGlobalOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsDeleteCall {
  6339  	c.ctx_ = ctx
  6340  	return c
  6341  }
  6342  
  6343  // Header returns a http.Header that can be modified by the caller to add
  6344  // headers to the request.
  6345  func (c *ProjectsLocationsGlobalOperationsDeleteCall) Header() http.Header {
  6346  	if c.header_ == nil {
  6347  		c.header_ = make(http.Header)
  6348  	}
  6349  	return c.header_
  6350  }
  6351  
  6352  func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6353  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6354  	var body io.Reader = nil
  6355  	c.urlParams_.Set("alt", alt)
  6356  	c.urlParams_.Set("prettyPrint", "false")
  6357  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6358  	urls += "?" + c.urlParams_.Encode()
  6359  	req, err := http.NewRequest("DELETE", urls, body)
  6360  	if err != nil {
  6361  		return nil, err
  6362  	}
  6363  	req.Header = reqHeaders
  6364  	googleapi.Expand(req.URL, map[string]string{
  6365  		"name": c.name,
  6366  	})
  6367  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6368  }
  6369  
  6370  // Do executes the "managedidentities.projects.locations.global.operations.delete" call.
  6371  // Any non-2xx status code is an error. Response headers are in either
  6372  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  6373  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6374  // whether the returned error was because http.StatusNotModified was returned.
  6375  func (c *ProjectsLocationsGlobalOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  6376  	gensupport.SetOptions(c.urlParams_, opts...)
  6377  	res, err := c.doRequest("json")
  6378  	if res != nil && res.StatusCode == http.StatusNotModified {
  6379  		if res.Body != nil {
  6380  			res.Body.Close()
  6381  		}
  6382  		return nil, gensupport.WrapError(&googleapi.Error{
  6383  			Code:   res.StatusCode,
  6384  			Header: res.Header,
  6385  		})
  6386  	}
  6387  	if err != nil {
  6388  		return nil, err
  6389  	}
  6390  	defer googleapi.CloseBody(res)
  6391  	if err := googleapi.CheckResponse(res); err != nil {
  6392  		return nil, gensupport.WrapError(err)
  6393  	}
  6394  	ret := &Empty{
  6395  		ServerResponse: googleapi.ServerResponse{
  6396  			Header:         res.Header,
  6397  			HTTPStatusCode: res.StatusCode,
  6398  		},
  6399  	}
  6400  	target := &ret
  6401  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6402  		return nil, err
  6403  	}
  6404  	return ret, nil
  6405  }
  6406  
  6407  type ProjectsLocationsGlobalOperationsGetCall struct {
  6408  	s            *Service
  6409  	name         string
  6410  	urlParams_   gensupport.URLParams
  6411  	ifNoneMatch_ string
  6412  	ctx_         context.Context
  6413  	header_      http.Header
  6414  }
  6415  
  6416  // Get: Gets the latest state of a long-running operation. Clients can use this
  6417  // method to poll the operation result at intervals as recommended by the API
  6418  // service.
  6419  //
  6420  // - name: The name of the operation resource.
  6421  func (r *ProjectsLocationsGlobalOperationsService) Get(name string) *ProjectsLocationsGlobalOperationsGetCall {
  6422  	c := &ProjectsLocationsGlobalOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6423  	c.name = name
  6424  	return c
  6425  }
  6426  
  6427  // Fields allows partial responses to be retrieved. See
  6428  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6429  // details.
  6430  func (c *ProjectsLocationsGlobalOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsGetCall {
  6431  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6432  	return c
  6433  }
  6434  
  6435  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6436  // object's ETag matches the given value. This is useful for getting updates
  6437  // only after the object has changed since the last request.
  6438  func (c *ProjectsLocationsGlobalOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalOperationsGetCall {
  6439  	c.ifNoneMatch_ = entityTag
  6440  	return c
  6441  }
  6442  
  6443  // Context sets the context to be used in this call's Do method.
  6444  func (c *ProjectsLocationsGlobalOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsGetCall {
  6445  	c.ctx_ = ctx
  6446  	return c
  6447  }
  6448  
  6449  // Header returns a http.Header that can be modified by the caller to add
  6450  // headers to the request.
  6451  func (c *ProjectsLocationsGlobalOperationsGetCall) Header() http.Header {
  6452  	if c.header_ == nil {
  6453  		c.header_ = make(http.Header)
  6454  	}
  6455  	return c.header_
  6456  }
  6457  
  6458  func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) {
  6459  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6460  	if c.ifNoneMatch_ != "" {
  6461  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6462  	}
  6463  	var body io.Reader = nil
  6464  	c.urlParams_.Set("alt", alt)
  6465  	c.urlParams_.Set("prettyPrint", "false")
  6466  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6467  	urls += "?" + c.urlParams_.Encode()
  6468  	req, err := http.NewRequest("GET", urls, body)
  6469  	if err != nil {
  6470  		return nil, err
  6471  	}
  6472  	req.Header = reqHeaders
  6473  	googleapi.Expand(req.URL, map[string]string{
  6474  		"name": c.name,
  6475  	})
  6476  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6477  }
  6478  
  6479  // Do executes the "managedidentities.projects.locations.global.operations.get" call.
  6480  // Any non-2xx status code is an error. Response headers are in either
  6481  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6482  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6483  // whether the returned error was because http.StatusNotModified was returned.
  6484  func (c *ProjectsLocationsGlobalOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6485  	gensupport.SetOptions(c.urlParams_, opts...)
  6486  	res, err := c.doRequest("json")
  6487  	if res != nil && res.StatusCode == http.StatusNotModified {
  6488  		if res.Body != nil {
  6489  			res.Body.Close()
  6490  		}
  6491  		return nil, gensupport.WrapError(&googleapi.Error{
  6492  			Code:   res.StatusCode,
  6493  			Header: res.Header,
  6494  		})
  6495  	}
  6496  	if err != nil {
  6497  		return nil, err
  6498  	}
  6499  	defer googleapi.CloseBody(res)
  6500  	if err := googleapi.CheckResponse(res); err != nil {
  6501  		return nil, gensupport.WrapError(err)
  6502  	}
  6503  	ret := &Operation{
  6504  		ServerResponse: googleapi.ServerResponse{
  6505  			Header:         res.Header,
  6506  			HTTPStatusCode: res.StatusCode,
  6507  		},
  6508  	}
  6509  	target := &ret
  6510  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6511  		return nil, err
  6512  	}
  6513  	return ret, nil
  6514  }
  6515  
  6516  type ProjectsLocationsGlobalOperationsListCall struct {
  6517  	s            *Service
  6518  	name         string
  6519  	urlParams_   gensupport.URLParams
  6520  	ifNoneMatch_ string
  6521  	ctx_         context.Context
  6522  	header_      http.Header
  6523  }
  6524  
  6525  // List: Lists operations that match the specified filter in the request. If
  6526  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
  6527  //
  6528  // - name: The name of the operation's parent resource.
  6529  func (r *ProjectsLocationsGlobalOperationsService) List(name string) *ProjectsLocationsGlobalOperationsListCall {
  6530  	c := &ProjectsLocationsGlobalOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6531  	c.name = name
  6532  	return c
  6533  }
  6534  
  6535  // Filter sets the optional parameter "filter": The standard list filter.
  6536  func (c *ProjectsLocationsGlobalOperationsListCall) Filter(filter string) *ProjectsLocationsGlobalOperationsListCall {
  6537  	c.urlParams_.Set("filter", filter)
  6538  	return c
  6539  }
  6540  
  6541  // PageSize sets the optional parameter "pageSize": The standard list page
  6542  // size.
  6543  func (c *ProjectsLocationsGlobalOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalOperationsListCall {
  6544  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6545  	return c
  6546  }
  6547  
  6548  // PageToken sets the optional parameter "pageToken": The standard list page
  6549  // token.
  6550  func (c *ProjectsLocationsGlobalOperationsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalOperationsListCall {
  6551  	c.urlParams_.Set("pageToken", pageToken)
  6552  	return c
  6553  }
  6554  
  6555  // Fields allows partial responses to be retrieved. See
  6556  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6557  // details.
  6558  func (c *ProjectsLocationsGlobalOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsListCall {
  6559  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6560  	return c
  6561  }
  6562  
  6563  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6564  // object's ETag matches the given value. This is useful for getting updates
  6565  // only after the object has changed since the last request.
  6566  func (c *ProjectsLocationsGlobalOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalOperationsListCall {
  6567  	c.ifNoneMatch_ = entityTag
  6568  	return c
  6569  }
  6570  
  6571  // Context sets the context to be used in this call's Do method.
  6572  func (c *ProjectsLocationsGlobalOperationsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsListCall {
  6573  	c.ctx_ = ctx
  6574  	return c
  6575  }
  6576  
  6577  // Header returns a http.Header that can be modified by the caller to add
  6578  // headers to the request.
  6579  func (c *ProjectsLocationsGlobalOperationsListCall) Header() http.Header {
  6580  	if c.header_ == nil {
  6581  		c.header_ = make(http.Header)
  6582  	}
  6583  	return c.header_
  6584  }
  6585  
  6586  func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http.Response, error) {
  6587  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6588  	if c.ifNoneMatch_ != "" {
  6589  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6590  	}
  6591  	var body io.Reader = nil
  6592  	c.urlParams_.Set("alt", alt)
  6593  	c.urlParams_.Set("prettyPrint", "false")
  6594  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6595  	urls += "?" + c.urlParams_.Encode()
  6596  	req, err := http.NewRequest("GET", urls, body)
  6597  	if err != nil {
  6598  		return nil, err
  6599  	}
  6600  	req.Header = reqHeaders
  6601  	googleapi.Expand(req.URL, map[string]string{
  6602  		"name": c.name,
  6603  	})
  6604  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6605  }
  6606  
  6607  // Do executes the "managedidentities.projects.locations.global.operations.list" call.
  6608  // Any non-2xx status code is an error. Response headers are in either
  6609  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
  6610  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6611  // check whether the returned error was because http.StatusNotModified was
  6612  // returned.
  6613  func (c *ProjectsLocationsGlobalOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
  6614  	gensupport.SetOptions(c.urlParams_, opts...)
  6615  	res, err := c.doRequest("json")
  6616  	if res != nil && res.StatusCode == http.StatusNotModified {
  6617  		if res.Body != nil {
  6618  			res.Body.Close()
  6619  		}
  6620  		return nil, gensupport.WrapError(&googleapi.Error{
  6621  			Code:   res.StatusCode,
  6622  			Header: res.Header,
  6623  		})
  6624  	}
  6625  	if err != nil {
  6626  		return nil, err
  6627  	}
  6628  	defer googleapi.CloseBody(res)
  6629  	if err := googleapi.CheckResponse(res); err != nil {
  6630  		return nil, gensupport.WrapError(err)
  6631  	}
  6632  	ret := &ListOperationsResponse{
  6633  		ServerResponse: googleapi.ServerResponse{
  6634  			Header:         res.Header,
  6635  			HTTPStatusCode: res.StatusCode,
  6636  		},
  6637  	}
  6638  	target := &ret
  6639  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6640  		return nil, err
  6641  	}
  6642  	return ret, nil
  6643  }
  6644  
  6645  // Pages invokes f for each page of results.
  6646  // A non-nil error returned from f will halt the iteration.
  6647  // The provided context supersedes any context provided to the Context method.
  6648  func (c *ProjectsLocationsGlobalOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
  6649  	c.ctx_ = ctx
  6650  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6651  	for {
  6652  		x, err := c.Do()
  6653  		if err != nil {
  6654  			return err
  6655  		}
  6656  		if err := f(x); err != nil {
  6657  			return err
  6658  		}
  6659  		if x.NextPageToken == "" {
  6660  			return nil
  6661  		}
  6662  		c.PageToken(x.NextPageToken)
  6663  	}
  6664  }
  6665  
  6666  type ProjectsLocationsGlobalPeeringsCreateCall struct {
  6667  	s          *Service
  6668  	parent     string
  6669  	peering    *Peering
  6670  	urlParams_ gensupport.URLParams
  6671  	ctx_       context.Context
  6672  	header_    http.Header
  6673  }
  6674  
  6675  // Create: Creates a Peering for Managed AD instance.
  6676  //
  6677  //   - parent: Resource project name and location using the form:
  6678  //     `projects/{project_id}/locations/global`.
  6679  func (r *ProjectsLocationsGlobalPeeringsService) Create(parent string, peering *Peering) *ProjectsLocationsGlobalPeeringsCreateCall {
  6680  	c := &ProjectsLocationsGlobalPeeringsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6681  	c.parent = parent
  6682  	c.peering = peering
  6683  	return c
  6684  }
  6685  
  6686  // PeeringId sets the optional parameter "peeringId": Required. Peering Id,
  6687  // unique name to identify peering. It should follow the regex format "^(?:a-z
  6688  // (?:[-a-z0-9]{0,61}[a-z0-9])?)$"
  6689  func (c *ProjectsLocationsGlobalPeeringsCreateCall) PeeringId(peeringId string) *ProjectsLocationsGlobalPeeringsCreateCall {
  6690  	c.urlParams_.Set("peeringId", peeringId)
  6691  	return c
  6692  }
  6693  
  6694  // Fields allows partial responses to be retrieved. See
  6695  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6696  // details.
  6697  func (c *ProjectsLocationsGlobalPeeringsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPeeringsCreateCall {
  6698  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6699  	return c
  6700  }
  6701  
  6702  // Context sets the context to be used in this call's Do method.
  6703  func (c *ProjectsLocationsGlobalPeeringsCreateCall) Context(ctx context.Context) *ProjectsLocationsGlobalPeeringsCreateCall {
  6704  	c.ctx_ = ctx
  6705  	return c
  6706  }
  6707  
  6708  // Header returns a http.Header that can be modified by the caller to add
  6709  // headers to the request.
  6710  func (c *ProjectsLocationsGlobalPeeringsCreateCall) Header() http.Header {
  6711  	if c.header_ == nil {
  6712  		c.header_ = make(http.Header)
  6713  	}
  6714  	return c.header_
  6715  }
  6716  
  6717  func (c *ProjectsLocationsGlobalPeeringsCreateCall) doRequest(alt string) (*http.Response, error) {
  6718  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6719  	var body io.Reader = nil
  6720  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.peering)
  6721  	if err != nil {
  6722  		return nil, err
  6723  	}
  6724  	c.urlParams_.Set("alt", alt)
  6725  	c.urlParams_.Set("prettyPrint", "false")
  6726  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/peerings")
  6727  	urls += "?" + c.urlParams_.Encode()
  6728  	req, err := http.NewRequest("POST", urls, body)
  6729  	if err != nil {
  6730  		return nil, err
  6731  	}
  6732  	req.Header = reqHeaders
  6733  	googleapi.Expand(req.URL, map[string]string{
  6734  		"parent": c.parent,
  6735  	})
  6736  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6737  }
  6738  
  6739  // Do executes the "managedidentities.projects.locations.global.peerings.create" call.
  6740  // Any non-2xx status code is an error. Response headers are in either
  6741  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6742  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6743  // whether the returned error was because http.StatusNotModified was returned.
  6744  func (c *ProjectsLocationsGlobalPeeringsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6745  	gensupport.SetOptions(c.urlParams_, opts...)
  6746  	res, err := c.doRequest("json")
  6747  	if res != nil && res.StatusCode == http.StatusNotModified {
  6748  		if res.Body != nil {
  6749  			res.Body.Close()
  6750  		}
  6751  		return nil, gensupport.WrapError(&googleapi.Error{
  6752  			Code:   res.StatusCode,
  6753  			Header: res.Header,
  6754  		})
  6755  	}
  6756  	if err != nil {
  6757  		return nil, err
  6758  	}
  6759  	defer googleapi.CloseBody(res)
  6760  	if err := googleapi.CheckResponse(res); err != nil {
  6761  		return nil, gensupport.WrapError(err)
  6762  	}
  6763  	ret := &Operation{
  6764  		ServerResponse: googleapi.ServerResponse{
  6765  			Header:         res.Header,
  6766  			HTTPStatusCode: res.StatusCode,
  6767  		},
  6768  	}
  6769  	target := &ret
  6770  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6771  		return nil, err
  6772  	}
  6773  	return ret, nil
  6774  }
  6775  
  6776  type ProjectsLocationsGlobalPeeringsDeleteCall struct {
  6777  	s          *Service
  6778  	name       string
  6779  	urlParams_ gensupport.URLParams
  6780  	ctx_       context.Context
  6781  	header_    http.Header
  6782  }
  6783  
  6784  // Delete: Deletes identified Peering.
  6785  //
  6786  //   - name: Peering resource name using the form:
  6787  //     `projects/{project_id}/locations/global/peerings/{peering_id}`.
  6788  func (r *ProjectsLocationsGlobalPeeringsService) Delete(name string) *ProjectsLocationsGlobalPeeringsDeleteCall {
  6789  	c := &ProjectsLocationsGlobalPeeringsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6790  	c.name = name
  6791  	return c
  6792  }
  6793  
  6794  // Fields allows partial responses to be retrieved. See
  6795  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6796  // details.
  6797  func (c *ProjectsLocationsGlobalPeeringsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPeeringsDeleteCall {
  6798  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6799  	return c
  6800  }
  6801  
  6802  // Context sets the context to be used in this call's Do method.
  6803  func (c *ProjectsLocationsGlobalPeeringsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalPeeringsDeleteCall {
  6804  	c.ctx_ = ctx
  6805  	return c
  6806  }
  6807  
  6808  // Header returns a http.Header that can be modified by the caller to add
  6809  // headers to the request.
  6810  func (c *ProjectsLocationsGlobalPeeringsDeleteCall) Header() http.Header {
  6811  	if c.header_ == nil {
  6812  		c.header_ = make(http.Header)
  6813  	}
  6814  	return c.header_
  6815  }
  6816  
  6817  func (c *ProjectsLocationsGlobalPeeringsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6818  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6819  	var body io.Reader = nil
  6820  	c.urlParams_.Set("alt", alt)
  6821  	c.urlParams_.Set("prettyPrint", "false")
  6822  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6823  	urls += "?" + c.urlParams_.Encode()
  6824  	req, err := http.NewRequest("DELETE", urls, body)
  6825  	if err != nil {
  6826  		return nil, err
  6827  	}
  6828  	req.Header = reqHeaders
  6829  	googleapi.Expand(req.URL, map[string]string{
  6830  		"name": c.name,
  6831  	})
  6832  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6833  }
  6834  
  6835  // Do executes the "managedidentities.projects.locations.global.peerings.delete" call.
  6836  // Any non-2xx status code is an error. Response headers are in either
  6837  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6838  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6839  // whether the returned error was because http.StatusNotModified was returned.
  6840  func (c *ProjectsLocationsGlobalPeeringsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6841  	gensupport.SetOptions(c.urlParams_, opts...)
  6842  	res, err := c.doRequest("json")
  6843  	if res != nil && res.StatusCode == http.StatusNotModified {
  6844  		if res.Body != nil {
  6845  			res.Body.Close()
  6846  		}
  6847  		return nil, gensupport.WrapError(&googleapi.Error{
  6848  			Code:   res.StatusCode,
  6849  			Header: res.Header,
  6850  		})
  6851  	}
  6852  	if err != nil {
  6853  		return nil, err
  6854  	}
  6855  	defer googleapi.CloseBody(res)
  6856  	if err := googleapi.CheckResponse(res); err != nil {
  6857  		return nil, gensupport.WrapError(err)
  6858  	}
  6859  	ret := &Operation{
  6860  		ServerResponse: googleapi.ServerResponse{
  6861  			Header:         res.Header,
  6862  			HTTPStatusCode: res.StatusCode,
  6863  		},
  6864  	}
  6865  	target := &ret
  6866  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6867  		return nil, err
  6868  	}
  6869  	return ret, nil
  6870  }
  6871  
  6872  type ProjectsLocationsGlobalPeeringsGetCall struct {
  6873  	s            *Service
  6874  	name         string
  6875  	urlParams_   gensupport.URLParams
  6876  	ifNoneMatch_ string
  6877  	ctx_         context.Context
  6878  	header_      http.Header
  6879  }
  6880  
  6881  // Get: Gets details of a single Peering.
  6882  //
  6883  //   - name: Peering resource name using the form:
  6884  //     `projects/{project_id}/locations/global/peerings/{peering_id}`.
  6885  func (r *ProjectsLocationsGlobalPeeringsService) Get(name string) *ProjectsLocationsGlobalPeeringsGetCall {
  6886  	c := &ProjectsLocationsGlobalPeeringsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6887  	c.name = name
  6888  	return c
  6889  }
  6890  
  6891  // Fields allows partial responses to be retrieved. See
  6892  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6893  // details.
  6894  func (c *ProjectsLocationsGlobalPeeringsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPeeringsGetCall {
  6895  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6896  	return c
  6897  }
  6898  
  6899  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6900  // object's ETag matches the given value. This is useful for getting updates
  6901  // only after the object has changed since the last request.
  6902  func (c *ProjectsLocationsGlobalPeeringsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalPeeringsGetCall {
  6903  	c.ifNoneMatch_ = entityTag
  6904  	return c
  6905  }
  6906  
  6907  // Context sets the context to be used in this call's Do method.
  6908  func (c *ProjectsLocationsGlobalPeeringsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalPeeringsGetCall {
  6909  	c.ctx_ = ctx
  6910  	return c
  6911  }
  6912  
  6913  // Header returns a http.Header that can be modified by the caller to add
  6914  // headers to the request.
  6915  func (c *ProjectsLocationsGlobalPeeringsGetCall) Header() http.Header {
  6916  	if c.header_ == nil {
  6917  		c.header_ = make(http.Header)
  6918  	}
  6919  	return c.header_
  6920  }
  6921  
  6922  func (c *ProjectsLocationsGlobalPeeringsGetCall) doRequest(alt string) (*http.Response, error) {
  6923  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6924  	if c.ifNoneMatch_ != "" {
  6925  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6926  	}
  6927  	var body io.Reader = nil
  6928  	c.urlParams_.Set("alt", alt)
  6929  	c.urlParams_.Set("prettyPrint", "false")
  6930  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6931  	urls += "?" + c.urlParams_.Encode()
  6932  	req, err := http.NewRequest("GET", urls, body)
  6933  	if err != nil {
  6934  		return nil, err
  6935  	}
  6936  	req.Header = reqHeaders
  6937  	googleapi.Expand(req.URL, map[string]string{
  6938  		"name": c.name,
  6939  	})
  6940  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6941  }
  6942  
  6943  // Do executes the "managedidentities.projects.locations.global.peerings.get" call.
  6944  // Any non-2xx status code is an error. Response headers are in either
  6945  // *Peering.ServerResponse.Header or (if a response was returned at all) in
  6946  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6947  // whether the returned error was because http.StatusNotModified was returned.
  6948  func (c *ProjectsLocationsGlobalPeeringsGetCall) Do(opts ...googleapi.CallOption) (*Peering, error) {
  6949  	gensupport.SetOptions(c.urlParams_, opts...)
  6950  	res, err := c.doRequest("json")
  6951  	if res != nil && res.StatusCode == http.StatusNotModified {
  6952  		if res.Body != nil {
  6953  			res.Body.Close()
  6954  		}
  6955  		return nil, gensupport.WrapError(&googleapi.Error{
  6956  			Code:   res.StatusCode,
  6957  			Header: res.Header,
  6958  		})
  6959  	}
  6960  	if err != nil {
  6961  		return nil, err
  6962  	}
  6963  	defer googleapi.CloseBody(res)
  6964  	if err := googleapi.CheckResponse(res); err != nil {
  6965  		return nil, gensupport.WrapError(err)
  6966  	}
  6967  	ret := &Peering{
  6968  		ServerResponse: googleapi.ServerResponse{
  6969  			Header:         res.Header,
  6970  			HTTPStatusCode: res.StatusCode,
  6971  		},
  6972  	}
  6973  	target := &ret
  6974  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6975  		return nil, err
  6976  	}
  6977  	return ret, nil
  6978  }
  6979  
  6980  type ProjectsLocationsGlobalPeeringsGetIamPolicyCall struct {
  6981  	s            *Service
  6982  	resource     string
  6983  	urlParams_   gensupport.URLParams
  6984  	ifNoneMatch_ string
  6985  	ctx_         context.Context
  6986  	header_      http.Header
  6987  }
  6988  
  6989  // GetIamPolicy: Gets the access control policy for a resource. Returns an
  6990  // empty policy if the resource exists and does not have a policy set.
  6991  //
  6992  //   - resource: REQUIRED: The resource for which the policy is being requested.
  6993  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  6994  //     for the appropriate value for this field.
  6995  func (r *ProjectsLocationsGlobalPeeringsService) GetIamPolicy(resource string) *ProjectsLocationsGlobalPeeringsGetIamPolicyCall {
  6996  	c := &ProjectsLocationsGlobalPeeringsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6997  	c.resource = resource
  6998  	return c
  6999  }
  7000  
  7001  // OptionsRequestedPolicyVersion sets the optional parameter
  7002  // "options.requestedPolicyVersion": The maximum policy version that will be
  7003  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
  7004  // an invalid value will be rejected. Requests for policies with any
  7005  // conditional role bindings must specify version 3. Policies with no
  7006  // conditional role bindings may specify any valid value or leave the field
  7007  // unset. The policy in the response might use the policy version that you
  7008  // specified, or it might use a lower policy version. For example, if you
  7009  // specify version 3, but the policy has no conditional role bindings, the
  7010  // response uses version 1. To learn which resources support conditions in
  7011  // their IAM policies, see the IAM documentation
  7012  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  7013  func (c *ProjectsLocationsGlobalPeeringsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGlobalPeeringsGetIamPolicyCall {
  7014  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  7015  	return c
  7016  }
  7017  
  7018  // Fields allows partial responses to be retrieved. See
  7019  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7020  // details.
  7021  func (c *ProjectsLocationsGlobalPeeringsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPeeringsGetIamPolicyCall {
  7022  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7023  	return c
  7024  }
  7025  
  7026  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7027  // object's ETag matches the given value. This is useful for getting updates
  7028  // only after the object has changed since the last request.
  7029  func (c *ProjectsLocationsGlobalPeeringsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalPeeringsGetIamPolicyCall {
  7030  	c.ifNoneMatch_ = entityTag
  7031  	return c
  7032  }
  7033  
  7034  // Context sets the context to be used in this call's Do method.
  7035  func (c *ProjectsLocationsGlobalPeeringsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGlobalPeeringsGetIamPolicyCall {
  7036  	c.ctx_ = ctx
  7037  	return c
  7038  }
  7039  
  7040  // Header returns a http.Header that can be modified by the caller to add
  7041  // headers to the request.
  7042  func (c *ProjectsLocationsGlobalPeeringsGetIamPolicyCall) Header() http.Header {
  7043  	if c.header_ == nil {
  7044  		c.header_ = make(http.Header)
  7045  	}
  7046  	return c.header_
  7047  }
  7048  
  7049  func (c *ProjectsLocationsGlobalPeeringsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  7050  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7051  	if c.ifNoneMatch_ != "" {
  7052  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7053  	}
  7054  	var body io.Reader = nil
  7055  	c.urlParams_.Set("alt", alt)
  7056  	c.urlParams_.Set("prettyPrint", "false")
  7057  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  7058  	urls += "?" + c.urlParams_.Encode()
  7059  	req, err := http.NewRequest("GET", urls, body)
  7060  	if err != nil {
  7061  		return nil, err
  7062  	}
  7063  	req.Header = reqHeaders
  7064  	googleapi.Expand(req.URL, map[string]string{
  7065  		"resource": c.resource,
  7066  	})
  7067  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7068  }
  7069  
  7070  // Do executes the "managedidentities.projects.locations.global.peerings.getIamPolicy" call.
  7071  // Any non-2xx status code is an error. Response headers are in either
  7072  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  7073  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7074  // whether the returned error was because http.StatusNotModified was returned.
  7075  func (c *ProjectsLocationsGlobalPeeringsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  7076  	gensupport.SetOptions(c.urlParams_, opts...)
  7077  	res, err := c.doRequest("json")
  7078  	if res != nil && res.StatusCode == http.StatusNotModified {
  7079  		if res.Body != nil {
  7080  			res.Body.Close()
  7081  		}
  7082  		return nil, gensupport.WrapError(&googleapi.Error{
  7083  			Code:   res.StatusCode,
  7084  			Header: res.Header,
  7085  		})
  7086  	}
  7087  	if err != nil {
  7088  		return nil, err
  7089  	}
  7090  	defer googleapi.CloseBody(res)
  7091  	if err := googleapi.CheckResponse(res); err != nil {
  7092  		return nil, gensupport.WrapError(err)
  7093  	}
  7094  	ret := &Policy{
  7095  		ServerResponse: googleapi.ServerResponse{
  7096  			Header:         res.Header,
  7097  			HTTPStatusCode: res.StatusCode,
  7098  		},
  7099  	}
  7100  	target := &ret
  7101  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7102  		return nil, err
  7103  	}
  7104  	return ret, nil
  7105  }
  7106  
  7107  type ProjectsLocationsGlobalPeeringsListCall struct {
  7108  	s            *Service
  7109  	parent       string
  7110  	urlParams_   gensupport.URLParams
  7111  	ifNoneMatch_ string
  7112  	ctx_         context.Context
  7113  	header_      http.Header
  7114  }
  7115  
  7116  // List: Lists Peerings in a given project.
  7117  //
  7118  //   - parent: The resource name of the peering location using the form:
  7119  //     `projects/{project_id}/locations/global`.
  7120  func (r *ProjectsLocationsGlobalPeeringsService) List(parent string) *ProjectsLocationsGlobalPeeringsListCall {
  7121  	c := &ProjectsLocationsGlobalPeeringsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7122  	c.parent = parent
  7123  	return c
  7124  }
  7125  
  7126  // Filter sets the optional parameter "filter": Filter specifying constraints
  7127  // of a list operation. For example,
  7128  // `peering.authorized_network="projects/myprojectid/global/networks/mynetwork"
  7129  // .
  7130  func (c *ProjectsLocationsGlobalPeeringsListCall) Filter(filter string) *ProjectsLocationsGlobalPeeringsListCall {
  7131  	c.urlParams_.Set("filter", filter)
  7132  	return c
  7133  }
  7134  
  7135  // OrderBy sets the optional parameter "orderBy": Specifies the ordering of
  7136  // results following syntax at
  7137  // https://cloud.google.com/apis/design/design_patterns#sorting_order.
  7138  func (c *ProjectsLocationsGlobalPeeringsListCall) OrderBy(orderBy string) *ProjectsLocationsGlobalPeeringsListCall {
  7139  	c.urlParams_.Set("orderBy", orderBy)
  7140  	return c
  7141  }
  7142  
  7143  // PageSize sets the optional parameter "pageSize": The maximum number of items
  7144  // to return. If not specified, a default value of 1000 will be used by the
  7145  // service. Regardless of the page_size value, the response may include a
  7146  // partial list and a caller should only rely on response's next_page_token to
  7147  // determine if there are more instances left to be queried.
  7148  func (c *ProjectsLocationsGlobalPeeringsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalPeeringsListCall {
  7149  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7150  	return c
  7151  }
  7152  
  7153  // PageToken sets the optional parameter "pageToken": The next_page_token value
  7154  // returned from a previous List request, if any.
  7155  func (c *ProjectsLocationsGlobalPeeringsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalPeeringsListCall {
  7156  	c.urlParams_.Set("pageToken", pageToken)
  7157  	return c
  7158  }
  7159  
  7160  // Fields allows partial responses to be retrieved. See
  7161  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7162  // details.
  7163  func (c *ProjectsLocationsGlobalPeeringsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPeeringsListCall {
  7164  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7165  	return c
  7166  }
  7167  
  7168  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7169  // object's ETag matches the given value. This is useful for getting updates
  7170  // only after the object has changed since the last request.
  7171  func (c *ProjectsLocationsGlobalPeeringsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalPeeringsListCall {
  7172  	c.ifNoneMatch_ = entityTag
  7173  	return c
  7174  }
  7175  
  7176  // Context sets the context to be used in this call's Do method.
  7177  func (c *ProjectsLocationsGlobalPeeringsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalPeeringsListCall {
  7178  	c.ctx_ = ctx
  7179  	return c
  7180  }
  7181  
  7182  // Header returns a http.Header that can be modified by the caller to add
  7183  // headers to the request.
  7184  func (c *ProjectsLocationsGlobalPeeringsListCall) Header() http.Header {
  7185  	if c.header_ == nil {
  7186  		c.header_ = make(http.Header)
  7187  	}
  7188  	return c.header_
  7189  }
  7190  
  7191  func (c *ProjectsLocationsGlobalPeeringsListCall) doRequest(alt string) (*http.Response, error) {
  7192  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7193  	if c.ifNoneMatch_ != "" {
  7194  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7195  	}
  7196  	var body io.Reader = nil
  7197  	c.urlParams_.Set("alt", alt)
  7198  	c.urlParams_.Set("prettyPrint", "false")
  7199  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/peerings")
  7200  	urls += "?" + c.urlParams_.Encode()
  7201  	req, err := http.NewRequest("GET", urls, body)
  7202  	if err != nil {
  7203  		return nil, err
  7204  	}
  7205  	req.Header = reqHeaders
  7206  	googleapi.Expand(req.URL, map[string]string{
  7207  		"parent": c.parent,
  7208  	})
  7209  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7210  }
  7211  
  7212  // Do executes the "managedidentities.projects.locations.global.peerings.list" call.
  7213  // Any non-2xx status code is an error. Response headers are in either
  7214  // *ListPeeringsResponse.ServerResponse.Header or (if a response was returned
  7215  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7216  // check whether the returned error was because http.StatusNotModified was
  7217  // returned.
  7218  func (c *ProjectsLocationsGlobalPeeringsListCall) Do(opts ...googleapi.CallOption) (*ListPeeringsResponse, error) {
  7219  	gensupport.SetOptions(c.urlParams_, opts...)
  7220  	res, err := c.doRequest("json")
  7221  	if res != nil && res.StatusCode == http.StatusNotModified {
  7222  		if res.Body != nil {
  7223  			res.Body.Close()
  7224  		}
  7225  		return nil, gensupport.WrapError(&googleapi.Error{
  7226  			Code:   res.StatusCode,
  7227  			Header: res.Header,
  7228  		})
  7229  	}
  7230  	if err != nil {
  7231  		return nil, err
  7232  	}
  7233  	defer googleapi.CloseBody(res)
  7234  	if err := googleapi.CheckResponse(res); err != nil {
  7235  		return nil, gensupport.WrapError(err)
  7236  	}
  7237  	ret := &ListPeeringsResponse{
  7238  		ServerResponse: googleapi.ServerResponse{
  7239  			Header:         res.Header,
  7240  			HTTPStatusCode: res.StatusCode,
  7241  		},
  7242  	}
  7243  	target := &ret
  7244  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7245  		return nil, err
  7246  	}
  7247  	return ret, nil
  7248  }
  7249  
  7250  // Pages invokes f for each page of results.
  7251  // A non-nil error returned from f will halt the iteration.
  7252  // The provided context supersedes any context provided to the Context method.
  7253  func (c *ProjectsLocationsGlobalPeeringsListCall) Pages(ctx context.Context, f func(*ListPeeringsResponse) error) error {
  7254  	c.ctx_ = ctx
  7255  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7256  	for {
  7257  		x, err := c.Do()
  7258  		if err != nil {
  7259  			return err
  7260  		}
  7261  		if err := f(x); err != nil {
  7262  			return err
  7263  		}
  7264  		if x.NextPageToken == "" {
  7265  			return nil
  7266  		}
  7267  		c.PageToken(x.NextPageToken)
  7268  	}
  7269  }
  7270  
  7271  type ProjectsLocationsGlobalPeeringsPatchCall struct {
  7272  	s          *Service
  7273  	name       string
  7274  	peering    *Peering
  7275  	urlParams_ gensupport.URLParams
  7276  	ctx_       context.Context
  7277  	header_    http.Header
  7278  }
  7279  
  7280  // Patch: Updates the labels for specified Peering.
  7281  //
  7282  //   - name: Output only. Unique name of the peering in this scope including
  7283  //     projects and location using the form:
  7284  //     `projects/{project_id}/locations/global/peerings/{peering_id}`.
  7285  func (r *ProjectsLocationsGlobalPeeringsService) Patch(name string, peering *Peering) *ProjectsLocationsGlobalPeeringsPatchCall {
  7286  	c := &ProjectsLocationsGlobalPeeringsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7287  	c.name = name
  7288  	c.peering = peering
  7289  	return c
  7290  }
  7291  
  7292  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
  7293  // fields to update. At least one path must be supplied in this field. The
  7294  // elements of the repeated paths field may only include these fields from
  7295  // Peering: * `labels`
  7296  func (c *ProjectsLocationsGlobalPeeringsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalPeeringsPatchCall {
  7297  	c.urlParams_.Set("updateMask", updateMask)
  7298  	return c
  7299  }
  7300  
  7301  // Fields allows partial responses to be retrieved. See
  7302  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7303  // details.
  7304  func (c *ProjectsLocationsGlobalPeeringsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPeeringsPatchCall {
  7305  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7306  	return c
  7307  }
  7308  
  7309  // Context sets the context to be used in this call's Do method.
  7310  func (c *ProjectsLocationsGlobalPeeringsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalPeeringsPatchCall {
  7311  	c.ctx_ = ctx
  7312  	return c
  7313  }
  7314  
  7315  // Header returns a http.Header that can be modified by the caller to add
  7316  // headers to the request.
  7317  func (c *ProjectsLocationsGlobalPeeringsPatchCall) Header() http.Header {
  7318  	if c.header_ == nil {
  7319  		c.header_ = make(http.Header)
  7320  	}
  7321  	return c.header_
  7322  }
  7323  
  7324  func (c *ProjectsLocationsGlobalPeeringsPatchCall) doRequest(alt string) (*http.Response, error) {
  7325  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7326  	var body io.Reader = nil
  7327  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.peering)
  7328  	if err != nil {
  7329  		return nil, err
  7330  	}
  7331  	c.urlParams_.Set("alt", alt)
  7332  	c.urlParams_.Set("prettyPrint", "false")
  7333  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7334  	urls += "?" + c.urlParams_.Encode()
  7335  	req, err := http.NewRequest("PATCH", urls, body)
  7336  	if err != nil {
  7337  		return nil, err
  7338  	}
  7339  	req.Header = reqHeaders
  7340  	googleapi.Expand(req.URL, map[string]string{
  7341  		"name": c.name,
  7342  	})
  7343  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7344  }
  7345  
  7346  // Do executes the "managedidentities.projects.locations.global.peerings.patch" call.
  7347  // Any non-2xx status code is an error. Response headers are in either
  7348  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7349  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7350  // whether the returned error was because http.StatusNotModified was returned.
  7351  func (c *ProjectsLocationsGlobalPeeringsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7352  	gensupport.SetOptions(c.urlParams_, opts...)
  7353  	res, err := c.doRequest("json")
  7354  	if res != nil && res.StatusCode == http.StatusNotModified {
  7355  		if res.Body != nil {
  7356  			res.Body.Close()
  7357  		}
  7358  		return nil, gensupport.WrapError(&googleapi.Error{
  7359  			Code:   res.StatusCode,
  7360  			Header: res.Header,
  7361  		})
  7362  	}
  7363  	if err != nil {
  7364  		return nil, err
  7365  	}
  7366  	defer googleapi.CloseBody(res)
  7367  	if err := googleapi.CheckResponse(res); err != nil {
  7368  		return nil, gensupport.WrapError(err)
  7369  	}
  7370  	ret := &Operation{
  7371  		ServerResponse: googleapi.ServerResponse{
  7372  			Header:         res.Header,
  7373  			HTTPStatusCode: res.StatusCode,
  7374  		},
  7375  	}
  7376  	target := &ret
  7377  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7378  		return nil, err
  7379  	}
  7380  	return ret, nil
  7381  }
  7382  
  7383  type ProjectsLocationsGlobalPeeringsSetIamPolicyCall struct {
  7384  	s                   *Service
  7385  	resource            string
  7386  	setiampolicyrequest *SetIamPolicyRequest
  7387  	urlParams_          gensupport.URLParams
  7388  	ctx_                context.Context
  7389  	header_             http.Header
  7390  }
  7391  
  7392  // SetIamPolicy: Sets the access control policy on the specified resource.
  7393  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
  7394  // and `PERMISSION_DENIED` errors.
  7395  //
  7396  //   - resource: REQUIRED: The resource for which the policy is being specified.
  7397  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  7398  //     for the appropriate value for this field.
  7399  func (r *ProjectsLocationsGlobalPeeringsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsGlobalPeeringsSetIamPolicyCall {
  7400  	c := &ProjectsLocationsGlobalPeeringsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7401  	c.resource = resource
  7402  	c.setiampolicyrequest = setiampolicyrequest
  7403  	return c
  7404  }
  7405  
  7406  // Fields allows partial responses to be retrieved. See
  7407  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7408  // details.
  7409  func (c *ProjectsLocationsGlobalPeeringsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPeeringsSetIamPolicyCall {
  7410  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7411  	return c
  7412  }
  7413  
  7414  // Context sets the context to be used in this call's Do method.
  7415  func (c *ProjectsLocationsGlobalPeeringsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGlobalPeeringsSetIamPolicyCall {
  7416  	c.ctx_ = ctx
  7417  	return c
  7418  }
  7419  
  7420  // Header returns a http.Header that can be modified by the caller to add
  7421  // headers to the request.
  7422  func (c *ProjectsLocationsGlobalPeeringsSetIamPolicyCall) Header() http.Header {
  7423  	if c.header_ == nil {
  7424  		c.header_ = make(http.Header)
  7425  	}
  7426  	return c.header_
  7427  }
  7428  
  7429  func (c *ProjectsLocationsGlobalPeeringsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  7430  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7431  	var body io.Reader = nil
  7432  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  7433  	if err != nil {
  7434  		return nil, err
  7435  	}
  7436  	c.urlParams_.Set("alt", alt)
  7437  	c.urlParams_.Set("prettyPrint", "false")
  7438  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
  7439  	urls += "?" + c.urlParams_.Encode()
  7440  	req, err := http.NewRequest("POST", urls, body)
  7441  	if err != nil {
  7442  		return nil, err
  7443  	}
  7444  	req.Header = reqHeaders
  7445  	googleapi.Expand(req.URL, map[string]string{
  7446  		"resource": c.resource,
  7447  	})
  7448  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7449  }
  7450  
  7451  // Do executes the "managedidentities.projects.locations.global.peerings.setIamPolicy" call.
  7452  // Any non-2xx status code is an error. Response headers are in either
  7453  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  7454  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7455  // whether the returned error was because http.StatusNotModified was returned.
  7456  func (c *ProjectsLocationsGlobalPeeringsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  7457  	gensupport.SetOptions(c.urlParams_, opts...)
  7458  	res, err := c.doRequest("json")
  7459  	if res != nil && res.StatusCode == http.StatusNotModified {
  7460  		if res.Body != nil {
  7461  			res.Body.Close()
  7462  		}
  7463  		return nil, gensupport.WrapError(&googleapi.Error{
  7464  			Code:   res.StatusCode,
  7465  			Header: res.Header,
  7466  		})
  7467  	}
  7468  	if err != nil {
  7469  		return nil, err
  7470  	}
  7471  	defer googleapi.CloseBody(res)
  7472  	if err := googleapi.CheckResponse(res); err != nil {
  7473  		return nil, gensupport.WrapError(err)
  7474  	}
  7475  	ret := &Policy{
  7476  		ServerResponse: googleapi.ServerResponse{
  7477  			Header:         res.Header,
  7478  			HTTPStatusCode: res.StatusCode,
  7479  		},
  7480  	}
  7481  	target := &ret
  7482  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7483  		return nil, err
  7484  	}
  7485  	return ret, nil
  7486  }
  7487  
  7488  type ProjectsLocationsGlobalPeeringsTestIamPermissionsCall struct {
  7489  	s                         *Service
  7490  	resource                  string
  7491  	testiampermissionsrequest *TestIamPermissionsRequest
  7492  	urlParams_                gensupport.URLParams
  7493  	ctx_                      context.Context
  7494  	header_                   http.Header
  7495  }
  7496  
  7497  // TestIamPermissions: Returns permissions that a caller has on the specified
  7498  // resource. If the resource does not exist, this will return an empty set of
  7499  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
  7500  // used for building permission-aware UIs and command-line tools, not for
  7501  // authorization checking. This operation may "fail open" without warning.
  7502  //
  7503  //   - resource: REQUIRED: The resource for which the policy detail is being
  7504  //     requested. See Resource names
  7505  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  7506  //     value for this field.
  7507  func (r *ProjectsLocationsGlobalPeeringsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsGlobalPeeringsTestIamPermissionsCall {
  7508  	c := &ProjectsLocationsGlobalPeeringsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7509  	c.resource = resource
  7510  	c.testiampermissionsrequest = testiampermissionsrequest
  7511  	return c
  7512  }
  7513  
  7514  // Fields allows partial responses to be retrieved. See
  7515  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7516  // details.
  7517  func (c *ProjectsLocationsGlobalPeeringsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPeeringsTestIamPermissionsCall {
  7518  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7519  	return c
  7520  }
  7521  
  7522  // Context sets the context to be used in this call's Do method.
  7523  func (c *ProjectsLocationsGlobalPeeringsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGlobalPeeringsTestIamPermissionsCall {
  7524  	c.ctx_ = ctx
  7525  	return c
  7526  }
  7527  
  7528  // Header returns a http.Header that can be modified by the caller to add
  7529  // headers to the request.
  7530  func (c *ProjectsLocationsGlobalPeeringsTestIamPermissionsCall) Header() http.Header {
  7531  	if c.header_ == nil {
  7532  		c.header_ = make(http.Header)
  7533  	}
  7534  	return c.header_
  7535  }
  7536  
  7537  func (c *ProjectsLocationsGlobalPeeringsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  7538  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7539  	var body io.Reader = nil
  7540  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  7541  	if err != nil {
  7542  		return nil, err
  7543  	}
  7544  	c.urlParams_.Set("alt", alt)
  7545  	c.urlParams_.Set("prettyPrint", "false")
  7546  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
  7547  	urls += "?" + c.urlParams_.Encode()
  7548  	req, err := http.NewRequest("POST", urls, body)
  7549  	if err != nil {
  7550  		return nil, err
  7551  	}
  7552  	req.Header = reqHeaders
  7553  	googleapi.Expand(req.URL, map[string]string{
  7554  		"resource": c.resource,
  7555  	})
  7556  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7557  }
  7558  
  7559  // Do executes the "managedidentities.projects.locations.global.peerings.testIamPermissions" call.
  7560  // Any non-2xx status code is an error. Response headers are in either
  7561  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
  7562  // returned at all) in error.(*googleapi.Error).Header. Use
  7563  // googleapi.IsNotModified to check whether the returned error was because
  7564  // http.StatusNotModified was returned.
  7565  func (c *ProjectsLocationsGlobalPeeringsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  7566  	gensupport.SetOptions(c.urlParams_, opts...)
  7567  	res, err := c.doRequest("json")
  7568  	if res != nil && res.StatusCode == http.StatusNotModified {
  7569  		if res.Body != nil {
  7570  			res.Body.Close()
  7571  		}
  7572  		return nil, gensupport.WrapError(&googleapi.Error{
  7573  			Code:   res.StatusCode,
  7574  			Header: res.Header,
  7575  		})
  7576  	}
  7577  	if err != nil {
  7578  		return nil, err
  7579  	}
  7580  	defer googleapi.CloseBody(res)
  7581  	if err := googleapi.CheckResponse(res); err != nil {
  7582  		return nil, gensupport.WrapError(err)
  7583  	}
  7584  	ret := &TestIamPermissionsResponse{
  7585  		ServerResponse: googleapi.ServerResponse{
  7586  			Header:         res.Header,
  7587  			HTTPStatusCode: res.StatusCode,
  7588  		},
  7589  	}
  7590  	target := &ret
  7591  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7592  		return nil, err
  7593  	}
  7594  	return ret, nil
  7595  }
  7596  

View as plain text