...

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

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

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

View as plain text