...

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

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

     1  // Copyright 2024 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated file. DO NOT EDIT.
     6  
     7  // Package identitytoolkit provides access to the Identity Toolkit API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/identity-platform
    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/identitytoolkit/v2"
    27  //	...
    28  //	ctx := context.Background()
    29  //	identitytoolkitService, err := identitytoolkit.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  // By default, all available scopes (see "Constants") are used to authenticate.
    38  // To restrict scopes, use [google.golang.org/api/option.WithScopes]:
    39  //
    40  //	identitytoolkitService, err := identitytoolkit.NewService(ctx, option.WithScopes(identitytoolkit.FirebaseScope))
    41  //
    42  // To use an API key for authentication (note: some APIs do not support API
    43  // keys), use [google.golang.org/api/option.WithAPIKey]:
    44  //
    45  //	identitytoolkitService, err := identitytoolkit.NewService(ctx, option.WithAPIKey("AIza..."))
    46  //
    47  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    48  // flow, use [google.golang.org/api/option.WithTokenSource]:
    49  //
    50  //	config := &oauth2.Config{...}
    51  //	// ...
    52  //	token, err := config.Exchange(ctx, ...)
    53  //	identitytoolkitService, err := identitytoolkit.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    54  //
    55  // See [google.golang.org/api/option.ClientOption] for details on options.
    56  package identitytoolkit // import "google.golang.org/api/identitytoolkit/v2"
    57  
    58  import (
    59  	"bytes"
    60  	"context"
    61  	"encoding/json"
    62  	"errors"
    63  	"fmt"
    64  	"io"
    65  	"net/http"
    66  	"net/url"
    67  	"strconv"
    68  	"strings"
    69  
    70  	googleapi "google.golang.org/api/googleapi"
    71  	internal "google.golang.org/api/internal"
    72  	gensupport "google.golang.org/api/internal/gensupport"
    73  	option "google.golang.org/api/option"
    74  	internaloption "google.golang.org/api/option/internaloption"
    75  	htransport "google.golang.org/api/transport/http"
    76  )
    77  
    78  // Always reference these packages, just in case the auto-generated code
    79  // below doesn't.
    80  var _ = bytes.NewBuffer
    81  var _ = strconv.Itoa
    82  var _ = fmt.Sprintf
    83  var _ = json.NewDecoder
    84  var _ = io.Copy
    85  var _ = url.Parse
    86  var _ = gensupport.MarshalJSON
    87  var _ = googleapi.Version
    88  var _ = errors.New
    89  var _ = strings.Replace
    90  var _ = context.Canceled
    91  var _ = internaloption.WithDefaultEndpoint
    92  var _ = internal.Version
    93  
    94  const apiId = "identitytoolkit:v2"
    95  const apiName = "identitytoolkit"
    96  const apiVersion = "v2"
    97  const basePath = "https://identitytoolkit.googleapis.com/"
    98  const basePathTemplate = "https://identitytoolkit.UNIVERSE_DOMAIN/"
    99  const mtlsBasePath = "https://identitytoolkit.mtls.googleapis.com/"
   100  
   101  // OAuth2 scopes used by this API.
   102  const (
   103  	// See, edit, configure, and delete your Google Cloud data and see the email
   104  	// address for your Google Account.
   105  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   106  
   107  	// View and administer all your Firebase data and settings
   108  	FirebaseScope = "https://www.googleapis.com/auth/firebase"
   109  )
   110  
   111  // NewService creates a new Service.
   112  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   113  	scopesOption := internaloption.WithDefaultScopes(
   114  		"https://www.googleapis.com/auth/cloud-platform",
   115  		"https://www.googleapis.com/auth/firebase",
   116  	)
   117  	// NOTE: prepend, so we don't override user-specified scopes.
   118  	opts = append([]option.ClientOption{scopesOption}, opts...)
   119  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   120  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   121  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   122  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   123  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   124  	if err != nil {
   125  		return nil, err
   126  	}
   127  	s, err := New(client)
   128  	if err != nil {
   129  		return nil, err
   130  	}
   131  	if endpoint != "" {
   132  		s.BasePath = endpoint
   133  	}
   134  	return s, nil
   135  }
   136  
   137  // New creates a new Service. It uses the provided http.Client for requests.
   138  //
   139  // Deprecated: please use NewService instead.
   140  // To provide a custom HTTP client, use option.WithHTTPClient.
   141  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   142  func New(client *http.Client) (*Service, error) {
   143  	if client == nil {
   144  		return nil, errors.New("client is nil")
   145  	}
   146  	s := &Service{client: client, BasePath: basePath}
   147  	s.Accounts = NewAccountsService(s)
   148  	s.DefaultSupportedIdps = NewDefaultSupportedIdpsService(s)
   149  	s.Projects = NewProjectsService(s)
   150  	s.V2 = NewV2Service(s)
   151  	return s, nil
   152  }
   153  
   154  type Service struct {
   155  	client    *http.Client
   156  	BasePath  string // API endpoint base URL
   157  	UserAgent string // optional additional User-Agent fragment
   158  
   159  	Accounts *AccountsService
   160  
   161  	DefaultSupportedIdps *DefaultSupportedIdpsService
   162  
   163  	Projects *ProjectsService
   164  
   165  	V2 *V2Service
   166  }
   167  
   168  func (s *Service) userAgent() string {
   169  	if s.UserAgent == "" {
   170  		return googleapi.UserAgent
   171  	}
   172  	return googleapi.UserAgent + " " + s.UserAgent
   173  }
   174  
   175  func NewAccountsService(s *Service) *AccountsService {
   176  	rs := &AccountsService{s: s}
   177  	rs.MfaEnrollment = NewAccountsMfaEnrollmentService(s)
   178  	rs.MfaSignIn = NewAccountsMfaSignInService(s)
   179  	return rs
   180  }
   181  
   182  type AccountsService struct {
   183  	s *Service
   184  
   185  	MfaEnrollment *AccountsMfaEnrollmentService
   186  
   187  	MfaSignIn *AccountsMfaSignInService
   188  }
   189  
   190  func NewAccountsMfaEnrollmentService(s *Service) *AccountsMfaEnrollmentService {
   191  	rs := &AccountsMfaEnrollmentService{s: s}
   192  	return rs
   193  }
   194  
   195  type AccountsMfaEnrollmentService struct {
   196  	s *Service
   197  }
   198  
   199  func NewAccountsMfaSignInService(s *Service) *AccountsMfaSignInService {
   200  	rs := &AccountsMfaSignInService{s: s}
   201  	return rs
   202  }
   203  
   204  type AccountsMfaSignInService struct {
   205  	s *Service
   206  }
   207  
   208  func NewDefaultSupportedIdpsService(s *Service) *DefaultSupportedIdpsService {
   209  	rs := &DefaultSupportedIdpsService{s: s}
   210  	return rs
   211  }
   212  
   213  type DefaultSupportedIdpsService struct {
   214  	s *Service
   215  }
   216  
   217  func NewProjectsService(s *Service) *ProjectsService {
   218  	rs := &ProjectsService{s: s}
   219  	rs.DefaultSupportedIdpConfigs = NewProjectsDefaultSupportedIdpConfigsService(s)
   220  	rs.IdentityPlatform = NewProjectsIdentityPlatformService(s)
   221  	rs.InboundSamlConfigs = NewProjectsInboundSamlConfigsService(s)
   222  	rs.OauthIdpConfigs = NewProjectsOauthIdpConfigsService(s)
   223  	rs.Tenants = NewProjectsTenantsService(s)
   224  	return rs
   225  }
   226  
   227  type ProjectsService struct {
   228  	s *Service
   229  
   230  	DefaultSupportedIdpConfigs *ProjectsDefaultSupportedIdpConfigsService
   231  
   232  	IdentityPlatform *ProjectsIdentityPlatformService
   233  
   234  	InboundSamlConfigs *ProjectsInboundSamlConfigsService
   235  
   236  	OauthIdpConfigs *ProjectsOauthIdpConfigsService
   237  
   238  	Tenants *ProjectsTenantsService
   239  }
   240  
   241  func NewProjectsDefaultSupportedIdpConfigsService(s *Service) *ProjectsDefaultSupportedIdpConfigsService {
   242  	rs := &ProjectsDefaultSupportedIdpConfigsService{s: s}
   243  	return rs
   244  }
   245  
   246  type ProjectsDefaultSupportedIdpConfigsService struct {
   247  	s *Service
   248  }
   249  
   250  func NewProjectsIdentityPlatformService(s *Service) *ProjectsIdentityPlatformService {
   251  	rs := &ProjectsIdentityPlatformService{s: s}
   252  	return rs
   253  }
   254  
   255  type ProjectsIdentityPlatformService struct {
   256  	s *Service
   257  }
   258  
   259  func NewProjectsInboundSamlConfigsService(s *Service) *ProjectsInboundSamlConfigsService {
   260  	rs := &ProjectsInboundSamlConfigsService{s: s}
   261  	return rs
   262  }
   263  
   264  type ProjectsInboundSamlConfigsService struct {
   265  	s *Service
   266  }
   267  
   268  func NewProjectsOauthIdpConfigsService(s *Service) *ProjectsOauthIdpConfigsService {
   269  	rs := &ProjectsOauthIdpConfigsService{s: s}
   270  	return rs
   271  }
   272  
   273  type ProjectsOauthIdpConfigsService struct {
   274  	s *Service
   275  }
   276  
   277  func NewProjectsTenantsService(s *Service) *ProjectsTenantsService {
   278  	rs := &ProjectsTenantsService{s: s}
   279  	rs.DefaultSupportedIdpConfigs = NewProjectsTenantsDefaultSupportedIdpConfigsService(s)
   280  	rs.InboundSamlConfigs = NewProjectsTenantsInboundSamlConfigsService(s)
   281  	rs.OauthIdpConfigs = NewProjectsTenantsOauthIdpConfigsService(s)
   282  	return rs
   283  }
   284  
   285  type ProjectsTenantsService struct {
   286  	s *Service
   287  
   288  	DefaultSupportedIdpConfigs *ProjectsTenantsDefaultSupportedIdpConfigsService
   289  
   290  	InboundSamlConfigs *ProjectsTenantsInboundSamlConfigsService
   291  
   292  	OauthIdpConfigs *ProjectsTenantsOauthIdpConfigsService
   293  }
   294  
   295  func NewProjectsTenantsDefaultSupportedIdpConfigsService(s *Service) *ProjectsTenantsDefaultSupportedIdpConfigsService {
   296  	rs := &ProjectsTenantsDefaultSupportedIdpConfigsService{s: s}
   297  	return rs
   298  }
   299  
   300  type ProjectsTenantsDefaultSupportedIdpConfigsService struct {
   301  	s *Service
   302  }
   303  
   304  func NewProjectsTenantsInboundSamlConfigsService(s *Service) *ProjectsTenantsInboundSamlConfigsService {
   305  	rs := &ProjectsTenantsInboundSamlConfigsService{s: s}
   306  	return rs
   307  }
   308  
   309  type ProjectsTenantsInboundSamlConfigsService struct {
   310  	s *Service
   311  }
   312  
   313  func NewProjectsTenantsOauthIdpConfigsService(s *Service) *ProjectsTenantsOauthIdpConfigsService {
   314  	rs := &ProjectsTenantsOauthIdpConfigsService{s: s}
   315  	return rs
   316  }
   317  
   318  type ProjectsTenantsOauthIdpConfigsService struct {
   319  	s *Service
   320  }
   321  
   322  func NewV2Service(s *Service) *V2Service {
   323  	rs := &V2Service{s: s}
   324  	return rs
   325  }
   326  
   327  type V2Service struct {
   328  	s *Service
   329  }
   330  
   331  // GoogleCloudIdentitytoolkitAdminV2AllowByDefault: Defines a policy of
   332  // allowing every region by default and adding disallowed regions to a disallow
   333  // list.
   334  type GoogleCloudIdentitytoolkitAdminV2AllowByDefault struct {
   335  	// DisallowedRegions: Two letter unicode region codes to disallow as defined by
   336  	// https://cldr.unicode.org/ The full list of these region codes is here:
   337  	// https://github.com/unicode-cldr/cldr-localenames-full/blob/master/main/en/territories.json
   338  	DisallowedRegions []string `json:"disallowedRegions,omitempty"`
   339  	// ForceSendFields is a list of field names (e.g. "DisallowedRegions") to
   340  	// unconditionally include in API requests. By default, fields with empty or
   341  	// default values are omitted from API requests. See
   342  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   343  	// details.
   344  	ForceSendFields []string `json:"-"`
   345  	// NullFields is a list of field names (e.g. "DisallowedRegions") to include in
   346  	// API requests with the JSON null value. By default, fields with empty values
   347  	// are omitted from API requests. See
   348  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   349  	NullFields []string `json:"-"`
   350  }
   351  
   352  func (s *GoogleCloudIdentitytoolkitAdminV2AllowByDefault) MarshalJSON() ([]byte, error) {
   353  	type NoMethod GoogleCloudIdentitytoolkitAdminV2AllowByDefault
   354  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   355  }
   356  
   357  // GoogleCloudIdentitytoolkitAdminV2AllowlistOnly: Defines a policy of only
   358  // allowing regions by explicitly adding them to an allowlist.
   359  type GoogleCloudIdentitytoolkitAdminV2AllowlistOnly struct {
   360  	// AllowedRegions: Two letter unicode region codes to allow as defined by
   361  	// https://cldr.unicode.org/ The full list of these region codes is here:
   362  	// https://github.com/unicode-cldr/cldr-localenames-full/blob/master/main/en/territories.json
   363  	AllowedRegions []string `json:"allowedRegions,omitempty"`
   364  	// ForceSendFields is a list of field names (e.g. "AllowedRegions") to
   365  	// unconditionally include in API requests. By default, fields with empty or
   366  	// default values are omitted from API requests. See
   367  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   368  	// details.
   369  	ForceSendFields []string `json:"-"`
   370  	// NullFields is a list of field names (e.g. "AllowedRegions") to include in
   371  	// API requests with the JSON null value. By default, fields with empty values
   372  	// are omitted from API requests. See
   373  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   374  	NullFields []string `json:"-"`
   375  }
   376  
   377  func (s *GoogleCloudIdentitytoolkitAdminV2AllowlistOnly) MarshalJSON() ([]byte, error) {
   378  	type NoMethod GoogleCloudIdentitytoolkitAdminV2AllowlistOnly
   379  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   380  }
   381  
   382  // GoogleCloudIdentitytoolkitAdminV2Anonymous: Configuration options related to
   383  // authenticating an anonymous user.
   384  type GoogleCloudIdentitytoolkitAdminV2Anonymous struct {
   385  	// Enabled: Whether anonymous user auth is enabled for the project or not.
   386  	Enabled bool `json:"enabled,omitempty"`
   387  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
   388  	// include in API requests. By default, fields with empty or default values are
   389  	// omitted from API requests. See
   390  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   391  	// details.
   392  	ForceSendFields []string `json:"-"`
   393  	// NullFields is a list of field names (e.g. "Enabled") to include in API
   394  	// requests with the JSON null value. By default, fields with empty values are
   395  	// omitted from API requests. See
   396  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   397  	NullFields []string `json:"-"`
   398  }
   399  
   400  func (s *GoogleCloudIdentitytoolkitAdminV2Anonymous) MarshalJSON() ([]byte, error) {
   401  	type NoMethod GoogleCloudIdentitytoolkitAdminV2Anonymous
   402  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   403  }
   404  
   405  // GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig: Additional config for
   406  // SignInWithApple.
   407  type GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig struct {
   408  	// BundleIds: A list of Bundle ID's usable by this project
   409  	BundleIds      []string                                         `json:"bundleIds,omitempty"`
   410  	CodeFlowConfig *GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig `json:"codeFlowConfig,omitempty"`
   411  	// ForceSendFields is a list of field names (e.g. "BundleIds") to
   412  	// unconditionally include in API requests. By default, fields with empty or
   413  	// default values are omitted from API requests. See
   414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   415  	// details.
   416  	ForceSendFields []string `json:"-"`
   417  	// NullFields is a list of field names (e.g. "BundleIds") to include in API
   418  	// requests with the JSON null value. By default, fields with empty values are
   419  	// omitted from API requests. See
   420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   421  	NullFields []string `json:"-"`
   422  }
   423  
   424  func (s *GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig) MarshalJSON() ([]byte, error) {
   425  	type NoMethod GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig
   426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   427  }
   428  
   429  // GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig: Configuration
   430  // related to Blocking Functions.
   431  type GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig struct {
   432  	// ForwardInboundCredentials: The user credentials to include in the JWT
   433  	// payload that is sent to the registered Blocking Functions.
   434  	ForwardInboundCredentials *GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials `json:"forwardInboundCredentials,omitempty"`
   435  	// Triggers: Map of Trigger to event type. Key should be one of the supported
   436  	// event types: "beforeCreate", "beforeSignIn"
   437  	Triggers map[string]GoogleCloudIdentitytoolkitAdminV2Trigger `json:"triggers,omitempty"`
   438  	// ForceSendFields is a list of field names (e.g. "ForwardInboundCredentials")
   439  	// to unconditionally include in API requests. By default, fields with empty or
   440  	// default values are omitted from API requests. See
   441  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   442  	// details.
   443  	ForceSendFields []string `json:"-"`
   444  	// NullFields is a list of field names (e.g. "ForwardInboundCredentials") to
   445  	// include in API requests with the JSON null value. By default, fields with
   446  	// empty values are omitted from API requests. See
   447  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   448  	NullFields []string `json:"-"`
   449  }
   450  
   451  func (s *GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig) MarshalJSON() ([]byte, error) {
   452  	type NoMethod GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig
   453  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   454  }
   455  
   456  // GoogleCloudIdentitytoolkitAdminV2ClientConfig: Options related to how
   457  // clients making requests on behalf of a project should be configured.
   458  type GoogleCloudIdentitytoolkitAdminV2ClientConfig struct {
   459  	// ApiKey: Output only. API key that can be used when making requests for this
   460  	// project.
   461  	ApiKey string `json:"apiKey,omitempty"`
   462  	// FirebaseSubdomain: Output only. Firebase subdomain.
   463  	FirebaseSubdomain string `json:"firebaseSubdomain,omitempty"`
   464  	// Permissions: Configuration related to restricting a user's ability to affect
   465  	// their account.
   466  	Permissions *GoogleCloudIdentitytoolkitAdminV2Permissions `json:"permissions,omitempty"`
   467  	// ForceSendFields is a list of field names (e.g. "ApiKey") to unconditionally
   468  	// include in API requests. By default, fields with empty or default values are
   469  	// omitted from API requests. See
   470  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   471  	// details.
   472  	ForceSendFields []string `json:"-"`
   473  	// NullFields is a list of field names (e.g. "ApiKey") to include in API
   474  	// requests with the JSON null value. By default, fields with empty values are
   475  	// omitted from API requests. See
   476  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   477  	NullFields []string `json:"-"`
   478  }
   479  
   480  func (s *GoogleCloudIdentitytoolkitAdminV2ClientConfig) MarshalJSON() ([]byte, error) {
   481  	type NoMethod GoogleCloudIdentitytoolkitAdminV2ClientConfig
   482  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   483  }
   484  
   485  // GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig: Options related to
   486  // how clients making requests on behalf of a tenant should be configured.
   487  type GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig struct {
   488  	// Permissions: Configuration related to restricting a user's ability to affect
   489  	// their account.
   490  	Permissions *GoogleCloudIdentitytoolkitAdminV2ClientPermissions `json:"permissions,omitempty"`
   491  	// ForceSendFields is a list of field names (e.g. "Permissions") to
   492  	// unconditionally include in API requests. By default, fields with empty or
   493  	// default values are omitted from API requests. See
   494  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   495  	// details.
   496  	ForceSendFields []string `json:"-"`
   497  	// NullFields is a list of field names (e.g. "Permissions") to include in API
   498  	// requests with the JSON null value. By default, fields with empty values are
   499  	// omitted from API requests. See
   500  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   501  	NullFields []string `json:"-"`
   502  }
   503  
   504  func (s *GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig) MarshalJSON() ([]byte, error) {
   505  	type NoMethod GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig
   506  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   507  }
   508  
   509  // GoogleCloudIdentitytoolkitAdminV2ClientPermissions: Configuration related to
   510  // restricting a user's ability to affect their account.
   511  type GoogleCloudIdentitytoolkitAdminV2ClientPermissions struct {
   512  	// DisabledUserDeletion: When true, end users cannot delete their account on
   513  	// the associated project through any of our API methods
   514  	DisabledUserDeletion bool `json:"disabledUserDeletion,omitempty"`
   515  	// DisabledUserSignup: When true, end users cannot sign up for a new account on
   516  	// the associated project through any of our API methods
   517  	DisabledUserSignup bool `json:"disabledUserSignup,omitempty"`
   518  	// ForceSendFields is a list of field names (e.g. "DisabledUserDeletion") to
   519  	// unconditionally include in API requests. By default, fields with empty or
   520  	// default values are omitted from API requests. See
   521  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   522  	// details.
   523  	ForceSendFields []string `json:"-"`
   524  	// NullFields is a list of field names (e.g. "DisabledUserDeletion") to include
   525  	// in API requests with the JSON null value. By default, fields with empty
   526  	// values are omitted from API requests. See
   527  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   528  	NullFields []string `json:"-"`
   529  }
   530  
   531  func (s *GoogleCloudIdentitytoolkitAdminV2ClientPermissions) MarshalJSON() ([]byte, error) {
   532  	type NoMethod GoogleCloudIdentitytoolkitAdminV2ClientPermissions
   533  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   534  }
   535  
   536  // GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig: Additional config for Apple
   537  // for code flow.
   538  type GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig struct {
   539  	// KeyId: Key ID for the private key.
   540  	KeyId string `json:"keyId,omitempty"`
   541  	// PrivateKey: Private key used for signing the client secret JWT.
   542  	PrivateKey string `json:"privateKey,omitempty"`
   543  	// TeamId: Apple Developer Team ID.
   544  	TeamId string `json:"teamId,omitempty"`
   545  	// ForceSendFields is a list of field names (e.g. "KeyId") to unconditionally
   546  	// include in API requests. By default, fields with empty or default values are
   547  	// omitted from API requests. See
   548  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   549  	// details.
   550  	ForceSendFields []string `json:"-"`
   551  	// NullFields is a list of field names (e.g. "KeyId") to include in API
   552  	// requests with the JSON null value. By default, fields with empty values are
   553  	// omitted from API requests. See
   554  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   555  	NullFields []string `json:"-"`
   556  }
   557  
   558  func (s *GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig) MarshalJSON() ([]byte, error) {
   559  	type NoMethod GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig
   560  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   561  }
   562  
   563  // GoogleCloudIdentitytoolkitAdminV2Config: Represents an Identity Toolkit
   564  // project.
   565  type GoogleCloudIdentitytoolkitAdminV2Config struct {
   566  	// AuthorizedDomains: List of domains authorized for OAuth redirects
   567  	AuthorizedDomains []string `json:"authorizedDomains,omitempty"`
   568  	// AutodeleteAnonymousUsers: Whether anonymous users will be auto-deleted after
   569  	// a period of 30 days.
   570  	AutodeleteAnonymousUsers bool `json:"autodeleteAnonymousUsers,omitempty"`
   571  	// BlockingFunctions: Configuration related to blocking functions.
   572  	BlockingFunctions *GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig `json:"blockingFunctions,omitempty"`
   573  	// Client: Options related to how clients making requests on behalf of a
   574  	// project should be configured.
   575  	Client *GoogleCloudIdentitytoolkitAdminV2ClientConfig `json:"client,omitempty"`
   576  	// EmailPrivacyConfig: Configuration for settings related to email privacy and
   577  	// public visibility.
   578  	EmailPrivacyConfig *GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig `json:"emailPrivacyConfig,omitempty"`
   579  	// Mfa: Configuration for this project's multi-factor authentication, including
   580  	// whether it is active and what factors can be used for the second factor
   581  	Mfa *GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig `json:"mfa,omitempty"`
   582  	// Monitoring: Configuration related to monitoring project activity.
   583  	Monitoring *GoogleCloudIdentitytoolkitAdminV2MonitoringConfig `json:"monitoring,omitempty"`
   584  	// MultiTenant: Configuration related to multi-tenant functionality.
   585  	MultiTenant *GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig `json:"multiTenant,omitempty"`
   586  	// Name: Output only. The name of the Config resource. Example:
   587  	// "projects/my-awesome-project/config"
   588  	Name string `json:"name,omitempty"`
   589  	// Notification: Configuration related to sending notifications to users.
   590  	Notification *GoogleCloudIdentitytoolkitAdminV2NotificationConfig `json:"notification,omitempty"`
   591  	// PasswordPolicyConfig: The project level password policy configuration.
   592  	PasswordPolicyConfig *GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig `json:"passwordPolicyConfig,omitempty"`
   593  	// Quota: Configuration related to quotas.
   594  	Quota *GoogleCloudIdentitytoolkitAdminV2QuotaConfig `json:"quota,omitempty"`
   595  	// RecaptchaConfig: The project-level reCAPTCHA config.
   596  	RecaptchaConfig *GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig `json:"recaptchaConfig,omitempty"`
   597  	// SignIn: Configuration related to local sign in methods.
   598  	SignIn *GoogleCloudIdentitytoolkitAdminV2SignInConfig `json:"signIn,omitempty"`
   599  	// SmsRegionConfig: Configures which regions are enabled for SMS verification
   600  	// code sending.
   601  	SmsRegionConfig *GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig `json:"smsRegionConfig,omitempty"`
   602  	// Subtype: Output only. The subtype of this config.
   603  	//
   604  	// Possible values:
   605  	//   "SUBTYPE_UNSPECIFIED" - Default value. Do not use.
   606  	//   "IDENTITY_PLATFORM" - An Identity Platform project.
   607  	//   "FIREBASE_AUTH" - A Firebase Authentication project.
   608  	Subtype string `json:"subtype,omitempty"`
   609  
   610  	// ServerResponse contains the HTTP response code and headers from the server.
   611  	googleapi.ServerResponse `json:"-"`
   612  	// ForceSendFields is a list of field names (e.g. "AuthorizedDomains") to
   613  	// unconditionally include in API requests. By default, fields with empty or
   614  	// default values are omitted from API requests. See
   615  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   616  	// details.
   617  	ForceSendFields []string `json:"-"`
   618  	// NullFields is a list of field names (e.g. "AuthorizedDomains") to include in
   619  	// API requests with the JSON null value. By default, fields with empty values
   620  	// are omitted from API requests. See
   621  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   622  	NullFields []string `json:"-"`
   623  }
   624  
   625  func (s *GoogleCloudIdentitytoolkitAdminV2Config) MarshalJSON() ([]byte, error) {
   626  	type NoMethod GoogleCloudIdentitytoolkitAdminV2Config
   627  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   628  }
   629  
   630  // GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions: Custom strength
   631  // options to enforce on user passwords.
   632  type GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions struct {
   633  	// ContainsLowercaseCharacter: The password must contain a lower case
   634  	// character.
   635  	ContainsLowercaseCharacter bool `json:"containsLowercaseCharacter,omitempty"`
   636  	// ContainsNonAlphanumericCharacter: The password must contain a non alpha
   637  	// numeric character.
   638  	ContainsNonAlphanumericCharacter bool `json:"containsNonAlphanumericCharacter,omitempty"`
   639  	// ContainsNumericCharacter: The password must contain a number.
   640  	ContainsNumericCharacter bool `json:"containsNumericCharacter,omitempty"`
   641  	// ContainsUppercaseCharacter: The password must contain an upper case
   642  	// character.
   643  	ContainsUppercaseCharacter bool `json:"containsUppercaseCharacter,omitempty"`
   644  	// MaxPasswordLength: Maximum password length. No default max length
   645  	MaxPasswordLength int64 `json:"maxPasswordLength,omitempty"`
   646  	// MinPasswordLength: Minimum password length. Range from 6 to 30
   647  	MinPasswordLength int64 `json:"minPasswordLength,omitempty"`
   648  	// ForceSendFields is a list of field names (e.g. "ContainsLowercaseCharacter")
   649  	// to unconditionally include in API requests. By default, fields with empty or
   650  	// default values are omitted from API requests. See
   651  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   652  	// details.
   653  	ForceSendFields []string `json:"-"`
   654  	// NullFields is a list of field names (e.g. "ContainsLowercaseCharacter") to
   655  	// include in API requests with the JSON null value. By default, fields with
   656  	// empty values are omitted from API requests. See
   657  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   658  	NullFields []string `json:"-"`
   659  }
   660  
   661  func (s *GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions) MarshalJSON() ([]byte, error) {
   662  	type NoMethod GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions
   663  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   664  }
   665  
   666  // GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp: Standard Identity
   667  // Toolkit-trusted IDPs.
   668  type GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp struct {
   669  	// Description: Description of the Idp
   670  	Description string `json:"description,omitempty"`
   671  	// IdpId: Id the of Idp
   672  	IdpId string `json:"idpId,omitempty"`
   673  	// ForceSendFields is a list of field names (e.g. "Description") to
   674  	// unconditionally include in API requests. By default, fields with empty or
   675  	// default values are omitted from API requests. See
   676  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   677  	// details.
   678  	ForceSendFields []string `json:"-"`
   679  	// NullFields is a list of field names (e.g. "Description") to include in API
   680  	// requests with the JSON null value. By default, fields with empty values are
   681  	// omitted from API requests. See
   682  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   683  	NullFields []string `json:"-"`
   684  }
   685  
   686  func (s *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp) MarshalJSON() ([]byte, error) {
   687  	type NoMethod GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp
   688  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   689  }
   690  
   691  // GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig: Configurations
   692  // options for authenticating with a the standard set of Identity
   693  // Toolkit-trusted IDPs.
   694  type GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig struct {
   695  	// AppleSignInConfig: Additional config for Apple-based projects.
   696  	AppleSignInConfig *GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig `json:"appleSignInConfig,omitempty"`
   697  	// ClientId: OAuth client ID.
   698  	ClientId string `json:"clientId,omitempty"`
   699  	// ClientSecret: OAuth client secret.
   700  	ClientSecret string `json:"clientSecret,omitempty"`
   701  	// Enabled: True if allows the user to sign in with the provider.
   702  	Enabled bool `json:"enabled,omitempty"`
   703  	// Name: The name of the DefaultSupportedIdpConfig resource, for example:
   704  	// "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com"
   705  	Name string `json:"name,omitempty"`
   706  
   707  	// ServerResponse contains the HTTP response code and headers from the server.
   708  	googleapi.ServerResponse `json:"-"`
   709  	// ForceSendFields is a list of field names (e.g. "AppleSignInConfig") to
   710  	// unconditionally include in API requests. By default, fields with empty or
   711  	// default values are omitted from API requests. See
   712  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   713  	// details.
   714  	ForceSendFields []string `json:"-"`
   715  	// NullFields is a list of field names (e.g. "AppleSignInConfig") to include in
   716  	// API requests with the JSON null value. By default, fields with empty values
   717  	// are omitted from API requests. See
   718  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   719  	NullFields []string `json:"-"`
   720  }
   721  
   722  func (s *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) MarshalJSON() ([]byte, error) {
   723  	type NoMethod GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
   724  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   725  }
   726  
   727  // GoogleCloudIdentitytoolkitAdminV2DnsInfo: Information of custom domain DNS
   728  // verification. By default, default_domain will be used. A custom domain can
   729  // be configured using VerifyCustomDomain.
   730  type GoogleCloudIdentitytoolkitAdminV2DnsInfo struct {
   731  	// CustomDomain: Output only. The applied verified custom domain.
   732  	CustomDomain string `json:"customDomain,omitempty"`
   733  	// CustomDomainState: Output only. The current verification state of the custom
   734  	// domain. The custom domain will only be used once the domain verification is
   735  	// successful.
   736  	//
   737  	// Possible values:
   738  	//   "VERIFICATION_STATE_UNSPECIFIED" - Default value. Do not use.
   739  	//   "NOT_STARTED" - The verification has not started.
   740  	//   "IN_PROGRESS" - The verification is in progress.
   741  	//   "FAILED" - The verification failed.
   742  	//   "SUCCEEDED" - The verification succeeded and is ready to be applied.
   743  	CustomDomainState string `json:"customDomainState,omitempty"`
   744  	// DomainVerificationRequestTime: Output only. The timestamp of initial request
   745  	// for the current domain verification.
   746  	DomainVerificationRequestTime string `json:"domainVerificationRequestTime,omitempty"`
   747  	// PendingCustomDomain: Output only. The custom domain that's to be verified.
   748  	PendingCustomDomain string `json:"pendingCustomDomain,omitempty"`
   749  	// UseCustomDomain: Whether to use custom domain.
   750  	UseCustomDomain bool `json:"useCustomDomain,omitempty"`
   751  	// ForceSendFields is a list of field names (e.g. "CustomDomain") to
   752  	// unconditionally include in API requests. By default, fields with empty or
   753  	// default values are omitted from API requests. See
   754  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   755  	// details.
   756  	ForceSendFields []string `json:"-"`
   757  	// NullFields is a list of field names (e.g. "CustomDomain") to include in API
   758  	// requests with the JSON null value. By default, fields with empty values are
   759  	// omitted from API requests. See
   760  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   761  	NullFields []string `json:"-"`
   762  }
   763  
   764  func (s *GoogleCloudIdentitytoolkitAdminV2DnsInfo) MarshalJSON() ([]byte, error) {
   765  	type NoMethod GoogleCloudIdentitytoolkitAdminV2DnsInfo
   766  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   767  }
   768  
   769  // GoogleCloudIdentitytoolkitAdminV2Email: Configuration options related to
   770  // authenticating a user by their email address.
   771  type GoogleCloudIdentitytoolkitAdminV2Email struct {
   772  	// Enabled: Whether email auth is enabled for the project or not.
   773  	Enabled bool `json:"enabled,omitempty"`
   774  	// PasswordRequired: Whether a password is required for email auth or not. If
   775  	// true, both an email and password must be provided to sign in. If false, a
   776  	// user may sign in via either email/password or email link.
   777  	PasswordRequired bool `json:"passwordRequired,omitempty"`
   778  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
   779  	// include in API requests. By default, fields with empty or default values are
   780  	// omitted from API requests. See
   781  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   782  	// details.
   783  	ForceSendFields []string `json:"-"`
   784  	// NullFields is a list of field names (e.g. "Enabled") to include in API
   785  	// requests with the JSON null value. By default, fields with empty values are
   786  	// omitted from API requests. See
   787  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   788  	NullFields []string `json:"-"`
   789  }
   790  
   791  func (s *GoogleCloudIdentitytoolkitAdminV2Email) MarshalJSON() ([]byte, error) {
   792  	type NoMethod GoogleCloudIdentitytoolkitAdminV2Email
   793  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   794  }
   795  
   796  // GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig: Configuration for
   797  // settings related to email privacy and public visibility. Settings in this
   798  // config protect against email enumeration, but may make some trade-offs in
   799  // user-friendliness.
   800  type GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig struct {
   801  	// EnableImprovedEmailPrivacy: Migrates the project to a state of improved
   802  	// email privacy. For example certain error codes are more generic to avoid
   803  	// giving away information on whether the account exists. In addition, this
   804  	// disables certain features that as a side-effect allow user enumeration.
   805  	// Enabling this toggle disables the fetchSignInMethodsForEmail functionality
   806  	// and changing the user's email to an unverified email. It is recommended to
   807  	// remove dependence on this functionality and enable this toggle to improve
   808  	// user privacy.
   809  	EnableImprovedEmailPrivacy bool `json:"enableImprovedEmailPrivacy,omitempty"`
   810  	// ForceSendFields is a list of field names (e.g. "EnableImprovedEmailPrivacy")
   811  	// to unconditionally include in API requests. By default, fields with empty or
   812  	// default values are omitted from API requests. See
   813  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   814  	// details.
   815  	ForceSendFields []string `json:"-"`
   816  	// NullFields is a list of field names (e.g. "EnableImprovedEmailPrivacy") to
   817  	// include in API requests with the JSON null value. By default, fields with
   818  	// empty values are omitted from API requests. See
   819  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   820  	NullFields []string `json:"-"`
   821  }
   822  
   823  func (s *GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig) MarshalJSON() ([]byte, error) {
   824  	type NoMethod GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig
   825  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   826  }
   827  
   828  // GoogleCloudIdentitytoolkitAdminV2EmailTemplate: Email template. The subject
   829  // and body fields can contain the following placeholders which will be
   830  // replaced with the appropriate values: %LINK% - The link to use to redeem the
   831  // send OOB code. %EMAIL% - The email where the email is being sent.
   832  // %NEW_EMAIL% - The new email being set for the account (when applicable).
   833  // %APP_NAME% - The Google Cloud project's display name. %DISPLAY_NAME% - The
   834  // user's display name.
   835  type GoogleCloudIdentitytoolkitAdminV2EmailTemplate struct {
   836  	// Body: Email body
   837  	Body string `json:"body,omitempty"`
   838  	// BodyFormat: Email body format
   839  	//
   840  	// Possible values:
   841  	//   "BODY_FORMAT_UNSPECIFIED" - Default value. Do not use.
   842  	//   "PLAIN_TEXT" - Plain text
   843  	//   "HTML" - HTML
   844  	BodyFormat string `json:"bodyFormat,omitempty"`
   845  	// Customized: Output only. Whether the body or subject of the email is
   846  	// customized.
   847  	Customized bool `json:"customized,omitempty"`
   848  	// ReplyTo: Reply-to address
   849  	ReplyTo string `json:"replyTo,omitempty"`
   850  	// SenderDisplayName: Sender display name
   851  	SenderDisplayName string `json:"senderDisplayName,omitempty"`
   852  	// SenderLocalPart: Local part of From address
   853  	SenderLocalPart string `json:"senderLocalPart,omitempty"`
   854  	// Subject: Subject of the email
   855  	Subject string `json:"subject,omitempty"`
   856  	// ForceSendFields is a list of field names (e.g. "Body") to unconditionally
   857  	// include in API requests. By default, fields with empty or default values are
   858  	// omitted from API requests. See
   859  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   860  	// details.
   861  	ForceSendFields []string `json:"-"`
   862  	// NullFields is a list of field names (e.g. "Body") to include in API requests
   863  	// with the JSON null value. By default, fields with empty values are omitted
   864  	// from API requests. See
   865  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   866  	NullFields []string `json:"-"`
   867  }
   868  
   869  func (s *GoogleCloudIdentitytoolkitAdminV2EmailTemplate) MarshalJSON() ([]byte, error) {
   870  	type NoMethod GoogleCloudIdentitytoolkitAdminV2EmailTemplate
   871  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   872  }
   873  
   874  // GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials: Indicates which
   875  // credentials to pass to the registered Blocking Functions.
   876  type GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials struct {
   877  	// AccessToken: Whether to pass the user's OAuth identity provider's access
   878  	// token.
   879  	AccessToken bool `json:"accessToken,omitempty"`
   880  	// IdToken: Whether to pass the user's OIDC identity provider's ID token.
   881  	IdToken bool `json:"idToken,omitempty"`
   882  	// RefreshToken: Whether to pass the user's OAuth identity provider's refresh
   883  	// token.
   884  	RefreshToken bool `json:"refreshToken,omitempty"`
   885  	// ForceSendFields is a list of field names (e.g. "AccessToken") to
   886  	// unconditionally include in API requests. By default, fields with empty or
   887  	// default values are omitted from API requests. See
   888  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   889  	// details.
   890  	ForceSendFields []string `json:"-"`
   891  	// NullFields is a list of field names (e.g. "AccessToken") to include in API
   892  	// requests with the JSON null value. By default, fields with empty values are
   893  	// omitted from API requests. See
   894  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   895  	NullFields []string `json:"-"`
   896  }
   897  
   898  func (s *GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials) MarshalJSON() ([]byte, error) {
   899  	type NoMethod GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials
   900  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   901  }
   902  
   903  // GoogleCloudIdentitytoolkitAdminV2HashConfig: History information of the hash
   904  // algorithm and key. Different accounts' passwords may be generated by
   905  // different version.
   906  type GoogleCloudIdentitytoolkitAdminV2HashConfig struct {
   907  	// Algorithm: Output only. Different password hash algorithms used in Identity
   908  	// Toolkit.
   909  	//
   910  	// Possible values:
   911  	//   "HASH_ALGORITHM_UNSPECIFIED" - Default value. Do not use.
   912  	//   "HMAC_SHA256" - HMAC_SHA256
   913  	//   "HMAC_SHA1" - HMAC_SHA1
   914  	//   "HMAC_MD5" - HMAC_MD5
   915  	//   "SCRYPT" - SCRYPT
   916  	//   "PBKDF_SHA1" - PBKDF_SHA1
   917  	//   "MD5" - MD5
   918  	//   "HMAC_SHA512" - HMAC_SHA512
   919  	//   "SHA1" - SHA1
   920  	//   "BCRYPT" - BCRYPT
   921  	//   "PBKDF2_SHA256" - PBKDF2_SHA256
   922  	//   "SHA256" - SHA256
   923  	//   "SHA512" - SHA512
   924  	//   "STANDARD_SCRYPT" - STANDARD_SCRYPT
   925  	Algorithm string `json:"algorithm,omitempty"`
   926  	// MemoryCost: Output only. Memory cost for hash calculation. Used by scrypt
   927  	// and other similar password derivation algorithms. See
   928  	// https://tools.ietf.org/html/rfc7914 for explanation of field.
   929  	MemoryCost int64 `json:"memoryCost,omitempty"`
   930  	// Rounds: Output only. How many rounds for hash calculation. Used by scrypt
   931  	// and other similar password derivation algorithms.
   932  	Rounds int64 `json:"rounds,omitempty"`
   933  	// SaltSeparator: Output only. Non-printable character to be inserted between
   934  	// the salt and plain text password in base64.
   935  	SaltSeparator string `json:"saltSeparator,omitempty"`
   936  	// SignerKey: Output only. Signer key in base64.
   937  	SignerKey string `json:"signerKey,omitempty"`
   938  	// ForceSendFields is a list of field names (e.g. "Algorithm") to
   939  	// unconditionally include in API requests. By default, fields with empty or
   940  	// default values are omitted from API requests. See
   941  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   942  	// details.
   943  	ForceSendFields []string `json:"-"`
   944  	// NullFields is a list of field names (e.g. "Algorithm") to include in API
   945  	// requests with the JSON null value. By default, fields with empty values are
   946  	// omitted from API requests. See
   947  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   948  	NullFields []string `json:"-"`
   949  }
   950  
   951  func (s *GoogleCloudIdentitytoolkitAdminV2HashConfig) MarshalJSON() ([]byte, error) {
   952  	type NoMethod GoogleCloudIdentitytoolkitAdminV2HashConfig
   953  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   954  }
   955  
   956  // GoogleCloudIdentitytoolkitAdminV2IdpCertificate: The IDP's certificate data
   957  // to verify the signature in the SAMLResponse issued by the IDP.
   958  type GoogleCloudIdentitytoolkitAdminV2IdpCertificate struct {
   959  	// X509Certificate: The x509 certificate
   960  	X509Certificate string `json:"x509Certificate,omitempty"`
   961  	// ForceSendFields is a list of field names (e.g. "X509Certificate") to
   962  	// unconditionally include in API requests. By default, fields with empty or
   963  	// default values are omitted from API requests. See
   964  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   965  	// details.
   966  	ForceSendFields []string `json:"-"`
   967  	// NullFields is a list of field names (e.g. "X509Certificate") to include in
   968  	// API requests with the JSON null value. By default, fields with empty values
   969  	// are omitted from API requests. See
   970  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   971  	NullFields []string `json:"-"`
   972  }
   973  
   974  func (s *GoogleCloudIdentitytoolkitAdminV2IdpCertificate) MarshalJSON() ([]byte, error) {
   975  	type NoMethod GoogleCloudIdentitytoolkitAdminV2IdpCertificate
   976  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   977  }
   978  
   979  // GoogleCloudIdentitytoolkitAdminV2IdpConfig: The SAML IdP (Identity Provider)
   980  // configuration when the project acts as the relying party.
   981  type GoogleCloudIdentitytoolkitAdminV2IdpConfig struct {
   982  	// IdpCertificates: IDP's public keys for verifying signature in the
   983  	// assertions.
   984  	IdpCertificates []*GoogleCloudIdentitytoolkitAdminV2IdpCertificate `json:"idpCertificates,omitempty"`
   985  	// IdpEntityId: Unique identifier for all SAML entities.
   986  	IdpEntityId string `json:"idpEntityId,omitempty"`
   987  	// SignRequest: Indicates if outbounding SAMLRequest should be signed.
   988  	SignRequest bool `json:"signRequest,omitempty"`
   989  	// SsoUrl: URL to send Authentication request to.
   990  	SsoUrl string `json:"ssoUrl,omitempty"`
   991  	// ForceSendFields is a list of field names (e.g. "IdpCertificates") to
   992  	// unconditionally include in API requests. By default, fields with empty or
   993  	// default values are omitted from API requests. See
   994  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   995  	// details.
   996  	ForceSendFields []string `json:"-"`
   997  	// NullFields is a list of field names (e.g. "IdpCertificates") to include in
   998  	// API requests with the JSON null value. By default, fields with empty values
   999  	// are omitted from API requests. See
  1000  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1001  	NullFields []string `json:"-"`
  1002  }
  1003  
  1004  func (s *GoogleCloudIdentitytoolkitAdminV2IdpConfig) MarshalJSON() ([]byte, error) {
  1005  	type NoMethod GoogleCloudIdentitytoolkitAdminV2IdpConfig
  1006  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1007  }
  1008  
  1009  // GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig: A pair of SAML RP-IDP
  1010  // configurations when the project acts as the relying party.
  1011  type GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig struct {
  1012  	// DisplayName: The config's display name set by developers.
  1013  	DisplayName string `json:"displayName,omitempty"`
  1014  	// Enabled: True if allows the user to sign in with the provider.
  1015  	Enabled bool `json:"enabled,omitempty"`
  1016  	// IdpConfig: The SAML IdP (Identity Provider) configuration when the project
  1017  	// acts as the relying party.
  1018  	IdpConfig *GoogleCloudIdentitytoolkitAdminV2IdpConfig `json:"idpConfig,omitempty"`
  1019  	// Name: The name of the InboundSamlConfig resource, for example:
  1020  	// 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. Ignored
  1021  	// during create requests.
  1022  	Name string `json:"name,omitempty"`
  1023  	// SpConfig: The SAML SP (Service Provider) configuration when the project acts
  1024  	// as the relying party to receive and accept an authentication assertion
  1025  	// issued by a SAML identity provider.
  1026  	SpConfig *GoogleCloudIdentitytoolkitAdminV2SpConfig `json:"spConfig,omitempty"`
  1027  
  1028  	// ServerResponse contains the HTTP response code and headers from the server.
  1029  	googleapi.ServerResponse `json:"-"`
  1030  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  1031  	// unconditionally include in API requests. By default, fields with empty or
  1032  	// default values are omitted from API requests. See
  1033  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1034  	// details.
  1035  	ForceSendFields []string `json:"-"`
  1036  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  1037  	// requests with the JSON null value. By default, fields with empty values are
  1038  	// omitted from API requests. See
  1039  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1040  	NullFields []string `json:"-"`
  1041  }
  1042  
  1043  func (s *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) MarshalJSON() ([]byte, error) {
  1044  	type NoMethod GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
  1045  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1046  }
  1047  
  1048  // GoogleCloudIdentitytoolkitAdminV2Inheritance: Settings that the tenants will
  1049  // inherit from project level.
  1050  type GoogleCloudIdentitytoolkitAdminV2Inheritance struct {
  1051  	// EmailSendingConfig: Whether to allow the tenant to inherit custom domains,
  1052  	// email templates, and custom SMTP settings. If true, email sent from tenant
  1053  	// will follow the project level email sending configurations. If false (by
  1054  	// default), emails will go with the default settings with no customizations.
  1055  	EmailSendingConfig bool `json:"emailSendingConfig,omitempty"`
  1056  	// ForceSendFields is a list of field names (e.g. "EmailSendingConfig") to
  1057  	// unconditionally include in API requests. By default, fields with empty or
  1058  	// default values are omitted from API requests. See
  1059  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1060  	// details.
  1061  	ForceSendFields []string `json:"-"`
  1062  	// NullFields is a list of field names (e.g. "EmailSendingConfig") to include
  1063  	// in API requests with the JSON null value. By default, fields with empty
  1064  	// values are omitted from API requests. See
  1065  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1066  	NullFields []string `json:"-"`
  1067  }
  1068  
  1069  func (s *GoogleCloudIdentitytoolkitAdminV2Inheritance) MarshalJSON() ([]byte, error) {
  1070  	type NoMethod GoogleCloudIdentitytoolkitAdminV2Inheritance
  1071  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1072  }
  1073  
  1074  // GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformRequest: Request
  1075  // for InitializeIdentityPlatform.
  1076  type GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformRequest struct {
  1077  }
  1078  
  1079  // GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformResponse:
  1080  // Response for InitializeIdentityPlatform. Empty for now.
  1081  type GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformResponse struct {
  1082  	// ServerResponse contains the HTTP response code and headers from the server.
  1083  	googleapi.ServerResponse `json:"-"`
  1084  }
  1085  
  1086  // GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse:
  1087  // Response for DefaultSupportedIdpConfigs
  1088  type GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse struct {
  1089  	// DefaultSupportedIdpConfigs: The set of configs.
  1090  	DefaultSupportedIdpConfigs []*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig `json:"defaultSupportedIdpConfigs,omitempty"`
  1091  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  1092  	// are no more results in the list.
  1093  	NextPageToken string `json:"nextPageToken,omitempty"`
  1094  
  1095  	// ServerResponse contains the HTTP response code and headers from the server.
  1096  	googleapi.ServerResponse `json:"-"`
  1097  	// ForceSendFields is a list of field names (e.g. "DefaultSupportedIdpConfigs")
  1098  	// to unconditionally include in API requests. By default, fields with empty or
  1099  	// default values are omitted from API requests. See
  1100  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1101  	// details.
  1102  	ForceSendFields []string `json:"-"`
  1103  	// NullFields is a list of field names (e.g. "DefaultSupportedIdpConfigs") to
  1104  	// include in API requests with the JSON null value. By default, fields with
  1105  	// empty values are omitted from API requests. See
  1106  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1107  	NullFields []string `json:"-"`
  1108  }
  1109  
  1110  func (s *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse) MarshalJSON() ([]byte, error) {
  1111  	type NoMethod GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse
  1112  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1113  }
  1114  
  1115  // GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse: Response
  1116  // for ListDefaultSupportedIdps
  1117  type GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse struct {
  1118  	// DefaultSupportedIdps: The set of configs.
  1119  	DefaultSupportedIdps []*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp `json:"defaultSupportedIdps,omitempty"`
  1120  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  1121  	// are no more results in the list.
  1122  	NextPageToken string `json:"nextPageToken,omitempty"`
  1123  
  1124  	// ServerResponse contains the HTTP response code and headers from the server.
  1125  	googleapi.ServerResponse `json:"-"`
  1126  	// ForceSendFields is a list of field names (e.g. "DefaultSupportedIdps") to
  1127  	// unconditionally include in API requests. By default, fields with empty or
  1128  	// default values are omitted from API requests. See
  1129  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1130  	// details.
  1131  	ForceSendFields []string `json:"-"`
  1132  	// NullFields is a list of field names (e.g. "DefaultSupportedIdps") to include
  1133  	// in API requests with the JSON null value. By default, fields with empty
  1134  	// values are omitted from API requests. See
  1135  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1136  	NullFields []string `json:"-"`
  1137  }
  1138  
  1139  func (s *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse) MarshalJSON() ([]byte, error) {
  1140  	type NoMethod GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse
  1141  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1142  }
  1143  
  1144  // GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse: Response
  1145  // for ListInboundSamlConfigs
  1146  type GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse struct {
  1147  	// InboundSamlConfigs: The set of configs.
  1148  	InboundSamlConfigs []*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig `json:"inboundSamlConfigs,omitempty"`
  1149  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  1150  	// are no more results in the list.
  1151  	NextPageToken string `json:"nextPageToken,omitempty"`
  1152  
  1153  	// ServerResponse contains the HTTP response code and headers from the server.
  1154  	googleapi.ServerResponse `json:"-"`
  1155  	// ForceSendFields is a list of field names (e.g. "InboundSamlConfigs") to
  1156  	// unconditionally include in API requests. By default, fields with empty or
  1157  	// default values are omitted from API requests. See
  1158  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1159  	// details.
  1160  	ForceSendFields []string `json:"-"`
  1161  	// NullFields is a list of field names (e.g. "InboundSamlConfigs") to include
  1162  	// in API requests with the JSON null value. By default, fields with empty
  1163  	// values are omitted from API requests. See
  1164  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1165  	NullFields []string `json:"-"`
  1166  }
  1167  
  1168  func (s *GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse) MarshalJSON() ([]byte, error) {
  1169  	type NoMethod GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse
  1170  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1171  }
  1172  
  1173  // GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse: Response for
  1174  // ListOAuthIdpConfigs
  1175  type GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse struct {
  1176  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  1177  	// are no more results in the list.
  1178  	NextPageToken string `json:"nextPageToken,omitempty"`
  1179  	// OauthIdpConfigs: The set of configs.
  1180  	OauthIdpConfigs []*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig `json:"oauthIdpConfigs,omitempty"`
  1181  
  1182  	// ServerResponse contains the HTTP response code and headers from the server.
  1183  	googleapi.ServerResponse `json:"-"`
  1184  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1185  	// unconditionally include in API requests. By default, fields with empty or
  1186  	// default values are omitted from API requests. See
  1187  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1188  	// details.
  1189  	ForceSendFields []string `json:"-"`
  1190  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1191  	// requests with the JSON null value. By default, fields with empty values are
  1192  	// omitted from API requests. See
  1193  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1194  	NullFields []string `json:"-"`
  1195  }
  1196  
  1197  func (s *GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse) MarshalJSON() ([]byte, error) {
  1198  	type NoMethod GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse
  1199  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1200  }
  1201  
  1202  // GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse: Response message for
  1203  // ListTenants.
  1204  type GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse struct {
  1205  	// NextPageToken: The token to get the next page of results.
  1206  	NextPageToken string `json:"nextPageToken,omitempty"`
  1207  	// Tenants: A list of tenants under the given agent project.
  1208  	Tenants []*GoogleCloudIdentitytoolkitAdminV2Tenant `json:"tenants,omitempty"`
  1209  
  1210  	// ServerResponse contains the HTTP response code and headers from the server.
  1211  	googleapi.ServerResponse `json:"-"`
  1212  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1213  	// unconditionally include in API requests. By default, fields with empty or
  1214  	// default values are omitted from API requests. See
  1215  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1216  	// details.
  1217  	ForceSendFields []string `json:"-"`
  1218  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1219  	// requests with the JSON null value. By default, fields with empty values are
  1220  	// omitted from API requests. See
  1221  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1222  	NullFields []string `json:"-"`
  1223  }
  1224  
  1225  func (s *GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse) MarshalJSON() ([]byte, error) {
  1226  	type NoMethod GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse
  1227  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1228  }
  1229  
  1230  // GoogleCloudIdentitytoolkitAdminV2MonitoringConfig: Configuration related to
  1231  // monitoring project activity.
  1232  type GoogleCloudIdentitytoolkitAdminV2MonitoringConfig struct {
  1233  	// RequestLogging: Configuration for logging requests made to this project to
  1234  	// Stackdriver Logging
  1235  	RequestLogging *GoogleCloudIdentitytoolkitAdminV2RequestLogging `json:"requestLogging,omitempty"`
  1236  	// ForceSendFields is a list of field names (e.g. "RequestLogging") to
  1237  	// unconditionally include in API requests. By default, fields with empty or
  1238  	// default values are omitted from API requests. See
  1239  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1240  	// details.
  1241  	ForceSendFields []string `json:"-"`
  1242  	// NullFields is a list of field names (e.g. "RequestLogging") to include in
  1243  	// API requests with the JSON null value. By default, fields with empty values
  1244  	// are omitted from API requests. See
  1245  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1246  	NullFields []string `json:"-"`
  1247  }
  1248  
  1249  func (s *GoogleCloudIdentitytoolkitAdminV2MonitoringConfig) MarshalJSON() ([]byte, error) {
  1250  	type NoMethod GoogleCloudIdentitytoolkitAdminV2MonitoringConfig
  1251  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1252  }
  1253  
  1254  // GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig: Options related to
  1255  // MultiFactor Authentication for the project.
  1256  type GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig struct {
  1257  	// EnabledProviders: A list of usable second factors for this project.
  1258  	//
  1259  	// Possible values:
  1260  	//   "PROVIDER_UNSPECIFIED" - Illegal Provider, should not be used
  1261  	//   "PHONE_SMS" - SMS is enabled as a second factor for this project.
  1262  	EnabledProviders []string `json:"enabledProviders,omitempty"`
  1263  	// ProviderConfigs: A list of usable second factors for this project along with
  1264  	// their configurations. This field does not support phone based MFA, for that
  1265  	// use the 'enabled_providers' field.
  1266  	ProviderConfigs []*GoogleCloudIdentitytoolkitAdminV2ProviderConfig `json:"providerConfigs,omitempty"`
  1267  	// State: Whether MultiFactor Authentication has been enabled for this project.
  1268  	//
  1269  	// Possible values:
  1270  	//   "STATE_UNSPECIFIED" - Illegal State, should not be used.
  1271  	//   "DISABLED" - Multi-factor authentication cannot be used for this project
  1272  	//   "ENABLED" - Multi-factor authentication can be used for this project
  1273  	//   "MANDATORY" - Multi-factor authentication is required for this project.
  1274  	// Users from this project must authenticate with the second factor.
  1275  	State string `json:"state,omitempty"`
  1276  	// ForceSendFields is a list of field names (e.g. "EnabledProviders") to
  1277  	// unconditionally include in API requests. By default, fields with empty or
  1278  	// default values are omitted from API requests. See
  1279  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1280  	// details.
  1281  	ForceSendFields []string `json:"-"`
  1282  	// NullFields is a list of field names (e.g. "EnabledProviders") to include in
  1283  	// API requests with the JSON null value. By default, fields with empty values
  1284  	// are omitted from API requests. See
  1285  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1286  	NullFields []string `json:"-"`
  1287  }
  1288  
  1289  func (s *GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig) MarshalJSON() ([]byte, error) {
  1290  	type NoMethod GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig
  1291  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1292  }
  1293  
  1294  // GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig: Configuration related to
  1295  // multi-tenant functionality.
  1296  type GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig struct {
  1297  	// AllowTenants: Whether this project can have tenants or not.
  1298  	AllowTenants bool `json:"allowTenants,omitempty"`
  1299  	// DefaultTenantLocation: The default cloud parent org or folder that the
  1300  	// tenant project should be created under. The parent resource name should be
  1301  	// in the format of "/", such as "folders/123" or "organizations/456". If the
  1302  	// value is not set, the tenant will be created under the same organization or
  1303  	// folder as the agent project.
  1304  	DefaultTenantLocation string `json:"defaultTenantLocation,omitempty"`
  1305  	// ForceSendFields is a list of field names (e.g. "AllowTenants") to
  1306  	// unconditionally include in API requests. By default, fields with empty or
  1307  	// default values are omitted from API requests. See
  1308  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1309  	// details.
  1310  	ForceSendFields []string `json:"-"`
  1311  	// NullFields is a list of field names (e.g. "AllowTenants") to include in API
  1312  	// requests with the JSON null value. By default, fields with empty values are
  1313  	// omitted from API requests. See
  1314  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1315  	NullFields []string `json:"-"`
  1316  }
  1317  
  1318  func (s *GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig) MarshalJSON() ([]byte, error) {
  1319  	type NoMethod GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig
  1320  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1321  }
  1322  
  1323  // GoogleCloudIdentitytoolkitAdminV2NotificationConfig: Configuration related
  1324  // to sending notifications to users.
  1325  type GoogleCloudIdentitytoolkitAdminV2NotificationConfig struct {
  1326  	// DefaultLocale: Default locale used for email and SMS in IETF BCP 47 format.
  1327  	DefaultLocale string `json:"defaultLocale,omitempty"`
  1328  	// SendEmail: Options for email sending.
  1329  	SendEmail *GoogleCloudIdentitytoolkitAdminV2SendEmail `json:"sendEmail,omitempty"`
  1330  	// SendSms: Options for SMS sending.
  1331  	SendSms *GoogleCloudIdentitytoolkitAdminV2SendSms `json:"sendSms,omitempty"`
  1332  	// ForceSendFields is a list of field names (e.g. "DefaultLocale") to
  1333  	// unconditionally include in API requests. By default, fields with empty or
  1334  	// default values are omitted from API requests. See
  1335  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1336  	// details.
  1337  	ForceSendFields []string `json:"-"`
  1338  	// NullFields is a list of field names (e.g. "DefaultLocale") to include in API
  1339  	// requests with the JSON null value. By default, fields with empty values are
  1340  	// omitted from API requests. See
  1341  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1342  	NullFields []string `json:"-"`
  1343  }
  1344  
  1345  func (s *GoogleCloudIdentitytoolkitAdminV2NotificationConfig) MarshalJSON() ([]byte, error) {
  1346  	type NoMethod GoogleCloudIdentitytoolkitAdminV2NotificationConfig
  1347  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1348  }
  1349  
  1350  // GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig: Configuration options for
  1351  // authenticating with an OAuth IDP.
  1352  type GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig struct {
  1353  	// ClientId: The client id of an OAuth client.
  1354  	ClientId string `json:"clientId,omitempty"`
  1355  	// ClientSecret: The client secret of the OAuth client, to enable OIDC code
  1356  	// flow.
  1357  	ClientSecret string `json:"clientSecret,omitempty"`
  1358  	// DisplayName: The config's display name set by developers.
  1359  	DisplayName string `json:"displayName,omitempty"`
  1360  	// Enabled: True if allows the user to sign in with the provider.
  1361  	Enabled bool `json:"enabled,omitempty"`
  1362  	// Issuer: For OIDC Idps, the issuer identifier.
  1363  	Issuer string `json:"issuer,omitempty"`
  1364  	// Name: The name of the OAuthIdpConfig resource, for example:
  1365  	// 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. Ignored
  1366  	// during create requests.
  1367  	Name string `json:"name,omitempty"`
  1368  	// ResponseType: The response type to request for in the OAuth authorization
  1369  	// flow. You can set either `id_token` or `code` to true, but not both. Setting
  1370  	// both types to be simultaneously true (`{code: true, id_token: true}`) is not
  1371  	// yet supported.
  1372  	ResponseType *GoogleCloudIdentitytoolkitAdminV2OAuthResponseType `json:"responseType,omitempty"`
  1373  
  1374  	// ServerResponse contains the HTTP response code and headers from the server.
  1375  	googleapi.ServerResponse `json:"-"`
  1376  	// ForceSendFields is a list of field names (e.g. "ClientId") to
  1377  	// unconditionally include in API requests. By default, fields with empty or
  1378  	// default values are omitted from API requests. See
  1379  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1380  	// details.
  1381  	ForceSendFields []string `json:"-"`
  1382  	// NullFields is a list of field names (e.g. "ClientId") to include in API
  1383  	// requests with the JSON null value. By default, fields with empty values are
  1384  	// omitted from API requests. See
  1385  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1386  	NullFields []string `json:"-"`
  1387  }
  1388  
  1389  func (s *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) MarshalJSON() ([]byte, error) {
  1390  	type NoMethod GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
  1391  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1392  }
  1393  
  1394  // GoogleCloudIdentitytoolkitAdminV2OAuthResponseType: The response type to
  1395  // request for in the OAuth authorization flow. You can set either `id_token`
  1396  // or `code` to true, but not both. Setting both types to be simultaneously
  1397  // true (`{code: true, id_token: true}`) is not yet supported. See
  1398  // https://openid.net/specs/openid-connect-core-1_0.html#Authentication for a
  1399  // mapping of response type to OAuth 2.0 flow.
  1400  type GoogleCloudIdentitytoolkitAdminV2OAuthResponseType struct {
  1401  	// Code: If true, authorization code is returned from IdP's authorization
  1402  	// endpoint.
  1403  	Code bool `json:"code,omitempty"`
  1404  	// IdToken: If true, ID token is returned from IdP's authorization endpoint.
  1405  	IdToken bool `json:"idToken,omitempty"`
  1406  	// Token: Do not use. The `token` response type is not supported at the moment.
  1407  	Token bool `json:"token,omitempty"`
  1408  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  1409  	// include in API requests. By default, fields with empty or default values are
  1410  	// omitted from API requests. See
  1411  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1412  	// details.
  1413  	ForceSendFields []string `json:"-"`
  1414  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  1415  	// with the JSON null value. By default, fields with empty values are omitted
  1416  	// from API requests. See
  1417  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1418  	NullFields []string `json:"-"`
  1419  }
  1420  
  1421  func (s *GoogleCloudIdentitytoolkitAdminV2OAuthResponseType) MarshalJSON() ([]byte, error) {
  1422  	type NoMethod GoogleCloudIdentitytoolkitAdminV2OAuthResponseType
  1423  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1424  }
  1425  
  1426  // GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig: The configuration for
  1427  // the password policy on the project.
  1428  type GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig struct {
  1429  	// ForceUpgradeOnSignin: Users must have a password compliant with the password
  1430  	// policy to sign-in.
  1431  	ForceUpgradeOnSignin bool `json:"forceUpgradeOnSignin,omitempty"`
  1432  	// LastUpdateTime: Output only. The last time the password policy on the
  1433  	// project was updated.
  1434  	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
  1435  	// PasswordPolicyEnforcementState: Which enforcement mode to use for the
  1436  	// password policy.
  1437  	//
  1438  	// Possible values:
  1439  	//   "PASSWORD_POLICY_ENFORCEMENT_STATE_UNSPECIFIED" - Illegal State, should
  1440  	// not be used.
  1441  	//   "OFF" - Password Policy will not be used on the project.
  1442  	//   "ENFORCE" - Passwords non-compliant with the password policy will be
  1443  	// rejected with an error thrown.
  1444  	PasswordPolicyEnforcementState string `json:"passwordPolicyEnforcementState,omitempty"`
  1445  	// PasswordPolicyVersions: Must be of length 1. Contains the strength
  1446  	// attributes for the password policy.
  1447  	PasswordPolicyVersions []*GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion `json:"passwordPolicyVersions,omitempty"`
  1448  	// ForceSendFields is a list of field names (e.g. "ForceUpgradeOnSignin") to
  1449  	// unconditionally include in API requests. By default, fields with empty or
  1450  	// default values are omitted from API requests. See
  1451  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1452  	// details.
  1453  	ForceSendFields []string `json:"-"`
  1454  	// NullFields is a list of field names (e.g. "ForceUpgradeOnSignin") to include
  1455  	// in API requests with the JSON null value. By default, fields with empty
  1456  	// values are omitted from API requests. See
  1457  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1458  	NullFields []string `json:"-"`
  1459  }
  1460  
  1461  func (s *GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig) MarshalJSON() ([]byte, error) {
  1462  	type NoMethod GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig
  1463  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1464  }
  1465  
  1466  // GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion: The strength
  1467  // attributes for the password policy on the project.
  1468  type GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion struct {
  1469  	// CustomStrengthOptions: The custom strength options enforced by the password
  1470  	// policy.
  1471  	CustomStrengthOptions *GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions `json:"customStrengthOptions,omitempty"`
  1472  	// SchemaVersion: Output only. schema version number for the password policy
  1473  	SchemaVersion int64 `json:"schemaVersion,omitempty"`
  1474  	// ForceSendFields is a list of field names (e.g. "CustomStrengthOptions") to
  1475  	// unconditionally include in API requests. By default, fields with empty or
  1476  	// default values are omitted from API requests. See
  1477  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1478  	// details.
  1479  	ForceSendFields []string `json:"-"`
  1480  	// NullFields is a list of field names (e.g. "CustomStrengthOptions") to
  1481  	// include in API requests with the JSON null value. By default, fields with
  1482  	// empty values are omitted from API requests. See
  1483  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1484  	NullFields []string `json:"-"`
  1485  }
  1486  
  1487  func (s *GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion) MarshalJSON() ([]byte, error) {
  1488  	type NoMethod GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion
  1489  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1490  }
  1491  
  1492  // GoogleCloudIdentitytoolkitAdminV2Permissions: Configuration related to
  1493  // restricting a user's ability to affect their account.
  1494  type GoogleCloudIdentitytoolkitAdminV2Permissions struct {
  1495  	// DisabledUserDeletion: When true, end users cannot delete their account on
  1496  	// the associated project through any of our API methods
  1497  	DisabledUserDeletion bool `json:"disabledUserDeletion,omitempty"`
  1498  	// DisabledUserSignup: When true, end users cannot sign up for a new account on
  1499  	// the associated project through any of our API methods
  1500  	DisabledUserSignup bool `json:"disabledUserSignup,omitempty"`
  1501  	// ForceSendFields is a list of field names (e.g. "DisabledUserDeletion") 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. "DisabledUserDeletion") to include
  1508  	// in API requests with the JSON null value. By default, fields with empty
  1509  	// values are 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 *GoogleCloudIdentitytoolkitAdminV2Permissions) MarshalJSON() ([]byte, error) {
  1515  	type NoMethod GoogleCloudIdentitytoolkitAdminV2Permissions
  1516  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1517  }
  1518  
  1519  // GoogleCloudIdentitytoolkitAdminV2PhoneNumber: Configuration options related
  1520  // to authenticated a user by their phone number.
  1521  type GoogleCloudIdentitytoolkitAdminV2PhoneNumber struct {
  1522  	// Enabled: Whether phone number auth is enabled for the project or not.
  1523  	Enabled bool `json:"enabled,omitempty"`
  1524  	// TestPhoneNumbers: A map of that can be used for phone auth testing.
  1525  	TestPhoneNumbers map[string]string `json:"testPhoneNumbers,omitempty"`
  1526  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  1527  	// include in API requests. By default, fields with empty or default values are
  1528  	// omitted from API requests. See
  1529  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1530  	// details.
  1531  	ForceSendFields []string `json:"-"`
  1532  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  1533  	// requests with the JSON null value. By default, fields with empty values are
  1534  	// omitted from API requests. See
  1535  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1536  	NullFields []string `json:"-"`
  1537  }
  1538  
  1539  func (s *GoogleCloudIdentitytoolkitAdminV2PhoneNumber) MarshalJSON() ([]byte, error) {
  1540  	type NoMethod GoogleCloudIdentitytoolkitAdminV2PhoneNumber
  1541  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1542  }
  1543  
  1544  // GoogleCloudIdentitytoolkitAdminV2ProviderConfig: ProviderConfig describes
  1545  // the supported MFA providers along with their configurations.
  1546  type GoogleCloudIdentitytoolkitAdminV2ProviderConfig struct {
  1547  	// State: Describes the state of the MultiFactor Authentication type.
  1548  	//
  1549  	// Possible values:
  1550  	//   "MFA_STATE_UNSPECIFIED" - Illegal State, should not be used.
  1551  	//   "DISABLED" - Multi-factor authentication cannot be used for this project.
  1552  	//   "ENABLED" - Multi-factor authentication can be used for this project.
  1553  	//   "MANDATORY" - Multi-factor authentication is required for this project.
  1554  	// Users from this project must authenticate with the second factor.
  1555  	State string `json:"state,omitempty"`
  1556  	// TotpProviderConfig: TOTP MFA provider config for this project.
  1557  	TotpProviderConfig *GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig `json:"totpProviderConfig,omitempty"`
  1558  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
  1559  	// include in API requests. By default, fields with empty or default values are
  1560  	// omitted from API requests. See
  1561  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1562  	// details.
  1563  	ForceSendFields []string `json:"-"`
  1564  	// NullFields is a list of field names (e.g. "State") to include in API
  1565  	// requests with the JSON null value. By default, fields with empty values are
  1566  	// omitted from API requests. See
  1567  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1568  	NullFields []string `json:"-"`
  1569  }
  1570  
  1571  func (s *GoogleCloudIdentitytoolkitAdminV2ProviderConfig) MarshalJSON() ([]byte, error) {
  1572  	type NoMethod GoogleCloudIdentitytoolkitAdminV2ProviderConfig
  1573  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1574  }
  1575  
  1576  // GoogleCloudIdentitytoolkitAdminV2QuotaConfig: Configuration related to
  1577  // quotas.
  1578  type GoogleCloudIdentitytoolkitAdminV2QuotaConfig struct {
  1579  	// SignUpQuotaConfig: Quota for the Signup endpoint, if overwritten. Signup
  1580  	// quota is measured in sign ups per project per hour per IP.
  1581  	SignUpQuotaConfig *GoogleCloudIdentitytoolkitAdminV2TemporaryQuota `json:"signUpQuotaConfig,omitempty"`
  1582  	// ForceSendFields is a list of field names (e.g. "SignUpQuotaConfig") to
  1583  	// unconditionally include in API requests. By default, fields with empty or
  1584  	// default values are omitted from API requests. See
  1585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1586  	// details.
  1587  	ForceSendFields []string `json:"-"`
  1588  	// NullFields is a list of field names (e.g. "SignUpQuotaConfig") to include in
  1589  	// API requests with the JSON null value. By default, fields with empty values
  1590  	// are omitted from API requests. See
  1591  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1592  	NullFields []string `json:"-"`
  1593  }
  1594  
  1595  func (s *GoogleCloudIdentitytoolkitAdminV2QuotaConfig) MarshalJSON() ([]byte, error) {
  1596  	type NoMethod GoogleCloudIdentitytoolkitAdminV2QuotaConfig
  1597  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1598  }
  1599  
  1600  // GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig: The reCAPTCHA Enterprise
  1601  // integration config.
  1602  type GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig struct {
  1603  	// EmailPasswordEnforcementState: The reCAPTCHA config for email/password
  1604  	// provider, containing the enforcement status. The email/password provider
  1605  	// contains all related user flows protected by reCAPTCHA.
  1606  	//
  1607  	// Possible values:
  1608  	//   "RECAPTCHA_PROVIDER_ENFORCEMENT_STATE_UNSPECIFIED" - Enforcement state has
  1609  	// not been set.
  1610  	//   "OFF" - Unenforced.
  1611  	//   "AUDIT" - reCAPTCHA assessment is created, result is not used to enforce.
  1612  	//   "ENFORCE" - reCAPTCHA assessment is created, result is used to enforce.
  1613  	EmailPasswordEnforcementState string `json:"emailPasswordEnforcementState,omitempty"`
  1614  	// ManagedRules: The managed rules for authentication action based on reCAPTCHA
  1615  	// scores. The rules are shared across providers for a given tenant project.
  1616  	ManagedRules []*GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule `json:"managedRules,omitempty"`
  1617  	// RecaptchaKeys: The reCAPTCHA keys.
  1618  	RecaptchaKeys []*GoogleCloudIdentitytoolkitAdminV2RecaptchaKey `json:"recaptchaKeys,omitempty"`
  1619  	// UseAccountDefender: Whether to use the account defender for reCAPTCHA
  1620  	// assessment. Defaults to `false`.
  1621  	UseAccountDefender bool `json:"useAccountDefender,omitempty"`
  1622  	// ForceSendFields is a list of field names (e.g.
  1623  	// "EmailPasswordEnforcementState") to unconditionally include in API requests.
  1624  	// By default, fields with empty or default values are omitted from API
  1625  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  1626  	// for more details.
  1627  	ForceSendFields []string `json:"-"`
  1628  	// NullFields is a list of field names (e.g. "EmailPasswordEnforcementState")
  1629  	// to include in API requests with the JSON null value. By default, fields with
  1630  	// empty values are omitted from API requests. See
  1631  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1632  	NullFields []string `json:"-"`
  1633  }
  1634  
  1635  func (s *GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig) MarshalJSON() ([]byte, error) {
  1636  	type NoMethod GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig
  1637  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1638  }
  1639  
  1640  // GoogleCloudIdentitytoolkitAdminV2RecaptchaKey: The reCAPTCHA key config.
  1641  // reCAPTCHA Enterprise offers different keys for different client platforms.
  1642  type GoogleCloudIdentitytoolkitAdminV2RecaptchaKey struct {
  1643  	// Key: The reCAPTCHA Enterprise key resource name, e.g.
  1644  	// "projects/{project}/keys/{key}"
  1645  	Key string `json:"key,omitempty"`
  1646  	// Type: The client's platform type.
  1647  	//
  1648  	// Possible values:
  1649  	//   "CLIENT_TYPE_UNSPECIFIED" - Client type is not specified.
  1650  	//   "WEB" - Client type is web.
  1651  	//   "IOS" - Client type is iOS.
  1652  	//   "ANDROID" - Client type is Android.
  1653  	Type string `json:"type,omitempty"`
  1654  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
  1655  	// include in API requests. By default, fields with empty or default values are
  1656  	// omitted from API requests. See
  1657  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1658  	// details.
  1659  	ForceSendFields []string `json:"-"`
  1660  	// NullFields is a list of field names (e.g. "Key") to include in API requests
  1661  	// with the JSON null value. By default, fields with empty values are omitted
  1662  	// from API requests. See
  1663  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1664  	NullFields []string `json:"-"`
  1665  }
  1666  
  1667  func (s *GoogleCloudIdentitytoolkitAdminV2RecaptchaKey) MarshalJSON() ([]byte, error) {
  1668  	type NoMethod GoogleCloudIdentitytoolkitAdminV2RecaptchaKey
  1669  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1670  }
  1671  
  1672  // GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule: The config for a
  1673  // reCAPTCHA managed rule. Models a single interval [start_score, end_score].
  1674  // The start_score is implicit. It is either the closest smaller end_score (if
  1675  // one is available) or 0. Intervals in aggregate span [0, 1] without
  1676  // overlapping.
  1677  type GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule struct {
  1678  	// Action: The action taken if the reCAPTCHA score of a request is within the
  1679  	// interval [start_score, end_score].
  1680  	//
  1681  	// Possible values:
  1682  	//   "RECAPTCHA_ACTION_UNSPECIFIED" - The reCAPTCHA action is not specified.
  1683  	//   "BLOCK" - The reCAPTCHA-protected request will be blocked.
  1684  	Action string `json:"action,omitempty"`
  1685  	// EndScore: The end score (inclusive) of the score range for an action. Must
  1686  	// be a value between 0.0 and 1.0, at 11 discrete values; e.g. 0, 0.1, 0.2,
  1687  	// 0.3, ... 0.9, 1.0. A score of 0.0 indicates the riskiest request (likely a
  1688  	// bot), whereas 1.0 indicates the safest request (likely a human). See
  1689  	// https://cloud.google.com/recaptcha-enterprise/docs/interpret-assessment.
  1690  	EndScore float64 `json:"endScore,omitempty"`
  1691  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  1692  	// include in API requests. By default, fields with empty or default values are
  1693  	// omitted from API requests. See
  1694  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1695  	// details.
  1696  	ForceSendFields []string `json:"-"`
  1697  	// NullFields is a list of field names (e.g. "Action") to include in API
  1698  	// requests with the JSON null value. By default, fields with empty values are
  1699  	// omitted from API requests. See
  1700  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1701  	NullFields []string `json:"-"`
  1702  }
  1703  
  1704  func (s *GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule) MarshalJSON() ([]byte, error) {
  1705  	type NoMethod GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
  1706  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1707  }
  1708  
  1709  func (s *GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule) UnmarshalJSON(data []byte) error {
  1710  	type NoMethod GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
  1711  	var s1 struct {
  1712  		EndScore gensupport.JSONFloat64 `json:"endScore"`
  1713  		*NoMethod
  1714  	}
  1715  	s1.NoMethod = (*NoMethod)(s)
  1716  	if err := json.Unmarshal(data, &s1); err != nil {
  1717  		return err
  1718  	}
  1719  	s.EndScore = float64(s1.EndScore)
  1720  	return nil
  1721  }
  1722  
  1723  // GoogleCloudIdentitytoolkitAdminV2RequestLogging: Configuration for logging
  1724  // requests made to this project to Stackdriver Logging
  1725  type GoogleCloudIdentitytoolkitAdminV2RequestLogging struct {
  1726  	// Enabled: Whether logging is enabled for this project or not.
  1727  	Enabled bool `json:"enabled,omitempty"`
  1728  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  1729  	// include in API requests. By default, fields with empty or default values are
  1730  	// omitted from API requests. See
  1731  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1732  	// details.
  1733  	ForceSendFields []string `json:"-"`
  1734  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  1735  	// requests with the JSON null value. By default, fields with empty values are
  1736  	// omitted from API requests. See
  1737  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1738  	NullFields []string `json:"-"`
  1739  }
  1740  
  1741  func (s *GoogleCloudIdentitytoolkitAdminV2RequestLogging) MarshalJSON() ([]byte, error) {
  1742  	type NoMethod GoogleCloudIdentitytoolkitAdminV2RequestLogging
  1743  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1744  }
  1745  
  1746  // GoogleCloudIdentitytoolkitAdminV2SendEmail: Options for email sending.
  1747  type GoogleCloudIdentitytoolkitAdminV2SendEmail struct {
  1748  	// CallbackUri: action url in email template.
  1749  	CallbackUri string `json:"callbackUri,omitempty"`
  1750  	// ChangeEmailTemplate: Email template for change email
  1751  	ChangeEmailTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"changeEmailTemplate,omitempty"`
  1752  	// DnsInfo: Information of custom domain DNS verification.
  1753  	DnsInfo *GoogleCloudIdentitytoolkitAdminV2DnsInfo `json:"dnsInfo,omitempty"`
  1754  	// LegacyResetPasswordTemplate: Reset password email template for legacy
  1755  	// Firebase V1 app.
  1756  	LegacyResetPasswordTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"legacyResetPasswordTemplate,omitempty"`
  1757  	// Method: The method used for sending an email.
  1758  	//
  1759  	// Possible values:
  1760  	//   "METHOD_UNSPECIFIED" - Email method unspecified.
  1761  	//   "DEFAULT" - Sending email on behalf of developer.
  1762  	//   "CUSTOM_SMTP" - Sending email using SMTP configuration provided by
  1763  	// developers.
  1764  	Method string `json:"method,omitempty"`
  1765  	// ResetPasswordTemplate: Email template for reset password
  1766  	ResetPasswordTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"resetPasswordTemplate,omitempty"`
  1767  	// RevertSecondFactorAdditionTemplate: Email template for reverting second
  1768  	// factor addition emails
  1769  	RevertSecondFactorAdditionTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"revertSecondFactorAdditionTemplate,omitempty"`
  1770  	// Smtp: Use a custom SMTP relay
  1771  	Smtp *GoogleCloudIdentitytoolkitAdminV2Smtp `json:"smtp,omitempty"`
  1772  	// VerifyEmailTemplate: Email template for verify email
  1773  	VerifyEmailTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"verifyEmailTemplate,omitempty"`
  1774  	// ForceSendFields is a list of field names (e.g. "CallbackUri") to
  1775  	// unconditionally include in API requests. By default, fields with empty or
  1776  	// default values are omitted from API requests. See
  1777  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1778  	// details.
  1779  	ForceSendFields []string `json:"-"`
  1780  	// NullFields is a list of field names (e.g. "CallbackUri") to include in API
  1781  	// requests with the JSON null value. By default, fields with empty values are
  1782  	// omitted from API requests. See
  1783  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1784  	NullFields []string `json:"-"`
  1785  }
  1786  
  1787  func (s *GoogleCloudIdentitytoolkitAdminV2SendEmail) MarshalJSON() ([]byte, error) {
  1788  	type NoMethod GoogleCloudIdentitytoolkitAdminV2SendEmail
  1789  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1790  }
  1791  
  1792  // GoogleCloudIdentitytoolkitAdminV2SendSms: Options for SMS sending.
  1793  type GoogleCloudIdentitytoolkitAdminV2SendSms struct {
  1794  	// SmsTemplate: Output only. The template to use when sending an SMS.
  1795  	SmsTemplate *GoogleCloudIdentitytoolkitAdminV2SmsTemplate `json:"smsTemplate,omitempty"`
  1796  	// UseDeviceLocale: Whether to use the accept_language header for SMS.
  1797  	UseDeviceLocale bool `json:"useDeviceLocale,omitempty"`
  1798  	// ForceSendFields is a list of field names (e.g. "SmsTemplate") to
  1799  	// unconditionally include in API requests. By default, fields with empty or
  1800  	// default values are omitted from API requests. See
  1801  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1802  	// details.
  1803  	ForceSendFields []string `json:"-"`
  1804  	// NullFields is a list of field names (e.g. "SmsTemplate") to include in API
  1805  	// requests with the JSON null value. By default, fields with empty values are
  1806  	// omitted from API requests. See
  1807  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1808  	NullFields []string `json:"-"`
  1809  }
  1810  
  1811  func (s *GoogleCloudIdentitytoolkitAdminV2SendSms) MarshalJSON() ([]byte, error) {
  1812  	type NoMethod GoogleCloudIdentitytoolkitAdminV2SendSms
  1813  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1814  }
  1815  
  1816  // GoogleCloudIdentitytoolkitAdminV2SignInConfig: Configuration related to
  1817  // local sign in methods.
  1818  type GoogleCloudIdentitytoolkitAdminV2SignInConfig struct {
  1819  	// AllowDuplicateEmails: Whether to allow more than one account to have the
  1820  	// same email.
  1821  	AllowDuplicateEmails bool `json:"allowDuplicateEmails,omitempty"`
  1822  	// Anonymous: Configuration options related to authenticating an anonymous
  1823  	// user.
  1824  	Anonymous *GoogleCloudIdentitytoolkitAdminV2Anonymous `json:"anonymous,omitempty"`
  1825  	// Email: Configuration options related to authenticating a user by their email
  1826  	// address.
  1827  	Email *GoogleCloudIdentitytoolkitAdminV2Email `json:"email,omitempty"`
  1828  	// HashConfig: Output only. Hash config information.
  1829  	HashConfig *GoogleCloudIdentitytoolkitAdminV2HashConfig `json:"hashConfig,omitempty"`
  1830  	// PhoneNumber: Configuration options related to authenticated a user by their
  1831  	// phone number.
  1832  	PhoneNumber *GoogleCloudIdentitytoolkitAdminV2PhoneNumber `json:"phoneNumber,omitempty"`
  1833  	// ForceSendFields is a list of field names (e.g. "AllowDuplicateEmails") to
  1834  	// unconditionally include in API requests. By default, fields with empty or
  1835  	// default values are omitted from API requests. See
  1836  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1837  	// details.
  1838  	ForceSendFields []string `json:"-"`
  1839  	// NullFields is a list of field names (e.g. "AllowDuplicateEmails") to include
  1840  	// in API requests with the JSON null value. By default, fields with empty
  1841  	// values are omitted from API requests. See
  1842  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1843  	NullFields []string `json:"-"`
  1844  }
  1845  
  1846  func (s *GoogleCloudIdentitytoolkitAdminV2SignInConfig) MarshalJSON() ([]byte, error) {
  1847  	type NoMethod GoogleCloudIdentitytoolkitAdminV2SignInConfig
  1848  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1849  }
  1850  
  1851  // GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig: Configures the regions
  1852  // where users are allowed to send verification SMS for the project or tenant.
  1853  // This is based on the calling code of the destination phone number.
  1854  type GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig struct {
  1855  	// AllowByDefault: A policy of allowing SMS to every region by default and
  1856  	// adding disallowed regions to a disallow list.
  1857  	AllowByDefault *GoogleCloudIdentitytoolkitAdminV2AllowByDefault `json:"allowByDefault,omitempty"`
  1858  	// AllowlistOnly: A policy of only allowing regions by explicitly adding them
  1859  	// to an allowlist.
  1860  	AllowlistOnly *GoogleCloudIdentitytoolkitAdminV2AllowlistOnly `json:"allowlistOnly,omitempty"`
  1861  	// ForceSendFields is a list of field names (e.g. "AllowByDefault") to
  1862  	// unconditionally include in API requests. By default, fields with empty or
  1863  	// default values are omitted from API requests. See
  1864  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1865  	// details.
  1866  	ForceSendFields []string `json:"-"`
  1867  	// NullFields is a list of field names (e.g. "AllowByDefault") to include in
  1868  	// API requests with the JSON null value. By default, fields with empty values
  1869  	// are omitted from API requests. See
  1870  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1871  	NullFields []string `json:"-"`
  1872  }
  1873  
  1874  func (s *GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig) MarshalJSON() ([]byte, error) {
  1875  	type NoMethod GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig
  1876  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1877  }
  1878  
  1879  // GoogleCloudIdentitytoolkitAdminV2SmsTemplate: The template to use when
  1880  // sending an SMS.
  1881  type GoogleCloudIdentitytoolkitAdminV2SmsTemplate struct {
  1882  	// Content: Output only. The SMS's content. Can contain the following
  1883  	// placeholders which will be replaced with the appropriate values: %APP_NAME%
  1884  	// - For Android or iOS apps, the app's display name. For web apps, the domain
  1885  	// hosting the application. %LOGIN_CODE% - The OOB code being sent in the SMS.
  1886  	Content string `json:"content,omitempty"`
  1887  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  1888  	// include in API requests. By default, fields with empty or default values are
  1889  	// omitted from API requests. See
  1890  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1891  	// details.
  1892  	ForceSendFields []string `json:"-"`
  1893  	// NullFields is a list of field names (e.g. "Content") to include in API
  1894  	// requests with the JSON null value. By default, fields with empty values are
  1895  	// omitted from API requests. See
  1896  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1897  	NullFields []string `json:"-"`
  1898  }
  1899  
  1900  func (s *GoogleCloudIdentitytoolkitAdminV2SmsTemplate) MarshalJSON() ([]byte, error) {
  1901  	type NoMethod GoogleCloudIdentitytoolkitAdminV2SmsTemplate
  1902  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1903  }
  1904  
  1905  // GoogleCloudIdentitytoolkitAdminV2Smtp: Configuration for SMTP relay
  1906  type GoogleCloudIdentitytoolkitAdminV2Smtp struct {
  1907  	// Host: SMTP relay host
  1908  	Host string `json:"host,omitempty"`
  1909  	// Password: SMTP relay password
  1910  	Password string `json:"password,omitempty"`
  1911  	// Port: SMTP relay port
  1912  	Port int64 `json:"port,omitempty"`
  1913  	// SecurityMode: SMTP security mode.
  1914  	//
  1915  	// Possible values:
  1916  	//   "SECURITY_MODE_UNSPECIFIED" - Default value. Do not use.
  1917  	//   "SSL" - SSL mode
  1918  	//   "START_TLS" - START_TLS mode
  1919  	SecurityMode string `json:"securityMode,omitempty"`
  1920  	// SenderEmail: Sender email for the SMTP relay
  1921  	SenderEmail string `json:"senderEmail,omitempty"`
  1922  	// Username: SMTP relay username
  1923  	Username string `json:"username,omitempty"`
  1924  	// ForceSendFields is a list of field names (e.g. "Host") to unconditionally
  1925  	// include in API requests. By default, fields with empty or default values are
  1926  	// omitted from API requests. See
  1927  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1928  	// details.
  1929  	ForceSendFields []string `json:"-"`
  1930  	// NullFields is a list of field names (e.g. "Host") to include in API requests
  1931  	// with the JSON null value. By default, fields with empty values are omitted
  1932  	// from API requests. See
  1933  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1934  	NullFields []string `json:"-"`
  1935  }
  1936  
  1937  func (s *GoogleCloudIdentitytoolkitAdminV2Smtp) MarshalJSON() ([]byte, error) {
  1938  	type NoMethod GoogleCloudIdentitytoolkitAdminV2Smtp
  1939  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1940  }
  1941  
  1942  // GoogleCloudIdentitytoolkitAdminV2SpCertificate: The SP's certificate data
  1943  // for IDP to verify the SAMLRequest generated by the SP.
  1944  type GoogleCloudIdentitytoolkitAdminV2SpCertificate struct {
  1945  	// ExpiresAt: Timestamp of the cert expiration instance.
  1946  	ExpiresAt string `json:"expiresAt,omitempty"`
  1947  	// X509Certificate: Self-signed public certificate.
  1948  	X509Certificate string `json:"x509Certificate,omitempty"`
  1949  	// ForceSendFields is a list of field names (e.g. "ExpiresAt") to
  1950  	// unconditionally include in API requests. By default, fields with empty or
  1951  	// default values are omitted from API requests. See
  1952  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1953  	// details.
  1954  	ForceSendFields []string `json:"-"`
  1955  	// NullFields is a list of field names (e.g. "ExpiresAt") to include in API
  1956  	// requests with the JSON null value. By default, fields with empty values are
  1957  	// omitted from API requests. See
  1958  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1959  	NullFields []string `json:"-"`
  1960  }
  1961  
  1962  func (s *GoogleCloudIdentitytoolkitAdminV2SpCertificate) MarshalJSON() ([]byte, error) {
  1963  	type NoMethod GoogleCloudIdentitytoolkitAdminV2SpCertificate
  1964  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1965  }
  1966  
  1967  // GoogleCloudIdentitytoolkitAdminV2SpConfig: The SAML SP (Service Provider)
  1968  // configuration when the project acts as the relying party to receive and
  1969  // accept an authentication assertion issued by a SAML identity provider.
  1970  type GoogleCloudIdentitytoolkitAdminV2SpConfig struct {
  1971  	// CallbackUri: Callback URI where responses from IDP are handled.
  1972  	CallbackUri string `json:"callbackUri,omitempty"`
  1973  	// SpCertificates: Output only. Public certificates generated by the server to
  1974  	// verify the signature in SAMLRequest in the SP-initiated flow.
  1975  	SpCertificates []*GoogleCloudIdentitytoolkitAdminV2SpCertificate `json:"spCertificates,omitempty"`
  1976  	// SpEntityId: Unique identifier for all SAML entities.
  1977  	SpEntityId string `json:"spEntityId,omitempty"`
  1978  	// ForceSendFields is a list of field names (e.g. "CallbackUri") to
  1979  	// unconditionally include in API requests. By default, fields with empty or
  1980  	// default values are omitted from API requests. See
  1981  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1982  	// details.
  1983  	ForceSendFields []string `json:"-"`
  1984  	// NullFields is a list of field names (e.g. "CallbackUri") to include in API
  1985  	// requests with the JSON null value. By default, fields with empty values are
  1986  	// omitted from API requests. See
  1987  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1988  	NullFields []string `json:"-"`
  1989  }
  1990  
  1991  func (s *GoogleCloudIdentitytoolkitAdminV2SpConfig) MarshalJSON() ([]byte, error) {
  1992  	type NoMethod GoogleCloudIdentitytoolkitAdminV2SpConfig
  1993  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1994  }
  1995  
  1996  // GoogleCloudIdentitytoolkitAdminV2TemporaryQuota: Temporary quota increase /
  1997  // decrease
  1998  type GoogleCloudIdentitytoolkitAdminV2TemporaryQuota struct {
  1999  	// Quota: Corresponds to the 'refill_token_count' field in QuotaServer config
  2000  	Quota int64 `json:"quota,omitempty,string"`
  2001  	// QuotaDuration: How long this quota will be active for
  2002  	QuotaDuration string `json:"quotaDuration,omitempty"`
  2003  	// StartTime: When this quota will take effect
  2004  	StartTime string `json:"startTime,omitempty"`
  2005  	// ForceSendFields is a list of field names (e.g. "Quota") to unconditionally
  2006  	// include in API requests. By default, fields with empty or default values are
  2007  	// omitted from API requests. See
  2008  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2009  	// details.
  2010  	ForceSendFields []string `json:"-"`
  2011  	// NullFields is a list of field names (e.g. "Quota") to include in API
  2012  	// requests with the JSON null value. By default, fields with empty values are
  2013  	// omitted from API requests. See
  2014  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2015  	NullFields []string `json:"-"`
  2016  }
  2017  
  2018  func (s *GoogleCloudIdentitytoolkitAdminV2TemporaryQuota) MarshalJSON() ([]byte, error) {
  2019  	type NoMethod GoogleCloudIdentitytoolkitAdminV2TemporaryQuota
  2020  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2021  }
  2022  
  2023  // GoogleCloudIdentitytoolkitAdminV2Tenant: A Tenant contains configuration for
  2024  // the tenant in a multi-tenant project.
  2025  type GoogleCloudIdentitytoolkitAdminV2Tenant struct {
  2026  	// AllowPasswordSignup: Whether to allow email/password user authentication.
  2027  	AllowPasswordSignup bool `json:"allowPasswordSignup,omitempty"`
  2028  	// AutodeleteAnonymousUsers: Whether anonymous users will be auto-deleted after
  2029  	// a period of 30 days.
  2030  	AutodeleteAnonymousUsers bool `json:"autodeleteAnonymousUsers,omitempty"`
  2031  	// Client: Options related to how clients making requests on behalf of a
  2032  	// project should be configured.
  2033  	Client *GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig `json:"client,omitempty"`
  2034  	// DisableAuth: Whether authentication is disabled for the tenant. If true, the
  2035  	// users under the disabled tenant are not allowed to sign-in. Admins of the
  2036  	// disabled tenant are not able to manage its users.
  2037  	DisableAuth bool `json:"disableAuth,omitempty"`
  2038  	// DisplayName: Display name of the tenant.
  2039  	DisplayName string `json:"displayName,omitempty"`
  2040  	// EmailPrivacyConfig: Configuration for settings related to email privacy and
  2041  	// public visibility.
  2042  	EmailPrivacyConfig *GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig `json:"emailPrivacyConfig,omitempty"`
  2043  	// EnableAnonymousUser: Whether to enable anonymous user authentication.
  2044  	EnableAnonymousUser bool `json:"enableAnonymousUser,omitempty"`
  2045  	// EnableEmailLinkSignin: Whether to enable email link user authentication.
  2046  	EnableEmailLinkSignin bool `json:"enableEmailLinkSignin,omitempty"`
  2047  	// HashConfig: Output only. Hash config information of a tenant for display on
  2048  	// Pantheon. This can only be displayed on Pantheon to avoid the sensitive
  2049  	// information to get accidentally leaked. Only returned in GetTenant response
  2050  	// to restrict reading of this information. Requires
  2051  	// firebaseauth.configs.getHashConfig permission on the agent project for
  2052  	// returning this field.
  2053  	HashConfig *GoogleCloudIdentitytoolkitAdminV2HashConfig `json:"hashConfig,omitempty"`
  2054  	// Inheritance: Specify the settings that the tenant could inherit.
  2055  	Inheritance *GoogleCloudIdentitytoolkitAdminV2Inheritance `json:"inheritance,omitempty"`
  2056  	// MfaConfig: The tenant-level configuration of MFA options.
  2057  	MfaConfig *GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig `json:"mfaConfig,omitempty"`
  2058  	// Monitoring: Configuration related to monitoring project activity.
  2059  	Monitoring *GoogleCloudIdentitytoolkitAdminV2MonitoringConfig `json:"monitoring,omitempty"`
  2060  	// Name: Output only. Resource name of a tenant. For example:
  2061  	// "projects/{project-id}/tenants/{tenant-id}"
  2062  	Name string `json:"name,omitempty"`
  2063  	// PasswordPolicyConfig: The tenant-level password policy config
  2064  	PasswordPolicyConfig *GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig `json:"passwordPolicyConfig,omitempty"`
  2065  	// RecaptchaConfig: The tenant-level reCAPTCHA config.
  2066  	RecaptchaConfig *GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig `json:"recaptchaConfig,omitempty"`
  2067  	// SmsRegionConfig: Configures which regions are enabled for SMS verification
  2068  	// code sending.
  2069  	SmsRegionConfig *GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig `json:"smsRegionConfig,omitempty"`
  2070  	// TestPhoneNumbers: A map of pairs that can be used for MFA. The phone number
  2071  	// should be in E.164 format (https://www.itu.int/rec/T-REC-E.164/) and a
  2072  	// maximum of 10 pairs can be added (error will be thrown once exceeded).
  2073  	TestPhoneNumbers map[string]string `json:"testPhoneNumbers,omitempty"`
  2074  
  2075  	// ServerResponse contains the HTTP response code and headers from the server.
  2076  	googleapi.ServerResponse `json:"-"`
  2077  	// ForceSendFields is a list of field names (e.g. "AllowPasswordSignup") to
  2078  	// unconditionally include in API requests. By default, fields with empty or
  2079  	// default values are omitted from API requests. See
  2080  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2081  	// details.
  2082  	ForceSendFields []string `json:"-"`
  2083  	// NullFields is a list of field names (e.g. "AllowPasswordSignup") to include
  2084  	// in API requests with the JSON null value. By default, fields with empty
  2085  	// values are omitted from API requests. See
  2086  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2087  	NullFields []string `json:"-"`
  2088  }
  2089  
  2090  func (s *GoogleCloudIdentitytoolkitAdminV2Tenant) MarshalJSON() ([]byte, error) {
  2091  	type NoMethod GoogleCloudIdentitytoolkitAdminV2Tenant
  2092  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2093  }
  2094  
  2095  // GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig:
  2096  // TotpMFAProviderConfig represents the TOTP based MFA provider.
  2097  type GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig struct {
  2098  	// AdjacentIntervals: The allowed number of adjacent intervals that will be
  2099  	// used for verification to avoid clock skew.
  2100  	AdjacentIntervals int64 `json:"adjacentIntervals,omitempty"`
  2101  	// ForceSendFields is a list of field names (e.g. "AdjacentIntervals") to
  2102  	// unconditionally include in API requests. By default, fields with empty or
  2103  	// default values are omitted from API requests. See
  2104  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2105  	// details.
  2106  	ForceSendFields []string `json:"-"`
  2107  	// NullFields is a list of field names (e.g. "AdjacentIntervals") to include in
  2108  	// API requests with the JSON null value. By default, fields with empty values
  2109  	// are omitted from API requests. See
  2110  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2111  	NullFields []string `json:"-"`
  2112  }
  2113  
  2114  func (s *GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig) MarshalJSON() ([]byte, error) {
  2115  	type NoMethod GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig
  2116  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2117  }
  2118  
  2119  // GoogleCloudIdentitytoolkitAdminV2Trigger: Synchronous Cloud Function with
  2120  // HTTP Trigger
  2121  type GoogleCloudIdentitytoolkitAdminV2Trigger struct {
  2122  	// FunctionUri: HTTP URI trigger for the Cloud Function.
  2123  	FunctionUri string `json:"functionUri,omitempty"`
  2124  	// UpdateTime: When the trigger was changed.
  2125  	UpdateTime string `json:"updateTime,omitempty"`
  2126  	// ForceSendFields is a list of field names (e.g. "FunctionUri") to
  2127  	// unconditionally include in API requests. By default, fields with empty or
  2128  	// default values are omitted from API requests. See
  2129  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2130  	// details.
  2131  	ForceSendFields []string `json:"-"`
  2132  	// NullFields is a list of field names (e.g. "FunctionUri") to include in API
  2133  	// requests with the JSON null value. By default, fields with empty values are
  2134  	// omitted from API requests. See
  2135  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2136  	NullFields []string `json:"-"`
  2137  }
  2138  
  2139  func (s *GoogleCloudIdentitytoolkitAdminV2Trigger) MarshalJSON() ([]byte, error) {
  2140  	type NoMethod GoogleCloudIdentitytoolkitAdminV2Trigger
  2141  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2142  }
  2143  
  2144  // GoogleCloudIdentitytoolkitV2AutoRetrievalInfo: The information required to
  2145  // auto-retrieve an SMS.
  2146  type GoogleCloudIdentitytoolkitV2AutoRetrievalInfo struct {
  2147  	// AppSignatureHash: The Android app's signature hash for Google Play Service's
  2148  	// SMS Retriever API.
  2149  	AppSignatureHash string `json:"appSignatureHash,omitempty"`
  2150  	// ForceSendFields is a list of field names (e.g. "AppSignatureHash") to
  2151  	// unconditionally include in API requests. By default, fields with empty or
  2152  	// default values are omitted from API requests. See
  2153  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2154  	// details.
  2155  	ForceSendFields []string `json:"-"`
  2156  	// NullFields is a list of field names (e.g. "AppSignatureHash") to include in
  2157  	// API requests with the JSON null value. By default, fields with empty values
  2158  	// are omitted from API requests. See
  2159  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2160  	NullFields []string `json:"-"`
  2161  }
  2162  
  2163  func (s *GoogleCloudIdentitytoolkitV2AutoRetrievalInfo) MarshalJSON() ([]byte, error) {
  2164  	type NoMethod GoogleCloudIdentitytoolkitV2AutoRetrievalInfo
  2165  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2166  }
  2167  
  2168  // GoogleCloudIdentitytoolkitV2CustomStrengthOptions: Custom strength options
  2169  // to enforce on user passwords.
  2170  type GoogleCloudIdentitytoolkitV2CustomStrengthOptions struct {
  2171  	// ContainsLowercaseCharacter: The password must contain a lower case
  2172  	// character.
  2173  	ContainsLowercaseCharacter bool `json:"containsLowercaseCharacter,omitempty"`
  2174  	// ContainsNonAlphanumericCharacter: The password must contain a non alpha
  2175  	// numeric character.
  2176  	ContainsNonAlphanumericCharacter bool `json:"containsNonAlphanumericCharacter,omitempty"`
  2177  	// ContainsNumericCharacter: The password must contain a number.
  2178  	ContainsNumericCharacter bool `json:"containsNumericCharacter,omitempty"`
  2179  	// ContainsUppercaseCharacter: The password must contain an upper case
  2180  	// character.
  2181  	ContainsUppercaseCharacter bool `json:"containsUppercaseCharacter,omitempty"`
  2182  	// MaxPasswordLength: Maximum password length. No default max length
  2183  	MaxPasswordLength int64 `json:"maxPasswordLength,omitempty"`
  2184  	// MinPasswordLength: Minimum password length. Range from 6 to 30
  2185  	MinPasswordLength int64 `json:"minPasswordLength,omitempty"`
  2186  	// ForceSendFields is a list of field names (e.g. "ContainsLowercaseCharacter")
  2187  	// to unconditionally include in API requests. By default, fields with empty or
  2188  	// default values are omitted from API requests. See
  2189  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2190  	// details.
  2191  	ForceSendFields []string `json:"-"`
  2192  	// NullFields is a list of field names (e.g. "ContainsLowercaseCharacter") to
  2193  	// include in API requests with the JSON null value. By default, fields with
  2194  	// empty values are omitted from API requests. See
  2195  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2196  	NullFields []string `json:"-"`
  2197  }
  2198  
  2199  func (s *GoogleCloudIdentitytoolkitV2CustomStrengthOptions) MarshalJSON() ([]byte, error) {
  2200  	type NoMethod GoogleCloudIdentitytoolkitV2CustomStrengthOptions
  2201  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2202  }
  2203  
  2204  // GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest: Finishes enrolling
  2205  // a second factor for the user.
  2206  type GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest struct {
  2207  	// DisplayName: Display name which is entered by users to distinguish between
  2208  	// different second factors with same type or different type.
  2209  	DisplayName string `json:"displayName,omitempty"`
  2210  	// IdToken: Required. ID token.
  2211  	IdToken string `json:"idToken,omitempty"`
  2212  	// PhoneVerificationInfo: Verification info to authorize sending an SMS for
  2213  	// phone verification.
  2214  	PhoneVerificationInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo `json:"phoneVerificationInfo,omitempty"`
  2215  	// TenantId: The ID of the Identity Platform tenant that the user enrolling MFA
  2216  	// belongs to. If not set, the user belongs to the default Identity Platform
  2217  	// project.
  2218  	TenantId string `json:"tenantId,omitempty"`
  2219  	// TotpVerificationInfo: Verification information for TOTP.
  2220  	TotpVerificationInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo `json:"totpVerificationInfo,omitempty"`
  2221  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  2222  	// unconditionally include in API requests. By default, fields with empty or
  2223  	// default values are omitted from API requests. See
  2224  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2225  	// details.
  2226  	ForceSendFields []string `json:"-"`
  2227  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  2228  	// requests with the JSON null value. By default, fields with empty values are
  2229  	// omitted from API requests. See
  2230  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2231  	NullFields []string `json:"-"`
  2232  }
  2233  
  2234  func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest) MarshalJSON() ([]byte, error) {
  2235  	type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest
  2236  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2237  }
  2238  
  2239  // GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse:
  2240  // FinalizeMfaEnrollment response.
  2241  type GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse struct {
  2242  	// IdToken: ID token updated to reflect MFA enrollment.
  2243  	IdToken string `json:"idToken,omitempty"`
  2244  	// PhoneAuthInfo: Auxiliary auth info specific to phone auth.
  2245  	PhoneAuthInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo `json:"phoneAuthInfo,omitempty"`
  2246  	// RefreshToken: Refresh token updated to reflect MFA enrollment.
  2247  	RefreshToken string `json:"refreshToken,omitempty"`
  2248  	// TotpAuthInfo: Auxiliary auth info specific to TOTP auth.
  2249  	TotpAuthInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo `json:"totpAuthInfo,omitempty"`
  2250  
  2251  	// ServerResponse contains the HTTP response code and headers from the server.
  2252  	googleapi.ServerResponse `json:"-"`
  2253  	// ForceSendFields is a list of field names (e.g. "IdToken") to unconditionally
  2254  	// include in API requests. By default, fields with empty or default values are
  2255  	// omitted from API requests. See
  2256  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2257  	// details.
  2258  	ForceSendFields []string `json:"-"`
  2259  	// NullFields is a list of field names (e.g. "IdToken") to include in API
  2260  	// requests with the JSON null value. By default, fields with empty values are
  2261  	// omitted from API requests. See
  2262  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2263  	NullFields []string `json:"-"`
  2264  }
  2265  
  2266  func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse) MarshalJSON() ([]byte, error) {
  2267  	type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse
  2268  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2269  }
  2270  
  2271  // GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo: Phone Verification
  2272  // info for a FinalizeMfa request.
  2273  type GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo struct {
  2274  	// AndroidVerificationProof: Android only. Uses for "instant" phone number
  2275  	// verification though GmsCore.
  2276  	AndroidVerificationProof string `json:"androidVerificationProof,omitempty"`
  2277  	// Code: User-entered verification code.
  2278  	Code string `json:"code,omitempty"`
  2279  	// PhoneNumber: Required if Android verification proof is presented.
  2280  	PhoneNumber string `json:"phoneNumber,omitempty"`
  2281  	// SessionInfo: An opaque string that represents the enrollment session.
  2282  	SessionInfo string `json:"sessionInfo,omitempty"`
  2283  	// ForceSendFields is a list of field names (e.g. "AndroidVerificationProof")
  2284  	// to unconditionally include in API requests. By default, fields with empty or
  2285  	// default values are omitted from API requests. See
  2286  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2287  	// details.
  2288  	ForceSendFields []string `json:"-"`
  2289  	// NullFields is a list of field names (e.g. "AndroidVerificationProof") to
  2290  	// include in API requests with the JSON null value. By default, fields with
  2291  	// empty values are omitted from API requests. See
  2292  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2293  	NullFields []string `json:"-"`
  2294  }
  2295  
  2296  func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo) MarshalJSON() ([]byte, error) {
  2297  	type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo
  2298  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2299  }
  2300  
  2301  // GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo: Phone Verification
  2302  // info for a FinalizeMfa response.
  2303  type GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo struct {
  2304  	// AndroidVerificationProof: Android only. Long-lived replacement for valid
  2305  	// code tied to android device.
  2306  	AndroidVerificationProof string `json:"androidVerificationProof,omitempty"`
  2307  	// AndroidVerificationProofExpireTime: Android only. Expiration time of
  2308  	// verification proof in seconds.
  2309  	AndroidVerificationProofExpireTime string `json:"androidVerificationProofExpireTime,omitempty"`
  2310  	// PhoneNumber: For Android verification proof.
  2311  	PhoneNumber string `json:"phoneNumber,omitempty"`
  2312  	// ForceSendFields is a list of field names (e.g. "AndroidVerificationProof")
  2313  	// to unconditionally include in API requests. By default, fields with empty or
  2314  	// default values are omitted from API requests. See
  2315  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2316  	// details.
  2317  	ForceSendFields []string `json:"-"`
  2318  	// NullFields is a list of field names (e.g. "AndroidVerificationProof") to
  2319  	// include in API requests with the JSON null value. By default, fields with
  2320  	// empty values are omitted from API requests. See
  2321  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2322  	NullFields []string `json:"-"`
  2323  }
  2324  
  2325  func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo) MarshalJSON() ([]byte, error) {
  2326  	type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo
  2327  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2328  }
  2329  
  2330  // GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest: Finalizes sign-in by
  2331  // verifying MFA challenge.
  2332  type GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest struct {
  2333  	// MfaEnrollmentId: The MFA enrollment ID from the user's list of current MFA
  2334  	// enrollments.
  2335  	MfaEnrollmentId string `json:"mfaEnrollmentId,omitempty"`
  2336  	// MfaPendingCredential: Required. Pending credential from first factor
  2337  	// sign-in.
  2338  	MfaPendingCredential string `json:"mfaPendingCredential,omitempty"`
  2339  	// PhoneVerificationInfo: Proof of completion of the SMS based MFA challenge.
  2340  	PhoneVerificationInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo `json:"phoneVerificationInfo,omitempty"`
  2341  	// TenantId: The ID of the Identity Platform tenant the user is signing in to.
  2342  	// If not set, the user will sign in to the default Identity Platform project.
  2343  	TenantId string `json:"tenantId,omitempty"`
  2344  	// TotpVerificationInfo: Proof of completion of the TOTP based MFA challenge.
  2345  	TotpVerificationInfo *GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo `json:"totpVerificationInfo,omitempty"`
  2346  	// ForceSendFields is a list of field names (e.g. "MfaEnrollmentId") to
  2347  	// unconditionally include in API requests. By default, fields with empty or
  2348  	// default values are omitted from API requests. See
  2349  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2350  	// details.
  2351  	ForceSendFields []string `json:"-"`
  2352  	// NullFields is a list of field names (e.g. "MfaEnrollmentId") to include in
  2353  	// API requests with the JSON null value. By default, fields with empty values
  2354  	// are omitted from API requests. See
  2355  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2356  	NullFields []string `json:"-"`
  2357  }
  2358  
  2359  func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest) MarshalJSON() ([]byte, error) {
  2360  	type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest
  2361  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2362  }
  2363  
  2364  // GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse: FinalizeMfaSignIn
  2365  // response.
  2366  type GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse struct {
  2367  	// IdToken: ID token for the authenticated user.
  2368  	IdToken string `json:"idToken,omitempty"`
  2369  	// PhoneAuthInfo: Extra phone auth info, including android verification proof.
  2370  	PhoneAuthInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo `json:"phoneAuthInfo,omitempty"`
  2371  	// RefreshToken: Refresh token for the authenticated user.
  2372  	RefreshToken string `json:"refreshToken,omitempty"`
  2373  
  2374  	// ServerResponse contains the HTTP response code and headers from the server.
  2375  	googleapi.ServerResponse `json:"-"`
  2376  	// ForceSendFields is a list of field names (e.g. "IdToken") to unconditionally
  2377  	// include in API requests. By default, fields with empty or default values are
  2378  	// omitted from API requests. See
  2379  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2380  	// details.
  2381  	ForceSendFields []string `json:"-"`
  2382  	// NullFields is a list of field names (e.g. "IdToken") to include in API
  2383  	// requests with the JSON null value. By default, fields with empty values are
  2384  	// omitted from API requests. See
  2385  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2386  	NullFields []string `json:"-"`
  2387  }
  2388  
  2389  func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse) MarshalJSON() ([]byte, error) {
  2390  	type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse
  2391  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2392  }
  2393  
  2394  // GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo: Mfa
  2395  // request info specific to TOTP auth for FinalizeMfa.
  2396  type GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo struct {
  2397  	// SessionInfo: An opaque string that represents the enrollment session.
  2398  	SessionInfo string `json:"sessionInfo,omitempty"`
  2399  	// VerificationCode: User-entered verification code.
  2400  	VerificationCode string `json:"verificationCode,omitempty"`
  2401  	// ForceSendFields is a list of field names (e.g. "SessionInfo") to
  2402  	// unconditionally include in API requests. By default, fields with empty or
  2403  	// default values are omitted from API requests. See
  2404  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2405  	// details.
  2406  	ForceSendFields []string `json:"-"`
  2407  	// NullFields is a list of field names (e.g. "SessionInfo") to include in API
  2408  	// requests with the JSON null value. By default, fields with empty values are
  2409  	// omitted from API requests. See
  2410  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2411  	NullFields []string `json:"-"`
  2412  }
  2413  
  2414  func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo) MarshalJSON() ([]byte, error) {
  2415  	type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo
  2416  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2417  }
  2418  
  2419  // GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo: Mfa
  2420  // response info specific to TOTP auth for FinalizeMfa.
  2421  type GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo struct {
  2422  }
  2423  
  2424  // GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo: TOTP verification info
  2425  // for FinalizeMfaSignInRequest.
  2426  type GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo struct {
  2427  	// VerificationCode: User-entered verification code.
  2428  	VerificationCode string `json:"verificationCode,omitempty"`
  2429  	// ForceSendFields is a list of field names (e.g. "VerificationCode") to
  2430  	// unconditionally include in API requests. By default, fields with empty or
  2431  	// default values are omitted from API requests. See
  2432  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2433  	// details.
  2434  	ForceSendFields []string `json:"-"`
  2435  	// NullFields is a list of field names (e.g. "VerificationCode") to include in
  2436  	// API requests with the JSON null value. By default, fields with empty values
  2437  	// are omitted from API requests. See
  2438  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2439  	NullFields []string `json:"-"`
  2440  }
  2441  
  2442  func (s *GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo) MarshalJSON() ([]byte, error) {
  2443  	type NoMethod GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo
  2444  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2445  }
  2446  
  2447  // GoogleCloudIdentitytoolkitV2PasswordPolicy: Configuration for password
  2448  // policy.
  2449  type GoogleCloudIdentitytoolkitV2PasswordPolicy struct {
  2450  	// AllowedNonAlphanumericCharacters: Output only. Allowed characters which
  2451  	// satisfy the non_alphanumeric requirement.
  2452  	AllowedNonAlphanumericCharacters []string `json:"allowedNonAlphanumericCharacters,omitempty"`
  2453  	// CustomStrengthOptions: The custom strength options enforced by the password
  2454  	// policy.
  2455  	CustomStrengthOptions *GoogleCloudIdentitytoolkitV2CustomStrengthOptions `json:"customStrengthOptions,omitempty"`
  2456  	// EnforcementState: Output only. Which enforcement mode to use for the
  2457  	// password policy.
  2458  	//
  2459  	// Possible values:
  2460  	//   "ENFORCEMENT_STATE_UNSPECIFIED" - Enforcement state has not been set.
  2461  	//   "OFF" - Password Policy will not be used on the project.
  2462  	//   "ENFORCE" - Passwords non-compliant with the password policy will be
  2463  	// rejected with an error thrown.
  2464  	EnforcementState string `json:"enforcementState,omitempty"`
  2465  	// ForceUpgradeOnSignin: Users must have a password compliant with the password
  2466  	// policy to sign-in.
  2467  	ForceUpgradeOnSignin bool `json:"forceUpgradeOnSignin,omitempty"`
  2468  	// SchemaVersion: Output only. schema version number for the password policy
  2469  	SchemaVersion int64 `json:"schemaVersion,omitempty"`
  2470  
  2471  	// ServerResponse contains the HTTP response code and headers from the server.
  2472  	googleapi.ServerResponse `json:"-"`
  2473  	// ForceSendFields is a list of field names (e.g.
  2474  	// "AllowedNonAlphanumericCharacters") to unconditionally include in API
  2475  	// requests. By default, fields with empty or default values are omitted from
  2476  	// API requests. See
  2477  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2478  	// details.
  2479  	ForceSendFields []string `json:"-"`
  2480  	// NullFields is a list of field names (e.g.
  2481  	// "AllowedNonAlphanumericCharacters") to include in API requests with the JSON
  2482  	// null value. By default, fields with empty values are omitted from API
  2483  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
  2484  	// more details.
  2485  	NullFields []string `json:"-"`
  2486  }
  2487  
  2488  func (s *GoogleCloudIdentitytoolkitV2PasswordPolicy) MarshalJSON() ([]byte, error) {
  2489  	type NoMethod GoogleCloudIdentitytoolkitV2PasswordPolicy
  2490  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2491  }
  2492  
  2493  // GoogleCloudIdentitytoolkitV2RecaptchaConfig: Configuration for reCAPTCHA
  2494  type GoogleCloudIdentitytoolkitV2RecaptchaConfig struct {
  2495  	// RecaptchaEnforcementState: The reCAPTCHA enforcement state for the providers
  2496  	// that GCIP supports reCAPTCHA protection.
  2497  	RecaptchaEnforcementState []*GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState `json:"recaptchaEnforcementState,omitempty"`
  2498  	// RecaptchaKey: The reCAPTCHA Enterprise key resource name, e.g.
  2499  	// "projects/{project}/keys/{key}". This will only be returned when the
  2500  	// reCAPTCHA enforcement state is AUDIT or ENFORCE on at least one of the
  2501  	// reCAPTCHA providers.
  2502  	RecaptchaKey string `json:"recaptchaKey,omitempty"`
  2503  
  2504  	// ServerResponse contains the HTTP response code and headers from the server.
  2505  	googleapi.ServerResponse `json:"-"`
  2506  	// ForceSendFields is a list of field names (e.g. "RecaptchaEnforcementState")
  2507  	// to unconditionally include in API requests. By default, fields with empty or
  2508  	// default values are omitted from API requests. See
  2509  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2510  	// details.
  2511  	ForceSendFields []string `json:"-"`
  2512  	// NullFields is a list of field names (e.g. "RecaptchaEnforcementState") to
  2513  	// include in API requests with the JSON null value. By default, fields with
  2514  	// empty values are omitted from API requests. See
  2515  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2516  	NullFields []string `json:"-"`
  2517  }
  2518  
  2519  func (s *GoogleCloudIdentitytoolkitV2RecaptchaConfig) MarshalJSON() ([]byte, error) {
  2520  	type NoMethod GoogleCloudIdentitytoolkitV2RecaptchaConfig
  2521  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2522  }
  2523  
  2524  // GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState: Enforcement states
  2525  // for reCAPTCHA protection.
  2526  type GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState struct {
  2527  	// EnforcementState: The reCAPTCHA enforcement state for the provider.
  2528  	//
  2529  	// Possible values:
  2530  	//   "ENFORCEMENT_STATE_UNSPECIFIED" - Enforcement state has not been set.
  2531  	//   "OFF" - Unenforced.
  2532  	//   "AUDIT" - reCAPTCHA assessment is created, result is not used to enforce.
  2533  	//   "ENFORCE" - reCAPTCHA assessment is created, result is used to enforce.
  2534  	EnforcementState string `json:"enforcementState,omitempty"`
  2535  	// Provider: The provider that has reCAPTCHA protection.
  2536  	//
  2537  	// Possible values:
  2538  	//   "RECAPTCHA_PROVIDER_UNSPECIFIED" - reCAPTCHA provider not specified
  2539  	//   "EMAIL_PASSWORD_PROVIDER" - Email password provider
  2540  	Provider string `json:"provider,omitempty"`
  2541  	// ForceSendFields is a list of field names (e.g. "EnforcementState") to
  2542  	// unconditionally include in API requests. By default, fields with empty or
  2543  	// default values are omitted from API requests. See
  2544  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2545  	// details.
  2546  	ForceSendFields []string `json:"-"`
  2547  	// NullFields is a list of field names (e.g. "EnforcementState") to include in
  2548  	// API requests with the JSON null value. By default, fields with empty values
  2549  	// are omitted from API requests. See
  2550  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2551  	NullFields []string `json:"-"`
  2552  }
  2553  
  2554  func (s *GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState) MarshalJSON() ([]byte, error) {
  2555  	type NoMethod GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState
  2556  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2557  }
  2558  
  2559  // GoogleCloudIdentitytoolkitV2RevokeTokenRequest: Request message for
  2560  // RevokeToken.
  2561  type GoogleCloudIdentitytoolkitV2RevokeTokenRequest struct {
  2562  	// IdToken: Required. A valid Identity Platform ID token to link the account.
  2563  	// If there was a successful token revocation request on the account and no
  2564  	// tokens are generated after the revocation, the duplicate requests will be
  2565  	// ignored and returned immediately.
  2566  	IdToken string `json:"idToken,omitempty"`
  2567  	// ProviderId: Required. The idp provider for the token. Currently only
  2568  	// supports Apple Idp. The format should be "apple.com".
  2569  	ProviderId string `json:"providerId,omitempty"`
  2570  	// RedirectUri: The redirect URI provided in the initial authorization request
  2571  	// made by the client to the IDP. The URI must use the HTTPS protocol, include
  2572  	// a domain name, and can't contain an IP address or localhost. Required if
  2573  	// token_type is CODE.
  2574  	RedirectUri string `json:"redirectUri,omitempty"`
  2575  	// TenantId: The ID of the Identity Platform tenant the user is signing in to.
  2576  	// If not set, the user will sign in to the default Identity Platform project.
  2577  	TenantId string `json:"tenantId,omitempty"`
  2578  	// Token: Required. The token to be revoked. If an authorization_code is passed
  2579  	// in, the API will first exchange the code for access token and then revoke
  2580  	// the token exchanged.
  2581  	Token string `json:"token,omitempty"`
  2582  	// TokenType: Required. The type of the token to be revoked.
  2583  	//
  2584  	// Possible values:
  2585  	//   "TOKEN_TYPE_UNSPECIFIED" - Default value, do not use.
  2586  	//   "REFRESH_TOKEN" - Token type is refresh_token.
  2587  	//   "ACCESS_TOKEN" - Token type is access_token.
  2588  	//   "CODE" - Token type is authorization_code.
  2589  	TokenType string `json:"tokenType,omitempty"`
  2590  	// ForceSendFields is a list of field names (e.g. "IdToken") to unconditionally
  2591  	// include in API requests. By default, fields with empty or default values are
  2592  	// omitted from API requests. See
  2593  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2594  	// details.
  2595  	ForceSendFields []string `json:"-"`
  2596  	// NullFields is a list of field names (e.g. "IdToken") to include in API
  2597  	// requests with the JSON null value. By default, fields with empty values are
  2598  	// omitted from API requests. See
  2599  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2600  	NullFields []string `json:"-"`
  2601  }
  2602  
  2603  func (s *GoogleCloudIdentitytoolkitV2RevokeTokenRequest) MarshalJSON() ([]byte, error) {
  2604  	type NoMethod GoogleCloudIdentitytoolkitV2RevokeTokenRequest
  2605  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2606  }
  2607  
  2608  // GoogleCloudIdentitytoolkitV2RevokeTokenResponse: Response message for
  2609  // RevokeToken. Empty for now.
  2610  type GoogleCloudIdentitytoolkitV2RevokeTokenResponse struct {
  2611  	// ServerResponse contains the HTTP response code and headers from the server.
  2612  	googleapi.ServerResponse `json:"-"`
  2613  }
  2614  
  2615  // GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest: Sends MFA enrollment
  2616  // verification SMS for a user.
  2617  type GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest struct {
  2618  	// IdToken: Required. User's ID token.
  2619  	IdToken string `json:"idToken,omitempty"`
  2620  	// PhoneEnrollmentInfo: Verification info to authorize sending an SMS for phone
  2621  	// verification.
  2622  	PhoneEnrollmentInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo `json:"phoneEnrollmentInfo,omitempty"`
  2623  	// TenantId: The ID of the Identity Platform tenant that the user enrolling MFA
  2624  	// belongs to. If not set, the user belongs to the default Identity Platform
  2625  	// project.
  2626  	TenantId string `json:"tenantId,omitempty"`
  2627  	// TotpEnrollmentInfo: Sign-in info specific to TOTP auth.
  2628  	TotpEnrollmentInfo *GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo `json:"totpEnrollmentInfo,omitempty"`
  2629  	// ForceSendFields is a list of field names (e.g. "IdToken") to unconditionally
  2630  	// include in API requests. By default, fields with empty or default values are
  2631  	// omitted from API requests. See
  2632  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2633  	// details.
  2634  	ForceSendFields []string `json:"-"`
  2635  	// NullFields is a list of field names (e.g. "IdToken") to include in API
  2636  	// requests with the JSON null value. By default, fields with empty values are
  2637  	// omitted from API requests. See
  2638  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2639  	NullFields []string `json:"-"`
  2640  }
  2641  
  2642  func (s *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest) MarshalJSON() ([]byte, error) {
  2643  	type NoMethod GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
  2644  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2645  }
  2646  
  2647  // GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse: StartMfaEnrollment
  2648  // response.
  2649  type GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse struct {
  2650  	// PhoneSessionInfo: Verification info to authorize sending an SMS for phone
  2651  	// verification.
  2652  	PhoneSessionInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo `json:"phoneSessionInfo,omitempty"`
  2653  	// TotpSessionInfo: Enrollment response info specific to TOTP auth.
  2654  	TotpSessionInfo *GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo `json:"totpSessionInfo,omitempty"`
  2655  
  2656  	// ServerResponse contains the HTTP response code and headers from the server.
  2657  	googleapi.ServerResponse `json:"-"`
  2658  	// ForceSendFields is a list of field names (e.g. "PhoneSessionInfo") to
  2659  	// unconditionally include in API requests. By default, fields with empty or
  2660  	// default values are omitted from API requests. See
  2661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2662  	// details.
  2663  	ForceSendFields []string `json:"-"`
  2664  	// NullFields is a list of field names (e.g. "PhoneSessionInfo") to include in
  2665  	// API requests with the JSON null value. By default, fields with empty values
  2666  	// are omitted from API requests. See
  2667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2668  	NullFields []string `json:"-"`
  2669  }
  2670  
  2671  func (s *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse) MarshalJSON() ([]byte, error) {
  2672  	type NoMethod GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse
  2673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2674  }
  2675  
  2676  // GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo: App Verification info
  2677  // for a StartMfa request.
  2678  type GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo struct {
  2679  	// AutoRetrievalInfo: Android only. Used by Google Play Services to identify
  2680  	// the app for auto-retrieval.
  2681  	AutoRetrievalInfo *GoogleCloudIdentitytoolkitV2AutoRetrievalInfo `json:"autoRetrievalInfo,omitempty"`
  2682  	// IosReceipt: iOS only. Receipt of successful app token validation with APNS.
  2683  	IosReceipt string `json:"iosReceipt,omitempty"`
  2684  	// IosSecret: iOS only. Secret delivered to iOS app via APNS.
  2685  	IosSecret string `json:"iosSecret,omitempty"`
  2686  	// PhoneNumber: Required for enrollment. Phone number to be enrolled as MFA.
  2687  	PhoneNumber string `json:"phoneNumber,omitempty"`
  2688  	// PlayIntegrityToken: Android only. Used to assert application identity in
  2689  	// place of a recaptcha token (or safety net token). A Play Integrity Token can
  2690  	// be generated via the [PlayIntegrity API]
  2691  	// (https://developer.android.com/google/play/integrity) with applying SHA256
  2692  	// to the `phone_number` field as the nonce.
  2693  	PlayIntegrityToken string `json:"playIntegrityToken,omitempty"`
  2694  	// RecaptchaToken: Web only. Recaptcha solution.
  2695  	RecaptchaToken string `json:"recaptchaToken,omitempty"`
  2696  	// SafetyNetToken: Android only. Used to assert application identity in place
  2697  	// of a recaptcha token. A SafetyNet Token can be generated via the SafetyNet
  2698  	// Android Attestation API
  2699  	// (https://developer.android.com/training/safetynet/attestation.html), with
  2700  	// the Base64 encoding of the `phone_number` field as the nonce.
  2701  	SafetyNetToken string `json:"safetyNetToken,omitempty"`
  2702  	// ForceSendFields is a list of field names (e.g. "AutoRetrievalInfo") to
  2703  	// unconditionally include in API requests. By default, fields with empty or
  2704  	// default values are omitted from API requests. See
  2705  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2706  	// details.
  2707  	ForceSendFields []string `json:"-"`
  2708  	// NullFields is a list of field names (e.g. "AutoRetrievalInfo") to include in
  2709  	// API requests with the JSON null value. By default, fields with empty values
  2710  	// are omitted from API requests. See
  2711  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2712  	NullFields []string `json:"-"`
  2713  }
  2714  
  2715  func (s *GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo) MarshalJSON() ([]byte, error) {
  2716  	type NoMethod GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo
  2717  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2718  }
  2719  
  2720  // GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo: Phone Verification
  2721  // info for a StartMfa response.
  2722  type GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo struct {
  2723  	// SessionInfo: An opaque string that represents the enrollment session.
  2724  	SessionInfo string `json:"sessionInfo,omitempty"`
  2725  	// ForceSendFields is a list of field names (e.g. "SessionInfo") to
  2726  	// unconditionally include in API requests. By default, fields with empty or
  2727  	// default values are omitted from API requests. See
  2728  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2729  	// details.
  2730  	ForceSendFields []string `json:"-"`
  2731  	// NullFields is a list of field names (e.g. "SessionInfo") to include in API
  2732  	// requests with the JSON null value. By default, fields with empty values are
  2733  	// omitted from API requests. See
  2734  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2735  	NullFields []string `json:"-"`
  2736  }
  2737  
  2738  func (s *GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo) MarshalJSON() ([]byte, error) {
  2739  	type NoMethod GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo
  2740  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2741  }
  2742  
  2743  // GoogleCloudIdentitytoolkitV2StartMfaSignInRequest: Starts multi-factor
  2744  // sign-in by sending the multi-factor auth challenge.
  2745  type GoogleCloudIdentitytoolkitV2StartMfaSignInRequest struct {
  2746  	// MfaEnrollmentId: Required. MFA enrollment id from the user's list of current
  2747  	// MFA enrollments.
  2748  	MfaEnrollmentId string `json:"mfaEnrollmentId,omitempty"`
  2749  	// MfaPendingCredential: Required. Pending credential from first factor
  2750  	// sign-in.
  2751  	MfaPendingCredential string `json:"mfaPendingCredential,omitempty"`
  2752  	// PhoneSignInInfo: Verification info to authorize sending an SMS for phone
  2753  	// verification.
  2754  	PhoneSignInInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo `json:"phoneSignInInfo,omitempty"`
  2755  	// TenantId: The ID of the Identity Platform tenant the user is signing in to.
  2756  	// If not set, the user will sign in to the default Identity Platform project.
  2757  	TenantId string `json:"tenantId,omitempty"`
  2758  	// ForceSendFields is a list of field names (e.g. "MfaEnrollmentId") to
  2759  	// unconditionally include in API requests. By default, fields with empty or
  2760  	// default values are omitted from API requests. See
  2761  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2762  	// details.
  2763  	ForceSendFields []string `json:"-"`
  2764  	// NullFields is a list of field names (e.g. "MfaEnrollmentId") to include in
  2765  	// API requests with the JSON null value. By default, fields with empty values
  2766  	// are omitted from API requests. See
  2767  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2768  	NullFields []string `json:"-"`
  2769  }
  2770  
  2771  func (s *GoogleCloudIdentitytoolkitV2StartMfaSignInRequest) MarshalJSON() ([]byte, error) {
  2772  	type NoMethod GoogleCloudIdentitytoolkitV2StartMfaSignInRequest
  2773  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2774  }
  2775  
  2776  // GoogleCloudIdentitytoolkitV2StartMfaSignInResponse: StartMfaSignIn response.
  2777  type GoogleCloudIdentitytoolkitV2StartMfaSignInResponse struct {
  2778  	// PhoneResponseInfo: MultiFactor sign-in session information specific to
  2779  	// SMS-type second factors. Along with the one-time code retrieved from the
  2780  	// sent SMS, the contents of this session information should be passed to
  2781  	// FinalizeMfaSignIn to complete the sign in.
  2782  	PhoneResponseInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo `json:"phoneResponseInfo,omitempty"`
  2783  
  2784  	// ServerResponse contains the HTTP response code and headers from the server.
  2785  	googleapi.ServerResponse `json:"-"`
  2786  	// ForceSendFields is a list of field names (e.g. "PhoneResponseInfo") to
  2787  	// unconditionally include in API requests. By default, fields with empty or
  2788  	// default values are omitted from API requests. See
  2789  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2790  	// details.
  2791  	ForceSendFields []string `json:"-"`
  2792  	// NullFields is a list of field names (e.g. "PhoneResponseInfo") to include in
  2793  	// API requests with the JSON null value. By default, fields with empty values
  2794  	// are omitted from API requests. See
  2795  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2796  	NullFields []string `json:"-"`
  2797  }
  2798  
  2799  func (s *GoogleCloudIdentitytoolkitV2StartMfaSignInResponse) MarshalJSON() ([]byte, error) {
  2800  	type NoMethod GoogleCloudIdentitytoolkitV2StartMfaSignInResponse
  2801  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2802  }
  2803  
  2804  // GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo: Mfa request
  2805  // info specific to TOTP auth for StartMfa.
  2806  type GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo struct {
  2807  }
  2808  
  2809  // GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo: Mfa response
  2810  // info specific to TOTP auth for StartMfa.
  2811  type GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo struct {
  2812  	// FinalizeEnrollmentTime: The time by which the enrollment must finish.
  2813  	FinalizeEnrollmentTime string `json:"finalizeEnrollmentTime,omitempty"`
  2814  	// HashingAlgorithm: The hashing algorithm used to generate the verification
  2815  	// code.
  2816  	HashingAlgorithm string `json:"hashingAlgorithm,omitempty"`
  2817  	// PeriodSec: Duration in seconds at which the verification code will change.
  2818  	PeriodSec int64 `json:"periodSec,omitempty"`
  2819  	// SessionInfo: An encoded string that represents the enrollment session.
  2820  	SessionInfo string `json:"sessionInfo,omitempty"`
  2821  	// SharedSecretKey: A base 32 encoded string that represents the shared TOTP
  2822  	// secret. The base 32 encoding is the one specified by RFC4648#section-6
  2823  	// (https://datatracker.ietf.org/doc/html/rfc4648#section-6). (This is the same
  2824  	// as the base 32 encoding from RFC3548#section-5
  2825  	// (https://datatracker.ietf.org/doc/html/rfc3548#section-5).)
  2826  	SharedSecretKey string `json:"sharedSecretKey,omitempty"`
  2827  	// VerificationCodeLength: The length of the verification code that needs to be
  2828  	// generated.
  2829  	VerificationCodeLength int64 `json:"verificationCodeLength,omitempty"`
  2830  	// ForceSendFields is a list of field names (e.g. "FinalizeEnrollmentTime") to
  2831  	// unconditionally include in API requests. By default, fields with empty or
  2832  	// default values are omitted from API requests. See
  2833  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2834  	// details.
  2835  	ForceSendFields []string `json:"-"`
  2836  	// NullFields is a list of field names (e.g. "FinalizeEnrollmentTime") to
  2837  	// include in API requests with the JSON null value. By default, fields with
  2838  	// empty values are omitted from API requests. See
  2839  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2840  	NullFields []string `json:"-"`
  2841  }
  2842  
  2843  func (s *GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo) MarshalJSON() ([]byte, error) {
  2844  	type NoMethod GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo
  2845  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2846  }
  2847  
  2848  // GoogleCloudIdentitytoolkitV2WithdrawMfaRequest: Withdraws MFA.
  2849  type GoogleCloudIdentitytoolkitV2WithdrawMfaRequest struct {
  2850  	// IdToken: Required. User's ID token.
  2851  	IdToken string `json:"idToken,omitempty"`
  2852  	// MfaEnrollmentId: Required. MFA enrollment id from a current MFA enrollment.
  2853  	MfaEnrollmentId string `json:"mfaEnrollmentId,omitempty"`
  2854  	// TenantId: The ID of the Identity Platform tenant that the user unenrolling
  2855  	// MFA belongs to. If not set, the user belongs to the default Identity
  2856  	// Platform project.
  2857  	TenantId string `json:"tenantId,omitempty"`
  2858  	// ForceSendFields is a list of field names (e.g. "IdToken") to unconditionally
  2859  	// include in API requests. By default, fields with empty or default values are
  2860  	// omitted from API requests. See
  2861  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2862  	// details.
  2863  	ForceSendFields []string `json:"-"`
  2864  	// NullFields is a list of field names (e.g. "IdToken") to include in API
  2865  	// requests with the JSON null value. By default, fields with empty values are
  2866  	// omitted from API requests. See
  2867  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2868  	NullFields []string `json:"-"`
  2869  }
  2870  
  2871  func (s *GoogleCloudIdentitytoolkitV2WithdrawMfaRequest) MarshalJSON() ([]byte, error) {
  2872  	type NoMethod GoogleCloudIdentitytoolkitV2WithdrawMfaRequest
  2873  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2874  }
  2875  
  2876  // GoogleCloudIdentitytoolkitV2WithdrawMfaResponse: Withdraws MultiFactorAuth
  2877  // response.
  2878  type GoogleCloudIdentitytoolkitV2WithdrawMfaResponse struct {
  2879  	// IdToken: ID token updated to reflect removal of the second factor.
  2880  	IdToken string `json:"idToken,omitempty"`
  2881  	// RefreshToken: Refresh token updated to reflect removal of the second factor.
  2882  	RefreshToken string `json:"refreshToken,omitempty"`
  2883  
  2884  	// ServerResponse contains the HTTP response code and headers from the server.
  2885  	googleapi.ServerResponse `json:"-"`
  2886  	// ForceSendFields is a list of field names (e.g. "IdToken") to unconditionally
  2887  	// include in API requests. By default, fields with empty or default values are
  2888  	// omitted from API requests. See
  2889  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2890  	// details.
  2891  	ForceSendFields []string `json:"-"`
  2892  	// NullFields is a list of field names (e.g. "IdToken") to include in API
  2893  	// requests with the JSON null value. By default, fields with empty values are
  2894  	// omitted from API requests. See
  2895  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2896  	NullFields []string `json:"-"`
  2897  }
  2898  
  2899  func (s *GoogleCloudIdentitytoolkitV2WithdrawMfaResponse) MarshalJSON() ([]byte, error) {
  2900  	type NoMethod GoogleCloudIdentitytoolkitV2WithdrawMfaResponse
  2901  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2902  }
  2903  
  2904  // GoogleIamV1AuditConfig: Specifies the audit configuration for a service. The
  2905  // configuration determines which permission types are logged, and what
  2906  // identities, if any, are exempted from logging. An AuditConfig must have one
  2907  // or more AuditLogConfigs. If there are AuditConfigs for both `allServices`
  2908  // and a specific service, the union of the two AuditConfigs is used for that
  2909  // service: the log_types specified in each AuditConfig are enabled, and the
  2910  // exempted_members in each AuditLogConfig are exempted. Example Policy with
  2911  // multiple AuditConfigs: { "audit_configs": [ { "service": "allServices",
  2912  // "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
  2913  // "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type":
  2914  // "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com",
  2915  // "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type":
  2916  // "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For
  2917  // sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
  2918  // logging. It also exempts `jose@example.com` from DATA_READ logging, and
  2919  // `aliya@example.com` from DATA_WRITE logging.
  2920  type GoogleIamV1AuditConfig struct {
  2921  	// AuditLogConfigs: The configuration for logging of each type of permission.
  2922  	AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
  2923  	// Service: Specifies a service that will be enabled for audit logging. For
  2924  	// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`
  2925  	// is a special value that covers all services.
  2926  	Service string `json:"service,omitempty"`
  2927  	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
  2928  	// unconditionally include in API requests. By default, fields with empty or
  2929  	// default values are omitted from API requests. See
  2930  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2931  	// details.
  2932  	ForceSendFields []string `json:"-"`
  2933  	// NullFields is a list of field names (e.g. "AuditLogConfigs") to include in
  2934  	// API requests with the JSON null value. By default, fields with empty values
  2935  	// are omitted from API requests. See
  2936  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2937  	NullFields []string `json:"-"`
  2938  }
  2939  
  2940  func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
  2941  	type NoMethod GoogleIamV1AuditConfig
  2942  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2943  }
  2944  
  2945  // GoogleIamV1AuditLogConfig: Provides the configuration for logging a type of
  2946  // permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ",
  2947  // "exempted_members": [ "user:jose@example.com" ] }, { "log_type":
  2948  // "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while
  2949  // exempting jose@example.com from DATA_READ logging.
  2950  type GoogleIamV1AuditLogConfig struct {
  2951  	// ExemptedMembers: Specifies the identities that do not cause logging for this
  2952  	// type of permission. Follows the same format of Binding.members.
  2953  	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
  2954  	// LogType: The log type that this config enables.
  2955  	//
  2956  	// Possible values:
  2957  	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
  2958  	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
  2959  	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
  2960  	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
  2961  	LogType string `json:"logType,omitempty"`
  2962  	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
  2963  	// unconditionally include in API requests. By default, fields with empty or
  2964  	// default values are omitted from API requests. See
  2965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2966  	// details.
  2967  	ForceSendFields []string `json:"-"`
  2968  	// NullFields is a list of field names (e.g. "ExemptedMembers") to include in
  2969  	// API requests with the JSON null value. By default, fields with empty values
  2970  	// are omitted from API requests. See
  2971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2972  	NullFields []string `json:"-"`
  2973  }
  2974  
  2975  func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
  2976  	type NoMethod GoogleIamV1AuditLogConfig
  2977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2978  }
  2979  
  2980  // GoogleIamV1Binding: Associates `members`, or principals, with a `role`.
  2981  type GoogleIamV1Binding struct {
  2982  	// Condition: The condition that is associated with this binding. If the
  2983  	// condition evaluates to `true`, then this binding applies to the current
  2984  	// request. If the condition evaluates to `false`, then this binding does not
  2985  	// apply to the current request. However, a different role binding might grant
  2986  	// the same role to one or more of the principals in this binding. To learn
  2987  	// which resources support conditions in their IAM policies, see the IAM
  2988  	// documentation
  2989  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  2990  	Condition *GoogleTypeExpr `json:"condition,omitempty"`
  2991  	// Members: Specifies the principals requesting access for a Google Cloud
  2992  	// resource. `members` can have the following values: * `allUsers`: A special
  2993  	// identifier that represents anyone who is on the internet; with or without a
  2994  	// Google account. * `allAuthenticatedUsers`: A special identifier that
  2995  	// represents anyone who is authenticated with a Google account or a service
  2996  	// account. Does not include identities that come from external identity
  2997  	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
  2998  	// address that represents a specific Google account. For example,
  2999  	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
  3000  	// represents a Google service account. For example,
  3001  	// `my-other-app@appspot.gserviceaccount.com`. *
  3002  	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
  3003  	// identifier for a Kubernetes service account
  3004  	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
  3005  	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
  3006  	// `group:{emailid}`: An email address that represents a Google group. For
  3007  	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
  3008  	// (primary) that represents all the users of that domain. For example,
  3009  	// `google.com` or `example.com`. *
  3010  	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
  3011  	// ject/{subject_attribute_value}`: A single identity in a workforce identity
  3012  	// pool. *
  3013  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
  3014  	// group/{group_id}`: All workforce identities in a group. *
  3015  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
  3016  	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
  3017  	// a specific attribute value. *
  3018  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
  3019  	// *`: All identities in a workforce identity pool. *
  3020  	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
  3021  	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
  3022  	// identity in a workload identity pool. *
  3023  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
  3024  	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
  3025  	// group. *
  3026  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
  3027  	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
  3028  	// `: All identities in a workload identity pool with a certain attribute. *
  3029  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
  3030  	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
  3031  	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
  3032  	// unique identifier) representing a user that has been recently deleted. For
  3033  	// example, `alice@example.com?uid=123456789012345678901`. If the user is
  3034  	// recovered, this value reverts to `user:{emailid}` and the recovered user
  3035  	// retains the role in the binding. *
  3036  	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
  3037  	// unique identifier) representing a service account that has been recently
  3038  	// deleted. For example,
  3039  	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
  3040  	// service account is undeleted, this value reverts to
  3041  	// `serviceAccount:{emailid}` and the undeleted service account retains the
  3042  	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
  3043  	// address (plus unique identifier) representing a Google group that has been
  3044  	// recently deleted. For example,
  3045  	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
  3046  	// this value reverts to `group:{emailid}` and the recovered group retains the
  3047  	// role in the binding. *
  3048  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
  3049  	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
  3050  	// workforce identity pool. For example,
  3051  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
  3052  	// ol-id/subject/my-subject-attribute-value`.
  3053  	Members []string `json:"members,omitempty"`
  3054  	// Role: Role that is assigned to the list of `members`, or principals. For
  3055  	// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview
  3056  	// of the IAM roles and permissions, see the IAM documentation
  3057  	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
  3058  	// available pre-defined roles, see here
  3059  	// (https://cloud.google.com/iam/docs/understanding-roles).
  3060  	Role string `json:"role,omitempty"`
  3061  	// ForceSendFields is a list of field names (e.g. "Condition") to
  3062  	// unconditionally include in API requests. By default, fields with empty or
  3063  	// default values are omitted from API requests. See
  3064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3065  	// details.
  3066  	ForceSendFields []string `json:"-"`
  3067  	// NullFields is a list of field names (e.g. "Condition") to include in API
  3068  	// requests with the JSON null value. By default, fields with empty values are
  3069  	// omitted from API requests. See
  3070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3071  	NullFields []string `json:"-"`
  3072  }
  3073  
  3074  func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
  3075  	type NoMethod GoogleIamV1Binding
  3076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3077  }
  3078  
  3079  // GoogleIamV1GetIamPolicyRequest: Request message for `GetIamPolicy` method.
  3080  type GoogleIamV1GetIamPolicyRequest struct {
  3081  	// Options: OPTIONAL: A `GetPolicyOptions` object for specifying options to
  3082  	// `GetIamPolicy`.
  3083  	Options *GoogleIamV1GetPolicyOptions `json:"options,omitempty"`
  3084  	// ForceSendFields is a list of field names (e.g. "Options") to unconditionally
  3085  	// include in API requests. By default, fields with empty or default values are
  3086  	// omitted from API requests. See
  3087  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3088  	// details.
  3089  	ForceSendFields []string `json:"-"`
  3090  	// NullFields is a list of field names (e.g. "Options") to include in API
  3091  	// requests with the JSON null value. By default, fields with empty values are
  3092  	// omitted from API requests. See
  3093  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3094  	NullFields []string `json:"-"`
  3095  }
  3096  
  3097  func (s *GoogleIamV1GetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  3098  	type NoMethod GoogleIamV1GetIamPolicyRequest
  3099  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3100  }
  3101  
  3102  // GoogleIamV1GetPolicyOptions: Encapsulates settings provided to GetIamPolicy.
  3103  type GoogleIamV1GetPolicyOptions struct {
  3104  	// RequestedPolicyVersion: Optional. The maximum policy version that will be
  3105  	// used to format the policy. Valid values are 0, 1, and 3. Requests specifying
  3106  	// an invalid value will be rejected. Requests for policies with any
  3107  	// conditional role bindings must specify version 3. Policies with no
  3108  	// conditional role bindings may specify any valid value or leave the field
  3109  	// unset. The policy in the response might use the policy version that you
  3110  	// specified, or it might use a lower policy version. For example, if you
  3111  	// specify version 3, but the policy has no conditional role bindings, the
  3112  	// response uses version 1. To learn which resources support conditions in
  3113  	// their IAM policies, see the IAM documentation
  3114  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  3115  	RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"`
  3116  	// ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") to
  3117  	// unconditionally include in API requests. By default, fields with empty or
  3118  	// default values are omitted from API requests. See
  3119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3120  	// details.
  3121  	ForceSendFields []string `json:"-"`
  3122  	// NullFields is a list of field names (e.g. "RequestedPolicyVersion") to
  3123  	// include in API requests with the JSON null value. By default, fields with
  3124  	// empty values are omitted from API requests. See
  3125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3126  	NullFields []string `json:"-"`
  3127  }
  3128  
  3129  func (s *GoogleIamV1GetPolicyOptions) MarshalJSON() ([]byte, error) {
  3130  	type NoMethod GoogleIamV1GetPolicyOptions
  3131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3132  }
  3133  
  3134  // GoogleIamV1Policy: An Identity and Access Management (IAM) policy, which
  3135  // specifies access controls for Google Cloud resources. A `Policy` is a
  3136  // collection of `bindings`. A `binding` binds one or more `members`, or
  3137  // principals, to a single `role`. Principals can be user accounts, service
  3138  // accounts, Google groups, and domains (such as G Suite). A `role` is a named
  3139  // list of permissions; each `role` can be an IAM predefined role or a
  3140  // user-created custom role. For some types of Google Cloud resources, a
  3141  // `binding` can also specify a `condition`, which is a logical expression that
  3142  // allows access to a resource only if the expression evaluates to `true`. A
  3143  // condition can add constraints based on attributes of the request, the
  3144  // resource, or both. To learn which resources support conditions in their IAM
  3145  // policies, see the IAM documentation
  3146  // (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON
  3147  // example:** ``` { "bindings": [ { "role":
  3148  // "roles/resourcemanager.organizationAdmin", "members": [
  3149  // "user:mike@example.com", "group:admins@example.com", "domain:google.com",
  3150  // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":
  3151  // "roles/resourcemanager.organizationViewer", "members": [
  3152  // "user:eve@example.com" ], "condition": { "title": "expirable access",
  3153  // "description": "Does not grant access after Sep 2020", "expression":
  3154  // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":
  3155  // "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: -
  3156  // members: - user:mike@example.com - group:admins@example.com -
  3157  // domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
  3158  // role: roles/resourcemanager.organizationAdmin - members: -
  3159  // user:eve@example.com role: roles/resourcemanager.organizationViewer
  3160  // condition: title: expirable access description: Does not grant access after
  3161  // Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
  3162  // etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features,
  3163  // see the IAM documentation (https://cloud.google.com/iam/docs/).
  3164  type GoogleIamV1Policy struct {
  3165  	// AuditConfigs: Specifies cloud audit logging configuration for this policy.
  3166  	AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
  3167  	// Bindings: Associates a list of `members`, or principals, with a `role`.
  3168  	// Optionally, may specify a `condition` that determines how and when the
  3169  	// `bindings` are applied. Each of the `bindings` must contain at least one
  3170  	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
  3171  	// up to 250 of these principals can be Google groups. Each occurrence of a
  3172  	// principal counts towards these limits. For example, if the `bindings` grant
  3173  	// 50 different roles to `user:alice@example.com`, and not to any other
  3174  	// principal, then you can add another 1,450 principals to the `bindings` in
  3175  	// the `Policy`.
  3176  	Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
  3177  	// Etag: `etag` is used for optimistic concurrency control as a way to help
  3178  	// prevent simultaneous updates of a policy from overwriting each other. It is
  3179  	// strongly suggested that systems make use of the `etag` in the
  3180  	// read-modify-write cycle to perform policy updates in order to avoid race
  3181  	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
  3182  	// systems are expected to put that etag in the request to `setIamPolicy` to
  3183  	// ensure that their change will be applied to the same version of the policy.
  3184  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  3185  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  3186  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  3187  	// the conditions in the version `3` policy are lost.
  3188  	Etag string `json:"etag,omitempty"`
  3189  	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
  3190  	// `3`. Requests that specify an invalid value are rejected. Any operation that
  3191  	// affects conditional role bindings must specify version `3`. This requirement
  3192  	// applies to the following operations: * Getting a policy that includes a
  3193  	// conditional role binding * Adding a conditional role binding to a policy *
  3194  	// Changing a conditional role binding in a policy * Removing any role binding,
  3195  	// with or without a condition, from a policy that includes conditions
  3196  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  3197  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  3198  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  3199  	// the conditions in the version `3` policy are lost. If a policy does not
  3200  	// include any conditions, operations on that policy may specify any valid
  3201  	// version or leave the field unset. To learn which resources support
  3202  	// conditions in their IAM policies, see the IAM documentation
  3203  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  3204  	Version int64 `json:"version,omitempty"`
  3205  
  3206  	// ServerResponse contains the HTTP response code and headers from the server.
  3207  	googleapi.ServerResponse `json:"-"`
  3208  	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
  3209  	// unconditionally include in API requests. By default, fields with empty or
  3210  	// default values are omitted from API requests. See
  3211  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3212  	// details.
  3213  	ForceSendFields []string `json:"-"`
  3214  	// NullFields is a list of field names (e.g. "AuditConfigs") to include in API
  3215  	// requests with the JSON null value. By default, fields with empty values are
  3216  	// omitted from API requests. See
  3217  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3218  	NullFields []string `json:"-"`
  3219  }
  3220  
  3221  func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
  3222  	type NoMethod GoogleIamV1Policy
  3223  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3224  }
  3225  
  3226  // GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy` method.
  3227  type GoogleIamV1SetIamPolicyRequest struct {
  3228  	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
  3229  	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
  3230  	// policy but certain Google Cloud services (such as Projects) might reject
  3231  	// them.
  3232  	Policy *GoogleIamV1Policy `json:"policy,omitempty"`
  3233  	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to
  3234  	// modify. Only the fields in the mask will be modified. If no mask is
  3235  	// provided, the following default mask is used: `paths: "bindings, etag"
  3236  	UpdateMask string `json:"updateMask,omitempty"`
  3237  	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
  3238  	// include in API requests. By default, fields with empty or default values are
  3239  	// omitted from API requests. See
  3240  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3241  	// details.
  3242  	ForceSendFields []string `json:"-"`
  3243  	// NullFields is a list of field names (e.g. "Policy") to include in API
  3244  	// requests with the JSON null value. By default, fields with empty values are
  3245  	// omitted from API requests. See
  3246  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3247  	NullFields []string `json:"-"`
  3248  }
  3249  
  3250  func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  3251  	type NoMethod GoogleIamV1SetIamPolicyRequest
  3252  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3253  }
  3254  
  3255  // GoogleIamV1TestIamPermissionsRequest: Request message for
  3256  // `TestIamPermissions` method.
  3257  type GoogleIamV1TestIamPermissionsRequest struct {
  3258  	// Permissions: The set of permissions to check for the `resource`. Permissions
  3259  	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
  3260  	// information see IAM Overview
  3261  	// (https://cloud.google.com/iam/docs/overview#permissions).
  3262  	Permissions []string `json:"permissions,omitempty"`
  3263  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  3264  	// unconditionally include in API requests. By default, fields with empty or
  3265  	// default values are omitted from API requests. See
  3266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3267  	// details.
  3268  	ForceSendFields []string `json:"-"`
  3269  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  3270  	// requests with the JSON null value. By default, fields with empty values are
  3271  	// omitted from API requests. See
  3272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3273  	NullFields []string `json:"-"`
  3274  }
  3275  
  3276  func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
  3277  	type NoMethod GoogleIamV1TestIamPermissionsRequest
  3278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3279  }
  3280  
  3281  // GoogleIamV1TestIamPermissionsResponse: Response message for
  3282  // `TestIamPermissions` method.
  3283  type GoogleIamV1TestIamPermissionsResponse struct {
  3284  	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
  3285  	// caller is allowed.
  3286  	Permissions []string `json:"permissions,omitempty"`
  3287  
  3288  	// ServerResponse contains the HTTP response code and headers from the server.
  3289  	googleapi.ServerResponse `json:"-"`
  3290  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  3291  	// unconditionally include in API requests. By default, fields with empty or
  3292  	// default values are omitted from API requests. See
  3293  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3294  	// details.
  3295  	ForceSendFields []string `json:"-"`
  3296  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  3297  	// requests with the JSON null value. By default, fields with empty values are
  3298  	// omitted from API requests. See
  3299  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3300  	NullFields []string `json:"-"`
  3301  }
  3302  
  3303  func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
  3304  	type NoMethod GoogleIamV1TestIamPermissionsResponse
  3305  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3306  }
  3307  
  3308  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
  3309  // defining duplicated empty messages in your APIs. A typical example is to use
  3310  // it as the request or the response type of an API method. For instance:
  3311  // service Foo { rpc Bar(google.protobuf.Empty) returns
  3312  // (google.protobuf.Empty); }
  3313  type GoogleProtobufEmpty struct {
  3314  	// ServerResponse contains the HTTP response code and headers from the server.
  3315  	googleapi.ServerResponse `json:"-"`
  3316  }
  3317  
  3318  // GoogleTypeExpr: Represents a textual expression in the Common Expression
  3319  // Language (CEL) syntax. CEL is a C-like expression language. The syntax and
  3320  // semantics of CEL are documented at https://github.com/google/cel-spec.
  3321  // Example (Comparison): title: "Summary size limit" description: "Determines
  3322  // if a summary is less than 100 chars" expression: "document.summary.size() <
  3323  // 100" Example (Equality): title: "Requestor is owner" description:
  3324  // "Determines if requestor is the document owner" expression: "document.owner
  3325  // == request.auth.claims.email" Example (Logic): title: "Public documents"
  3326  // description: "Determine whether the document should be publicly visible"
  3327  // expression: "document.type != 'private' && document.type != 'internal'"
  3328  // Example (Data Manipulation): title: "Notification string" description:
  3329  // "Create a notification string with a timestamp." expression: "'New message
  3330  // received at ' + string(document.create_time)" The exact variables and
  3331  // functions that may be referenced within an expression are determined by the
  3332  // service that evaluates it. See the service documentation for additional
  3333  // information.
  3334  type GoogleTypeExpr struct {
  3335  	// Description: Optional. Description of the expression. This is a longer text
  3336  	// which describes the expression, e.g. when hovered over it in a UI.
  3337  	Description string `json:"description,omitempty"`
  3338  	// Expression: Textual representation of an expression in Common Expression
  3339  	// Language syntax.
  3340  	Expression string `json:"expression,omitempty"`
  3341  	// Location: Optional. String indicating the location of the expression for
  3342  	// error reporting, e.g. a file name and a position in the file.
  3343  	Location string `json:"location,omitempty"`
  3344  	// Title: Optional. Title for the expression, i.e. a short string describing
  3345  	// its purpose. This can be used e.g. in UIs which allow to enter the
  3346  	// expression.
  3347  	Title string `json:"title,omitempty"`
  3348  	// ForceSendFields is a list of field names (e.g. "Description") to
  3349  	// unconditionally include in API requests. By default, fields with empty or
  3350  	// default values are omitted from API requests. See
  3351  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3352  	// details.
  3353  	ForceSendFields []string `json:"-"`
  3354  	// NullFields is a list of field names (e.g. "Description") to include in API
  3355  	// requests with the JSON null value. By default, fields with empty values are
  3356  	// omitted from API requests. See
  3357  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3358  	NullFields []string `json:"-"`
  3359  }
  3360  
  3361  func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
  3362  	type NoMethod GoogleTypeExpr
  3363  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3364  }
  3365  
  3366  type AccountsRevokeTokenCall struct {
  3367  	s                                              *Service
  3368  	googlecloudidentitytoolkitv2revoketokenrequest *GoogleCloudIdentitytoolkitV2RevokeTokenRequest
  3369  	urlParams_                                     gensupport.URLParams
  3370  	ctx_                                           context.Context
  3371  	header_                                        http.Header
  3372  }
  3373  
  3374  // RevokeToken: Revokes a user's token from an Identity Provider (IdP). This is
  3375  // done by manually providing an IdP credential, and the token types for
  3376  // revocation. An API key
  3377  // (https://cloud.google.com/docs/authentication/api-keys) is required in the
  3378  // request in order to identify the Google Cloud project.
  3379  func (r *AccountsService) RevokeToken(googlecloudidentitytoolkitv2revoketokenrequest *GoogleCloudIdentitytoolkitV2RevokeTokenRequest) *AccountsRevokeTokenCall {
  3380  	c := &AccountsRevokeTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3381  	c.googlecloudidentitytoolkitv2revoketokenrequest = googlecloudidentitytoolkitv2revoketokenrequest
  3382  	return c
  3383  }
  3384  
  3385  // Fields allows partial responses to be retrieved. See
  3386  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3387  // details.
  3388  func (c *AccountsRevokeTokenCall) Fields(s ...googleapi.Field) *AccountsRevokeTokenCall {
  3389  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3390  	return c
  3391  }
  3392  
  3393  // Context sets the context to be used in this call's Do method.
  3394  func (c *AccountsRevokeTokenCall) Context(ctx context.Context) *AccountsRevokeTokenCall {
  3395  	c.ctx_ = ctx
  3396  	return c
  3397  }
  3398  
  3399  // Header returns a http.Header that can be modified by the caller to add
  3400  // headers to the request.
  3401  func (c *AccountsRevokeTokenCall) Header() http.Header {
  3402  	if c.header_ == nil {
  3403  		c.header_ = make(http.Header)
  3404  	}
  3405  	return c.header_
  3406  }
  3407  
  3408  func (c *AccountsRevokeTokenCall) doRequest(alt string) (*http.Response, error) {
  3409  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3410  	var body io.Reader = nil
  3411  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2revoketokenrequest)
  3412  	if err != nil {
  3413  		return nil, err
  3414  	}
  3415  	c.urlParams_.Set("alt", alt)
  3416  	c.urlParams_.Set("prettyPrint", "false")
  3417  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts:revokeToken")
  3418  	urls += "?" + c.urlParams_.Encode()
  3419  	req, err := http.NewRequest("POST", urls, body)
  3420  	if err != nil {
  3421  		return nil, err
  3422  	}
  3423  	req.Header = reqHeaders
  3424  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3425  }
  3426  
  3427  // Do executes the "identitytoolkit.accounts.revokeToken" call.
  3428  // Any non-2xx status code is an error. Response headers are in either
  3429  // *GoogleCloudIdentitytoolkitV2RevokeTokenResponse.ServerResponse.Header or
  3430  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  3431  // googleapi.IsNotModified to check whether the returned error was because
  3432  // http.StatusNotModified was returned.
  3433  func (c *AccountsRevokeTokenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2RevokeTokenResponse, error) {
  3434  	gensupport.SetOptions(c.urlParams_, opts...)
  3435  	res, err := c.doRequest("json")
  3436  	if res != nil && res.StatusCode == http.StatusNotModified {
  3437  		if res.Body != nil {
  3438  			res.Body.Close()
  3439  		}
  3440  		return nil, gensupport.WrapError(&googleapi.Error{
  3441  			Code:   res.StatusCode,
  3442  			Header: res.Header,
  3443  		})
  3444  	}
  3445  	if err != nil {
  3446  		return nil, err
  3447  	}
  3448  	defer googleapi.CloseBody(res)
  3449  	if err := googleapi.CheckResponse(res); err != nil {
  3450  		return nil, gensupport.WrapError(err)
  3451  	}
  3452  	ret := &GoogleCloudIdentitytoolkitV2RevokeTokenResponse{
  3453  		ServerResponse: googleapi.ServerResponse{
  3454  			Header:         res.Header,
  3455  			HTTPStatusCode: res.StatusCode,
  3456  		},
  3457  	}
  3458  	target := &ret
  3459  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3460  		return nil, err
  3461  	}
  3462  	return ret, nil
  3463  }
  3464  
  3465  type AccountsMfaEnrollmentFinalizeCall struct {
  3466  	s                                                        *Service
  3467  	googlecloudidentitytoolkitv2finalizemfaenrollmentrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest
  3468  	urlParams_                                               gensupport.URLParams
  3469  	ctx_                                                     context.Context
  3470  	header_                                                  http.Header
  3471  }
  3472  
  3473  // Finalize: Finishes enrolling a second factor for the user.
  3474  func (r *AccountsMfaEnrollmentService) Finalize(googlecloudidentitytoolkitv2finalizemfaenrollmentrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest) *AccountsMfaEnrollmentFinalizeCall {
  3475  	c := &AccountsMfaEnrollmentFinalizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3476  	c.googlecloudidentitytoolkitv2finalizemfaenrollmentrequest = googlecloudidentitytoolkitv2finalizemfaenrollmentrequest
  3477  	return c
  3478  }
  3479  
  3480  // Fields allows partial responses to be retrieved. See
  3481  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3482  // details.
  3483  func (c *AccountsMfaEnrollmentFinalizeCall) Fields(s ...googleapi.Field) *AccountsMfaEnrollmentFinalizeCall {
  3484  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3485  	return c
  3486  }
  3487  
  3488  // Context sets the context to be used in this call's Do method.
  3489  func (c *AccountsMfaEnrollmentFinalizeCall) Context(ctx context.Context) *AccountsMfaEnrollmentFinalizeCall {
  3490  	c.ctx_ = ctx
  3491  	return c
  3492  }
  3493  
  3494  // Header returns a http.Header that can be modified by the caller to add
  3495  // headers to the request.
  3496  func (c *AccountsMfaEnrollmentFinalizeCall) Header() http.Header {
  3497  	if c.header_ == nil {
  3498  		c.header_ = make(http.Header)
  3499  	}
  3500  	return c.header_
  3501  }
  3502  
  3503  func (c *AccountsMfaEnrollmentFinalizeCall) doRequest(alt string) (*http.Response, error) {
  3504  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3505  	var body io.Reader = nil
  3506  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2finalizemfaenrollmentrequest)
  3507  	if err != nil {
  3508  		return nil, err
  3509  	}
  3510  	c.urlParams_.Set("alt", alt)
  3511  	c.urlParams_.Set("prettyPrint", "false")
  3512  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts/mfaEnrollment:finalize")
  3513  	urls += "?" + c.urlParams_.Encode()
  3514  	req, err := http.NewRequest("POST", urls, body)
  3515  	if err != nil {
  3516  		return nil, err
  3517  	}
  3518  	req.Header = reqHeaders
  3519  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3520  }
  3521  
  3522  // Do executes the "identitytoolkit.accounts.mfaEnrollment.finalize" call.
  3523  // Any non-2xx status code is an error. Response headers are in either
  3524  // *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse.ServerResponse.Hea
  3525  // der or (if a response was returned at all) in
  3526  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3527  // whether the returned error was because http.StatusNotModified was returned.
  3528  func (c *AccountsMfaEnrollmentFinalizeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse, error) {
  3529  	gensupport.SetOptions(c.urlParams_, opts...)
  3530  	res, err := c.doRequest("json")
  3531  	if res != nil && res.StatusCode == http.StatusNotModified {
  3532  		if res.Body != nil {
  3533  			res.Body.Close()
  3534  		}
  3535  		return nil, gensupport.WrapError(&googleapi.Error{
  3536  			Code:   res.StatusCode,
  3537  			Header: res.Header,
  3538  		})
  3539  	}
  3540  	if err != nil {
  3541  		return nil, err
  3542  	}
  3543  	defer googleapi.CloseBody(res)
  3544  	if err := googleapi.CheckResponse(res); err != nil {
  3545  		return nil, gensupport.WrapError(err)
  3546  	}
  3547  	ret := &GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse{
  3548  		ServerResponse: googleapi.ServerResponse{
  3549  			Header:         res.Header,
  3550  			HTTPStatusCode: res.StatusCode,
  3551  		},
  3552  	}
  3553  	target := &ret
  3554  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3555  		return nil, err
  3556  	}
  3557  	return ret, nil
  3558  }
  3559  
  3560  type AccountsMfaEnrollmentStartCall struct {
  3561  	s                                                     *Service
  3562  	googlecloudidentitytoolkitv2startmfaenrollmentrequest *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
  3563  	urlParams_                                            gensupport.URLParams
  3564  	ctx_                                                  context.Context
  3565  	header_                                               http.Header
  3566  }
  3567  
  3568  // Start: Step one of the MFA enrollment process. In SMS case, this sends an
  3569  // SMS verification code to the user.
  3570  func (r *AccountsMfaEnrollmentService) Start(googlecloudidentitytoolkitv2startmfaenrollmentrequest *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest) *AccountsMfaEnrollmentStartCall {
  3571  	c := &AccountsMfaEnrollmentStartCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3572  	c.googlecloudidentitytoolkitv2startmfaenrollmentrequest = googlecloudidentitytoolkitv2startmfaenrollmentrequest
  3573  	return c
  3574  }
  3575  
  3576  // Fields allows partial responses to be retrieved. See
  3577  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3578  // details.
  3579  func (c *AccountsMfaEnrollmentStartCall) Fields(s ...googleapi.Field) *AccountsMfaEnrollmentStartCall {
  3580  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3581  	return c
  3582  }
  3583  
  3584  // Context sets the context to be used in this call's Do method.
  3585  func (c *AccountsMfaEnrollmentStartCall) Context(ctx context.Context) *AccountsMfaEnrollmentStartCall {
  3586  	c.ctx_ = ctx
  3587  	return c
  3588  }
  3589  
  3590  // Header returns a http.Header that can be modified by the caller to add
  3591  // headers to the request.
  3592  func (c *AccountsMfaEnrollmentStartCall) Header() http.Header {
  3593  	if c.header_ == nil {
  3594  		c.header_ = make(http.Header)
  3595  	}
  3596  	return c.header_
  3597  }
  3598  
  3599  func (c *AccountsMfaEnrollmentStartCall) doRequest(alt string) (*http.Response, error) {
  3600  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3601  	var body io.Reader = nil
  3602  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2startmfaenrollmentrequest)
  3603  	if err != nil {
  3604  		return nil, err
  3605  	}
  3606  	c.urlParams_.Set("alt", alt)
  3607  	c.urlParams_.Set("prettyPrint", "false")
  3608  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts/mfaEnrollment:start")
  3609  	urls += "?" + c.urlParams_.Encode()
  3610  	req, err := http.NewRequest("POST", urls, body)
  3611  	if err != nil {
  3612  		return nil, err
  3613  	}
  3614  	req.Header = reqHeaders
  3615  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3616  }
  3617  
  3618  // Do executes the "identitytoolkit.accounts.mfaEnrollment.start" call.
  3619  // Any non-2xx status code is an error. Response headers are in either
  3620  // *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse.ServerResponse.Header
  3621  //
  3622  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
  3623  //
  3624  // Use googleapi.IsNotModified to check whether the returned error was because
  3625  // http.StatusNotModified was returned.
  3626  func (c *AccountsMfaEnrollmentStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse, error) {
  3627  	gensupport.SetOptions(c.urlParams_, opts...)
  3628  	res, err := c.doRequest("json")
  3629  	if res != nil && res.StatusCode == http.StatusNotModified {
  3630  		if res.Body != nil {
  3631  			res.Body.Close()
  3632  		}
  3633  		return nil, gensupport.WrapError(&googleapi.Error{
  3634  			Code:   res.StatusCode,
  3635  			Header: res.Header,
  3636  		})
  3637  	}
  3638  	if err != nil {
  3639  		return nil, err
  3640  	}
  3641  	defer googleapi.CloseBody(res)
  3642  	if err := googleapi.CheckResponse(res); err != nil {
  3643  		return nil, gensupport.WrapError(err)
  3644  	}
  3645  	ret := &GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse{
  3646  		ServerResponse: googleapi.ServerResponse{
  3647  			Header:         res.Header,
  3648  			HTTPStatusCode: res.StatusCode,
  3649  		},
  3650  	}
  3651  	target := &ret
  3652  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3653  		return nil, err
  3654  	}
  3655  	return ret, nil
  3656  }
  3657  
  3658  type AccountsMfaEnrollmentWithdrawCall struct {
  3659  	s                                              *Service
  3660  	googlecloudidentitytoolkitv2withdrawmfarequest *GoogleCloudIdentitytoolkitV2WithdrawMfaRequest
  3661  	urlParams_                                     gensupport.URLParams
  3662  	ctx_                                           context.Context
  3663  	header_                                        http.Header
  3664  }
  3665  
  3666  // Withdraw: Revokes one second factor from the enrolled second factors for an
  3667  // account.
  3668  func (r *AccountsMfaEnrollmentService) Withdraw(googlecloudidentitytoolkitv2withdrawmfarequest *GoogleCloudIdentitytoolkitV2WithdrawMfaRequest) *AccountsMfaEnrollmentWithdrawCall {
  3669  	c := &AccountsMfaEnrollmentWithdrawCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3670  	c.googlecloudidentitytoolkitv2withdrawmfarequest = googlecloudidentitytoolkitv2withdrawmfarequest
  3671  	return c
  3672  }
  3673  
  3674  // Fields allows partial responses to be retrieved. See
  3675  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3676  // details.
  3677  func (c *AccountsMfaEnrollmentWithdrawCall) Fields(s ...googleapi.Field) *AccountsMfaEnrollmentWithdrawCall {
  3678  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3679  	return c
  3680  }
  3681  
  3682  // Context sets the context to be used in this call's Do method.
  3683  func (c *AccountsMfaEnrollmentWithdrawCall) Context(ctx context.Context) *AccountsMfaEnrollmentWithdrawCall {
  3684  	c.ctx_ = ctx
  3685  	return c
  3686  }
  3687  
  3688  // Header returns a http.Header that can be modified by the caller to add
  3689  // headers to the request.
  3690  func (c *AccountsMfaEnrollmentWithdrawCall) Header() http.Header {
  3691  	if c.header_ == nil {
  3692  		c.header_ = make(http.Header)
  3693  	}
  3694  	return c.header_
  3695  }
  3696  
  3697  func (c *AccountsMfaEnrollmentWithdrawCall) doRequest(alt string) (*http.Response, error) {
  3698  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3699  	var body io.Reader = nil
  3700  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2withdrawmfarequest)
  3701  	if err != nil {
  3702  		return nil, err
  3703  	}
  3704  	c.urlParams_.Set("alt", alt)
  3705  	c.urlParams_.Set("prettyPrint", "false")
  3706  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts/mfaEnrollment:withdraw")
  3707  	urls += "?" + c.urlParams_.Encode()
  3708  	req, err := http.NewRequest("POST", urls, body)
  3709  	if err != nil {
  3710  		return nil, err
  3711  	}
  3712  	req.Header = reqHeaders
  3713  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3714  }
  3715  
  3716  // Do executes the "identitytoolkit.accounts.mfaEnrollment.withdraw" call.
  3717  // Any non-2xx status code is an error. Response headers are in either
  3718  // *GoogleCloudIdentitytoolkitV2WithdrawMfaResponse.ServerResponse.Header or
  3719  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  3720  // googleapi.IsNotModified to check whether the returned error was because
  3721  // http.StatusNotModified was returned.
  3722  func (c *AccountsMfaEnrollmentWithdrawCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2WithdrawMfaResponse, error) {
  3723  	gensupport.SetOptions(c.urlParams_, opts...)
  3724  	res, err := c.doRequest("json")
  3725  	if res != nil && res.StatusCode == http.StatusNotModified {
  3726  		if res.Body != nil {
  3727  			res.Body.Close()
  3728  		}
  3729  		return nil, gensupport.WrapError(&googleapi.Error{
  3730  			Code:   res.StatusCode,
  3731  			Header: res.Header,
  3732  		})
  3733  	}
  3734  	if err != nil {
  3735  		return nil, err
  3736  	}
  3737  	defer googleapi.CloseBody(res)
  3738  	if err := googleapi.CheckResponse(res); err != nil {
  3739  		return nil, gensupport.WrapError(err)
  3740  	}
  3741  	ret := &GoogleCloudIdentitytoolkitV2WithdrawMfaResponse{
  3742  		ServerResponse: googleapi.ServerResponse{
  3743  			Header:         res.Header,
  3744  			HTTPStatusCode: res.StatusCode,
  3745  		},
  3746  	}
  3747  	target := &ret
  3748  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3749  		return nil, err
  3750  	}
  3751  	return ret, nil
  3752  }
  3753  
  3754  type AccountsMfaSignInFinalizeCall struct {
  3755  	s                                                    *Service
  3756  	googlecloudidentitytoolkitv2finalizemfasigninrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest
  3757  	urlParams_                                           gensupport.URLParams
  3758  	ctx_                                                 context.Context
  3759  	header_                                              http.Header
  3760  }
  3761  
  3762  // Finalize: Verifies the MFA challenge and performs sign-in
  3763  func (r *AccountsMfaSignInService) Finalize(googlecloudidentitytoolkitv2finalizemfasigninrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest) *AccountsMfaSignInFinalizeCall {
  3764  	c := &AccountsMfaSignInFinalizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3765  	c.googlecloudidentitytoolkitv2finalizemfasigninrequest = googlecloudidentitytoolkitv2finalizemfasigninrequest
  3766  	return c
  3767  }
  3768  
  3769  // Fields allows partial responses to be retrieved. See
  3770  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3771  // details.
  3772  func (c *AccountsMfaSignInFinalizeCall) Fields(s ...googleapi.Field) *AccountsMfaSignInFinalizeCall {
  3773  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3774  	return c
  3775  }
  3776  
  3777  // Context sets the context to be used in this call's Do method.
  3778  func (c *AccountsMfaSignInFinalizeCall) Context(ctx context.Context) *AccountsMfaSignInFinalizeCall {
  3779  	c.ctx_ = ctx
  3780  	return c
  3781  }
  3782  
  3783  // Header returns a http.Header that can be modified by the caller to add
  3784  // headers to the request.
  3785  func (c *AccountsMfaSignInFinalizeCall) Header() http.Header {
  3786  	if c.header_ == nil {
  3787  		c.header_ = make(http.Header)
  3788  	}
  3789  	return c.header_
  3790  }
  3791  
  3792  func (c *AccountsMfaSignInFinalizeCall) doRequest(alt string) (*http.Response, error) {
  3793  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3794  	var body io.Reader = nil
  3795  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2finalizemfasigninrequest)
  3796  	if err != nil {
  3797  		return nil, err
  3798  	}
  3799  	c.urlParams_.Set("alt", alt)
  3800  	c.urlParams_.Set("prettyPrint", "false")
  3801  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts/mfaSignIn:finalize")
  3802  	urls += "?" + c.urlParams_.Encode()
  3803  	req, err := http.NewRequest("POST", urls, body)
  3804  	if err != nil {
  3805  		return nil, err
  3806  	}
  3807  	req.Header = reqHeaders
  3808  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3809  }
  3810  
  3811  // Do executes the "identitytoolkit.accounts.mfaSignIn.finalize" call.
  3812  // Any non-2xx status code is an error. Response headers are in either
  3813  // *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse.ServerResponse.Header
  3814  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
  3815  // Use googleapi.IsNotModified to check whether the returned error was because
  3816  // http.StatusNotModified was returned.
  3817  func (c *AccountsMfaSignInFinalizeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse, error) {
  3818  	gensupport.SetOptions(c.urlParams_, opts...)
  3819  	res, err := c.doRequest("json")
  3820  	if res != nil && res.StatusCode == http.StatusNotModified {
  3821  		if res.Body != nil {
  3822  			res.Body.Close()
  3823  		}
  3824  		return nil, gensupport.WrapError(&googleapi.Error{
  3825  			Code:   res.StatusCode,
  3826  			Header: res.Header,
  3827  		})
  3828  	}
  3829  	if err != nil {
  3830  		return nil, err
  3831  	}
  3832  	defer googleapi.CloseBody(res)
  3833  	if err := googleapi.CheckResponse(res); err != nil {
  3834  		return nil, gensupport.WrapError(err)
  3835  	}
  3836  	ret := &GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse{
  3837  		ServerResponse: googleapi.ServerResponse{
  3838  			Header:         res.Header,
  3839  			HTTPStatusCode: res.StatusCode,
  3840  		},
  3841  	}
  3842  	target := &ret
  3843  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3844  		return nil, err
  3845  	}
  3846  	return ret, nil
  3847  }
  3848  
  3849  type AccountsMfaSignInStartCall struct {
  3850  	s                                                 *Service
  3851  	googlecloudidentitytoolkitv2startmfasigninrequest *GoogleCloudIdentitytoolkitV2StartMfaSignInRequest
  3852  	urlParams_                                        gensupport.URLParams
  3853  	ctx_                                              context.Context
  3854  	header_                                           http.Header
  3855  }
  3856  
  3857  // Start: Sends the MFA challenge
  3858  func (r *AccountsMfaSignInService) Start(googlecloudidentitytoolkitv2startmfasigninrequest *GoogleCloudIdentitytoolkitV2StartMfaSignInRequest) *AccountsMfaSignInStartCall {
  3859  	c := &AccountsMfaSignInStartCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3860  	c.googlecloudidentitytoolkitv2startmfasigninrequest = googlecloudidentitytoolkitv2startmfasigninrequest
  3861  	return c
  3862  }
  3863  
  3864  // Fields allows partial responses to be retrieved. See
  3865  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3866  // details.
  3867  func (c *AccountsMfaSignInStartCall) Fields(s ...googleapi.Field) *AccountsMfaSignInStartCall {
  3868  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3869  	return c
  3870  }
  3871  
  3872  // Context sets the context to be used in this call's Do method.
  3873  func (c *AccountsMfaSignInStartCall) Context(ctx context.Context) *AccountsMfaSignInStartCall {
  3874  	c.ctx_ = ctx
  3875  	return c
  3876  }
  3877  
  3878  // Header returns a http.Header that can be modified by the caller to add
  3879  // headers to the request.
  3880  func (c *AccountsMfaSignInStartCall) Header() http.Header {
  3881  	if c.header_ == nil {
  3882  		c.header_ = make(http.Header)
  3883  	}
  3884  	return c.header_
  3885  }
  3886  
  3887  func (c *AccountsMfaSignInStartCall) doRequest(alt string) (*http.Response, error) {
  3888  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3889  	var body io.Reader = nil
  3890  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2startmfasigninrequest)
  3891  	if err != nil {
  3892  		return nil, err
  3893  	}
  3894  	c.urlParams_.Set("alt", alt)
  3895  	c.urlParams_.Set("prettyPrint", "false")
  3896  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts/mfaSignIn:start")
  3897  	urls += "?" + c.urlParams_.Encode()
  3898  	req, err := http.NewRequest("POST", urls, body)
  3899  	if err != nil {
  3900  		return nil, err
  3901  	}
  3902  	req.Header = reqHeaders
  3903  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3904  }
  3905  
  3906  // Do executes the "identitytoolkit.accounts.mfaSignIn.start" call.
  3907  // Any non-2xx status code is an error. Response headers are in either
  3908  // *GoogleCloudIdentitytoolkitV2StartMfaSignInResponse.ServerResponse.Header or
  3909  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  3910  // googleapi.IsNotModified to check whether the returned error was because
  3911  // http.StatusNotModified was returned.
  3912  func (c *AccountsMfaSignInStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2StartMfaSignInResponse, error) {
  3913  	gensupport.SetOptions(c.urlParams_, opts...)
  3914  	res, err := c.doRequest("json")
  3915  	if res != nil && res.StatusCode == http.StatusNotModified {
  3916  		if res.Body != nil {
  3917  			res.Body.Close()
  3918  		}
  3919  		return nil, gensupport.WrapError(&googleapi.Error{
  3920  			Code:   res.StatusCode,
  3921  			Header: res.Header,
  3922  		})
  3923  	}
  3924  	if err != nil {
  3925  		return nil, err
  3926  	}
  3927  	defer googleapi.CloseBody(res)
  3928  	if err := googleapi.CheckResponse(res); err != nil {
  3929  		return nil, gensupport.WrapError(err)
  3930  	}
  3931  	ret := &GoogleCloudIdentitytoolkitV2StartMfaSignInResponse{
  3932  		ServerResponse: googleapi.ServerResponse{
  3933  			Header:         res.Header,
  3934  			HTTPStatusCode: res.StatusCode,
  3935  		},
  3936  	}
  3937  	target := &ret
  3938  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3939  		return nil, err
  3940  	}
  3941  	return ret, nil
  3942  }
  3943  
  3944  type DefaultSupportedIdpsListCall struct {
  3945  	s            *Service
  3946  	urlParams_   gensupport.URLParams
  3947  	ifNoneMatch_ string
  3948  	ctx_         context.Context
  3949  	header_      http.Header
  3950  }
  3951  
  3952  // List: List all default supported Idps.
  3953  func (r *DefaultSupportedIdpsService) List() *DefaultSupportedIdpsListCall {
  3954  	c := &DefaultSupportedIdpsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3955  	return c
  3956  }
  3957  
  3958  // PageSize sets the optional parameter "pageSize": The maximum number of items
  3959  // to return.
  3960  func (c *DefaultSupportedIdpsListCall) PageSize(pageSize int64) *DefaultSupportedIdpsListCall {
  3961  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3962  	return c
  3963  }
  3964  
  3965  // PageToken sets the optional parameter "pageToken": The next_page_token value
  3966  // returned from a previous List request, if any.
  3967  func (c *DefaultSupportedIdpsListCall) PageToken(pageToken string) *DefaultSupportedIdpsListCall {
  3968  	c.urlParams_.Set("pageToken", pageToken)
  3969  	return c
  3970  }
  3971  
  3972  // Fields allows partial responses to be retrieved. See
  3973  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3974  // details.
  3975  func (c *DefaultSupportedIdpsListCall) Fields(s ...googleapi.Field) *DefaultSupportedIdpsListCall {
  3976  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3977  	return c
  3978  }
  3979  
  3980  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3981  // object's ETag matches the given value. This is useful for getting updates
  3982  // only after the object has changed since the last request.
  3983  func (c *DefaultSupportedIdpsListCall) IfNoneMatch(entityTag string) *DefaultSupportedIdpsListCall {
  3984  	c.ifNoneMatch_ = entityTag
  3985  	return c
  3986  }
  3987  
  3988  // Context sets the context to be used in this call's Do method.
  3989  func (c *DefaultSupportedIdpsListCall) Context(ctx context.Context) *DefaultSupportedIdpsListCall {
  3990  	c.ctx_ = ctx
  3991  	return c
  3992  }
  3993  
  3994  // Header returns a http.Header that can be modified by the caller to add
  3995  // headers to the request.
  3996  func (c *DefaultSupportedIdpsListCall) Header() http.Header {
  3997  	if c.header_ == nil {
  3998  		c.header_ = make(http.Header)
  3999  	}
  4000  	return c.header_
  4001  }
  4002  
  4003  func (c *DefaultSupportedIdpsListCall) doRequest(alt string) (*http.Response, error) {
  4004  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4005  	if c.ifNoneMatch_ != "" {
  4006  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4007  	}
  4008  	var body io.Reader = nil
  4009  	c.urlParams_.Set("alt", alt)
  4010  	c.urlParams_.Set("prettyPrint", "false")
  4011  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/defaultSupportedIdps")
  4012  	urls += "?" + c.urlParams_.Encode()
  4013  	req, err := http.NewRequest("GET", urls, body)
  4014  	if err != nil {
  4015  		return nil, err
  4016  	}
  4017  	req.Header = reqHeaders
  4018  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4019  }
  4020  
  4021  // Do executes the "identitytoolkit.defaultSupportedIdps.list" call.
  4022  // Any non-2xx status code is an error. Response headers are in either
  4023  // *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse.ServerResp
  4024  // onse.Header or (if a response was returned at all) in
  4025  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4026  // whether the returned error was because http.StatusNotModified was returned.
  4027  func (c *DefaultSupportedIdpsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse, error) {
  4028  	gensupport.SetOptions(c.urlParams_, opts...)
  4029  	res, err := c.doRequest("json")
  4030  	if res != nil && res.StatusCode == http.StatusNotModified {
  4031  		if res.Body != nil {
  4032  			res.Body.Close()
  4033  		}
  4034  		return nil, gensupport.WrapError(&googleapi.Error{
  4035  			Code:   res.StatusCode,
  4036  			Header: res.Header,
  4037  		})
  4038  	}
  4039  	if err != nil {
  4040  		return nil, err
  4041  	}
  4042  	defer googleapi.CloseBody(res)
  4043  	if err := googleapi.CheckResponse(res); err != nil {
  4044  		return nil, gensupport.WrapError(err)
  4045  	}
  4046  	ret := &GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse{
  4047  		ServerResponse: googleapi.ServerResponse{
  4048  			Header:         res.Header,
  4049  			HTTPStatusCode: res.StatusCode,
  4050  		},
  4051  	}
  4052  	target := &ret
  4053  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4054  		return nil, err
  4055  	}
  4056  	return ret, nil
  4057  }
  4058  
  4059  // Pages invokes f for each page of results.
  4060  // A non-nil error returned from f will halt the iteration.
  4061  // The provided context supersedes any context provided to the Context method.
  4062  func (c *DefaultSupportedIdpsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse) error) error {
  4063  	c.ctx_ = ctx
  4064  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  4065  	for {
  4066  		x, err := c.Do()
  4067  		if err != nil {
  4068  			return err
  4069  		}
  4070  		if err := f(x); err != nil {
  4071  			return err
  4072  		}
  4073  		if x.NextPageToken == "" {
  4074  			return nil
  4075  		}
  4076  		c.PageToken(x.NextPageToken)
  4077  	}
  4078  }
  4079  
  4080  type ProjectsGetConfigCall struct {
  4081  	s            *Service
  4082  	name         string
  4083  	urlParams_   gensupport.URLParams
  4084  	ifNoneMatch_ string
  4085  	ctx_         context.Context
  4086  	header_      http.Header
  4087  }
  4088  
  4089  // GetConfig: Retrieve an Identity Toolkit project configuration.
  4090  //
  4091  //   - name: The resource name of the config, for example:
  4092  //     "projects/my-awesome-project/config".
  4093  func (r *ProjectsService) GetConfig(name string) *ProjectsGetConfigCall {
  4094  	c := &ProjectsGetConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4095  	c.name = name
  4096  	return c
  4097  }
  4098  
  4099  // Fields allows partial responses to be retrieved. See
  4100  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4101  // details.
  4102  func (c *ProjectsGetConfigCall) Fields(s ...googleapi.Field) *ProjectsGetConfigCall {
  4103  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4104  	return c
  4105  }
  4106  
  4107  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4108  // object's ETag matches the given value. This is useful for getting updates
  4109  // only after the object has changed since the last request.
  4110  func (c *ProjectsGetConfigCall) IfNoneMatch(entityTag string) *ProjectsGetConfigCall {
  4111  	c.ifNoneMatch_ = entityTag
  4112  	return c
  4113  }
  4114  
  4115  // Context sets the context to be used in this call's Do method.
  4116  func (c *ProjectsGetConfigCall) Context(ctx context.Context) *ProjectsGetConfigCall {
  4117  	c.ctx_ = ctx
  4118  	return c
  4119  }
  4120  
  4121  // Header returns a http.Header that can be modified by the caller to add
  4122  // headers to the request.
  4123  func (c *ProjectsGetConfigCall) Header() http.Header {
  4124  	if c.header_ == nil {
  4125  		c.header_ = make(http.Header)
  4126  	}
  4127  	return c.header_
  4128  }
  4129  
  4130  func (c *ProjectsGetConfigCall) doRequest(alt string) (*http.Response, error) {
  4131  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4132  	if c.ifNoneMatch_ != "" {
  4133  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4134  	}
  4135  	var body io.Reader = nil
  4136  	c.urlParams_.Set("alt", alt)
  4137  	c.urlParams_.Set("prettyPrint", "false")
  4138  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  4139  	urls += "?" + c.urlParams_.Encode()
  4140  	req, err := http.NewRequest("GET", urls, body)
  4141  	if err != nil {
  4142  		return nil, err
  4143  	}
  4144  	req.Header = reqHeaders
  4145  	googleapi.Expand(req.URL, map[string]string{
  4146  		"name": c.name,
  4147  	})
  4148  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4149  }
  4150  
  4151  // Do executes the "identitytoolkit.projects.getConfig" call.
  4152  // Any non-2xx status code is an error. Response headers are in either
  4153  // *GoogleCloudIdentitytoolkitAdminV2Config.ServerResponse.Header or (if a
  4154  // response was returned at all) in error.(*googleapi.Error).Header. Use
  4155  // googleapi.IsNotModified to check whether the returned error was because
  4156  // http.StatusNotModified was returned.
  4157  func (c *ProjectsGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Config, error) {
  4158  	gensupport.SetOptions(c.urlParams_, opts...)
  4159  	res, err := c.doRequest("json")
  4160  	if res != nil && res.StatusCode == http.StatusNotModified {
  4161  		if res.Body != nil {
  4162  			res.Body.Close()
  4163  		}
  4164  		return nil, gensupport.WrapError(&googleapi.Error{
  4165  			Code:   res.StatusCode,
  4166  			Header: res.Header,
  4167  		})
  4168  	}
  4169  	if err != nil {
  4170  		return nil, err
  4171  	}
  4172  	defer googleapi.CloseBody(res)
  4173  	if err := googleapi.CheckResponse(res); err != nil {
  4174  		return nil, gensupport.WrapError(err)
  4175  	}
  4176  	ret := &GoogleCloudIdentitytoolkitAdminV2Config{
  4177  		ServerResponse: googleapi.ServerResponse{
  4178  			Header:         res.Header,
  4179  			HTTPStatusCode: res.StatusCode,
  4180  		},
  4181  	}
  4182  	target := &ret
  4183  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4184  		return nil, err
  4185  	}
  4186  	return ret, nil
  4187  }
  4188  
  4189  type ProjectsUpdateConfigCall struct {
  4190  	s                                       *Service
  4191  	name                                    string
  4192  	googlecloudidentitytoolkitadminv2config *GoogleCloudIdentitytoolkitAdminV2Config
  4193  	urlParams_                              gensupport.URLParams
  4194  	ctx_                                    context.Context
  4195  	header_                                 http.Header
  4196  }
  4197  
  4198  // UpdateConfig: Update an Identity Toolkit project configuration.
  4199  //
  4200  //   - name: Output only. The name of the Config resource. Example:
  4201  //     "projects/my-awesome-project/config".
  4202  func (r *ProjectsService) UpdateConfig(name string, googlecloudidentitytoolkitadminv2config *GoogleCloudIdentitytoolkitAdminV2Config) *ProjectsUpdateConfigCall {
  4203  	c := &ProjectsUpdateConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4204  	c.name = name
  4205  	c.googlecloudidentitytoolkitadminv2config = googlecloudidentitytoolkitadminv2config
  4206  	return c
  4207  }
  4208  
  4209  // UpdateMask sets the optional parameter "updateMask": The update mask applies
  4210  // to the resource. Fields set in the config but not included in this update
  4211  // mask will be ignored. For the `FieldMask` definition, see
  4212  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
  4213  func (c *ProjectsUpdateConfigCall) UpdateMask(updateMask string) *ProjectsUpdateConfigCall {
  4214  	c.urlParams_.Set("updateMask", updateMask)
  4215  	return c
  4216  }
  4217  
  4218  // Fields allows partial responses to be retrieved. See
  4219  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4220  // details.
  4221  func (c *ProjectsUpdateConfigCall) Fields(s ...googleapi.Field) *ProjectsUpdateConfigCall {
  4222  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4223  	return c
  4224  }
  4225  
  4226  // Context sets the context to be used in this call's Do method.
  4227  func (c *ProjectsUpdateConfigCall) Context(ctx context.Context) *ProjectsUpdateConfigCall {
  4228  	c.ctx_ = ctx
  4229  	return c
  4230  }
  4231  
  4232  // Header returns a http.Header that can be modified by the caller to add
  4233  // headers to the request.
  4234  func (c *ProjectsUpdateConfigCall) Header() http.Header {
  4235  	if c.header_ == nil {
  4236  		c.header_ = make(http.Header)
  4237  	}
  4238  	return c.header_
  4239  }
  4240  
  4241  func (c *ProjectsUpdateConfigCall) doRequest(alt string) (*http.Response, error) {
  4242  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4243  	var body io.Reader = nil
  4244  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2config)
  4245  	if err != nil {
  4246  		return nil, err
  4247  	}
  4248  	c.urlParams_.Set("alt", alt)
  4249  	c.urlParams_.Set("prettyPrint", "false")
  4250  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  4251  	urls += "?" + c.urlParams_.Encode()
  4252  	req, err := http.NewRequest("PATCH", urls, body)
  4253  	if err != nil {
  4254  		return nil, err
  4255  	}
  4256  	req.Header = reqHeaders
  4257  	googleapi.Expand(req.URL, map[string]string{
  4258  		"name": c.name,
  4259  	})
  4260  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4261  }
  4262  
  4263  // Do executes the "identitytoolkit.projects.updateConfig" call.
  4264  // Any non-2xx status code is an error. Response headers are in either
  4265  // *GoogleCloudIdentitytoolkitAdminV2Config.ServerResponse.Header or (if a
  4266  // response was returned at all) in error.(*googleapi.Error).Header. Use
  4267  // googleapi.IsNotModified to check whether the returned error was because
  4268  // http.StatusNotModified was returned.
  4269  func (c *ProjectsUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Config, error) {
  4270  	gensupport.SetOptions(c.urlParams_, opts...)
  4271  	res, err := c.doRequest("json")
  4272  	if res != nil && res.StatusCode == http.StatusNotModified {
  4273  		if res.Body != nil {
  4274  			res.Body.Close()
  4275  		}
  4276  		return nil, gensupport.WrapError(&googleapi.Error{
  4277  			Code:   res.StatusCode,
  4278  			Header: res.Header,
  4279  		})
  4280  	}
  4281  	if err != nil {
  4282  		return nil, err
  4283  	}
  4284  	defer googleapi.CloseBody(res)
  4285  	if err := googleapi.CheckResponse(res); err != nil {
  4286  		return nil, gensupport.WrapError(err)
  4287  	}
  4288  	ret := &GoogleCloudIdentitytoolkitAdminV2Config{
  4289  		ServerResponse: googleapi.ServerResponse{
  4290  			Header:         res.Header,
  4291  			HTTPStatusCode: res.StatusCode,
  4292  		},
  4293  	}
  4294  	target := &ret
  4295  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4296  		return nil, err
  4297  	}
  4298  	return ret, nil
  4299  }
  4300  
  4301  type ProjectsDefaultSupportedIdpConfigsCreateCall struct {
  4302  	s                                                          *Service
  4303  	parent                                                     string
  4304  	googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
  4305  	urlParams_                                                 gensupport.URLParams
  4306  	ctx_                                                       context.Context
  4307  	header_                                                    http.Header
  4308  }
  4309  
  4310  // Create: Create a default supported Idp configuration for an Identity Toolkit
  4311  // project.
  4312  //
  4313  //   - parent: The parent resource name where the config to be created, for
  4314  //     example: "projects/my-awesome-project".
  4315  func (r *ProjectsDefaultSupportedIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsDefaultSupportedIdpConfigsCreateCall {
  4316  	c := &ProjectsDefaultSupportedIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4317  	c.parent = parent
  4318  	c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig
  4319  	return c
  4320  }
  4321  
  4322  // IdpId sets the optional parameter "idpId": The id of the Idp to create a
  4323  // config for. Call ListDefaultSupportedIdps for list of all default supported
  4324  // Idps.
  4325  func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) IdpId(idpId string) *ProjectsDefaultSupportedIdpConfigsCreateCall {
  4326  	c.urlParams_.Set("idpId", idpId)
  4327  	return c
  4328  }
  4329  
  4330  // Fields allows partial responses to be retrieved. See
  4331  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4332  // details.
  4333  func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsCreateCall {
  4334  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4335  	return c
  4336  }
  4337  
  4338  // Context sets the context to be used in this call's Do method.
  4339  func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsCreateCall {
  4340  	c.ctx_ = ctx
  4341  	return c
  4342  }
  4343  
  4344  // Header returns a http.Header that can be modified by the caller to add
  4345  // headers to the request.
  4346  func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Header() http.Header {
  4347  	if c.header_ == nil {
  4348  		c.header_ = make(http.Header)
  4349  	}
  4350  	return c.header_
  4351  }
  4352  
  4353  func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
  4354  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4355  	var body io.Reader = nil
  4356  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig)
  4357  	if err != nil {
  4358  		return nil, err
  4359  	}
  4360  	c.urlParams_.Set("alt", alt)
  4361  	c.urlParams_.Set("prettyPrint", "false")
  4362  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/defaultSupportedIdpConfigs")
  4363  	urls += "?" + c.urlParams_.Encode()
  4364  	req, err := http.NewRequest("POST", urls, body)
  4365  	if err != nil {
  4366  		return nil, err
  4367  	}
  4368  	req.Header = reqHeaders
  4369  	googleapi.Expand(req.URL, map[string]string{
  4370  		"parent": c.parent,
  4371  	})
  4372  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4373  }
  4374  
  4375  // Do executes the "identitytoolkit.projects.defaultSupportedIdpConfigs.create" call.
  4376  // Any non-2xx status code is an error. Response headers are in either
  4377  // *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResponse.He
  4378  // ader or (if a response was returned at all) in
  4379  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4380  // whether the returned error was because http.StatusNotModified was returned.
  4381  func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
  4382  	gensupport.SetOptions(c.urlParams_, opts...)
  4383  	res, err := c.doRequest("json")
  4384  	if res != nil && res.StatusCode == http.StatusNotModified {
  4385  		if res.Body != nil {
  4386  			res.Body.Close()
  4387  		}
  4388  		return nil, gensupport.WrapError(&googleapi.Error{
  4389  			Code:   res.StatusCode,
  4390  			Header: res.Header,
  4391  		})
  4392  	}
  4393  	if err != nil {
  4394  		return nil, err
  4395  	}
  4396  	defer googleapi.CloseBody(res)
  4397  	if err := googleapi.CheckResponse(res); err != nil {
  4398  		return nil, gensupport.WrapError(err)
  4399  	}
  4400  	ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
  4401  		ServerResponse: googleapi.ServerResponse{
  4402  			Header:         res.Header,
  4403  			HTTPStatusCode: res.StatusCode,
  4404  		},
  4405  	}
  4406  	target := &ret
  4407  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4408  		return nil, err
  4409  	}
  4410  	return ret, nil
  4411  }
  4412  
  4413  type ProjectsDefaultSupportedIdpConfigsDeleteCall struct {
  4414  	s          *Service
  4415  	name       string
  4416  	urlParams_ gensupport.URLParams
  4417  	ctx_       context.Context
  4418  	header_    http.Header
  4419  }
  4420  
  4421  // Delete: Delete a default supported Idp configuration for an Identity Toolkit
  4422  // project.
  4423  //
  4424  //   - name: The resource name of the config, for example:
  4425  //     "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com".
  4426  func (r *ProjectsDefaultSupportedIdpConfigsService) Delete(name string) *ProjectsDefaultSupportedIdpConfigsDeleteCall {
  4427  	c := &ProjectsDefaultSupportedIdpConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4428  	c.name = name
  4429  	return c
  4430  }
  4431  
  4432  // Fields allows partial responses to be retrieved. See
  4433  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4434  // details.
  4435  func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsDeleteCall {
  4436  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4437  	return c
  4438  }
  4439  
  4440  // Context sets the context to be used in this call's Do method.
  4441  func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsDeleteCall {
  4442  	c.ctx_ = ctx
  4443  	return c
  4444  }
  4445  
  4446  // Header returns a http.Header that can be modified by the caller to add
  4447  // headers to the request.
  4448  func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) Header() http.Header {
  4449  	if c.header_ == nil {
  4450  		c.header_ = make(http.Header)
  4451  	}
  4452  	return c.header_
  4453  }
  4454  
  4455  func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
  4456  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4457  	var body io.Reader = nil
  4458  	c.urlParams_.Set("alt", alt)
  4459  	c.urlParams_.Set("prettyPrint", "false")
  4460  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  4461  	urls += "?" + c.urlParams_.Encode()
  4462  	req, err := http.NewRequest("DELETE", urls, body)
  4463  	if err != nil {
  4464  		return nil, err
  4465  	}
  4466  	req.Header = reqHeaders
  4467  	googleapi.Expand(req.URL, map[string]string{
  4468  		"name": c.name,
  4469  	})
  4470  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4471  }
  4472  
  4473  // Do executes the "identitytoolkit.projects.defaultSupportedIdpConfigs.delete" call.
  4474  // Any non-2xx status code is an error. Response headers are in either
  4475  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  4476  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  4477  // check whether the returned error was because http.StatusNotModified was
  4478  // returned.
  4479  func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  4480  	gensupport.SetOptions(c.urlParams_, opts...)
  4481  	res, err := c.doRequest("json")
  4482  	if res != nil && res.StatusCode == http.StatusNotModified {
  4483  		if res.Body != nil {
  4484  			res.Body.Close()
  4485  		}
  4486  		return nil, gensupport.WrapError(&googleapi.Error{
  4487  			Code:   res.StatusCode,
  4488  			Header: res.Header,
  4489  		})
  4490  	}
  4491  	if err != nil {
  4492  		return nil, err
  4493  	}
  4494  	defer googleapi.CloseBody(res)
  4495  	if err := googleapi.CheckResponse(res); err != nil {
  4496  		return nil, gensupport.WrapError(err)
  4497  	}
  4498  	ret := &GoogleProtobufEmpty{
  4499  		ServerResponse: googleapi.ServerResponse{
  4500  			Header:         res.Header,
  4501  			HTTPStatusCode: res.StatusCode,
  4502  		},
  4503  	}
  4504  	target := &ret
  4505  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4506  		return nil, err
  4507  	}
  4508  	return ret, nil
  4509  }
  4510  
  4511  type ProjectsDefaultSupportedIdpConfigsGetCall struct {
  4512  	s            *Service
  4513  	name         string
  4514  	urlParams_   gensupport.URLParams
  4515  	ifNoneMatch_ string
  4516  	ctx_         context.Context
  4517  	header_      http.Header
  4518  }
  4519  
  4520  // Get: Retrieve a default supported Idp configuration for an Identity Toolkit
  4521  // project.
  4522  //
  4523  //   - name: The resource name of the config, for example:
  4524  //     "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com".
  4525  func (r *ProjectsDefaultSupportedIdpConfigsService) Get(name string) *ProjectsDefaultSupportedIdpConfigsGetCall {
  4526  	c := &ProjectsDefaultSupportedIdpConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4527  	c.name = name
  4528  	return c
  4529  }
  4530  
  4531  // Fields allows partial responses to be retrieved. See
  4532  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4533  // details.
  4534  func (c *ProjectsDefaultSupportedIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsGetCall {
  4535  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4536  	return c
  4537  }
  4538  
  4539  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4540  // object's ETag matches the given value. This is useful for getting updates
  4541  // only after the object has changed since the last request.
  4542  func (c *ProjectsDefaultSupportedIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsDefaultSupportedIdpConfigsGetCall {
  4543  	c.ifNoneMatch_ = entityTag
  4544  	return c
  4545  }
  4546  
  4547  // Context sets the context to be used in this call's Do method.
  4548  func (c *ProjectsDefaultSupportedIdpConfigsGetCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsGetCall {
  4549  	c.ctx_ = ctx
  4550  	return c
  4551  }
  4552  
  4553  // Header returns a http.Header that can be modified by the caller to add
  4554  // headers to the request.
  4555  func (c *ProjectsDefaultSupportedIdpConfigsGetCall) Header() http.Header {
  4556  	if c.header_ == nil {
  4557  		c.header_ = make(http.Header)
  4558  	}
  4559  	return c.header_
  4560  }
  4561  
  4562  func (c *ProjectsDefaultSupportedIdpConfigsGetCall) doRequest(alt string) (*http.Response, error) {
  4563  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4564  	if c.ifNoneMatch_ != "" {
  4565  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4566  	}
  4567  	var body io.Reader = nil
  4568  	c.urlParams_.Set("alt", alt)
  4569  	c.urlParams_.Set("prettyPrint", "false")
  4570  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  4571  	urls += "?" + c.urlParams_.Encode()
  4572  	req, err := http.NewRequest("GET", urls, body)
  4573  	if err != nil {
  4574  		return nil, err
  4575  	}
  4576  	req.Header = reqHeaders
  4577  	googleapi.Expand(req.URL, map[string]string{
  4578  		"name": c.name,
  4579  	})
  4580  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4581  }
  4582  
  4583  // Do executes the "identitytoolkit.projects.defaultSupportedIdpConfigs.get" call.
  4584  // Any non-2xx status code is an error. Response headers are in either
  4585  // *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResponse.He
  4586  // ader or (if a response was returned at all) in
  4587  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4588  // whether the returned error was because http.StatusNotModified was returned.
  4589  func (c *ProjectsDefaultSupportedIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
  4590  	gensupport.SetOptions(c.urlParams_, opts...)
  4591  	res, err := c.doRequest("json")
  4592  	if res != nil && res.StatusCode == http.StatusNotModified {
  4593  		if res.Body != nil {
  4594  			res.Body.Close()
  4595  		}
  4596  		return nil, gensupport.WrapError(&googleapi.Error{
  4597  			Code:   res.StatusCode,
  4598  			Header: res.Header,
  4599  		})
  4600  	}
  4601  	if err != nil {
  4602  		return nil, err
  4603  	}
  4604  	defer googleapi.CloseBody(res)
  4605  	if err := googleapi.CheckResponse(res); err != nil {
  4606  		return nil, gensupport.WrapError(err)
  4607  	}
  4608  	ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
  4609  		ServerResponse: googleapi.ServerResponse{
  4610  			Header:         res.Header,
  4611  			HTTPStatusCode: res.StatusCode,
  4612  		},
  4613  	}
  4614  	target := &ret
  4615  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4616  		return nil, err
  4617  	}
  4618  	return ret, nil
  4619  }
  4620  
  4621  type ProjectsDefaultSupportedIdpConfigsListCall struct {
  4622  	s            *Service
  4623  	parent       string
  4624  	urlParams_   gensupport.URLParams
  4625  	ifNoneMatch_ string
  4626  	ctx_         context.Context
  4627  	header_      http.Header
  4628  }
  4629  
  4630  // List: List all default supported Idp configurations for an Identity Toolkit
  4631  // project.
  4632  //
  4633  //   - parent: The parent resource name, for example,
  4634  //     "projects/my-awesome-project".
  4635  func (r *ProjectsDefaultSupportedIdpConfigsService) List(parent string) *ProjectsDefaultSupportedIdpConfigsListCall {
  4636  	c := &ProjectsDefaultSupportedIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4637  	c.parent = parent
  4638  	return c
  4639  }
  4640  
  4641  // PageSize sets the optional parameter "pageSize": The maximum number of items
  4642  // to return.
  4643  func (c *ProjectsDefaultSupportedIdpConfigsListCall) PageSize(pageSize int64) *ProjectsDefaultSupportedIdpConfigsListCall {
  4644  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  4645  	return c
  4646  }
  4647  
  4648  // PageToken sets the optional parameter "pageToken": The next_page_token value
  4649  // returned from a previous List request, if any.
  4650  func (c *ProjectsDefaultSupportedIdpConfigsListCall) PageToken(pageToken string) *ProjectsDefaultSupportedIdpConfigsListCall {
  4651  	c.urlParams_.Set("pageToken", pageToken)
  4652  	return c
  4653  }
  4654  
  4655  // Fields allows partial responses to be retrieved. See
  4656  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4657  // details.
  4658  func (c *ProjectsDefaultSupportedIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsListCall {
  4659  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4660  	return c
  4661  }
  4662  
  4663  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4664  // object's ETag matches the given value. This is useful for getting updates
  4665  // only after the object has changed since the last request.
  4666  func (c *ProjectsDefaultSupportedIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsDefaultSupportedIdpConfigsListCall {
  4667  	c.ifNoneMatch_ = entityTag
  4668  	return c
  4669  }
  4670  
  4671  // Context sets the context to be used in this call's Do method.
  4672  func (c *ProjectsDefaultSupportedIdpConfigsListCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsListCall {
  4673  	c.ctx_ = ctx
  4674  	return c
  4675  }
  4676  
  4677  // Header returns a http.Header that can be modified by the caller to add
  4678  // headers to the request.
  4679  func (c *ProjectsDefaultSupportedIdpConfigsListCall) Header() http.Header {
  4680  	if c.header_ == nil {
  4681  		c.header_ = make(http.Header)
  4682  	}
  4683  	return c.header_
  4684  }
  4685  
  4686  func (c *ProjectsDefaultSupportedIdpConfigsListCall) doRequest(alt string) (*http.Response, error) {
  4687  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4688  	if c.ifNoneMatch_ != "" {
  4689  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4690  	}
  4691  	var body io.Reader = nil
  4692  	c.urlParams_.Set("alt", alt)
  4693  	c.urlParams_.Set("prettyPrint", "false")
  4694  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/defaultSupportedIdpConfigs")
  4695  	urls += "?" + c.urlParams_.Encode()
  4696  	req, err := http.NewRequest("GET", urls, body)
  4697  	if err != nil {
  4698  		return nil, err
  4699  	}
  4700  	req.Header = reqHeaders
  4701  	googleapi.Expand(req.URL, map[string]string{
  4702  		"parent": c.parent,
  4703  	})
  4704  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4705  }
  4706  
  4707  // Do executes the "identitytoolkit.projects.defaultSupportedIdpConfigs.list" call.
  4708  // Any non-2xx status code is an error. Response headers are in either
  4709  // *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse.Serv
  4710  // erResponse.Header or (if a response was returned at all) in
  4711  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4712  // whether the returned error was because http.StatusNotModified was returned.
  4713  func (c *ProjectsDefaultSupportedIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse, error) {
  4714  	gensupport.SetOptions(c.urlParams_, opts...)
  4715  	res, err := c.doRequest("json")
  4716  	if res != nil && res.StatusCode == http.StatusNotModified {
  4717  		if res.Body != nil {
  4718  			res.Body.Close()
  4719  		}
  4720  		return nil, gensupport.WrapError(&googleapi.Error{
  4721  			Code:   res.StatusCode,
  4722  			Header: res.Header,
  4723  		})
  4724  	}
  4725  	if err != nil {
  4726  		return nil, err
  4727  	}
  4728  	defer googleapi.CloseBody(res)
  4729  	if err := googleapi.CheckResponse(res); err != nil {
  4730  		return nil, gensupport.WrapError(err)
  4731  	}
  4732  	ret := &GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse{
  4733  		ServerResponse: googleapi.ServerResponse{
  4734  			Header:         res.Header,
  4735  			HTTPStatusCode: res.StatusCode,
  4736  		},
  4737  	}
  4738  	target := &ret
  4739  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4740  		return nil, err
  4741  	}
  4742  	return ret, nil
  4743  }
  4744  
  4745  // Pages invokes f for each page of results.
  4746  // A non-nil error returned from f will halt the iteration.
  4747  // The provided context supersedes any context provided to the Context method.
  4748  func (c *ProjectsDefaultSupportedIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse) error) error {
  4749  	c.ctx_ = ctx
  4750  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  4751  	for {
  4752  		x, err := c.Do()
  4753  		if err != nil {
  4754  			return err
  4755  		}
  4756  		if err := f(x); err != nil {
  4757  			return err
  4758  		}
  4759  		if x.NextPageToken == "" {
  4760  			return nil
  4761  		}
  4762  		c.PageToken(x.NextPageToken)
  4763  	}
  4764  }
  4765  
  4766  type ProjectsDefaultSupportedIdpConfigsPatchCall struct {
  4767  	s                                                          *Service
  4768  	name                                                       string
  4769  	googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
  4770  	urlParams_                                                 gensupport.URLParams
  4771  	ctx_                                                       context.Context
  4772  	header_                                                    http.Header
  4773  }
  4774  
  4775  // Patch: Update a default supported Idp configuration for an Identity Toolkit
  4776  // project.
  4777  //
  4778  //   - name: The name of the DefaultSupportedIdpConfig resource, for example:
  4779  //     "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com".
  4780  func (r *ProjectsDefaultSupportedIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsDefaultSupportedIdpConfigsPatchCall {
  4781  	c := &ProjectsDefaultSupportedIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4782  	c.name = name
  4783  	c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig
  4784  	return c
  4785  }
  4786  
  4787  // UpdateMask sets the optional parameter "updateMask": The update mask applies
  4788  // to the resource. For the `FieldMask` definition, see
  4789  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
  4790  func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsDefaultSupportedIdpConfigsPatchCall {
  4791  	c.urlParams_.Set("updateMask", updateMask)
  4792  	return c
  4793  }
  4794  
  4795  // Fields allows partial responses to be retrieved. See
  4796  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4797  // details.
  4798  func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsPatchCall {
  4799  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4800  	return c
  4801  }
  4802  
  4803  // Context sets the context to be used in this call's Do method.
  4804  func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsPatchCall {
  4805  	c.ctx_ = ctx
  4806  	return c
  4807  }
  4808  
  4809  // Header returns a http.Header that can be modified by the caller to add
  4810  // headers to the request.
  4811  func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) Header() http.Header {
  4812  	if c.header_ == nil {
  4813  		c.header_ = make(http.Header)
  4814  	}
  4815  	return c.header_
  4816  }
  4817  
  4818  func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
  4819  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4820  	var body io.Reader = nil
  4821  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig)
  4822  	if err != nil {
  4823  		return nil, err
  4824  	}
  4825  	c.urlParams_.Set("alt", alt)
  4826  	c.urlParams_.Set("prettyPrint", "false")
  4827  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  4828  	urls += "?" + c.urlParams_.Encode()
  4829  	req, err := http.NewRequest("PATCH", urls, body)
  4830  	if err != nil {
  4831  		return nil, err
  4832  	}
  4833  	req.Header = reqHeaders
  4834  	googleapi.Expand(req.URL, map[string]string{
  4835  		"name": c.name,
  4836  	})
  4837  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4838  }
  4839  
  4840  // Do executes the "identitytoolkit.projects.defaultSupportedIdpConfigs.patch" call.
  4841  // Any non-2xx status code is an error. Response headers are in either
  4842  // *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResponse.He
  4843  // ader or (if a response was returned at all) in
  4844  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4845  // whether the returned error was because http.StatusNotModified was returned.
  4846  func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
  4847  	gensupport.SetOptions(c.urlParams_, opts...)
  4848  	res, err := c.doRequest("json")
  4849  	if res != nil && res.StatusCode == http.StatusNotModified {
  4850  		if res.Body != nil {
  4851  			res.Body.Close()
  4852  		}
  4853  		return nil, gensupport.WrapError(&googleapi.Error{
  4854  			Code:   res.StatusCode,
  4855  			Header: res.Header,
  4856  		})
  4857  	}
  4858  	if err != nil {
  4859  		return nil, err
  4860  	}
  4861  	defer googleapi.CloseBody(res)
  4862  	if err := googleapi.CheckResponse(res); err != nil {
  4863  		return nil, gensupport.WrapError(err)
  4864  	}
  4865  	ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
  4866  		ServerResponse: googleapi.ServerResponse{
  4867  			Header:         res.Header,
  4868  			HTTPStatusCode: res.StatusCode,
  4869  		},
  4870  	}
  4871  	target := &ret
  4872  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4873  		return nil, err
  4874  	}
  4875  	return ret, nil
  4876  }
  4877  
  4878  type ProjectsIdentityPlatformInitializeAuthCall struct {
  4879  	s                                                                  *Service
  4880  	project                                                            string
  4881  	googlecloudidentitytoolkitadminv2initializeidentityplatformrequest *GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformRequest
  4882  	urlParams_                                                         gensupport.URLParams
  4883  	ctx_                                                               context.Context
  4884  	header_                                                            http.Header
  4885  }
  4886  
  4887  // InitializeAuth: Initialize Identity Platform for a Cloud project. Identity
  4888  // Platform is an end-to-end authentication system for third-party users to
  4889  // access your apps and services. These could include mobile/web apps, games,
  4890  // APIs and beyond. This is the publicly available variant of
  4891  // EnableIdentityPlatform that is only available to billing-enabled projects.
  4892  //
  4893  //   - project: The resource name of the target project the developer wants to
  4894  //     enable Identity Platform for.
  4895  func (r *ProjectsIdentityPlatformService) InitializeAuth(project string, googlecloudidentitytoolkitadminv2initializeidentityplatformrequest *GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformRequest) *ProjectsIdentityPlatformInitializeAuthCall {
  4896  	c := &ProjectsIdentityPlatformInitializeAuthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4897  	c.project = project
  4898  	c.googlecloudidentitytoolkitadminv2initializeidentityplatformrequest = googlecloudidentitytoolkitadminv2initializeidentityplatformrequest
  4899  	return c
  4900  }
  4901  
  4902  // Fields allows partial responses to be retrieved. See
  4903  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4904  // details.
  4905  func (c *ProjectsIdentityPlatformInitializeAuthCall) Fields(s ...googleapi.Field) *ProjectsIdentityPlatformInitializeAuthCall {
  4906  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4907  	return c
  4908  }
  4909  
  4910  // Context sets the context to be used in this call's Do method.
  4911  func (c *ProjectsIdentityPlatformInitializeAuthCall) Context(ctx context.Context) *ProjectsIdentityPlatformInitializeAuthCall {
  4912  	c.ctx_ = ctx
  4913  	return c
  4914  }
  4915  
  4916  // Header returns a http.Header that can be modified by the caller to add
  4917  // headers to the request.
  4918  func (c *ProjectsIdentityPlatformInitializeAuthCall) Header() http.Header {
  4919  	if c.header_ == nil {
  4920  		c.header_ = make(http.Header)
  4921  	}
  4922  	return c.header_
  4923  }
  4924  
  4925  func (c *ProjectsIdentityPlatformInitializeAuthCall) doRequest(alt string) (*http.Response, error) {
  4926  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4927  	var body io.Reader = nil
  4928  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2initializeidentityplatformrequest)
  4929  	if err != nil {
  4930  		return nil, err
  4931  	}
  4932  	c.urlParams_.Set("alt", alt)
  4933  	c.urlParams_.Set("prettyPrint", "false")
  4934  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+project}/identityPlatform:initializeAuth")
  4935  	urls += "?" + c.urlParams_.Encode()
  4936  	req, err := http.NewRequest("POST", urls, body)
  4937  	if err != nil {
  4938  		return nil, err
  4939  	}
  4940  	req.Header = reqHeaders
  4941  	googleapi.Expand(req.URL, map[string]string{
  4942  		"project": c.project,
  4943  	})
  4944  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4945  }
  4946  
  4947  // Do executes the "identitytoolkit.projects.identityPlatform.initializeAuth" call.
  4948  // Any non-2xx status code is an error. Response headers are in either
  4949  // *GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformResponse.ServerRe
  4950  // sponse.Header or (if a response was returned at all) in
  4951  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4952  // whether the returned error was because http.StatusNotModified was returned.
  4953  func (c *ProjectsIdentityPlatformInitializeAuthCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformResponse, error) {
  4954  	gensupport.SetOptions(c.urlParams_, opts...)
  4955  	res, err := c.doRequest("json")
  4956  	if res != nil && res.StatusCode == http.StatusNotModified {
  4957  		if res.Body != nil {
  4958  			res.Body.Close()
  4959  		}
  4960  		return nil, gensupport.WrapError(&googleapi.Error{
  4961  			Code:   res.StatusCode,
  4962  			Header: res.Header,
  4963  		})
  4964  	}
  4965  	if err != nil {
  4966  		return nil, err
  4967  	}
  4968  	defer googleapi.CloseBody(res)
  4969  	if err := googleapi.CheckResponse(res); err != nil {
  4970  		return nil, gensupport.WrapError(err)
  4971  	}
  4972  	ret := &GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformResponse{
  4973  		ServerResponse: googleapi.ServerResponse{
  4974  			Header:         res.Header,
  4975  			HTTPStatusCode: res.StatusCode,
  4976  		},
  4977  	}
  4978  	target := &ret
  4979  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4980  		return nil, err
  4981  	}
  4982  	return ret, nil
  4983  }
  4984  
  4985  type ProjectsInboundSamlConfigsCreateCall struct {
  4986  	s                                                  *Service
  4987  	parent                                             string
  4988  	googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
  4989  	urlParams_                                         gensupport.URLParams
  4990  	ctx_                                               context.Context
  4991  	header_                                            http.Header
  4992  }
  4993  
  4994  // Create: Create an inbound SAML configuration for an Identity Toolkit
  4995  // project.
  4996  //
  4997  //   - parent: The parent resource name where the config to be created, for
  4998  //     example: "projects/my-awesome-project".
  4999  func (r *ProjectsInboundSamlConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsInboundSamlConfigsCreateCall {
  5000  	c := &ProjectsInboundSamlConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5001  	c.parent = parent
  5002  	c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig
  5003  	return c
  5004  }
  5005  
  5006  // InboundSamlConfigId sets the optional parameter "inboundSamlConfigId": The
  5007  // id to use for this config.
  5008  func (c *ProjectsInboundSamlConfigsCreateCall) InboundSamlConfigId(inboundSamlConfigId string) *ProjectsInboundSamlConfigsCreateCall {
  5009  	c.urlParams_.Set("inboundSamlConfigId", inboundSamlConfigId)
  5010  	return c
  5011  }
  5012  
  5013  // Fields allows partial responses to be retrieved. See
  5014  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5015  // details.
  5016  func (c *ProjectsInboundSamlConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsCreateCall {
  5017  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5018  	return c
  5019  }
  5020  
  5021  // Context sets the context to be used in this call's Do method.
  5022  func (c *ProjectsInboundSamlConfigsCreateCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsCreateCall {
  5023  	c.ctx_ = ctx
  5024  	return c
  5025  }
  5026  
  5027  // Header returns a http.Header that can be modified by the caller to add
  5028  // headers to the request.
  5029  func (c *ProjectsInboundSamlConfigsCreateCall) Header() http.Header {
  5030  	if c.header_ == nil {
  5031  		c.header_ = make(http.Header)
  5032  	}
  5033  	return c.header_
  5034  }
  5035  
  5036  func (c *ProjectsInboundSamlConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
  5037  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5038  	var body io.Reader = nil
  5039  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2inboundsamlconfig)
  5040  	if err != nil {
  5041  		return nil, err
  5042  	}
  5043  	c.urlParams_.Set("alt", alt)
  5044  	c.urlParams_.Set("prettyPrint", "false")
  5045  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inboundSamlConfigs")
  5046  	urls += "?" + c.urlParams_.Encode()
  5047  	req, err := http.NewRequest("POST", urls, body)
  5048  	if err != nil {
  5049  		return nil, err
  5050  	}
  5051  	req.Header = reqHeaders
  5052  	googleapi.Expand(req.URL, map[string]string{
  5053  		"parent": c.parent,
  5054  	})
  5055  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5056  }
  5057  
  5058  // Do executes the "identitytoolkit.projects.inboundSamlConfigs.create" call.
  5059  // Any non-2xx status code is an error. Response headers are in either
  5060  // *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Header or
  5061  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  5062  // googleapi.IsNotModified to check whether the returned error was because
  5063  // http.StatusNotModified was returned.
  5064  func (c *ProjectsInboundSamlConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
  5065  	gensupport.SetOptions(c.urlParams_, opts...)
  5066  	res, err := c.doRequest("json")
  5067  	if res != nil && res.StatusCode == http.StatusNotModified {
  5068  		if res.Body != nil {
  5069  			res.Body.Close()
  5070  		}
  5071  		return nil, gensupport.WrapError(&googleapi.Error{
  5072  			Code:   res.StatusCode,
  5073  			Header: res.Header,
  5074  		})
  5075  	}
  5076  	if err != nil {
  5077  		return nil, err
  5078  	}
  5079  	defer googleapi.CloseBody(res)
  5080  	if err := googleapi.CheckResponse(res); err != nil {
  5081  		return nil, gensupport.WrapError(err)
  5082  	}
  5083  	ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
  5084  		ServerResponse: googleapi.ServerResponse{
  5085  			Header:         res.Header,
  5086  			HTTPStatusCode: res.StatusCode,
  5087  		},
  5088  	}
  5089  	target := &ret
  5090  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5091  		return nil, err
  5092  	}
  5093  	return ret, nil
  5094  }
  5095  
  5096  type ProjectsInboundSamlConfigsDeleteCall struct {
  5097  	s          *Service
  5098  	name       string
  5099  	urlParams_ gensupport.URLParams
  5100  	ctx_       context.Context
  5101  	header_    http.Header
  5102  }
  5103  
  5104  // Delete: Delete an inbound SAML configuration for an Identity Toolkit
  5105  // project.
  5106  //
  5107  //   - name: The resource name of the config to be deleted, for example:
  5108  //     'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.
  5109  func (r *ProjectsInboundSamlConfigsService) Delete(name string) *ProjectsInboundSamlConfigsDeleteCall {
  5110  	c := &ProjectsInboundSamlConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5111  	c.name = name
  5112  	return c
  5113  }
  5114  
  5115  // Fields allows partial responses to be retrieved. See
  5116  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5117  // details.
  5118  func (c *ProjectsInboundSamlConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsDeleteCall {
  5119  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5120  	return c
  5121  }
  5122  
  5123  // Context sets the context to be used in this call's Do method.
  5124  func (c *ProjectsInboundSamlConfigsDeleteCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsDeleteCall {
  5125  	c.ctx_ = ctx
  5126  	return c
  5127  }
  5128  
  5129  // Header returns a http.Header that can be modified by the caller to add
  5130  // headers to the request.
  5131  func (c *ProjectsInboundSamlConfigsDeleteCall) Header() http.Header {
  5132  	if c.header_ == nil {
  5133  		c.header_ = make(http.Header)
  5134  	}
  5135  	return c.header_
  5136  }
  5137  
  5138  func (c *ProjectsInboundSamlConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
  5139  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5140  	var body io.Reader = nil
  5141  	c.urlParams_.Set("alt", alt)
  5142  	c.urlParams_.Set("prettyPrint", "false")
  5143  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  5144  	urls += "?" + c.urlParams_.Encode()
  5145  	req, err := http.NewRequest("DELETE", urls, body)
  5146  	if err != nil {
  5147  		return nil, err
  5148  	}
  5149  	req.Header = reqHeaders
  5150  	googleapi.Expand(req.URL, map[string]string{
  5151  		"name": c.name,
  5152  	})
  5153  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5154  }
  5155  
  5156  // Do executes the "identitytoolkit.projects.inboundSamlConfigs.delete" call.
  5157  // Any non-2xx status code is an error. Response headers are in either
  5158  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  5159  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5160  // check whether the returned error was because http.StatusNotModified was
  5161  // returned.
  5162  func (c *ProjectsInboundSamlConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  5163  	gensupport.SetOptions(c.urlParams_, opts...)
  5164  	res, err := c.doRequest("json")
  5165  	if res != nil && res.StatusCode == http.StatusNotModified {
  5166  		if res.Body != nil {
  5167  			res.Body.Close()
  5168  		}
  5169  		return nil, gensupport.WrapError(&googleapi.Error{
  5170  			Code:   res.StatusCode,
  5171  			Header: res.Header,
  5172  		})
  5173  	}
  5174  	if err != nil {
  5175  		return nil, err
  5176  	}
  5177  	defer googleapi.CloseBody(res)
  5178  	if err := googleapi.CheckResponse(res); err != nil {
  5179  		return nil, gensupport.WrapError(err)
  5180  	}
  5181  	ret := &GoogleProtobufEmpty{
  5182  		ServerResponse: googleapi.ServerResponse{
  5183  			Header:         res.Header,
  5184  			HTTPStatusCode: res.StatusCode,
  5185  		},
  5186  	}
  5187  	target := &ret
  5188  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5189  		return nil, err
  5190  	}
  5191  	return ret, nil
  5192  }
  5193  
  5194  type ProjectsInboundSamlConfigsGetCall struct {
  5195  	s            *Service
  5196  	name         string
  5197  	urlParams_   gensupport.URLParams
  5198  	ifNoneMatch_ string
  5199  	ctx_         context.Context
  5200  	header_      http.Header
  5201  }
  5202  
  5203  // Get: Retrieve an inbound SAML configuration for an Identity Toolkit project.
  5204  //
  5205  //   - name: The resource name of the config, for example:
  5206  //     'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.
  5207  func (r *ProjectsInboundSamlConfigsService) Get(name string) *ProjectsInboundSamlConfigsGetCall {
  5208  	c := &ProjectsInboundSamlConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5209  	c.name = name
  5210  	return c
  5211  }
  5212  
  5213  // Fields allows partial responses to be retrieved. See
  5214  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5215  // details.
  5216  func (c *ProjectsInboundSamlConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsGetCall {
  5217  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5218  	return c
  5219  }
  5220  
  5221  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5222  // object's ETag matches the given value. This is useful for getting updates
  5223  // only after the object has changed since the last request.
  5224  func (c *ProjectsInboundSamlConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsInboundSamlConfigsGetCall {
  5225  	c.ifNoneMatch_ = entityTag
  5226  	return c
  5227  }
  5228  
  5229  // Context sets the context to be used in this call's Do method.
  5230  func (c *ProjectsInboundSamlConfigsGetCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsGetCall {
  5231  	c.ctx_ = ctx
  5232  	return c
  5233  }
  5234  
  5235  // Header returns a http.Header that can be modified by the caller to add
  5236  // headers to the request.
  5237  func (c *ProjectsInboundSamlConfigsGetCall) Header() http.Header {
  5238  	if c.header_ == nil {
  5239  		c.header_ = make(http.Header)
  5240  	}
  5241  	return c.header_
  5242  }
  5243  
  5244  func (c *ProjectsInboundSamlConfigsGetCall) doRequest(alt string) (*http.Response, error) {
  5245  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5246  	if c.ifNoneMatch_ != "" {
  5247  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5248  	}
  5249  	var body io.Reader = nil
  5250  	c.urlParams_.Set("alt", alt)
  5251  	c.urlParams_.Set("prettyPrint", "false")
  5252  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  5253  	urls += "?" + c.urlParams_.Encode()
  5254  	req, err := http.NewRequest("GET", urls, body)
  5255  	if err != nil {
  5256  		return nil, err
  5257  	}
  5258  	req.Header = reqHeaders
  5259  	googleapi.Expand(req.URL, map[string]string{
  5260  		"name": c.name,
  5261  	})
  5262  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5263  }
  5264  
  5265  // Do executes the "identitytoolkit.projects.inboundSamlConfigs.get" call.
  5266  // Any non-2xx status code is an error. Response headers are in either
  5267  // *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Header or
  5268  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  5269  // googleapi.IsNotModified to check whether the returned error was because
  5270  // http.StatusNotModified was returned.
  5271  func (c *ProjectsInboundSamlConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
  5272  	gensupport.SetOptions(c.urlParams_, opts...)
  5273  	res, err := c.doRequest("json")
  5274  	if res != nil && res.StatusCode == http.StatusNotModified {
  5275  		if res.Body != nil {
  5276  			res.Body.Close()
  5277  		}
  5278  		return nil, gensupport.WrapError(&googleapi.Error{
  5279  			Code:   res.StatusCode,
  5280  			Header: res.Header,
  5281  		})
  5282  	}
  5283  	if err != nil {
  5284  		return nil, err
  5285  	}
  5286  	defer googleapi.CloseBody(res)
  5287  	if err := googleapi.CheckResponse(res); err != nil {
  5288  		return nil, gensupport.WrapError(err)
  5289  	}
  5290  	ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
  5291  		ServerResponse: googleapi.ServerResponse{
  5292  			Header:         res.Header,
  5293  			HTTPStatusCode: res.StatusCode,
  5294  		},
  5295  	}
  5296  	target := &ret
  5297  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5298  		return nil, err
  5299  	}
  5300  	return ret, nil
  5301  }
  5302  
  5303  type ProjectsInboundSamlConfigsListCall struct {
  5304  	s            *Service
  5305  	parent       string
  5306  	urlParams_   gensupport.URLParams
  5307  	ifNoneMatch_ string
  5308  	ctx_         context.Context
  5309  	header_      http.Header
  5310  }
  5311  
  5312  // List: List all inbound SAML configurations for an Identity Toolkit project.
  5313  //
  5314  //   - parent: The parent resource name, for example,
  5315  //     "projects/my-awesome-project".
  5316  func (r *ProjectsInboundSamlConfigsService) List(parent string) *ProjectsInboundSamlConfigsListCall {
  5317  	c := &ProjectsInboundSamlConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5318  	c.parent = parent
  5319  	return c
  5320  }
  5321  
  5322  // PageSize sets the optional parameter "pageSize": The maximum number of items
  5323  // to return.
  5324  func (c *ProjectsInboundSamlConfigsListCall) PageSize(pageSize int64) *ProjectsInboundSamlConfigsListCall {
  5325  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5326  	return c
  5327  }
  5328  
  5329  // PageToken sets the optional parameter "pageToken": The next_page_token value
  5330  // returned from a previous List request, if any.
  5331  func (c *ProjectsInboundSamlConfigsListCall) PageToken(pageToken string) *ProjectsInboundSamlConfigsListCall {
  5332  	c.urlParams_.Set("pageToken", pageToken)
  5333  	return c
  5334  }
  5335  
  5336  // Fields allows partial responses to be retrieved. See
  5337  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5338  // details.
  5339  func (c *ProjectsInboundSamlConfigsListCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsListCall {
  5340  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5341  	return c
  5342  }
  5343  
  5344  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5345  // object's ETag matches the given value. This is useful for getting updates
  5346  // only after the object has changed since the last request.
  5347  func (c *ProjectsInboundSamlConfigsListCall) IfNoneMatch(entityTag string) *ProjectsInboundSamlConfigsListCall {
  5348  	c.ifNoneMatch_ = entityTag
  5349  	return c
  5350  }
  5351  
  5352  // Context sets the context to be used in this call's Do method.
  5353  func (c *ProjectsInboundSamlConfigsListCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsListCall {
  5354  	c.ctx_ = ctx
  5355  	return c
  5356  }
  5357  
  5358  // Header returns a http.Header that can be modified by the caller to add
  5359  // headers to the request.
  5360  func (c *ProjectsInboundSamlConfigsListCall) Header() http.Header {
  5361  	if c.header_ == nil {
  5362  		c.header_ = make(http.Header)
  5363  	}
  5364  	return c.header_
  5365  }
  5366  
  5367  func (c *ProjectsInboundSamlConfigsListCall) doRequest(alt string) (*http.Response, error) {
  5368  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5369  	if c.ifNoneMatch_ != "" {
  5370  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5371  	}
  5372  	var body io.Reader = nil
  5373  	c.urlParams_.Set("alt", alt)
  5374  	c.urlParams_.Set("prettyPrint", "false")
  5375  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inboundSamlConfigs")
  5376  	urls += "?" + c.urlParams_.Encode()
  5377  	req, err := http.NewRequest("GET", urls, body)
  5378  	if err != nil {
  5379  		return nil, err
  5380  	}
  5381  	req.Header = reqHeaders
  5382  	googleapi.Expand(req.URL, map[string]string{
  5383  		"parent": c.parent,
  5384  	})
  5385  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5386  }
  5387  
  5388  // Do executes the "identitytoolkit.projects.inboundSamlConfigs.list" call.
  5389  // Any non-2xx status code is an error. Response headers are in either
  5390  // *GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse.ServerRespon
  5391  // se.Header or (if a response was returned at all) in
  5392  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5393  // whether the returned error was because http.StatusNotModified was returned.
  5394  func (c *ProjectsInboundSamlConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse, error) {
  5395  	gensupport.SetOptions(c.urlParams_, opts...)
  5396  	res, err := c.doRequest("json")
  5397  	if res != nil && res.StatusCode == http.StatusNotModified {
  5398  		if res.Body != nil {
  5399  			res.Body.Close()
  5400  		}
  5401  		return nil, gensupport.WrapError(&googleapi.Error{
  5402  			Code:   res.StatusCode,
  5403  			Header: res.Header,
  5404  		})
  5405  	}
  5406  	if err != nil {
  5407  		return nil, err
  5408  	}
  5409  	defer googleapi.CloseBody(res)
  5410  	if err := googleapi.CheckResponse(res); err != nil {
  5411  		return nil, gensupport.WrapError(err)
  5412  	}
  5413  	ret := &GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse{
  5414  		ServerResponse: googleapi.ServerResponse{
  5415  			Header:         res.Header,
  5416  			HTTPStatusCode: res.StatusCode,
  5417  		},
  5418  	}
  5419  	target := &ret
  5420  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5421  		return nil, err
  5422  	}
  5423  	return ret, nil
  5424  }
  5425  
  5426  // Pages invokes f for each page of results.
  5427  // A non-nil error returned from f will halt the iteration.
  5428  // The provided context supersedes any context provided to the Context method.
  5429  func (c *ProjectsInboundSamlConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse) error) error {
  5430  	c.ctx_ = ctx
  5431  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5432  	for {
  5433  		x, err := c.Do()
  5434  		if err != nil {
  5435  			return err
  5436  		}
  5437  		if err := f(x); err != nil {
  5438  			return err
  5439  		}
  5440  		if x.NextPageToken == "" {
  5441  			return nil
  5442  		}
  5443  		c.PageToken(x.NextPageToken)
  5444  	}
  5445  }
  5446  
  5447  type ProjectsInboundSamlConfigsPatchCall struct {
  5448  	s                                                  *Service
  5449  	name                                               string
  5450  	googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
  5451  	urlParams_                                         gensupport.URLParams
  5452  	ctx_                                               context.Context
  5453  	header_                                            http.Header
  5454  }
  5455  
  5456  // Patch: Update an inbound SAML configuration for an Identity Toolkit project.
  5457  //
  5458  //   - name: The name of the InboundSamlConfig resource, for example:
  5459  //     'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. Ignored
  5460  //     during create requests.
  5461  func (r *ProjectsInboundSamlConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsInboundSamlConfigsPatchCall {
  5462  	c := &ProjectsInboundSamlConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5463  	c.name = name
  5464  	c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig
  5465  	return c
  5466  }
  5467  
  5468  // UpdateMask sets the optional parameter "updateMask": The update mask applies
  5469  // to the resource. Empty update mask will result in updating nothing. For the
  5470  // `FieldMask` definition, see
  5471  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
  5472  func (c *ProjectsInboundSamlConfigsPatchCall) UpdateMask(updateMask string) *ProjectsInboundSamlConfigsPatchCall {
  5473  	c.urlParams_.Set("updateMask", updateMask)
  5474  	return c
  5475  }
  5476  
  5477  // Fields allows partial responses to be retrieved. See
  5478  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5479  // details.
  5480  func (c *ProjectsInboundSamlConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsPatchCall {
  5481  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5482  	return c
  5483  }
  5484  
  5485  // Context sets the context to be used in this call's Do method.
  5486  func (c *ProjectsInboundSamlConfigsPatchCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsPatchCall {
  5487  	c.ctx_ = ctx
  5488  	return c
  5489  }
  5490  
  5491  // Header returns a http.Header that can be modified by the caller to add
  5492  // headers to the request.
  5493  func (c *ProjectsInboundSamlConfigsPatchCall) Header() http.Header {
  5494  	if c.header_ == nil {
  5495  		c.header_ = make(http.Header)
  5496  	}
  5497  	return c.header_
  5498  }
  5499  
  5500  func (c *ProjectsInboundSamlConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
  5501  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5502  	var body io.Reader = nil
  5503  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2inboundsamlconfig)
  5504  	if err != nil {
  5505  		return nil, err
  5506  	}
  5507  	c.urlParams_.Set("alt", alt)
  5508  	c.urlParams_.Set("prettyPrint", "false")
  5509  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  5510  	urls += "?" + c.urlParams_.Encode()
  5511  	req, err := http.NewRequest("PATCH", urls, body)
  5512  	if err != nil {
  5513  		return nil, err
  5514  	}
  5515  	req.Header = reqHeaders
  5516  	googleapi.Expand(req.URL, map[string]string{
  5517  		"name": c.name,
  5518  	})
  5519  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5520  }
  5521  
  5522  // Do executes the "identitytoolkit.projects.inboundSamlConfigs.patch" call.
  5523  // Any non-2xx status code is an error. Response headers are in either
  5524  // *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Header or
  5525  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  5526  // googleapi.IsNotModified to check whether the returned error was because
  5527  // http.StatusNotModified was returned.
  5528  func (c *ProjectsInboundSamlConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
  5529  	gensupport.SetOptions(c.urlParams_, opts...)
  5530  	res, err := c.doRequest("json")
  5531  	if res != nil && res.StatusCode == http.StatusNotModified {
  5532  		if res.Body != nil {
  5533  			res.Body.Close()
  5534  		}
  5535  		return nil, gensupport.WrapError(&googleapi.Error{
  5536  			Code:   res.StatusCode,
  5537  			Header: res.Header,
  5538  		})
  5539  	}
  5540  	if err != nil {
  5541  		return nil, err
  5542  	}
  5543  	defer googleapi.CloseBody(res)
  5544  	if err := googleapi.CheckResponse(res); err != nil {
  5545  		return nil, gensupport.WrapError(err)
  5546  	}
  5547  	ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
  5548  		ServerResponse: googleapi.ServerResponse{
  5549  			Header:         res.Header,
  5550  			HTTPStatusCode: res.StatusCode,
  5551  		},
  5552  	}
  5553  	target := &ret
  5554  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5555  		return nil, err
  5556  	}
  5557  	return ret, nil
  5558  }
  5559  
  5560  type ProjectsOauthIdpConfigsCreateCall struct {
  5561  	s                                               *Service
  5562  	parent                                          string
  5563  	googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
  5564  	urlParams_                                      gensupport.URLParams
  5565  	ctx_                                            context.Context
  5566  	header_                                         http.Header
  5567  }
  5568  
  5569  // Create: Create an Oidc Idp configuration for an Identity Toolkit project.
  5570  //
  5571  //   - parent: The parent resource name where the config to be created, for
  5572  //     example: "projects/my-awesome-project".
  5573  func (r *ProjectsOauthIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsOauthIdpConfigsCreateCall {
  5574  	c := &ProjectsOauthIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5575  	c.parent = parent
  5576  	c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig
  5577  	return c
  5578  }
  5579  
  5580  // OauthIdpConfigId sets the optional parameter "oauthIdpConfigId": The id to
  5581  // use for this config.
  5582  func (c *ProjectsOauthIdpConfigsCreateCall) OauthIdpConfigId(oauthIdpConfigId string) *ProjectsOauthIdpConfigsCreateCall {
  5583  	c.urlParams_.Set("oauthIdpConfigId", oauthIdpConfigId)
  5584  	return c
  5585  }
  5586  
  5587  // Fields allows partial responses to be retrieved. See
  5588  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5589  // details.
  5590  func (c *ProjectsOauthIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsCreateCall {
  5591  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5592  	return c
  5593  }
  5594  
  5595  // Context sets the context to be used in this call's Do method.
  5596  func (c *ProjectsOauthIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsCreateCall {
  5597  	c.ctx_ = ctx
  5598  	return c
  5599  }
  5600  
  5601  // Header returns a http.Header that can be modified by the caller to add
  5602  // headers to the request.
  5603  func (c *ProjectsOauthIdpConfigsCreateCall) Header() http.Header {
  5604  	if c.header_ == nil {
  5605  		c.header_ = make(http.Header)
  5606  	}
  5607  	return c.header_
  5608  }
  5609  
  5610  func (c *ProjectsOauthIdpConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
  5611  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5612  	var body io.Reader = nil
  5613  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2oauthidpconfig)
  5614  	if err != nil {
  5615  		return nil, err
  5616  	}
  5617  	c.urlParams_.Set("alt", alt)
  5618  	c.urlParams_.Set("prettyPrint", "false")
  5619  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/oauthIdpConfigs")
  5620  	urls += "?" + c.urlParams_.Encode()
  5621  	req, err := http.NewRequest("POST", urls, body)
  5622  	if err != nil {
  5623  		return nil, err
  5624  	}
  5625  	req.Header = reqHeaders
  5626  	googleapi.Expand(req.URL, map[string]string{
  5627  		"parent": c.parent,
  5628  	})
  5629  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5630  }
  5631  
  5632  // Do executes the "identitytoolkit.projects.oauthIdpConfigs.create" call.
  5633  // Any non-2xx status code is an error. Response headers are in either
  5634  // *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.ServerResponse.Header or
  5635  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  5636  // googleapi.IsNotModified to check whether the returned error was because
  5637  // http.StatusNotModified was returned.
  5638  func (c *ProjectsOauthIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
  5639  	gensupport.SetOptions(c.urlParams_, opts...)
  5640  	res, err := c.doRequest("json")
  5641  	if res != nil && res.StatusCode == http.StatusNotModified {
  5642  		if res.Body != nil {
  5643  			res.Body.Close()
  5644  		}
  5645  		return nil, gensupport.WrapError(&googleapi.Error{
  5646  			Code:   res.StatusCode,
  5647  			Header: res.Header,
  5648  		})
  5649  	}
  5650  	if err != nil {
  5651  		return nil, err
  5652  	}
  5653  	defer googleapi.CloseBody(res)
  5654  	if err := googleapi.CheckResponse(res); err != nil {
  5655  		return nil, gensupport.WrapError(err)
  5656  	}
  5657  	ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
  5658  		ServerResponse: googleapi.ServerResponse{
  5659  			Header:         res.Header,
  5660  			HTTPStatusCode: res.StatusCode,
  5661  		},
  5662  	}
  5663  	target := &ret
  5664  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5665  		return nil, err
  5666  	}
  5667  	return ret, nil
  5668  }
  5669  
  5670  type ProjectsOauthIdpConfigsDeleteCall struct {
  5671  	s          *Service
  5672  	name       string
  5673  	urlParams_ gensupport.URLParams
  5674  	ctx_       context.Context
  5675  	header_    http.Header
  5676  }
  5677  
  5678  // Delete: Delete an Oidc Idp configuration for an Identity Toolkit project.
  5679  //
  5680  //   - name: The resource name of the config to be deleted, for example:
  5681  //     'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.
  5682  func (r *ProjectsOauthIdpConfigsService) Delete(name string) *ProjectsOauthIdpConfigsDeleteCall {
  5683  	c := &ProjectsOauthIdpConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5684  	c.name = name
  5685  	return c
  5686  }
  5687  
  5688  // Fields allows partial responses to be retrieved. See
  5689  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5690  // details.
  5691  func (c *ProjectsOauthIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsDeleteCall {
  5692  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5693  	return c
  5694  }
  5695  
  5696  // Context sets the context to be used in this call's Do method.
  5697  func (c *ProjectsOauthIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsDeleteCall {
  5698  	c.ctx_ = ctx
  5699  	return c
  5700  }
  5701  
  5702  // Header returns a http.Header that can be modified by the caller to add
  5703  // headers to the request.
  5704  func (c *ProjectsOauthIdpConfigsDeleteCall) Header() http.Header {
  5705  	if c.header_ == nil {
  5706  		c.header_ = make(http.Header)
  5707  	}
  5708  	return c.header_
  5709  }
  5710  
  5711  func (c *ProjectsOauthIdpConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
  5712  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5713  	var body io.Reader = nil
  5714  	c.urlParams_.Set("alt", alt)
  5715  	c.urlParams_.Set("prettyPrint", "false")
  5716  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  5717  	urls += "?" + c.urlParams_.Encode()
  5718  	req, err := http.NewRequest("DELETE", urls, body)
  5719  	if err != nil {
  5720  		return nil, err
  5721  	}
  5722  	req.Header = reqHeaders
  5723  	googleapi.Expand(req.URL, map[string]string{
  5724  		"name": c.name,
  5725  	})
  5726  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5727  }
  5728  
  5729  // Do executes the "identitytoolkit.projects.oauthIdpConfigs.delete" call.
  5730  // Any non-2xx status code is an error. Response headers are in either
  5731  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  5732  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5733  // check whether the returned error was because http.StatusNotModified was
  5734  // returned.
  5735  func (c *ProjectsOauthIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  5736  	gensupport.SetOptions(c.urlParams_, opts...)
  5737  	res, err := c.doRequest("json")
  5738  	if res != nil && res.StatusCode == http.StatusNotModified {
  5739  		if res.Body != nil {
  5740  			res.Body.Close()
  5741  		}
  5742  		return nil, gensupport.WrapError(&googleapi.Error{
  5743  			Code:   res.StatusCode,
  5744  			Header: res.Header,
  5745  		})
  5746  	}
  5747  	if err != nil {
  5748  		return nil, err
  5749  	}
  5750  	defer googleapi.CloseBody(res)
  5751  	if err := googleapi.CheckResponse(res); err != nil {
  5752  		return nil, gensupport.WrapError(err)
  5753  	}
  5754  	ret := &GoogleProtobufEmpty{
  5755  		ServerResponse: googleapi.ServerResponse{
  5756  			Header:         res.Header,
  5757  			HTTPStatusCode: res.StatusCode,
  5758  		},
  5759  	}
  5760  	target := &ret
  5761  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5762  		return nil, err
  5763  	}
  5764  	return ret, nil
  5765  }
  5766  
  5767  type ProjectsOauthIdpConfigsGetCall struct {
  5768  	s            *Service
  5769  	name         string
  5770  	urlParams_   gensupport.URLParams
  5771  	ifNoneMatch_ string
  5772  	ctx_         context.Context
  5773  	header_      http.Header
  5774  }
  5775  
  5776  // Get: Retrieve an Oidc Idp configuration for an Identity Toolkit project.
  5777  //
  5778  //   - name: The resource name of the config, for example:
  5779  //     'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.
  5780  func (r *ProjectsOauthIdpConfigsService) Get(name string) *ProjectsOauthIdpConfigsGetCall {
  5781  	c := &ProjectsOauthIdpConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5782  	c.name = name
  5783  	return c
  5784  }
  5785  
  5786  // Fields allows partial responses to be retrieved. See
  5787  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5788  // details.
  5789  func (c *ProjectsOauthIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsGetCall {
  5790  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5791  	return c
  5792  }
  5793  
  5794  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5795  // object's ETag matches the given value. This is useful for getting updates
  5796  // only after the object has changed since the last request.
  5797  func (c *ProjectsOauthIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsOauthIdpConfigsGetCall {
  5798  	c.ifNoneMatch_ = entityTag
  5799  	return c
  5800  }
  5801  
  5802  // Context sets the context to be used in this call's Do method.
  5803  func (c *ProjectsOauthIdpConfigsGetCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsGetCall {
  5804  	c.ctx_ = ctx
  5805  	return c
  5806  }
  5807  
  5808  // Header returns a http.Header that can be modified by the caller to add
  5809  // headers to the request.
  5810  func (c *ProjectsOauthIdpConfigsGetCall) Header() http.Header {
  5811  	if c.header_ == nil {
  5812  		c.header_ = make(http.Header)
  5813  	}
  5814  	return c.header_
  5815  }
  5816  
  5817  func (c *ProjectsOauthIdpConfigsGetCall) doRequest(alt string) (*http.Response, error) {
  5818  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5819  	if c.ifNoneMatch_ != "" {
  5820  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5821  	}
  5822  	var body io.Reader = nil
  5823  	c.urlParams_.Set("alt", alt)
  5824  	c.urlParams_.Set("prettyPrint", "false")
  5825  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  5826  	urls += "?" + c.urlParams_.Encode()
  5827  	req, err := http.NewRequest("GET", urls, body)
  5828  	if err != nil {
  5829  		return nil, err
  5830  	}
  5831  	req.Header = reqHeaders
  5832  	googleapi.Expand(req.URL, map[string]string{
  5833  		"name": c.name,
  5834  	})
  5835  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5836  }
  5837  
  5838  // Do executes the "identitytoolkit.projects.oauthIdpConfigs.get" call.
  5839  // Any non-2xx status code is an error. Response headers are in either
  5840  // *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.ServerResponse.Header or
  5841  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  5842  // googleapi.IsNotModified to check whether the returned error was because
  5843  // http.StatusNotModified was returned.
  5844  func (c *ProjectsOauthIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
  5845  	gensupport.SetOptions(c.urlParams_, opts...)
  5846  	res, err := c.doRequest("json")
  5847  	if res != nil && res.StatusCode == http.StatusNotModified {
  5848  		if res.Body != nil {
  5849  			res.Body.Close()
  5850  		}
  5851  		return nil, gensupport.WrapError(&googleapi.Error{
  5852  			Code:   res.StatusCode,
  5853  			Header: res.Header,
  5854  		})
  5855  	}
  5856  	if err != nil {
  5857  		return nil, err
  5858  	}
  5859  	defer googleapi.CloseBody(res)
  5860  	if err := googleapi.CheckResponse(res); err != nil {
  5861  		return nil, gensupport.WrapError(err)
  5862  	}
  5863  	ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
  5864  		ServerResponse: googleapi.ServerResponse{
  5865  			Header:         res.Header,
  5866  			HTTPStatusCode: res.StatusCode,
  5867  		},
  5868  	}
  5869  	target := &ret
  5870  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5871  		return nil, err
  5872  	}
  5873  	return ret, nil
  5874  }
  5875  
  5876  type ProjectsOauthIdpConfigsListCall struct {
  5877  	s            *Service
  5878  	parent       string
  5879  	urlParams_   gensupport.URLParams
  5880  	ifNoneMatch_ string
  5881  	ctx_         context.Context
  5882  	header_      http.Header
  5883  }
  5884  
  5885  // List: List all Oidc Idp configurations for an Identity Toolkit project.
  5886  //
  5887  //   - parent: The parent resource name, for example,
  5888  //     "projects/my-awesome-project".
  5889  func (r *ProjectsOauthIdpConfigsService) List(parent string) *ProjectsOauthIdpConfigsListCall {
  5890  	c := &ProjectsOauthIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5891  	c.parent = parent
  5892  	return c
  5893  }
  5894  
  5895  // PageSize sets the optional parameter "pageSize": The maximum number of items
  5896  // to return.
  5897  func (c *ProjectsOauthIdpConfigsListCall) PageSize(pageSize int64) *ProjectsOauthIdpConfigsListCall {
  5898  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5899  	return c
  5900  }
  5901  
  5902  // PageToken sets the optional parameter "pageToken": The next_page_token value
  5903  // returned from a previous List request, if any.
  5904  func (c *ProjectsOauthIdpConfigsListCall) PageToken(pageToken string) *ProjectsOauthIdpConfigsListCall {
  5905  	c.urlParams_.Set("pageToken", pageToken)
  5906  	return c
  5907  }
  5908  
  5909  // Fields allows partial responses to be retrieved. See
  5910  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5911  // details.
  5912  func (c *ProjectsOauthIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsListCall {
  5913  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5914  	return c
  5915  }
  5916  
  5917  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5918  // object's ETag matches the given value. This is useful for getting updates
  5919  // only after the object has changed since the last request.
  5920  func (c *ProjectsOauthIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsOauthIdpConfigsListCall {
  5921  	c.ifNoneMatch_ = entityTag
  5922  	return c
  5923  }
  5924  
  5925  // Context sets the context to be used in this call's Do method.
  5926  func (c *ProjectsOauthIdpConfigsListCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsListCall {
  5927  	c.ctx_ = ctx
  5928  	return c
  5929  }
  5930  
  5931  // Header returns a http.Header that can be modified by the caller to add
  5932  // headers to the request.
  5933  func (c *ProjectsOauthIdpConfigsListCall) Header() http.Header {
  5934  	if c.header_ == nil {
  5935  		c.header_ = make(http.Header)
  5936  	}
  5937  	return c.header_
  5938  }
  5939  
  5940  func (c *ProjectsOauthIdpConfigsListCall) doRequest(alt string) (*http.Response, error) {
  5941  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5942  	if c.ifNoneMatch_ != "" {
  5943  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5944  	}
  5945  	var body io.Reader = nil
  5946  	c.urlParams_.Set("alt", alt)
  5947  	c.urlParams_.Set("prettyPrint", "false")
  5948  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/oauthIdpConfigs")
  5949  	urls += "?" + c.urlParams_.Encode()
  5950  	req, err := http.NewRequest("GET", urls, body)
  5951  	if err != nil {
  5952  		return nil, err
  5953  	}
  5954  	req.Header = reqHeaders
  5955  	googleapi.Expand(req.URL, map[string]string{
  5956  		"parent": c.parent,
  5957  	})
  5958  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5959  }
  5960  
  5961  // Do executes the "identitytoolkit.projects.oauthIdpConfigs.list" call.
  5962  // Any non-2xx status code is an error. Response headers are in either
  5963  // *GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse.ServerResponse.
  5964  // Header or (if a response was returned at all) in
  5965  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5966  // whether the returned error was because http.StatusNotModified was returned.
  5967  func (c *ProjectsOauthIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse, error) {
  5968  	gensupport.SetOptions(c.urlParams_, opts...)
  5969  	res, err := c.doRequest("json")
  5970  	if res != nil && res.StatusCode == http.StatusNotModified {
  5971  		if res.Body != nil {
  5972  			res.Body.Close()
  5973  		}
  5974  		return nil, gensupport.WrapError(&googleapi.Error{
  5975  			Code:   res.StatusCode,
  5976  			Header: res.Header,
  5977  		})
  5978  	}
  5979  	if err != nil {
  5980  		return nil, err
  5981  	}
  5982  	defer googleapi.CloseBody(res)
  5983  	if err := googleapi.CheckResponse(res); err != nil {
  5984  		return nil, gensupport.WrapError(err)
  5985  	}
  5986  	ret := &GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse{
  5987  		ServerResponse: googleapi.ServerResponse{
  5988  			Header:         res.Header,
  5989  			HTTPStatusCode: res.StatusCode,
  5990  		},
  5991  	}
  5992  	target := &ret
  5993  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5994  		return nil, err
  5995  	}
  5996  	return ret, nil
  5997  }
  5998  
  5999  // Pages invokes f for each page of results.
  6000  // A non-nil error returned from f will halt the iteration.
  6001  // The provided context supersedes any context provided to the Context method.
  6002  func (c *ProjectsOauthIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse) error) error {
  6003  	c.ctx_ = ctx
  6004  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6005  	for {
  6006  		x, err := c.Do()
  6007  		if err != nil {
  6008  			return err
  6009  		}
  6010  		if err := f(x); err != nil {
  6011  			return err
  6012  		}
  6013  		if x.NextPageToken == "" {
  6014  			return nil
  6015  		}
  6016  		c.PageToken(x.NextPageToken)
  6017  	}
  6018  }
  6019  
  6020  type ProjectsOauthIdpConfigsPatchCall struct {
  6021  	s                                               *Service
  6022  	name                                            string
  6023  	googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
  6024  	urlParams_                                      gensupport.URLParams
  6025  	ctx_                                            context.Context
  6026  	header_                                         http.Header
  6027  }
  6028  
  6029  // Patch: Update an Oidc Idp configuration for an Identity Toolkit project.
  6030  //
  6031  //   - name: The name of the OAuthIdpConfig resource, for example:
  6032  //     'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. Ignored
  6033  //     during create requests.
  6034  func (r *ProjectsOauthIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsOauthIdpConfigsPatchCall {
  6035  	c := &ProjectsOauthIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6036  	c.name = name
  6037  	c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig
  6038  	return c
  6039  }
  6040  
  6041  // UpdateMask sets the optional parameter "updateMask": The update mask applies
  6042  // to the resource. Empty update mask will result in updating nothing. For the
  6043  // `FieldMask` definition, see
  6044  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
  6045  func (c *ProjectsOauthIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsOauthIdpConfigsPatchCall {
  6046  	c.urlParams_.Set("updateMask", updateMask)
  6047  	return c
  6048  }
  6049  
  6050  // Fields allows partial responses to be retrieved. See
  6051  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6052  // details.
  6053  func (c *ProjectsOauthIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsPatchCall {
  6054  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6055  	return c
  6056  }
  6057  
  6058  // Context sets the context to be used in this call's Do method.
  6059  func (c *ProjectsOauthIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsPatchCall {
  6060  	c.ctx_ = ctx
  6061  	return c
  6062  }
  6063  
  6064  // Header returns a http.Header that can be modified by the caller to add
  6065  // headers to the request.
  6066  func (c *ProjectsOauthIdpConfigsPatchCall) Header() http.Header {
  6067  	if c.header_ == nil {
  6068  		c.header_ = make(http.Header)
  6069  	}
  6070  	return c.header_
  6071  }
  6072  
  6073  func (c *ProjectsOauthIdpConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
  6074  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6075  	var body io.Reader = nil
  6076  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2oauthidpconfig)
  6077  	if err != nil {
  6078  		return nil, err
  6079  	}
  6080  	c.urlParams_.Set("alt", alt)
  6081  	c.urlParams_.Set("prettyPrint", "false")
  6082  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  6083  	urls += "?" + c.urlParams_.Encode()
  6084  	req, err := http.NewRequest("PATCH", urls, body)
  6085  	if err != nil {
  6086  		return nil, err
  6087  	}
  6088  	req.Header = reqHeaders
  6089  	googleapi.Expand(req.URL, map[string]string{
  6090  		"name": c.name,
  6091  	})
  6092  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6093  }
  6094  
  6095  // Do executes the "identitytoolkit.projects.oauthIdpConfigs.patch" call.
  6096  // Any non-2xx status code is an error. Response headers are in either
  6097  // *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.ServerResponse.Header or
  6098  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  6099  // googleapi.IsNotModified to check whether the returned error was because
  6100  // http.StatusNotModified was returned.
  6101  func (c *ProjectsOauthIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
  6102  	gensupport.SetOptions(c.urlParams_, opts...)
  6103  	res, err := c.doRequest("json")
  6104  	if res != nil && res.StatusCode == http.StatusNotModified {
  6105  		if res.Body != nil {
  6106  			res.Body.Close()
  6107  		}
  6108  		return nil, gensupport.WrapError(&googleapi.Error{
  6109  			Code:   res.StatusCode,
  6110  			Header: res.Header,
  6111  		})
  6112  	}
  6113  	if err != nil {
  6114  		return nil, err
  6115  	}
  6116  	defer googleapi.CloseBody(res)
  6117  	if err := googleapi.CheckResponse(res); err != nil {
  6118  		return nil, gensupport.WrapError(err)
  6119  	}
  6120  	ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
  6121  		ServerResponse: googleapi.ServerResponse{
  6122  			Header:         res.Header,
  6123  			HTTPStatusCode: res.StatusCode,
  6124  		},
  6125  	}
  6126  	target := &ret
  6127  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6128  		return nil, err
  6129  	}
  6130  	return ret, nil
  6131  }
  6132  
  6133  type ProjectsTenantsCreateCall struct {
  6134  	s                                       *Service
  6135  	parent                                  string
  6136  	googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant
  6137  	urlParams_                              gensupport.URLParams
  6138  	ctx_                                    context.Context
  6139  	header_                                 http.Header
  6140  }
  6141  
  6142  // Create: Create a tenant. Requires write permission on the Agent project.
  6143  //
  6144  //   - parent: The parent resource name where the tenant will be created. For
  6145  //     example, "projects/project1".
  6146  func (r *ProjectsTenantsService) Create(parent string, googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant) *ProjectsTenantsCreateCall {
  6147  	c := &ProjectsTenantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6148  	c.parent = parent
  6149  	c.googlecloudidentitytoolkitadminv2tenant = googlecloudidentitytoolkitadminv2tenant
  6150  	return c
  6151  }
  6152  
  6153  // Fields allows partial responses to be retrieved. See
  6154  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6155  // details.
  6156  func (c *ProjectsTenantsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsCreateCall {
  6157  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6158  	return c
  6159  }
  6160  
  6161  // Context sets the context to be used in this call's Do method.
  6162  func (c *ProjectsTenantsCreateCall) Context(ctx context.Context) *ProjectsTenantsCreateCall {
  6163  	c.ctx_ = ctx
  6164  	return c
  6165  }
  6166  
  6167  // Header returns a http.Header that can be modified by the caller to add
  6168  // headers to the request.
  6169  func (c *ProjectsTenantsCreateCall) Header() http.Header {
  6170  	if c.header_ == nil {
  6171  		c.header_ = make(http.Header)
  6172  	}
  6173  	return c.header_
  6174  }
  6175  
  6176  func (c *ProjectsTenantsCreateCall) doRequest(alt string) (*http.Response, error) {
  6177  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6178  	var body io.Reader = nil
  6179  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2tenant)
  6180  	if err != nil {
  6181  		return nil, err
  6182  	}
  6183  	c.urlParams_.Set("alt", alt)
  6184  	c.urlParams_.Set("prettyPrint", "false")
  6185  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/tenants")
  6186  	urls += "?" + c.urlParams_.Encode()
  6187  	req, err := http.NewRequest("POST", urls, body)
  6188  	if err != nil {
  6189  		return nil, err
  6190  	}
  6191  	req.Header = reqHeaders
  6192  	googleapi.Expand(req.URL, map[string]string{
  6193  		"parent": c.parent,
  6194  	})
  6195  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6196  }
  6197  
  6198  // Do executes the "identitytoolkit.projects.tenants.create" call.
  6199  // Any non-2xx status code is an error. Response headers are in either
  6200  // *GoogleCloudIdentitytoolkitAdminV2Tenant.ServerResponse.Header or (if a
  6201  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6202  // googleapi.IsNotModified to check whether the returned error was because
  6203  // http.StatusNotModified was returned.
  6204  func (c *ProjectsTenantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Tenant, error) {
  6205  	gensupport.SetOptions(c.urlParams_, opts...)
  6206  	res, err := c.doRequest("json")
  6207  	if res != nil && res.StatusCode == http.StatusNotModified {
  6208  		if res.Body != nil {
  6209  			res.Body.Close()
  6210  		}
  6211  		return nil, gensupport.WrapError(&googleapi.Error{
  6212  			Code:   res.StatusCode,
  6213  			Header: res.Header,
  6214  		})
  6215  	}
  6216  	if err != nil {
  6217  		return nil, err
  6218  	}
  6219  	defer googleapi.CloseBody(res)
  6220  	if err := googleapi.CheckResponse(res); err != nil {
  6221  		return nil, gensupport.WrapError(err)
  6222  	}
  6223  	ret := &GoogleCloudIdentitytoolkitAdminV2Tenant{
  6224  		ServerResponse: googleapi.ServerResponse{
  6225  			Header:         res.Header,
  6226  			HTTPStatusCode: res.StatusCode,
  6227  		},
  6228  	}
  6229  	target := &ret
  6230  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6231  		return nil, err
  6232  	}
  6233  	return ret, nil
  6234  }
  6235  
  6236  type ProjectsTenantsDeleteCall struct {
  6237  	s          *Service
  6238  	name       string
  6239  	urlParams_ gensupport.URLParams
  6240  	ctx_       context.Context
  6241  	header_    http.Header
  6242  }
  6243  
  6244  // Delete: Delete a tenant. Requires write permission on the Agent project.
  6245  //
  6246  // - name: Resource name of the tenant to delete.
  6247  func (r *ProjectsTenantsService) Delete(name string) *ProjectsTenantsDeleteCall {
  6248  	c := &ProjectsTenantsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6249  	c.name = name
  6250  	return c
  6251  }
  6252  
  6253  // Fields allows partial responses to be retrieved. See
  6254  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6255  // details.
  6256  func (c *ProjectsTenantsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsDeleteCall {
  6257  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6258  	return c
  6259  }
  6260  
  6261  // Context sets the context to be used in this call's Do method.
  6262  func (c *ProjectsTenantsDeleteCall) Context(ctx context.Context) *ProjectsTenantsDeleteCall {
  6263  	c.ctx_ = ctx
  6264  	return c
  6265  }
  6266  
  6267  // Header returns a http.Header that can be modified by the caller to add
  6268  // headers to the request.
  6269  func (c *ProjectsTenantsDeleteCall) Header() http.Header {
  6270  	if c.header_ == nil {
  6271  		c.header_ = make(http.Header)
  6272  	}
  6273  	return c.header_
  6274  }
  6275  
  6276  func (c *ProjectsTenantsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6277  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6278  	var body io.Reader = nil
  6279  	c.urlParams_.Set("alt", alt)
  6280  	c.urlParams_.Set("prettyPrint", "false")
  6281  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  6282  	urls += "?" + c.urlParams_.Encode()
  6283  	req, err := http.NewRequest("DELETE", urls, body)
  6284  	if err != nil {
  6285  		return nil, err
  6286  	}
  6287  	req.Header = reqHeaders
  6288  	googleapi.Expand(req.URL, map[string]string{
  6289  		"name": c.name,
  6290  	})
  6291  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6292  }
  6293  
  6294  // Do executes the "identitytoolkit.projects.tenants.delete" call.
  6295  // Any non-2xx status code is an error. Response headers are in either
  6296  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  6297  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6298  // check whether the returned error was because http.StatusNotModified was
  6299  // returned.
  6300  func (c *ProjectsTenantsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  6301  	gensupport.SetOptions(c.urlParams_, opts...)
  6302  	res, err := c.doRequest("json")
  6303  	if res != nil && res.StatusCode == http.StatusNotModified {
  6304  		if res.Body != nil {
  6305  			res.Body.Close()
  6306  		}
  6307  		return nil, gensupport.WrapError(&googleapi.Error{
  6308  			Code:   res.StatusCode,
  6309  			Header: res.Header,
  6310  		})
  6311  	}
  6312  	if err != nil {
  6313  		return nil, err
  6314  	}
  6315  	defer googleapi.CloseBody(res)
  6316  	if err := googleapi.CheckResponse(res); err != nil {
  6317  		return nil, gensupport.WrapError(err)
  6318  	}
  6319  	ret := &GoogleProtobufEmpty{
  6320  		ServerResponse: googleapi.ServerResponse{
  6321  			Header:         res.Header,
  6322  			HTTPStatusCode: res.StatusCode,
  6323  		},
  6324  	}
  6325  	target := &ret
  6326  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6327  		return nil, err
  6328  	}
  6329  	return ret, nil
  6330  }
  6331  
  6332  type ProjectsTenantsGetCall struct {
  6333  	s            *Service
  6334  	name         string
  6335  	urlParams_   gensupport.URLParams
  6336  	ifNoneMatch_ string
  6337  	ctx_         context.Context
  6338  	header_      http.Header
  6339  }
  6340  
  6341  // Get: Get a tenant. Requires read permission on the Tenant resource.
  6342  //
  6343  // - name: Resource name of the tenant to retrieve.
  6344  func (r *ProjectsTenantsService) Get(name string) *ProjectsTenantsGetCall {
  6345  	c := &ProjectsTenantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6346  	c.name = name
  6347  	return c
  6348  }
  6349  
  6350  // Fields allows partial responses to be retrieved. See
  6351  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6352  // details.
  6353  func (c *ProjectsTenantsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsGetCall {
  6354  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6355  	return c
  6356  }
  6357  
  6358  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6359  // object's ETag matches the given value. This is useful for getting updates
  6360  // only after the object has changed since the last request.
  6361  func (c *ProjectsTenantsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsGetCall {
  6362  	c.ifNoneMatch_ = entityTag
  6363  	return c
  6364  }
  6365  
  6366  // Context sets the context to be used in this call's Do method.
  6367  func (c *ProjectsTenantsGetCall) Context(ctx context.Context) *ProjectsTenantsGetCall {
  6368  	c.ctx_ = ctx
  6369  	return c
  6370  }
  6371  
  6372  // Header returns a http.Header that can be modified by the caller to add
  6373  // headers to the request.
  6374  func (c *ProjectsTenantsGetCall) Header() http.Header {
  6375  	if c.header_ == nil {
  6376  		c.header_ = make(http.Header)
  6377  	}
  6378  	return c.header_
  6379  }
  6380  
  6381  func (c *ProjectsTenantsGetCall) doRequest(alt string) (*http.Response, error) {
  6382  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6383  	if c.ifNoneMatch_ != "" {
  6384  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6385  	}
  6386  	var body io.Reader = nil
  6387  	c.urlParams_.Set("alt", alt)
  6388  	c.urlParams_.Set("prettyPrint", "false")
  6389  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  6390  	urls += "?" + c.urlParams_.Encode()
  6391  	req, err := http.NewRequest("GET", urls, body)
  6392  	if err != nil {
  6393  		return nil, err
  6394  	}
  6395  	req.Header = reqHeaders
  6396  	googleapi.Expand(req.URL, map[string]string{
  6397  		"name": c.name,
  6398  	})
  6399  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6400  }
  6401  
  6402  // Do executes the "identitytoolkit.projects.tenants.get" call.
  6403  // Any non-2xx status code is an error. Response headers are in either
  6404  // *GoogleCloudIdentitytoolkitAdminV2Tenant.ServerResponse.Header or (if a
  6405  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6406  // googleapi.IsNotModified to check whether the returned error was because
  6407  // http.StatusNotModified was returned.
  6408  func (c *ProjectsTenantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Tenant, error) {
  6409  	gensupport.SetOptions(c.urlParams_, opts...)
  6410  	res, err := c.doRequest("json")
  6411  	if res != nil && res.StatusCode == http.StatusNotModified {
  6412  		if res.Body != nil {
  6413  			res.Body.Close()
  6414  		}
  6415  		return nil, gensupport.WrapError(&googleapi.Error{
  6416  			Code:   res.StatusCode,
  6417  			Header: res.Header,
  6418  		})
  6419  	}
  6420  	if err != nil {
  6421  		return nil, err
  6422  	}
  6423  	defer googleapi.CloseBody(res)
  6424  	if err := googleapi.CheckResponse(res); err != nil {
  6425  		return nil, gensupport.WrapError(err)
  6426  	}
  6427  	ret := &GoogleCloudIdentitytoolkitAdminV2Tenant{
  6428  		ServerResponse: googleapi.ServerResponse{
  6429  			Header:         res.Header,
  6430  			HTTPStatusCode: res.StatusCode,
  6431  		},
  6432  	}
  6433  	target := &ret
  6434  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6435  		return nil, err
  6436  	}
  6437  	return ret, nil
  6438  }
  6439  
  6440  type ProjectsTenantsGetIamPolicyCall struct {
  6441  	s                              *Service
  6442  	resource                       string
  6443  	googleiamv1getiampolicyrequest *GoogleIamV1GetIamPolicyRequest
  6444  	urlParams_                     gensupport.URLParams
  6445  	ctx_                           context.Context
  6446  	header_                        http.Header
  6447  }
  6448  
  6449  // GetIamPolicy: Gets the access control policy for a resource. An error is
  6450  // returned if the resource does not exist. An empty policy is returned if the
  6451  // resource exists but does not have a policy set on it. Caller must have the
  6452  // right Google IAM permission on the resource.
  6453  //
  6454  //   - resource: REQUIRED: The resource for which the policy is being requested.
  6455  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  6456  //     for the appropriate value for this field.
  6457  func (r *ProjectsTenantsService) GetIamPolicy(resource string, googleiamv1getiampolicyrequest *GoogleIamV1GetIamPolicyRequest) *ProjectsTenantsGetIamPolicyCall {
  6458  	c := &ProjectsTenantsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6459  	c.resource = resource
  6460  	c.googleiamv1getiampolicyrequest = googleiamv1getiampolicyrequest
  6461  	return c
  6462  }
  6463  
  6464  // Fields allows partial responses to be retrieved. See
  6465  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6466  // details.
  6467  func (c *ProjectsTenantsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsTenantsGetIamPolicyCall {
  6468  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6469  	return c
  6470  }
  6471  
  6472  // Context sets the context to be used in this call's Do method.
  6473  func (c *ProjectsTenantsGetIamPolicyCall) Context(ctx context.Context) *ProjectsTenantsGetIamPolicyCall {
  6474  	c.ctx_ = ctx
  6475  	return c
  6476  }
  6477  
  6478  // Header returns a http.Header that can be modified by the caller to add
  6479  // headers to the request.
  6480  func (c *ProjectsTenantsGetIamPolicyCall) Header() http.Header {
  6481  	if c.header_ == nil {
  6482  		c.header_ = make(http.Header)
  6483  	}
  6484  	return c.header_
  6485  }
  6486  
  6487  func (c *ProjectsTenantsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  6488  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6489  	var body io.Reader = nil
  6490  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1getiampolicyrequest)
  6491  	if err != nil {
  6492  		return nil, err
  6493  	}
  6494  	c.urlParams_.Set("alt", alt)
  6495  	c.urlParams_.Set("prettyPrint", "false")
  6496  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:getIamPolicy")
  6497  	urls += "?" + c.urlParams_.Encode()
  6498  	req, err := http.NewRequest("POST", urls, body)
  6499  	if err != nil {
  6500  		return nil, err
  6501  	}
  6502  	req.Header = reqHeaders
  6503  	googleapi.Expand(req.URL, map[string]string{
  6504  		"resource": c.resource,
  6505  	})
  6506  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6507  }
  6508  
  6509  // Do executes the "identitytoolkit.projects.tenants.getIamPolicy" call.
  6510  // Any non-2xx status code is an error. Response headers are in either
  6511  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
  6512  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6513  // check whether the returned error was because http.StatusNotModified was
  6514  // returned.
  6515  func (c *ProjectsTenantsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
  6516  	gensupport.SetOptions(c.urlParams_, opts...)
  6517  	res, err := c.doRequest("json")
  6518  	if res != nil && res.StatusCode == http.StatusNotModified {
  6519  		if res.Body != nil {
  6520  			res.Body.Close()
  6521  		}
  6522  		return nil, gensupport.WrapError(&googleapi.Error{
  6523  			Code:   res.StatusCode,
  6524  			Header: res.Header,
  6525  		})
  6526  	}
  6527  	if err != nil {
  6528  		return nil, err
  6529  	}
  6530  	defer googleapi.CloseBody(res)
  6531  	if err := googleapi.CheckResponse(res); err != nil {
  6532  		return nil, gensupport.WrapError(err)
  6533  	}
  6534  	ret := &GoogleIamV1Policy{
  6535  		ServerResponse: googleapi.ServerResponse{
  6536  			Header:         res.Header,
  6537  			HTTPStatusCode: res.StatusCode,
  6538  		},
  6539  	}
  6540  	target := &ret
  6541  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6542  		return nil, err
  6543  	}
  6544  	return ret, nil
  6545  }
  6546  
  6547  type ProjectsTenantsListCall struct {
  6548  	s            *Service
  6549  	parent       string
  6550  	urlParams_   gensupport.URLParams
  6551  	ifNoneMatch_ string
  6552  	ctx_         context.Context
  6553  	header_      http.Header
  6554  }
  6555  
  6556  // List: List tenants under the given agent project. Requires read permission
  6557  // on the Agent project.
  6558  //
  6559  // - parent: The parent resource name to list tenants for.
  6560  func (r *ProjectsTenantsService) List(parent string) *ProjectsTenantsListCall {
  6561  	c := &ProjectsTenantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6562  	c.parent = parent
  6563  	return c
  6564  }
  6565  
  6566  // PageSize sets the optional parameter "pageSize": The maximum number of
  6567  // results to return, capped at 1000. If not specified, the default value is
  6568  // 20.
  6569  func (c *ProjectsTenantsListCall) PageSize(pageSize int64) *ProjectsTenantsListCall {
  6570  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6571  	return c
  6572  }
  6573  
  6574  // PageToken sets the optional parameter "pageToken": The pagination token from
  6575  // the response of a previous request.
  6576  func (c *ProjectsTenantsListCall) PageToken(pageToken string) *ProjectsTenantsListCall {
  6577  	c.urlParams_.Set("pageToken", pageToken)
  6578  	return c
  6579  }
  6580  
  6581  // Fields allows partial responses to be retrieved. See
  6582  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6583  // details.
  6584  func (c *ProjectsTenantsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsListCall {
  6585  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6586  	return c
  6587  }
  6588  
  6589  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6590  // object's ETag matches the given value. This is useful for getting updates
  6591  // only after the object has changed since the last request.
  6592  func (c *ProjectsTenantsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsListCall {
  6593  	c.ifNoneMatch_ = entityTag
  6594  	return c
  6595  }
  6596  
  6597  // Context sets the context to be used in this call's Do method.
  6598  func (c *ProjectsTenantsListCall) Context(ctx context.Context) *ProjectsTenantsListCall {
  6599  	c.ctx_ = ctx
  6600  	return c
  6601  }
  6602  
  6603  // Header returns a http.Header that can be modified by the caller to add
  6604  // headers to the request.
  6605  func (c *ProjectsTenantsListCall) Header() http.Header {
  6606  	if c.header_ == nil {
  6607  		c.header_ = make(http.Header)
  6608  	}
  6609  	return c.header_
  6610  }
  6611  
  6612  func (c *ProjectsTenantsListCall) doRequest(alt string) (*http.Response, error) {
  6613  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6614  	if c.ifNoneMatch_ != "" {
  6615  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6616  	}
  6617  	var body io.Reader = nil
  6618  	c.urlParams_.Set("alt", alt)
  6619  	c.urlParams_.Set("prettyPrint", "false")
  6620  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/tenants")
  6621  	urls += "?" + c.urlParams_.Encode()
  6622  	req, err := http.NewRequest("GET", urls, body)
  6623  	if err != nil {
  6624  		return nil, err
  6625  	}
  6626  	req.Header = reqHeaders
  6627  	googleapi.Expand(req.URL, map[string]string{
  6628  		"parent": c.parent,
  6629  	})
  6630  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6631  }
  6632  
  6633  // Do executes the "identitytoolkit.projects.tenants.list" call.
  6634  // Any non-2xx status code is an error. Response headers are in either
  6635  // *GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse.ServerResponse.Header
  6636  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
  6637  // Use googleapi.IsNotModified to check whether the returned error was because
  6638  // http.StatusNotModified was returned.
  6639  func (c *ProjectsTenantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse, error) {
  6640  	gensupport.SetOptions(c.urlParams_, opts...)
  6641  	res, err := c.doRequest("json")
  6642  	if res != nil && res.StatusCode == http.StatusNotModified {
  6643  		if res.Body != nil {
  6644  			res.Body.Close()
  6645  		}
  6646  		return nil, gensupport.WrapError(&googleapi.Error{
  6647  			Code:   res.StatusCode,
  6648  			Header: res.Header,
  6649  		})
  6650  	}
  6651  	if err != nil {
  6652  		return nil, err
  6653  	}
  6654  	defer googleapi.CloseBody(res)
  6655  	if err := googleapi.CheckResponse(res); err != nil {
  6656  		return nil, gensupport.WrapError(err)
  6657  	}
  6658  	ret := &GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse{
  6659  		ServerResponse: googleapi.ServerResponse{
  6660  			Header:         res.Header,
  6661  			HTTPStatusCode: res.StatusCode,
  6662  		},
  6663  	}
  6664  	target := &ret
  6665  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6666  		return nil, err
  6667  	}
  6668  	return ret, nil
  6669  }
  6670  
  6671  // Pages invokes f for each page of results.
  6672  // A non-nil error returned from f will halt the iteration.
  6673  // The provided context supersedes any context provided to the Context method.
  6674  func (c *ProjectsTenantsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse) error) error {
  6675  	c.ctx_ = ctx
  6676  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6677  	for {
  6678  		x, err := c.Do()
  6679  		if err != nil {
  6680  			return err
  6681  		}
  6682  		if err := f(x); err != nil {
  6683  			return err
  6684  		}
  6685  		if x.NextPageToken == "" {
  6686  			return nil
  6687  		}
  6688  		c.PageToken(x.NextPageToken)
  6689  	}
  6690  }
  6691  
  6692  type ProjectsTenantsPatchCall struct {
  6693  	s                                       *Service
  6694  	name                                    string
  6695  	googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant
  6696  	urlParams_                              gensupport.URLParams
  6697  	ctx_                                    context.Context
  6698  	header_                                 http.Header
  6699  }
  6700  
  6701  // Patch: Update a tenant. Requires write permission on the Tenant resource.
  6702  //
  6703  //   - name: Output only. Resource name of a tenant. For example:
  6704  //     "projects/{project-id}/tenants/{tenant-id}".
  6705  func (r *ProjectsTenantsService) Patch(name string, googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant) *ProjectsTenantsPatchCall {
  6706  	c := &ProjectsTenantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6707  	c.name = name
  6708  	c.googlecloudidentitytoolkitadminv2tenant = googlecloudidentitytoolkitadminv2tenant
  6709  	return c
  6710  }
  6711  
  6712  // UpdateMask sets the optional parameter "updateMask": If provided, only
  6713  // update fields set in the update mask. Otherwise, all settable fields will be
  6714  // updated. For the `FieldMask` definition, see
  6715  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
  6716  func (c *ProjectsTenantsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsPatchCall {
  6717  	c.urlParams_.Set("updateMask", updateMask)
  6718  	return c
  6719  }
  6720  
  6721  // Fields allows partial responses to be retrieved. See
  6722  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6723  // details.
  6724  func (c *ProjectsTenantsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsPatchCall {
  6725  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6726  	return c
  6727  }
  6728  
  6729  // Context sets the context to be used in this call's Do method.
  6730  func (c *ProjectsTenantsPatchCall) Context(ctx context.Context) *ProjectsTenantsPatchCall {
  6731  	c.ctx_ = ctx
  6732  	return c
  6733  }
  6734  
  6735  // Header returns a http.Header that can be modified by the caller to add
  6736  // headers to the request.
  6737  func (c *ProjectsTenantsPatchCall) Header() http.Header {
  6738  	if c.header_ == nil {
  6739  		c.header_ = make(http.Header)
  6740  	}
  6741  	return c.header_
  6742  }
  6743  
  6744  func (c *ProjectsTenantsPatchCall) doRequest(alt string) (*http.Response, error) {
  6745  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6746  	var body io.Reader = nil
  6747  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2tenant)
  6748  	if err != nil {
  6749  		return nil, err
  6750  	}
  6751  	c.urlParams_.Set("alt", alt)
  6752  	c.urlParams_.Set("prettyPrint", "false")
  6753  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  6754  	urls += "?" + c.urlParams_.Encode()
  6755  	req, err := http.NewRequest("PATCH", urls, body)
  6756  	if err != nil {
  6757  		return nil, err
  6758  	}
  6759  	req.Header = reqHeaders
  6760  	googleapi.Expand(req.URL, map[string]string{
  6761  		"name": c.name,
  6762  	})
  6763  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6764  }
  6765  
  6766  // Do executes the "identitytoolkit.projects.tenants.patch" call.
  6767  // Any non-2xx status code is an error. Response headers are in either
  6768  // *GoogleCloudIdentitytoolkitAdminV2Tenant.ServerResponse.Header or (if a
  6769  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6770  // googleapi.IsNotModified to check whether the returned error was because
  6771  // http.StatusNotModified was returned.
  6772  func (c *ProjectsTenantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Tenant, error) {
  6773  	gensupport.SetOptions(c.urlParams_, opts...)
  6774  	res, err := c.doRequest("json")
  6775  	if res != nil && res.StatusCode == http.StatusNotModified {
  6776  		if res.Body != nil {
  6777  			res.Body.Close()
  6778  		}
  6779  		return nil, gensupport.WrapError(&googleapi.Error{
  6780  			Code:   res.StatusCode,
  6781  			Header: res.Header,
  6782  		})
  6783  	}
  6784  	if err != nil {
  6785  		return nil, err
  6786  	}
  6787  	defer googleapi.CloseBody(res)
  6788  	if err := googleapi.CheckResponse(res); err != nil {
  6789  		return nil, gensupport.WrapError(err)
  6790  	}
  6791  	ret := &GoogleCloudIdentitytoolkitAdminV2Tenant{
  6792  		ServerResponse: googleapi.ServerResponse{
  6793  			Header:         res.Header,
  6794  			HTTPStatusCode: res.StatusCode,
  6795  		},
  6796  	}
  6797  	target := &ret
  6798  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6799  		return nil, err
  6800  	}
  6801  	return ret, nil
  6802  }
  6803  
  6804  type ProjectsTenantsSetIamPolicyCall struct {
  6805  	s                              *Service
  6806  	resource                       string
  6807  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
  6808  	urlParams_                     gensupport.URLParams
  6809  	ctx_                           context.Context
  6810  	header_                        http.Header
  6811  }
  6812  
  6813  // SetIamPolicy: Sets the access control policy for a resource. If the policy
  6814  // exists, it is replaced. Caller must have the right Google IAM permission on
  6815  // the resource.
  6816  //
  6817  //   - resource: REQUIRED: The resource for which the policy is being specified.
  6818  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  6819  //     for the appropriate value for this field.
  6820  func (r *ProjectsTenantsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsTenantsSetIamPolicyCall {
  6821  	c := &ProjectsTenantsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6822  	c.resource = resource
  6823  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
  6824  	return c
  6825  }
  6826  
  6827  // Fields allows partial responses to be retrieved. See
  6828  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6829  // details.
  6830  func (c *ProjectsTenantsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsTenantsSetIamPolicyCall {
  6831  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6832  	return c
  6833  }
  6834  
  6835  // Context sets the context to be used in this call's Do method.
  6836  func (c *ProjectsTenantsSetIamPolicyCall) Context(ctx context.Context) *ProjectsTenantsSetIamPolicyCall {
  6837  	c.ctx_ = ctx
  6838  	return c
  6839  }
  6840  
  6841  // Header returns a http.Header that can be modified by the caller to add
  6842  // headers to the request.
  6843  func (c *ProjectsTenantsSetIamPolicyCall) Header() http.Header {
  6844  	if c.header_ == nil {
  6845  		c.header_ = make(http.Header)
  6846  	}
  6847  	return c.header_
  6848  }
  6849  
  6850  func (c *ProjectsTenantsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  6851  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6852  	var body io.Reader = nil
  6853  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
  6854  	if err != nil {
  6855  		return nil, err
  6856  	}
  6857  	c.urlParams_.Set("alt", alt)
  6858  	c.urlParams_.Set("prettyPrint", "false")
  6859  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:setIamPolicy")
  6860  	urls += "?" + c.urlParams_.Encode()
  6861  	req, err := http.NewRequest("POST", urls, body)
  6862  	if err != nil {
  6863  		return nil, err
  6864  	}
  6865  	req.Header = reqHeaders
  6866  	googleapi.Expand(req.URL, map[string]string{
  6867  		"resource": c.resource,
  6868  	})
  6869  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6870  }
  6871  
  6872  // Do executes the "identitytoolkit.projects.tenants.setIamPolicy" call.
  6873  // Any non-2xx status code is an error. Response headers are in either
  6874  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
  6875  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6876  // check whether the returned error was because http.StatusNotModified was
  6877  // returned.
  6878  func (c *ProjectsTenantsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
  6879  	gensupport.SetOptions(c.urlParams_, opts...)
  6880  	res, err := c.doRequest("json")
  6881  	if res != nil && res.StatusCode == http.StatusNotModified {
  6882  		if res.Body != nil {
  6883  			res.Body.Close()
  6884  		}
  6885  		return nil, gensupport.WrapError(&googleapi.Error{
  6886  			Code:   res.StatusCode,
  6887  			Header: res.Header,
  6888  		})
  6889  	}
  6890  	if err != nil {
  6891  		return nil, err
  6892  	}
  6893  	defer googleapi.CloseBody(res)
  6894  	if err := googleapi.CheckResponse(res); err != nil {
  6895  		return nil, gensupport.WrapError(err)
  6896  	}
  6897  	ret := &GoogleIamV1Policy{
  6898  		ServerResponse: googleapi.ServerResponse{
  6899  			Header:         res.Header,
  6900  			HTTPStatusCode: res.StatusCode,
  6901  		},
  6902  	}
  6903  	target := &ret
  6904  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6905  		return nil, err
  6906  	}
  6907  	return ret, nil
  6908  }
  6909  
  6910  type ProjectsTenantsTestIamPermissionsCall struct {
  6911  	s                                    *Service
  6912  	resource                             string
  6913  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
  6914  	urlParams_                           gensupport.URLParams
  6915  	ctx_                                 context.Context
  6916  	header_                              http.Header
  6917  }
  6918  
  6919  // TestIamPermissions: Returns the caller's permissions on a resource. An error
  6920  // is returned if the resource does not exist. A caller is not required to have
  6921  // Google IAM permission to make this request.
  6922  //
  6923  //   - resource: REQUIRED: The resource for which the policy detail is being
  6924  //     requested. See Resource names
  6925  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  6926  //     value for this field.
  6927  func (r *ProjectsTenantsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsTenantsTestIamPermissionsCall {
  6928  	c := &ProjectsTenantsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6929  	c.resource = resource
  6930  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
  6931  	return c
  6932  }
  6933  
  6934  // Fields allows partial responses to be retrieved. See
  6935  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6936  // details.
  6937  func (c *ProjectsTenantsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsTenantsTestIamPermissionsCall {
  6938  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6939  	return c
  6940  }
  6941  
  6942  // Context sets the context to be used in this call's Do method.
  6943  func (c *ProjectsTenantsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsTenantsTestIamPermissionsCall {
  6944  	c.ctx_ = ctx
  6945  	return c
  6946  }
  6947  
  6948  // Header returns a http.Header that can be modified by the caller to add
  6949  // headers to the request.
  6950  func (c *ProjectsTenantsTestIamPermissionsCall) Header() http.Header {
  6951  	if c.header_ == nil {
  6952  		c.header_ = make(http.Header)
  6953  	}
  6954  	return c.header_
  6955  }
  6956  
  6957  func (c *ProjectsTenantsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  6958  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6959  	var body io.Reader = nil
  6960  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
  6961  	if err != nil {
  6962  		return nil, err
  6963  	}
  6964  	c.urlParams_.Set("alt", alt)
  6965  	c.urlParams_.Set("prettyPrint", "false")
  6966  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:testIamPermissions")
  6967  	urls += "?" + c.urlParams_.Encode()
  6968  	req, err := http.NewRequest("POST", urls, body)
  6969  	if err != nil {
  6970  		return nil, err
  6971  	}
  6972  	req.Header = reqHeaders
  6973  	googleapi.Expand(req.URL, map[string]string{
  6974  		"resource": c.resource,
  6975  	})
  6976  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6977  }
  6978  
  6979  // Do executes the "identitytoolkit.projects.tenants.testIamPermissions" call.
  6980  // Any non-2xx status code is an error. Response headers are in either
  6981  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
  6982  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6983  // googleapi.IsNotModified to check whether the returned error was because
  6984  // http.StatusNotModified was returned.
  6985  func (c *ProjectsTenantsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
  6986  	gensupport.SetOptions(c.urlParams_, opts...)
  6987  	res, err := c.doRequest("json")
  6988  	if res != nil && res.StatusCode == http.StatusNotModified {
  6989  		if res.Body != nil {
  6990  			res.Body.Close()
  6991  		}
  6992  		return nil, gensupport.WrapError(&googleapi.Error{
  6993  			Code:   res.StatusCode,
  6994  			Header: res.Header,
  6995  		})
  6996  	}
  6997  	if err != nil {
  6998  		return nil, err
  6999  	}
  7000  	defer googleapi.CloseBody(res)
  7001  	if err := googleapi.CheckResponse(res); err != nil {
  7002  		return nil, gensupport.WrapError(err)
  7003  	}
  7004  	ret := &GoogleIamV1TestIamPermissionsResponse{
  7005  		ServerResponse: googleapi.ServerResponse{
  7006  			Header:         res.Header,
  7007  			HTTPStatusCode: res.StatusCode,
  7008  		},
  7009  	}
  7010  	target := &ret
  7011  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7012  		return nil, err
  7013  	}
  7014  	return ret, nil
  7015  }
  7016  
  7017  type ProjectsTenantsDefaultSupportedIdpConfigsCreateCall struct {
  7018  	s                                                          *Service
  7019  	parent                                                     string
  7020  	googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
  7021  	urlParams_                                                 gensupport.URLParams
  7022  	ctx_                                                       context.Context
  7023  	header_                                                    http.Header
  7024  }
  7025  
  7026  // Create: Create a default supported Idp configuration for an Identity Toolkit
  7027  // project.
  7028  //
  7029  //   - parent: The parent resource name where the config to be created, for
  7030  //     example: "projects/my-awesome-project".
  7031  func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall {
  7032  	c := &ProjectsTenantsDefaultSupportedIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7033  	c.parent = parent
  7034  	c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig
  7035  	return c
  7036  }
  7037  
  7038  // IdpId sets the optional parameter "idpId": The id of the Idp to create a
  7039  // config for. Call ListDefaultSupportedIdps for list of all default supported
  7040  // Idps.
  7041  func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) IdpId(idpId string) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall {
  7042  	c.urlParams_.Set("idpId", idpId)
  7043  	return c
  7044  }
  7045  
  7046  // Fields allows partial responses to be retrieved. See
  7047  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7048  // details.
  7049  func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall {
  7050  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7051  	return c
  7052  }
  7053  
  7054  // Context sets the context to be used in this call's Do method.
  7055  func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall {
  7056  	c.ctx_ = ctx
  7057  	return c
  7058  }
  7059  
  7060  // Header returns a http.Header that can be modified by the caller to add
  7061  // headers to the request.
  7062  func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Header() http.Header {
  7063  	if c.header_ == nil {
  7064  		c.header_ = make(http.Header)
  7065  	}
  7066  	return c.header_
  7067  }
  7068  
  7069  func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
  7070  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7071  	var body io.Reader = nil
  7072  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig)
  7073  	if err != nil {
  7074  		return nil, err
  7075  	}
  7076  	c.urlParams_.Set("alt", alt)
  7077  	c.urlParams_.Set("prettyPrint", "false")
  7078  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/defaultSupportedIdpConfigs")
  7079  	urls += "?" + c.urlParams_.Encode()
  7080  	req, err := http.NewRequest("POST", urls, body)
  7081  	if err != nil {
  7082  		return nil, err
  7083  	}
  7084  	req.Header = reqHeaders
  7085  	googleapi.Expand(req.URL, map[string]string{
  7086  		"parent": c.parent,
  7087  	})
  7088  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7089  }
  7090  
  7091  // Do executes the "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.create" call.
  7092  // Any non-2xx status code is an error. Response headers are in either
  7093  // *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResponse.He
  7094  // ader or (if a response was returned at all) in
  7095  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7096  // whether the returned error was because http.StatusNotModified was returned.
  7097  func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
  7098  	gensupport.SetOptions(c.urlParams_, opts...)
  7099  	res, err := c.doRequest("json")
  7100  	if res != nil && res.StatusCode == http.StatusNotModified {
  7101  		if res.Body != nil {
  7102  			res.Body.Close()
  7103  		}
  7104  		return nil, gensupport.WrapError(&googleapi.Error{
  7105  			Code:   res.StatusCode,
  7106  			Header: res.Header,
  7107  		})
  7108  	}
  7109  	if err != nil {
  7110  		return nil, err
  7111  	}
  7112  	defer googleapi.CloseBody(res)
  7113  	if err := googleapi.CheckResponse(res); err != nil {
  7114  		return nil, gensupport.WrapError(err)
  7115  	}
  7116  	ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
  7117  		ServerResponse: googleapi.ServerResponse{
  7118  			Header:         res.Header,
  7119  			HTTPStatusCode: res.StatusCode,
  7120  		},
  7121  	}
  7122  	target := &ret
  7123  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7124  		return nil, err
  7125  	}
  7126  	return ret, nil
  7127  }
  7128  
  7129  type ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall struct {
  7130  	s          *Service
  7131  	name       string
  7132  	urlParams_ gensupport.URLParams
  7133  	ctx_       context.Context
  7134  	header_    http.Header
  7135  }
  7136  
  7137  // Delete: Delete a default supported Idp configuration for an Identity Toolkit
  7138  // project.
  7139  //
  7140  //   - name: The resource name of the config, for example:
  7141  //     "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com".
  7142  func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Delete(name string) *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall {
  7143  	c := &ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7144  	c.name = name
  7145  	return c
  7146  }
  7147  
  7148  // Fields allows partial responses to be retrieved. See
  7149  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7150  // details.
  7151  func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall {
  7152  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7153  	return c
  7154  }
  7155  
  7156  // Context sets the context to be used in this call's Do method.
  7157  func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall {
  7158  	c.ctx_ = ctx
  7159  	return c
  7160  }
  7161  
  7162  // Header returns a http.Header that can be modified by the caller to add
  7163  // headers to the request.
  7164  func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Header() http.Header {
  7165  	if c.header_ == nil {
  7166  		c.header_ = make(http.Header)
  7167  	}
  7168  	return c.header_
  7169  }
  7170  
  7171  func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7172  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7173  	var body io.Reader = nil
  7174  	c.urlParams_.Set("alt", alt)
  7175  	c.urlParams_.Set("prettyPrint", "false")
  7176  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  7177  	urls += "?" + c.urlParams_.Encode()
  7178  	req, err := http.NewRequest("DELETE", urls, body)
  7179  	if err != nil {
  7180  		return nil, err
  7181  	}
  7182  	req.Header = reqHeaders
  7183  	googleapi.Expand(req.URL, map[string]string{
  7184  		"name": c.name,
  7185  	})
  7186  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7187  }
  7188  
  7189  // Do executes the "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.delete" call.
  7190  // Any non-2xx status code is an error. Response headers are in either
  7191  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  7192  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7193  // check whether the returned error was because http.StatusNotModified was
  7194  // returned.
  7195  func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  7196  	gensupport.SetOptions(c.urlParams_, opts...)
  7197  	res, err := c.doRequest("json")
  7198  	if res != nil && res.StatusCode == http.StatusNotModified {
  7199  		if res.Body != nil {
  7200  			res.Body.Close()
  7201  		}
  7202  		return nil, gensupport.WrapError(&googleapi.Error{
  7203  			Code:   res.StatusCode,
  7204  			Header: res.Header,
  7205  		})
  7206  	}
  7207  	if err != nil {
  7208  		return nil, err
  7209  	}
  7210  	defer googleapi.CloseBody(res)
  7211  	if err := googleapi.CheckResponse(res); err != nil {
  7212  		return nil, gensupport.WrapError(err)
  7213  	}
  7214  	ret := &GoogleProtobufEmpty{
  7215  		ServerResponse: googleapi.ServerResponse{
  7216  			Header:         res.Header,
  7217  			HTTPStatusCode: res.StatusCode,
  7218  		},
  7219  	}
  7220  	target := &ret
  7221  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7222  		return nil, err
  7223  	}
  7224  	return ret, nil
  7225  }
  7226  
  7227  type ProjectsTenantsDefaultSupportedIdpConfigsGetCall struct {
  7228  	s            *Service
  7229  	name         string
  7230  	urlParams_   gensupport.URLParams
  7231  	ifNoneMatch_ string
  7232  	ctx_         context.Context
  7233  	header_      http.Header
  7234  }
  7235  
  7236  // Get: Retrieve a default supported Idp configuration for an Identity Toolkit
  7237  // project.
  7238  //
  7239  //   - name: The resource name of the config, for example:
  7240  //     "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com".
  7241  func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Get(name string) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall {
  7242  	c := &ProjectsTenantsDefaultSupportedIdpConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7243  	c.name = name
  7244  	return c
  7245  }
  7246  
  7247  // Fields allows partial responses to be retrieved. See
  7248  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7249  // details.
  7250  func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall {
  7251  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7252  	return c
  7253  }
  7254  
  7255  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7256  // object's ETag matches the given value. This is useful for getting updates
  7257  // only after the object has changed since the last request.
  7258  func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall {
  7259  	c.ifNoneMatch_ = entityTag
  7260  	return c
  7261  }
  7262  
  7263  // Context sets the context to be used in this call's Do method.
  7264  func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall {
  7265  	c.ctx_ = ctx
  7266  	return c
  7267  }
  7268  
  7269  // Header returns a http.Header that can be modified by the caller to add
  7270  // headers to the request.
  7271  func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Header() http.Header {
  7272  	if c.header_ == nil {
  7273  		c.header_ = make(http.Header)
  7274  	}
  7275  	return c.header_
  7276  }
  7277  
  7278  func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) doRequest(alt string) (*http.Response, error) {
  7279  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7280  	if c.ifNoneMatch_ != "" {
  7281  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7282  	}
  7283  	var body io.Reader = nil
  7284  	c.urlParams_.Set("alt", alt)
  7285  	c.urlParams_.Set("prettyPrint", "false")
  7286  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  7287  	urls += "?" + c.urlParams_.Encode()
  7288  	req, err := http.NewRequest("GET", urls, body)
  7289  	if err != nil {
  7290  		return nil, err
  7291  	}
  7292  	req.Header = reqHeaders
  7293  	googleapi.Expand(req.URL, map[string]string{
  7294  		"name": c.name,
  7295  	})
  7296  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7297  }
  7298  
  7299  // Do executes the "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.get" call.
  7300  // Any non-2xx status code is an error. Response headers are in either
  7301  // *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResponse.He
  7302  // ader or (if a response was returned at all) in
  7303  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7304  // whether the returned error was because http.StatusNotModified was returned.
  7305  func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
  7306  	gensupport.SetOptions(c.urlParams_, opts...)
  7307  	res, err := c.doRequest("json")
  7308  	if res != nil && res.StatusCode == http.StatusNotModified {
  7309  		if res.Body != nil {
  7310  			res.Body.Close()
  7311  		}
  7312  		return nil, gensupport.WrapError(&googleapi.Error{
  7313  			Code:   res.StatusCode,
  7314  			Header: res.Header,
  7315  		})
  7316  	}
  7317  	if err != nil {
  7318  		return nil, err
  7319  	}
  7320  	defer googleapi.CloseBody(res)
  7321  	if err := googleapi.CheckResponse(res); err != nil {
  7322  		return nil, gensupport.WrapError(err)
  7323  	}
  7324  	ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
  7325  		ServerResponse: googleapi.ServerResponse{
  7326  			Header:         res.Header,
  7327  			HTTPStatusCode: res.StatusCode,
  7328  		},
  7329  	}
  7330  	target := &ret
  7331  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7332  		return nil, err
  7333  	}
  7334  	return ret, nil
  7335  }
  7336  
  7337  type ProjectsTenantsDefaultSupportedIdpConfigsListCall struct {
  7338  	s            *Service
  7339  	parent       string
  7340  	urlParams_   gensupport.URLParams
  7341  	ifNoneMatch_ string
  7342  	ctx_         context.Context
  7343  	header_      http.Header
  7344  }
  7345  
  7346  // List: List all default supported Idp configurations for an Identity Toolkit
  7347  // project.
  7348  //
  7349  //   - parent: The parent resource name, for example,
  7350  //     "projects/my-awesome-project".
  7351  func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) List(parent string) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
  7352  	c := &ProjectsTenantsDefaultSupportedIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7353  	c.parent = parent
  7354  	return c
  7355  }
  7356  
  7357  // PageSize sets the optional parameter "pageSize": The maximum number of items
  7358  // to return.
  7359  func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) PageSize(pageSize int64) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
  7360  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7361  	return c
  7362  }
  7363  
  7364  // PageToken sets the optional parameter "pageToken": The next_page_token value
  7365  // returned from a previous List request, if any.
  7366  func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) PageToken(pageToken string) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
  7367  	c.urlParams_.Set("pageToken", pageToken)
  7368  	return c
  7369  }
  7370  
  7371  // Fields allows partial responses to be retrieved. See
  7372  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7373  // details.
  7374  func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
  7375  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7376  	return c
  7377  }
  7378  
  7379  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7380  // object's ETag matches the given value. This is useful for getting updates
  7381  // only after the object has changed since the last request.
  7382  func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
  7383  	c.ifNoneMatch_ = entityTag
  7384  	return c
  7385  }
  7386  
  7387  // Context sets the context to be used in this call's Do method.
  7388  func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
  7389  	c.ctx_ = ctx
  7390  	return c
  7391  }
  7392  
  7393  // Header returns a http.Header that can be modified by the caller to add
  7394  // headers to the request.
  7395  func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Header() http.Header {
  7396  	if c.header_ == nil {
  7397  		c.header_ = make(http.Header)
  7398  	}
  7399  	return c.header_
  7400  }
  7401  
  7402  func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) doRequest(alt string) (*http.Response, error) {
  7403  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7404  	if c.ifNoneMatch_ != "" {
  7405  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7406  	}
  7407  	var body io.Reader = nil
  7408  	c.urlParams_.Set("alt", alt)
  7409  	c.urlParams_.Set("prettyPrint", "false")
  7410  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/defaultSupportedIdpConfigs")
  7411  	urls += "?" + c.urlParams_.Encode()
  7412  	req, err := http.NewRequest("GET", urls, body)
  7413  	if err != nil {
  7414  		return nil, err
  7415  	}
  7416  	req.Header = reqHeaders
  7417  	googleapi.Expand(req.URL, map[string]string{
  7418  		"parent": c.parent,
  7419  	})
  7420  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7421  }
  7422  
  7423  // Do executes the "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.list" call.
  7424  // Any non-2xx status code is an error. Response headers are in either
  7425  // *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse.Serv
  7426  // erResponse.Header or (if a response was returned at all) in
  7427  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7428  // whether the returned error was because http.StatusNotModified was returned.
  7429  func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse, error) {
  7430  	gensupport.SetOptions(c.urlParams_, opts...)
  7431  	res, err := c.doRequest("json")
  7432  	if res != nil && res.StatusCode == http.StatusNotModified {
  7433  		if res.Body != nil {
  7434  			res.Body.Close()
  7435  		}
  7436  		return nil, gensupport.WrapError(&googleapi.Error{
  7437  			Code:   res.StatusCode,
  7438  			Header: res.Header,
  7439  		})
  7440  	}
  7441  	if err != nil {
  7442  		return nil, err
  7443  	}
  7444  	defer googleapi.CloseBody(res)
  7445  	if err := googleapi.CheckResponse(res); err != nil {
  7446  		return nil, gensupport.WrapError(err)
  7447  	}
  7448  	ret := &GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse{
  7449  		ServerResponse: googleapi.ServerResponse{
  7450  			Header:         res.Header,
  7451  			HTTPStatusCode: res.StatusCode,
  7452  		},
  7453  	}
  7454  	target := &ret
  7455  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7456  		return nil, err
  7457  	}
  7458  	return ret, nil
  7459  }
  7460  
  7461  // Pages invokes f for each page of results.
  7462  // A non-nil error returned from f will halt the iteration.
  7463  // The provided context supersedes any context provided to the Context method.
  7464  func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse) error) error {
  7465  	c.ctx_ = ctx
  7466  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7467  	for {
  7468  		x, err := c.Do()
  7469  		if err != nil {
  7470  			return err
  7471  		}
  7472  		if err := f(x); err != nil {
  7473  			return err
  7474  		}
  7475  		if x.NextPageToken == "" {
  7476  			return nil
  7477  		}
  7478  		c.PageToken(x.NextPageToken)
  7479  	}
  7480  }
  7481  
  7482  type ProjectsTenantsDefaultSupportedIdpConfigsPatchCall struct {
  7483  	s                                                          *Service
  7484  	name                                                       string
  7485  	googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
  7486  	urlParams_                                                 gensupport.URLParams
  7487  	ctx_                                                       context.Context
  7488  	header_                                                    http.Header
  7489  }
  7490  
  7491  // Patch: Update a default supported Idp configuration for an Identity Toolkit
  7492  // project.
  7493  //
  7494  //   - name: The name of the DefaultSupportedIdpConfig resource, for example:
  7495  //     "projects/my-awesome-project/defaultSupportedIdpConfigs/google.com".
  7496  func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall {
  7497  	c := &ProjectsTenantsDefaultSupportedIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7498  	c.name = name
  7499  	c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig
  7500  	return c
  7501  }
  7502  
  7503  // UpdateMask sets the optional parameter "updateMask": The update mask applies
  7504  // to the resource. For the `FieldMask` definition, see
  7505  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
  7506  func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall {
  7507  	c.urlParams_.Set("updateMask", updateMask)
  7508  	return c
  7509  }
  7510  
  7511  // Fields allows partial responses to be retrieved. See
  7512  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7513  // details.
  7514  func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall {
  7515  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7516  	return c
  7517  }
  7518  
  7519  // Context sets the context to be used in this call's Do method.
  7520  func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall {
  7521  	c.ctx_ = ctx
  7522  	return c
  7523  }
  7524  
  7525  // Header returns a http.Header that can be modified by the caller to add
  7526  // headers to the request.
  7527  func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Header() http.Header {
  7528  	if c.header_ == nil {
  7529  		c.header_ = make(http.Header)
  7530  	}
  7531  	return c.header_
  7532  }
  7533  
  7534  func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
  7535  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7536  	var body io.Reader = nil
  7537  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig)
  7538  	if err != nil {
  7539  		return nil, err
  7540  	}
  7541  	c.urlParams_.Set("alt", alt)
  7542  	c.urlParams_.Set("prettyPrint", "false")
  7543  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  7544  	urls += "?" + c.urlParams_.Encode()
  7545  	req, err := http.NewRequest("PATCH", urls, body)
  7546  	if err != nil {
  7547  		return nil, err
  7548  	}
  7549  	req.Header = reqHeaders
  7550  	googleapi.Expand(req.URL, map[string]string{
  7551  		"name": c.name,
  7552  	})
  7553  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7554  }
  7555  
  7556  // Do executes the "identitytoolkit.projects.tenants.defaultSupportedIdpConfigs.patch" call.
  7557  // Any non-2xx status code is an error. Response headers are in either
  7558  // *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig.ServerResponse.He
  7559  // ader or (if a response was returned at all) in
  7560  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7561  // whether the returned error was because http.StatusNotModified was returned.
  7562  func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
  7563  	gensupport.SetOptions(c.urlParams_, opts...)
  7564  	res, err := c.doRequest("json")
  7565  	if res != nil && res.StatusCode == http.StatusNotModified {
  7566  		if res.Body != nil {
  7567  			res.Body.Close()
  7568  		}
  7569  		return nil, gensupport.WrapError(&googleapi.Error{
  7570  			Code:   res.StatusCode,
  7571  			Header: res.Header,
  7572  		})
  7573  	}
  7574  	if err != nil {
  7575  		return nil, err
  7576  	}
  7577  	defer googleapi.CloseBody(res)
  7578  	if err := googleapi.CheckResponse(res); err != nil {
  7579  		return nil, gensupport.WrapError(err)
  7580  	}
  7581  	ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
  7582  		ServerResponse: googleapi.ServerResponse{
  7583  			Header:         res.Header,
  7584  			HTTPStatusCode: res.StatusCode,
  7585  		},
  7586  	}
  7587  	target := &ret
  7588  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7589  		return nil, err
  7590  	}
  7591  	return ret, nil
  7592  }
  7593  
  7594  type ProjectsTenantsInboundSamlConfigsCreateCall struct {
  7595  	s                                                  *Service
  7596  	parent                                             string
  7597  	googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
  7598  	urlParams_                                         gensupport.URLParams
  7599  	ctx_                                               context.Context
  7600  	header_                                            http.Header
  7601  }
  7602  
  7603  // Create: Create an inbound SAML configuration for an Identity Toolkit
  7604  // project.
  7605  //
  7606  //   - parent: The parent resource name where the config to be created, for
  7607  //     example: "projects/my-awesome-project".
  7608  func (r *ProjectsTenantsInboundSamlConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsTenantsInboundSamlConfigsCreateCall {
  7609  	c := &ProjectsTenantsInboundSamlConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7610  	c.parent = parent
  7611  	c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig
  7612  	return c
  7613  }
  7614  
  7615  // InboundSamlConfigId sets the optional parameter "inboundSamlConfigId": The
  7616  // id to use for this config.
  7617  func (c *ProjectsTenantsInboundSamlConfigsCreateCall) InboundSamlConfigId(inboundSamlConfigId string) *ProjectsTenantsInboundSamlConfigsCreateCall {
  7618  	c.urlParams_.Set("inboundSamlConfigId", inboundSamlConfigId)
  7619  	return c
  7620  }
  7621  
  7622  // Fields allows partial responses to be retrieved. See
  7623  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7624  // details.
  7625  func (c *ProjectsTenantsInboundSamlConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsCreateCall {
  7626  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7627  	return c
  7628  }
  7629  
  7630  // Context sets the context to be used in this call's Do method.
  7631  func (c *ProjectsTenantsInboundSamlConfigsCreateCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsCreateCall {
  7632  	c.ctx_ = ctx
  7633  	return c
  7634  }
  7635  
  7636  // Header returns a http.Header that can be modified by the caller to add
  7637  // headers to the request.
  7638  func (c *ProjectsTenantsInboundSamlConfigsCreateCall) Header() http.Header {
  7639  	if c.header_ == nil {
  7640  		c.header_ = make(http.Header)
  7641  	}
  7642  	return c.header_
  7643  }
  7644  
  7645  func (c *ProjectsTenantsInboundSamlConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
  7646  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7647  	var body io.Reader = nil
  7648  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2inboundsamlconfig)
  7649  	if err != nil {
  7650  		return nil, err
  7651  	}
  7652  	c.urlParams_.Set("alt", alt)
  7653  	c.urlParams_.Set("prettyPrint", "false")
  7654  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inboundSamlConfigs")
  7655  	urls += "?" + c.urlParams_.Encode()
  7656  	req, err := http.NewRequest("POST", urls, body)
  7657  	if err != nil {
  7658  		return nil, err
  7659  	}
  7660  	req.Header = reqHeaders
  7661  	googleapi.Expand(req.URL, map[string]string{
  7662  		"parent": c.parent,
  7663  	})
  7664  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7665  }
  7666  
  7667  // Do executes the "identitytoolkit.projects.tenants.inboundSamlConfigs.create" call.
  7668  // Any non-2xx status code is an error. Response headers are in either
  7669  // *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Header or
  7670  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  7671  // googleapi.IsNotModified to check whether the returned error was because
  7672  // http.StatusNotModified was returned.
  7673  func (c *ProjectsTenantsInboundSamlConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
  7674  	gensupport.SetOptions(c.urlParams_, opts...)
  7675  	res, err := c.doRequest("json")
  7676  	if res != nil && res.StatusCode == http.StatusNotModified {
  7677  		if res.Body != nil {
  7678  			res.Body.Close()
  7679  		}
  7680  		return nil, gensupport.WrapError(&googleapi.Error{
  7681  			Code:   res.StatusCode,
  7682  			Header: res.Header,
  7683  		})
  7684  	}
  7685  	if err != nil {
  7686  		return nil, err
  7687  	}
  7688  	defer googleapi.CloseBody(res)
  7689  	if err := googleapi.CheckResponse(res); err != nil {
  7690  		return nil, gensupport.WrapError(err)
  7691  	}
  7692  	ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
  7693  		ServerResponse: googleapi.ServerResponse{
  7694  			Header:         res.Header,
  7695  			HTTPStatusCode: res.StatusCode,
  7696  		},
  7697  	}
  7698  	target := &ret
  7699  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7700  		return nil, err
  7701  	}
  7702  	return ret, nil
  7703  }
  7704  
  7705  type ProjectsTenantsInboundSamlConfigsDeleteCall struct {
  7706  	s          *Service
  7707  	name       string
  7708  	urlParams_ gensupport.URLParams
  7709  	ctx_       context.Context
  7710  	header_    http.Header
  7711  }
  7712  
  7713  // Delete: Delete an inbound SAML configuration for an Identity Toolkit
  7714  // project.
  7715  //
  7716  //   - name: The resource name of the config to be deleted, for example:
  7717  //     'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.
  7718  func (r *ProjectsTenantsInboundSamlConfigsService) Delete(name string) *ProjectsTenantsInboundSamlConfigsDeleteCall {
  7719  	c := &ProjectsTenantsInboundSamlConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7720  	c.name = name
  7721  	return c
  7722  }
  7723  
  7724  // Fields allows partial responses to be retrieved. See
  7725  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7726  // details.
  7727  func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsDeleteCall {
  7728  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7729  	return c
  7730  }
  7731  
  7732  // Context sets the context to be used in this call's Do method.
  7733  func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsDeleteCall {
  7734  	c.ctx_ = ctx
  7735  	return c
  7736  }
  7737  
  7738  // Header returns a http.Header that can be modified by the caller to add
  7739  // headers to the request.
  7740  func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) Header() http.Header {
  7741  	if c.header_ == nil {
  7742  		c.header_ = make(http.Header)
  7743  	}
  7744  	return c.header_
  7745  }
  7746  
  7747  func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7748  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7749  	var body io.Reader = nil
  7750  	c.urlParams_.Set("alt", alt)
  7751  	c.urlParams_.Set("prettyPrint", "false")
  7752  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  7753  	urls += "?" + c.urlParams_.Encode()
  7754  	req, err := http.NewRequest("DELETE", urls, body)
  7755  	if err != nil {
  7756  		return nil, err
  7757  	}
  7758  	req.Header = reqHeaders
  7759  	googleapi.Expand(req.URL, map[string]string{
  7760  		"name": c.name,
  7761  	})
  7762  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7763  }
  7764  
  7765  // Do executes the "identitytoolkit.projects.tenants.inboundSamlConfigs.delete" call.
  7766  // Any non-2xx status code is an error. Response headers are in either
  7767  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  7768  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7769  // check whether the returned error was because http.StatusNotModified was
  7770  // returned.
  7771  func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  7772  	gensupport.SetOptions(c.urlParams_, opts...)
  7773  	res, err := c.doRequest("json")
  7774  	if res != nil && res.StatusCode == http.StatusNotModified {
  7775  		if res.Body != nil {
  7776  			res.Body.Close()
  7777  		}
  7778  		return nil, gensupport.WrapError(&googleapi.Error{
  7779  			Code:   res.StatusCode,
  7780  			Header: res.Header,
  7781  		})
  7782  	}
  7783  	if err != nil {
  7784  		return nil, err
  7785  	}
  7786  	defer googleapi.CloseBody(res)
  7787  	if err := googleapi.CheckResponse(res); err != nil {
  7788  		return nil, gensupport.WrapError(err)
  7789  	}
  7790  	ret := &GoogleProtobufEmpty{
  7791  		ServerResponse: googleapi.ServerResponse{
  7792  			Header:         res.Header,
  7793  			HTTPStatusCode: res.StatusCode,
  7794  		},
  7795  	}
  7796  	target := &ret
  7797  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7798  		return nil, err
  7799  	}
  7800  	return ret, nil
  7801  }
  7802  
  7803  type ProjectsTenantsInboundSamlConfigsGetCall struct {
  7804  	s            *Service
  7805  	name         string
  7806  	urlParams_   gensupport.URLParams
  7807  	ifNoneMatch_ string
  7808  	ctx_         context.Context
  7809  	header_      http.Header
  7810  }
  7811  
  7812  // Get: Retrieve an inbound SAML configuration for an Identity Toolkit project.
  7813  //
  7814  //   - name: The resource name of the config, for example:
  7815  //     'projects/my-awesome-project/inboundSamlConfigs/my-config-id'.
  7816  func (r *ProjectsTenantsInboundSamlConfigsService) Get(name string) *ProjectsTenantsInboundSamlConfigsGetCall {
  7817  	c := &ProjectsTenantsInboundSamlConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7818  	c.name = name
  7819  	return c
  7820  }
  7821  
  7822  // Fields allows partial responses to be retrieved. See
  7823  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7824  // details.
  7825  func (c *ProjectsTenantsInboundSamlConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsGetCall {
  7826  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7827  	return c
  7828  }
  7829  
  7830  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7831  // object's ETag matches the given value. This is useful for getting updates
  7832  // only after the object has changed since the last request.
  7833  func (c *ProjectsTenantsInboundSamlConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsInboundSamlConfigsGetCall {
  7834  	c.ifNoneMatch_ = entityTag
  7835  	return c
  7836  }
  7837  
  7838  // Context sets the context to be used in this call's Do method.
  7839  func (c *ProjectsTenantsInboundSamlConfigsGetCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsGetCall {
  7840  	c.ctx_ = ctx
  7841  	return c
  7842  }
  7843  
  7844  // Header returns a http.Header that can be modified by the caller to add
  7845  // headers to the request.
  7846  func (c *ProjectsTenantsInboundSamlConfigsGetCall) Header() http.Header {
  7847  	if c.header_ == nil {
  7848  		c.header_ = make(http.Header)
  7849  	}
  7850  	return c.header_
  7851  }
  7852  
  7853  func (c *ProjectsTenantsInboundSamlConfigsGetCall) doRequest(alt string) (*http.Response, error) {
  7854  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7855  	if c.ifNoneMatch_ != "" {
  7856  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7857  	}
  7858  	var body io.Reader = nil
  7859  	c.urlParams_.Set("alt", alt)
  7860  	c.urlParams_.Set("prettyPrint", "false")
  7861  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  7862  	urls += "?" + c.urlParams_.Encode()
  7863  	req, err := http.NewRequest("GET", urls, body)
  7864  	if err != nil {
  7865  		return nil, err
  7866  	}
  7867  	req.Header = reqHeaders
  7868  	googleapi.Expand(req.URL, map[string]string{
  7869  		"name": c.name,
  7870  	})
  7871  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7872  }
  7873  
  7874  // Do executes the "identitytoolkit.projects.tenants.inboundSamlConfigs.get" call.
  7875  // Any non-2xx status code is an error. Response headers are in either
  7876  // *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Header or
  7877  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  7878  // googleapi.IsNotModified to check whether the returned error was because
  7879  // http.StatusNotModified was returned.
  7880  func (c *ProjectsTenantsInboundSamlConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
  7881  	gensupport.SetOptions(c.urlParams_, opts...)
  7882  	res, err := c.doRequest("json")
  7883  	if res != nil && res.StatusCode == http.StatusNotModified {
  7884  		if res.Body != nil {
  7885  			res.Body.Close()
  7886  		}
  7887  		return nil, gensupport.WrapError(&googleapi.Error{
  7888  			Code:   res.StatusCode,
  7889  			Header: res.Header,
  7890  		})
  7891  	}
  7892  	if err != nil {
  7893  		return nil, err
  7894  	}
  7895  	defer googleapi.CloseBody(res)
  7896  	if err := googleapi.CheckResponse(res); err != nil {
  7897  		return nil, gensupport.WrapError(err)
  7898  	}
  7899  	ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
  7900  		ServerResponse: googleapi.ServerResponse{
  7901  			Header:         res.Header,
  7902  			HTTPStatusCode: res.StatusCode,
  7903  		},
  7904  	}
  7905  	target := &ret
  7906  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7907  		return nil, err
  7908  	}
  7909  	return ret, nil
  7910  }
  7911  
  7912  type ProjectsTenantsInboundSamlConfigsListCall struct {
  7913  	s            *Service
  7914  	parent       string
  7915  	urlParams_   gensupport.URLParams
  7916  	ifNoneMatch_ string
  7917  	ctx_         context.Context
  7918  	header_      http.Header
  7919  }
  7920  
  7921  // List: List all inbound SAML configurations for an Identity Toolkit project.
  7922  //
  7923  //   - parent: The parent resource name, for example,
  7924  //     "projects/my-awesome-project".
  7925  func (r *ProjectsTenantsInboundSamlConfigsService) List(parent string) *ProjectsTenantsInboundSamlConfigsListCall {
  7926  	c := &ProjectsTenantsInboundSamlConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7927  	c.parent = parent
  7928  	return c
  7929  }
  7930  
  7931  // PageSize sets the optional parameter "pageSize": The maximum number of items
  7932  // to return.
  7933  func (c *ProjectsTenantsInboundSamlConfigsListCall) PageSize(pageSize int64) *ProjectsTenantsInboundSamlConfigsListCall {
  7934  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7935  	return c
  7936  }
  7937  
  7938  // PageToken sets the optional parameter "pageToken": The next_page_token value
  7939  // returned from a previous List request, if any.
  7940  func (c *ProjectsTenantsInboundSamlConfigsListCall) PageToken(pageToken string) *ProjectsTenantsInboundSamlConfigsListCall {
  7941  	c.urlParams_.Set("pageToken", pageToken)
  7942  	return c
  7943  }
  7944  
  7945  // Fields allows partial responses to be retrieved. See
  7946  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7947  // details.
  7948  func (c *ProjectsTenantsInboundSamlConfigsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsListCall {
  7949  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7950  	return c
  7951  }
  7952  
  7953  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7954  // object's ETag matches the given value. This is useful for getting updates
  7955  // only after the object has changed since the last request.
  7956  func (c *ProjectsTenantsInboundSamlConfigsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsInboundSamlConfigsListCall {
  7957  	c.ifNoneMatch_ = entityTag
  7958  	return c
  7959  }
  7960  
  7961  // Context sets the context to be used in this call's Do method.
  7962  func (c *ProjectsTenantsInboundSamlConfigsListCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsListCall {
  7963  	c.ctx_ = ctx
  7964  	return c
  7965  }
  7966  
  7967  // Header returns a http.Header that can be modified by the caller to add
  7968  // headers to the request.
  7969  func (c *ProjectsTenantsInboundSamlConfigsListCall) Header() http.Header {
  7970  	if c.header_ == nil {
  7971  		c.header_ = make(http.Header)
  7972  	}
  7973  	return c.header_
  7974  }
  7975  
  7976  func (c *ProjectsTenantsInboundSamlConfigsListCall) doRequest(alt string) (*http.Response, error) {
  7977  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7978  	if c.ifNoneMatch_ != "" {
  7979  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7980  	}
  7981  	var body io.Reader = nil
  7982  	c.urlParams_.Set("alt", alt)
  7983  	c.urlParams_.Set("prettyPrint", "false")
  7984  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inboundSamlConfigs")
  7985  	urls += "?" + c.urlParams_.Encode()
  7986  	req, err := http.NewRequest("GET", urls, body)
  7987  	if err != nil {
  7988  		return nil, err
  7989  	}
  7990  	req.Header = reqHeaders
  7991  	googleapi.Expand(req.URL, map[string]string{
  7992  		"parent": c.parent,
  7993  	})
  7994  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7995  }
  7996  
  7997  // Do executes the "identitytoolkit.projects.tenants.inboundSamlConfigs.list" call.
  7998  // Any non-2xx status code is an error. Response headers are in either
  7999  // *GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse.ServerRespon
  8000  // se.Header or (if a response was returned at all) in
  8001  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8002  // whether the returned error was because http.StatusNotModified was returned.
  8003  func (c *ProjectsTenantsInboundSamlConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse, error) {
  8004  	gensupport.SetOptions(c.urlParams_, opts...)
  8005  	res, err := c.doRequest("json")
  8006  	if res != nil && res.StatusCode == http.StatusNotModified {
  8007  		if res.Body != nil {
  8008  			res.Body.Close()
  8009  		}
  8010  		return nil, gensupport.WrapError(&googleapi.Error{
  8011  			Code:   res.StatusCode,
  8012  			Header: res.Header,
  8013  		})
  8014  	}
  8015  	if err != nil {
  8016  		return nil, err
  8017  	}
  8018  	defer googleapi.CloseBody(res)
  8019  	if err := googleapi.CheckResponse(res); err != nil {
  8020  		return nil, gensupport.WrapError(err)
  8021  	}
  8022  	ret := &GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse{
  8023  		ServerResponse: googleapi.ServerResponse{
  8024  			Header:         res.Header,
  8025  			HTTPStatusCode: res.StatusCode,
  8026  		},
  8027  	}
  8028  	target := &ret
  8029  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8030  		return nil, err
  8031  	}
  8032  	return ret, nil
  8033  }
  8034  
  8035  // Pages invokes f for each page of results.
  8036  // A non-nil error returned from f will halt the iteration.
  8037  // The provided context supersedes any context provided to the Context method.
  8038  func (c *ProjectsTenantsInboundSamlConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse) error) error {
  8039  	c.ctx_ = ctx
  8040  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8041  	for {
  8042  		x, err := c.Do()
  8043  		if err != nil {
  8044  			return err
  8045  		}
  8046  		if err := f(x); err != nil {
  8047  			return err
  8048  		}
  8049  		if x.NextPageToken == "" {
  8050  			return nil
  8051  		}
  8052  		c.PageToken(x.NextPageToken)
  8053  	}
  8054  }
  8055  
  8056  type ProjectsTenantsInboundSamlConfigsPatchCall struct {
  8057  	s                                                  *Service
  8058  	name                                               string
  8059  	googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
  8060  	urlParams_                                         gensupport.URLParams
  8061  	ctx_                                               context.Context
  8062  	header_                                            http.Header
  8063  }
  8064  
  8065  // Patch: Update an inbound SAML configuration for an Identity Toolkit project.
  8066  //
  8067  //   - name: The name of the InboundSamlConfig resource, for example:
  8068  //     'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. Ignored
  8069  //     during create requests.
  8070  func (r *ProjectsTenantsInboundSamlConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsTenantsInboundSamlConfigsPatchCall {
  8071  	c := &ProjectsTenantsInboundSamlConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8072  	c.name = name
  8073  	c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig
  8074  	return c
  8075  }
  8076  
  8077  // UpdateMask sets the optional parameter "updateMask": The update mask applies
  8078  // to the resource. Empty update mask will result in updating nothing. For the
  8079  // `FieldMask` definition, see
  8080  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
  8081  func (c *ProjectsTenantsInboundSamlConfigsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsInboundSamlConfigsPatchCall {
  8082  	c.urlParams_.Set("updateMask", updateMask)
  8083  	return c
  8084  }
  8085  
  8086  // Fields allows partial responses to be retrieved. See
  8087  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8088  // details.
  8089  func (c *ProjectsTenantsInboundSamlConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsPatchCall {
  8090  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8091  	return c
  8092  }
  8093  
  8094  // Context sets the context to be used in this call's Do method.
  8095  func (c *ProjectsTenantsInboundSamlConfigsPatchCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsPatchCall {
  8096  	c.ctx_ = ctx
  8097  	return c
  8098  }
  8099  
  8100  // Header returns a http.Header that can be modified by the caller to add
  8101  // headers to the request.
  8102  func (c *ProjectsTenantsInboundSamlConfigsPatchCall) Header() http.Header {
  8103  	if c.header_ == nil {
  8104  		c.header_ = make(http.Header)
  8105  	}
  8106  	return c.header_
  8107  }
  8108  
  8109  func (c *ProjectsTenantsInboundSamlConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
  8110  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8111  	var body io.Reader = nil
  8112  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2inboundsamlconfig)
  8113  	if err != nil {
  8114  		return nil, err
  8115  	}
  8116  	c.urlParams_.Set("alt", alt)
  8117  	c.urlParams_.Set("prettyPrint", "false")
  8118  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  8119  	urls += "?" + c.urlParams_.Encode()
  8120  	req, err := http.NewRequest("PATCH", urls, body)
  8121  	if err != nil {
  8122  		return nil, err
  8123  	}
  8124  	req.Header = reqHeaders
  8125  	googleapi.Expand(req.URL, map[string]string{
  8126  		"name": c.name,
  8127  	})
  8128  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8129  }
  8130  
  8131  // Do executes the "identitytoolkit.projects.tenants.inboundSamlConfigs.patch" call.
  8132  // Any non-2xx status code is an error. Response headers are in either
  8133  // *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig.ServerResponse.Header or
  8134  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  8135  // googleapi.IsNotModified to check whether the returned error was because
  8136  // http.StatusNotModified was returned.
  8137  func (c *ProjectsTenantsInboundSamlConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
  8138  	gensupport.SetOptions(c.urlParams_, opts...)
  8139  	res, err := c.doRequest("json")
  8140  	if res != nil && res.StatusCode == http.StatusNotModified {
  8141  		if res.Body != nil {
  8142  			res.Body.Close()
  8143  		}
  8144  		return nil, gensupport.WrapError(&googleapi.Error{
  8145  			Code:   res.StatusCode,
  8146  			Header: res.Header,
  8147  		})
  8148  	}
  8149  	if err != nil {
  8150  		return nil, err
  8151  	}
  8152  	defer googleapi.CloseBody(res)
  8153  	if err := googleapi.CheckResponse(res); err != nil {
  8154  		return nil, gensupport.WrapError(err)
  8155  	}
  8156  	ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
  8157  		ServerResponse: googleapi.ServerResponse{
  8158  			Header:         res.Header,
  8159  			HTTPStatusCode: res.StatusCode,
  8160  		},
  8161  	}
  8162  	target := &ret
  8163  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8164  		return nil, err
  8165  	}
  8166  	return ret, nil
  8167  }
  8168  
  8169  type ProjectsTenantsOauthIdpConfigsCreateCall struct {
  8170  	s                                               *Service
  8171  	parent                                          string
  8172  	googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
  8173  	urlParams_                                      gensupport.URLParams
  8174  	ctx_                                            context.Context
  8175  	header_                                         http.Header
  8176  }
  8177  
  8178  // Create: Create an Oidc Idp configuration for an Identity Toolkit project.
  8179  //
  8180  //   - parent: The parent resource name where the config to be created, for
  8181  //     example: "projects/my-awesome-project".
  8182  func (r *ProjectsTenantsOauthIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsTenantsOauthIdpConfigsCreateCall {
  8183  	c := &ProjectsTenantsOauthIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8184  	c.parent = parent
  8185  	c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig
  8186  	return c
  8187  }
  8188  
  8189  // OauthIdpConfigId sets the optional parameter "oauthIdpConfigId": The id to
  8190  // use for this config.
  8191  func (c *ProjectsTenantsOauthIdpConfigsCreateCall) OauthIdpConfigId(oauthIdpConfigId string) *ProjectsTenantsOauthIdpConfigsCreateCall {
  8192  	c.urlParams_.Set("oauthIdpConfigId", oauthIdpConfigId)
  8193  	return c
  8194  }
  8195  
  8196  // Fields allows partial responses to be retrieved. See
  8197  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8198  // details.
  8199  func (c *ProjectsTenantsOauthIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsCreateCall {
  8200  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8201  	return c
  8202  }
  8203  
  8204  // Context sets the context to be used in this call's Do method.
  8205  func (c *ProjectsTenantsOauthIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsCreateCall {
  8206  	c.ctx_ = ctx
  8207  	return c
  8208  }
  8209  
  8210  // Header returns a http.Header that can be modified by the caller to add
  8211  // headers to the request.
  8212  func (c *ProjectsTenantsOauthIdpConfigsCreateCall) Header() http.Header {
  8213  	if c.header_ == nil {
  8214  		c.header_ = make(http.Header)
  8215  	}
  8216  	return c.header_
  8217  }
  8218  
  8219  func (c *ProjectsTenantsOauthIdpConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
  8220  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8221  	var body io.Reader = nil
  8222  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2oauthidpconfig)
  8223  	if err != nil {
  8224  		return nil, err
  8225  	}
  8226  	c.urlParams_.Set("alt", alt)
  8227  	c.urlParams_.Set("prettyPrint", "false")
  8228  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/oauthIdpConfigs")
  8229  	urls += "?" + c.urlParams_.Encode()
  8230  	req, err := http.NewRequest("POST", urls, body)
  8231  	if err != nil {
  8232  		return nil, err
  8233  	}
  8234  	req.Header = reqHeaders
  8235  	googleapi.Expand(req.URL, map[string]string{
  8236  		"parent": c.parent,
  8237  	})
  8238  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8239  }
  8240  
  8241  // Do executes the "identitytoolkit.projects.tenants.oauthIdpConfigs.create" call.
  8242  // Any non-2xx status code is an error. Response headers are in either
  8243  // *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.ServerResponse.Header or
  8244  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  8245  // googleapi.IsNotModified to check whether the returned error was because
  8246  // http.StatusNotModified was returned.
  8247  func (c *ProjectsTenantsOauthIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
  8248  	gensupport.SetOptions(c.urlParams_, opts...)
  8249  	res, err := c.doRequest("json")
  8250  	if res != nil && res.StatusCode == http.StatusNotModified {
  8251  		if res.Body != nil {
  8252  			res.Body.Close()
  8253  		}
  8254  		return nil, gensupport.WrapError(&googleapi.Error{
  8255  			Code:   res.StatusCode,
  8256  			Header: res.Header,
  8257  		})
  8258  	}
  8259  	if err != nil {
  8260  		return nil, err
  8261  	}
  8262  	defer googleapi.CloseBody(res)
  8263  	if err := googleapi.CheckResponse(res); err != nil {
  8264  		return nil, gensupport.WrapError(err)
  8265  	}
  8266  	ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
  8267  		ServerResponse: googleapi.ServerResponse{
  8268  			Header:         res.Header,
  8269  			HTTPStatusCode: res.StatusCode,
  8270  		},
  8271  	}
  8272  	target := &ret
  8273  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8274  		return nil, err
  8275  	}
  8276  	return ret, nil
  8277  }
  8278  
  8279  type ProjectsTenantsOauthIdpConfigsDeleteCall struct {
  8280  	s          *Service
  8281  	name       string
  8282  	urlParams_ gensupport.URLParams
  8283  	ctx_       context.Context
  8284  	header_    http.Header
  8285  }
  8286  
  8287  // Delete: Delete an Oidc Idp configuration for an Identity Toolkit project.
  8288  //
  8289  //   - name: The resource name of the config to be deleted, for example:
  8290  //     'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.
  8291  func (r *ProjectsTenantsOauthIdpConfigsService) Delete(name string) *ProjectsTenantsOauthIdpConfigsDeleteCall {
  8292  	c := &ProjectsTenantsOauthIdpConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8293  	c.name = name
  8294  	return c
  8295  }
  8296  
  8297  // Fields allows partial responses to be retrieved. See
  8298  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8299  // details.
  8300  func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsDeleteCall {
  8301  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8302  	return c
  8303  }
  8304  
  8305  // Context sets the context to be used in this call's Do method.
  8306  func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsDeleteCall {
  8307  	c.ctx_ = ctx
  8308  	return c
  8309  }
  8310  
  8311  // Header returns a http.Header that can be modified by the caller to add
  8312  // headers to the request.
  8313  func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) Header() http.Header {
  8314  	if c.header_ == nil {
  8315  		c.header_ = make(http.Header)
  8316  	}
  8317  	return c.header_
  8318  }
  8319  
  8320  func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
  8321  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8322  	var body io.Reader = nil
  8323  	c.urlParams_.Set("alt", alt)
  8324  	c.urlParams_.Set("prettyPrint", "false")
  8325  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  8326  	urls += "?" + c.urlParams_.Encode()
  8327  	req, err := http.NewRequest("DELETE", urls, body)
  8328  	if err != nil {
  8329  		return nil, err
  8330  	}
  8331  	req.Header = reqHeaders
  8332  	googleapi.Expand(req.URL, map[string]string{
  8333  		"name": c.name,
  8334  	})
  8335  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8336  }
  8337  
  8338  // Do executes the "identitytoolkit.projects.tenants.oauthIdpConfigs.delete" call.
  8339  // Any non-2xx status code is an error. Response headers are in either
  8340  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  8341  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8342  // check whether the returned error was because http.StatusNotModified was
  8343  // returned.
  8344  func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  8345  	gensupport.SetOptions(c.urlParams_, opts...)
  8346  	res, err := c.doRequest("json")
  8347  	if res != nil && res.StatusCode == http.StatusNotModified {
  8348  		if res.Body != nil {
  8349  			res.Body.Close()
  8350  		}
  8351  		return nil, gensupport.WrapError(&googleapi.Error{
  8352  			Code:   res.StatusCode,
  8353  			Header: res.Header,
  8354  		})
  8355  	}
  8356  	if err != nil {
  8357  		return nil, err
  8358  	}
  8359  	defer googleapi.CloseBody(res)
  8360  	if err := googleapi.CheckResponse(res); err != nil {
  8361  		return nil, gensupport.WrapError(err)
  8362  	}
  8363  	ret := &GoogleProtobufEmpty{
  8364  		ServerResponse: googleapi.ServerResponse{
  8365  			Header:         res.Header,
  8366  			HTTPStatusCode: res.StatusCode,
  8367  		},
  8368  	}
  8369  	target := &ret
  8370  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8371  		return nil, err
  8372  	}
  8373  	return ret, nil
  8374  }
  8375  
  8376  type ProjectsTenantsOauthIdpConfigsGetCall struct {
  8377  	s            *Service
  8378  	name         string
  8379  	urlParams_   gensupport.URLParams
  8380  	ifNoneMatch_ string
  8381  	ctx_         context.Context
  8382  	header_      http.Header
  8383  }
  8384  
  8385  // Get: Retrieve an Oidc Idp configuration for an Identity Toolkit project.
  8386  //
  8387  //   - name: The resource name of the config, for example:
  8388  //     'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'.
  8389  func (r *ProjectsTenantsOauthIdpConfigsService) Get(name string) *ProjectsTenantsOauthIdpConfigsGetCall {
  8390  	c := &ProjectsTenantsOauthIdpConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8391  	c.name = name
  8392  	return c
  8393  }
  8394  
  8395  // Fields allows partial responses to be retrieved. See
  8396  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8397  // details.
  8398  func (c *ProjectsTenantsOauthIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsGetCall {
  8399  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8400  	return c
  8401  }
  8402  
  8403  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8404  // object's ETag matches the given value. This is useful for getting updates
  8405  // only after the object has changed since the last request.
  8406  func (c *ProjectsTenantsOauthIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsOauthIdpConfigsGetCall {
  8407  	c.ifNoneMatch_ = entityTag
  8408  	return c
  8409  }
  8410  
  8411  // Context sets the context to be used in this call's Do method.
  8412  func (c *ProjectsTenantsOauthIdpConfigsGetCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsGetCall {
  8413  	c.ctx_ = ctx
  8414  	return c
  8415  }
  8416  
  8417  // Header returns a http.Header that can be modified by the caller to add
  8418  // headers to the request.
  8419  func (c *ProjectsTenantsOauthIdpConfigsGetCall) Header() http.Header {
  8420  	if c.header_ == nil {
  8421  		c.header_ = make(http.Header)
  8422  	}
  8423  	return c.header_
  8424  }
  8425  
  8426  func (c *ProjectsTenantsOauthIdpConfigsGetCall) doRequest(alt string) (*http.Response, error) {
  8427  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8428  	if c.ifNoneMatch_ != "" {
  8429  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8430  	}
  8431  	var body io.Reader = nil
  8432  	c.urlParams_.Set("alt", alt)
  8433  	c.urlParams_.Set("prettyPrint", "false")
  8434  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  8435  	urls += "?" + c.urlParams_.Encode()
  8436  	req, err := http.NewRequest("GET", urls, body)
  8437  	if err != nil {
  8438  		return nil, err
  8439  	}
  8440  	req.Header = reqHeaders
  8441  	googleapi.Expand(req.URL, map[string]string{
  8442  		"name": c.name,
  8443  	})
  8444  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8445  }
  8446  
  8447  // Do executes the "identitytoolkit.projects.tenants.oauthIdpConfigs.get" call.
  8448  // Any non-2xx status code is an error. Response headers are in either
  8449  // *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.ServerResponse.Header or
  8450  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  8451  // googleapi.IsNotModified to check whether the returned error was because
  8452  // http.StatusNotModified was returned.
  8453  func (c *ProjectsTenantsOauthIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
  8454  	gensupport.SetOptions(c.urlParams_, opts...)
  8455  	res, err := c.doRequest("json")
  8456  	if res != nil && res.StatusCode == http.StatusNotModified {
  8457  		if res.Body != nil {
  8458  			res.Body.Close()
  8459  		}
  8460  		return nil, gensupport.WrapError(&googleapi.Error{
  8461  			Code:   res.StatusCode,
  8462  			Header: res.Header,
  8463  		})
  8464  	}
  8465  	if err != nil {
  8466  		return nil, err
  8467  	}
  8468  	defer googleapi.CloseBody(res)
  8469  	if err := googleapi.CheckResponse(res); err != nil {
  8470  		return nil, gensupport.WrapError(err)
  8471  	}
  8472  	ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
  8473  		ServerResponse: googleapi.ServerResponse{
  8474  			Header:         res.Header,
  8475  			HTTPStatusCode: res.StatusCode,
  8476  		},
  8477  	}
  8478  	target := &ret
  8479  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8480  		return nil, err
  8481  	}
  8482  	return ret, nil
  8483  }
  8484  
  8485  type ProjectsTenantsOauthIdpConfigsListCall struct {
  8486  	s            *Service
  8487  	parent       string
  8488  	urlParams_   gensupport.URLParams
  8489  	ifNoneMatch_ string
  8490  	ctx_         context.Context
  8491  	header_      http.Header
  8492  }
  8493  
  8494  // List: List all Oidc Idp configurations for an Identity Toolkit project.
  8495  //
  8496  //   - parent: The parent resource name, for example,
  8497  //     "projects/my-awesome-project".
  8498  func (r *ProjectsTenantsOauthIdpConfigsService) List(parent string) *ProjectsTenantsOauthIdpConfigsListCall {
  8499  	c := &ProjectsTenantsOauthIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8500  	c.parent = parent
  8501  	return c
  8502  }
  8503  
  8504  // PageSize sets the optional parameter "pageSize": The maximum number of items
  8505  // to return.
  8506  func (c *ProjectsTenantsOauthIdpConfigsListCall) PageSize(pageSize int64) *ProjectsTenantsOauthIdpConfigsListCall {
  8507  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8508  	return c
  8509  }
  8510  
  8511  // PageToken sets the optional parameter "pageToken": The next_page_token value
  8512  // returned from a previous List request, if any.
  8513  func (c *ProjectsTenantsOauthIdpConfigsListCall) PageToken(pageToken string) *ProjectsTenantsOauthIdpConfigsListCall {
  8514  	c.urlParams_.Set("pageToken", pageToken)
  8515  	return c
  8516  }
  8517  
  8518  // Fields allows partial responses to be retrieved. See
  8519  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8520  // details.
  8521  func (c *ProjectsTenantsOauthIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsListCall {
  8522  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8523  	return c
  8524  }
  8525  
  8526  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8527  // object's ETag matches the given value. This is useful for getting updates
  8528  // only after the object has changed since the last request.
  8529  func (c *ProjectsTenantsOauthIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsOauthIdpConfigsListCall {
  8530  	c.ifNoneMatch_ = entityTag
  8531  	return c
  8532  }
  8533  
  8534  // Context sets the context to be used in this call's Do method.
  8535  func (c *ProjectsTenantsOauthIdpConfigsListCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsListCall {
  8536  	c.ctx_ = ctx
  8537  	return c
  8538  }
  8539  
  8540  // Header returns a http.Header that can be modified by the caller to add
  8541  // headers to the request.
  8542  func (c *ProjectsTenantsOauthIdpConfigsListCall) Header() http.Header {
  8543  	if c.header_ == nil {
  8544  		c.header_ = make(http.Header)
  8545  	}
  8546  	return c.header_
  8547  }
  8548  
  8549  func (c *ProjectsTenantsOauthIdpConfigsListCall) doRequest(alt string) (*http.Response, error) {
  8550  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8551  	if c.ifNoneMatch_ != "" {
  8552  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8553  	}
  8554  	var body io.Reader = nil
  8555  	c.urlParams_.Set("alt", alt)
  8556  	c.urlParams_.Set("prettyPrint", "false")
  8557  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/oauthIdpConfigs")
  8558  	urls += "?" + c.urlParams_.Encode()
  8559  	req, err := http.NewRequest("GET", urls, body)
  8560  	if err != nil {
  8561  		return nil, err
  8562  	}
  8563  	req.Header = reqHeaders
  8564  	googleapi.Expand(req.URL, map[string]string{
  8565  		"parent": c.parent,
  8566  	})
  8567  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8568  }
  8569  
  8570  // Do executes the "identitytoolkit.projects.tenants.oauthIdpConfigs.list" call.
  8571  // Any non-2xx status code is an error. Response headers are in either
  8572  // *GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse.ServerResponse.
  8573  // Header or (if a response was returned at all) in
  8574  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8575  // whether the returned error was because http.StatusNotModified was returned.
  8576  func (c *ProjectsTenantsOauthIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse, error) {
  8577  	gensupport.SetOptions(c.urlParams_, opts...)
  8578  	res, err := c.doRequest("json")
  8579  	if res != nil && res.StatusCode == http.StatusNotModified {
  8580  		if res.Body != nil {
  8581  			res.Body.Close()
  8582  		}
  8583  		return nil, gensupport.WrapError(&googleapi.Error{
  8584  			Code:   res.StatusCode,
  8585  			Header: res.Header,
  8586  		})
  8587  	}
  8588  	if err != nil {
  8589  		return nil, err
  8590  	}
  8591  	defer googleapi.CloseBody(res)
  8592  	if err := googleapi.CheckResponse(res); err != nil {
  8593  		return nil, gensupport.WrapError(err)
  8594  	}
  8595  	ret := &GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse{
  8596  		ServerResponse: googleapi.ServerResponse{
  8597  			Header:         res.Header,
  8598  			HTTPStatusCode: res.StatusCode,
  8599  		},
  8600  	}
  8601  	target := &ret
  8602  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8603  		return nil, err
  8604  	}
  8605  	return ret, nil
  8606  }
  8607  
  8608  // Pages invokes f for each page of results.
  8609  // A non-nil error returned from f will halt the iteration.
  8610  // The provided context supersedes any context provided to the Context method.
  8611  func (c *ProjectsTenantsOauthIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse) error) error {
  8612  	c.ctx_ = ctx
  8613  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8614  	for {
  8615  		x, err := c.Do()
  8616  		if err != nil {
  8617  			return err
  8618  		}
  8619  		if err := f(x); err != nil {
  8620  			return err
  8621  		}
  8622  		if x.NextPageToken == "" {
  8623  			return nil
  8624  		}
  8625  		c.PageToken(x.NextPageToken)
  8626  	}
  8627  }
  8628  
  8629  type ProjectsTenantsOauthIdpConfigsPatchCall struct {
  8630  	s                                               *Service
  8631  	name                                            string
  8632  	googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
  8633  	urlParams_                                      gensupport.URLParams
  8634  	ctx_                                            context.Context
  8635  	header_                                         http.Header
  8636  }
  8637  
  8638  // Patch: Update an Oidc Idp configuration for an Identity Toolkit project.
  8639  //
  8640  //   - name: The name of the OAuthIdpConfig resource, for example:
  8641  //     'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. Ignored
  8642  //     during create requests.
  8643  func (r *ProjectsTenantsOauthIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsTenantsOauthIdpConfigsPatchCall {
  8644  	c := &ProjectsTenantsOauthIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8645  	c.name = name
  8646  	c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig
  8647  	return c
  8648  }
  8649  
  8650  // UpdateMask sets the optional parameter "updateMask": The update mask applies
  8651  // to the resource. Empty update mask will result in updating nothing. For the
  8652  // `FieldMask` definition, see
  8653  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
  8654  func (c *ProjectsTenantsOauthIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsOauthIdpConfigsPatchCall {
  8655  	c.urlParams_.Set("updateMask", updateMask)
  8656  	return c
  8657  }
  8658  
  8659  // Fields allows partial responses to be retrieved. See
  8660  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8661  // details.
  8662  func (c *ProjectsTenantsOauthIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsPatchCall {
  8663  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8664  	return c
  8665  }
  8666  
  8667  // Context sets the context to be used in this call's Do method.
  8668  func (c *ProjectsTenantsOauthIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsPatchCall {
  8669  	c.ctx_ = ctx
  8670  	return c
  8671  }
  8672  
  8673  // Header returns a http.Header that can be modified by the caller to add
  8674  // headers to the request.
  8675  func (c *ProjectsTenantsOauthIdpConfigsPatchCall) Header() http.Header {
  8676  	if c.header_ == nil {
  8677  		c.header_ = make(http.Header)
  8678  	}
  8679  	return c.header_
  8680  }
  8681  
  8682  func (c *ProjectsTenantsOauthIdpConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
  8683  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8684  	var body io.Reader = nil
  8685  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2oauthidpconfig)
  8686  	if err != nil {
  8687  		return nil, err
  8688  	}
  8689  	c.urlParams_.Set("alt", alt)
  8690  	c.urlParams_.Set("prettyPrint", "false")
  8691  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
  8692  	urls += "?" + c.urlParams_.Encode()
  8693  	req, err := http.NewRequest("PATCH", urls, body)
  8694  	if err != nil {
  8695  		return nil, err
  8696  	}
  8697  	req.Header = reqHeaders
  8698  	googleapi.Expand(req.URL, map[string]string{
  8699  		"name": c.name,
  8700  	})
  8701  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8702  }
  8703  
  8704  // Do executes the "identitytoolkit.projects.tenants.oauthIdpConfigs.patch" call.
  8705  // Any non-2xx status code is an error. Response headers are in either
  8706  // *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.ServerResponse.Header or
  8707  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  8708  // googleapi.IsNotModified to check whether the returned error was because
  8709  // http.StatusNotModified was returned.
  8710  func (c *ProjectsTenantsOauthIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
  8711  	gensupport.SetOptions(c.urlParams_, opts...)
  8712  	res, err := c.doRequest("json")
  8713  	if res != nil && res.StatusCode == http.StatusNotModified {
  8714  		if res.Body != nil {
  8715  			res.Body.Close()
  8716  		}
  8717  		return nil, gensupport.WrapError(&googleapi.Error{
  8718  			Code:   res.StatusCode,
  8719  			Header: res.Header,
  8720  		})
  8721  	}
  8722  	if err != nil {
  8723  		return nil, err
  8724  	}
  8725  	defer googleapi.CloseBody(res)
  8726  	if err := googleapi.CheckResponse(res); err != nil {
  8727  		return nil, gensupport.WrapError(err)
  8728  	}
  8729  	ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
  8730  		ServerResponse: googleapi.ServerResponse{
  8731  			Header:         res.Header,
  8732  			HTTPStatusCode: res.StatusCode,
  8733  		},
  8734  	}
  8735  	target := &ret
  8736  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8737  		return nil, err
  8738  	}
  8739  	return ret, nil
  8740  }
  8741  
  8742  type V2GetPasswordPolicyCall struct {
  8743  	s            *Service
  8744  	urlParams_   gensupport.URLParams
  8745  	ifNoneMatch_ string
  8746  	ctx_         context.Context
  8747  	header_      http.Header
  8748  }
  8749  
  8750  // GetPasswordPolicy: Gets password policy config set on the project or tenant.
  8751  func (r *V2Service) GetPasswordPolicy() *V2GetPasswordPolicyCall {
  8752  	c := &V2GetPasswordPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8753  	return c
  8754  }
  8755  
  8756  // TenantId sets the optional parameter "tenantId": The id of a tenant.
  8757  func (c *V2GetPasswordPolicyCall) TenantId(tenantId string) *V2GetPasswordPolicyCall {
  8758  	c.urlParams_.Set("tenantId", tenantId)
  8759  	return c
  8760  }
  8761  
  8762  // Fields allows partial responses to be retrieved. See
  8763  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8764  // details.
  8765  func (c *V2GetPasswordPolicyCall) Fields(s ...googleapi.Field) *V2GetPasswordPolicyCall {
  8766  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8767  	return c
  8768  }
  8769  
  8770  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8771  // object's ETag matches the given value. This is useful for getting updates
  8772  // only after the object has changed since the last request.
  8773  func (c *V2GetPasswordPolicyCall) IfNoneMatch(entityTag string) *V2GetPasswordPolicyCall {
  8774  	c.ifNoneMatch_ = entityTag
  8775  	return c
  8776  }
  8777  
  8778  // Context sets the context to be used in this call's Do method.
  8779  func (c *V2GetPasswordPolicyCall) Context(ctx context.Context) *V2GetPasswordPolicyCall {
  8780  	c.ctx_ = ctx
  8781  	return c
  8782  }
  8783  
  8784  // Header returns a http.Header that can be modified by the caller to add
  8785  // headers to the request.
  8786  func (c *V2GetPasswordPolicyCall) Header() http.Header {
  8787  	if c.header_ == nil {
  8788  		c.header_ = make(http.Header)
  8789  	}
  8790  	return c.header_
  8791  }
  8792  
  8793  func (c *V2GetPasswordPolicyCall) doRequest(alt string) (*http.Response, error) {
  8794  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8795  	if c.ifNoneMatch_ != "" {
  8796  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8797  	}
  8798  	var body io.Reader = nil
  8799  	c.urlParams_.Set("alt", alt)
  8800  	c.urlParams_.Set("prettyPrint", "false")
  8801  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/passwordPolicy")
  8802  	urls += "?" + c.urlParams_.Encode()
  8803  	req, err := http.NewRequest("GET", urls, body)
  8804  	if err != nil {
  8805  		return nil, err
  8806  	}
  8807  	req.Header = reqHeaders
  8808  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8809  }
  8810  
  8811  // Do executes the "identitytoolkit.getPasswordPolicy" call.
  8812  // Any non-2xx status code is an error. Response headers are in either
  8813  // *GoogleCloudIdentitytoolkitV2PasswordPolicy.ServerResponse.Header or (if a
  8814  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8815  // googleapi.IsNotModified to check whether the returned error was because
  8816  // http.StatusNotModified was returned.
  8817  func (c *V2GetPasswordPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2PasswordPolicy, error) {
  8818  	gensupport.SetOptions(c.urlParams_, opts...)
  8819  	res, err := c.doRequest("json")
  8820  	if res != nil && res.StatusCode == http.StatusNotModified {
  8821  		if res.Body != nil {
  8822  			res.Body.Close()
  8823  		}
  8824  		return nil, gensupport.WrapError(&googleapi.Error{
  8825  			Code:   res.StatusCode,
  8826  			Header: res.Header,
  8827  		})
  8828  	}
  8829  	if err != nil {
  8830  		return nil, err
  8831  	}
  8832  	defer googleapi.CloseBody(res)
  8833  	if err := googleapi.CheckResponse(res); err != nil {
  8834  		return nil, gensupport.WrapError(err)
  8835  	}
  8836  	ret := &GoogleCloudIdentitytoolkitV2PasswordPolicy{
  8837  		ServerResponse: googleapi.ServerResponse{
  8838  			Header:         res.Header,
  8839  			HTTPStatusCode: res.StatusCode,
  8840  		},
  8841  	}
  8842  	target := &ret
  8843  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8844  		return nil, err
  8845  	}
  8846  	return ret, nil
  8847  }
  8848  
  8849  type V2GetRecaptchaConfigCall struct {
  8850  	s            *Service
  8851  	urlParams_   gensupport.URLParams
  8852  	ifNoneMatch_ string
  8853  	ctx_         context.Context
  8854  	header_      http.Header
  8855  }
  8856  
  8857  // GetRecaptchaConfig: Gets parameters needed for reCAPTCHA analysis.
  8858  func (r *V2Service) GetRecaptchaConfig() *V2GetRecaptchaConfigCall {
  8859  	c := &V2GetRecaptchaConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8860  	return c
  8861  }
  8862  
  8863  // ClientType sets the optional parameter "clientType": reCAPTCHA Enterprise
  8864  // uses separate site keys for different client types. Specify the client type
  8865  // to get the corresponding key.
  8866  //
  8867  // Possible values:
  8868  //
  8869  //	"CLIENT_TYPE_UNSPECIFIED" - Client type is not specified.
  8870  //	"CLIENT_TYPE_WEB" - Client type is web.
  8871  //	"CLIENT_TYPE_ANDROID" - Client type is android.
  8872  //	"CLIENT_TYPE_IOS" - Client type is ios.
  8873  func (c *V2GetRecaptchaConfigCall) ClientType(clientType string) *V2GetRecaptchaConfigCall {
  8874  	c.urlParams_.Set("clientType", clientType)
  8875  	return c
  8876  }
  8877  
  8878  // TenantId sets the optional parameter "tenantId": The id of a tenant.
  8879  func (c *V2GetRecaptchaConfigCall) TenantId(tenantId string) *V2GetRecaptchaConfigCall {
  8880  	c.urlParams_.Set("tenantId", tenantId)
  8881  	return c
  8882  }
  8883  
  8884  // Version sets the optional parameter "version": The reCAPTCHA version.
  8885  //
  8886  // Possible values:
  8887  //
  8888  //	"RECAPTCHA_VERSION_UNSPECIFIED" - The reCAPTCHA version is not specified.
  8889  //	"RECAPTCHA_ENTERPRISE" - The reCAPTCHA enterprise.
  8890  func (c *V2GetRecaptchaConfigCall) Version(version string) *V2GetRecaptchaConfigCall {
  8891  	c.urlParams_.Set("version", version)
  8892  	return c
  8893  }
  8894  
  8895  // Fields allows partial responses to be retrieved. See
  8896  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8897  // details.
  8898  func (c *V2GetRecaptchaConfigCall) Fields(s ...googleapi.Field) *V2GetRecaptchaConfigCall {
  8899  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8900  	return c
  8901  }
  8902  
  8903  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8904  // object's ETag matches the given value. This is useful for getting updates
  8905  // only after the object has changed since the last request.
  8906  func (c *V2GetRecaptchaConfigCall) IfNoneMatch(entityTag string) *V2GetRecaptchaConfigCall {
  8907  	c.ifNoneMatch_ = entityTag
  8908  	return c
  8909  }
  8910  
  8911  // Context sets the context to be used in this call's Do method.
  8912  func (c *V2GetRecaptchaConfigCall) Context(ctx context.Context) *V2GetRecaptchaConfigCall {
  8913  	c.ctx_ = ctx
  8914  	return c
  8915  }
  8916  
  8917  // Header returns a http.Header that can be modified by the caller to add
  8918  // headers to the request.
  8919  func (c *V2GetRecaptchaConfigCall) Header() http.Header {
  8920  	if c.header_ == nil {
  8921  		c.header_ = make(http.Header)
  8922  	}
  8923  	return c.header_
  8924  }
  8925  
  8926  func (c *V2GetRecaptchaConfigCall) doRequest(alt string) (*http.Response, error) {
  8927  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8928  	if c.ifNoneMatch_ != "" {
  8929  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8930  	}
  8931  	var body io.Reader = nil
  8932  	c.urlParams_.Set("alt", alt)
  8933  	c.urlParams_.Set("prettyPrint", "false")
  8934  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/recaptchaConfig")
  8935  	urls += "?" + c.urlParams_.Encode()
  8936  	req, err := http.NewRequest("GET", urls, body)
  8937  	if err != nil {
  8938  		return nil, err
  8939  	}
  8940  	req.Header = reqHeaders
  8941  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8942  }
  8943  
  8944  // Do executes the "identitytoolkit.getRecaptchaConfig" call.
  8945  // Any non-2xx status code is an error. Response headers are in either
  8946  // *GoogleCloudIdentitytoolkitV2RecaptchaConfig.ServerResponse.Header or (if a
  8947  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8948  // googleapi.IsNotModified to check whether the returned error was because
  8949  // http.StatusNotModified was returned.
  8950  func (c *V2GetRecaptchaConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2RecaptchaConfig, error) {
  8951  	gensupport.SetOptions(c.urlParams_, opts...)
  8952  	res, err := c.doRequest("json")
  8953  	if res != nil && res.StatusCode == http.StatusNotModified {
  8954  		if res.Body != nil {
  8955  			res.Body.Close()
  8956  		}
  8957  		return nil, gensupport.WrapError(&googleapi.Error{
  8958  			Code:   res.StatusCode,
  8959  			Header: res.Header,
  8960  		})
  8961  	}
  8962  	if err != nil {
  8963  		return nil, err
  8964  	}
  8965  	defer googleapi.CloseBody(res)
  8966  	if err := googleapi.CheckResponse(res); err != nil {
  8967  		return nil, gensupport.WrapError(err)
  8968  	}
  8969  	ret := &GoogleCloudIdentitytoolkitV2RecaptchaConfig{
  8970  		ServerResponse: googleapi.ServerResponse{
  8971  			Header:         res.Header,
  8972  			HTTPStatusCode: res.StatusCode,
  8973  		},
  8974  	}
  8975  	target := &ret
  8976  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8977  		return nil, err
  8978  	}
  8979  	return ret, nil
  8980  }
  8981  

View as plain text