...

Source file src/google.golang.org/api/appengine/v1alpha/appengine-gen.go

Documentation: google.golang.org/api/appengine/v1alpha

     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 appengine provides access to the App Engine Admin API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/appengine/docs/admin-api/
    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/appengine/v1alpha"
    27  //	...
    28  //	ctx := context.Background()
    29  //	appengineService, err := appengine.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  //	appengineService, err := appengine.NewService(ctx, option.WithScopes(appengine.CloudPlatformReadOnlyScope))
    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  //	appengineService, err := appengine.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  //	appengineService, err := appengine.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    54  //
    55  // See [google.golang.org/api/option.ClientOption] for details on options.
    56  package appengine // import "google.golang.org/api/appengine/v1alpha"
    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 = "appengine:v1alpha"
    95  const apiName = "appengine"
    96  const apiVersion = "v1alpha"
    97  const basePath = "https://appengine.googleapis.com/"
    98  const basePathTemplate = "https://appengine.UNIVERSE_DOMAIN/"
    99  const mtlsBasePath = "https://appengine.mtls.googleapis.com/"
   100  
   101  // OAuth2 scopes used by this API.
   102  const (
   103  	// View and manage your applications deployed on Google App Engine
   104  	AppengineAdminScope = "https://www.googleapis.com/auth/appengine.admin"
   105  
   106  	// See, edit, configure, and delete your Google Cloud data and see the email
   107  	// address for your Google Account.
   108  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   109  
   110  	// View your data across Google Cloud services and see the email address of
   111  	// your Google Account
   112  	CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"
   113  )
   114  
   115  // NewService creates a new APIService.
   116  func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) {
   117  	scopesOption := internaloption.WithDefaultScopes(
   118  		"https://www.googleapis.com/auth/appengine.admin",
   119  		"https://www.googleapis.com/auth/cloud-platform",
   120  		"https://www.googleapis.com/auth/cloud-platform.read-only",
   121  	)
   122  	// NOTE: prepend, so we don't override user-specified scopes.
   123  	opts = append([]option.ClientOption{scopesOption}, opts...)
   124  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   125  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   126  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   127  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   128  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   129  	if err != nil {
   130  		return nil, err
   131  	}
   132  	s, err := New(client)
   133  	if err != nil {
   134  		return nil, err
   135  	}
   136  	if endpoint != "" {
   137  		s.BasePath = endpoint
   138  	}
   139  	return s, nil
   140  }
   141  
   142  // New creates a new APIService. It uses the provided http.Client for requests.
   143  //
   144  // Deprecated: please use NewService instead.
   145  // To provide a custom HTTP client, use option.WithHTTPClient.
   146  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   147  func New(client *http.Client) (*APIService, error) {
   148  	if client == nil {
   149  		return nil, errors.New("client is nil")
   150  	}
   151  	s := &APIService{client: client, BasePath: basePath}
   152  	s.Apps = NewAppsService(s)
   153  	s.Projects = NewProjectsService(s)
   154  	return s, nil
   155  }
   156  
   157  type APIService struct {
   158  	client    *http.Client
   159  	BasePath  string // API endpoint base URL
   160  	UserAgent string // optional additional User-Agent fragment
   161  
   162  	Apps *AppsService
   163  
   164  	Projects *ProjectsService
   165  }
   166  
   167  func (s *APIService) userAgent() string {
   168  	if s.UserAgent == "" {
   169  		return googleapi.UserAgent
   170  	}
   171  	return googleapi.UserAgent + " " + s.UserAgent
   172  }
   173  
   174  func NewAppsService(s *APIService) *AppsService {
   175  	rs := &AppsService{s: s}
   176  	rs.AuthorizedCertificates = NewAppsAuthorizedCertificatesService(s)
   177  	rs.AuthorizedDomains = NewAppsAuthorizedDomainsService(s)
   178  	rs.DomainMappings = NewAppsDomainMappingsService(s)
   179  	rs.Locations = NewAppsLocationsService(s)
   180  	rs.Operations = NewAppsOperationsService(s)
   181  	return rs
   182  }
   183  
   184  type AppsService struct {
   185  	s *APIService
   186  
   187  	AuthorizedCertificates *AppsAuthorizedCertificatesService
   188  
   189  	AuthorizedDomains *AppsAuthorizedDomainsService
   190  
   191  	DomainMappings *AppsDomainMappingsService
   192  
   193  	Locations *AppsLocationsService
   194  
   195  	Operations *AppsOperationsService
   196  }
   197  
   198  func NewAppsAuthorizedCertificatesService(s *APIService) *AppsAuthorizedCertificatesService {
   199  	rs := &AppsAuthorizedCertificatesService{s: s}
   200  	return rs
   201  }
   202  
   203  type AppsAuthorizedCertificatesService struct {
   204  	s *APIService
   205  }
   206  
   207  func NewAppsAuthorizedDomainsService(s *APIService) *AppsAuthorizedDomainsService {
   208  	rs := &AppsAuthorizedDomainsService{s: s}
   209  	return rs
   210  }
   211  
   212  type AppsAuthorizedDomainsService struct {
   213  	s *APIService
   214  }
   215  
   216  func NewAppsDomainMappingsService(s *APIService) *AppsDomainMappingsService {
   217  	rs := &AppsDomainMappingsService{s: s}
   218  	return rs
   219  }
   220  
   221  type AppsDomainMappingsService struct {
   222  	s *APIService
   223  }
   224  
   225  func NewAppsLocationsService(s *APIService) *AppsLocationsService {
   226  	rs := &AppsLocationsService{s: s}
   227  	return rs
   228  }
   229  
   230  type AppsLocationsService struct {
   231  	s *APIService
   232  }
   233  
   234  func NewAppsOperationsService(s *APIService) *AppsOperationsService {
   235  	rs := &AppsOperationsService{s: s}
   236  	return rs
   237  }
   238  
   239  type AppsOperationsService struct {
   240  	s *APIService
   241  }
   242  
   243  func NewProjectsService(s *APIService) *ProjectsService {
   244  	rs := &ProjectsService{s: s}
   245  	rs.Locations = NewProjectsLocationsService(s)
   246  	return rs
   247  }
   248  
   249  type ProjectsService struct {
   250  	s *APIService
   251  
   252  	Locations *ProjectsLocationsService
   253  }
   254  
   255  func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService {
   256  	rs := &ProjectsLocationsService{s: s}
   257  	rs.Applications = NewProjectsLocationsApplicationsService(s)
   258  	rs.Operations = NewProjectsLocationsOperationsService(s)
   259  	return rs
   260  }
   261  
   262  type ProjectsLocationsService struct {
   263  	s *APIService
   264  
   265  	Applications *ProjectsLocationsApplicationsService
   266  
   267  	Operations *ProjectsLocationsOperationsService
   268  }
   269  
   270  func NewProjectsLocationsApplicationsService(s *APIService) *ProjectsLocationsApplicationsService {
   271  	rs := &ProjectsLocationsApplicationsService{s: s}
   272  	rs.AuthorizedDomains = NewProjectsLocationsApplicationsAuthorizedDomainsService(s)
   273  	return rs
   274  }
   275  
   276  type ProjectsLocationsApplicationsService struct {
   277  	s *APIService
   278  
   279  	AuthorizedDomains *ProjectsLocationsApplicationsAuthorizedDomainsService
   280  }
   281  
   282  func NewProjectsLocationsApplicationsAuthorizedDomainsService(s *APIService) *ProjectsLocationsApplicationsAuthorizedDomainsService {
   283  	rs := &ProjectsLocationsApplicationsAuthorizedDomainsService{s: s}
   284  	return rs
   285  }
   286  
   287  type ProjectsLocationsApplicationsAuthorizedDomainsService struct {
   288  	s *APIService
   289  }
   290  
   291  func NewProjectsLocationsOperationsService(s *APIService) *ProjectsLocationsOperationsService {
   292  	rs := &ProjectsLocationsOperationsService{s: s}
   293  	return rs
   294  }
   295  
   296  type ProjectsLocationsOperationsService struct {
   297  	s *APIService
   298  }
   299  
   300  // AuthorizedCertificate: An SSL certificate that a user has been authorized to
   301  // administer. A user is authorized to administer any certificate that applies
   302  // to one of their authorized domains.
   303  type AuthorizedCertificate struct {
   304  	// CertificateRawData: The SSL certificate serving the AuthorizedCertificate
   305  	// resource. This must be obtained independently from a certificate authority.
   306  	CertificateRawData *CertificateRawData `json:"certificateRawData,omitempty"`
   307  	// DisplayName: The user-specified display name of the certificate. This is not
   308  	// guaranteed to be unique. Example: My Certificate.
   309  	DisplayName string `json:"displayName,omitempty"`
   310  	// DomainMappingsCount: Aggregate count of the domain mappings with this
   311  	// certificate mapped. This count includes domain mappings on applications for
   312  	// which the user does not have VIEWER permissions.Only returned by GET or LIST
   313  	// requests when specifically requested by the view=FULL_CERTIFICATE
   314  	// option.@OutputOnly
   315  	DomainMappingsCount int64 `json:"domainMappingsCount,omitempty"`
   316  	// DomainNames: Topmost applicable domains of this certificate. This
   317  	// certificate applies to these domains and their subdomains. Example:
   318  	// example.com.@OutputOnly
   319  	DomainNames []string `json:"domainNames,omitempty"`
   320  	// ExpireTime: The time when this certificate expires. To update the renewal
   321  	// time on this certificate, upload an SSL certificate with a different
   322  	// expiration time using
   323  	// AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly
   324  	ExpireTime string `json:"expireTime,omitempty"`
   325  	// Id: Relative name of the certificate. This is a unique value autogenerated
   326  	// on AuthorizedCertificate resource creation. Example: 12345.@OutputOnly
   327  	Id string `json:"id,omitempty"`
   328  	// ManagedCertificate: Only applicable if this certificate is managed by App
   329  	// Engine. Managed certificates are tied to the lifecycle of a DomainMapping
   330  	// and cannot be updated or deleted via the AuthorizedCertificates API. If this
   331  	// certificate is manually administered by the user, this field will be
   332  	// empty.@OutputOnly
   333  	ManagedCertificate *ManagedCertificate `json:"managedCertificate,omitempty"`
   334  	// Name: Full path to the AuthorizedCertificate resource in the API. Example:
   335  	// apps/myapp/authorizedCertificates/12345.@OutputOnly
   336  	Name string `json:"name,omitempty"`
   337  	// VisibleDomainMappings: The full paths to user visible Domain Mapping
   338  	// resources that have this certificate mapped. Example:
   339  	// apps/myapp/domainMappings/example.com.This may not represent the full list
   340  	// of mapped domain mappings if the user does not have VIEWER permissions on
   341  	// all of the applications that have this certificate mapped. See
   342  	// domain_mappings_count for a complete count.Only returned by GET or LIST
   343  	// requests when specifically requested by the view=FULL_CERTIFICATE
   344  	// option.@OutputOnly
   345  	VisibleDomainMappings []string `json:"visibleDomainMappings,omitempty"`
   346  
   347  	// ServerResponse contains the HTTP response code and headers from the server.
   348  	googleapi.ServerResponse `json:"-"`
   349  	// ForceSendFields is a list of field names (e.g. "CertificateRawData") to
   350  	// unconditionally include in API requests. By default, fields with empty or
   351  	// default values are omitted from API requests. See
   352  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   353  	// details.
   354  	ForceSendFields []string `json:"-"`
   355  	// NullFields is a list of field names (e.g. "CertificateRawData") to include
   356  	// in API requests with the JSON null value. By default, fields with empty
   357  	// values are omitted from API requests. See
   358  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   359  	NullFields []string `json:"-"`
   360  }
   361  
   362  func (s *AuthorizedCertificate) MarshalJSON() ([]byte, error) {
   363  	type NoMethod AuthorizedCertificate
   364  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   365  }
   366  
   367  // AuthorizedDomain: A domain that a user has been authorized to administer. To
   368  // authorize use of a domain, verify ownership via Search Console
   369  // (https://search.google.com/search-console/welcome).
   370  type AuthorizedDomain struct {
   371  	// Id: Fully qualified domain name of the domain authorized for use. Example:
   372  	// example.com.
   373  	Id string `json:"id,omitempty"`
   374  	// Name: Full path to the AuthorizedDomain resource in the API. Example:
   375  	// apps/myapp/authorizedDomains/example.com.@OutputOnly
   376  	Name string `json:"name,omitempty"`
   377  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
   378  	// include in API requests. By default, fields with empty or default values are
   379  	// omitted from API requests. See
   380  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   381  	// details.
   382  	ForceSendFields []string `json:"-"`
   383  	// NullFields is a list of field names (e.g. "Id") to include in API requests
   384  	// with the JSON null value. By default, fields with empty values are omitted
   385  	// from API requests. See
   386  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   387  	NullFields []string `json:"-"`
   388  }
   389  
   390  func (s *AuthorizedDomain) MarshalJSON() ([]byte, error) {
   391  	type NoMethod AuthorizedDomain
   392  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   393  }
   394  
   395  // CertificateRawData: An SSL certificate obtained from a certificate
   396  // authority.
   397  type CertificateRawData struct {
   398  	// PrivateKey: Unencrypted PEM encoded RSA private key. This field is set once
   399  	// on certificate creation and then encrypted. The key size must be 2048 bits
   400  	// or fewer. Must include the header and footer. Example: -----BEGIN RSA
   401  	// PRIVATE KEY----- -----END RSA PRIVATE KEY----- @InputOnly
   402  	PrivateKey string `json:"privateKey,omitempty"`
   403  	// PublicCertificate: PEM encoded x.509 public key certificate. This field is
   404  	// set once on certificate creation. Must include the header and footer.
   405  	// Example: -----BEGIN CERTIFICATE----- -----END CERTIFICATE-----
   406  	PublicCertificate string `json:"publicCertificate,omitempty"`
   407  	// ForceSendFields is a list of field names (e.g. "PrivateKey") to
   408  	// unconditionally include in API requests. By default, fields with empty or
   409  	// default values are omitted from API requests. See
   410  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   411  	// details.
   412  	ForceSendFields []string `json:"-"`
   413  	// NullFields is a list of field names (e.g. "PrivateKey") to include in API
   414  	// requests with the JSON null value. By default, fields with empty values are
   415  	// omitted from API requests. See
   416  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   417  	NullFields []string `json:"-"`
   418  }
   419  
   420  func (s *CertificateRawData) MarshalJSON() ([]byte, error) {
   421  	type NoMethod CertificateRawData
   422  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   423  }
   424  
   425  // ContainerState: ContainerState contains the externally-visible container
   426  // state that is used to communicate the state and reasoning for that state to
   427  // the CLH. This data is not persisted by CCFE, but is instead derived from
   428  // CCFE's internal representation of the container state.
   429  type ContainerState struct {
   430  	CurrentReasons *Reasons `json:"currentReasons,omitempty"`
   431  	// PreviousReasons: The previous and current reasons for a container state will
   432  	// be sent for a container event. CLHs that need to know the signal that caused
   433  	// the container event to trigger (edges) as opposed to just knowing the state
   434  	// can act upon differences in the previous and current reasons.Reasons will be
   435  	// provided for every system: service management, data governance, abuse, and
   436  	// billing.If this is a CCFE-triggered event used for reconciliation then the
   437  	// current reasons will be set to their *_CONTROL_PLANE_SYNC state. The
   438  	// previous reasons will contain the last known set of non-unknown
   439  	// non-control_plane_sync reasons for the state.
   440  	PreviousReasons *Reasons `json:"previousReasons,omitempty"`
   441  	// State: The current state of the container. This state is the culmination of
   442  	// all of the opinions from external systems that CCFE knows about of the
   443  	// container.
   444  	//
   445  	// Possible values:
   446  	//   "UNKNOWN_STATE" - A container should never be in an unknown state. Receipt
   447  	// of a container with this state is an error.
   448  	//   "ON" - CCFE considers the container to be serving or transitioning into
   449  	// serving.
   450  	//   "OFF" - CCFE considers the container to be in an OFF state. This could
   451  	// occur due to various factors. The state could be triggered by
   452  	// Google-internal audits (ex. abuse suspension, billing closed) or cleanups
   453  	// trigged by compliance systems (ex. data governance hide). User-initiated
   454  	// events such as service management deactivation trigger a container to an OFF
   455  	// state.CLHs might choose to do nothing in this case or to turn off costly
   456  	// resources. CLHs need to consider the customer experience if an ON/OFF/ON
   457  	// sequence of state transitions occurs vs. the cost of deleting resources,
   458  	// keeping metadata about resources, or even keeping resources live for a
   459  	// period of time.CCFE will not send any new customer requests to the CLH when
   460  	// the container is in an OFF state. However, CCFE will allow all previous
   461  	// customer requests relayed to CLH to complete.
   462  	//   "DELETED" - This state indicates that the container has been (or is being)
   463  	// completely removed. This is often due to a data governance purge request and
   464  	// therefore resources should be deleted when this state is reached.
   465  	State string `json:"state,omitempty"`
   466  	// ForceSendFields is a list of field names (e.g. "CurrentReasons") to
   467  	// unconditionally include in API requests. By default, fields with empty or
   468  	// default values are omitted from API requests. See
   469  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   470  	// details.
   471  	ForceSendFields []string `json:"-"`
   472  	// NullFields is a list of field names (e.g. "CurrentReasons") to include in
   473  	// API requests with the JSON null value. By default, fields with empty values
   474  	// are omitted from API requests. See
   475  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   476  	NullFields []string `json:"-"`
   477  }
   478  
   479  func (s *ContainerState) MarshalJSON() ([]byte, error) {
   480  	type NoMethod ContainerState
   481  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   482  }
   483  
   484  // CreateVersionMetadataV1: Metadata for the given google.longrunning.Operation
   485  // during a google.appengine.v1.CreateVersionRequest.
   486  type CreateVersionMetadataV1 struct {
   487  	// CloudBuildId: The Cloud Build ID if one was created as part of the version
   488  	// create. @OutputOnly
   489  	CloudBuildId string `json:"cloudBuildId,omitempty"`
   490  	// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
   491  	// unconditionally include in API requests. By default, fields with empty or
   492  	// default values are omitted from API requests. See
   493  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   494  	// details.
   495  	ForceSendFields []string `json:"-"`
   496  	// NullFields is a list of field names (e.g. "CloudBuildId") to include in API
   497  	// requests with the JSON null value. By default, fields with empty values are
   498  	// omitted from API requests. See
   499  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   500  	NullFields []string `json:"-"`
   501  }
   502  
   503  func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
   504  	type NoMethod CreateVersionMetadataV1
   505  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   506  }
   507  
   508  // CreateVersionMetadataV1Alpha: Metadata for the given
   509  // google.longrunning.Operation during a
   510  // google.appengine.v1alpha.CreateVersionRequest.
   511  type CreateVersionMetadataV1Alpha struct {
   512  	// CloudBuildId: The Cloud Build ID if one was created as part of the version
   513  	// create. @OutputOnly
   514  	CloudBuildId string `json:"cloudBuildId,omitempty"`
   515  	// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
   516  	// unconditionally include in API requests. By default, fields with empty or
   517  	// default values are omitted from API requests. See
   518  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   519  	// details.
   520  	ForceSendFields []string `json:"-"`
   521  	// NullFields is a list of field names (e.g. "CloudBuildId") to include in API
   522  	// requests with the JSON null value. By default, fields with empty values are
   523  	// omitted from API requests. See
   524  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   525  	NullFields []string `json:"-"`
   526  }
   527  
   528  func (s *CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) {
   529  	type NoMethod CreateVersionMetadataV1Alpha
   530  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   531  }
   532  
   533  // CreateVersionMetadataV1Beta: Metadata for the given
   534  // google.longrunning.Operation during a
   535  // google.appengine.v1beta.CreateVersionRequest.
   536  type CreateVersionMetadataV1Beta struct {
   537  	// CloudBuildId: The Cloud Build ID if one was created as part of the version
   538  	// create. @OutputOnly
   539  	CloudBuildId string `json:"cloudBuildId,omitempty"`
   540  	// ForceSendFields is a list of field names (e.g. "CloudBuildId") to
   541  	// unconditionally include in API requests. By default, fields with empty or
   542  	// default values are omitted from API requests. See
   543  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   544  	// details.
   545  	ForceSendFields []string `json:"-"`
   546  	// NullFields is a list of field names (e.g. "CloudBuildId") to include in API
   547  	// requests with the JSON null value. By default, fields with empty values are
   548  	// omitted from API requests. See
   549  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   550  	NullFields []string `json:"-"`
   551  }
   552  
   553  func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) {
   554  	type NoMethod CreateVersionMetadataV1Beta
   555  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   556  }
   557  
   558  // DomainMapping: A domain serving an App Engine application.
   559  type DomainMapping struct {
   560  	// Id: Relative name of the domain serving the application. Example:
   561  	// example.com.
   562  	Id string `json:"id,omitempty"`
   563  	// Name: Full path to the DomainMapping resource in the API. Example:
   564  	// apps/myapp/domainMapping/example.com.@OutputOnly
   565  	Name string `json:"name,omitempty"`
   566  	// ResourceRecords: The resource records required to configure this domain
   567  	// mapping. These records must be added to the domain's DNS configuration in
   568  	// order to serve the application via this domain mapping.@OutputOnly
   569  	ResourceRecords []*ResourceRecord `json:"resourceRecords,omitempty"`
   570  	// SslSettings: SSL configuration for this domain. If unconfigured, this domain
   571  	// will not serve with SSL.
   572  	SslSettings *SslSettings `json:"sslSettings,omitempty"`
   573  
   574  	// ServerResponse contains the HTTP response code and headers from the server.
   575  	googleapi.ServerResponse `json:"-"`
   576  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
   577  	// include in API requests. By default, fields with empty or default values are
   578  	// omitted from API requests. See
   579  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   580  	// details.
   581  	ForceSendFields []string `json:"-"`
   582  	// NullFields is a list of field names (e.g. "Id") to include in API requests
   583  	// with the JSON null value. By default, fields with empty values are omitted
   584  	// from API requests. See
   585  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   586  	NullFields []string `json:"-"`
   587  }
   588  
   589  func (s *DomainMapping) MarshalJSON() ([]byte, error) {
   590  	type NoMethod DomainMapping
   591  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   592  }
   593  
   594  // Empty: A generic empty message that you can re-use to avoid defining
   595  // duplicated empty messages in your APIs. A typical example is to use it as
   596  // the request or the response type of an API method. For instance: service Foo
   597  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
   598  type Empty struct {
   599  	// ServerResponse contains the HTTP response code and headers from the server.
   600  	googleapi.ServerResponse `json:"-"`
   601  }
   602  
   603  // GoogleAppengineV1betaLocationMetadata: Metadata for the given
   604  // google.cloud.location.Location.
   605  type GoogleAppengineV1betaLocationMetadata struct {
   606  	// FlexibleEnvironmentAvailable: App Engine flexible environment is available
   607  	// in the given location.@OutputOnly
   608  	FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
   609  	// SearchApiAvailable: Output only. Search API
   610  	// (https://cloud.google.com/appengine/docs/standard/python/search) is
   611  	// available in the given location.
   612  	SearchApiAvailable bool `json:"searchApiAvailable,omitempty"`
   613  	// StandardEnvironmentAvailable: App Engine standard environment is available
   614  	// in the given location.@OutputOnly
   615  	StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
   616  	// ForceSendFields is a list of field names (e.g.
   617  	// "FlexibleEnvironmentAvailable") to unconditionally include in API requests.
   618  	// By default, fields with empty or default values are omitted from API
   619  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
   620  	// for more details.
   621  	ForceSendFields []string `json:"-"`
   622  	// NullFields is a list of field names (e.g. "FlexibleEnvironmentAvailable") to
   623  	// include in API requests with the JSON null value. By default, fields with
   624  	// empty values are omitted from API requests. See
   625  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   626  	NullFields []string `json:"-"`
   627  }
   628  
   629  func (s *GoogleAppengineV1betaLocationMetadata) MarshalJSON() ([]byte, error) {
   630  	type NoMethod GoogleAppengineV1betaLocationMetadata
   631  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   632  }
   633  
   634  // ListAuthorizedCertificatesResponse: Response message for
   635  // AuthorizedCertificates.ListAuthorizedCertificates.
   636  type ListAuthorizedCertificatesResponse struct {
   637  	// Certificates: The SSL certificates the user is authorized to administer.
   638  	Certificates []*AuthorizedCertificate `json:"certificates,omitempty"`
   639  	// NextPageToken: Continuation token for fetching the next page of results.
   640  	NextPageToken string `json:"nextPageToken,omitempty"`
   641  
   642  	// ServerResponse contains the HTTP response code and headers from the server.
   643  	googleapi.ServerResponse `json:"-"`
   644  	// ForceSendFields is a list of field names (e.g. "Certificates") to
   645  	// unconditionally include in API requests. By default, fields with empty or
   646  	// default values are omitted from API requests. See
   647  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   648  	// details.
   649  	ForceSendFields []string `json:"-"`
   650  	// NullFields is a list of field names (e.g. "Certificates") to include in API
   651  	// requests with the JSON null value. By default, fields with empty values are
   652  	// omitted from API requests. See
   653  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   654  	NullFields []string `json:"-"`
   655  }
   656  
   657  func (s *ListAuthorizedCertificatesResponse) MarshalJSON() ([]byte, error) {
   658  	type NoMethod ListAuthorizedCertificatesResponse
   659  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   660  }
   661  
   662  // ListAuthorizedDomainsResponse: Response message for
   663  // AuthorizedDomains.ListAuthorizedDomains.
   664  type ListAuthorizedDomainsResponse struct {
   665  	// Domains: The authorized domains belonging to the user.
   666  	Domains []*AuthorizedDomain `json:"domains,omitempty"`
   667  	// NextPageToken: Continuation token for fetching the next page of results.
   668  	NextPageToken string `json:"nextPageToken,omitempty"`
   669  
   670  	// ServerResponse contains the HTTP response code and headers from the server.
   671  	googleapi.ServerResponse `json:"-"`
   672  	// ForceSendFields is a list of field names (e.g. "Domains") to unconditionally
   673  	// include in API requests. By default, fields with empty or default values are
   674  	// omitted from API requests. See
   675  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   676  	// details.
   677  	ForceSendFields []string `json:"-"`
   678  	// NullFields is a list of field names (e.g. "Domains") to include in API
   679  	// requests with the JSON null value. By default, fields with empty values are
   680  	// omitted from API requests. See
   681  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   682  	NullFields []string `json:"-"`
   683  }
   684  
   685  func (s *ListAuthorizedDomainsResponse) MarshalJSON() ([]byte, error) {
   686  	type NoMethod ListAuthorizedDomainsResponse
   687  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   688  }
   689  
   690  // ListDomainMappingsResponse: Response message for
   691  // DomainMappings.ListDomainMappings.
   692  type ListDomainMappingsResponse struct {
   693  	// DomainMappings: The domain mappings for the application.
   694  	DomainMappings []*DomainMapping `json:"domainMappings,omitempty"`
   695  	// NextPageToken: Continuation token for fetching the next page of results.
   696  	NextPageToken string `json:"nextPageToken,omitempty"`
   697  
   698  	// ServerResponse contains the HTTP response code and headers from the server.
   699  	googleapi.ServerResponse `json:"-"`
   700  	// ForceSendFields is a list of field names (e.g. "DomainMappings") to
   701  	// unconditionally include in API requests. By default, fields with empty or
   702  	// default values are omitted from API requests. See
   703  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   704  	// details.
   705  	ForceSendFields []string `json:"-"`
   706  	// NullFields is a list of field names (e.g. "DomainMappings") to include in
   707  	// API requests with the JSON null value. By default, fields with empty values
   708  	// are omitted from API requests. See
   709  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   710  	NullFields []string `json:"-"`
   711  }
   712  
   713  func (s *ListDomainMappingsResponse) MarshalJSON() ([]byte, error) {
   714  	type NoMethod ListDomainMappingsResponse
   715  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   716  }
   717  
   718  // ListLocationsResponse: The response message for Locations.ListLocations.
   719  type ListLocationsResponse struct {
   720  	// Locations: A list of locations that matches the specified filter in the
   721  	// request.
   722  	Locations []*Location `json:"locations,omitempty"`
   723  	// NextPageToken: The standard List next-page token.
   724  	NextPageToken string `json:"nextPageToken,omitempty"`
   725  
   726  	// ServerResponse contains the HTTP response code and headers from the server.
   727  	googleapi.ServerResponse `json:"-"`
   728  	// ForceSendFields is a list of field names (e.g. "Locations") to
   729  	// unconditionally include in API requests. By default, fields with empty or
   730  	// default values are omitted from API requests. See
   731  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   732  	// details.
   733  	ForceSendFields []string `json:"-"`
   734  	// NullFields is a list of field names (e.g. "Locations") to include in API
   735  	// requests with the JSON null value. By default, fields with empty values are
   736  	// omitted from API requests. See
   737  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   738  	NullFields []string `json:"-"`
   739  }
   740  
   741  func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
   742  	type NoMethod ListLocationsResponse
   743  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   744  }
   745  
   746  // ListOperationsResponse: The response message for Operations.ListOperations.
   747  type ListOperationsResponse struct {
   748  	// NextPageToken: The standard List next-page token.
   749  	NextPageToken string `json:"nextPageToken,omitempty"`
   750  	// Operations: A list of operations that matches the specified filter in the
   751  	// request.
   752  	Operations []*Operation `json:"operations,omitempty"`
   753  
   754  	// ServerResponse contains the HTTP response code and headers from the server.
   755  	googleapi.ServerResponse `json:"-"`
   756  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   757  	// unconditionally include in API requests. By default, fields with empty or
   758  	// default values are omitted from API requests. See
   759  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   760  	// details.
   761  	ForceSendFields []string `json:"-"`
   762  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   763  	// requests with the JSON null value. By default, fields with empty values are
   764  	// omitted from API requests. See
   765  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   766  	NullFields []string `json:"-"`
   767  }
   768  
   769  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
   770  	type NoMethod ListOperationsResponse
   771  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   772  }
   773  
   774  // Location: A resource that represents a Google Cloud location.
   775  type Location struct {
   776  	// DisplayName: The friendly name for this location, typically a nearby city
   777  	// name. For example, "Tokyo".
   778  	DisplayName string `json:"displayName,omitempty"`
   779  	// Labels: Cross-service attributes for the location. For example
   780  	// {"cloud.googleapis.com/region": "us-east1"}
   781  	Labels map[string]string `json:"labels,omitempty"`
   782  	// LocationId: The canonical id for this location. For example: "us-east1".
   783  	LocationId string `json:"locationId,omitempty"`
   784  	// Metadata: Service-specific metadata. For example the available capacity at
   785  	// the given location.
   786  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
   787  	// Name: Resource name for the location, which may vary between
   788  	// implementations. For example: "projects/example-project/locations/us-east1"
   789  	Name string `json:"name,omitempty"`
   790  
   791  	// ServerResponse contains the HTTP response code and headers from the server.
   792  	googleapi.ServerResponse `json:"-"`
   793  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
   794  	// unconditionally include in API requests. By default, fields with empty or
   795  	// default values are omitted from API requests. See
   796  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   797  	// details.
   798  	ForceSendFields []string `json:"-"`
   799  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
   800  	// requests with the JSON null value. By default, fields with empty values are
   801  	// omitted from API requests. See
   802  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   803  	NullFields []string `json:"-"`
   804  }
   805  
   806  func (s *Location) MarshalJSON() ([]byte, error) {
   807  	type NoMethod Location
   808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   809  }
   810  
   811  // LocationMetadata: Metadata for the given google.cloud.location.Location.
   812  type LocationMetadata struct {
   813  	// FlexibleEnvironmentAvailable: App Engine flexible environment is available
   814  	// in the given location.@OutputOnly
   815  	FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
   816  	// SearchApiAvailable: Output only. Search API
   817  	// (https://cloud.google.com/appengine/docs/standard/python/search) is
   818  	// available in the given location.
   819  	SearchApiAvailable bool `json:"searchApiAvailable,omitempty"`
   820  	// StandardEnvironmentAvailable: App Engine standard environment is available
   821  	// in the given location.@OutputOnly
   822  	StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
   823  	// ForceSendFields is a list of field names (e.g.
   824  	// "FlexibleEnvironmentAvailable") to unconditionally include in API requests.
   825  	// By default, fields with empty or default values are omitted from API
   826  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
   827  	// for more details.
   828  	ForceSendFields []string `json:"-"`
   829  	// NullFields is a list of field names (e.g. "FlexibleEnvironmentAvailable") to
   830  	// include in API requests with the JSON null value. By default, fields with
   831  	// empty values are omitted from API requests. See
   832  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   833  	NullFields []string `json:"-"`
   834  }
   835  
   836  func (s *LocationMetadata) MarshalJSON() ([]byte, error) {
   837  	type NoMethod LocationMetadata
   838  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   839  }
   840  
   841  // ManagedCertificate: A certificate managed by App Engine.
   842  type ManagedCertificate struct {
   843  	// LastRenewalTime: Time at which the certificate was last renewed. The renewal
   844  	// process is fully managed. Certificate renewal will automatically occur
   845  	// before the certificate expires. Renewal errors can be tracked via
   846  	// ManagementStatus.@OutputOnly
   847  	LastRenewalTime string `json:"lastRenewalTime,omitempty"`
   848  	// Status: Status of certificate management. Refers to the most recent
   849  	// certificate acquisition or renewal attempt.@OutputOnly
   850  	//
   851  	// Possible values:
   852  	//   "UNSPECIFIED_STATUS"
   853  	//   "OK" - Certificate was successfully obtained and inserted into the serving
   854  	// system.
   855  	//   "PENDING" - Certificate is under active attempts to acquire or renew.
   856  	//   "FAILED_RETRYING_INTERNAL" - Most recent renewal failed due to a system
   857  	// failure and will be retried. System failure is likely transient, and
   858  	// subsequent renewal attempts may succeed. The last successfully provisioned
   859  	// certificate may still be serving.
   860  	//   "FAILED_RETRYING_NOT_VISIBLE" - Most recent renewal failed due to an
   861  	// invalid DNS setup and will be retried. Renewal attempts will continue to
   862  	// fail until the certificate domain's DNS configuration is fixed. The last
   863  	// successfully provisioned certificate may still be serving.
   864  	//   "FAILED_PERMANENTLY_NOT_VISIBLE" - All renewal attempts have been
   865  	// exhausted. Most recent renewal failed due to an invalid DNS setup and will
   866  	// not be retried. The last successfully provisioned certificate may still be
   867  	// serving.
   868  	//   "FAILED_RETRYING_CAA_FORBIDDEN" - Most recent renewal failed due to an
   869  	// explicit CAA record that does not include one of the in-use CAs (Google CA
   870  	// and Let's Encrypt). Renewals will continue to fail until the CAA is
   871  	// reconfigured. The last successfully provisioned certificate may still be
   872  	// serving.
   873  	//   "FAILED_RETRYING_CAA_CHECKING" - Most recent renewal failed due to a CAA
   874  	// retrieval failure. This means that the domain's DNS provider does not
   875  	// properly handle CAA records, failing requests for CAA records when no CAA
   876  	// records are defined. Renewals will continue to fail until the DNS provider
   877  	// is changed or a CAA record is added for the given domain. The last
   878  	// successfully provisioned certificate may still be serving.
   879  	Status string `json:"status,omitempty"`
   880  	// ForceSendFields is a list of field names (e.g. "LastRenewalTime") to
   881  	// unconditionally include in API requests. By default, fields with empty or
   882  	// default values are omitted from API requests. See
   883  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   884  	// details.
   885  	ForceSendFields []string `json:"-"`
   886  	// NullFields is a list of field names (e.g. "LastRenewalTime") to include in
   887  	// API requests with the JSON null value. By default, fields with empty values
   888  	// are omitted from API requests. See
   889  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   890  	NullFields []string `json:"-"`
   891  }
   892  
   893  func (s *ManagedCertificate) MarshalJSON() ([]byte, error) {
   894  	type NoMethod ManagedCertificate
   895  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   896  }
   897  
   898  // Operation: This resource represents a long-running operation that is the
   899  // result of a network API call.
   900  type Operation struct {
   901  	// Done: If the value is false, it means the operation is still in progress. If
   902  	// true, the operation is completed, and either error or response is available.
   903  	Done bool `json:"done,omitempty"`
   904  	// Error: The error result of the operation in case of failure or cancellation.
   905  	Error *Status `json:"error,omitempty"`
   906  	// Metadata: Service-specific metadata associated with the operation. It
   907  	// typically contains progress information and common metadata such as create
   908  	// time. Some services might not provide such metadata. Any method that returns
   909  	// a long-running operation should document the metadata type, if any.
   910  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
   911  	// Name: The server-assigned name, which is only unique within the same service
   912  	// that originally returns it. If you use the default HTTP mapping, the name
   913  	// should be a resource name ending with operations/{unique_id}.
   914  	Name string `json:"name,omitempty"`
   915  	// Response: The normal, successful response of the operation. If the original
   916  	// method returns no data on success, such as Delete, the response is
   917  	// google.protobuf.Empty. If the original method is standard Get/Create/Update,
   918  	// the response should be the resource. For other methods, the response should
   919  	// have the type XxxResponse, where Xxx is the original method name. For
   920  	// example, if the original method name is TakeSnapshot(), the inferred
   921  	// response type is TakeSnapshotResponse.
   922  	Response googleapi.RawMessage `json:"response,omitempty"`
   923  
   924  	// ServerResponse contains the HTTP response code and headers from the server.
   925  	googleapi.ServerResponse `json:"-"`
   926  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
   927  	// include in API requests. By default, fields with empty or default values are
   928  	// omitted from API requests. See
   929  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   930  	// details.
   931  	ForceSendFields []string `json:"-"`
   932  	// NullFields is a list of field names (e.g. "Done") to include in API requests
   933  	// with the JSON null value. By default, fields with empty values are omitted
   934  	// from API requests. See
   935  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   936  	NullFields []string `json:"-"`
   937  }
   938  
   939  func (s *Operation) MarshalJSON() ([]byte, error) {
   940  	type NoMethod Operation
   941  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   942  }
   943  
   944  // OperationMetadataV1: Metadata for the given google.longrunning.Operation.
   945  type OperationMetadataV1 struct {
   946  	CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
   947  	// EndTime: Time that this operation completed.@OutputOnly
   948  	EndTime string `json:"endTime,omitempty"`
   949  	// EphemeralMessage: Ephemeral message that may change every time the operation
   950  	// is polled. @OutputOnly
   951  	EphemeralMessage string `json:"ephemeralMessage,omitempty"`
   952  	// InsertTime: Time that this operation was created.@OutputOnly
   953  	InsertTime string `json:"insertTime,omitempty"`
   954  	// Method: API method that initiated this operation. Example:
   955  	// google.appengine.v1.Versions.CreateVersion.@OutputOnly
   956  	Method string `json:"method,omitempty"`
   957  	// Target: Name of the resource that this operation is acting on. Example:
   958  	// apps/myapp/services/default.@OutputOnly
   959  	Target string `json:"target,omitempty"`
   960  	// User: User who requested this operation.@OutputOnly
   961  	User string `json:"user,omitempty"`
   962  	// Warning: Durable messages that persist on every operation poll. @OutputOnly
   963  	Warning []string `json:"warning,omitempty"`
   964  	// ForceSendFields is a list of field names (e.g. "CreateVersionMetadata") to
   965  	// unconditionally include in API requests. By default, fields with empty or
   966  	// default values are omitted from API requests. See
   967  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   968  	// details.
   969  	ForceSendFields []string `json:"-"`
   970  	// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
   971  	// include in API requests with the JSON null value. By default, fields with
   972  	// empty values are omitted from API requests. See
   973  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   974  	NullFields []string `json:"-"`
   975  }
   976  
   977  func (s *OperationMetadataV1) MarshalJSON() ([]byte, error) {
   978  	type NoMethod OperationMetadataV1
   979  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   980  }
   981  
   982  // OperationMetadataV1Alpha: Metadata for the given
   983  // google.longrunning.Operation.
   984  type OperationMetadataV1Alpha struct {
   985  	CreateVersionMetadata *CreateVersionMetadataV1Alpha `json:"createVersionMetadata,omitempty"`
   986  	// EndTime: Time that this operation completed.@OutputOnly
   987  	EndTime string `json:"endTime,omitempty"`
   988  	// EphemeralMessage: Ephemeral message that may change every time the operation
   989  	// is polled. @OutputOnly
   990  	EphemeralMessage string `json:"ephemeralMessage,omitempty"`
   991  	// InsertTime: Time that this operation was created.@OutputOnly
   992  	InsertTime string `json:"insertTime,omitempty"`
   993  	// Method: API method that initiated this operation. Example:
   994  	// google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly
   995  	Method string `json:"method,omitempty"`
   996  	// Target: Name of the resource that this operation is acting on. Example:
   997  	// apps/myapp/services/default.@OutputOnly
   998  	Target string `json:"target,omitempty"`
   999  	// User: User who requested this operation.@OutputOnly
  1000  	User string `json:"user,omitempty"`
  1001  	// Warning: Durable messages that persist on every operation poll. @OutputOnly
  1002  	Warning []string `json:"warning,omitempty"`
  1003  	// ForceSendFields is a list of field names (e.g. "CreateVersionMetadata") to
  1004  	// unconditionally include in API requests. By default, fields with empty or
  1005  	// default values are omitted from API requests. See
  1006  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1007  	// details.
  1008  	ForceSendFields []string `json:"-"`
  1009  	// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
  1010  	// include in API requests with the JSON null value. By default, fields with
  1011  	// empty values are omitted from API requests. See
  1012  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1013  	NullFields []string `json:"-"`
  1014  }
  1015  
  1016  func (s *OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) {
  1017  	type NoMethod OperationMetadataV1Alpha
  1018  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1019  }
  1020  
  1021  // OperationMetadataV1Beta: Metadata for the given
  1022  // google.longrunning.Operation.
  1023  type OperationMetadataV1Beta struct {
  1024  	CreateVersionMetadata *CreateVersionMetadataV1Beta `json:"createVersionMetadata,omitempty"`
  1025  	// EndTime: Time that this operation completed.@OutputOnly
  1026  	EndTime string `json:"endTime,omitempty"`
  1027  	// EphemeralMessage: Ephemeral message that may change every time the operation
  1028  	// is polled. @OutputOnly
  1029  	EphemeralMessage string `json:"ephemeralMessage,omitempty"`
  1030  	// InsertTime: Time that this operation was created.@OutputOnly
  1031  	InsertTime string `json:"insertTime,omitempty"`
  1032  	// Method: API method that initiated this operation. Example:
  1033  	// google.appengine.v1beta.Versions.CreateVersion.@OutputOnly
  1034  	Method string `json:"method,omitempty"`
  1035  	// Target: Name of the resource that this operation is acting on. Example:
  1036  	// apps/myapp/services/default.@OutputOnly
  1037  	Target string `json:"target,omitempty"`
  1038  	// User: User who requested this operation.@OutputOnly
  1039  	User string `json:"user,omitempty"`
  1040  	// Warning: Durable messages that persist on every operation poll. @OutputOnly
  1041  	Warning []string `json:"warning,omitempty"`
  1042  	// ForceSendFields is a list of field names (e.g. "CreateVersionMetadata") to
  1043  	// unconditionally include in API requests. By default, fields with empty or
  1044  	// default values are omitted from API requests. See
  1045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1046  	// details.
  1047  	ForceSendFields []string `json:"-"`
  1048  	// NullFields is a list of field names (e.g. "CreateVersionMetadata") to
  1049  	// include in API requests with the JSON null value. By default, fields with
  1050  	// empty values are omitted from API requests. See
  1051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1052  	NullFields []string `json:"-"`
  1053  }
  1054  
  1055  func (s *OperationMetadataV1Beta) MarshalJSON() ([]byte, error) {
  1056  	type NoMethod OperationMetadataV1Beta
  1057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1058  }
  1059  
  1060  // ProjectEvent: The request sent to CLHs during project events.
  1061  type ProjectEvent struct {
  1062  	// EventId: The unique ID for this project event. CLHs can use this value to
  1063  	// dedup repeated calls. required
  1064  	EventId string `json:"eventId,omitempty"`
  1065  	// Phase: Phase indicates when in the container event propagation this event is
  1066  	// being communicated. Events are sent before and after the per-resource events
  1067  	// are propagated. required
  1068  	//
  1069  	// Possible values:
  1070  	//   "CONTAINER_EVENT_PHASE_UNSPECIFIED"
  1071  	//   "BEFORE_RESOURCE_HANDLING"
  1072  	//   "AFTER_RESOURCE_HANDLING"
  1073  	Phase string `json:"phase,omitempty"`
  1074  	// ProjectMetadata: The projects metadata for this project. required
  1075  	ProjectMetadata *ProjectsMetadata `json:"projectMetadata,omitempty"`
  1076  	// State: The state of the organization that led to this event.
  1077  	State *ContainerState `json:"state,omitempty"`
  1078  	// ForceSendFields is a list of field names (e.g. "EventId") to unconditionally
  1079  	// include in API requests. By default, fields with empty or default values are
  1080  	// omitted from API requests. See
  1081  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1082  	// details.
  1083  	ForceSendFields []string `json:"-"`
  1084  	// NullFields is a list of field names (e.g. "EventId") to include in API
  1085  	// requests with the JSON null value. By default, fields with empty values are
  1086  	// omitted from API requests. See
  1087  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1088  	NullFields []string `json:"-"`
  1089  }
  1090  
  1091  func (s *ProjectEvent) MarshalJSON() ([]byte, error) {
  1092  	type NoMethod ProjectEvent
  1093  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1094  }
  1095  
  1096  // ProjectsMetadata: ProjectsMetadata is the metadata CCFE stores about the all
  1097  // the relevant projects (tenant, consumer, producer).
  1098  type ProjectsMetadata struct {
  1099  	// ConsumerProjectId: The consumer project id.
  1100  	ConsumerProjectId string `json:"consumerProjectId,omitempty"`
  1101  	// ConsumerProjectNumber: The consumer project number.
  1102  	ConsumerProjectNumber int64 `json:"consumerProjectNumber,omitempty,string"`
  1103  	// ConsumerProjectState: The CCFE state of the consumer project. It is the same
  1104  	// state that is communicated to the CLH during project events. Notice that
  1105  	// this field is not set in the DB, it is only set in this proto when
  1106  	// communicated to CLH in the side channel.
  1107  	//
  1108  	// Possible values:
  1109  	//   "UNKNOWN_STATE" - A container should never be in an unknown state. Receipt
  1110  	// of a container with this state is an error.
  1111  	//   "ON" - CCFE considers the container to be serving or transitioning into
  1112  	// serving.
  1113  	//   "OFF" - CCFE considers the container to be in an OFF state. This could
  1114  	// occur due to various factors. The state could be triggered by
  1115  	// Google-internal audits (ex. abuse suspension, billing closed) or cleanups
  1116  	// trigged by compliance systems (ex. data governance hide). User-initiated
  1117  	// events such as service management deactivation trigger a container to an OFF
  1118  	// state.CLHs might choose to do nothing in this case or to turn off costly
  1119  	// resources. CLHs need to consider the customer experience if an ON/OFF/ON
  1120  	// sequence of state transitions occurs vs. the cost of deleting resources,
  1121  	// keeping metadata about resources, or even keeping resources live for a
  1122  	// period of time.CCFE will not send any new customer requests to the CLH when
  1123  	// the container is in an OFF state. However, CCFE will allow all previous
  1124  	// customer requests relayed to CLH to complete.
  1125  	//   "DELETED" - This state indicates that the container has been (or is being)
  1126  	// completely removed. This is often due to a data governance purge request and
  1127  	// therefore resources should be deleted when this state is reached.
  1128  	ConsumerProjectState string `json:"consumerProjectState,omitempty"`
  1129  	// P4ServiceAccount: The service account authorized to operate on the consumer
  1130  	// project. Note: CCFE only propagates P4SA with default tag to CLH.
  1131  	P4ServiceAccount string `json:"p4ServiceAccount,omitempty"`
  1132  	// ProducerProjectId: The producer project id.
  1133  	ProducerProjectId string `json:"producerProjectId,omitempty"`
  1134  	// ProducerProjectNumber: The producer project number.
  1135  	ProducerProjectNumber int64 `json:"producerProjectNumber,omitempty,string"`
  1136  	// TenantProjectId: The tenant project id.
  1137  	TenantProjectId string `json:"tenantProjectId,omitempty"`
  1138  	// TenantProjectNumber: The tenant project number.
  1139  	TenantProjectNumber int64 `json:"tenantProjectNumber,omitempty,string"`
  1140  	// ForceSendFields is a list of field names (e.g. "ConsumerProjectId") to
  1141  	// unconditionally include in API requests. By default, fields with empty or
  1142  	// default values are omitted from API requests. See
  1143  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1144  	// details.
  1145  	ForceSendFields []string `json:"-"`
  1146  	// NullFields is a list of field names (e.g. "ConsumerProjectId") to include in
  1147  	// API requests with the JSON null value. By default, fields with empty values
  1148  	// are omitted from API requests. See
  1149  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1150  	NullFields []string `json:"-"`
  1151  }
  1152  
  1153  func (s *ProjectsMetadata) MarshalJSON() ([]byte, error) {
  1154  	type NoMethod ProjectsMetadata
  1155  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1156  }
  1157  
  1158  // Reasons: Containers transition between and within states based on reasons
  1159  // sent from various systems. CCFE will provide the CLH with reasons for the
  1160  // current state per system.The current systems that CCFE supports are: Service
  1161  // Management (Inception) Data Governance (Wipeout) Abuse (Ares) Billing
  1162  // (Internal Cloud Billing API) Service Activation (Service Controller)
  1163  type Reasons struct {
  1164  	// Possible values:
  1165  	//   "ABUSE_UNKNOWN_REASON" - An unknown reason indicates that the abuse system
  1166  	// has not sent a signal for this container.
  1167  	//   "ABUSE_CONTROL_PLANE_SYNC" - Due to various reasons CCFE might proactively
  1168  	// restate a container state to a CLH to ensure that the CLH and CCFE are both
  1169  	// aware of the container state. This reason can be tied to any of the states.
  1170  	//   "SUSPEND" - If a container is deemed abusive we receive a suspend signal.
  1171  	// Suspend is a reason to put the container into an INTERNAL_OFF state.
  1172  	//   "REINSTATE" - Containers that were once considered abusive can later be
  1173  	// deemed non-abusive. When this happens we must reinstate the container.
  1174  	// Reinstate is a reason to put the container into an ON state.
  1175  	Abuse string `json:"abuse,omitempty"`
  1176  	// Possible values:
  1177  	//   "BILLING_UNKNOWN_REASON" - An unknown reason indicates that the billing
  1178  	// system has not sent a signal for this container.
  1179  	//   "BILLING_CONTROL_PLANE_SYNC" - Due to various reasons CCFE might
  1180  	// proactively restate a container state to a CLH to ensure that the CLH and
  1181  	// CCFE are both aware of the container state. This reason can be tied to any
  1182  	// of the states.
  1183  	//   "PROBATION" - Minor infractions cause a probation signal to be sent.
  1184  	// Probation is a reason to put the container into a ON state even though it is
  1185  	// a negative signal. CCFE will block mutations for this container while it is
  1186  	// on billing probation, but the CLH is expected to serve non-mutation
  1187  	// requests.
  1188  	//   "CLOSE" - When a billing account is closed, it is a stronger signal about
  1189  	// non-payment. Close is a reason to put the container into an INTERNAL_OFF
  1190  	// state.
  1191  	//   "OPEN" - Consumers can re-open billing accounts and update accounts to
  1192  	// pull them out of probation. When this happens, we get a signal that the
  1193  	// account is open. Open is a reason to put the container into an ON state.
  1194  	Billing string `json:"billing,omitempty"`
  1195  	// Possible values:
  1196  	//   "DATA_GOVERNANCE_UNKNOWN_REASON" - An unknown reason indicates that data
  1197  	// governance has not sent a signal for this container.
  1198  	//   "DATA_GOVERNANCE_CONTROL_PLANE_SYNC" - Due to various reasons CCFE might
  1199  	// proactively restate a container state to a CLH to ensure that the CLH and
  1200  	// CCFE are both aware of the container state. This reason can be tied to any
  1201  	// of the states.
  1202  	//   "HIDE" - When a container is deleted we retain some data for a period of
  1203  	// time to allow the consumer to change their mind. Data governance sends a
  1204  	// signal to hide the data when this occurs. Hide is a reason to put the
  1205  	// container in an INTERNAL_OFF state.
  1206  	//   "UNHIDE" - The decision to un-delete a container can be made. When this
  1207  	// happens data governance tells us to unhide any hidden data. Unhide is a
  1208  	// reason to put the container in an ON state.
  1209  	//   "PURGE" - After a period of time data must be completely removed from our
  1210  	// systems. When data governance sends a purge signal we need to remove data.
  1211  	// Purge is a reason to put the container in a DELETED state. Purge is the only
  1212  	// event that triggers a delete mutation. All other events have update
  1213  	// semantics.
  1214  	DataGovernance string `json:"dataGovernance,omitempty"`
  1215  	// ServiceActivation: Consumer Container denotes if the service is active
  1216  	// within a project or not. This information could be used to clean up
  1217  	// resources in case service in DISABLED_FULL i.e. Service is inactive > 30
  1218  	// days.
  1219  	//
  1220  	// Possible values:
  1221  	//   "SERVICE_ACTIVATION_STATUS_UNSPECIFIED" - Default Unspecified status
  1222  	//   "SERVICE_ACTIVATION_ENABLED" - Service is active in the project.
  1223  	//   "SERVICE_ACTIVATION_DISABLED" - Service is disabled in the project
  1224  	// recently i.e., within last 24 hours.
  1225  	//   "SERVICE_ACTIVATION_DISABLED_FULL" - Service has been disabled for
  1226  	// configured grace_period (default 30 days).
  1227  	//   "SERVICE_ACTIVATION_UNKNOWN_REASON" - Happens when PSM cannot determine
  1228  	// the status of service in a project Could happen due to variety of reasons
  1229  	// like PERMISSION_DENIED or Project got deleted etc.
  1230  	ServiceActivation string `json:"serviceActivation,omitempty"`
  1231  	// Possible values:
  1232  	//   "SERVICE_MANAGEMENT_UNKNOWN_REASON" - An unknown reason indicates that we
  1233  	// have not received a signal from service management about this container.
  1234  	// Since containers are created by request of service management, this reason
  1235  	// should never be set.
  1236  	//   "SERVICE_MANAGEMENT_CONTROL_PLANE_SYNC" - Due to various reasons CCFE
  1237  	// might proactively restate a container state to a CLH to ensure that the CLH
  1238  	// and CCFE are both aware of the container state. This reason can be tied to
  1239  	// any of the states.
  1240  	//   "ACTIVATION" - When a customer activates an API CCFE notifies the CLH and
  1241  	// sets the container to the ON state.
  1242  	//   "PREPARE_DEACTIVATION" - When a customer deactivates and API service
  1243  	// management starts a two-step process to perform the deactivation. The first
  1244  	// step is to prepare. Prepare is a reason to put the container in a
  1245  	// EXTERNAL_OFF state.
  1246  	//   "ABORT_DEACTIVATION" - If the deactivation is cancelled, service managed
  1247  	// needs to abort the deactivation. Abort is a reason to put the container in
  1248  	// an ON state.
  1249  	//   "COMMIT_DEACTIVATION" - If the deactivation is followed through with,
  1250  	// service management needs to finish deactivation. Commit is a reason to put
  1251  	// the container in a DELETED state.
  1252  	ServiceManagement string `json:"serviceManagement,omitempty"`
  1253  	// ForceSendFields is a list of field names (e.g. "Abuse") to unconditionally
  1254  	// include in API requests. By default, fields with empty or default values are
  1255  	// omitted from API requests. See
  1256  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1257  	// details.
  1258  	ForceSendFields []string `json:"-"`
  1259  	// NullFields is a list of field names (e.g. "Abuse") to include in API
  1260  	// requests with the JSON null value. By default, fields with empty values are
  1261  	// omitted from API requests. See
  1262  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1263  	NullFields []string `json:"-"`
  1264  }
  1265  
  1266  func (s *Reasons) MarshalJSON() ([]byte, error) {
  1267  	type NoMethod Reasons
  1268  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1269  }
  1270  
  1271  // ResourceRecord: A DNS resource record.
  1272  type ResourceRecord struct {
  1273  	// Name: Relative name of the object affected by this record. Only applicable
  1274  	// for CNAME records. Example: 'www'.
  1275  	Name string `json:"name,omitempty"`
  1276  	// Rrdata: Data for this record. Values vary by record type, as defined in RFC
  1277  	// 1035 (section 5) and RFC 1034 (section 3.6.1).
  1278  	Rrdata string `json:"rrdata,omitempty"`
  1279  	// Type: Resource record type. Example: AAAA.
  1280  	//
  1281  	// Possible values:
  1282  	//   "A" - An A resource record. Data is an IPv4 address.
  1283  	//   "AAAA" - An AAAA resource record. Data is an IPv6 address.
  1284  	//   "CNAME" - A CNAME resource record. Data is a domain name to be aliased.
  1285  	Type string `json:"type,omitempty"`
  1286  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1287  	// include in API requests. By default, fields with empty or default values are
  1288  	// omitted from API requests. See
  1289  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1290  	// details.
  1291  	ForceSendFields []string `json:"-"`
  1292  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1293  	// with the JSON null value. By default, fields with empty values are omitted
  1294  	// from API requests. See
  1295  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1296  	NullFields []string `json:"-"`
  1297  }
  1298  
  1299  func (s *ResourceRecord) MarshalJSON() ([]byte, error) {
  1300  	type NoMethod ResourceRecord
  1301  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1302  }
  1303  
  1304  // SslSettings: SSL configuration for a DomainMapping resource.
  1305  type SslSettings struct {
  1306  	// CertificateId: ID of the AuthorizedCertificate resource configuring SSL for
  1307  	// the application. Clearing this field will remove SSL support.By default, a
  1308  	// managed certificate is automatically created for every domain mapping. To
  1309  	// omit SSL support or to configure SSL manually, specify
  1310  	// no_managed_certificate on a CREATE or UPDATE request. You must be authorized
  1311  	// to administer the AuthorizedCertificate resource to manually map it to a
  1312  	// DomainMapping resource. Example: 12345.
  1313  	CertificateId string `json:"certificateId,omitempty"`
  1314  	// IsManagedCertificate: Whether the mapped certificate is an App Engine
  1315  	// managed certificate. Managed certificates are created by default with a
  1316  	// domain mapping. To opt out, specify no_managed_certificate on a CREATE or
  1317  	// UPDATE request.@OutputOnly
  1318  	IsManagedCertificate bool `json:"isManagedCertificate,omitempty"`
  1319  	// ForceSendFields is a list of field names (e.g. "CertificateId") to
  1320  	// unconditionally include in API requests. By default, fields with empty or
  1321  	// default values are omitted from API requests. See
  1322  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1323  	// details.
  1324  	ForceSendFields []string `json:"-"`
  1325  	// NullFields is a list of field names (e.g. "CertificateId") to include in API
  1326  	// requests with the JSON null value. By default, fields with empty values are
  1327  	// omitted from API requests. See
  1328  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1329  	NullFields []string `json:"-"`
  1330  }
  1331  
  1332  func (s *SslSettings) MarshalJSON() ([]byte, error) {
  1333  	type NoMethod SslSettings
  1334  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1335  }
  1336  
  1337  // Status: The Status type defines a logical error model that is suitable for
  1338  // different programming environments, including REST APIs and RPC APIs. It is
  1339  // used by gRPC (https://github.com/grpc). Each Status message contains three
  1340  // pieces of data: error code, error message, and error details.You can find
  1341  // out more about this error model and how to work with it in the API Design
  1342  // Guide (https://cloud.google.com/apis/design/errors).
  1343  type Status struct {
  1344  	// Code: The status code, which should be an enum value of google.rpc.Code.
  1345  	Code int64 `json:"code,omitempty"`
  1346  	// Details: A list of messages that carry the error details. There is a common
  1347  	// set of message types for APIs to use.
  1348  	Details []googleapi.RawMessage `json:"details,omitempty"`
  1349  	// Message: A developer-facing error message, which should be in English. Any
  1350  	// user-facing error message should be localized and sent in the
  1351  	// google.rpc.Status.details field, or localized by the client.
  1352  	Message string `json:"message,omitempty"`
  1353  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  1354  	// include in API requests. By default, fields with empty or default values are
  1355  	// omitted from API requests. See
  1356  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1357  	// details.
  1358  	ForceSendFields []string `json:"-"`
  1359  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  1360  	// with the JSON null value. By default, fields with empty values are omitted
  1361  	// from API requests. See
  1362  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1363  	NullFields []string `json:"-"`
  1364  }
  1365  
  1366  func (s *Status) MarshalJSON() ([]byte, error) {
  1367  	type NoMethod Status
  1368  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1369  }
  1370  
  1371  type AppsAuthorizedCertificatesCreateCall struct {
  1372  	s                     *APIService
  1373  	appsId                string
  1374  	authorizedcertificate *AuthorizedCertificate
  1375  	urlParams_            gensupport.URLParams
  1376  	ctx_                  context.Context
  1377  	header_               http.Header
  1378  }
  1379  
  1380  // Create: Uploads the specified SSL certificate.
  1381  //
  1382  //   - appsId: Part of `parent`. Name of the parent Application resource.
  1383  //     Example: apps/myapp.
  1384  func (r *AppsAuthorizedCertificatesService) Create(appsId string, authorizedcertificate *AuthorizedCertificate) *AppsAuthorizedCertificatesCreateCall {
  1385  	c := &AppsAuthorizedCertificatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1386  	c.appsId = appsId
  1387  	c.authorizedcertificate = authorizedcertificate
  1388  	return c
  1389  }
  1390  
  1391  // Fields allows partial responses to be retrieved. See
  1392  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1393  // details.
  1394  func (c *AppsAuthorizedCertificatesCreateCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesCreateCall {
  1395  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1396  	return c
  1397  }
  1398  
  1399  // Context sets the context to be used in this call's Do method.
  1400  func (c *AppsAuthorizedCertificatesCreateCall) Context(ctx context.Context) *AppsAuthorizedCertificatesCreateCall {
  1401  	c.ctx_ = ctx
  1402  	return c
  1403  }
  1404  
  1405  // Header returns a http.Header that can be modified by the caller to add
  1406  // headers to the request.
  1407  func (c *AppsAuthorizedCertificatesCreateCall) Header() http.Header {
  1408  	if c.header_ == nil {
  1409  		c.header_ = make(http.Header)
  1410  	}
  1411  	return c.header_
  1412  }
  1413  
  1414  func (c *AppsAuthorizedCertificatesCreateCall) doRequest(alt string) (*http.Response, error) {
  1415  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  1416  	var body io.Reader = nil
  1417  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.authorizedcertificate)
  1418  	if err != nil {
  1419  		return nil, err
  1420  	}
  1421  	c.urlParams_.Set("alt", alt)
  1422  	c.urlParams_.Set("prettyPrint", "false")
  1423  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedCertificates")
  1424  	urls += "?" + c.urlParams_.Encode()
  1425  	req, err := http.NewRequest("POST", urls, body)
  1426  	if err != nil {
  1427  		return nil, err
  1428  	}
  1429  	req.Header = reqHeaders
  1430  	googleapi.Expand(req.URL, map[string]string{
  1431  		"appsId": c.appsId,
  1432  	})
  1433  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1434  }
  1435  
  1436  // Do executes the "appengine.apps.authorizedCertificates.create" call.
  1437  // Any non-2xx status code is an error. Response headers are in either
  1438  // *AuthorizedCertificate.ServerResponse.Header or (if a response was returned
  1439  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  1440  // check whether the returned error was because http.StatusNotModified was
  1441  // returned.
  1442  func (c *AppsAuthorizedCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*AuthorizedCertificate, error) {
  1443  	gensupport.SetOptions(c.urlParams_, opts...)
  1444  	res, err := c.doRequest("json")
  1445  	if res != nil && res.StatusCode == http.StatusNotModified {
  1446  		if res.Body != nil {
  1447  			res.Body.Close()
  1448  		}
  1449  		return nil, gensupport.WrapError(&googleapi.Error{
  1450  			Code:   res.StatusCode,
  1451  			Header: res.Header,
  1452  		})
  1453  	}
  1454  	if err != nil {
  1455  		return nil, err
  1456  	}
  1457  	defer googleapi.CloseBody(res)
  1458  	if err := googleapi.CheckResponse(res); err != nil {
  1459  		return nil, gensupport.WrapError(err)
  1460  	}
  1461  	ret := &AuthorizedCertificate{
  1462  		ServerResponse: googleapi.ServerResponse{
  1463  			Header:         res.Header,
  1464  			HTTPStatusCode: res.StatusCode,
  1465  		},
  1466  	}
  1467  	target := &ret
  1468  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1469  		return nil, err
  1470  	}
  1471  	return ret, nil
  1472  }
  1473  
  1474  type AppsAuthorizedCertificatesDeleteCall struct {
  1475  	s                        *APIService
  1476  	appsId                   string
  1477  	authorizedCertificatesId string
  1478  	urlParams_               gensupport.URLParams
  1479  	ctx_                     context.Context
  1480  	header_                  http.Header
  1481  }
  1482  
  1483  // Delete: Deletes the specified SSL certificate.
  1484  //
  1485  //   - appsId: Part of `name`. Name of the resource to delete. Example:
  1486  //     apps/myapp/authorizedCertificates/12345.
  1487  //   - authorizedCertificatesId: Part of `name`. See documentation of `appsId`.
  1488  func (r *AppsAuthorizedCertificatesService) Delete(appsId string, authorizedCertificatesId string) *AppsAuthorizedCertificatesDeleteCall {
  1489  	c := &AppsAuthorizedCertificatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1490  	c.appsId = appsId
  1491  	c.authorizedCertificatesId = authorizedCertificatesId
  1492  	return c
  1493  }
  1494  
  1495  // Fields allows partial responses to be retrieved. See
  1496  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1497  // details.
  1498  func (c *AppsAuthorizedCertificatesDeleteCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesDeleteCall {
  1499  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1500  	return c
  1501  }
  1502  
  1503  // Context sets the context to be used in this call's Do method.
  1504  func (c *AppsAuthorizedCertificatesDeleteCall) Context(ctx context.Context) *AppsAuthorizedCertificatesDeleteCall {
  1505  	c.ctx_ = ctx
  1506  	return c
  1507  }
  1508  
  1509  // Header returns a http.Header that can be modified by the caller to add
  1510  // headers to the request.
  1511  func (c *AppsAuthorizedCertificatesDeleteCall) Header() http.Header {
  1512  	if c.header_ == nil {
  1513  		c.header_ = make(http.Header)
  1514  	}
  1515  	return c.header_
  1516  }
  1517  
  1518  func (c *AppsAuthorizedCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) {
  1519  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1520  	var body io.Reader = nil
  1521  	c.urlParams_.Set("alt", alt)
  1522  	c.urlParams_.Set("prettyPrint", "false")
  1523  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}")
  1524  	urls += "?" + c.urlParams_.Encode()
  1525  	req, err := http.NewRequest("DELETE", urls, body)
  1526  	if err != nil {
  1527  		return nil, err
  1528  	}
  1529  	req.Header = reqHeaders
  1530  	googleapi.Expand(req.URL, map[string]string{
  1531  		"appsId":                   c.appsId,
  1532  		"authorizedCertificatesId": c.authorizedCertificatesId,
  1533  	})
  1534  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1535  }
  1536  
  1537  // Do executes the "appengine.apps.authorizedCertificates.delete" call.
  1538  // Any non-2xx status code is an error. Response headers are in either
  1539  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  1540  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  1541  // whether the returned error was because http.StatusNotModified was returned.
  1542  func (c *AppsAuthorizedCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  1543  	gensupport.SetOptions(c.urlParams_, opts...)
  1544  	res, err := c.doRequest("json")
  1545  	if res != nil && res.StatusCode == http.StatusNotModified {
  1546  		if res.Body != nil {
  1547  			res.Body.Close()
  1548  		}
  1549  		return nil, gensupport.WrapError(&googleapi.Error{
  1550  			Code:   res.StatusCode,
  1551  			Header: res.Header,
  1552  		})
  1553  	}
  1554  	if err != nil {
  1555  		return nil, err
  1556  	}
  1557  	defer googleapi.CloseBody(res)
  1558  	if err := googleapi.CheckResponse(res); err != nil {
  1559  		return nil, gensupport.WrapError(err)
  1560  	}
  1561  	ret := &Empty{
  1562  		ServerResponse: googleapi.ServerResponse{
  1563  			Header:         res.Header,
  1564  			HTTPStatusCode: res.StatusCode,
  1565  		},
  1566  	}
  1567  	target := &ret
  1568  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1569  		return nil, err
  1570  	}
  1571  	return ret, nil
  1572  }
  1573  
  1574  type AppsAuthorizedCertificatesGetCall struct {
  1575  	s                        *APIService
  1576  	appsId                   string
  1577  	authorizedCertificatesId string
  1578  	urlParams_               gensupport.URLParams
  1579  	ifNoneMatch_             string
  1580  	ctx_                     context.Context
  1581  	header_                  http.Header
  1582  }
  1583  
  1584  // Get: Gets the specified SSL certificate.
  1585  //
  1586  //   - appsId: Part of `name`. Name of the resource requested. Example:
  1587  //     apps/myapp/authorizedCertificates/12345.
  1588  //   - authorizedCertificatesId: Part of `name`. See documentation of `appsId`.
  1589  func (r *AppsAuthorizedCertificatesService) Get(appsId string, authorizedCertificatesId string) *AppsAuthorizedCertificatesGetCall {
  1590  	c := &AppsAuthorizedCertificatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1591  	c.appsId = appsId
  1592  	c.authorizedCertificatesId = authorizedCertificatesId
  1593  	return c
  1594  }
  1595  
  1596  // View sets the optional parameter "view": Controls the set of fields returned
  1597  // in the GET response.
  1598  //
  1599  // Possible values:
  1600  //
  1601  //	"BASIC_CERTIFICATE" - Basic certificate information, including applicable
  1602  //
  1603  // domains and expiration date.
  1604  //
  1605  //	"FULL_CERTIFICATE" - The information from BASIC_CERTIFICATE, plus detailed
  1606  //
  1607  // information on the domain mappings that have this certificate mapped.
  1608  func (c *AppsAuthorizedCertificatesGetCall) View(view string) *AppsAuthorizedCertificatesGetCall {
  1609  	c.urlParams_.Set("view", view)
  1610  	return c
  1611  }
  1612  
  1613  // Fields allows partial responses to be retrieved. See
  1614  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1615  // details.
  1616  func (c *AppsAuthorizedCertificatesGetCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesGetCall {
  1617  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1618  	return c
  1619  }
  1620  
  1621  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  1622  // object's ETag matches the given value. This is useful for getting updates
  1623  // only after the object has changed since the last request.
  1624  func (c *AppsAuthorizedCertificatesGetCall) IfNoneMatch(entityTag string) *AppsAuthorizedCertificatesGetCall {
  1625  	c.ifNoneMatch_ = entityTag
  1626  	return c
  1627  }
  1628  
  1629  // Context sets the context to be used in this call's Do method.
  1630  func (c *AppsAuthorizedCertificatesGetCall) Context(ctx context.Context) *AppsAuthorizedCertificatesGetCall {
  1631  	c.ctx_ = ctx
  1632  	return c
  1633  }
  1634  
  1635  // Header returns a http.Header that can be modified by the caller to add
  1636  // headers to the request.
  1637  func (c *AppsAuthorizedCertificatesGetCall) Header() http.Header {
  1638  	if c.header_ == nil {
  1639  		c.header_ = make(http.Header)
  1640  	}
  1641  	return c.header_
  1642  }
  1643  
  1644  func (c *AppsAuthorizedCertificatesGetCall) doRequest(alt string) (*http.Response, error) {
  1645  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1646  	if c.ifNoneMatch_ != "" {
  1647  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1648  	}
  1649  	var body io.Reader = nil
  1650  	c.urlParams_.Set("alt", alt)
  1651  	c.urlParams_.Set("prettyPrint", "false")
  1652  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}")
  1653  	urls += "?" + c.urlParams_.Encode()
  1654  	req, err := http.NewRequest("GET", urls, body)
  1655  	if err != nil {
  1656  		return nil, err
  1657  	}
  1658  	req.Header = reqHeaders
  1659  	googleapi.Expand(req.URL, map[string]string{
  1660  		"appsId":                   c.appsId,
  1661  		"authorizedCertificatesId": c.authorizedCertificatesId,
  1662  	})
  1663  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1664  }
  1665  
  1666  // Do executes the "appengine.apps.authorizedCertificates.get" call.
  1667  // Any non-2xx status code is an error. Response headers are in either
  1668  // *AuthorizedCertificate.ServerResponse.Header or (if a response was returned
  1669  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  1670  // check whether the returned error was because http.StatusNotModified was
  1671  // returned.
  1672  func (c *AppsAuthorizedCertificatesGetCall) Do(opts ...googleapi.CallOption) (*AuthorizedCertificate, error) {
  1673  	gensupport.SetOptions(c.urlParams_, opts...)
  1674  	res, err := c.doRequest("json")
  1675  	if res != nil && res.StatusCode == http.StatusNotModified {
  1676  		if res.Body != nil {
  1677  			res.Body.Close()
  1678  		}
  1679  		return nil, gensupport.WrapError(&googleapi.Error{
  1680  			Code:   res.StatusCode,
  1681  			Header: res.Header,
  1682  		})
  1683  	}
  1684  	if err != nil {
  1685  		return nil, err
  1686  	}
  1687  	defer googleapi.CloseBody(res)
  1688  	if err := googleapi.CheckResponse(res); err != nil {
  1689  		return nil, gensupport.WrapError(err)
  1690  	}
  1691  	ret := &AuthorizedCertificate{
  1692  		ServerResponse: googleapi.ServerResponse{
  1693  			Header:         res.Header,
  1694  			HTTPStatusCode: res.StatusCode,
  1695  		},
  1696  	}
  1697  	target := &ret
  1698  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1699  		return nil, err
  1700  	}
  1701  	return ret, nil
  1702  }
  1703  
  1704  type AppsAuthorizedCertificatesListCall struct {
  1705  	s            *APIService
  1706  	appsId       string
  1707  	urlParams_   gensupport.URLParams
  1708  	ifNoneMatch_ string
  1709  	ctx_         context.Context
  1710  	header_      http.Header
  1711  }
  1712  
  1713  // List: Lists all SSL certificates the user is authorized to administer.
  1714  //
  1715  //   - appsId: Part of `parent`. Name of the parent Application resource.
  1716  //     Example: apps/myapp.
  1717  func (r *AppsAuthorizedCertificatesService) List(appsId string) *AppsAuthorizedCertificatesListCall {
  1718  	c := &AppsAuthorizedCertificatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1719  	c.appsId = appsId
  1720  	return c
  1721  }
  1722  
  1723  // PageSize sets the optional parameter "pageSize": Maximum results to return
  1724  // per page.
  1725  func (c *AppsAuthorizedCertificatesListCall) PageSize(pageSize int64) *AppsAuthorizedCertificatesListCall {
  1726  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  1727  	return c
  1728  }
  1729  
  1730  // PageToken sets the optional parameter "pageToken": Continuation token for
  1731  // fetching the next page of results.
  1732  func (c *AppsAuthorizedCertificatesListCall) PageToken(pageToken string) *AppsAuthorizedCertificatesListCall {
  1733  	c.urlParams_.Set("pageToken", pageToken)
  1734  	return c
  1735  }
  1736  
  1737  // View sets the optional parameter "view": Controls the set of fields returned
  1738  // in the LIST response.
  1739  //
  1740  // Possible values:
  1741  //
  1742  //	"BASIC_CERTIFICATE" - Basic certificate information, including applicable
  1743  //
  1744  // domains and expiration date.
  1745  //
  1746  //	"FULL_CERTIFICATE" - The information from BASIC_CERTIFICATE, plus detailed
  1747  //
  1748  // information on the domain mappings that have this certificate mapped.
  1749  func (c *AppsAuthorizedCertificatesListCall) View(view string) *AppsAuthorizedCertificatesListCall {
  1750  	c.urlParams_.Set("view", view)
  1751  	return c
  1752  }
  1753  
  1754  // Fields allows partial responses to be retrieved. See
  1755  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1756  // details.
  1757  func (c *AppsAuthorizedCertificatesListCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesListCall {
  1758  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1759  	return c
  1760  }
  1761  
  1762  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  1763  // object's ETag matches the given value. This is useful for getting updates
  1764  // only after the object has changed since the last request.
  1765  func (c *AppsAuthorizedCertificatesListCall) IfNoneMatch(entityTag string) *AppsAuthorizedCertificatesListCall {
  1766  	c.ifNoneMatch_ = entityTag
  1767  	return c
  1768  }
  1769  
  1770  // Context sets the context to be used in this call's Do method.
  1771  func (c *AppsAuthorizedCertificatesListCall) Context(ctx context.Context) *AppsAuthorizedCertificatesListCall {
  1772  	c.ctx_ = ctx
  1773  	return c
  1774  }
  1775  
  1776  // Header returns a http.Header that can be modified by the caller to add
  1777  // headers to the request.
  1778  func (c *AppsAuthorizedCertificatesListCall) Header() http.Header {
  1779  	if c.header_ == nil {
  1780  		c.header_ = make(http.Header)
  1781  	}
  1782  	return c.header_
  1783  }
  1784  
  1785  func (c *AppsAuthorizedCertificatesListCall) doRequest(alt string) (*http.Response, error) {
  1786  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1787  	if c.ifNoneMatch_ != "" {
  1788  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1789  	}
  1790  	var body io.Reader = nil
  1791  	c.urlParams_.Set("alt", alt)
  1792  	c.urlParams_.Set("prettyPrint", "false")
  1793  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedCertificates")
  1794  	urls += "?" + c.urlParams_.Encode()
  1795  	req, err := http.NewRequest("GET", urls, body)
  1796  	if err != nil {
  1797  		return nil, err
  1798  	}
  1799  	req.Header = reqHeaders
  1800  	googleapi.Expand(req.URL, map[string]string{
  1801  		"appsId": c.appsId,
  1802  	})
  1803  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1804  }
  1805  
  1806  // Do executes the "appengine.apps.authorizedCertificates.list" call.
  1807  // Any non-2xx status code is an error. Response headers are in either
  1808  // *ListAuthorizedCertificatesResponse.ServerResponse.Header or (if a response
  1809  // was returned at all) in error.(*googleapi.Error).Header. Use
  1810  // googleapi.IsNotModified to check whether the returned error was because
  1811  // http.StatusNotModified was returned.
  1812  func (c *AppsAuthorizedCertificatesListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedCertificatesResponse, error) {
  1813  	gensupport.SetOptions(c.urlParams_, opts...)
  1814  	res, err := c.doRequest("json")
  1815  	if res != nil && res.StatusCode == http.StatusNotModified {
  1816  		if res.Body != nil {
  1817  			res.Body.Close()
  1818  		}
  1819  		return nil, gensupport.WrapError(&googleapi.Error{
  1820  			Code:   res.StatusCode,
  1821  			Header: res.Header,
  1822  		})
  1823  	}
  1824  	if err != nil {
  1825  		return nil, err
  1826  	}
  1827  	defer googleapi.CloseBody(res)
  1828  	if err := googleapi.CheckResponse(res); err != nil {
  1829  		return nil, gensupport.WrapError(err)
  1830  	}
  1831  	ret := &ListAuthorizedCertificatesResponse{
  1832  		ServerResponse: googleapi.ServerResponse{
  1833  			Header:         res.Header,
  1834  			HTTPStatusCode: res.StatusCode,
  1835  		},
  1836  	}
  1837  	target := &ret
  1838  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1839  		return nil, err
  1840  	}
  1841  	return ret, nil
  1842  }
  1843  
  1844  // Pages invokes f for each page of results.
  1845  // A non-nil error returned from f will halt the iteration.
  1846  // The provided context supersedes any context provided to the Context method.
  1847  func (c *AppsAuthorizedCertificatesListCall) Pages(ctx context.Context, f func(*ListAuthorizedCertificatesResponse) error) error {
  1848  	c.ctx_ = ctx
  1849  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  1850  	for {
  1851  		x, err := c.Do()
  1852  		if err != nil {
  1853  			return err
  1854  		}
  1855  		if err := f(x); err != nil {
  1856  			return err
  1857  		}
  1858  		if x.NextPageToken == "" {
  1859  			return nil
  1860  		}
  1861  		c.PageToken(x.NextPageToken)
  1862  	}
  1863  }
  1864  
  1865  type AppsAuthorizedCertificatesPatchCall struct {
  1866  	s                        *APIService
  1867  	appsId                   string
  1868  	authorizedCertificatesId string
  1869  	authorizedcertificate    *AuthorizedCertificate
  1870  	urlParams_               gensupport.URLParams
  1871  	ctx_                     context.Context
  1872  	header_                  http.Header
  1873  }
  1874  
  1875  // Patch: Updates the specified SSL certificate. To renew a certificate and
  1876  // maintain its existing domain mappings, update certificate_data with a new
  1877  // certificate. The new certificate must be applicable to the same domains as
  1878  // the original certificate. The certificate display_name may also be updated.
  1879  //
  1880  //   - appsId: Part of `name`. Name of the resource to update. Example:
  1881  //     apps/myapp/authorizedCertificates/12345.
  1882  //   - authorizedCertificatesId: Part of `name`. See documentation of `appsId`.
  1883  func (r *AppsAuthorizedCertificatesService) Patch(appsId string, authorizedCertificatesId string, authorizedcertificate *AuthorizedCertificate) *AppsAuthorizedCertificatesPatchCall {
  1884  	c := &AppsAuthorizedCertificatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1885  	c.appsId = appsId
  1886  	c.authorizedCertificatesId = authorizedCertificatesId
  1887  	c.authorizedcertificate = authorizedcertificate
  1888  	return c
  1889  }
  1890  
  1891  // UpdateMask sets the optional parameter "updateMask": Standard field mask for
  1892  // the set of fields to be updated. Updates are only supported on the
  1893  // certificate_raw_data and display_name fields.
  1894  func (c *AppsAuthorizedCertificatesPatchCall) UpdateMask(updateMask string) *AppsAuthorizedCertificatesPatchCall {
  1895  	c.urlParams_.Set("updateMask", updateMask)
  1896  	return c
  1897  }
  1898  
  1899  // Fields allows partial responses to be retrieved. See
  1900  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1901  // details.
  1902  func (c *AppsAuthorizedCertificatesPatchCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesPatchCall {
  1903  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1904  	return c
  1905  }
  1906  
  1907  // Context sets the context to be used in this call's Do method.
  1908  func (c *AppsAuthorizedCertificatesPatchCall) Context(ctx context.Context) *AppsAuthorizedCertificatesPatchCall {
  1909  	c.ctx_ = ctx
  1910  	return c
  1911  }
  1912  
  1913  // Header returns a http.Header that can be modified by the caller to add
  1914  // headers to the request.
  1915  func (c *AppsAuthorizedCertificatesPatchCall) Header() http.Header {
  1916  	if c.header_ == nil {
  1917  		c.header_ = make(http.Header)
  1918  	}
  1919  	return c.header_
  1920  }
  1921  
  1922  func (c *AppsAuthorizedCertificatesPatchCall) doRequest(alt string) (*http.Response, error) {
  1923  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  1924  	var body io.Reader = nil
  1925  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.authorizedcertificate)
  1926  	if err != nil {
  1927  		return nil, err
  1928  	}
  1929  	c.urlParams_.Set("alt", alt)
  1930  	c.urlParams_.Set("prettyPrint", "false")
  1931  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}")
  1932  	urls += "?" + c.urlParams_.Encode()
  1933  	req, err := http.NewRequest("PATCH", urls, body)
  1934  	if err != nil {
  1935  		return nil, err
  1936  	}
  1937  	req.Header = reqHeaders
  1938  	googleapi.Expand(req.URL, map[string]string{
  1939  		"appsId":                   c.appsId,
  1940  		"authorizedCertificatesId": c.authorizedCertificatesId,
  1941  	})
  1942  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1943  }
  1944  
  1945  // Do executes the "appengine.apps.authorizedCertificates.patch" call.
  1946  // Any non-2xx status code is an error. Response headers are in either
  1947  // *AuthorizedCertificate.ServerResponse.Header or (if a response was returned
  1948  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  1949  // check whether the returned error was because http.StatusNotModified was
  1950  // returned.
  1951  func (c *AppsAuthorizedCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*AuthorizedCertificate, error) {
  1952  	gensupport.SetOptions(c.urlParams_, opts...)
  1953  	res, err := c.doRequest("json")
  1954  	if res != nil && res.StatusCode == http.StatusNotModified {
  1955  		if res.Body != nil {
  1956  			res.Body.Close()
  1957  		}
  1958  		return nil, gensupport.WrapError(&googleapi.Error{
  1959  			Code:   res.StatusCode,
  1960  			Header: res.Header,
  1961  		})
  1962  	}
  1963  	if err != nil {
  1964  		return nil, err
  1965  	}
  1966  	defer googleapi.CloseBody(res)
  1967  	if err := googleapi.CheckResponse(res); err != nil {
  1968  		return nil, gensupport.WrapError(err)
  1969  	}
  1970  	ret := &AuthorizedCertificate{
  1971  		ServerResponse: googleapi.ServerResponse{
  1972  			Header:         res.Header,
  1973  			HTTPStatusCode: res.StatusCode,
  1974  		},
  1975  	}
  1976  	target := &ret
  1977  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1978  		return nil, err
  1979  	}
  1980  	return ret, nil
  1981  }
  1982  
  1983  type AppsAuthorizedDomainsListCall struct {
  1984  	s            *APIService
  1985  	appsId       string
  1986  	urlParams_   gensupport.URLParams
  1987  	ifNoneMatch_ string
  1988  	ctx_         context.Context
  1989  	header_      http.Header
  1990  }
  1991  
  1992  // List: Lists all domains the user is authorized to administer.
  1993  //
  1994  //   - appsId: Part of `parent`. Name of the parent Application resource.
  1995  //     Example: apps/myapp.
  1996  func (r *AppsAuthorizedDomainsService) List(appsId string) *AppsAuthorizedDomainsListCall {
  1997  	c := &AppsAuthorizedDomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1998  	c.appsId = appsId
  1999  	return c
  2000  }
  2001  
  2002  // PageSize sets the optional parameter "pageSize": Maximum results to return
  2003  // per page.
  2004  func (c *AppsAuthorizedDomainsListCall) PageSize(pageSize int64) *AppsAuthorizedDomainsListCall {
  2005  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2006  	return c
  2007  }
  2008  
  2009  // PageToken sets the optional parameter "pageToken": Continuation token for
  2010  // fetching the next page of results.
  2011  func (c *AppsAuthorizedDomainsListCall) PageToken(pageToken string) *AppsAuthorizedDomainsListCall {
  2012  	c.urlParams_.Set("pageToken", pageToken)
  2013  	return c
  2014  }
  2015  
  2016  // Fields allows partial responses to be retrieved. See
  2017  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2018  // details.
  2019  func (c *AppsAuthorizedDomainsListCall) Fields(s ...googleapi.Field) *AppsAuthorizedDomainsListCall {
  2020  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2021  	return c
  2022  }
  2023  
  2024  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2025  // object's ETag matches the given value. This is useful for getting updates
  2026  // only after the object has changed since the last request.
  2027  func (c *AppsAuthorizedDomainsListCall) IfNoneMatch(entityTag string) *AppsAuthorizedDomainsListCall {
  2028  	c.ifNoneMatch_ = entityTag
  2029  	return c
  2030  }
  2031  
  2032  // Context sets the context to be used in this call's Do method.
  2033  func (c *AppsAuthorizedDomainsListCall) Context(ctx context.Context) *AppsAuthorizedDomainsListCall {
  2034  	c.ctx_ = ctx
  2035  	return c
  2036  }
  2037  
  2038  // Header returns a http.Header that can be modified by the caller to add
  2039  // headers to the request.
  2040  func (c *AppsAuthorizedDomainsListCall) Header() http.Header {
  2041  	if c.header_ == nil {
  2042  		c.header_ = make(http.Header)
  2043  	}
  2044  	return c.header_
  2045  }
  2046  
  2047  func (c *AppsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, error) {
  2048  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2049  	if c.ifNoneMatch_ != "" {
  2050  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2051  	}
  2052  	var body io.Reader = nil
  2053  	c.urlParams_.Set("alt", alt)
  2054  	c.urlParams_.Set("prettyPrint", "false")
  2055  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/authorizedDomains")
  2056  	urls += "?" + c.urlParams_.Encode()
  2057  	req, err := http.NewRequest("GET", urls, body)
  2058  	if err != nil {
  2059  		return nil, err
  2060  	}
  2061  	req.Header = reqHeaders
  2062  	googleapi.Expand(req.URL, map[string]string{
  2063  		"appsId": c.appsId,
  2064  	})
  2065  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2066  }
  2067  
  2068  // Do executes the "appengine.apps.authorizedDomains.list" call.
  2069  // Any non-2xx status code is an error. Response headers are in either
  2070  // *ListAuthorizedDomainsResponse.ServerResponse.Header or (if a response was
  2071  // returned at all) in error.(*googleapi.Error).Header. Use
  2072  // googleapi.IsNotModified to check whether the returned error was because
  2073  // http.StatusNotModified was returned.
  2074  func (c *AppsAuthorizedDomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
  2075  	gensupport.SetOptions(c.urlParams_, opts...)
  2076  	res, err := c.doRequest("json")
  2077  	if res != nil && res.StatusCode == http.StatusNotModified {
  2078  		if res.Body != nil {
  2079  			res.Body.Close()
  2080  		}
  2081  		return nil, gensupport.WrapError(&googleapi.Error{
  2082  			Code:   res.StatusCode,
  2083  			Header: res.Header,
  2084  		})
  2085  	}
  2086  	if err != nil {
  2087  		return nil, err
  2088  	}
  2089  	defer googleapi.CloseBody(res)
  2090  	if err := googleapi.CheckResponse(res); err != nil {
  2091  		return nil, gensupport.WrapError(err)
  2092  	}
  2093  	ret := &ListAuthorizedDomainsResponse{
  2094  		ServerResponse: googleapi.ServerResponse{
  2095  			Header:         res.Header,
  2096  			HTTPStatusCode: res.StatusCode,
  2097  		},
  2098  	}
  2099  	target := &ret
  2100  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2101  		return nil, err
  2102  	}
  2103  	return ret, nil
  2104  }
  2105  
  2106  // Pages invokes f for each page of results.
  2107  // A non-nil error returned from f will halt the iteration.
  2108  // The provided context supersedes any context provided to the Context method.
  2109  func (c *AppsAuthorizedDomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
  2110  	c.ctx_ = ctx
  2111  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2112  	for {
  2113  		x, err := c.Do()
  2114  		if err != nil {
  2115  			return err
  2116  		}
  2117  		if err := f(x); err != nil {
  2118  			return err
  2119  		}
  2120  		if x.NextPageToken == "" {
  2121  			return nil
  2122  		}
  2123  		c.PageToken(x.NextPageToken)
  2124  	}
  2125  }
  2126  
  2127  type AppsDomainMappingsCreateCall struct {
  2128  	s             *APIService
  2129  	appsId        string
  2130  	domainmapping *DomainMapping
  2131  	urlParams_    gensupport.URLParams
  2132  	ctx_          context.Context
  2133  	header_       http.Header
  2134  }
  2135  
  2136  // Create: Maps a domain to an application. A user must be authorized to
  2137  // administer a domain in order to map it to an application. For a list of
  2138  // available authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
  2139  //
  2140  //   - appsId: Part of `parent`. Name of the parent Application resource.
  2141  //     Example: apps/myapp.
  2142  func (r *AppsDomainMappingsService) Create(appsId string, domainmapping *DomainMapping) *AppsDomainMappingsCreateCall {
  2143  	c := &AppsDomainMappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2144  	c.appsId = appsId
  2145  	c.domainmapping = domainmapping
  2146  	return c
  2147  }
  2148  
  2149  // NoManagedCertificate sets the optional parameter "noManagedCertificate":
  2150  // Whether a managed certificate should be provided by App Engine. If true, a
  2151  // certificate ID must be manaually set in the DomainMapping resource to
  2152  // configure SSL for this domain. If false, a managed certificate will be
  2153  // provisioned and a certificate ID will be automatically populated.
  2154  func (c *AppsDomainMappingsCreateCall) NoManagedCertificate(noManagedCertificate bool) *AppsDomainMappingsCreateCall {
  2155  	c.urlParams_.Set("noManagedCertificate", fmt.Sprint(noManagedCertificate))
  2156  	return c
  2157  }
  2158  
  2159  // OverrideStrategy sets the optional parameter "overrideStrategy": Whether the
  2160  // domain creation should override any existing mappings for this domain. By
  2161  // default, overrides are rejected.
  2162  //
  2163  // Possible values:
  2164  //
  2165  //	"UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY" - Strategy unspecified. Defaults to
  2166  //
  2167  // STRICT.
  2168  //
  2169  //	"STRICT" - Overrides not allowed. If a mapping already exists for the
  2170  //
  2171  // specified domain, the request will return an ALREADY_EXISTS (409).
  2172  //
  2173  //	"OVERRIDE" - Overrides allowed. If a mapping already exists for the
  2174  //
  2175  // specified domain, the request will overwrite it. Note that this might stop
  2176  // another Google product from serving. For example, if the domain is mapped to
  2177  // another App Engine application, that app will no longer serve from that
  2178  // domain.
  2179  func (c *AppsDomainMappingsCreateCall) OverrideStrategy(overrideStrategy string) *AppsDomainMappingsCreateCall {
  2180  	c.urlParams_.Set("overrideStrategy", overrideStrategy)
  2181  	return c
  2182  }
  2183  
  2184  // Fields allows partial responses to be retrieved. See
  2185  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2186  // details.
  2187  func (c *AppsDomainMappingsCreateCall) Fields(s ...googleapi.Field) *AppsDomainMappingsCreateCall {
  2188  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2189  	return c
  2190  }
  2191  
  2192  // Context sets the context to be used in this call's Do method.
  2193  func (c *AppsDomainMappingsCreateCall) Context(ctx context.Context) *AppsDomainMappingsCreateCall {
  2194  	c.ctx_ = ctx
  2195  	return c
  2196  }
  2197  
  2198  // Header returns a http.Header that can be modified by the caller to add
  2199  // headers to the request.
  2200  func (c *AppsDomainMappingsCreateCall) Header() http.Header {
  2201  	if c.header_ == nil {
  2202  		c.header_ = make(http.Header)
  2203  	}
  2204  	return c.header_
  2205  }
  2206  
  2207  func (c *AppsDomainMappingsCreateCall) doRequest(alt string) (*http.Response, error) {
  2208  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2209  	var body io.Reader = nil
  2210  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
  2211  	if err != nil {
  2212  		return nil, err
  2213  	}
  2214  	c.urlParams_.Set("alt", alt)
  2215  	c.urlParams_.Set("prettyPrint", "false")
  2216  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/domainMappings")
  2217  	urls += "?" + c.urlParams_.Encode()
  2218  	req, err := http.NewRequest("POST", urls, body)
  2219  	if err != nil {
  2220  		return nil, err
  2221  	}
  2222  	req.Header = reqHeaders
  2223  	googleapi.Expand(req.URL, map[string]string{
  2224  		"appsId": c.appsId,
  2225  	})
  2226  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2227  }
  2228  
  2229  // Do executes the "appengine.apps.domainMappings.create" call.
  2230  // Any non-2xx status code is an error. Response headers are in either
  2231  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  2232  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2233  // whether the returned error was because http.StatusNotModified was returned.
  2234  func (c *AppsDomainMappingsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  2235  	gensupport.SetOptions(c.urlParams_, opts...)
  2236  	res, err := c.doRequest("json")
  2237  	if res != nil && res.StatusCode == http.StatusNotModified {
  2238  		if res.Body != nil {
  2239  			res.Body.Close()
  2240  		}
  2241  		return nil, gensupport.WrapError(&googleapi.Error{
  2242  			Code:   res.StatusCode,
  2243  			Header: res.Header,
  2244  		})
  2245  	}
  2246  	if err != nil {
  2247  		return nil, err
  2248  	}
  2249  	defer googleapi.CloseBody(res)
  2250  	if err := googleapi.CheckResponse(res); err != nil {
  2251  		return nil, gensupport.WrapError(err)
  2252  	}
  2253  	ret := &Operation{
  2254  		ServerResponse: googleapi.ServerResponse{
  2255  			Header:         res.Header,
  2256  			HTTPStatusCode: res.StatusCode,
  2257  		},
  2258  	}
  2259  	target := &ret
  2260  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2261  		return nil, err
  2262  	}
  2263  	return ret, nil
  2264  }
  2265  
  2266  type AppsDomainMappingsDeleteCall struct {
  2267  	s                *APIService
  2268  	appsId           string
  2269  	domainMappingsId string
  2270  	urlParams_       gensupport.URLParams
  2271  	ctx_             context.Context
  2272  	header_          http.Header
  2273  }
  2274  
  2275  // Delete: Deletes the specified domain mapping. A user must be authorized to
  2276  // administer the associated domain in order to delete a DomainMapping
  2277  // resource.
  2278  //
  2279  //   - appsId: Part of `name`. Name of the resource to delete. Example:
  2280  //     apps/myapp/domainMappings/example.com.
  2281  //   - domainMappingsId: Part of `name`. See documentation of `appsId`.
  2282  func (r *AppsDomainMappingsService) Delete(appsId string, domainMappingsId string) *AppsDomainMappingsDeleteCall {
  2283  	c := &AppsDomainMappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2284  	c.appsId = appsId
  2285  	c.domainMappingsId = domainMappingsId
  2286  	return c
  2287  }
  2288  
  2289  // Fields allows partial responses to be retrieved. See
  2290  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2291  // details.
  2292  func (c *AppsDomainMappingsDeleteCall) Fields(s ...googleapi.Field) *AppsDomainMappingsDeleteCall {
  2293  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2294  	return c
  2295  }
  2296  
  2297  // Context sets the context to be used in this call's Do method.
  2298  func (c *AppsDomainMappingsDeleteCall) Context(ctx context.Context) *AppsDomainMappingsDeleteCall {
  2299  	c.ctx_ = ctx
  2300  	return c
  2301  }
  2302  
  2303  // Header returns a http.Header that can be modified by the caller to add
  2304  // headers to the request.
  2305  func (c *AppsDomainMappingsDeleteCall) Header() http.Header {
  2306  	if c.header_ == nil {
  2307  		c.header_ = make(http.Header)
  2308  	}
  2309  	return c.header_
  2310  }
  2311  
  2312  func (c *AppsDomainMappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
  2313  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2314  	var body io.Reader = nil
  2315  	c.urlParams_.Set("alt", alt)
  2316  	c.urlParams_.Set("prettyPrint", "false")
  2317  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}")
  2318  	urls += "?" + c.urlParams_.Encode()
  2319  	req, err := http.NewRequest("DELETE", urls, body)
  2320  	if err != nil {
  2321  		return nil, err
  2322  	}
  2323  	req.Header = reqHeaders
  2324  	googleapi.Expand(req.URL, map[string]string{
  2325  		"appsId":           c.appsId,
  2326  		"domainMappingsId": c.domainMappingsId,
  2327  	})
  2328  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2329  }
  2330  
  2331  // Do executes the "appengine.apps.domainMappings.delete" call.
  2332  // Any non-2xx status code is an error. Response headers are in either
  2333  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  2334  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2335  // whether the returned error was because http.StatusNotModified was returned.
  2336  func (c *AppsDomainMappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  2337  	gensupport.SetOptions(c.urlParams_, opts...)
  2338  	res, err := c.doRequest("json")
  2339  	if res != nil && res.StatusCode == http.StatusNotModified {
  2340  		if res.Body != nil {
  2341  			res.Body.Close()
  2342  		}
  2343  		return nil, gensupport.WrapError(&googleapi.Error{
  2344  			Code:   res.StatusCode,
  2345  			Header: res.Header,
  2346  		})
  2347  	}
  2348  	if err != nil {
  2349  		return nil, err
  2350  	}
  2351  	defer googleapi.CloseBody(res)
  2352  	if err := googleapi.CheckResponse(res); err != nil {
  2353  		return nil, gensupport.WrapError(err)
  2354  	}
  2355  	ret := &Operation{
  2356  		ServerResponse: googleapi.ServerResponse{
  2357  			Header:         res.Header,
  2358  			HTTPStatusCode: res.StatusCode,
  2359  		},
  2360  	}
  2361  	target := &ret
  2362  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2363  		return nil, err
  2364  	}
  2365  	return ret, nil
  2366  }
  2367  
  2368  type AppsDomainMappingsGetCall struct {
  2369  	s                *APIService
  2370  	appsId           string
  2371  	domainMappingsId string
  2372  	urlParams_       gensupport.URLParams
  2373  	ifNoneMatch_     string
  2374  	ctx_             context.Context
  2375  	header_          http.Header
  2376  }
  2377  
  2378  // Get: Gets the specified domain mapping.
  2379  //
  2380  //   - appsId: Part of `name`. Name of the resource requested. Example:
  2381  //     apps/myapp/domainMappings/example.com.
  2382  //   - domainMappingsId: Part of `name`. See documentation of `appsId`.
  2383  func (r *AppsDomainMappingsService) Get(appsId string, domainMappingsId string) *AppsDomainMappingsGetCall {
  2384  	c := &AppsDomainMappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2385  	c.appsId = appsId
  2386  	c.domainMappingsId = domainMappingsId
  2387  	return c
  2388  }
  2389  
  2390  // Fields allows partial responses to be retrieved. See
  2391  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2392  // details.
  2393  func (c *AppsDomainMappingsGetCall) Fields(s ...googleapi.Field) *AppsDomainMappingsGetCall {
  2394  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2395  	return c
  2396  }
  2397  
  2398  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2399  // object's ETag matches the given value. This is useful for getting updates
  2400  // only after the object has changed since the last request.
  2401  func (c *AppsDomainMappingsGetCall) IfNoneMatch(entityTag string) *AppsDomainMappingsGetCall {
  2402  	c.ifNoneMatch_ = entityTag
  2403  	return c
  2404  }
  2405  
  2406  // Context sets the context to be used in this call's Do method.
  2407  func (c *AppsDomainMappingsGetCall) Context(ctx context.Context) *AppsDomainMappingsGetCall {
  2408  	c.ctx_ = ctx
  2409  	return c
  2410  }
  2411  
  2412  // Header returns a http.Header that can be modified by the caller to add
  2413  // headers to the request.
  2414  func (c *AppsDomainMappingsGetCall) Header() http.Header {
  2415  	if c.header_ == nil {
  2416  		c.header_ = make(http.Header)
  2417  	}
  2418  	return c.header_
  2419  }
  2420  
  2421  func (c *AppsDomainMappingsGetCall) doRequest(alt string) (*http.Response, error) {
  2422  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2423  	if c.ifNoneMatch_ != "" {
  2424  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2425  	}
  2426  	var body io.Reader = nil
  2427  	c.urlParams_.Set("alt", alt)
  2428  	c.urlParams_.Set("prettyPrint", "false")
  2429  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}")
  2430  	urls += "?" + c.urlParams_.Encode()
  2431  	req, err := http.NewRequest("GET", urls, body)
  2432  	if err != nil {
  2433  		return nil, err
  2434  	}
  2435  	req.Header = reqHeaders
  2436  	googleapi.Expand(req.URL, map[string]string{
  2437  		"appsId":           c.appsId,
  2438  		"domainMappingsId": c.domainMappingsId,
  2439  	})
  2440  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2441  }
  2442  
  2443  // Do executes the "appengine.apps.domainMappings.get" call.
  2444  // Any non-2xx status code is an error. Response headers are in either
  2445  // *DomainMapping.ServerResponse.Header or (if a response was returned at all)
  2446  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2447  // whether the returned error was because http.StatusNotModified was returned.
  2448  func (c *AppsDomainMappingsGetCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
  2449  	gensupport.SetOptions(c.urlParams_, opts...)
  2450  	res, err := c.doRequest("json")
  2451  	if res != nil && res.StatusCode == http.StatusNotModified {
  2452  		if res.Body != nil {
  2453  			res.Body.Close()
  2454  		}
  2455  		return nil, gensupport.WrapError(&googleapi.Error{
  2456  			Code:   res.StatusCode,
  2457  			Header: res.Header,
  2458  		})
  2459  	}
  2460  	if err != nil {
  2461  		return nil, err
  2462  	}
  2463  	defer googleapi.CloseBody(res)
  2464  	if err := googleapi.CheckResponse(res); err != nil {
  2465  		return nil, gensupport.WrapError(err)
  2466  	}
  2467  	ret := &DomainMapping{
  2468  		ServerResponse: googleapi.ServerResponse{
  2469  			Header:         res.Header,
  2470  			HTTPStatusCode: res.StatusCode,
  2471  		},
  2472  	}
  2473  	target := &ret
  2474  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2475  		return nil, err
  2476  	}
  2477  	return ret, nil
  2478  }
  2479  
  2480  type AppsDomainMappingsListCall struct {
  2481  	s            *APIService
  2482  	appsId       string
  2483  	urlParams_   gensupport.URLParams
  2484  	ifNoneMatch_ string
  2485  	ctx_         context.Context
  2486  	header_      http.Header
  2487  }
  2488  
  2489  // List: Lists the domain mappings on an application.
  2490  //
  2491  //   - appsId: Part of `parent`. Name of the parent Application resource.
  2492  //     Example: apps/myapp.
  2493  func (r *AppsDomainMappingsService) List(appsId string) *AppsDomainMappingsListCall {
  2494  	c := &AppsDomainMappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2495  	c.appsId = appsId
  2496  	return c
  2497  }
  2498  
  2499  // PageSize sets the optional parameter "pageSize": Maximum results to return
  2500  // per page.
  2501  func (c *AppsDomainMappingsListCall) PageSize(pageSize int64) *AppsDomainMappingsListCall {
  2502  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2503  	return c
  2504  }
  2505  
  2506  // PageToken sets the optional parameter "pageToken": Continuation token for
  2507  // fetching the next page of results.
  2508  func (c *AppsDomainMappingsListCall) PageToken(pageToken string) *AppsDomainMappingsListCall {
  2509  	c.urlParams_.Set("pageToken", pageToken)
  2510  	return c
  2511  }
  2512  
  2513  // Fields allows partial responses to be retrieved. See
  2514  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2515  // details.
  2516  func (c *AppsDomainMappingsListCall) Fields(s ...googleapi.Field) *AppsDomainMappingsListCall {
  2517  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2518  	return c
  2519  }
  2520  
  2521  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2522  // object's ETag matches the given value. This is useful for getting updates
  2523  // only after the object has changed since the last request.
  2524  func (c *AppsDomainMappingsListCall) IfNoneMatch(entityTag string) *AppsDomainMappingsListCall {
  2525  	c.ifNoneMatch_ = entityTag
  2526  	return c
  2527  }
  2528  
  2529  // Context sets the context to be used in this call's Do method.
  2530  func (c *AppsDomainMappingsListCall) Context(ctx context.Context) *AppsDomainMappingsListCall {
  2531  	c.ctx_ = ctx
  2532  	return c
  2533  }
  2534  
  2535  // Header returns a http.Header that can be modified by the caller to add
  2536  // headers to the request.
  2537  func (c *AppsDomainMappingsListCall) Header() http.Header {
  2538  	if c.header_ == nil {
  2539  		c.header_ = make(http.Header)
  2540  	}
  2541  	return c.header_
  2542  }
  2543  
  2544  func (c *AppsDomainMappingsListCall) doRequest(alt string) (*http.Response, error) {
  2545  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2546  	if c.ifNoneMatch_ != "" {
  2547  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2548  	}
  2549  	var body io.Reader = nil
  2550  	c.urlParams_.Set("alt", alt)
  2551  	c.urlParams_.Set("prettyPrint", "false")
  2552  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/domainMappings")
  2553  	urls += "?" + c.urlParams_.Encode()
  2554  	req, err := http.NewRequest("GET", urls, body)
  2555  	if err != nil {
  2556  		return nil, err
  2557  	}
  2558  	req.Header = reqHeaders
  2559  	googleapi.Expand(req.URL, map[string]string{
  2560  		"appsId": c.appsId,
  2561  	})
  2562  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2563  }
  2564  
  2565  // Do executes the "appengine.apps.domainMappings.list" call.
  2566  // Any non-2xx status code is an error. Response headers are in either
  2567  // *ListDomainMappingsResponse.ServerResponse.Header or (if a response was
  2568  // returned at all) in error.(*googleapi.Error).Header. Use
  2569  // googleapi.IsNotModified to check whether the returned error was because
  2570  // http.StatusNotModified was returned.
  2571  func (c *AppsDomainMappingsListCall) Do(opts ...googleapi.CallOption) (*ListDomainMappingsResponse, error) {
  2572  	gensupport.SetOptions(c.urlParams_, opts...)
  2573  	res, err := c.doRequest("json")
  2574  	if res != nil && res.StatusCode == http.StatusNotModified {
  2575  		if res.Body != nil {
  2576  			res.Body.Close()
  2577  		}
  2578  		return nil, gensupport.WrapError(&googleapi.Error{
  2579  			Code:   res.StatusCode,
  2580  			Header: res.Header,
  2581  		})
  2582  	}
  2583  	if err != nil {
  2584  		return nil, err
  2585  	}
  2586  	defer googleapi.CloseBody(res)
  2587  	if err := googleapi.CheckResponse(res); err != nil {
  2588  		return nil, gensupport.WrapError(err)
  2589  	}
  2590  	ret := &ListDomainMappingsResponse{
  2591  		ServerResponse: googleapi.ServerResponse{
  2592  			Header:         res.Header,
  2593  			HTTPStatusCode: res.StatusCode,
  2594  		},
  2595  	}
  2596  	target := &ret
  2597  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2598  		return nil, err
  2599  	}
  2600  	return ret, nil
  2601  }
  2602  
  2603  // Pages invokes f for each page of results.
  2604  // A non-nil error returned from f will halt the iteration.
  2605  // The provided context supersedes any context provided to the Context method.
  2606  func (c *AppsDomainMappingsListCall) Pages(ctx context.Context, f func(*ListDomainMappingsResponse) error) error {
  2607  	c.ctx_ = ctx
  2608  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2609  	for {
  2610  		x, err := c.Do()
  2611  		if err != nil {
  2612  			return err
  2613  		}
  2614  		if err := f(x); err != nil {
  2615  			return err
  2616  		}
  2617  		if x.NextPageToken == "" {
  2618  			return nil
  2619  		}
  2620  		c.PageToken(x.NextPageToken)
  2621  	}
  2622  }
  2623  
  2624  type AppsDomainMappingsPatchCall struct {
  2625  	s                *APIService
  2626  	appsId           string
  2627  	domainMappingsId string
  2628  	domainmapping    *DomainMapping
  2629  	urlParams_       gensupport.URLParams
  2630  	ctx_             context.Context
  2631  	header_          http.Header
  2632  }
  2633  
  2634  // Patch: Updates the specified domain mapping. To map an SSL certificate to a
  2635  // domain mapping, update certificate_id to point to an AuthorizedCertificate
  2636  // resource. A user must be authorized to administer the associated domain in
  2637  // order to update a DomainMapping resource.
  2638  //
  2639  //   - appsId: Part of `name`. Name of the resource to update. Example:
  2640  //     apps/myapp/domainMappings/example.com.
  2641  //   - domainMappingsId: Part of `name`. See documentation of `appsId`.
  2642  func (r *AppsDomainMappingsService) Patch(appsId string, domainMappingsId string, domainmapping *DomainMapping) *AppsDomainMappingsPatchCall {
  2643  	c := &AppsDomainMappingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2644  	c.appsId = appsId
  2645  	c.domainMappingsId = domainMappingsId
  2646  	c.domainmapping = domainmapping
  2647  	return c
  2648  }
  2649  
  2650  // NoManagedCertificate sets the optional parameter "noManagedCertificate":
  2651  // Whether a managed certificate should be provided by App Engine. If true, a
  2652  // certificate ID must be manually set in the DomainMapping resource to
  2653  // configure SSL for this domain. If false, a managed certificate will be
  2654  // provisioned and a certificate ID will be automatically populated. Only
  2655  // applicable if ssl_settings.certificate_id is specified in the update mask.
  2656  func (c *AppsDomainMappingsPatchCall) NoManagedCertificate(noManagedCertificate bool) *AppsDomainMappingsPatchCall {
  2657  	c.urlParams_.Set("noManagedCertificate", fmt.Sprint(noManagedCertificate))
  2658  	return c
  2659  }
  2660  
  2661  // UpdateMask sets the optional parameter "updateMask": Required. Standard
  2662  // field mask for the set of fields to be updated.
  2663  func (c *AppsDomainMappingsPatchCall) UpdateMask(updateMask string) *AppsDomainMappingsPatchCall {
  2664  	c.urlParams_.Set("updateMask", updateMask)
  2665  	return c
  2666  }
  2667  
  2668  // Fields allows partial responses to be retrieved. See
  2669  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2670  // details.
  2671  func (c *AppsDomainMappingsPatchCall) Fields(s ...googleapi.Field) *AppsDomainMappingsPatchCall {
  2672  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2673  	return c
  2674  }
  2675  
  2676  // Context sets the context to be used in this call's Do method.
  2677  func (c *AppsDomainMappingsPatchCall) Context(ctx context.Context) *AppsDomainMappingsPatchCall {
  2678  	c.ctx_ = ctx
  2679  	return c
  2680  }
  2681  
  2682  // Header returns a http.Header that can be modified by the caller to add
  2683  // headers to the request.
  2684  func (c *AppsDomainMappingsPatchCall) Header() http.Header {
  2685  	if c.header_ == nil {
  2686  		c.header_ = make(http.Header)
  2687  	}
  2688  	return c.header_
  2689  }
  2690  
  2691  func (c *AppsDomainMappingsPatchCall) doRequest(alt string) (*http.Response, error) {
  2692  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2693  	var body io.Reader = nil
  2694  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
  2695  	if err != nil {
  2696  		return nil, err
  2697  	}
  2698  	c.urlParams_.Set("alt", alt)
  2699  	c.urlParams_.Set("prettyPrint", "false")
  2700  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}")
  2701  	urls += "?" + c.urlParams_.Encode()
  2702  	req, err := http.NewRequest("PATCH", urls, body)
  2703  	if err != nil {
  2704  		return nil, err
  2705  	}
  2706  	req.Header = reqHeaders
  2707  	googleapi.Expand(req.URL, map[string]string{
  2708  		"appsId":           c.appsId,
  2709  		"domainMappingsId": c.domainMappingsId,
  2710  	})
  2711  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2712  }
  2713  
  2714  // Do executes the "appengine.apps.domainMappings.patch" call.
  2715  // Any non-2xx status code is an error. Response headers are in either
  2716  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  2717  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2718  // whether the returned error was because http.StatusNotModified was returned.
  2719  func (c *AppsDomainMappingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  2720  	gensupport.SetOptions(c.urlParams_, opts...)
  2721  	res, err := c.doRequest("json")
  2722  	if res != nil && res.StatusCode == http.StatusNotModified {
  2723  		if res.Body != nil {
  2724  			res.Body.Close()
  2725  		}
  2726  		return nil, gensupport.WrapError(&googleapi.Error{
  2727  			Code:   res.StatusCode,
  2728  			Header: res.Header,
  2729  		})
  2730  	}
  2731  	if err != nil {
  2732  		return nil, err
  2733  	}
  2734  	defer googleapi.CloseBody(res)
  2735  	if err := googleapi.CheckResponse(res); err != nil {
  2736  		return nil, gensupport.WrapError(err)
  2737  	}
  2738  	ret := &Operation{
  2739  		ServerResponse: googleapi.ServerResponse{
  2740  			Header:         res.Header,
  2741  			HTTPStatusCode: res.StatusCode,
  2742  		},
  2743  	}
  2744  	target := &ret
  2745  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2746  		return nil, err
  2747  	}
  2748  	return ret, nil
  2749  }
  2750  
  2751  type AppsLocationsGetCall struct {
  2752  	s            *APIService
  2753  	appsId       string
  2754  	locationsId  string
  2755  	urlParams_   gensupport.URLParams
  2756  	ifNoneMatch_ string
  2757  	ctx_         context.Context
  2758  	header_      http.Header
  2759  }
  2760  
  2761  // Get: Gets information about a location.
  2762  //
  2763  // - appsId: Part of `name`. Resource name for the location.
  2764  // - locationsId: Part of `name`. See documentation of `appsId`.
  2765  func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
  2766  	c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2767  	c.appsId = appsId
  2768  	c.locationsId = locationsId
  2769  	return c
  2770  }
  2771  
  2772  // Fields allows partial responses to be retrieved. See
  2773  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2774  // details.
  2775  func (c *AppsLocationsGetCall) Fields(s ...googleapi.Field) *AppsLocationsGetCall {
  2776  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2777  	return c
  2778  }
  2779  
  2780  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2781  // object's ETag matches the given value. This is useful for getting updates
  2782  // only after the object has changed since the last request.
  2783  func (c *AppsLocationsGetCall) IfNoneMatch(entityTag string) *AppsLocationsGetCall {
  2784  	c.ifNoneMatch_ = entityTag
  2785  	return c
  2786  }
  2787  
  2788  // Context sets the context to be used in this call's Do method.
  2789  func (c *AppsLocationsGetCall) Context(ctx context.Context) *AppsLocationsGetCall {
  2790  	c.ctx_ = ctx
  2791  	return c
  2792  }
  2793  
  2794  // Header returns a http.Header that can be modified by the caller to add
  2795  // headers to the request.
  2796  func (c *AppsLocationsGetCall) Header() http.Header {
  2797  	if c.header_ == nil {
  2798  		c.header_ = make(http.Header)
  2799  	}
  2800  	return c.header_
  2801  }
  2802  
  2803  func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  2804  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2805  	if c.ifNoneMatch_ != "" {
  2806  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2807  	}
  2808  	var body io.Reader = nil
  2809  	c.urlParams_.Set("alt", alt)
  2810  	c.urlParams_.Set("prettyPrint", "false")
  2811  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/locations/{locationsId}")
  2812  	urls += "?" + c.urlParams_.Encode()
  2813  	req, err := http.NewRequest("GET", urls, body)
  2814  	if err != nil {
  2815  		return nil, err
  2816  	}
  2817  	req.Header = reqHeaders
  2818  	googleapi.Expand(req.URL, map[string]string{
  2819  		"appsId":      c.appsId,
  2820  		"locationsId": c.locationsId,
  2821  	})
  2822  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2823  }
  2824  
  2825  // Do executes the "appengine.apps.locations.get" call.
  2826  // Any non-2xx status code is an error. Response headers are in either
  2827  // *Location.ServerResponse.Header or (if a response was returned at all) in
  2828  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2829  // whether the returned error was because http.StatusNotModified was returned.
  2830  func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
  2831  	gensupport.SetOptions(c.urlParams_, opts...)
  2832  	res, err := c.doRequest("json")
  2833  	if res != nil && res.StatusCode == http.StatusNotModified {
  2834  		if res.Body != nil {
  2835  			res.Body.Close()
  2836  		}
  2837  		return nil, gensupport.WrapError(&googleapi.Error{
  2838  			Code:   res.StatusCode,
  2839  			Header: res.Header,
  2840  		})
  2841  	}
  2842  	if err != nil {
  2843  		return nil, err
  2844  	}
  2845  	defer googleapi.CloseBody(res)
  2846  	if err := googleapi.CheckResponse(res); err != nil {
  2847  		return nil, gensupport.WrapError(err)
  2848  	}
  2849  	ret := &Location{
  2850  		ServerResponse: googleapi.ServerResponse{
  2851  			Header:         res.Header,
  2852  			HTTPStatusCode: res.StatusCode,
  2853  		},
  2854  	}
  2855  	target := &ret
  2856  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2857  		return nil, err
  2858  	}
  2859  	return ret, nil
  2860  }
  2861  
  2862  type AppsLocationsListCall struct {
  2863  	s            *APIService
  2864  	appsId       string
  2865  	urlParams_   gensupport.URLParams
  2866  	ifNoneMatch_ string
  2867  	ctx_         context.Context
  2868  	header_      http.Header
  2869  }
  2870  
  2871  // List: Lists information about the supported locations for this service.
  2872  //
  2873  //   - appsId: Part of `name`. The resource that owns the locations collection,
  2874  //     if applicable.
  2875  func (r *AppsLocationsService) List(appsId string) *AppsLocationsListCall {
  2876  	c := &AppsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2877  	c.appsId = appsId
  2878  	return c
  2879  }
  2880  
  2881  // Filter sets the optional parameter "filter": A filter to narrow down results
  2882  // to a preferred subset. The filtering language accepts strings like
  2883  // "displayName=tokyo", and is documented in more detail in AIP-160
  2884  // (https://google.aip.dev/160).
  2885  func (c *AppsLocationsListCall) Filter(filter string) *AppsLocationsListCall {
  2886  	c.urlParams_.Set("filter", filter)
  2887  	return c
  2888  }
  2889  
  2890  // PageSize sets the optional parameter "pageSize": The maximum number of
  2891  // results to return. If not set, the service selects a default.
  2892  func (c *AppsLocationsListCall) PageSize(pageSize int64) *AppsLocationsListCall {
  2893  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2894  	return c
  2895  }
  2896  
  2897  // PageToken sets the optional parameter "pageToken": A page token received
  2898  // from the next_page_token field in the response. Send that page token to
  2899  // receive the subsequent page.
  2900  func (c *AppsLocationsListCall) PageToken(pageToken string) *AppsLocationsListCall {
  2901  	c.urlParams_.Set("pageToken", pageToken)
  2902  	return c
  2903  }
  2904  
  2905  // Fields allows partial responses to be retrieved. See
  2906  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2907  // details.
  2908  func (c *AppsLocationsListCall) Fields(s ...googleapi.Field) *AppsLocationsListCall {
  2909  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2910  	return c
  2911  }
  2912  
  2913  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2914  // object's ETag matches the given value. This is useful for getting updates
  2915  // only after the object has changed since the last request.
  2916  func (c *AppsLocationsListCall) IfNoneMatch(entityTag string) *AppsLocationsListCall {
  2917  	c.ifNoneMatch_ = entityTag
  2918  	return c
  2919  }
  2920  
  2921  // Context sets the context to be used in this call's Do method.
  2922  func (c *AppsLocationsListCall) Context(ctx context.Context) *AppsLocationsListCall {
  2923  	c.ctx_ = ctx
  2924  	return c
  2925  }
  2926  
  2927  // Header returns a http.Header that can be modified by the caller to add
  2928  // headers to the request.
  2929  func (c *AppsLocationsListCall) Header() http.Header {
  2930  	if c.header_ == nil {
  2931  		c.header_ = make(http.Header)
  2932  	}
  2933  	return c.header_
  2934  }
  2935  
  2936  func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  2937  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2938  	if c.ifNoneMatch_ != "" {
  2939  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2940  	}
  2941  	var body io.Reader = nil
  2942  	c.urlParams_.Set("alt", alt)
  2943  	c.urlParams_.Set("prettyPrint", "false")
  2944  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/locations")
  2945  	urls += "?" + c.urlParams_.Encode()
  2946  	req, err := http.NewRequest("GET", urls, body)
  2947  	if err != nil {
  2948  		return nil, err
  2949  	}
  2950  	req.Header = reqHeaders
  2951  	googleapi.Expand(req.URL, map[string]string{
  2952  		"appsId": c.appsId,
  2953  	})
  2954  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2955  }
  2956  
  2957  // Do executes the "appengine.apps.locations.list" call.
  2958  // Any non-2xx status code is an error. Response headers are in either
  2959  // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
  2960  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  2961  // check whether the returned error was because http.StatusNotModified was
  2962  // returned.
  2963  func (c *AppsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  2964  	gensupport.SetOptions(c.urlParams_, opts...)
  2965  	res, err := c.doRequest("json")
  2966  	if res != nil && res.StatusCode == http.StatusNotModified {
  2967  		if res.Body != nil {
  2968  			res.Body.Close()
  2969  		}
  2970  		return nil, gensupport.WrapError(&googleapi.Error{
  2971  			Code:   res.StatusCode,
  2972  			Header: res.Header,
  2973  		})
  2974  	}
  2975  	if err != nil {
  2976  		return nil, err
  2977  	}
  2978  	defer googleapi.CloseBody(res)
  2979  	if err := googleapi.CheckResponse(res); err != nil {
  2980  		return nil, gensupport.WrapError(err)
  2981  	}
  2982  	ret := &ListLocationsResponse{
  2983  		ServerResponse: googleapi.ServerResponse{
  2984  			Header:         res.Header,
  2985  			HTTPStatusCode: res.StatusCode,
  2986  		},
  2987  	}
  2988  	target := &ret
  2989  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2990  		return nil, err
  2991  	}
  2992  	return ret, nil
  2993  }
  2994  
  2995  // Pages invokes f for each page of results.
  2996  // A non-nil error returned from f will halt the iteration.
  2997  // The provided context supersedes any context provided to the Context method.
  2998  func (c *AppsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  2999  	c.ctx_ = ctx
  3000  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3001  	for {
  3002  		x, err := c.Do()
  3003  		if err != nil {
  3004  			return err
  3005  		}
  3006  		if err := f(x); err != nil {
  3007  			return err
  3008  		}
  3009  		if x.NextPageToken == "" {
  3010  			return nil
  3011  		}
  3012  		c.PageToken(x.NextPageToken)
  3013  	}
  3014  }
  3015  
  3016  type AppsOperationsGetCall struct {
  3017  	s            *APIService
  3018  	appsId       string
  3019  	operationsId string
  3020  	urlParams_   gensupport.URLParams
  3021  	ifNoneMatch_ string
  3022  	ctx_         context.Context
  3023  	header_      http.Header
  3024  }
  3025  
  3026  // Get: Gets the latest state of a long-running operation. Clients can use this
  3027  // method to poll the operation result at intervals as recommended by the API
  3028  // service.
  3029  //
  3030  // - appsId: Part of `name`. The name of the operation resource.
  3031  // - operationsId: Part of `name`. See documentation of `appsId`.
  3032  func (r *AppsOperationsService) Get(appsId string, operationsId string) *AppsOperationsGetCall {
  3033  	c := &AppsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3034  	c.appsId = appsId
  3035  	c.operationsId = operationsId
  3036  	return c
  3037  }
  3038  
  3039  // Fields allows partial responses to be retrieved. See
  3040  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3041  // details.
  3042  func (c *AppsOperationsGetCall) Fields(s ...googleapi.Field) *AppsOperationsGetCall {
  3043  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3044  	return c
  3045  }
  3046  
  3047  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3048  // object's ETag matches the given value. This is useful for getting updates
  3049  // only after the object has changed since the last request.
  3050  func (c *AppsOperationsGetCall) IfNoneMatch(entityTag string) *AppsOperationsGetCall {
  3051  	c.ifNoneMatch_ = entityTag
  3052  	return c
  3053  }
  3054  
  3055  // Context sets the context to be used in this call's Do method.
  3056  func (c *AppsOperationsGetCall) Context(ctx context.Context) *AppsOperationsGetCall {
  3057  	c.ctx_ = ctx
  3058  	return c
  3059  }
  3060  
  3061  // Header returns a http.Header that can be modified by the caller to add
  3062  // headers to the request.
  3063  func (c *AppsOperationsGetCall) Header() http.Header {
  3064  	if c.header_ == nil {
  3065  		c.header_ = make(http.Header)
  3066  	}
  3067  	return c.header_
  3068  }
  3069  
  3070  func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
  3071  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3072  	if c.ifNoneMatch_ != "" {
  3073  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3074  	}
  3075  	var body io.Reader = nil
  3076  	c.urlParams_.Set("alt", alt)
  3077  	c.urlParams_.Set("prettyPrint", "false")
  3078  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/operations/{operationsId}")
  3079  	urls += "?" + c.urlParams_.Encode()
  3080  	req, err := http.NewRequest("GET", urls, body)
  3081  	if err != nil {
  3082  		return nil, err
  3083  	}
  3084  	req.Header = reqHeaders
  3085  	googleapi.Expand(req.URL, map[string]string{
  3086  		"appsId":       c.appsId,
  3087  		"operationsId": c.operationsId,
  3088  	})
  3089  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3090  }
  3091  
  3092  // Do executes the "appengine.apps.operations.get" call.
  3093  // Any non-2xx status code is an error. Response headers are in either
  3094  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3095  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3096  // whether the returned error was because http.StatusNotModified was returned.
  3097  func (c *AppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3098  	gensupport.SetOptions(c.urlParams_, opts...)
  3099  	res, err := c.doRequest("json")
  3100  	if res != nil && res.StatusCode == http.StatusNotModified {
  3101  		if res.Body != nil {
  3102  			res.Body.Close()
  3103  		}
  3104  		return nil, gensupport.WrapError(&googleapi.Error{
  3105  			Code:   res.StatusCode,
  3106  			Header: res.Header,
  3107  		})
  3108  	}
  3109  	if err != nil {
  3110  		return nil, err
  3111  	}
  3112  	defer googleapi.CloseBody(res)
  3113  	if err := googleapi.CheckResponse(res); err != nil {
  3114  		return nil, gensupport.WrapError(err)
  3115  	}
  3116  	ret := &Operation{
  3117  		ServerResponse: googleapi.ServerResponse{
  3118  			Header:         res.Header,
  3119  			HTTPStatusCode: res.StatusCode,
  3120  		},
  3121  	}
  3122  	target := &ret
  3123  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3124  		return nil, err
  3125  	}
  3126  	return ret, nil
  3127  }
  3128  
  3129  type AppsOperationsListCall struct {
  3130  	s            *APIService
  3131  	appsId       string
  3132  	urlParams_   gensupport.URLParams
  3133  	ifNoneMatch_ string
  3134  	ctx_         context.Context
  3135  	header_      http.Header
  3136  }
  3137  
  3138  // List: Lists operations that match the specified filter in the request. If
  3139  // the server doesn't support this method, it returns UNIMPLEMENTED.
  3140  //
  3141  // - appsId: Part of `name`. The name of the operation's parent resource.
  3142  func (r *AppsOperationsService) List(appsId string) *AppsOperationsListCall {
  3143  	c := &AppsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3144  	c.appsId = appsId
  3145  	return c
  3146  }
  3147  
  3148  // Filter sets the optional parameter "filter": The standard list filter.
  3149  func (c *AppsOperationsListCall) Filter(filter string) *AppsOperationsListCall {
  3150  	c.urlParams_.Set("filter", filter)
  3151  	return c
  3152  }
  3153  
  3154  // PageSize sets the optional parameter "pageSize": The standard list page
  3155  // size.
  3156  func (c *AppsOperationsListCall) PageSize(pageSize int64) *AppsOperationsListCall {
  3157  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3158  	return c
  3159  }
  3160  
  3161  // PageToken sets the optional parameter "pageToken": The standard list page
  3162  // token.
  3163  func (c *AppsOperationsListCall) PageToken(pageToken string) *AppsOperationsListCall {
  3164  	c.urlParams_.Set("pageToken", pageToken)
  3165  	return c
  3166  }
  3167  
  3168  // Fields allows partial responses to be retrieved. See
  3169  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3170  // details.
  3171  func (c *AppsOperationsListCall) Fields(s ...googleapi.Field) *AppsOperationsListCall {
  3172  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3173  	return c
  3174  }
  3175  
  3176  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3177  // object's ETag matches the given value. This is useful for getting updates
  3178  // only after the object has changed since the last request.
  3179  func (c *AppsOperationsListCall) IfNoneMatch(entityTag string) *AppsOperationsListCall {
  3180  	c.ifNoneMatch_ = entityTag
  3181  	return c
  3182  }
  3183  
  3184  // Context sets the context to be used in this call's Do method.
  3185  func (c *AppsOperationsListCall) Context(ctx context.Context) *AppsOperationsListCall {
  3186  	c.ctx_ = ctx
  3187  	return c
  3188  }
  3189  
  3190  // Header returns a http.Header that can be modified by the caller to add
  3191  // headers to the request.
  3192  func (c *AppsOperationsListCall) Header() http.Header {
  3193  	if c.header_ == nil {
  3194  		c.header_ = make(http.Header)
  3195  	}
  3196  	return c.header_
  3197  }
  3198  
  3199  func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) {
  3200  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3201  	if c.ifNoneMatch_ != "" {
  3202  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3203  	}
  3204  	var body io.Reader = nil
  3205  	c.urlParams_.Set("alt", alt)
  3206  	c.urlParams_.Set("prettyPrint", "false")
  3207  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/apps/{appsId}/operations")
  3208  	urls += "?" + c.urlParams_.Encode()
  3209  	req, err := http.NewRequest("GET", urls, body)
  3210  	if err != nil {
  3211  		return nil, err
  3212  	}
  3213  	req.Header = reqHeaders
  3214  	googleapi.Expand(req.URL, map[string]string{
  3215  		"appsId": c.appsId,
  3216  	})
  3217  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3218  }
  3219  
  3220  // Do executes the "appengine.apps.operations.list" call.
  3221  // Any non-2xx status code is an error. Response headers are in either
  3222  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
  3223  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  3224  // check whether the returned error was because http.StatusNotModified was
  3225  // returned.
  3226  func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
  3227  	gensupport.SetOptions(c.urlParams_, opts...)
  3228  	res, err := c.doRequest("json")
  3229  	if res != nil && res.StatusCode == http.StatusNotModified {
  3230  		if res.Body != nil {
  3231  			res.Body.Close()
  3232  		}
  3233  		return nil, gensupport.WrapError(&googleapi.Error{
  3234  			Code:   res.StatusCode,
  3235  			Header: res.Header,
  3236  		})
  3237  	}
  3238  	if err != nil {
  3239  		return nil, err
  3240  	}
  3241  	defer googleapi.CloseBody(res)
  3242  	if err := googleapi.CheckResponse(res); err != nil {
  3243  		return nil, gensupport.WrapError(err)
  3244  	}
  3245  	ret := &ListOperationsResponse{
  3246  		ServerResponse: googleapi.ServerResponse{
  3247  			Header:         res.Header,
  3248  			HTTPStatusCode: res.StatusCode,
  3249  		},
  3250  	}
  3251  	target := &ret
  3252  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3253  		return nil, err
  3254  	}
  3255  	return ret, nil
  3256  }
  3257  
  3258  // Pages invokes f for each page of results.
  3259  // A non-nil error returned from f will halt the iteration.
  3260  // The provided context supersedes any context provided to the Context method.
  3261  func (c *AppsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
  3262  	c.ctx_ = ctx
  3263  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3264  	for {
  3265  		x, err := c.Do()
  3266  		if err != nil {
  3267  			return err
  3268  		}
  3269  		if err := f(x); err != nil {
  3270  			return err
  3271  		}
  3272  		if x.NextPageToken == "" {
  3273  			return nil
  3274  		}
  3275  		c.PageToken(x.NextPageToken)
  3276  	}
  3277  }
  3278  
  3279  type ProjectsLocationsGetCall struct {
  3280  	s            *APIService
  3281  	projectsId   string
  3282  	locationsId  string
  3283  	urlParams_   gensupport.URLParams
  3284  	ifNoneMatch_ string
  3285  	ctx_         context.Context
  3286  	header_      http.Header
  3287  }
  3288  
  3289  // Get: Gets information about a location.
  3290  //
  3291  // - locationsId: Part of `name`. See documentation of `projectsId`.
  3292  // - projectsId: Part of `name`. Resource name for the location.
  3293  func (r *ProjectsLocationsService) Get(projectsId string, locationsId string) *ProjectsLocationsGetCall {
  3294  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3295  	c.projectsId = projectsId
  3296  	c.locationsId = locationsId
  3297  	return c
  3298  }
  3299  
  3300  // Fields allows partial responses to be retrieved. See
  3301  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3302  // details.
  3303  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
  3304  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3305  	return c
  3306  }
  3307  
  3308  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3309  // object's ETag matches the given value. This is useful for getting updates
  3310  // only after the object has changed since the last request.
  3311  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
  3312  	c.ifNoneMatch_ = entityTag
  3313  	return c
  3314  }
  3315  
  3316  // Context sets the context to be used in this call's Do method.
  3317  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
  3318  	c.ctx_ = ctx
  3319  	return c
  3320  }
  3321  
  3322  // Header returns a http.Header that can be modified by the caller to add
  3323  // headers to the request.
  3324  func (c *ProjectsLocationsGetCall) Header() http.Header {
  3325  	if c.header_ == nil {
  3326  		c.header_ = make(http.Header)
  3327  	}
  3328  	return c.header_
  3329  }
  3330  
  3331  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  3332  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3333  	if c.ifNoneMatch_ != "" {
  3334  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3335  	}
  3336  	var body io.Reader = nil
  3337  	c.urlParams_.Set("alt", alt)
  3338  	c.urlParams_.Set("prettyPrint", "false")
  3339  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations/{locationsId}")
  3340  	urls += "?" + c.urlParams_.Encode()
  3341  	req, err := http.NewRequest("GET", urls, body)
  3342  	if err != nil {
  3343  		return nil, err
  3344  	}
  3345  	req.Header = reqHeaders
  3346  	googleapi.Expand(req.URL, map[string]string{
  3347  		"projectsId":  c.projectsId,
  3348  		"locationsId": c.locationsId,
  3349  	})
  3350  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3351  }
  3352  
  3353  // Do executes the "appengine.projects.locations.get" call.
  3354  // Any non-2xx status code is an error. Response headers are in either
  3355  // *Location.ServerResponse.Header or (if a response was returned at all) in
  3356  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3357  // whether the returned error was because http.StatusNotModified was returned.
  3358  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
  3359  	gensupport.SetOptions(c.urlParams_, opts...)
  3360  	res, err := c.doRequest("json")
  3361  	if res != nil && res.StatusCode == http.StatusNotModified {
  3362  		if res.Body != nil {
  3363  			res.Body.Close()
  3364  		}
  3365  		return nil, gensupport.WrapError(&googleapi.Error{
  3366  			Code:   res.StatusCode,
  3367  			Header: res.Header,
  3368  		})
  3369  	}
  3370  	if err != nil {
  3371  		return nil, err
  3372  	}
  3373  	defer googleapi.CloseBody(res)
  3374  	if err := googleapi.CheckResponse(res); err != nil {
  3375  		return nil, gensupport.WrapError(err)
  3376  	}
  3377  	ret := &Location{
  3378  		ServerResponse: googleapi.ServerResponse{
  3379  			Header:         res.Header,
  3380  			HTTPStatusCode: res.StatusCode,
  3381  		},
  3382  	}
  3383  	target := &ret
  3384  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3385  		return nil, err
  3386  	}
  3387  	return ret, nil
  3388  }
  3389  
  3390  type ProjectsLocationsListCall struct {
  3391  	s            *APIService
  3392  	projectsId   string
  3393  	urlParams_   gensupport.URLParams
  3394  	ifNoneMatch_ string
  3395  	ctx_         context.Context
  3396  	header_      http.Header
  3397  }
  3398  
  3399  // List: Lists information about the supported locations for this service.
  3400  //
  3401  //   - projectsId: Part of `name`. The resource that owns the locations
  3402  //     collection, if applicable.
  3403  func (r *ProjectsLocationsService) List(projectsId string) *ProjectsLocationsListCall {
  3404  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3405  	c.projectsId = projectsId
  3406  	return c
  3407  }
  3408  
  3409  // Filter sets the optional parameter "filter": A filter to narrow down results
  3410  // to a preferred subset. The filtering language accepts strings like
  3411  // "displayName=tokyo", and is documented in more detail in AIP-160
  3412  // (https://google.aip.dev/160).
  3413  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  3414  	c.urlParams_.Set("filter", filter)
  3415  	return c
  3416  }
  3417  
  3418  // PageSize sets the optional parameter "pageSize": The maximum number of
  3419  // results to return. If not set, the service selects a default.
  3420  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  3421  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3422  	return c
  3423  }
  3424  
  3425  // PageToken sets the optional parameter "pageToken": A page token received
  3426  // from the next_page_token field in the response. Send that page token to
  3427  // receive the subsequent page.
  3428  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  3429  	c.urlParams_.Set("pageToken", pageToken)
  3430  	return c
  3431  }
  3432  
  3433  // Fields allows partial responses to be retrieved. See
  3434  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3435  // details.
  3436  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  3437  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3438  	return c
  3439  }
  3440  
  3441  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3442  // object's ETag matches the given value. This is useful for getting updates
  3443  // only after the object has changed since the last request.
  3444  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  3445  	c.ifNoneMatch_ = entityTag
  3446  	return c
  3447  }
  3448  
  3449  // Context sets the context to be used in this call's Do method.
  3450  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  3451  	c.ctx_ = ctx
  3452  	return c
  3453  }
  3454  
  3455  // Header returns a http.Header that can be modified by the caller to add
  3456  // headers to the request.
  3457  func (c *ProjectsLocationsListCall) Header() http.Header {
  3458  	if c.header_ == nil {
  3459  		c.header_ = make(http.Header)
  3460  	}
  3461  	return c.header_
  3462  }
  3463  
  3464  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  3465  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3466  	if c.ifNoneMatch_ != "" {
  3467  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3468  	}
  3469  	var body io.Reader = nil
  3470  	c.urlParams_.Set("alt", alt)
  3471  	c.urlParams_.Set("prettyPrint", "false")
  3472  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations")
  3473  	urls += "?" + c.urlParams_.Encode()
  3474  	req, err := http.NewRequest("GET", urls, body)
  3475  	if err != nil {
  3476  		return nil, err
  3477  	}
  3478  	req.Header = reqHeaders
  3479  	googleapi.Expand(req.URL, map[string]string{
  3480  		"projectsId": c.projectsId,
  3481  	})
  3482  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3483  }
  3484  
  3485  // Do executes the "appengine.projects.locations.list" call.
  3486  // Any non-2xx status code is an error. Response headers are in either
  3487  // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
  3488  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  3489  // check whether the returned error was because http.StatusNotModified was
  3490  // returned.
  3491  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  3492  	gensupport.SetOptions(c.urlParams_, opts...)
  3493  	res, err := c.doRequest("json")
  3494  	if res != nil && res.StatusCode == http.StatusNotModified {
  3495  		if res.Body != nil {
  3496  			res.Body.Close()
  3497  		}
  3498  		return nil, gensupport.WrapError(&googleapi.Error{
  3499  			Code:   res.StatusCode,
  3500  			Header: res.Header,
  3501  		})
  3502  	}
  3503  	if err != nil {
  3504  		return nil, err
  3505  	}
  3506  	defer googleapi.CloseBody(res)
  3507  	if err := googleapi.CheckResponse(res); err != nil {
  3508  		return nil, gensupport.WrapError(err)
  3509  	}
  3510  	ret := &ListLocationsResponse{
  3511  		ServerResponse: googleapi.ServerResponse{
  3512  			Header:         res.Header,
  3513  			HTTPStatusCode: res.StatusCode,
  3514  		},
  3515  	}
  3516  	target := &ret
  3517  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3518  		return nil, err
  3519  	}
  3520  	return ret, nil
  3521  }
  3522  
  3523  // Pages invokes f for each page of results.
  3524  // A non-nil error returned from f will halt the iteration.
  3525  // The provided context supersedes any context provided to the Context method.
  3526  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  3527  	c.ctx_ = ctx
  3528  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3529  	for {
  3530  		x, err := c.Do()
  3531  		if err != nil {
  3532  			return err
  3533  		}
  3534  		if err := f(x); err != nil {
  3535  			return err
  3536  		}
  3537  		if x.NextPageToken == "" {
  3538  			return nil
  3539  		}
  3540  		c.PageToken(x.NextPageToken)
  3541  	}
  3542  }
  3543  
  3544  type ProjectsLocationsApplicationsAuthorizedDomainsListCall struct {
  3545  	s              *APIService
  3546  	projectsId     string
  3547  	locationsId    string
  3548  	applicationsId string
  3549  	urlParams_     gensupport.URLParams
  3550  	ifNoneMatch_   string
  3551  	ctx_           context.Context
  3552  	header_        http.Header
  3553  }
  3554  
  3555  // List: Lists all domains the user is authorized to administer.
  3556  //
  3557  //   - applicationsId: Part of `parent`. See documentation of `projectsId`.
  3558  //   - locationsId: Part of `parent`. See documentation of `projectsId`.
  3559  //   - projectsId: Part of `parent`. Name of the parent Application resource.
  3560  //     Example: apps/myapp.
  3561  func (r *ProjectsLocationsApplicationsAuthorizedDomainsService) List(projectsId string, locationsId string, applicationsId string) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
  3562  	c := &ProjectsLocationsApplicationsAuthorizedDomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3563  	c.projectsId = projectsId
  3564  	c.locationsId = locationsId
  3565  	c.applicationsId = applicationsId
  3566  	return c
  3567  }
  3568  
  3569  // PageSize sets the optional parameter "pageSize": Maximum results to return
  3570  // per page.
  3571  func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) PageSize(pageSize int64) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
  3572  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3573  	return c
  3574  }
  3575  
  3576  // PageToken sets the optional parameter "pageToken": Continuation token for
  3577  // fetching the next page of results.
  3578  func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) PageToken(pageToken string) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
  3579  	c.urlParams_.Set("pageToken", pageToken)
  3580  	return c
  3581  }
  3582  
  3583  // Fields allows partial responses to be retrieved. See
  3584  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3585  // details.
  3586  func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
  3587  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3588  	return c
  3589  }
  3590  
  3591  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3592  // object's ETag matches the given value. This is useful for getting updates
  3593  // only after the object has changed since the last request.
  3594  func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
  3595  	c.ifNoneMatch_ = entityTag
  3596  	return c
  3597  }
  3598  
  3599  // Context sets the context to be used in this call's Do method.
  3600  func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Context(ctx context.Context) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
  3601  	c.ctx_ = ctx
  3602  	return c
  3603  }
  3604  
  3605  // Header returns a http.Header that can be modified by the caller to add
  3606  // headers to the request.
  3607  func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Header() http.Header {
  3608  	if c.header_ == nil {
  3609  		c.header_ = make(http.Header)
  3610  	}
  3611  	return c.header_
  3612  }
  3613  
  3614  func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, error) {
  3615  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3616  	if c.ifNoneMatch_ != "" {
  3617  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3618  	}
  3619  	var body io.Reader = nil
  3620  	c.urlParams_.Set("alt", alt)
  3621  	c.urlParams_.Set("prettyPrint", "false")
  3622  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/authorizedDomains")
  3623  	urls += "?" + c.urlParams_.Encode()
  3624  	req, err := http.NewRequest("GET", urls, body)
  3625  	if err != nil {
  3626  		return nil, err
  3627  	}
  3628  	req.Header = reqHeaders
  3629  	googleapi.Expand(req.URL, map[string]string{
  3630  		"projectsId":     c.projectsId,
  3631  		"locationsId":    c.locationsId,
  3632  		"applicationsId": c.applicationsId,
  3633  	})
  3634  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3635  }
  3636  
  3637  // Do executes the "appengine.projects.locations.applications.authorizedDomains.list" call.
  3638  // Any non-2xx status code is an error. Response headers are in either
  3639  // *ListAuthorizedDomainsResponse.ServerResponse.Header or (if a response was
  3640  // returned at all) in error.(*googleapi.Error).Header. Use
  3641  // googleapi.IsNotModified to check whether the returned error was because
  3642  // http.StatusNotModified was returned.
  3643  func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
  3644  	gensupport.SetOptions(c.urlParams_, opts...)
  3645  	res, err := c.doRequest("json")
  3646  	if res != nil && res.StatusCode == http.StatusNotModified {
  3647  		if res.Body != nil {
  3648  			res.Body.Close()
  3649  		}
  3650  		return nil, gensupport.WrapError(&googleapi.Error{
  3651  			Code:   res.StatusCode,
  3652  			Header: res.Header,
  3653  		})
  3654  	}
  3655  	if err != nil {
  3656  		return nil, err
  3657  	}
  3658  	defer googleapi.CloseBody(res)
  3659  	if err := googleapi.CheckResponse(res); err != nil {
  3660  		return nil, gensupport.WrapError(err)
  3661  	}
  3662  	ret := &ListAuthorizedDomainsResponse{
  3663  		ServerResponse: googleapi.ServerResponse{
  3664  			Header:         res.Header,
  3665  			HTTPStatusCode: res.StatusCode,
  3666  		},
  3667  	}
  3668  	target := &ret
  3669  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3670  		return nil, err
  3671  	}
  3672  	return ret, nil
  3673  }
  3674  
  3675  // Pages invokes f for each page of results.
  3676  // A non-nil error returned from f will halt the iteration.
  3677  // The provided context supersedes any context provided to the Context method.
  3678  func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
  3679  	c.ctx_ = ctx
  3680  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3681  	for {
  3682  		x, err := c.Do()
  3683  		if err != nil {
  3684  			return err
  3685  		}
  3686  		if err := f(x); err != nil {
  3687  			return err
  3688  		}
  3689  		if x.NextPageToken == "" {
  3690  			return nil
  3691  		}
  3692  		c.PageToken(x.NextPageToken)
  3693  	}
  3694  }
  3695  
  3696  type ProjectsLocationsOperationsGetCall struct {
  3697  	s            *APIService
  3698  	projectsId   string
  3699  	locationsId  string
  3700  	operationsId string
  3701  	urlParams_   gensupport.URLParams
  3702  	ifNoneMatch_ string
  3703  	ctx_         context.Context
  3704  	header_      http.Header
  3705  }
  3706  
  3707  // Get: Gets the latest state of a long-running operation. Clients can use this
  3708  // method to poll the operation result at intervals as recommended by the API
  3709  // service.
  3710  //
  3711  // - locationsId: Part of `name`. See documentation of `projectsId`.
  3712  // - operationsId: Part of `name`. See documentation of `projectsId`.
  3713  // - projectsId: Part of `name`. The name of the operation resource.
  3714  func (r *ProjectsLocationsOperationsService) Get(projectsId string, locationsId string, operationsId string) *ProjectsLocationsOperationsGetCall {
  3715  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3716  	c.projectsId = projectsId
  3717  	c.locationsId = locationsId
  3718  	c.operationsId = operationsId
  3719  	return c
  3720  }
  3721  
  3722  // Fields allows partial responses to be retrieved. See
  3723  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3724  // details.
  3725  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
  3726  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3727  	return c
  3728  }
  3729  
  3730  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3731  // object's ETag matches the given value. This is useful for getting updates
  3732  // only after the object has changed since the last request.
  3733  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
  3734  	c.ifNoneMatch_ = entityTag
  3735  	return c
  3736  }
  3737  
  3738  // Context sets the context to be used in this call's Do method.
  3739  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
  3740  	c.ctx_ = ctx
  3741  	return c
  3742  }
  3743  
  3744  // Header returns a http.Header that can be modified by the caller to add
  3745  // headers to the request.
  3746  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
  3747  	if c.header_ == nil {
  3748  		c.header_ = make(http.Header)
  3749  	}
  3750  	return c.header_
  3751  }
  3752  
  3753  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
  3754  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3755  	if c.ifNoneMatch_ != "" {
  3756  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3757  	}
  3758  	var body io.Reader = nil
  3759  	c.urlParams_.Set("alt", alt)
  3760  	c.urlParams_.Set("prettyPrint", "false")
  3761  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}")
  3762  	urls += "?" + c.urlParams_.Encode()
  3763  	req, err := http.NewRequest("GET", urls, body)
  3764  	if err != nil {
  3765  		return nil, err
  3766  	}
  3767  	req.Header = reqHeaders
  3768  	googleapi.Expand(req.URL, map[string]string{
  3769  		"projectsId":   c.projectsId,
  3770  		"locationsId":  c.locationsId,
  3771  		"operationsId": c.operationsId,
  3772  	})
  3773  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3774  }
  3775  
  3776  // Do executes the "appengine.projects.locations.operations.get" call.
  3777  // Any non-2xx status code is an error. Response headers are in either
  3778  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3779  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3780  // whether the returned error was because http.StatusNotModified was returned.
  3781  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3782  	gensupport.SetOptions(c.urlParams_, opts...)
  3783  	res, err := c.doRequest("json")
  3784  	if res != nil && res.StatusCode == http.StatusNotModified {
  3785  		if res.Body != nil {
  3786  			res.Body.Close()
  3787  		}
  3788  		return nil, gensupport.WrapError(&googleapi.Error{
  3789  			Code:   res.StatusCode,
  3790  			Header: res.Header,
  3791  		})
  3792  	}
  3793  	if err != nil {
  3794  		return nil, err
  3795  	}
  3796  	defer googleapi.CloseBody(res)
  3797  	if err := googleapi.CheckResponse(res); err != nil {
  3798  		return nil, gensupport.WrapError(err)
  3799  	}
  3800  	ret := &Operation{
  3801  		ServerResponse: googleapi.ServerResponse{
  3802  			Header:         res.Header,
  3803  			HTTPStatusCode: res.StatusCode,
  3804  		},
  3805  	}
  3806  	target := &ret
  3807  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3808  		return nil, err
  3809  	}
  3810  	return ret, nil
  3811  }
  3812  
  3813  type ProjectsLocationsOperationsListCall struct {
  3814  	s            *APIService
  3815  	projectsId   string
  3816  	locationsId  string
  3817  	urlParams_   gensupport.URLParams
  3818  	ifNoneMatch_ string
  3819  	ctx_         context.Context
  3820  	header_      http.Header
  3821  }
  3822  
  3823  // List: Lists operations that match the specified filter in the request. If
  3824  // the server doesn't support this method, it returns UNIMPLEMENTED.
  3825  //
  3826  // - locationsId: Part of `name`. See documentation of `projectsId`.
  3827  // - projectsId: Part of `name`. The name of the operation's parent resource.
  3828  func (r *ProjectsLocationsOperationsService) List(projectsId string, locationsId string) *ProjectsLocationsOperationsListCall {
  3829  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3830  	c.projectsId = projectsId
  3831  	c.locationsId = locationsId
  3832  	return c
  3833  }
  3834  
  3835  // Filter sets the optional parameter "filter": The standard list filter.
  3836  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
  3837  	c.urlParams_.Set("filter", filter)
  3838  	return c
  3839  }
  3840  
  3841  // PageSize sets the optional parameter "pageSize": The standard list page
  3842  // size.
  3843  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
  3844  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3845  	return c
  3846  }
  3847  
  3848  // PageToken sets the optional parameter "pageToken": The standard list page
  3849  // token.
  3850  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
  3851  	c.urlParams_.Set("pageToken", pageToken)
  3852  	return c
  3853  }
  3854  
  3855  // Fields allows partial responses to be retrieved. See
  3856  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3857  // details.
  3858  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
  3859  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3860  	return c
  3861  }
  3862  
  3863  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3864  // object's ETag matches the given value. This is useful for getting updates
  3865  // only after the object has changed since the last request.
  3866  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
  3867  	c.ifNoneMatch_ = entityTag
  3868  	return c
  3869  }
  3870  
  3871  // Context sets the context to be used in this call's Do method.
  3872  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
  3873  	c.ctx_ = ctx
  3874  	return c
  3875  }
  3876  
  3877  // Header returns a http.Header that can be modified by the caller to add
  3878  // headers to the request.
  3879  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
  3880  	if c.header_ == nil {
  3881  		c.header_ = make(http.Header)
  3882  	}
  3883  	return c.header_
  3884  }
  3885  
  3886  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
  3887  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3888  	if c.ifNoneMatch_ != "" {
  3889  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3890  	}
  3891  	var body io.Reader = nil
  3892  	c.urlParams_.Set("alt", alt)
  3893  	c.urlParams_.Set("prettyPrint", "false")
  3894  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/projects/{projectsId}/locations/{locationsId}/operations")
  3895  	urls += "?" + c.urlParams_.Encode()
  3896  	req, err := http.NewRequest("GET", urls, body)
  3897  	if err != nil {
  3898  		return nil, err
  3899  	}
  3900  	req.Header = reqHeaders
  3901  	googleapi.Expand(req.URL, map[string]string{
  3902  		"projectsId":  c.projectsId,
  3903  		"locationsId": c.locationsId,
  3904  	})
  3905  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3906  }
  3907  
  3908  // Do executes the "appengine.projects.locations.operations.list" call.
  3909  // Any non-2xx status code is an error. Response headers are in either
  3910  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
  3911  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  3912  // check whether the returned error was because http.StatusNotModified was
  3913  // returned.
  3914  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
  3915  	gensupport.SetOptions(c.urlParams_, opts...)
  3916  	res, err := c.doRequest("json")
  3917  	if res != nil && res.StatusCode == http.StatusNotModified {
  3918  		if res.Body != nil {
  3919  			res.Body.Close()
  3920  		}
  3921  		return nil, gensupport.WrapError(&googleapi.Error{
  3922  			Code:   res.StatusCode,
  3923  			Header: res.Header,
  3924  		})
  3925  	}
  3926  	if err != nil {
  3927  		return nil, err
  3928  	}
  3929  	defer googleapi.CloseBody(res)
  3930  	if err := googleapi.CheckResponse(res); err != nil {
  3931  		return nil, gensupport.WrapError(err)
  3932  	}
  3933  	ret := &ListOperationsResponse{
  3934  		ServerResponse: googleapi.ServerResponse{
  3935  			Header:         res.Header,
  3936  			HTTPStatusCode: res.StatusCode,
  3937  		},
  3938  	}
  3939  	target := &ret
  3940  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3941  		return nil, err
  3942  	}
  3943  	return ret, nil
  3944  }
  3945  
  3946  // Pages invokes f for each page of results.
  3947  // A non-nil error returned from f will halt the iteration.
  3948  // The provided context supersedes any context provided to the Context method.
  3949  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
  3950  	c.ctx_ = ctx
  3951  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3952  	for {
  3953  		x, err := c.Do()
  3954  		if err != nil {
  3955  			return err
  3956  		}
  3957  		if err := f(x); err != nil {
  3958  			return err
  3959  		}
  3960  		if x.NextPageToken == "" {
  3961  			return nil
  3962  		}
  3963  		c.PageToken(x.NextPageToken)
  3964  	}
  3965  }
  3966  

View as plain text