...

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

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

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

View as plain text