...

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

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

     1  // Copyright 2020 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 servicebroker provides access to the Service Broker API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
    10  //
    11  // # Creating a client
    12  //
    13  // Usage example:
    14  //
    15  //	import "google.golang.org/api/servicebroker/v1beta1"
    16  //	...
    17  //	ctx := context.Background()
    18  //	servicebrokerService, err := servicebroker.NewService(ctx)
    19  //
    20  // In this example, Google Application Default Credentials are used for authentication.
    21  //
    22  // For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    23  //
    24  // # Other authentication options
    25  //
    26  // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
    27  //
    28  //	servicebrokerService, err := servicebroker.NewService(ctx, option.WithAPIKey("AIza..."))
    29  //
    30  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
    31  //
    32  //	config := &oauth2.Config{...}
    33  //	// ...
    34  //	token, err := config.Exchange(ctx, ...)
    35  //	servicebrokerService, err := servicebroker.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    36  //
    37  // See https://godoc.org/google.golang.org/api/option/ for details on options.
    38  package servicebroker // import "google.golang.org/api/servicebroker/v1beta1"
    39  
    40  import (
    41  	"bytes"
    42  	"context"
    43  	"encoding/json"
    44  	"errors"
    45  	"fmt"
    46  	"io"
    47  	"net/http"
    48  	"net/url"
    49  	"strconv"
    50  	"strings"
    51  
    52  	googleapi "google.golang.org/api/googleapi"
    53  	gensupport "google.golang.org/api/internal/gensupport"
    54  	option "google.golang.org/api/option"
    55  	htransport "google.golang.org/api/transport/http"
    56  )
    57  
    58  // Always reference these packages, just in case the auto-generated code
    59  // below doesn't.
    60  var _ = bytes.NewBuffer
    61  var _ = strconv.Itoa
    62  var _ = fmt.Sprintf
    63  var _ = json.NewDecoder
    64  var _ = io.Copy
    65  var _ = url.Parse
    66  var _ = gensupport.MarshalJSON
    67  var _ = googleapi.Version
    68  var _ = errors.New
    69  var _ = strings.Replace
    70  var _ = context.Canceled
    71  
    72  const apiId = "servicebroker:v1beta1"
    73  const apiName = "servicebroker"
    74  const apiVersion = "v1beta1"
    75  const basePath = "https://servicebroker.googleapis.com/"
    76  
    77  // OAuth2 scopes used by this API.
    78  const (
    79  	// View and manage your data across Google Cloud Platform services
    80  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
    81  )
    82  
    83  // NewService creates a new Service.
    84  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
    85  	scopesOption := option.WithScopes(
    86  		"https://www.googleapis.com/auth/cloud-platform",
    87  	)
    88  	// NOTE: prepend, so we don't override user-specified scopes.
    89  	opts = append([]option.ClientOption{scopesOption}, opts...)
    90  	client, endpoint, err := htransport.NewClient(ctx, opts...)
    91  	if err != nil {
    92  		return nil, err
    93  	}
    94  	s, err := New(client)
    95  	if err != nil {
    96  		return nil, err
    97  	}
    98  	if endpoint != "" {
    99  		s.BasePath = endpoint
   100  	}
   101  	return s, nil
   102  }
   103  
   104  // New creates a new Service. It uses the provided http.Client for requests.
   105  //
   106  // Deprecated: please use NewService instead.
   107  // To provide a custom HTTP client, use option.WithHTTPClient.
   108  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   109  func New(client *http.Client) (*Service, error) {
   110  	if client == nil {
   111  		return nil, errors.New("client is nil")
   112  	}
   113  	s := &Service{client: client, BasePath: basePath}
   114  	s.Projects = NewProjectsService(s)
   115  	s.V1beta1 = NewV1beta1Service(s)
   116  	return s, nil
   117  }
   118  
   119  type Service struct {
   120  	client    *http.Client
   121  	BasePath  string // API endpoint base URL
   122  	UserAgent string // optional additional User-Agent fragment
   123  
   124  	Projects *ProjectsService
   125  
   126  	V1beta1 *V1beta1Service
   127  }
   128  
   129  func (s *Service) userAgent() string {
   130  	if s.UserAgent == "" {
   131  		return googleapi.UserAgent
   132  	}
   133  	return googleapi.UserAgent + " " + s.UserAgent
   134  }
   135  
   136  func NewProjectsService(s *Service) *ProjectsService {
   137  	rs := &ProjectsService{s: s}
   138  	rs.Brokers = NewProjectsBrokersService(s)
   139  	return rs
   140  }
   141  
   142  type ProjectsService struct {
   143  	s *Service
   144  
   145  	Brokers *ProjectsBrokersService
   146  }
   147  
   148  func NewProjectsBrokersService(s *Service) *ProjectsBrokersService {
   149  	rs := &ProjectsBrokersService{s: s}
   150  	rs.Instances = NewProjectsBrokersInstancesService(s)
   151  	rs.V2 = NewProjectsBrokersV2Service(s)
   152  	return rs
   153  }
   154  
   155  type ProjectsBrokersService struct {
   156  	s *Service
   157  
   158  	Instances *ProjectsBrokersInstancesService
   159  
   160  	V2 *ProjectsBrokersV2Service
   161  }
   162  
   163  func NewProjectsBrokersInstancesService(s *Service) *ProjectsBrokersInstancesService {
   164  	rs := &ProjectsBrokersInstancesService{s: s}
   165  	rs.Bindings = NewProjectsBrokersInstancesBindingsService(s)
   166  	return rs
   167  }
   168  
   169  type ProjectsBrokersInstancesService struct {
   170  	s *Service
   171  
   172  	Bindings *ProjectsBrokersInstancesBindingsService
   173  }
   174  
   175  func NewProjectsBrokersInstancesBindingsService(s *Service) *ProjectsBrokersInstancesBindingsService {
   176  	rs := &ProjectsBrokersInstancesBindingsService{s: s}
   177  	return rs
   178  }
   179  
   180  type ProjectsBrokersInstancesBindingsService struct {
   181  	s *Service
   182  }
   183  
   184  func NewProjectsBrokersV2Service(s *Service) *ProjectsBrokersV2Service {
   185  	rs := &ProjectsBrokersV2Service{s: s}
   186  	rs.Catalog = NewProjectsBrokersV2CatalogService(s)
   187  	rs.ServiceInstances = NewProjectsBrokersV2ServiceInstancesService(s)
   188  	return rs
   189  }
   190  
   191  type ProjectsBrokersV2Service struct {
   192  	s *Service
   193  
   194  	Catalog *ProjectsBrokersV2CatalogService
   195  
   196  	ServiceInstances *ProjectsBrokersV2ServiceInstancesService
   197  }
   198  
   199  func NewProjectsBrokersV2CatalogService(s *Service) *ProjectsBrokersV2CatalogService {
   200  	rs := &ProjectsBrokersV2CatalogService{s: s}
   201  	return rs
   202  }
   203  
   204  type ProjectsBrokersV2CatalogService struct {
   205  	s *Service
   206  }
   207  
   208  func NewProjectsBrokersV2ServiceInstancesService(s *Service) *ProjectsBrokersV2ServiceInstancesService {
   209  	rs := &ProjectsBrokersV2ServiceInstancesService{s: s}
   210  	rs.ServiceBindings = NewProjectsBrokersV2ServiceInstancesServiceBindingsService(s)
   211  	return rs
   212  }
   213  
   214  type ProjectsBrokersV2ServiceInstancesService struct {
   215  	s *Service
   216  
   217  	ServiceBindings *ProjectsBrokersV2ServiceInstancesServiceBindingsService
   218  }
   219  
   220  func NewProjectsBrokersV2ServiceInstancesServiceBindingsService(s *Service) *ProjectsBrokersV2ServiceInstancesServiceBindingsService {
   221  	rs := &ProjectsBrokersV2ServiceInstancesServiceBindingsService{s: s}
   222  	return rs
   223  }
   224  
   225  type ProjectsBrokersV2ServiceInstancesServiceBindingsService struct {
   226  	s *Service
   227  }
   228  
   229  func NewV1beta1Service(s *Service) *V1beta1Service {
   230  	rs := &V1beta1Service{s: s}
   231  	return rs
   232  }
   233  
   234  type V1beta1Service struct {
   235  	s *Service
   236  }
   237  
   238  // GoogleCloudServicebrokerV1beta1__Binding: Describes the binding.
   239  type GoogleCloudServicebrokerV1beta1__Binding struct {
   240  	// BindResource: A JSON object that contains data for platform resources
   241  	// associated with
   242  	// the binding to be created.
   243  	BindResource googleapi.RawMessage `json:"bind_resource,omitempty"`
   244  
   245  	// BindingId: The id of the binding. Must be unique within GCP
   246  	// project.
   247  	// Maximum length is 64, GUID recommended.
   248  	// Required.
   249  	BindingId string `json:"binding_id,omitempty"`
   250  
   251  	// CreateTime: Output only. Timestamp for when the binding was created.
   252  	CreateTime string `json:"createTime,omitempty"`
   253  
   254  	// DeploymentName: Output only. String containing the Deployment Manager
   255  	// deployment name that was created
   256  	// for this binding,
   257  	DeploymentName string `json:"deploymentName,omitempty"`
   258  
   259  	// Parameters: Configuration options for the service binding.
   260  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
   261  
   262  	// PlanId: The ID of the plan. See `Service` and `Plan` resources for
   263  	// details.
   264  	// Maximum length is 64, GUID recommended.
   265  	// Required.
   266  	PlanId string `json:"plan_id,omitempty"`
   267  
   268  	// ResourceName: Output only. The resource name of the binding,
   269  	// e.g.
   270  	// projects/project_id/brokers/broker_id/service_instances/instance_
   271  	// id/bindings/binding_id.
   272  	ResourceName string `json:"resourceName,omitempty"`
   273  
   274  	// ServiceId: The id of the service. Must be a valid identifier of a
   275  	// service
   276  	// contained in the list from a `ListServices()` call.
   277  	// Maximum length is 64, GUID recommended.
   278  	// Required.
   279  	ServiceId string `json:"service_id,omitempty"`
   280  
   281  	// ForceSendFields is a list of field names (e.g. "BindResource") to
   282  	// unconditionally include in API requests. By default, fields with
   283  	// empty values are omitted from API requests. However, any non-pointer,
   284  	// non-interface field appearing in ForceSendFields will be sent to the
   285  	// server regardless of whether the field is empty or not. This may be
   286  	// used to include empty fields in Patch requests.
   287  	ForceSendFields []string `json:"-"`
   288  
   289  	// NullFields is a list of field names (e.g. "BindResource") to include
   290  	// in API requests with the JSON null value. By default, fields with
   291  	// empty values are omitted from API requests. However, any field with
   292  	// an empty value appearing in NullFields will be sent to the server as
   293  	// null. It is an error if a field in this list has a non-empty value.
   294  	// This may be used to include null fields in Patch requests.
   295  	NullFields []string `json:"-"`
   296  }
   297  
   298  func (s *GoogleCloudServicebrokerV1beta1__Binding) MarshalJSON() ([]byte, error) {
   299  	type NoMethod GoogleCloudServicebrokerV1beta1__Binding
   300  	raw := NoMethod(*s)
   301  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   302  }
   303  
   304  // GoogleCloudServicebrokerV1beta1__Broker: Broker represents a
   305  // consumable collection of Service Registry catalogs
   306  // exposed as an OSB Broker.
   307  type GoogleCloudServicebrokerV1beta1__Broker struct {
   308  	// CreateTime: Output only. Timestamp for when the broker was created.
   309  	CreateTime string `json:"createTime,omitempty"`
   310  
   311  	// Name: Name of the broker in the
   312  	// format:
   313  	// <projects>/<project-id>/brokers/<broker>.
   314  	// This allows for multiple brokers per project which can be used
   315  	// to
   316  	// enable having custom brokers per GKE cluster, for example.
   317  	Name string `json:"name,omitempty"`
   318  
   319  	// Title: User friendly title of the broker.
   320  	// Limited to 1024 characters. Requests with longer titles will be
   321  	// rejected.
   322  	Title string `json:"title,omitempty"`
   323  
   324  	// Url: Output only. URL of the broker OSB-compliant endpoint, for
   325  	// example:
   326  	// https://servicebroker.googleapis.com/projects/<project>/broke
   327  	// rs/<broker>
   328  	Url string `json:"url,omitempty"`
   329  
   330  	// ServerResponse contains the HTTP response code and headers from the
   331  	// server.
   332  	googleapi.ServerResponse `json:"-"`
   333  
   334  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
   335  	// unconditionally include in API requests. By default, fields with
   336  	// empty values are omitted from API requests. However, any non-pointer,
   337  	// non-interface field appearing in ForceSendFields will be sent to the
   338  	// server regardless of whether the field is empty or not. This may be
   339  	// used to include empty fields in Patch requests.
   340  	ForceSendFields []string `json:"-"`
   341  
   342  	// NullFields is a list of field names (e.g. "CreateTime") to include in
   343  	// API requests with the JSON null value. By default, fields with empty
   344  	// values are omitted from API requests. However, any field with an
   345  	// empty value appearing in NullFields will be sent to the server as
   346  	// null. It is an error if a field in this list has a non-empty value.
   347  	// This may be used to include null fields in Patch requests.
   348  	NullFields []string `json:"-"`
   349  }
   350  
   351  func (s *GoogleCloudServicebrokerV1beta1__Broker) MarshalJSON() ([]byte, error) {
   352  	type NoMethod GoogleCloudServicebrokerV1beta1__Broker
   353  	raw := NoMethod(*s)
   354  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   355  }
   356  
   357  // GoogleCloudServicebrokerV1beta1__CreateBindingResponse: Response for
   358  // the `CreateBinding()` method.
   359  type GoogleCloudServicebrokerV1beta1__CreateBindingResponse struct {
   360  	// Credentials: Credentials to use the binding.
   361  	Credentials googleapi.RawMessage `json:"credentials,omitempty"`
   362  
   363  	// Description: Used to communicate description of the response. Usually
   364  	// for non-standard
   365  	// error
   366  	// codes.
   367  	// https://github.com/openservicebrokerapi/servicebroker/blob/mast
   368  	// er/spec.md#service-broker-errors
   369  	Description string `json:"description,omitempty"`
   370  
   371  	// Operation: If broker executes operation asynchronously, this is the
   372  	// operation ID that
   373  	// can be polled to check the completion status of said operation.
   374  	// This broker always executes all create/delete operations
   375  	// asynchronously.
   376  	Operation string `json:"operation,omitempty"`
   377  
   378  	// RouteServiceUrl: A URL to which the platform may proxy requests for
   379  	// the address sent with
   380  	// bind_resource.route
   381  	RouteServiceUrl string `json:"route_service_url,omitempty"`
   382  
   383  	// SyslogDrainUrl: From where to read system logs.
   384  	SyslogDrainUrl string `json:"syslog_drain_url,omitempty"`
   385  
   386  	// VolumeMounts: An array of configuration for mounting volumes.
   387  	VolumeMounts []googleapi.RawMessage `json:"volume_mounts,omitempty"`
   388  
   389  	// ServerResponse contains the HTTP response code and headers from the
   390  	// server.
   391  	googleapi.ServerResponse `json:"-"`
   392  
   393  	// ForceSendFields is a list of field names (e.g. "Credentials") to
   394  	// unconditionally include in API requests. By default, fields with
   395  	// empty values are omitted from API requests. However, any non-pointer,
   396  	// non-interface field appearing in ForceSendFields will be sent to the
   397  	// server regardless of whether the field is empty or not. This may be
   398  	// used to include empty fields in Patch requests.
   399  	ForceSendFields []string `json:"-"`
   400  
   401  	// NullFields is a list of field names (e.g. "Credentials") to include
   402  	// in API requests with the JSON null value. By default, fields with
   403  	// empty values are omitted from API requests. However, any field with
   404  	// an empty value appearing in NullFields will be sent to the server as
   405  	// null. It is an error if a field in this list has a non-empty value.
   406  	// This may be used to include null fields in Patch requests.
   407  	NullFields []string `json:"-"`
   408  }
   409  
   410  func (s *GoogleCloudServicebrokerV1beta1__CreateBindingResponse) MarshalJSON() ([]byte, error) {
   411  	type NoMethod GoogleCloudServicebrokerV1beta1__CreateBindingResponse
   412  	raw := NoMethod(*s)
   413  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   414  }
   415  
   416  // GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse:
   417  // Response for the `CreateServiceInstance()` method.
   418  type GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse struct {
   419  	// Description: Used to communicate description of the response. Usually
   420  	// for non-standard
   421  	// error
   422  	// codes.
   423  	// https://github.com/openservicebrokerapi/servicebroker/blob/mast
   424  	// er/spec.md#service-broker-errors
   425  	Description string `json:"description,omitempty"`
   426  
   427  	// Operation: If broker executes operation asynchronously, this is the
   428  	// operation ID that
   429  	// can be polled to check the completion status of said operation.
   430  	// This broker always will return a non-empty operation on success.
   431  	Operation string `json:"operation,omitempty"`
   432  
   433  	// ServerResponse contains the HTTP response code and headers from the
   434  	// server.
   435  	googleapi.ServerResponse `json:"-"`
   436  
   437  	// ForceSendFields is a list of field names (e.g. "Description") to
   438  	// unconditionally include in API requests. By default, fields with
   439  	// empty values are omitted from API requests. However, any non-pointer,
   440  	// non-interface field appearing in ForceSendFields will be sent to the
   441  	// server regardless of whether the field is empty or not. This may be
   442  	// used to include empty fields in Patch requests.
   443  	ForceSendFields []string `json:"-"`
   444  
   445  	// NullFields is a list of field names (e.g. "Description") to include
   446  	// in API requests with the JSON null value. By default, fields with
   447  	// empty values are omitted from API requests. However, any field with
   448  	// an empty value appearing in NullFields will be sent to the server as
   449  	// null. It is an error if a field in this list has a non-empty value.
   450  	// This may be used to include null fields in Patch requests.
   451  	NullFields []string `json:"-"`
   452  }
   453  
   454  func (s *GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse) MarshalJSON() ([]byte, error) {
   455  	type NoMethod GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse
   456  	raw := NoMethod(*s)
   457  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   458  }
   459  
   460  // GoogleCloudServicebrokerV1beta1__DashboardClient: Message containing
   461  // information required to activate Dashboard SSO feature.
   462  type GoogleCloudServicebrokerV1beta1__DashboardClient struct {
   463  	// Id: The id of the Oauth client that the dashboard will use.
   464  	Id string `json:"id,omitempty"`
   465  
   466  	// RedirectUri: A URI for the service dashboard.
   467  	// Validated by the OAuth token server when the dashboard requests a
   468  	// token.
   469  	RedirectUri string `json:"redirect_uri,omitempty"`
   470  
   471  	// Secret: A secret for the dashboard client.
   472  	Secret string `json:"secret,omitempty"`
   473  
   474  	// ForceSendFields is a list of field names (e.g. "Id") to
   475  	// unconditionally include in API requests. By default, fields with
   476  	// empty values are omitted from API requests. However, any non-pointer,
   477  	// non-interface field appearing in ForceSendFields will be sent to the
   478  	// server regardless of whether the field is empty or not. This may be
   479  	// used to include empty fields in Patch requests.
   480  	ForceSendFields []string `json:"-"`
   481  
   482  	// NullFields is a list of field names (e.g. "Id") to include in API
   483  	// requests with the JSON null value. By default, fields with empty
   484  	// values are omitted from API requests. However, any field with an
   485  	// empty value appearing in NullFields will be sent to the server as
   486  	// null. It is an error if a field in this list has a non-empty value.
   487  	// This may be used to include null fields in Patch requests.
   488  	NullFields []string `json:"-"`
   489  }
   490  
   491  func (s *GoogleCloudServicebrokerV1beta1__DashboardClient) MarshalJSON() ([]byte, error) {
   492  	type NoMethod GoogleCloudServicebrokerV1beta1__DashboardClient
   493  	raw := NoMethod(*s)
   494  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   495  }
   496  
   497  // GoogleCloudServicebrokerV1beta1__DeleteBindingResponse: Response for
   498  // the `DeleteBinding()` method.
   499  type GoogleCloudServicebrokerV1beta1__DeleteBindingResponse struct {
   500  	// Description: Used to communicate description of the response. Usually
   501  	// for non-standard
   502  	// error
   503  	// codes.
   504  	// https://github.com/openservicebrokerapi/servicebroker/blob/mast
   505  	// er/spec.md#service-broker-errors
   506  	Description string `json:"description,omitempty"`
   507  
   508  	// Operation: If broker executes operation asynchronously, this is the
   509  	// operation ID that
   510  	// can be polled to check the completion status of said operation.
   511  	Operation string `json:"operation,omitempty"`
   512  
   513  	// ServerResponse contains the HTTP response code and headers from the
   514  	// server.
   515  	googleapi.ServerResponse `json:"-"`
   516  
   517  	// ForceSendFields is a list of field names (e.g. "Description") to
   518  	// unconditionally include in API requests. By default, fields with
   519  	// empty values are omitted from API requests. However, any non-pointer,
   520  	// non-interface field appearing in ForceSendFields will be sent to the
   521  	// server regardless of whether the field is empty or not. This may be
   522  	// used to include empty fields in Patch requests.
   523  	ForceSendFields []string `json:"-"`
   524  
   525  	// NullFields is a list of field names (e.g. "Description") to include
   526  	// in API requests with the JSON null value. By default, fields with
   527  	// empty values are omitted from API requests. However, any field with
   528  	// an empty value appearing in NullFields will be sent to the server as
   529  	// null. It is an error if a field in this list has a non-empty value.
   530  	// This may be used to include null fields in Patch requests.
   531  	NullFields []string `json:"-"`
   532  }
   533  
   534  func (s *GoogleCloudServicebrokerV1beta1__DeleteBindingResponse) MarshalJSON() ([]byte, error) {
   535  	type NoMethod GoogleCloudServicebrokerV1beta1__DeleteBindingResponse
   536  	raw := NoMethod(*s)
   537  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   538  }
   539  
   540  // GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse:
   541  // Response for the `DeleteServiceInstance()` method.
   542  type GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse struct {
   543  	// Description: Used to communicate description of the response. Usually
   544  	// for non-standard
   545  	// error
   546  	// codes.
   547  	// https://github.com/openservicebrokerapi/servicebroker/blob/mast
   548  	// er/spec.md#service-broker-errors
   549  	Description string `json:"description,omitempty"`
   550  
   551  	// Operation: If broker executes operation asynchronously, this is the
   552  	// operation ID that
   553  	// can be polled to check the completion status of said operation.
   554  	Operation string `json:"operation,omitempty"`
   555  
   556  	// ServerResponse contains the HTTP response code and headers from the
   557  	// server.
   558  	googleapi.ServerResponse `json:"-"`
   559  
   560  	// ForceSendFields is a list of field names (e.g. "Description") to
   561  	// unconditionally include in API requests. By default, fields with
   562  	// empty values are omitted from API requests. However, any non-pointer,
   563  	// non-interface field appearing in ForceSendFields will be sent to the
   564  	// server regardless of whether the field is empty or not. This may be
   565  	// used to include empty fields in Patch requests.
   566  	ForceSendFields []string `json:"-"`
   567  
   568  	// NullFields is a list of field names (e.g. "Description") to include
   569  	// in API requests with the JSON null value. By default, fields with
   570  	// empty values are omitted from API requests. However, any field with
   571  	// an empty value appearing in NullFields will be sent to the server as
   572  	// null. It is an error if a field in this list has a non-empty value.
   573  	// This may be used to include null fields in Patch requests.
   574  	NullFields []string `json:"-"`
   575  }
   576  
   577  func (s *GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse) MarshalJSON() ([]byte, error) {
   578  	type NoMethod GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse
   579  	raw := NoMethod(*s)
   580  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   581  }
   582  
   583  // GoogleCloudServicebrokerV1beta1__GetBindingResponse: Response for the
   584  // `GetBinding()` method.
   585  type GoogleCloudServicebrokerV1beta1__GetBindingResponse struct {
   586  	// Credentials: Credentials to use the binding.
   587  	Credentials googleapi.RawMessage `json:"credentials,omitempty"`
   588  
   589  	// DeploymentName: String containing the Deployment Manager deployment
   590  	// name that was created
   591  	// for this binding,
   592  	DeploymentName string `json:"deploymentName,omitempty"`
   593  
   594  	// Description: Used to communicate description of the response. Usually
   595  	// for non-standard
   596  	// error
   597  	// codes.
   598  	// https://github.com/openservicebrokerapi/servicebroker/blob/mast
   599  	// er/spec.md#service-broker-errors
   600  	Description string `json:"description,omitempty"`
   601  
   602  	// ResourceName: Output only. The resource name of the binding,
   603  	// e.g.
   604  	// projects/project_id/brokers/broker_id/service_instances/instance_
   605  	// id/bindings/binding_id.
   606  	ResourceName string `json:"resourceName,omitempty"`
   607  
   608  	// RouteServiceUrl: A URL to which the platform may proxy requests for
   609  	// the address sent with
   610  	// bind_resource.route
   611  	RouteServiceUrl string `json:"route_service_url,omitempty"`
   612  
   613  	// SyslogDrainUrl: From where to read system logs.
   614  	SyslogDrainUrl string `json:"syslog_drain_url,omitempty"`
   615  
   616  	// VolumeMounts: An array of configurations for mounting volumes.
   617  	VolumeMounts []googleapi.RawMessage `json:"volume_mounts,omitempty"`
   618  
   619  	// ServerResponse contains the HTTP response code and headers from the
   620  	// server.
   621  	googleapi.ServerResponse `json:"-"`
   622  
   623  	// ForceSendFields is a list of field names (e.g. "Credentials") to
   624  	// unconditionally include in API requests. By default, fields with
   625  	// empty values are omitted from API requests. However, any non-pointer,
   626  	// non-interface field appearing in ForceSendFields will be sent to the
   627  	// server regardless of whether the field is empty or not. This may be
   628  	// used to include empty fields in Patch requests.
   629  	ForceSendFields []string `json:"-"`
   630  
   631  	// NullFields is a list of field names (e.g. "Credentials") to include
   632  	// in API requests with the JSON null value. By default, fields with
   633  	// empty values are omitted from API requests. However, any field with
   634  	// an empty value appearing in NullFields will be sent to the server as
   635  	// null. It is an error if a field in this list has a non-empty value.
   636  	// This may be used to include null fields in Patch requests.
   637  	NullFields []string `json:"-"`
   638  }
   639  
   640  func (s *GoogleCloudServicebrokerV1beta1__GetBindingResponse) MarshalJSON() ([]byte, error) {
   641  	type NoMethod GoogleCloudServicebrokerV1beta1__GetBindingResponse
   642  	raw := NoMethod(*s)
   643  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   644  }
   645  
   646  // GoogleCloudServicebrokerV1beta1__ListBindingsResponse: The response
   647  // for the `ListBindings()` method.
   648  type GoogleCloudServicebrokerV1beta1__ListBindingsResponse struct {
   649  	// Bindings: The list of bindings in the instance.
   650  	Bindings []*GoogleCloudServicebrokerV1beta1__Binding `json:"bindings,omitempty"`
   651  
   652  	// Description: Used to communicate description of the response. Usually
   653  	// for non-standard
   654  	// error
   655  	// codes.
   656  	// https://github.com/openservicebrokerapi/servicebroker/blob/mast
   657  	// er/spec.md#service-broker-errors
   658  	Description string `json:"description,omitempty"`
   659  
   660  	// NextPageToken: This token allows you to get the next page of results
   661  	// for list requests.
   662  	// If the number of results is larger than `pageSize`, use the
   663  	// `nextPageToken`
   664  	// as a value for the query parameter `pageToken` in the next list
   665  	// request.
   666  	// Subsequent list requests will have their own `nextPageToken` to
   667  	// continue
   668  	// paging through the results
   669  	NextPageToken string `json:"nextPageToken,omitempty"`
   670  
   671  	// ServerResponse contains the HTTP response code and headers from the
   672  	// server.
   673  	googleapi.ServerResponse `json:"-"`
   674  
   675  	// ForceSendFields is a list of field names (e.g. "Bindings") to
   676  	// unconditionally include in API requests. By default, fields with
   677  	// empty values are omitted from API requests. However, any non-pointer,
   678  	// non-interface field appearing in ForceSendFields will be sent to the
   679  	// server regardless of whether the field is empty or not. This may be
   680  	// used to include empty fields in Patch requests.
   681  	ForceSendFields []string `json:"-"`
   682  
   683  	// NullFields is a list of field names (e.g. "Bindings") to include in
   684  	// API requests with the JSON null value. By default, fields with empty
   685  	// values are omitted from API requests. However, any field with an
   686  	// empty value appearing in NullFields will be sent to the server as
   687  	// null. It is an error if a field in this list has a non-empty value.
   688  	// This may be used to include null fields in Patch requests.
   689  	NullFields []string `json:"-"`
   690  }
   691  
   692  func (s *GoogleCloudServicebrokerV1beta1__ListBindingsResponse) MarshalJSON() ([]byte, error) {
   693  	type NoMethod GoogleCloudServicebrokerV1beta1__ListBindingsResponse
   694  	raw := NoMethod(*s)
   695  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   696  }
   697  
   698  // GoogleCloudServicebrokerV1beta1__ListBrokersResponse: The response
   699  // for the `ListBrokers()` method.
   700  type GoogleCloudServicebrokerV1beta1__ListBrokersResponse struct {
   701  	// Brokers: The list of brokers in the container.
   702  	Brokers []*GoogleCloudServicebrokerV1beta1__Broker `json:"brokers,omitempty"`
   703  
   704  	// NextPageToken: This token allows you to get the next page of results
   705  	// for list requests.
   706  	// If the number of results is larger than `pageSize`, use the
   707  	// `nextPageToken`
   708  	// as a value for the query parameter `pageToken` in the next list
   709  	// request.
   710  	// Subsequent list requests will have their own `nextPageToken` to
   711  	// continue
   712  	// paging through the results
   713  	NextPageToken string `json:"nextPageToken,omitempty"`
   714  
   715  	// ServerResponse contains the HTTP response code and headers from the
   716  	// server.
   717  	googleapi.ServerResponse `json:"-"`
   718  
   719  	// ForceSendFields is a list of field names (e.g. "Brokers") to
   720  	// unconditionally include in API requests. By default, fields with
   721  	// empty values are omitted from API requests. However, any non-pointer,
   722  	// non-interface field appearing in ForceSendFields will be sent to the
   723  	// server regardless of whether the field is empty or not. This may be
   724  	// used to include empty fields in Patch requests.
   725  	ForceSendFields []string `json:"-"`
   726  
   727  	// NullFields is a list of field names (e.g. "Brokers") to include in
   728  	// API requests with the JSON null value. By default, fields with empty
   729  	// values are omitted from API requests. However, any field with an
   730  	// empty value appearing in NullFields will be sent to the server as
   731  	// null. It is an error if a field in this list has a non-empty value.
   732  	// This may be used to include null fields in Patch requests.
   733  	NullFields []string `json:"-"`
   734  }
   735  
   736  func (s *GoogleCloudServicebrokerV1beta1__ListBrokersResponse) MarshalJSON() ([]byte, error) {
   737  	type NoMethod GoogleCloudServicebrokerV1beta1__ListBrokersResponse
   738  	raw := NoMethod(*s)
   739  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   740  }
   741  
   742  // GoogleCloudServicebrokerV1beta1__ListCatalogResponse: Response
   743  // message for the `ListCatalog()` method.
   744  type GoogleCloudServicebrokerV1beta1__ListCatalogResponse struct {
   745  	// Description: Used to communicate description of the response. Usually
   746  	// for non-standard
   747  	// error
   748  	// codes.
   749  	// https://github.com/openservicebrokerapi/servicebroker/blob/mast
   750  	// er/spec.md#service-broker-errors
   751  	Description string `json:"description,omitempty"`
   752  
   753  	// NextPageToken: This token allows you to get the next page of results
   754  	// for list requests.
   755  	// If the number of results is larger than `pageSize`, use the
   756  	// `nextPageToken`
   757  	// as a value for the query parameter `pageToken` in the next list
   758  	// request.
   759  	// Subsequent list requests will have their own `nextPageToken` to
   760  	// continue
   761  	// paging through the results
   762  	NextPageToken string `json:"nextPageToken,omitempty"`
   763  
   764  	// Services: The services available for the requested GCP project.
   765  	Services []*GoogleCloudServicebrokerV1beta1__Service `json:"services,omitempty"`
   766  
   767  	// ServerResponse contains the HTTP response code and headers from the
   768  	// server.
   769  	googleapi.ServerResponse `json:"-"`
   770  
   771  	// ForceSendFields is a list of field names (e.g. "Description") to
   772  	// unconditionally include in API requests. By default, fields with
   773  	// empty values are omitted from API requests. However, any non-pointer,
   774  	// non-interface field appearing in ForceSendFields will be sent to the
   775  	// server regardless of whether the field is empty or not. This may be
   776  	// used to include empty fields in Patch requests.
   777  	ForceSendFields []string `json:"-"`
   778  
   779  	// NullFields is a list of field names (e.g. "Description") to include
   780  	// in API requests with the JSON null value. By default, fields with
   781  	// empty values are omitted from API requests. However, any field with
   782  	// an empty value appearing in NullFields will be sent to the server as
   783  	// null. It is an error if a field in this list has a non-empty value.
   784  	// This may be used to include null fields in Patch requests.
   785  	NullFields []string `json:"-"`
   786  }
   787  
   788  func (s *GoogleCloudServicebrokerV1beta1__ListCatalogResponse) MarshalJSON() ([]byte, error) {
   789  	type NoMethod GoogleCloudServicebrokerV1beta1__ListCatalogResponse
   790  	raw := NoMethod(*s)
   791  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   792  }
   793  
   794  // GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse: The
   795  // response for the `ListServiceInstances()` method.
   796  type GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse struct {
   797  	// Description: Used to communicate description of the response. Usually
   798  	// for non-standard
   799  	// error
   800  	// codes.
   801  	// https://github.com/openservicebrokerapi/servicebroker/blob/mast
   802  	// er/spec.md#service-broker-errors
   803  	Description string `json:"description,omitempty"`
   804  
   805  	// Instances: The list of instances in the broker.
   806  	Instances []*GoogleCloudServicebrokerV1beta1__ServiceInstance `json:"instances,omitempty"`
   807  
   808  	// NextPageToken: This token allows you to get the next page of results
   809  	// for list requests.
   810  	// If the number of results is larger than `pageSize`, use the
   811  	// `nextPageToken`
   812  	// as a value for the query parameter `pageToken` in the next list
   813  	// request.
   814  	// Subsequent list requests will have their own `nextPageToken` to
   815  	// continue
   816  	// paging through the results
   817  	NextPageToken string `json:"nextPageToken,omitempty"`
   818  
   819  	// ServerResponse contains the HTTP response code and headers from the
   820  	// server.
   821  	googleapi.ServerResponse `json:"-"`
   822  
   823  	// ForceSendFields is a list of field names (e.g. "Description") to
   824  	// unconditionally include in API requests. By default, fields with
   825  	// empty values are omitted from API requests. However, any non-pointer,
   826  	// non-interface field appearing in ForceSendFields will be sent to the
   827  	// server regardless of whether the field is empty or not. This may be
   828  	// used to include empty fields in Patch requests.
   829  	ForceSendFields []string `json:"-"`
   830  
   831  	// NullFields is a list of field names (e.g. "Description") to include
   832  	// in API requests with the JSON null value. By default, fields with
   833  	// empty values are omitted from API requests. However, any field with
   834  	// an empty value appearing in NullFields will be sent to the server as
   835  	// null. It is an error if a field in this list has a non-empty value.
   836  	// This may be used to include null fields in Patch requests.
   837  	NullFields []string `json:"-"`
   838  }
   839  
   840  func (s *GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse) MarshalJSON() ([]byte, error) {
   841  	type NoMethod GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse
   842  	raw := NoMethod(*s)
   843  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   844  }
   845  
   846  // GoogleCloudServicebrokerV1beta1__Operation: Describes a long running
   847  // operation, which conforms to OpenService API.
   848  type GoogleCloudServicebrokerV1beta1__Operation struct {
   849  	// Description: Optional description of the Operation state.
   850  	Description string `json:"description,omitempty"`
   851  
   852  	// State: The state of the operation.
   853  	// Valid values are: "in progress", "succeeded", and "failed".
   854  	State string `json:"state,omitempty"`
   855  
   856  	// ServerResponse contains the HTTP response code and headers from the
   857  	// server.
   858  	googleapi.ServerResponse `json:"-"`
   859  
   860  	// ForceSendFields is a list of field names (e.g. "Description") to
   861  	// unconditionally include in API requests. By default, fields with
   862  	// empty values are omitted from API requests. However, any non-pointer,
   863  	// non-interface field appearing in ForceSendFields will be sent to the
   864  	// server regardless of whether the field is empty or not. This may be
   865  	// used to include empty fields in Patch requests.
   866  	ForceSendFields []string `json:"-"`
   867  
   868  	// NullFields is a list of field names (e.g. "Description") to include
   869  	// in API requests with the JSON null value. By default, fields with
   870  	// empty values are omitted from API requests. However, any field with
   871  	// an empty value appearing in NullFields will be sent to the server as
   872  	// null. It is an error if a field in this list has a non-empty value.
   873  	// This may be used to include null fields in Patch requests.
   874  	NullFields []string `json:"-"`
   875  }
   876  
   877  func (s *GoogleCloudServicebrokerV1beta1__Operation) MarshalJSON() ([]byte, error) {
   878  	type NoMethod GoogleCloudServicebrokerV1beta1__Operation
   879  	raw := NoMethod(*s)
   880  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   881  }
   882  
   883  // GoogleCloudServicebrokerV1beta1__Plan: Plan message describes a
   884  // Service Plan.
   885  type GoogleCloudServicebrokerV1beta1__Plan struct {
   886  	// Bindable: Specifies whether instances of the service can be bound to
   887  	// applications.
   888  	// If not specified, `Service.bindable` will be presumed.
   889  	Bindable bool `json:"bindable,omitempty"`
   890  
   891  	// Description: Textual description of the plan. Optional.
   892  	Description string `json:"description,omitempty"`
   893  
   894  	// Free: Whether the service is free.
   895  	Free bool `json:"free,omitempty"`
   896  
   897  	// Id: ID is a globally unique identifier used to uniquely identify the
   898  	// plan.
   899  	// User must make no presumption about the format of this field.
   900  	Id string `json:"id,omitempty"`
   901  
   902  	// Metadata: A list of metadata for a service offering.
   903  	// Metadata is an arbitrary JSON object.
   904  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
   905  
   906  	// Name: User friendly name of the plan.
   907  	// The name must be globally unique within GCP project.
   908  	// Note, which is different from ("This must be globally unique within
   909  	// a
   910  	// platform marketplace").
   911  	Name string `json:"name,omitempty"`
   912  
   913  	// Schemas: Schema definitions for service instances and bindings for
   914  	// the plan.
   915  	Schemas googleapi.RawMessage `json:"schemas,omitempty"`
   916  
   917  	// ForceSendFields is a list of field names (e.g. "Bindable") to
   918  	// unconditionally include in API requests. By default, fields with
   919  	// empty values are omitted from API requests. However, any non-pointer,
   920  	// non-interface field appearing in ForceSendFields will be sent to the
   921  	// server regardless of whether the field is empty or not. This may be
   922  	// used to include empty fields in Patch requests.
   923  	ForceSendFields []string `json:"-"`
   924  
   925  	// NullFields is a list of field names (e.g. "Bindable") to include in
   926  	// API requests with the JSON null value. By default, fields with empty
   927  	// values are omitted from API requests. However, any field with an
   928  	// empty value appearing in NullFields will be sent to the server as
   929  	// null. It is an error if a field in this list has a non-empty value.
   930  	// This may be used to include null fields in Patch requests.
   931  	NullFields []string `json:"-"`
   932  }
   933  
   934  func (s *GoogleCloudServicebrokerV1beta1__Plan) MarshalJSON() ([]byte, error) {
   935  	type NoMethod GoogleCloudServicebrokerV1beta1__Plan
   936  	raw := NoMethod(*s)
   937  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   938  }
   939  
   940  // GoogleCloudServicebrokerV1beta1__Service: The resource model mostly
   941  // follows the Open Service Broker API, as
   942  // described
   943  // here:
   944  // https://github.com/openservicebrokerapi/servicebroker/blob/maste
   945  // r/_spec.md
   946  // Though due to Google Specifics it has additional optional fields.
   947  type GoogleCloudServicebrokerV1beta1__Service struct {
   948  	// Bindable: Specifies whether instances of the service can be bound to
   949  	// applications.
   950  	// Required.
   951  	Bindable bool `json:"bindable,omitempty"`
   952  
   953  	// BindingRetrievable: Whether the service provides an endpoint to get
   954  	// service bindings.
   955  	BindingRetrievable bool `json:"binding_retrievable,omitempty"`
   956  
   957  	// BindingsRetrievable: Whether the service provides an endpoint to get
   958  	// service bindings.
   959  	BindingsRetrievable bool `json:"bindings_retrievable,omitempty"`
   960  
   961  	// DashboardClient: Information to activate Dashboard SSO feature.
   962  	DashboardClient *GoogleCloudServicebrokerV1beta1__DashboardClient `json:"dashboard_client,omitempty"`
   963  
   964  	// Description: Textual description of the service. Required.
   965  	Description string `json:"description,omitempty"`
   966  
   967  	// Id: ID is a globally unique identifier used to uniquely identify the
   968  	// service.
   969  	// ID is an opaque string.
   970  	Id string `json:"id,omitempty"`
   971  
   972  	// InstancesRetrievable: Whether the service provides an endpoint to get
   973  	// service instances.
   974  	InstancesRetrievable bool `json:"instances_retrievable,omitempty"`
   975  
   976  	// Metadata: A list of metadata for a service offering.
   977  	// Metadata is an arbitrary JSON object.
   978  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
   979  
   980  	// Name: User friendly service name.
   981  	// Name must match [a-z0-9]+ regexp.
   982  	// The name must be globally unique within GCP project.
   983  	// Note, which is different from ("This must be globally unique within
   984  	// a
   985  	// platform marketplace").
   986  	// Required.
   987  	Name string `json:"name,omitempty"`
   988  
   989  	// PlanUpdateable: Whether the service supports upgrade/downgrade for
   990  	// some plans.
   991  	PlanUpdateable bool `json:"plan_updateable,omitempty"`
   992  
   993  	// Plans: A list of plans for this service.
   994  	// At least one plan is required.
   995  	Plans []*GoogleCloudServicebrokerV1beta1__Plan `json:"plans,omitempty"`
   996  
   997  	// Tags: Tags provide a flexible mechanism to expose a classification,
   998  	// attribute, or
   999  	// base technology of a service.
  1000  	Tags []string `json:"tags,omitempty"`
  1001  
  1002  	// ForceSendFields is a list of field names (e.g. "Bindable") to
  1003  	// unconditionally include in API requests. By default, fields with
  1004  	// empty values are omitted from API requests. However, any non-pointer,
  1005  	// non-interface field appearing in ForceSendFields will be sent to the
  1006  	// server regardless of whether the field is empty or not. This may be
  1007  	// used to include empty fields in Patch requests.
  1008  	ForceSendFields []string `json:"-"`
  1009  
  1010  	// NullFields is a list of field names (e.g. "Bindable") to include in
  1011  	// API requests with the JSON null value. By default, fields with empty
  1012  	// values are omitted from API requests. However, any field with an
  1013  	// empty value appearing in NullFields will be sent to the server as
  1014  	// null. It is an error if a field in this list has a non-empty value.
  1015  	// This may be used to include null fields in Patch requests.
  1016  	NullFields []string `json:"-"`
  1017  }
  1018  
  1019  func (s *GoogleCloudServicebrokerV1beta1__Service) MarshalJSON() ([]byte, error) {
  1020  	type NoMethod GoogleCloudServicebrokerV1beta1__Service
  1021  	raw := NoMethod(*s)
  1022  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1023  }
  1024  
  1025  // GoogleCloudServicebrokerV1beta1__ServiceInstance: Message describing
  1026  // inputs to Provision and Update Service instance requests.
  1027  type GoogleCloudServicebrokerV1beta1__ServiceInstance struct {
  1028  	// Context: Platform specific contextual information under which the
  1029  	// service instance
  1030  	// is to be provisioned. This replaces organization_guid and
  1031  	// space_guid.
  1032  	// But can also contain anything.
  1033  	// Currently only used for logging context information.
  1034  	Context googleapi.RawMessage `json:"context,omitempty"`
  1035  
  1036  	// CreateTime: Output only. Timestamp for when the instance was created.
  1037  	CreateTime string `json:"createTime,omitempty"`
  1038  
  1039  	// DeploymentName: Output only. String containing the Deployment Manager
  1040  	// deployment name that was created
  1041  	// for this instance,
  1042  	DeploymentName string `json:"deploymentName,omitempty"`
  1043  
  1044  	// Description: To return errors when GetInstance call is done via HTTP
  1045  	// to be unified with
  1046  	// other methods.
  1047  	Description string `json:"description,omitempty"`
  1048  
  1049  	// InstanceId: The id of the service instance. Must be unique within GCP
  1050  	// project.
  1051  	// Maximum length is 64, GUID recommended.
  1052  	// Required.
  1053  	InstanceId string `json:"instance_id,omitempty"`
  1054  
  1055  	// OrganizationGuid: The platform GUID for the organization under which
  1056  	// the service is to be
  1057  	// provisioned.
  1058  	// Required.
  1059  	OrganizationGuid string `json:"organization_guid,omitempty"`
  1060  
  1061  	// Parameters: Configuration options for the service
  1062  	// instance.
  1063  	// Parameters is JSON object serialized to string.
  1064  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  1065  
  1066  	// PlanId: The ID of the plan. See `Service` and `Plan` resources for
  1067  	// details.
  1068  	// Maximum length is 64, GUID recommended.
  1069  	// Required.
  1070  	PlanId string `json:"plan_id,omitempty"`
  1071  
  1072  	// PreviousValues: Used only in UpdateServiceInstance request to
  1073  	// optionally specify previous
  1074  	// fields.
  1075  	PreviousValues googleapi.RawMessage `json:"previous_values,omitempty"`
  1076  
  1077  	// ResourceName: Output only. The resource name of the instance,
  1078  	// e.g.
  1079  	// projects/project_id/brokers/broker_id/service_instances/instance_
  1080  	// id
  1081  	ResourceName string `json:"resourceName,omitempty"`
  1082  
  1083  	// ServiceId: The id of the service. Must be a valid identifier of a
  1084  	// service
  1085  	// contained in the list from a `ListServices()` call.
  1086  	// Maximum length is 64, GUID recommended.
  1087  	// Required.
  1088  	ServiceId string `json:"service_id,omitempty"`
  1089  
  1090  	// SpaceGuid: The identifier for the project space within the platform
  1091  	// organization.
  1092  	// Required.
  1093  	SpaceGuid string `json:"space_guid,omitempty"`
  1094  
  1095  	// ServerResponse contains the HTTP response code and headers from the
  1096  	// server.
  1097  	googleapi.ServerResponse `json:"-"`
  1098  
  1099  	// ForceSendFields is a list of field names (e.g. "Context") to
  1100  	// unconditionally include in API requests. By default, fields with
  1101  	// empty values are omitted from API requests. However, any non-pointer,
  1102  	// non-interface field appearing in ForceSendFields will be sent to the
  1103  	// server regardless of whether the field is empty or not. This may be
  1104  	// used to include empty fields in Patch requests.
  1105  	ForceSendFields []string `json:"-"`
  1106  
  1107  	// NullFields is a list of field names (e.g. "Context") to include in
  1108  	// API requests with the JSON null value. By default, fields with empty
  1109  	// values are omitted from API requests. However, any field with an
  1110  	// empty value appearing in NullFields will be sent to the server as
  1111  	// null. It is an error if a field in this list has a non-empty value.
  1112  	// This may be used to include null fields in Patch requests.
  1113  	NullFields []string `json:"-"`
  1114  }
  1115  
  1116  func (s *GoogleCloudServicebrokerV1beta1__ServiceInstance) MarshalJSON() ([]byte, error) {
  1117  	type NoMethod GoogleCloudServicebrokerV1beta1__ServiceInstance
  1118  	raw := NoMethod(*s)
  1119  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1120  }
  1121  
  1122  // GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse:
  1123  // Response for the `UpdateServiceInstance()` method.
  1124  type GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse struct {
  1125  	// Description: Used to communicate description of the response. Usually
  1126  	// for non-standard
  1127  	// error
  1128  	// codes.
  1129  	// https://github.com/openservicebrokerapi/servicebroker/blob/mast
  1130  	// er/spec.md#service-broker-errors
  1131  	Description string `json:"description,omitempty"`
  1132  
  1133  	// Operation: If broker executes operation asynchronously, this is the
  1134  	// operation ID that
  1135  	// can be polled to check the completion status of said operation.
  1136  	Operation string `json:"operation,omitempty"`
  1137  
  1138  	// ServerResponse contains the HTTP response code and headers from the
  1139  	// server.
  1140  	googleapi.ServerResponse `json:"-"`
  1141  
  1142  	// ForceSendFields is a list of field names (e.g. "Description") to
  1143  	// unconditionally include in API requests. By default, fields with
  1144  	// empty values are omitted from API requests. However, any non-pointer,
  1145  	// non-interface field appearing in ForceSendFields will be sent to the
  1146  	// server regardless of whether the field is empty or not. This may be
  1147  	// used to include empty fields in Patch requests.
  1148  	ForceSendFields []string `json:"-"`
  1149  
  1150  	// NullFields is a list of field names (e.g. "Description") to include
  1151  	// in API requests with the JSON null value. By default, fields with
  1152  	// empty values are omitted from API requests. However, any field with
  1153  	// an empty value appearing in NullFields will be sent to the server as
  1154  	// null. It is an error if a field in this list has a non-empty value.
  1155  	// This may be used to include null fields in Patch requests.
  1156  	NullFields []string `json:"-"`
  1157  }
  1158  
  1159  func (s *GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse) MarshalJSON() ([]byte, error) {
  1160  	type NoMethod GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse
  1161  	raw := NoMethod(*s)
  1162  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1163  }
  1164  
  1165  // GoogleIamV1__Binding: Associates `members` with a `role`.
  1166  type GoogleIamV1__Binding struct {
  1167  	// Condition: The condition that is associated with this binding.
  1168  	// NOTE: An unsatisfied condition will not allow user access via
  1169  	// current
  1170  	// binding. Different bindings, including their conditions, are
  1171  	// examined
  1172  	// independently.
  1173  	Condition *GoogleType__Expr `json:"condition,omitempty"`
  1174  
  1175  	// Members: Specifies the identities requesting access for a Cloud
  1176  	// Platform resource.
  1177  	// `members` can have the following values:
  1178  	//
  1179  	// * `allUsers`: A special identifier that represents anyone who is
  1180  	//    on the internet; with or without a Google account.
  1181  	//
  1182  	// * `allAuthenticatedUsers`: A special identifier that represents
  1183  	// anyone
  1184  	//    who is authenticated with a Google account or a service
  1185  	// account.
  1186  	//
  1187  	// * `user:{emailid}`: An email address that represents a specific
  1188  	// Google
  1189  	//    account. For example, `alice@example.com` .
  1190  	//
  1191  	//
  1192  	// * `serviceAccount:{emailid}`: An email address that represents a
  1193  	// service
  1194  	//    account. For example,
  1195  	// `my-other-app@appspot.gserviceaccount.com`.
  1196  	//
  1197  	// * `group:{emailid}`: An email address that represents a Google
  1198  	// group.
  1199  	//    For example, `admins@example.com`.
  1200  	//
  1201  	// * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
  1202  	// unique
  1203  	//    identifier) representing a user that has been recently deleted.
  1204  	// For
  1205  	//    example, `alice@example.com?uid=123456789012345678901`. If the
  1206  	// user is
  1207  	//    recovered, this value reverts to `user:{emailid}` and the
  1208  	// recovered user
  1209  	//    retains the role in the binding.
  1210  	//
  1211  	// * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address
  1212  	// (plus
  1213  	//    unique identifier) representing a service account that has been
  1214  	// recently
  1215  	//    deleted. For example,
  1216  	//
  1217  	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
  1218  	//
  1219  	//    If the service account is undeleted, this value reverts to
  1220  	//    `serviceAccount:{emailid}` and the undeleted service account
  1221  	// retains the
  1222  	//    role in the binding.
  1223  	//
  1224  	// * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus
  1225  	// unique
  1226  	//    identifier) representing a Google group that has been recently
  1227  	//    deleted. For example,
  1228  	// `admins@example.com?uid=123456789012345678901`. If
  1229  	//    the group is recovered, this value reverts to `group:{emailid}`
  1230  	// and the
  1231  	//    recovered group retains the role in the binding.
  1232  	//
  1233  	//
  1234  	// * `domain:{domain}`: The G Suite domain (primary) that represents all
  1235  	// the
  1236  	//    users of that domain. For example, `google.com` or
  1237  	// `example.com`.
  1238  	//
  1239  	//
  1240  	Members []string `json:"members,omitempty"`
  1241  
  1242  	// Role: Role that is assigned to `members`.
  1243  	// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
  1244  	Role string `json:"role,omitempty"`
  1245  
  1246  	// ForceSendFields is a list of field names (e.g. "Condition") to
  1247  	// unconditionally include in API requests. By default, fields with
  1248  	// empty values are omitted from API requests. However, any non-pointer,
  1249  	// non-interface field appearing in ForceSendFields will be sent to the
  1250  	// server regardless of whether the field is empty or not. This may be
  1251  	// used to include empty fields in Patch requests.
  1252  	ForceSendFields []string `json:"-"`
  1253  
  1254  	// NullFields is a list of field names (e.g. "Condition") to include in
  1255  	// API requests with the JSON null value. By default, fields with empty
  1256  	// values are omitted from API requests. However, any field with an
  1257  	// empty value appearing in NullFields will be sent to the server as
  1258  	// null. It is an error if a field in this list has a non-empty value.
  1259  	// This may be used to include null fields in Patch requests.
  1260  	NullFields []string `json:"-"`
  1261  }
  1262  
  1263  func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) {
  1264  	type NoMethod GoogleIamV1__Binding
  1265  	raw := NoMethod(*s)
  1266  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1267  }
  1268  
  1269  // GoogleIamV1__Policy: An Identity and Access Management (IAM) policy,
  1270  // which specifies access
  1271  // controls for Google Cloud resources.
  1272  //
  1273  // A `Policy` is a collection of `bindings`. A `binding` binds one or
  1274  // more
  1275  // `members` to a single `role`. Members can be user accounts, service
  1276  // accounts,
  1277  // Google groups, and domains (such as G Suite). A `role` is a named
  1278  // list of
  1279  // permissions; each `role` can be an IAM predefined role or a
  1280  // user-created
  1281  // custom role.
  1282  //
  1283  // Optionally, a `binding` can specify a `condition`, which is a
  1284  // logical
  1285  // expression that allows access to a resource only if the expression
  1286  // evaluates
  1287  // to `true`. A condition can add constraints based on attributes of
  1288  // the
  1289  // request, the resource, or both.
  1290  //
  1291  // **JSON example:**
  1292  //
  1293  //	{
  1294  //	  "bindings": [
  1295  //	    {
  1296  //	      "role": "roles/resourcemanager.organizationAdmin",
  1297  //	      "members": [
  1298  //	        "user:mike@example.com",
  1299  //	        "group:admins@example.com",
  1300  //	        "domain:google.com",
  1301  //
  1302  // "serviceAccount:my-project-id@appspot.gserviceaccount.com"
  1303  //
  1304  //	  ]
  1305  //	},
  1306  //	{
  1307  //	  "role": "roles/resourcemanager.organizationViewer",
  1308  //	  "members": ["user:eve@example.com"],
  1309  //	  "condition": {
  1310  //	    "title": "expirable access",
  1311  //	    "description": "Does not grant access after Sep 2020",
  1312  //	    "expression": "request.time <
  1313  //
  1314  // timestamp('2020-10-01T00:00:00.000Z')",
  1315  //
  1316  //	      }
  1317  //	    }
  1318  //	  ],
  1319  //	  "etag": "BwWWja0YfJA=",
  1320  //	  "version": 3
  1321  //	}
  1322  //
  1323  // **YAML example:**
  1324  //
  1325  //	bindings:
  1326  //	- members:
  1327  //	  - user:mike@example.com
  1328  //	  - group:admins@example.com
  1329  //	  - domain:google.com
  1330  //	  - serviceAccount:my-project-id@appspot.gserviceaccount.com
  1331  //	  role: roles/resourcemanager.organizationAdmin
  1332  //	- members:
  1333  //	  - user:eve@example.com
  1334  //	  role: roles/resourcemanager.organizationViewer
  1335  //	  condition:
  1336  //	    title: expirable access
  1337  //	    description: Does not grant access after Sep 2020
  1338  //	    expression: request.time <
  1339  //
  1340  // timestamp('2020-10-01T00:00:00.000Z')
  1341  //   - etag: BwWWja0YfJA=
  1342  //   - version: 3
  1343  //
  1344  // For a description of IAM and its features, see the
  1345  // [IAM documentation](https://cloud.google.com/iam/docs/).
  1346  type GoogleIamV1__Policy struct {
  1347  	// Bindings: Associates a list of `members` to a `role`. Optionally, may
  1348  	// specify a
  1349  	// `condition` that determines how and when the `bindings` are applied.
  1350  	// Each
  1351  	// of the `bindings` must contain at least one member.
  1352  	Bindings []*GoogleIamV1__Binding `json:"bindings,omitempty"`
  1353  
  1354  	// Etag: `etag` is used for optimistic concurrency control as a way to
  1355  	// help
  1356  	// prevent simultaneous updates of a policy from overwriting each
  1357  	// other.
  1358  	// It is strongly suggested that systems make use of the `etag` in
  1359  	// the
  1360  	// read-modify-write cycle to perform policy updates in order to avoid
  1361  	// race
  1362  	// conditions: An `etag` is returned in the response to `getIamPolicy`,
  1363  	// and
  1364  	// systems are expected to put that etag in the request to
  1365  	// `setIamPolicy` to
  1366  	// ensure that their change will be applied to the same version of the
  1367  	// policy.
  1368  	//
  1369  	// **Important:** If you use IAM Conditions, you must include the `etag`
  1370  	// field
  1371  	// whenever you call `setIamPolicy`. If you omit this field, then IAM
  1372  	// allows
  1373  	// you to overwrite a version `3` policy with a version `1` policy, and
  1374  	// all of
  1375  	// the conditions in the version `3` policy are lost.
  1376  	Etag string `json:"etag,omitempty"`
  1377  
  1378  	// Version: Specifies the format of the policy.
  1379  	//
  1380  	// Valid values are `0`, `1`, and `3`. Requests that specify an invalid
  1381  	// value
  1382  	// are rejected.
  1383  	//
  1384  	// Any operation that affects conditional role bindings must specify
  1385  	// version
  1386  	// `3`. This requirement applies to the following operations:
  1387  	//
  1388  	// * Getting a policy that includes a conditional role binding
  1389  	// * Adding a conditional role binding to a policy
  1390  	// * Changing a conditional role binding in a policy
  1391  	// * Removing any role binding, with or without a condition, from a
  1392  	// policy
  1393  	//   that includes conditions
  1394  	//
  1395  	// **Important:** If you use IAM Conditions, you must include the `etag`
  1396  	// field
  1397  	// whenever you call `setIamPolicy`. If you omit this field, then IAM
  1398  	// allows
  1399  	// you to overwrite a version `3` policy with a version `1` policy, and
  1400  	// all of
  1401  	// the conditions in the version `3` policy are lost.
  1402  	//
  1403  	// If a policy does not include any conditions, operations on that
  1404  	// policy may
  1405  	// specify any valid version or leave the field unset.
  1406  	Version int64 `json:"version,omitempty"`
  1407  
  1408  	// ServerResponse contains the HTTP response code and headers from the
  1409  	// server.
  1410  	googleapi.ServerResponse `json:"-"`
  1411  
  1412  	// ForceSendFields is a list of field names (e.g. "Bindings") to
  1413  	// unconditionally include in API requests. By default, fields with
  1414  	// empty values are omitted from API requests. However, any non-pointer,
  1415  	// non-interface field appearing in ForceSendFields will be sent to the
  1416  	// server regardless of whether the field is empty or not. This may be
  1417  	// used to include empty fields in Patch requests.
  1418  	ForceSendFields []string `json:"-"`
  1419  
  1420  	// NullFields is a list of field names (e.g. "Bindings") to include in
  1421  	// API requests with the JSON null value. By default, fields with empty
  1422  	// values are omitted from API requests. However, any field with an
  1423  	// empty value appearing in NullFields will be sent to the server as
  1424  	// null. It is an error if a field in this list has a non-empty value.
  1425  	// This may be used to include null fields in Patch requests.
  1426  	NullFields []string `json:"-"`
  1427  }
  1428  
  1429  func (s *GoogleIamV1__Policy) MarshalJSON() ([]byte, error) {
  1430  	type NoMethod GoogleIamV1__Policy
  1431  	raw := NoMethod(*s)
  1432  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1433  }
  1434  
  1435  // GoogleIamV1__SetIamPolicyRequest: Request message for `SetIamPolicy`
  1436  // method.
  1437  type GoogleIamV1__SetIamPolicyRequest struct {
  1438  	// Policy: REQUIRED: The complete policy to be applied to the
  1439  	// `resource`. The size of
  1440  	// the policy is limited to a few 10s of KB. An empty policy is a
  1441  	// valid policy but certain Cloud Platform services (such as
  1442  	// Projects)
  1443  	// might reject them.
  1444  	Policy *GoogleIamV1__Policy `json:"policy,omitempty"`
  1445  
  1446  	// ForceSendFields is a list of field names (e.g. "Policy") to
  1447  	// unconditionally include in API requests. By default, fields with
  1448  	// empty values are omitted from API requests. However, any non-pointer,
  1449  	// non-interface field appearing in ForceSendFields will be sent to the
  1450  	// server regardless of whether the field is empty or not. This may be
  1451  	// used to include empty fields in Patch requests.
  1452  	ForceSendFields []string `json:"-"`
  1453  
  1454  	// NullFields is a list of field names (e.g. "Policy") to include in API
  1455  	// requests with the JSON null value. By default, fields with empty
  1456  	// values are omitted from API requests. However, any field with an
  1457  	// empty value appearing in NullFields will be sent to the server as
  1458  	// null. It is an error if a field in this list has a non-empty value.
  1459  	// This may be used to include null fields in Patch requests.
  1460  	NullFields []string `json:"-"`
  1461  }
  1462  
  1463  func (s *GoogleIamV1__SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  1464  	type NoMethod GoogleIamV1__SetIamPolicyRequest
  1465  	raw := NoMethod(*s)
  1466  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1467  }
  1468  
  1469  // GoogleIamV1__TestIamPermissionsRequest: Request message for
  1470  // `TestIamPermissions` method.
  1471  type GoogleIamV1__TestIamPermissionsRequest struct {
  1472  	// Permissions: The set of permissions to check for the `resource`.
  1473  	// Permissions with
  1474  	// wildcards (such as '*' or 'storage.*') are not allowed. For
  1475  	// more
  1476  	// information see
  1477  	// [IAM
  1478  	// Overview](https://cloud.google.com/iam/docs/overview#permissions).
  1479  	Permissions []string `json:"permissions,omitempty"`
  1480  
  1481  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  1482  	// unconditionally include in API requests. By default, fields with
  1483  	// empty values are omitted from API requests. However, any non-pointer,
  1484  	// non-interface field appearing in ForceSendFields will be sent to the
  1485  	// server regardless of whether the field is empty or not. This may be
  1486  	// used to include empty fields in Patch requests.
  1487  	ForceSendFields []string `json:"-"`
  1488  
  1489  	// NullFields is a list of field names (e.g. "Permissions") to include
  1490  	// in API requests with the JSON null value. By default, fields with
  1491  	// empty values are omitted from API requests. However, any field with
  1492  	// an empty value appearing in NullFields will be sent to the server as
  1493  	// null. It is an error if a field in this list has a non-empty value.
  1494  	// This may be used to include null fields in Patch requests.
  1495  	NullFields []string `json:"-"`
  1496  }
  1497  
  1498  func (s *GoogleIamV1__TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
  1499  	type NoMethod GoogleIamV1__TestIamPermissionsRequest
  1500  	raw := NoMethod(*s)
  1501  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1502  }
  1503  
  1504  // GoogleIamV1__TestIamPermissionsResponse: Response message for
  1505  // `TestIamPermissions` method.
  1506  type GoogleIamV1__TestIamPermissionsResponse struct {
  1507  	// Permissions: A subset of `TestPermissionsRequest.permissions` that
  1508  	// the caller is
  1509  	// allowed.
  1510  	Permissions []string `json:"permissions,omitempty"`
  1511  
  1512  	// ServerResponse contains the HTTP response code and headers from the
  1513  	// server.
  1514  	googleapi.ServerResponse `json:"-"`
  1515  
  1516  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  1517  	// unconditionally include in API requests. By default, fields with
  1518  	// empty values are omitted from API requests. However, any non-pointer,
  1519  	// non-interface field appearing in ForceSendFields will be sent to the
  1520  	// server regardless of whether the field is empty or not. This may be
  1521  	// used to include empty fields in Patch requests.
  1522  	ForceSendFields []string `json:"-"`
  1523  
  1524  	// NullFields is a list of field names (e.g. "Permissions") to include
  1525  	// in API requests with the JSON null value. By default, fields with
  1526  	// empty values are omitted from API requests. However, any field with
  1527  	// an empty value appearing in NullFields will be sent to the server as
  1528  	// null. It is an error if a field in this list has a non-empty value.
  1529  	// This may be used to include null fields in Patch requests.
  1530  	NullFields []string `json:"-"`
  1531  }
  1532  
  1533  func (s *GoogleIamV1__TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
  1534  	type NoMethod GoogleIamV1__TestIamPermissionsResponse
  1535  	raw := NoMethod(*s)
  1536  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1537  }
  1538  
  1539  // GoogleProtobuf__Empty: A generic empty message that you can re-use to
  1540  // avoid defining duplicated
  1541  // empty messages in your APIs. A typical example is to use it as the
  1542  // request
  1543  // or the response type of an API method. For instance:
  1544  //
  1545  //	service Foo {
  1546  //	  rpc Bar(google.protobuf.Empty) returns
  1547  //
  1548  // (google.protobuf.Empty);
  1549  //
  1550  //	}
  1551  //
  1552  // The JSON representation for `Empty` is empty JSON object `{}`.
  1553  type GoogleProtobuf__Empty struct {
  1554  	// ServerResponse contains the HTTP response code and headers from the
  1555  	// server.
  1556  	googleapi.ServerResponse `json:"-"`
  1557  }
  1558  
  1559  // GoogleType__Expr: Represents an expression text. Example:
  1560  //
  1561  //	title: "User account presence"
  1562  //	description: "Determines whether the request has a user account"
  1563  //	expression: "size(request.user) > 0"
  1564  type GoogleType__Expr struct {
  1565  	// Description: An optional description of the expression. This is a
  1566  	// longer text which
  1567  	// describes the expression, e.g. when hovered over it in a UI.
  1568  	Description string `json:"description,omitempty"`
  1569  
  1570  	// Expression: Textual representation of an expression in
  1571  	// Common Expression Language syntax.
  1572  	//
  1573  	// The application context of the containing message determines
  1574  	// which
  1575  	// well-known feature set of CEL is supported.
  1576  	Expression string `json:"expression,omitempty"`
  1577  
  1578  	// Location: An optional string indicating the location of the
  1579  	// expression for error
  1580  	// reporting, e.g. a file name and a position in the file.
  1581  	Location string `json:"location,omitempty"`
  1582  
  1583  	// Title: An optional title for the expression, i.e. a short string
  1584  	// describing
  1585  	// its purpose. This can be used e.g. in UIs which allow to enter
  1586  	// the
  1587  	// expression.
  1588  	Title string `json:"title,omitempty"`
  1589  
  1590  	// ForceSendFields is a list of field names (e.g. "Description") to
  1591  	// unconditionally include in API requests. By default, fields with
  1592  	// empty values are omitted from API requests. However, any non-pointer,
  1593  	// non-interface field appearing in ForceSendFields will be sent to the
  1594  	// server regardless of whether the field is empty or not. This may be
  1595  	// used to include empty fields in Patch requests.
  1596  	ForceSendFields []string `json:"-"`
  1597  
  1598  	// NullFields is a list of field names (e.g. "Description") to include
  1599  	// in API requests with the JSON null value. By default, fields with
  1600  	// empty values are omitted from API requests. However, any field with
  1601  	// an empty value appearing in NullFields will be sent to the server as
  1602  	// null. It is an error if a field in this list has a non-empty value.
  1603  	// This may be used to include null fields in Patch requests.
  1604  	NullFields []string `json:"-"`
  1605  }
  1606  
  1607  func (s *GoogleType__Expr) MarshalJSON() ([]byte, error) {
  1608  	type NoMethod GoogleType__Expr
  1609  	raw := NoMethod(*s)
  1610  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1611  }
  1612  
  1613  // method id "servicebroker.projects.brokers.create":
  1614  
  1615  type ProjectsBrokersCreateCall struct {
  1616  	s                                       *Service
  1617  	parent                                  string
  1618  	googlecloudservicebrokerv1beta1__broker *GoogleCloudServicebrokerV1beta1__Broker
  1619  	urlParams_                              gensupport.URLParams
  1620  	ctx_                                    context.Context
  1621  	header_                                 http.Header
  1622  }
  1623  
  1624  // Create: CreateBroker creates a Broker.
  1625  func (r *ProjectsBrokersService) Create(parent string, googlecloudservicebrokerv1beta1__broker *GoogleCloudServicebrokerV1beta1__Broker) *ProjectsBrokersCreateCall {
  1626  	c := &ProjectsBrokersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1627  	c.parent = parent
  1628  	c.googlecloudservicebrokerv1beta1__broker = googlecloudservicebrokerv1beta1__broker
  1629  	return c
  1630  }
  1631  
  1632  // Fields allows partial responses to be retrieved. See
  1633  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  1634  // for more information.
  1635  func (c *ProjectsBrokersCreateCall) Fields(s ...googleapi.Field) *ProjectsBrokersCreateCall {
  1636  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1637  	return c
  1638  }
  1639  
  1640  // Context sets the context to be used in this call's Do method. Any
  1641  // pending HTTP request will be aborted if the provided context is
  1642  // canceled.
  1643  func (c *ProjectsBrokersCreateCall) Context(ctx context.Context) *ProjectsBrokersCreateCall {
  1644  	c.ctx_ = ctx
  1645  	return c
  1646  }
  1647  
  1648  // Header returns an http.Header that can be modified by the caller to
  1649  // add HTTP headers to the request.
  1650  func (c *ProjectsBrokersCreateCall) Header() http.Header {
  1651  	if c.header_ == nil {
  1652  		c.header_ = make(http.Header)
  1653  	}
  1654  	return c.header_
  1655  }
  1656  
  1657  func (c *ProjectsBrokersCreateCall) doRequest(alt string) (*http.Response, error) {
  1658  	reqHeaders := make(http.Header)
  1659  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  1660  	for k, v := range c.header_ {
  1661  		reqHeaders[k] = v
  1662  	}
  1663  	reqHeaders.Set("User-Agent", c.s.userAgent())
  1664  	var body io.Reader = nil
  1665  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudservicebrokerv1beta1__broker)
  1666  	if err != nil {
  1667  		return nil, err
  1668  	}
  1669  	reqHeaders.Set("Content-Type", "application/json")
  1670  	c.urlParams_.Set("alt", alt)
  1671  	c.urlParams_.Set("prettyPrint", "false")
  1672  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/brokers")
  1673  	urls += "?" + c.urlParams_.Encode()
  1674  	req, err := http.NewRequest("POST", urls, body)
  1675  	if err != nil {
  1676  		return nil, err
  1677  	}
  1678  	req.Header = reqHeaders
  1679  	googleapi.Expand(req.URL, map[string]string{
  1680  		"parent": c.parent,
  1681  	})
  1682  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1683  }
  1684  
  1685  // Do executes the "servicebroker.projects.brokers.create" call.
  1686  // Exactly one of *GoogleCloudServicebrokerV1beta1__Broker or error will
  1687  // be non-nil. Any non-2xx status code is an error. Response headers are
  1688  // in either
  1689  // *GoogleCloudServicebrokerV1beta1__Broker.ServerResponse.Header or (if
  1690  // a response was returned at all) in error.(*googleapi.Error).Header.
  1691  // Use googleapi.IsNotModified to check whether the returned error was
  1692  // because http.StatusNotModified was returned.
  1693  func (c *ProjectsBrokersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__Broker, error) {
  1694  	gensupport.SetOptions(c.urlParams_, opts...)
  1695  	res, err := c.doRequest("json")
  1696  	if res != nil && res.StatusCode == http.StatusNotModified {
  1697  		if res.Body != nil {
  1698  			res.Body.Close()
  1699  		}
  1700  		return nil, &googleapi.Error{
  1701  			Code:   res.StatusCode,
  1702  			Header: res.Header,
  1703  		}
  1704  	}
  1705  	if err != nil {
  1706  		return nil, err
  1707  	}
  1708  	defer googleapi.CloseBody(res)
  1709  	if err := googleapi.CheckResponse(res); err != nil {
  1710  		return nil, err
  1711  	}
  1712  	ret := &GoogleCloudServicebrokerV1beta1__Broker{
  1713  		ServerResponse: googleapi.ServerResponse{
  1714  			Header:         res.Header,
  1715  			HTTPStatusCode: res.StatusCode,
  1716  		},
  1717  	}
  1718  	target := &ret
  1719  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1720  		return nil, err
  1721  	}
  1722  	return ret, nil
  1723  	// {
  1724  	//   "description": "CreateBroker creates a Broker.",
  1725  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers",
  1726  	//   "httpMethod": "POST",
  1727  	//   "id": "servicebroker.projects.brokers.create",
  1728  	//   "parameterOrder": [
  1729  	//     "parent"
  1730  	//   ],
  1731  	//   "parameters": {
  1732  	//     "parent": {
  1733  	//       "description": "The project in which to create broker.",
  1734  	//       "location": "path",
  1735  	//       "pattern": "^projects/[^/]+$",
  1736  	//       "required": true,
  1737  	//       "type": "string"
  1738  	//     }
  1739  	//   },
  1740  	//   "path": "v1beta1/{+parent}/brokers",
  1741  	//   "request": {
  1742  	//     "$ref": "GoogleCloudServicebrokerV1beta1__Broker"
  1743  	//   },
  1744  	//   "response": {
  1745  	//     "$ref": "GoogleCloudServicebrokerV1beta1__Broker"
  1746  	//   },
  1747  	//   "scopes": [
  1748  	//     "https://www.googleapis.com/auth/cloud-platform"
  1749  	//   ]
  1750  	// }
  1751  
  1752  }
  1753  
  1754  // method id "servicebroker.projects.brokers.delete":
  1755  
  1756  type ProjectsBrokersDeleteCall struct {
  1757  	s          *Service
  1758  	name       string
  1759  	urlParams_ gensupport.URLParams
  1760  	ctx_       context.Context
  1761  	header_    http.Header
  1762  }
  1763  
  1764  // Delete: DeleteBroker deletes a Broker.
  1765  func (r *ProjectsBrokersService) Delete(name string) *ProjectsBrokersDeleteCall {
  1766  	c := &ProjectsBrokersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1767  	c.name = name
  1768  	return c
  1769  }
  1770  
  1771  // Fields allows partial responses to be retrieved. See
  1772  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  1773  // for more information.
  1774  func (c *ProjectsBrokersDeleteCall) Fields(s ...googleapi.Field) *ProjectsBrokersDeleteCall {
  1775  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1776  	return c
  1777  }
  1778  
  1779  // Context sets the context to be used in this call's Do method. Any
  1780  // pending HTTP request will be aborted if the provided context is
  1781  // canceled.
  1782  func (c *ProjectsBrokersDeleteCall) Context(ctx context.Context) *ProjectsBrokersDeleteCall {
  1783  	c.ctx_ = ctx
  1784  	return c
  1785  }
  1786  
  1787  // Header returns an http.Header that can be modified by the caller to
  1788  // add HTTP headers to the request.
  1789  func (c *ProjectsBrokersDeleteCall) Header() http.Header {
  1790  	if c.header_ == nil {
  1791  		c.header_ = make(http.Header)
  1792  	}
  1793  	return c.header_
  1794  }
  1795  
  1796  func (c *ProjectsBrokersDeleteCall) doRequest(alt string) (*http.Response, error) {
  1797  	reqHeaders := make(http.Header)
  1798  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  1799  	for k, v := range c.header_ {
  1800  		reqHeaders[k] = v
  1801  	}
  1802  	reqHeaders.Set("User-Agent", c.s.userAgent())
  1803  	var body io.Reader = nil
  1804  	c.urlParams_.Set("alt", alt)
  1805  	c.urlParams_.Set("prettyPrint", "false")
  1806  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  1807  	urls += "?" + c.urlParams_.Encode()
  1808  	req, err := http.NewRequest("DELETE", urls, body)
  1809  	if err != nil {
  1810  		return nil, err
  1811  	}
  1812  	req.Header = reqHeaders
  1813  	googleapi.Expand(req.URL, map[string]string{
  1814  		"name": c.name,
  1815  	})
  1816  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1817  }
  1818  
  1819  // Do executes the "servicebroker.projects.brokers.delete" call.
  1820  // Exactly one of *GoogleProtobuf__Empty or error will be non-nil. Any
  1821  // non-2xx status code is an error. Response headers are in either
  1822  // *GoogleProtobuf__Empty.ServerResponse.Header or (if a response was
  1823  // returned at all) in error.(*googleapi.Error).Header. Use
  1824  // googleapi.IsNotModified to check whether the returned error was
  1825  // because http.StatusNotModified was returned.
  1826  func (c *ProjectsBrokersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf__Empty, error) {
  1827  	gensupport.SetOptions(c.urlParams_, opts...)
  1828  	res, err := c.doRequest("json")
  1829  	if res != nil && res.StatusCode == http.StatusNotModified {
  1830  		if res.Body != nil {
  1831  			res.Body.Close()
  1832  		}
  1833  		return nil, &googleapi.Error{
  1834  			Code:   res.StatusCode,
  1835  			Header: res.Header,
  1836  		}
  1837  	}
  1838  	if err != nil {
  1839  		return nil, err
  1840  	}
  1841  	defer googleapi.CloseBody(res)
  1842  	if err := googleapi.CheckResponse(res); err != nil {
  1843  		return nil, err
  1844  	}
  1845  	ret := &GoogleProtobuf__Empty{
  1846  		ServerResponse: googleapi.ServerResponse{
  1847  			Header:         res.Header,
  1848  			HTTPStatusCode: res.StatusCode,
  1849  		},
  1850  	}
  1851  	target := &ret
  1852  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1853  		return nil, err
  1854  	}
  1855  	return ret, nil
  1856  	// {
  1857  	//   "description": "DeleteBroker deletes a Broker.",
  1858  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}",
  1859  	//   "httpMethod": "DELETE",
  1860  	//   "id": "servicebroker.projects.brokers.delete",
  1861  	//   "parameterOrder": [
  1862  	//     "name"
  1863  	//   ],
  1864  	//   "parameters": {
  1865  	//     "name": {
  1866  	//       "description": "The broker to delete.",
  1867  	//       "location": "path",
  1868  	//       "pattern": "^projects/[^/]+/brokers/[^/]+$",
  1869  	//       "required": true,
  1870  	//       "type": "string"
  1871  	//     }
  1872  	//   },
  1873  	//   "path": "v1beta1/{+name}",
  1874  	//   "response": {
  1875  	//     "$ref": "GoogleProtobuf__Empty"
  1876  	//   },
  1877  	//   "scopes": [
  1878  	//     "https://www.googleapis.com/auth/cloud-platform"
  1879  	//   ]
  1880  	// }
  1881  
  1882  }
  1883  
  1884  // method id "servicebroker.projects.brokers.list":
  1885  
  1886  type ProjectsBrokersListCall struct {
  1887  	s            *Service
  1888  	parent       string
  1889  	urlParams_   gensupport.URLParams
  1890  	ifNoneMatch_ string
  1891  	ctx_         context.Context
  1892  	header_      http.Header
  1893  }
  1894  
  1895  // List: ListBrokers lists brokers.
  1896  func (r *ProjectsBrokersService) List(parent string) *ProjectsBrokersListCall {
  1897  	c := &ProjectsBrokersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1898  	c.parent = parent
  1899  	return c
  1900  }
  1901  
  1902  // PageSize sets the optional parameter "pageSize": Specifies the number
  1903  // of results to return per page. If there are fewer
  1904  // elements than the specified number, returns all elements.
  1905  //
  1906  //	Acceptable values are 0 to 200, inclusive. (Default: 100)
  1907  func (c *ProjectsBrokersListCall) PageSize(pageSize int64) *ProjectsBrokersListCall {
  1908  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  1909  	return c
  1910  }
  1911  
  1912  // PageToken sets the optional parameter "pageToken": Specifies a page
  1913  // token to use. Set `pageToken` to a `nextPageToken`
  1914  // returned by a previous list request to get the next page of results.
  1915  func (c *ProjectsBrokersListCall) PageToken(pageToken string) *ProjectsBrokersListCall {
  1916  	c.urlParams_.Set("pageToken", pageToken)
  1917  	return c
  1918  }
  1919  
  1920  // Fields allows partial responses to be retrieved. See
  1921  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  1922  // for more information.
  1923  func (c *ProjectsBrokersListCall) Fields(s ...googleapi.Field) *ProjectsBrokersListCall {
  1924  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1925  	return c
  1926  }
  1927  
  1928  // IfNoneMatch sets the optional parameter which makes the operation
  1929  // fail if the object's ETag matches the given value. This is useful for
  1930  // getting updates only after the object has changed since the last
  1931  // request. Use googleapi.IsNotModified to check whether the response
  1932  // error from Do is the result of In-None-Match.
  1933  func (c *ProjectsBrokersListCall) IfNoneMatch(entityTag string) *ProjectsBrokersListCall {
  1934  	c.ifNoneMatch_ = entityTag
  1935  	return c
  1936  }
  1937  
  1938  // Context sets the context to be used in this call's Do method. Any
  1939  // pending HTTP request will be aborted if the provided context is
  1940  // canceled.
  1941  func (c *ProjectsBrokersListCall) Context(ctx context.Context) *ProjectsBrokersListCall {
  1942  	c.ctx_ = ctx
  1943  	return c
  1944  }
  1945  
  1946  // Header returns an http.Header that can be modified by the caller to
  1947  // add HTTP headers to the request.
  1948  func (c *ProjectsBrokersListCall) Header() http.Header {
  1949  	if c.header_ == nil {
  1950  		c.header_ = make(http.Header)
  1951  	}
  1952  	return c.header_
  1953  }
  1954  
  1955  func (c *ProjectsBrokersListCall) doRequest(alt string) (*http.Response, error) {
  1956  	reqHeaders := make(http.Header)
  1957  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  1958  	for k, v := range c.header_ {
  1959  		reqHeaders[k] = v
  1960  	}
  1961  	reqHeaders.Set("User-Agent", c.s.userAgent())
  1962  	if c.ifNoneMatch_ != "" {
  1963  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1964  	}
  1965  	var body io.Reader = nil
  1966  	c.urlParams_.Set("alt", alt)
  1967  	c.urlParams_.Set("prettyPrint", "false")
  1968  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/brokers")
  1969  	urls += "?" + c.urlParams_.Encode()
  1970  	req, err := http.NewRequest("GET", urls, body)
  1971  	if err != nil {
  1972  		return nil, err
  1973  	}
  1974  	req.Header = reqHeaders
  1975  	googleapi.Expand(req.URL, map[string]string{
  1976  		"parent": c.parent,
  1977  	})
  1978  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1979  }
  1980  
  1981  // Do executes the "servicebroker.projects.brokers.list" call.
  1982  // Exactly one of *GoogleCloudServicebrokerV1beta1__ListBrokersResponse
  1983  // or error will be non-nil. Any non-2xx status code is an error.
  1984  // Response headers are in either
  1985  // *GoogleCloudServicebrokerV1beta1__ListBrokersResponse.ServerResponse.H
  1986  // eader or (if a response was returned at all) in
  1987  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  1988  // whether the returned error was because http.StatusNotModified was
  1989  // returned.
  1990  func (c *ProjectsBrokersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ListBrokersResponse, error) {
  1991  	gensupport.SetOptions(c.urlParams_, opts...)
  1992  	res, err := c.doRequest("json")
  1993  	if res != nil && res.StatusCode == http.StatusNotModified {
  1994  		if res.Body != nil {
  1995  			res.Body.Close()
  1996  		}
  1997  		return nil, &googleapi.Error{
  1998  			Code:   res.StatusCode,
  1999  			Header: res.Header,
  2000  		}
  2001  	}
  2002  	if err != nil {
  2003  		return nil, err
  2004  	}
  2005  	defer googleapi.CloseBody(res)
  2006  	if err := googleapi.CheckResponse(res); err != nil {
  2007  		return nil, err
  2008  	}
  2009  	ret := &GoogleCloudServicebrokerV1beta1__ListBrokersResponse{
  2010  		ServerResponse: googleapi.ServerResponse{
  2011  			Header:         res.Header,
  2012  			HTTPStatusCode: res.StatusCode,
  2013  		},
  2014  	}
  2015  	target := &ret
  2016  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2017  		return nil, err
  2018  	}
  2019  	return ret, nil
  2020  	// {
  2021  	//   "description": "ListBrokers lists brokers.",
  2022  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers",
  2023  	//   "httpMethod": "GET",
  2024  	//   "id": "servicebroker.projects.brokers.list",
  2025  	//   "parameterOrder": [
  2026  	//     "parent"
  2027  	//   ],
  2028  	//   "parameters": {
  2029  	//     "pageSize": {
  2030  	//       "description": "Specifies the number of results to return per page. If there are fewer\nelements than the specified number, returns all elements.\nOptional. Acceptable values are 0 to 200, inclusive. (Default: 100)",
  2031  	//       "format": "int32",
  2032  	//       "location": "query",
  2033  	//       "type": "integer"
  2034  	//     },
  2035  	//     "pageToken": {
  2036  	//       "description": "Specifies a page token to use. Set `pageToken` to a `nextPageToken`\nreturned by a previous list request to get the next page of results.",
  2037  	//       "location": "query",
  2038  	//       "type": "string"
  2039  	//     },
  2040  	//     "parent": {
  2041  	//       "description": "Parent must match `projects/[PROJECT_ID]/brokers`.",
  2042  	//       "location": "path",
  2043  	//       "pattern": "^projects/[^/]+$",
  2044  	//       "required": true,
  2045  	//       "type": "string"
  2046  	//     }
  2047  	//   },
  2048  	//   "path": "v1beta1/{+parent}/brokers",
  2049  	//   "response": {
  2050  	//     "$ref": "GoogleCloudServicebrokerV1beta1__ListBrokersResponse"
  2051  	//   },
  2052  	//   "scopes": [
  2053  	//     "https://www.googleapis.com/auth/cloud-platform"
  2054  	//   ]
  2055  	// }
  2056  
  2057  }
  2058  
  2059  // Pages invokes f for each page of results.
  2060  // A non-nil error returned from f will halt the iteration.
  2061  // The provided context supersedes any context provided to the Context method.
  2062  func (c *ProjectsBrokersListCall) Pages(ctx context.Context, f func(*GoogleCloudServicebrokerV1beta1__ListBrokersResponse) error) error {
  2063  	c.ctx_ = ctx
  2064  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  2065  	for {
  2066  		x, err := c.Do()
  2067  		if err != nil {
  2068  			return err
  2069  		}
  2070  		if err := f(x); err != nil {
  2071  			return err
  2072  		}
  2073  		if x.NextPageToken == "" {
  2074  			return nil
  2075  		}
  2076  		c.PageToken(x.NextPageToken)
  2077  	}
  2078  }
  2079  
  2080  // method id "servicebroker.projects.brokers.instances.get":
  2081  
  2082  type ProjectsBrokersInstancesGetCall struct {
  2083  	s            *Service
  2084  	name         string
  2085  	urlParams_   gensupport.URLParams
  2086  	ifNoneMatch_ string
  2087  	ctx_         context.Context
  2088  	header_      http.Header
  2089  }
  2090  
  2091  // Get: Gets the given service instance from the system.
  2092  // The API call accepts both OSB style API and standard google style
  2093  // API
  2094  // resource path.
  2095  // i.e. both `projects/*/brokers/*/instances/*`
  2096  //
  2097  //	and `projects/*/brokers/*/v2/service_instances/*` are acceptable
  2098  //
  2099  // paths.
  2100  func (r *ProjectsBrokersInstancesService) Get(name string) *ProjectsBrokersInstancesGetCall {
  2101  	c := &ProjectsBrokersInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2102  	c.name = name
  2103  	return c
  2104  }
  2105  
  2106  // Fields allows partial responses to be retrieved. See
  2107  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2108  // for more information.
  2109  func (c *ProjectsBrokersInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesGetCall {
  2110  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2111  	return c
  2112  }
  2113  
  2114  // IfNoneMatch sets the optional parameter which makes the operation
  2115  // fail if the object's ETag matches the given value. This is useful for
  2116  // getting updates only after the object has changed since the last
  2117  // request. Use googleapi.IsNotModified to check whether the response
  2118  // error from Do is the result of In-None-Match.
  2119  func (c *ProjectsBrokersInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesGetCall {
  2120  	c.ifNoneMatch_ = entityTag
  2121  	return c
  2122  }
  2123  
  2124  // Context sets the context to be used in this call's Do method. Any
  2125  // pending HTTP request will be aborted if the provided context is
  2126  // canceled.
  2127  func (c *ProjectsBrokersInstancesGetCall) Context(ctx context.Context) *ProjectsBrokersInstancesGetCall {
  2128  	c.ctx_ = ctx
  2129  	return c
  2130  }
  2131  
  2132  // Header returns an http.Header that can be modified by the caller to
  2133  // add HTTP headers to the request.
  2134  func (c *ProjectsBrokersInstancesGetCall) Header() http.Header {
  2135  	if c.header_ == nil {
  2136  		c.header_ = make(http.Header)
  2137  	}
  2138  	return c.header_
  2139  }
  2140  
  2141  func (c *ProjectsBrokersInstancesGetCall) doRequest(alt string) (*http.Response, error) {
  2142  	reqHeaders := make(http.Header)
  2143  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  2144  	for k, v := range c.header_ {
  2145  		reqHeaders[k] = v
  2146  	}
  2147  	reqHeaders.Set("User-Agent", c.s.userAgent())
  2148  	if c.ifNoneMatch_ != "" {
  2149  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2150  	}
  2151  	var body io.Reader = nil
  2152  	c.urlParams_.Set("alt", alt)
  2153  	c.urlParams_.Set("prettyPrint", "false")
  2154  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  2155  	urls += "?" + c.urlParams_.Encode()
  2156  	req, err := http.NewRequest("GET", urls, body)
  2157  	if err != nil {
  2158  		return nil, err
  2159  	}
  2160  	req.Header = reqHeaders
  2161  	googleapi.Expand(req.URL, map[string]string{
  2162  		"name": c.name,
  2163  	})
  2164  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2165  }
  2166  
  2167  // Do executes the "servicebroker.projects.brokers.instances.get" call.
  2168  // Exactly one of *GoogleCloudServicebrokerV1beta1__ServiceInstance or
  2169  // error will be non-nil. Any non-2xx status code is an error. Response
  2170  // headers are in either
  2171  // *GoogleCloudServicebrokerV1beta1__ServiceInstance.ServerResponse.Heade
  2172  // r or (if a response was returned at all) in
  2173  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2174  // whether the returned error was because http.StatusNotModified was
  2175  // returned.
  2176  func (c *ProjectsBrokersInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ServiceInstance, error) {
  2177  	gensupport.SetOptions(c.urlParams_, opts...)
  2178  	res, err := c.doRequest("json")
  2179  	if res != nil && res.StatusCode == http.StatusNotModified {
  2180  		if res.Body != nil {
  2181  			res.Body.Close()
  2182  		}
  2183  		return nil, &googleapi.Error{
  2184  			Code:   res.StatusCode,
  2185  			Header: res.Header,
  2186  		}
  2187  	}
  2188  	if err != nil {
  2189  		return nil, err
  2190  	}
  2191  	defer googleapi.CloseBody(res)
  2192  	if err := googleapi.CheckResponse(res); err != nil {
  2193  		return nil, err
  2194  	}
  2195  	ret := &GoogleCloudServicebrokerV1beta1__ServiceInstance{
  2196  		ServerResponse: googleapi.ServerResponse{
  2197  			Header:         res.Header,
  2198  			HTTPStatusCode: res.StatusCode,
  2199  		},
  2200  	}
  2201  	target := &ret
  2202  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2203  		return nil, err
  2204  	}
  2205  	return ret, nil
  2206  	// {
  2207  	//   "description": "Gets the given service instance from the system.\nThe API call accepts both OSB style API and standard google style API\nresource path.\ni.e. both `projects/*/brokers/*/instances/*`\n and `projects/*/brokers/*/v2/service_instances/*` are acceptable paths.",
  2208  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/instances/{instancesId}",
  2209  	//   "httpMethod": "GET",
  2210  	//   "id": "servicebroker.projects.brokers.instances.get",
  2211  	//   "parameterOrder": [
  2212  	//     "name"
  2213  	//   ],
  2214  	//   "parameters": {
  2215  	//     "name": {
  2216  	//       "description": "The resource name of the instance to return.\nName must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +\n`v2/service_instances/[INSTANCE_ID]`\nor\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.",
  2217  	//       "location": "path",
  2218  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/instances/[^/]+$",
  2219  	//       "required": true,
  2220  	//       "type": "string"
  2221  	//     }
  2222  	//   },
  2223  	//   "path": "v1beta1/{+name}",
  2224  	//   "response": {
  2225  	//     "$ref": "GoogleCloudServicebrokerV1beta1__ServiceInstance"
  2226  	//   },
  2227  	//   "scopes": [
  2228  	//     "https://www.googleapis.com/auth/cloud-platform"
  2229  	//   ]
  2230  	// }
  2231  
  2232  }
  2233  
  2234  // method id "servicebroker.projects.brokers.instances.getLast_operation":
  2235  
  2236  type ProjectsBrokersInstancesGetLastOperationCall struct {
  2237  	s            *Service
  2238  	name         string
  2239  	urlParams_   gensupport.URLParams
  2240  	ifNoneMatch_ string
  2241  	ctx_         context.Context
  2242  	header_      http.Header
  2243  }
  2244  
  2245  // GetLastOperation: Returns the state of the last operation for the
  2246  // service instance.
  2247  // Only last (or current) operation can be polled.
  2248  func (r *ProjectsBrokersInstancesService) GetLastOperation(name string) *ProjectsBrokersInstancesGetLastOperationCall {
  2249  	c := &ProjectsBrokersInstancesGetLastOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2250  	c.name = name
  2251  	return c
  2252  }
  2253  
  2254  // Operation sets the optional parameter "operation": If `operation` was
  2255  // returned during mutation operation, this field must be
  2256  // populated with the provided value.
  2257  func (c *ProjectsBrokersInstancesGetLastOperationCall) Operation(operation string) *ProjectsBrokersInstancesGetLastOperationCall {
  2258  	c.urlParams_.Set("operation", operation)
  2259  	return c
  2260  }
  2261  
  2262  // PlanId sets the optional parameter "planId": Plan id.
  2263  func (c *ProjectsBrokersInstancesGetLastOperationCall) PlanId(planId string) *ProjectsBrokersInstancesGetLastOperationCall {
  2264  	c.urlParams_.Set("planId", planId)
  2265  	return c
  2266  }
  2267  
  2268  // ServiceId sets the optional parameter "serviceId": Service id.
  2269  func (c *ProjectsBrokersInstancesGetLastOperationCall) ServiceId(serviceId string) *ProjectsBrokersInstancesGetLastOperationCall {
  2270  	c.urlParams_.Set("serviceId", serviceId)
  2271  	return c
  2272  }
  2273  
  2274  // Fields allows partial responses to be retrieved. See
  2275  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2276  // for more information.
  2277  func (c *ProjectsBrokersInstancesGetLastOperationCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesGetLastOperationCall {
  2278  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2279  	return c
  2280  }
  2281  
  2282  // IfNoneMatch sets the optional parameter which makes the operation
  2283  // fail if the object's ETag matches the given value. This is useful for
  2284  // getting updates only after the object has changed since the last
  2285  // request. Use googleapi.IsNotModified to check whether the response
  2286  // error from Do is the result of In-None-Match.
  2287  func (c *ProjectsBrokersInstancesGetLastOperationCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesGetLastOperationCall {
  2288  	c.ifNoneMatch_ = entityTag
  2289  	return c
  2290  }
  2291  
  2292  // Context sets the context to be used in this call's Do method. Any
  2293  // pending HTTP request will be aborted if the provided context is
  2294  // canceled.
  2295  func (c *ProjectsBrokersInstancesGetLastOperationCall) Context(ctx context.Context) *ProjectsBrokersInstancesGetLastOperationCall {
  2296  	c.ctx_ = ctx
  2297  	return c
  2298  }
  2299  
  2300  // Header returns an http.Header that can be modified by the caller to
  2301  // add HTTP headers to the request.
  2302  func (c *ProjectsBrokersInstancesGetLastOperationCall) Header() http.Header {
  2303  	if c.header_ == nil {
  2304  		c.header_ = make(http.Header)
  2305  	}
  2306  	return c.header_
  2307  }
  2308  
  2309  func (c *ProjectsBrokersInstancesGetLastOperationCall) doRequest(alt string) (*http.Response, error) {
  2310  	reqHeaders := make(http.Header)
  2311  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  2312  	for k, v := range c.header_ {
  2313  		reqHeaders[k] = v
  2314  	}
  2315  	reqHeaders.Set("User-Agent", c.s.userAgent())
  2316  	if c.ifNoneMatch_ != "" {
  2317  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2318  	}
  2319  	var body io.Reader = nil
  2320  	c.urlParams_.Set("alt", alt)
  2321  	c.urlParams_.Set("prettyPrint", "false")
  2322  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/last_operation")
  2323  	urls += "?" + c.urlParams_.Encode()
  2324  	req, err := http.NewRequest("GET", urls, body)
  2325  	if err != nil {
  2326  		return nil, err
  2327  	}
  2328  	req.Header = reqHeaders
  2329  	googleapi.Expand(req.URL, map[string]string{
  2330  		"name": c.name,
  2331  	})
  2332  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2333  }
  2334  
  2335  // Do executes the "servicebroker.projects.brokers.instances.getLast_operation" call.
  2336  // Exactly one of *GoogleCloudServicebrokerV1beta1__Operation or error
  2337  // will be non-nil. Any non-2xx status code is an error. Response
  2338  // headers are in either
  2339  // *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or
  2340  // (if a response was returned at all) in
  2341  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2342  // whether the returned error was because http.StatusNotModified was
  2343  // returned.
  2344  func (c *ProjectsBrokersInstancesGetLastOperationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__Operation, error) {
  2345  	gensupport.SetOptions(c.urlParams_, opts...)
  2346  	res, err := c.doRequest("json")
  2347  	if res != nil && res.StatusCode == http.StatusNotModified {
  2348  		if res.Body != nil {
  2349  			res.Body.Close()
  2350  		}
  2351  		return nil, &googleapi.Error{
  2352  			Code:   res.StatusCode,
  2353  			Header: res.Header,
  2354  		}
  2355  	}
  2356  	if err != nil {
  2357  		return nil, err
  2358  	}
  2359  	defer googleapi.CloseBody(res)
  2360  	if err := googleapi.CheckResponse(res); err != nil {
  2361  		return nil, err
  2362  	}
  2363  	ret := &GoogleCloudServicebrokerV1beta1__Operation{
  2364  		ServerResponse: googleapi.ServerResponse{
  2365  			Header:         res.Header,
  2366  			HTTPStatusCode: res.StatusCode,
  2367  		},
  2368  	}
  2369  	target := &ret
  2370  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2371  		return nil, err
  2372  	}
  2373  	return ret, nil
  2374  	// {
  2375  	//   "description": "Returns the state of the last operation for the service instance.\nOnly last (or current) operation can be polled.",
  2376  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/instances/{instancesId}/last_operation",
  2377  	//   "httpMethod": "GET",
  2378  	//   "id": "servicebroker.projects.brokers.instances.getLast_operation",
  2379  	//   "parameterOrder": [
  2380  	//     "name"
  2381  	//   ],
  2382  	//   "parameters": {
  2383  	//     "name": {
  2384  	//       "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+\n   `service_instances/[INSTANCE_ID]`.",
  2385  	//       "location": "path",
  2386  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/instances/[^/]+$",
  2387  	//       "required": true,
  2388  	//       "type": "string"
  2389  	//     },
  2390  	//     "operation": {
  2391  	//       "description": "If `operation` was returned during mutation operation, this field must be\npopulated with the provided value.",
  2392  	//       "location": "query",
  2393  	//       "type": "string"
  2394  	//     },
  2395  	//     "planId": {
  2396  	//       "description": "Plan id.",
  2397  	//       "location": "query",
  2398  	//       "type": "string"
  2399  	//     },
  2400  	//     "serviceId": {
  2401  	//       "description": "Service id.",
  2402  	//       "location": "query",
  2403  	//       "type": "string"
  2404  	//     }
  2405  	//   },
  2406  	//   "path": "v1beta1/{+name}/last_operation",
  2407  	//   "response": {
  2408  	//     "$ref": "GoogleCloudServicebrokerV1beta1__Operation"
  2409  	//   },
  2410  	//   "scopes": [
  2411  	//     "https://www.googleapis.com/auth/cloud-platform"
  2412  	//   ]
  2413  	// }
  2414  
  2415  }
  2416  
  2417  // method id "servicebroker.projects.brokers.instances.list":
  2418  
  2419  type ProjectsBrokersInstancesListCall struct {
  2420  	s            *Service
  2421  	parent       string
  2422  	urlParams_   gensupport.URLParams
  2423  	ifNoneMatch_ string
  2424  	ctx_         context.Context
  2425  	header_      http.Header
  2426  }
  2427  
  2428  // List: Lists all the instances in the brokers
  2429  // This API is an extension and not part of the OSB spec.
  2430  // Hence the path is a standard Google API URL.
  2431  func (r *ProjectsBrokersInstancesService) List(parent string) *ProjectsBrokersInstancesListCall {
  2432  	c := &ProjectsBrokersInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2433  	c.parent = parent
  2434  	return c
  2435  }
  2436  
  2437  // PageSize sets the optional parameter "pageSize": Specifies the number
  2438  // of results to return per page. If there are fewer
  2439  // elements than the specified number, returns all elements.
  2440  //
  2441  //	Acceptable values are 0 to 200, inclusive. (Default: 100)
  2442  func (c *ProjectsBrokersInstancesListCall) PageSize(pageSize int64) *ProjectsBrokersInstancesListCall {
  2443  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2444  	return c
  2445  }
  2446  
  2447  // PageToken sets the optional parameter "pageToken": Specifies a page
  2448  // token to use. Set `pageToken` to a `nextPageToken`
  2449  // returned by a previous list request to get the next page of results.
  2450  func (c *ProjectsBrokersInstancesListCall) PageToken(pageToken string) *ProjectsBrokersInstancesListCall {
  2451  	c.urlParams_.Set("pageToken", pageToken)
  2452  	return c
  2453  }
  2454  
  2455  // Fields allows partial responses to be retrieved. See
  2456  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2457  // for more information.
  2458  func (c *ProjectsBrokersInstancesListCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesListCall {
  2459  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2460  	return c
  2461  }
  2462  
  2463  // IfNoneMatch sets the optional parameter which makes the operation
  2464  // fail if the object's ETag matches the given value. This is useful for
  2465  // getting updates only after the object has changed since the last
  2466  // request. Use googleapi.IsNotModified to check whether the response
  2467  // error from Do is the result of In-None-Match.
  2468  func (c *ProjectsBrokersInstancesListCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesListCall {
  2469  	c.ifNoneMatch_ = entityTag
  2470  	return c
  2471  }
  2472  
  2473  // Context sets the context to be used in this call's Do method. Any
  2474  // pending HTTP request will be aborted if the provided context is
  2475  // canceled.
  2476  func (c *ProjectsBrokersInstancesListCall) Context(ctx context.Context) *ProjectsBrokersInstancesListCall {
  2477  	c.ctx_ = ctx
  2478  	return c
  2479  }
  2480  
  2481  // Header returns an http.Header that can be modified by the caller to
  2482  // add HTTP headers to the request.
  2483  func (c *ProjectsBrokersInstancesListCall) Header() http.Header {
  2484  	if c.header_ == nil {
  2485  		c.header_ = make(http.Header)
  2486  	}
  2487  	return c.header_
  2488  }
  2489  
  2490  func (c *ProjectsBrokersInstancesListCall) doRequest(alt string) (*http.Response, error) {
  2491  	reqHeaders := make(http.Header)
  2492  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  2493  	for k, v := range c.header_ {
  2494  		reqHeaders[k] = v
  2495  	}
  2496  	reqHeaders.Set("User-Agent", c.s.userAgent())
  2497  	if c.ifNoneMatch_ != "" {
  2498  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2499  	}
  2500  	var body io.Reader = nil
  2501  	c.urlParams_.Set("alt", alt)
  2502  	c.urlParams_.Set("prettyPrint", "false")
  2503  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/instances")
  2504  	urls += "?" + c.urlParams_.Encode()
  2505  	req, err := http.NewRequest("GET", urls, body)
  2506  	if err != nil {
  2507  		return nil, err
  2508  	}
  2509  	req.Header = reqHeaders
  2510  	googleapi.Expand(req.URL, map[string]string{
  2511  		"parent": c.parent,
  2512  	})
  2513  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2514  }
  2515  
  2516  // Do executes the "servicebroker.projects.brokers.instances.list" call.
  2517  // Exactly one of
  2518  // *GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse or
  2519  // error will be non-nil. Any non-2xx status code is an error. Response
  2520  // headers are in either
  2521  // *GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse.ServerR
  2522  // esponse.Header or (if a response was returned at all) in
  2523  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2524  // whether the returned error was because http.StatusNotModified was
  2525  // returned.
  2526  func (c *ProjectsBrokersInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse, error) {
  2527  	gensupport.SetOptions(c.urlParams_, opts...)
  2528  	res, err := c.doRequest("json")
  2529  	if res != nil && res.StatusCode == http.StatusNotModified {
  2530  		if res.Body != nil {
  2531  			res.Body.Close()
  2532  		}
  2533  		return nil, &googleapi.Error{
  2534  			Code:   res.StatusCode,
  2535  			Header: res.Header,
  2536  		}
  2537  	}
  2538  	if err != nil {
  2539  		return nil, err
  2540  	}
  2541  	defer googleapi.CloseBody(res)
  2542  	if err := googleapi.CheckResponse(res); err != nil {
  2543  		return nil, err
  2544  	}
  2545  	ret := &GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse{
  2546  		ServerResponse: googleapi.ServerResponse{
  2547  			Header:         res.Header,
  2548  			HTTPStatusCode: res.StatusCode,
  2549  		},
  2550  	}
  2551  	target := &ret
  2552  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2553  		return nil, err
  2554  	}
  2555  	return ret, nil
  2556  	// {
  2557  	//   "description": "Lists all the instances in the brokers\nThis API is an extension and not part of the OSB spec.\nHence the path is a standard Google API URL.",
  2558  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/instances",
  2559  	//   "httpMethod": "GET",
  2560  	//   "id": "servicebroker.projects.brokers.instances.list",
  2561  	//   "parameterOrder": [
  2562  	//     "parent"
  2563  	//   ],
  2564  	//   "parameters": {
  2565  	//     "pageSize": {
  2566  	//       "description": "Specifies the number of results to return per page. If there are fewer\nelements than the specified number, returns all elements.\nOptional. Acceptable values are 0 to 200, inclusive. (Default: 100)",
  2567  	//       "format": "int32",
  2568  	//       "location": "query",
  2569  	//       "type": "integer"
  2570  	//     },
  2571  	//     "pageToken": {
  2572  	//       "description": "Specifies a page token to use. Set `pageToken` to a `nextPageToken`\nreturned by a previous list request to get the next page of results.",
  2573  	//       "location": "query",
  2574  	//       "type": "string"
  2575  	//     },
  2576  	//     "parent": {
  2577  	//       "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.",
  2578  	//       "location": "path",
  2579  	//       "pattern": "^projects/[^/]+/brokers/[^/]+$",
  2580  	//       "required": true,
  2581  	//       "type": "string"
  2582  	//     }
  2583  	//   },
  2584  	//   "path": "v1beta1/{+parent}/instances",
  2585  	//   "response": {
  2586  	//     "$ref": "GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse"
  2587  	//   },
  2588  	//   "scopes": [
  2589  	//     "https://www.googleapis.com/auth/cloud-platform"
  2590  	//   ]
  2591  	// }
  2592  
  2593  }
  2594  
  2595  // Pages invokes f for each page of results.
  2596  // A non-nil error returned from f will halt the iteration.
  2597  // The provided context supersedes any context provided to the Context method.
  2598  func (c *ProjectsBrokersInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse) error) error {
  2599  	c.ctx_ = ctx
  2600  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  2601  	for {
  2602  		x, err := c.Do()
  2603  		if err != nil {
  2604  			return err
  2605  		}
  2606  		if err := f(x); err != nil {
  2607  			return err
  2608  		}
  2609  		if x.NextPageToken == "" {
  2610  			return nil
  2611  		}
  2612  		c.PageToken(x.NextPageToken)
  2613  	}
  2614  }
  2615  
  2616  // method id "servicebroker.projects.brokers.instances.bindings.getLast_operation":
  2617  
  2618  type ProjectsBrokersInstancesBindingsGetLastOperationCall struct {
  2619  	s            *Service
  2620  	name         string
  2621  	urlParams_   gensupport.URLParams
  2622  	ifNoneMatch_ string
  2623  	ctx_         context.Context
  2624  	header_      http.Header
  2625  }
  2626  
  2627  // GetLastOperation: Returns the state of the last operation for the
  2628  // binding.
  2629  // Only last (or current) operation can be polled.
  2630  func (r *ProjectsBrokersInstancesBindingsService) GetLastOperation(name string) *ProjectsBrokersInstancesBindingsGetLastOperationCall {
  2631  	c := &ProjectsBrokersInstancesBindingsGetLastOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2632  	c.name = name
  2633  	return c
  2634  }
  2635  
  2636  // Operation sets the optional parameter "operation": If `operation` was
  2637  // returned during mutation operation, this field must be
  2638  // populated with the provided value.
  2639  func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Operation(operation string) *ProjectsBrokersInstancesBindingsGetLastOperationCall {
  2640  	c.urlParams_.Set("operation", operation)
  2641  	return c
  2642  }
  2643  
  2644  // PlanId sets the optional parameter "planId": Plan id.
  2645  func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) PlanId(planId string) *ProjectsBrokersInstancesBindingsGetLastOperationCall {
  2646  	c.urlParams_.Set("planId", planId)
  2647  	return c
  2648  }
  2649  
  2650  // ServiceId sets the optional parameter "serviceId": Service id.
  2651  func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) ServiceId(serviceId string) *ProjectsBrokersInstancesBindingsGetLastOperationCall {
  2652  	c.urlParams_.Set("serviceId", serviceId)
  2653  	return c
  2654  }
  2655  
  2656  // Fields allows partial responses to be retrieved. See
  2657  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2658  // for more information.
  2659  func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesBindingsGetLastOperationCall {
  2660  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2661  	return c
  2662  }
  2663  
  2664  // IfNoneMatch sets the optional parameter which makes the operation
  2665  // fail if the object's ETag matches the given value. This is useful for
  2666  // getting updates only after the object has changed since the last
  2667  // request. Use googleapi.IsNotModified to check whether the response
  2668  // error from Do is the result of In-None-Match.
  2669  func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesBindingsGetLastOperationCall {
  2670  	c.ifNoneMatch_ = entityTag
  2671  	return c
  2672  }
  2673  
  2674  // Context sets the context to be used in this call's Do method. Any
  2675  // pending HTTP request will be aborted if the provided context is
  2676  // canceled.
  2677  func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Context(ctx context.Context) *ProjectsBrokersInstancesBindingsGetLastOperationCall {
  2678  	c.ctx_ = ctx
  2679  	return c
  2680  }
  2681  
  2682  // Header returns an http.Header that can be modified by the caller to
  2683  // add HTTP headers to the request.
  2684  func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Header() http.Header {
  2685  	if c.header_ == nil {
  2686  		c.header_ = make(http.Header)
  2687  	}
  2688  	return c.header_
  2689  }
  2690  
  2691  func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) doRequest(alt string) (*http.Response, error) {
  2692  	reqHeaders := make(http.Header)
  2693  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  2694  	for k, v := range c.header_ {
  2695  		reqHeaders[k] = v
  2696  	}
  2697  	reqHeaders.Set("User-Agent", c.s.userAgent())
  2698  	if c.ifNoneMatch_ != "" {
  2699  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2700  	}
  2701  	var body io.Reader = nil
  2702  	c.urlParams_.Set("alt", alt)
  2703  	c.urlParams_.Set("prettyPrint", "false")
  2704  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/last_operation")
  2705  	urls += "?" + c.urlParams_.Encode()
  2706  	req, err := http.NewRequest("GET", urls, body)
  2707  	if err != nil {
  2708  		return nil, err
  2709  	}
  2710  	req.Header = reqHeaders
  2711  	googleapi.Expand(req.URL, map[string]string{
  2712  		"name": c.name,
  2713  	})
  2714  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2715  }
  2716  
  2717  // Do executes the "servicebroker.projects.brokers.instances.bindings.getLast_operation" call.
  2718  // Exactly one of *GoogleCloudServicebrokerV1beta1__Operation or error
  2719  // will be non-nil. Any non-2xx status code is an error. Response
  2720  // headers are in either
  2721  // *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or
  2722  // (if a response was returned at all) in
  2723  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2724  // whether the returned error was because http.StatusNotModified was
  2725  // returned.
  2726  func (c *ProjectsBrokersInstancesBindingsGetLastOperationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__Operation, error) {
  2727  	gensupport.SetOptions(c.urlParams_, opts...)
  2728  	res, err := c.doRequest("json")
  2729  	if res != nil && res.StatusCode == http.StatusNotModified {
  2730  		if res.Body != nil {
  2731  			res.Body.Close()
  2732  		}
  2733  		return nil, &googleapi.Error{
  2734  			Code:   res.StatusCode,
  2735  			Header: res.Header,
  2736  		}
  2737  	}
  2738  	if err != nil {
  2739  		return nil, err
  2740  	}
  2741  	defer googleapi.CloseBody(res)
  2742  	if err := googleapi.CheckResponse(res); err != nil {
  2743  		return nil, err
  2744  	}
  2745  	ret := &GoogleCloudServicebrokerV1beta1__Operation{
  2746  		ServerResponse: googleapi.ServerResponse{
  2747  			Header:         res.Header,
  2748  			HTTPStatusCode: res.StatusCode,
  2749  		},
  2750  	}
  2751  	target := &ret
  2752  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2753  		return nil, err
  2754  	}
  2755  	return ret, nil
  2756  	// {
  2757  	//   "description": "Returns the state of the last operation for the binding.\nOnly last (or current) operation can be polled.",
  2758  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/instances/{instancesId}/bindings/{bindingsId}/last_operation",
  2759  	//   "httpMethod": "GET",
  2760  	//   "id": "servicebroker.projects.brokers.instances.bindings.getLast_operation",
  2761  	//   "parameterOrder": [
  2762  	//     "name"
  2763  	//   ],
  2764  	//   "parameters": {
  2765  	//     "name": {
  2766  	//       "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_binding/[BINDING_ID]`.",
  2767  	//       "location": "path",
  2768  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/instances/[^/]+/bindings/[^/]+$",
  2769  	//       "required": true,
  2770  	//       "type": "string"
  2771  	//     },
  2772  	//     "operation": {
  2773  	//       "description": "If `operation` was returned during mutation operation, this field must be\npopulated with the provided value.",
  2774  	//       "location": "query",
  2775  	//       "type": "string"
  2776  	//     },
  2777  	//     "planId": {
  2778  	//       "description": "Plan id.",
  2779  	//       "location": "query",
  2780  	//       "type": "string"
  2781  	//     },
  2782  	//     "serviceId": {
  2783  	//       "description": "Service id.",
  2784  	//       "location": "query",
  2785  	//       "type": "string"
  2786  	//     }
  2787  	//   },
  2788  	//   "path": "v1beta1/{+name}/last_operation",
  2789  	//   "response": {
  2790  	//     "$ref": "GoogleCloudServicebrokerV1beta1__Operation"
  2791  	//   },
  2792  	//   "scopes": [
  2793  	//     "https://www.googleapis.com/auth/cloud-platform"
  2794  	//   ]
  2795  	// }
  2796  
  2797  }
  2798  
  2799  // method id "servicebroker.projects.brokers.instances.bindings.list":
  2800  
  2801  type ProjectsBrokersInstancesBindingsListCall struct {
  2802  	s            *Service
  2803  	parent       string
  2804  	urlParams_   gensupport.URLParams
  2805  	ifNoneMatch_ string
  2806  	ctx_         context.Context
  2807  	header_      http.Header
  2808  }
  2809  
  2810  // List: Lists all the bindings in the instance.
  2811  func (r *ProjectsBrokersInstancesBindingsService) List(parent string) *ProjectsBrokersInstancesBindingsListCall {
  2812  	c := &ProjectsBrokersInstancesBindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2813  	c.parent = parent
  2814  	return c
  2815  }
  2816  
  2817  // PageSize sets the optional parameter "pageSize": Specifies the number
  2818  // of results to return per page. If there are fewer
  2819  // elements than the specified number, returns all elements.
  2820  //
  2821  //	Acceptable values are 0 to 200, inclusive. (Default: 100)
  2822  func (c *ProjectsBrokersInstancesBindingsListCall) PageSize(pageSize int64) *ProjectsBrokersInstancesBindingsListCall {
  2823  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2824  	return c
  2825  }
  2826  
  2827  // PageToken sets the optional parameter "pageToken": Specifies a page
  2828  // token to use. Set `pageToken` to a `nextPageToken`
  2829  // returned by a previous list request to get the next page of results.
  2830  func (c *ProjectsBrokersInstancesBindingsListCall) PageToken(pageToken string) *ProjectsBrokersInstancesBindingsListCall {
  2831  	c.urlParams_.Set("pageToken", pageToken)
  2832  	return c
  2833  }
  2834  
  2835  // Fields allows partial responses to be retrieved. See
  2836  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2837  // for more information.
  2838  func (c *ProjectsBrokersInstancesBindingsListCall) Fields(s ...googleapi.Field) *ProjectsBrokersInstancesBindingsListCall {
  2839  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2840  	return c
  2841  }
  2842  
  2843  // IfNoneMatch sets the optional parameter which makes the operation
  2844  // fail if the object's ETag matches the given value. This is useful for
  2845  // getting updates only after the object has changed since the last
  2846  // request. Use googleapi.IsNotModified to check whether the response
  2847  // error from Do is the result of In-None-Match.
  2848  func (c *ProjectsBrokersInstancesBindingsListCall) IfNoneMatch(entityTag string) *ProjectsBrokersInstancesBindingsListCall {
  2849  	c.ifNoneMatch_ = entityTag
  2850  	return c
  2851  }
  2852  
  2853  // Context sets the context to be used in this call's Do method. Any
  2854  // pending HTTP request will be aborted if the provided context is
  2855  // canceled.
  2856  func (c *ProjectsBrokersInstancesBindingsListCall) Context(ctx context.Context) *ProjectsBrokersInstancesBindingsListCall {
  2857  	c.ctx_ = ctx
  2858  	return c
  2859  }
  2860  
  2861  // Header returns an http.Header that can be modified by the caller to
  2862  // add HTTP headers to the request.
  2863  func (c *ProjectsBrokersInstancesBindingsListCall) Header() http.Header {
  2864  	if c.header_ == nil {
  2865  		c.header_ = make(http.Header)
  2866  	}
  2867  	return c.header_
  2868  }
  2869  
  2870  func (c *ProjectsBrokersInstancesBindingsListCall) doRequest(alt string) (*http.Response, error) {
  2871  	reqHeaders := make(http.Header)
  2872  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  2873  	for k, v := range c.header_ {
  2874  		reqHeaders[k] = v
  2875  	}
  2876  	reqHeaders.Set("User-Agent", c.s.userAgent())
  2877  	if c.ifNoneMatch_ != "" {
  2878  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2879  	}
  2880  	var body io.Reader = nil
  2881  	c.urlParams_.Set("alt", alt)
  2882  	c.urlParams_.Set("prettyPrint", "false")
  2883  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/bindings")
  2884  	urls += "?" + c.urlParams_.Encode()
  2885  	req, err := http.NewRequest("GET", urls, body)
  2886  	if err != nil {
  2887  		return nil, err
  2888  	}
  2889  	req.Header = reqHeaders
  2890  	googleapi.Expand(req.URL, map[string]string{
  2891  		"parent": c.parent,
  2892  	})
  2893  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2894  }
  2895  
  2896  // Do executes the "servicebroker.projects.brokers.instances.bindings.list" call.
  2897  // Exactly one of *GoogleCloudServicebrokerV1beta1__ListBindingsResponse
  2898  // or error will be non-nil. Any non-2xx status code is an error.
  2899  // Response headers are in either
  2900  // *GoogleCloudServicebrokerV1beta1__ListBindingsResponse.ServerResponse.
  2901  // Header or (if a response was returned at all) in
  2902  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2903  // whether the returned error was because http.StatusNotModified was
  2904  // returned.
  2905  func (c *ProjectsBrokersInstancesBindingsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ListBindingsResponse, error) {
  2906  	gensupport.SetOptions(c.urlParams_, opts...)
  2907  	res, err := c.doRequest("json")
  2908  	if res != nil && res.StatusCode == http.StatusNotModified {
  2909  		if res.Body != nil {
  2910  			res.Body.Close()
  2911  		}
  2912  		return nil, &googleapi.Error{
  2913  			Code:   res.StatusCode,
  2914  			Header: res.Header,
  2915  		}
  2916  	}
  2917  	if err != nil {
  2918  		return nil, err
  2919  	}
  2920  	defer googleapi.CloseBody(res)
  2921  	if err := googleapi.CheckResponse(res); err != nil {
  2922  		return nil, err
  2923  	}
  2924  	ret := &GoogleCloudServicebrokerV1beta1__ListBindingsResponse{
  2925  		ServerResponse: googleapi.ServerResponse{
  2926  			Header:         res.Header,
  2927  			HTTPStatusCode: res.StatusCode,
  2928  		},
  2929  	}
  2930  	target := &ret
  2931  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2932  		return nil, err
  2933  	}
  2934  	return ret, nil
  2935  	// {
  2936  	//   "description": "Lists all the bindings in the instance.",
  2937  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/instances/{instancesId}/bindings",
  2938  	//   "httpMethod": "GET",
  2939  	//   "id": "servicebroker.projects.brokers.instances.bindings.list",
  2940  	//   "parameterOrder": [
  2941  	//     "parent"
  2942  	//   ],
  2943  	//   "parameters": {
  2944  	//     "pageSize": {
  2945  	//       "description": "Specifies the number of results to return per page. If there are fewer\nelements than the specified number, returns all elements.\nOptional. Acceptable values are 0 to 200, inclusive. (Default: 100)",
  2946  	//       "format": "int32",
  2947  	//       "location": "query",
  2948  	//       "type": "integer"
  2949  	//     },
  2950  	//     "pageToken": {
  2951  	//       "description": "Specifies a page token to use. Set `pageToken` to a `nextPageToken`\nreturned by a previous list request to get the next page of results.",
  2952  	//       "location": "query",
  2953  	//       "type": "string"
  2954  	//     },
  2955  	//     "parent": {
  2956  	//       "description": "Parent must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +\n`v2/service_instances/[INSTANCE_ID]`\nor\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.",
  2957  	//       "location": "path",
  2958  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/instances/[^/]+$",
  2959  	//       "required": true,
  2960  	//       "type": "string"
  2961  	//     }
  2962  	//   },
  2963  	//   "path": "v1beta1/{+parent}/bindings",
  2964  	//   "response": {
  2965  	//     "$ref": "GoogleCloudServicebrokerV1beta1__ListBindingsResponse"
  2966  	//   },
  2967  	//   "scopes": [
  2968  	//     "https://www.googleapis.com/auth/cloud-platform"
  2969  	//   ]
  2970  	// }
  2971  
  2972  }
  2973  
  2974  // Pages invokes f for each page of results.
  2975  // A non-nil error returned from f will halt the iteration.
  2976  // The provided context supersedes any context provided to the Context method.
  2977  func (c *ProjectsBrokersInstancesBindingsListCall) Pages(ctx context.Context, f func(*GoogleCloudServicebrokerV1beta1__ListBindingsResponse) error) error {
  2978  	c.ctx_ = ctx
  2979  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  2980  	for {
  2981  		x, err := c.Do()
  2982  		if err != nil {
  2983  			return err
  2984  		}
  2985  		if err := f(x); err != nil {
  2986  			return err
  2987  		}
  2988  		if x.NextPageToken == "" {
  2989  			return nil
  2990  		}
  2991  		c.PageToken(x.NextPageToken)
  2992  	}
  2993  }
  2994  
  2995  // method id "servicebroker.projects.brokers.v2.catalog.list":
  2996  
  2997  type ProjectsBrokersV2CatalogListCall struct {
  2998  	s            *Service
  2999  	parent       string
  3000  	urlParams_   gensupport.URLParams
  3001  	ifNoneMatch_ string
  3002  	ctx_         context.Context
  3003  	header_      http.Header
  3004  }
  3005  
  3006  // List: Lists all the Services registered with this broker for
  3007  // consumption for
  3008  // given service registry broker, which contains an set of
  3009  // services.
  3010  // Note, that Service producer API is separate from Broker API.
  3011  func (r *ProjectsBrokersV2CatalogService) List(parent string) *ProjectsBrokersV2CatalogListCall {
  3012  	c := &ProjectsBrokersV2CatalogListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3013  	c.parent = parent
  3014  	return c
  3015  }
  3016  
  3017  // PageSize sets the optional parameter "pageSize": Specifies the number
  3018  // of results to return per page. If there are fewer
  3019  // elements than the specified number, returns all elements.
  3020  //
  3021  //	If unset or 0, all the results will be returned.
  3022  func (c *ProjectsBrokersV2CatalogListCall) PageSize(pageSize int64) *ProjectsBrokersV2CatalogListCall {
  3023  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3024  	return c
  3025  }
  3026  
  3027  // PageToken sets the optional parameter "pageToken": Specifies a page
  3028  // token to use. Set `pageToken` to a `nextPageToken`
  3029  // returned by a previous list request to get the next page of results.
  3030  func (c *ProjectsBrokersV2CatalogListCall) PageToken(pageToken string) *ProjectsBrokersV2CatalogListCall {
  3031  	c.urlParams_.Set("pageToken", pageToken)
  3032  	return c
  3033  }
  3034  
  3035  // Fields allows partial responses to be retrieved. See
  3036  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3037  // for more information.
  3038  func (c *ProjectsBrokersV2CatalogListCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2CatalogListCall {
  3039  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3040  	return c
  3041  }
  3042  
  3043  // IfNoneMatch sets the optional parameter which makes the operation
  3044  // fail if the object's ETag matches the given value. This is useful for
  3045  // getting updates only after the object has changed since the last
  3046  // request. Use googleapi.IsNotModified to check whether the response
  3047  // error from Do is the result of In-None-Match.
  3048  func (c *ProjectsBrokersV2CatalogListCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2CatalogListCall {
  3049  	c.ifNoneMatch_ = entityTag
  3050  	return c
  3051  }
  3052  
  3053  // Context sets the context to be used in this call's Do method. Any
  3054  // pending HTTP request will be aborted if the provided context is
  3055  // canceled.
  3056  func (c *ProjectsBrokersV2CatalogListCall) Context(ctx context.Context) *ProjectsBrokersV2CatalogListCall {
  3057  	c.ctx_ = ctx
  3058  	return c
  3059  }
  3060  
  3061  // Header returns an http.Header that can be modified by the caller to
  3062  // add HTTP headers to the request.
  3063  func (c *ProjectsBrokersV2CatalogListCall) Header() http.Header {
  3064  	if c.header_ == nil {
  3065  		c.header_ = make(http.Header)
  3066  	}
  3067  	return c.header_
  3068  }
  3069  
  3070  func (c *ProjectsBrokersV2CatalogListCall) doRequest(alt string) (*http.Response, error) {
  3071  	reqHeaders := make(http.Header)
  3072  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  3073  	for k, v := range c.header_ {
  3074  		reqHeaders[k] = v
  3075  	}
  3076  	reqHeaders.Set("User-Agent", c.s.userAgent())
  3077  	if c.ifNoneMatch_ != "" {
  3078  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3079  	}
  3080  	var body io.Reader = nil
  3081  	c.urlParams_.Set("alt", alt)
  3082  	c.urlParams_.Set("prettyPrint", "false")
  3083  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/v2/catalog")
  3084  	urls += "?" + c.urlParams_.Encode()
  3085  	req, err := http.NewRequest("GET", urls, body)
  3086  	if err != nil {
  3087  		return nil, err
  3088  	}
  3089  	req.Header = reqHeaders
  3090  	googleapi.Expand(req.URL, map[string]string{
  3091  		"parent": c.parent,
  3092  	})
  3093  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3094  }
  3095  
  3096  // Do executes the "servicebroker.projects.brokers.v2.catalog.list" call.
  3097  // Exactly one of *GoogleCloudServicebrokerV1beta1__ListCatalogResponse
  3098  // or error will be non-nil. Any non-2xx status code is an error.
  3099  // Response headers are in either
  3100  // *GoogleCloudServicebrokerV1beta1__ListCatalogResponse.ServerResponse.H
  3101  // eader or (if a response was returned at all) in
  3102  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3103  // whether the returned error was because http.StatusNotModified was
  3104  // returned.
  3105  func (c *ProjectsBrokersV2CatalogListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ListCatalogResponse, error) {
  3106  	gensupport.SetOptions(c.urlParams_, opts...)
  3107  	res, err := c.doRequest("json")
  3108  	if res != nil && res.StatusCode == http.StatusNotModified {
  3109  		if res.Body != nil {
  3110  			res.Body.Close()
  3111  		}
  3112  		return nil, &googleapi.Error{
  3113  			Code:   res.StatusCode,
  3114  			Header: res.Header,
  3115  		}
  3116  	}
  3117  	if err != nil {
  3118  		return nil, err
  3119  	}
  3120  	defer googleapi.CloseBody(res)
  3121  	if err := googleapi.CheckResponse(res); err != nil {
  3122  		return nil, err
  3123  	}
  3124  	ret := &GoogleCloudServicebrokerV1beta1__ListCatalogResponse{
  3125  		ServerResponse: googleapi.ServerResponse{
  3126  			Header:         res.Header,
  3127  			HTTPStatusCode: res.StatusCode,
  3128  		},
  3129  	}
  3130  	target := &ret
  3131  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3132  		return nil, err
  3133  	}
  3134  	return ret, nil
  3135  	// {
  3136  	//   "description": "Lists all the Services registered with this broker for consumption for\ngiven service registry broker, which contains an set of services.\nNote, that Service producer API is separate from Broker API.",
  3137  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/catalog",
  3138  	//   "httpMethod": "GET",
  3139  	//   "id": "servicebroker.projects.brokers.v2.catalog.list",
  3140  	//   "parameterOrder": [
  3141  	//     "parent"
  3142  	//   ],
  3143  	//   "parameters": {
  3144  	//     "pageSize": {
  3145  	//       "description": "Specifies the number of results to return per page. If there are fewer\nelements than the specified number, returns all elements.\nOptional. If unset or 0, all the results will be returned.",
  3146  	//       "format": "int32",
  3147  	//       "location": "query",
  3148  	//       "type": "integer"
  3149  	//     },
  3150  	//     "pageToken": {
  3151  	//       "description": "Specifies a page token to use. Set `pageToken` to a `nextPageToken`\nreturned by a previous list request to get the next page of results.",
  3152  	//       "location": "query",
  3153  	//       "type": "string"
  3154  	//     },
  3155  	//     "parent": {
  3156  	//       "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.",
  3157  	//       "location": "path",
  3158  	//       "pattern": "^projects/[^/]+/brokers/[^/]+$",
  3159  	//       "required": true,
  3160  	//       "type": "string"
  3161  	//     }
  3162  	//   },
  3163  	//   "path": "v1beta1/{+parent}/v2/catalog",
  3164  	//   "response": {
  3165  	//     "$ref": "GoogleCloudServicebrokerV1beta1__ListCatalogResponse"
  3166  	//   },
  3167  	//   "scopes": [
  3168  	//     "https://www.googleapis.com/auth/cloud-platform"
  3169  	//   ]
  3170  	// }
  3171  
  3172  }
  3173  
  3174  // Pages invokes f for each page of results.
  3175  // A non-nil error returned from f will halt the iteration.
  3176  // The provided context supersedes any context provided to the Context method.
  3177  func (c *ProjectsBrokersV2CatalogListCall) Pages(ctx context.Context, f func(*GoogleCloudServicebrokerV1beta1__ListCatalogResponse) error) error {
  3178  	c.ctx_ = ctx
  3179  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  3180  	for {
  3181  		x, err := c.Do()
  3182  		if err != nil {
  3183  			return err
  3184  		}
  3185  		if err := f(x); err != nil {
  3186  			return err
  3187  		}
  3188  		if x.NextPageToken == "" {
  3189  			return nil
  3190  		}
  3191  		c.PageToken(x.NextPageToken)
  3192  	}
  3193  }
  3194  
  3195  // method id "servicebroker.projects.brokers.v2.service_instances.create":
  3196  
  3197  type ProjectsBrokersV2ServiceInstancesCreateCall struct {
  3198  	s                                                *Service
  3199  	parent                                           string
  3200  	instanceId                                       string
  3201  	googlecloudservicebrokerv1beta1__serviceinstance *GoogleCloudServicebrokerV1beta1__ServiceInstance
  3202  	urlParams_                                       gensupport.URLParams
  3203  	ctx_                                             context.Context
  3204  	header_                                          http.Header
  3205  }
  3206  
  3207  // Create: Provisions a service instance.
  3208  // If `request.accepts_incomplete` is false and Broker cannot execute
  3209  // request
  3210  // synchronously HTTP 422 error will be returned along
  3211  // with
  3212  // FAILED_PRECONDITION status.
  3213  // If `request.accepts_incomplete` is true and the Broker decides to
  3214  // execute
  3215  // resource asynchronously then HTTP 202 response code will be returned
  3216  // and a
  3217  // valid polling operation in the response will be included.
  3218  // If Broker executes the request synchronously and it succeeds HTTP
  3219  // 201
  3220  // response will be furnished.
  3221  // If identical instance exists, then HTTP 200 response will be
  3222  // returned.
  3223  // If an instance with identical ID but mismatching parameters exists,
  3224  // then
  3225  // HTTP 409 status code will be returned.
  3226  func (r *ProjectsBrokersV2ServiceInstancesService) Create(parent string, instanceId string, googlecloudservicebrokerv1beta1__serviceinstance *GoogleCloudServicebrokerV1beta1__ServiceInstance) *ProjectsBrokersV2ServiceInstancesCreateCall {
  3227  	c := &ProjectsBrokersV2ServiceInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3228  	c.parent = parent
  3229  	c.instanceId = instanceId
  3230  	c.googlecloudservicebrokerv1beta1__serviceinstance = googlecloudservicebrokerv1beta1__serviceinstance
  3231  	return c
  3232  }
  3233  
  3234  // AcceptsIncomplete sets the optional parameter "acceptsIncomplete":
  3235  // Value indicating that API client supports asynchronous operations.
  3236  // If
  3237  // Broker cannot execute the request synchronously HTTP 422 code will
  3238  // be
  3239  // returned to HTTP clients along with FAILED_PRECONDITION error.
  3240  // If true and broker will execute request asynchronously 202 HTTP code
  3241  // will
  3242  // be returned.
  3243  // This broker always requires this to be true as all mutator operations
  3244  // are
  3245  // asynchronous.
  3246  func (c *ProjectsBrokersV2ServiceInstancesCreateCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesCreateCall {
  3247  	c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete))
  3248  	return c
  3249  }
  3250  
  3251  // Fields allows partial responses to be retrieved. See
  3252  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3253  // for more information.
  3254  func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesCreateCall {
  3255  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3256  	return c
  3257  }
  3258  
  3259  // Context sets the context to be used in this call's Do method. Any
  3260  // pending HTTP request will be aborted if the provided context is
  3261  // canceled.
  3262  func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesCreateCall {
  3263  	c.ctx_ = ctx
  3264  	return c
  3265  }
  3266  
  3267  // Header returns an http.Header that can be modified by the caller to
  3268  // add HTTP headers to the request.
  3269  func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Header() http.Header {
  3270  	if c.header_ == nil {
  3271  		c.header_ = make(http.Header)
  3272  	}
  3273  	return c.header_
  3274  }
  3275  
  3276  func (c *ProjectsBrokersV2ServiceInstancesCreateCall) doRequest(alt string) (*http.Response, error) {
  3277  	reqHeaders := make(http.Header)
  3278  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  3279  	for k, v := range c.header_ {
  3280  		reqHeaders[k] = v
  3281  	}
  3282  	reqHeaders.Set("User-Agent", c.s.userAgent())
  3283  	var body io.Reader = nil
  3284  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudservicebrokerv1beta1__serviceinstance)
  3285  	if err != nil {
  3286  		return nil, err
  3287  	}
  3288  	reqHeaders.Set("Content-Type", "application/json")
  3289  	c.urlParams_.Set("alt", alt)
  3290  	c.urlParams_.Set("prettyPrint", "false")
  3291  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/v2/service_instances/{+instance_id}")
  3292  	urls += "?" + c.urlParams_.Encode()
  3293  	req, err := http.NewRequest("PUT", urls, body)
  3294  	if err != nil {
  3295  		return nil, err
  3296  	}
  3297  	req.Header = reqHeaders
  3298  	googleapi.Expand(req.URL, map[string]string{
  3299  		"parent":      c.parent,
  3300  		"instance_id": c.instanceId,
  3301  	})
  3302  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3303  }
  3304  
  3305  // Do executes the "servicebroker.projects.brokers.v2.service_instances.create" call.
  3306  // Exactly one of
  3307  // *GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse or
  3308  // error will be non-nil. Any non-2xx status code is an error. Response
  3309  // headers are in either
  3310  // *GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse.Server
  3311  // Response.Header or (if a response was returned at all) in
  3312  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3313  // whether the returned error was because http.StatusNotModified was
  3314  // returned.
  3315  func (c *ProjectsBrokersV2ServiceInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse, error) {
  3316  	gensupport.SetOptions(c.urlParams_, opts...)
  3317  	res, err := c.doRequest("json")
  3318  	if res != nil && res.StatusCode == http.StatusNotModified {
  3319  		if res.Body != nil {
  3320  			res.Body.Close()
  3321  		}
  3322  		return nil, &googleapi.Error{
  3323  			Code:   res.StatusCode,
  3324  			Header: res.Header,
  3325  		}
  3326  	}
  3327  	if err != nil {
  3328  		return nil, err
  3329  	}
  3330  	defer googleapi.CloseBody(res)
  3331  	if err := googleapi.CheckResponse(res); err != nil {
  3332  		return nil, err
  3333  	}
  3334  	ret := &GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse{
  3335  		ServerResponse: googleapi.ServerResponse{
  3336  			Header:         res.Header,
  3337  			HTTPStatusCode: res.StatusCode,
  3338  		},
  3339  	}
  3340  	target := &ret
  3341  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3342  		return nil, err
  3343  	}
  3344  	return ret, nil
  3345  	// {
  3346  	//   "description": "Provisions a service instance.\nIf `request.accepts_incomplete` is false and Broker cannot execute request\nsynchronously HTTP 422 error will be returned along with\nFAILED_PRECONDITION status.\nIf `request.accepts_incomplete` is true and the Broker decides to execute\nresource asynchronously then HTTP 202 response code will be returned and a\nvalid polling operation in the response will be included.\nIf Broker executes the request synchronously and it succeeds HTTP 201\nresponse will be furnished.\nIf identical instance exists, then HTTP 200 response will be returned.\nIf an instance with identical ID but mismatching parameters exists, then\nHTTP 409 status code will be returned.",
  3347  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}",
  3348  	//   "httpMethod": "PUT",
  3349  	//   "id": "servicebroker.projects.brokers.v2.service_instances.create",
  3350  	//   "parameterOrder": [
  3351  	//     "parent",
  3352  	//     "instance_id"
  3353  	//   ],
  3354  	//   "parameters": {
  3355  	//     "acceptsIncomplete": {
  3356  	//       "description": "Value indicating that API client supports asynchronous operations. If\nBroker cannot execute the request synchronously HTTP 422 code will be\nreturned to HTTP clients along with FAILED_PRECONDITION error.\nIf true and broker will execute request asynchronously 202 HTTP code will\nbe returned.\nThis broker always requires this to be true as all mutator operations are\nasynchronous.",
  3357  	//       "location": "query",
  3358  	//       "type": "boolean"
  3359  	//     },
  3360  	//     "instance_id": {
  3361  	//       "description": "The id of the service instance. Must be unique within GCP project.\nMaximum length is 64, GUID recommended.\nRequired.",
  3362  	//       "location": "path",
  3363  	//       "pattern": "^[^/]+$",
  3364  	//       "required": true,
  3365  	//       "type": "string"
  3366  	//     },
  3367  	//     "parent": {
  3368  	//       "description": "Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.",
  3369  	//       "location": "path",
  3370  	//       "pattern": "^projects/[^/]+/brokers/[^/]+$",
  3371  	//       "required": true,
  3372  	//       "type": "string"
  3373  	//     }
  3374  	//   },
  3375  	//   "path": "v1beta1/{+parent}/v2/service_instances/{+instance_id}",
  3376  	//   "request": {
  3377  	//     "$ref": "GoogleCloudServicebrokerV1beta1__ServiceInstance"
  3378  	//   },
  3379  	//   "response": {
  3380  	//     "$ref": "GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse"
  3381  	//   },
  3382  	//   "scopes": [
  3383  	//     "https://www.googleapis.com/auth/cloud-platform"
  3384  	//   ]
  3385  	// }
  3386  
  3387  }
  3388  
  3389  // method id "servicebroker.projects.brokers.v2.service_instances.delete":
  3390  
  3391  type ProjectsBrokersV2ServiceInstancesDeleteCall struct {
  3392  	s          *Service
  3393  	name       string
  3394  	urlParams_ gensupport.URLParams
  3395  	ctx_       context.Context
  3396  	header_    http.Header
  3397  }
  3398  
  3399  // Delete: Deprovisions a service instance.
  3400  // For synchronous/asynchronous request details see
  3401  // CreateServiceInstance
  3402  // method.
  3403  // If service instance does not exist HTTP 410 status will be returned.
  3404  func (r *ProjectsBrokersV2ServiceInstancesService) Delete(name string) *ProjectsBrokersV2ServiceInstancesDeleteCall {
  3405  	c := &ProjectsBrokersV2ServiceInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3406  	c.name = name
  3407  	return c
  3408  }
  3409  
  3410  // AcceptsIncomplete sets the optional parameter "acceptsIncomplete":
  3411  // See CreateServiceInstanceRequest for details.
  3412  func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesDeleteCall {
  3413  	c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete))
  3414  	return c
  3415  }
  3416  
  3417  // PlanId sets the optional parameter "planId": The plan id of the
  3418  // service instance.
  3419  func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) PlanId(planId string) *ProjectsBrokersV2ServiceInstancesDeleteCall {
  3420  	c.urlParams_.Set("planId", planId)
  3421  	return c
  3422  }
  3423  
  3424  // ServiceId sets the optional parameter "serviceId": The service id of
  3425  // the service instance.
  3426  func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) ServiceId(serviceId string) *ProjectsBrokersV2ServiceInstancesDeleteCall {
  3427  	c.urlParams_.Set("serviceId", serviceId)
  3428  	return c
  3429  }
  3430  
  3431  // Fields allows partial responses to be retrieved. See
  3432  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3433  // for more information.
  3434  func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesDeleteCall {
  3435  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3436  	return c
  3437  }
  3438  
  3439  // Context sets the context to be used in this call's Do method. Any
  3440  // pending HTTP request will be aborted if the provided context is
  3441  // canceled.
  3442  func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesDeleteCall {
  3443  	c.ctx_ = ctx
  3444  	return c
  3445  }
  3446  
  3447  // Header returns an http.Header that can be modified by the caller to
  3448  // add HTTP headers to the request.
  3449  func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Header() http.Header {
  3450  	if c.header_ == nil {
  3451  		c.header_ = make(http.Header)
  3452  	}
  3453  	return c.header_
  3454  }
  3455  
  3456  func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
  3457  	reqHeaders := make(http.Header)
  3458  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  3459  	for k, v := range c.header_ {
  3460  		reqHeaders[k] = v
  3461  	}
  3462  	reqHeaders.Set("User-Agent", c.s.userAgent())
  3463  	var body io.Reader = nil
  3464  	c.urlParams_.Set("alt", alt)
  3465  	c.urlParams_.Set("prettyPrint", "false")
  3466  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  3467  	urls += "?" + c.urlParams_.Encode()
  3468  	req, err := http.NewRequest("DELETE", urls, body)
  3469  	if err != nil {
  3470  		return nil, err
  3471  	}
  3472  	req.Header = reqHeaders
  3473  	googleapi.Expand(req.URL, map[string]string{
  3474  		"name": c.name,
  3475  	})
  3476  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3477  }
  3478  
  3479  // Do executes the "servicebroker.projects.brokers.v2.service_instances.delete" call.
  3480  // Exactly one of
  3481  // *GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse or
  3482  // error will be non-nil. Any non-2xx status code is an error. Response
  3483  // headers are in either
  3484  // *GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse.Server
  3485  // Response.Header or (if a response was returned at all) in
  3486  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3487  // whether the returned error was because http.StatusNotModified was
  3488  // returned.
  3489  func (c *ProjectsBrokersV2ServiceInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse, error) {
  3490  	gensupport.SetOptions(c.urlParams_, opts...)
  3491  	res, err := c.doRequest("json")
  3492  	if res != nil && res.StatusCode == http.StatusNotModified {
  3493  		if res.Body != nil {
  3494  			res.Body.Close()
  3495  		}
  3496  		return nil, &googleapi.Error{
  3497  			Code:   res.StatusCode,
  3498  			Header: res.Header,
  3499  		}
  3500  	}
  3501  	if err != nil {
  3502  		return nil, err
  3503  	}
  3504  	defer googleapi.CloseBody(res)
  3505  	if err := googleapi.CheckResponse(res); err != nil {
  3506  		return nil, err
  3507  	}
  3508  	ret := &GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse{
  3509  		ServerResponse: googleapi.ServerResponse{
  3510  			Header:         res.Header,
  3511  			HTTPStatusCode: res.StatusCode,
  3512  		},
  3513  	}
  3514  	target := &ret
  3515  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3516  		return nil, err
  3517  	}
  3518  	return ret, nil
  3519  	// {
  3520  	//   "description": "Deprovisions a service instance.\nFor synchronous/asynchronous request details see CreateServiceInstance\nmethod.\nIf service instance does not exist HTTP 410 status will be returned.",
  3521  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}",
  3522  	//   "httpMethod": "DELETE",
  3523  	//   "id": "servicebroker.projects.brokers.v2.service_instances.delete",
  3524  	//   "parameterOrder": [
  3525  	//     "name"
  3526  	//   ],
  3527  	//   "parameters": {
  3528  	//     "acceptsIncomplete": {
  3529  	//       "description": "See CreateServiceInstanceRequest for details.",
  3530  	//       "location": "query",
  3531  	//       "type": "boolean"
  3532  	//     },
  3533  	//     "name": {
  3534  	//       "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +\n`v2/service_instances/[INSTANCE_ID]`\nor\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.",
  3535  	//       "location": "path",
  3536  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+$",
  3537  	//       "required": true,
  3538  	//       "type": "string"
  3539  	//     },
  3540  	//     "planId": {
  3541  	//       "description": "The plan id of the service instance.",
  3542  	//       "location": "query",
  3543  	//       "type": "string"
  3544  	//     },
  3545  	//     "serviceId": {
  3546  	//       "description": "The service id of the service instance.",
  3547  	//       "location": "query",
  3548  	//       "type": "string"
  3549  	//     }
  3550  	//   },
  3551  	//   "path": "v1beta1/{+name}",
  3552  	//   "response": {
  3553  	//     "$ref": "GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse"
  3554  	//   },
  3555  	//   "scopes": [
  3556  	//     "https://www.googleapis.com/auth/cloud-platform"
  3557  	//   ]
  3558  	// }
  3559  
  3560  }
  3561  
  3562  // method id "servicebroker.projects.brokers.v2.service_instances.get":
  3563  
  3564  type ProjectsBrokersV2ServiceInstancesGetCall struct {
  3565  	s            *Service
  3566  	name         string
  3567  	urlParams_   gensupport.URLParams
  3568  	ifNoneMatch_ string
  3569  	ctx_         context.Context
  3570  	header_      http.Header
  3571  }
  3572  
  3573  // Get: Gets the given service instance from the system.
  3574  // The API call accepts both OSB style API and standard google style
  3575  // API
  3576  // resource path.
  3577  // i.e. both `projects/*/brokers/*/instances/*`
  3578  //
  3579  //	and `projects/*/brokers/*/v2/service_instances/*` are acceptable
  3580  //
  3581  // paths.
  3582  func (r *ProjectsBrokersV2ServiceInstancesService) Get(name string) *ProjectsBrokersV2ServiceInstancesGetCall {
  3583  	c := &ProjectsBrokersV2ServiceInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3584  	c.name = name
  3585  	return c
  3586  }
  3587  
  3588  // Fields allows partial responses to be retrieved. See
  3589  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3590  // for more information.
  3591  func (c *ProjectsBrokersV2ServiceInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesGetCall {
  3592  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3593  	return c
  3594  }
  3595  
  3596  // IfNoneMatch sets the optional parameter which makes the operation
  3597  // fail if the object's ETag matches the given value. This is useful for
  3598  // getting updates only after the object has changed since the last
  3599  // request. Use googleapi.IsNotModified to check whether the response
  3600  // error from Do is the result of In-None-Match.
  3601  func (c *ProjectsBrokersV2ServiceInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesGetCall {
  3602  	c.ifNoneMatch_ = entityTag
  3603  	return c
  3604  }
  3605  
  3606  // Context sets the context to be used in this call's Do method. Any
  3607  // pending HTTP request will be aborted if the provided context is
  3608  // canceled.
  3609  func (c *ProjectsBrokersV2ServiceInstancesGetCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesGetCall {
  3610  	c.ctx_ = ctx
  3611  	return c
  3612  }
  3613  
  3614  // Header returns an http.Header that can be modified by the caller to
  3615  // add HTTP headers to the request.
  3616  func (c *ProjectsBrokersV2ServiceInstancesGetCall) Header() http.Header {
  3617  	if c.header_ == nil {
  3618  		c.header_ = make(http.Header)
  3619  	}
  3620  	return c.header_
  3621  }
  3622  
  3623  func (c *ProjectsBrokersV2ServiceInstancesGetCall) doRequest(alt string) (*http.Response, error) {
  3624  	reqHeaders := make(http.Header)
  3625  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  3626  	for k, v := range c.header_ {
  3627  		reqHeaders[k] = v
  3628  	}
  3629  	reqHeaders.Set("User-Agent", c.s.userAgent())
  3630  	if c.ifNoneMatch_ != "" {
  3631  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3632  	}
  3633  	var body io.Reader = nil
  3634  	c.urlParams_.Set("alt", alt)
  3635  	c.urlParams_.Set("prettyPrint", "false")
  3636  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  3637  	urls += "?" + c.urlParams_.Encode()
  3638  	req, err := http.NewRequest("GET", urls, body)
  3639  	if err != nil {
  3640  		return nil, err
  3641  	}
  3642  	req.Header = reqHeaders
  3643  	googleapi.Expand(req.URL, map[string]string{
  3644  		"name": c.name,
  3645  	})
  3646  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3647  }
  3648  
  3649  // Do executes the "servicebroker.projects.brokers.v2.service_instances.get" call.
  3650  // Exactly one of *GoogleCloudServicebrokerV1beta1__ServiceInstance or
  3651  // error will be non-nil. Any non-2xx status code is an error. Response
  3652  // headers are in either
  3653  // *GoogleCloudServicebrokerV1beta1__ServiceInstance.ServerResponse.Heade
  3654  // r or (if a response was returned at all) in
  3655  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3656  // whether the returned error was because http.StatusNotModified was
  3657  // returned.
  3658  func (c *ProjectsBrokersV2ServiceInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__ServiceInstance, error) {
  3659  	gensupport.SetOptions(c.urlParams_, opts...)
  3660  	res, err := c.doRequest("json")
  3661  	if res != nil && res.StatusCode == http.StatusNotModified {
  3662  		if res.Body != nil {
  3663  			res.Body.Close()
  3664  		}
  3665  		return nil, &googleapi.Error{
  3666  			Code:   res.StatusCode,
  3667  			Header: res.Header,
  3668  		}
  3669  	}
  3670  	if err != nil {
  3671  		return nil, err
  3672  	}
  3673  	defer googleapi.CloseBody(res)
  3674  	if err := googleapi.CheckResponse(res); err != nil {
  3675  		return nil, err
  3676  	}
  3677  	ret := &GoogleCloudServicebrokerV1beta1__ServiceInstance{
  3678  		ServerResponse: googleapi.ServerResponse{
  3679  			Header:         res.Header,
  3680  			HTTPStatusCode: res.StatusCode,
  3681  		},
  3682  	}
  3683  	target := &ret
  3684  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3685  		return nil, err
  3686  	}
  3687  	return ret, nil
  3688  	// {
  3689  	//   "description": "Gets the given service instance from the system.\nThe API call accepts both OSB style API and standard google style API\nresource path.\ni.e. both `projects/*/brokers/*/instances/*`\n and `projects/*/brokers/*/v2/service_instances/*` are acceptable paths.",
  3690  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}",
  3691  	//   "httpMethod": "GET",
  3692  	//   "id": "servicebroker.projects.brokers.v2.service_instances.get",
  3693  	//   "parameterOrder": [
  3694  	//     "name"
  3695  	//   ],
  3696  	//   "parameters": {
  3697  	//     "name": {
  3698  	//       "description": "The resource name of the instance to return.\nName must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +\n`v2/service_instances/[INSTANCE_ID]`\nor\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.",
  3699  	//       "location": "path",
  3700  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+$",
  3701  	//       "required": true,
  3702  	//       "type": "string"
  3703  	//     }
  3704  	//   },
  3705  	//   "path": "v1beta1/{+name}",
  3706  	//   "response": {
  3707  	//     "$ref": "GoogleCloudServicebrokerV1beta1__ServiceInstance"
  3708  	//   },
  3709  	//   "scopes": [
  3710  	//     "https://www.googleapis.com/auth/cloud-platform"
  3711  	//   ]
  3712  	// }
  3713  
  3714  }
  3715  
  3716  // method id "servicebroker.projects.brokers.v2.service_instances.getLast_operation":
  3717  
  3718  type ProjectsBrokersV2ServiceInstancesGetLastOperationCall struct {
  3719  	s            *Service
  3720  	name         string
  3721  	urlParams_   gensupport.URLParams
  3722  	ifNoneMatch_ string
  3723  	ctx_         context.Context
  3724  	header_      http.Header
  3725  }
  3726  
  3727  // GetLastOperation: Returns the state of the last operation for the
  3728  // service instance.
  3729  // Only last (or current) operation can be polled.
  3730  func (r *ProjectsBrokersV2ServiceInstancesService) GetLastOperation(name string) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall {
  3731  	c := &ProjectsBrokersV2ServiceInstancesGetLastOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3732  	c.name = name
  3733  	return c
  3734  }
  3735  
  3736  // Operation sets the optional parameter "operation": If `operation` was
  3737  // returned during mutation operation, this field must be
  3738  // populated with the provided value.
  3739  func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Operation(operation string) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall {
  3740  	c.urlParams_.Set("operation", operation)
  3741  	return c
  3742  }
  3743  
  3744  // PlanId sets the optional parameter "planId": Plan id.
  3745  func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) PlanId(planId string) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall {
  3746  	c.urlParams_.Set("planId", planId)
  3747  	return c
  3748  }
  3749  
  3750  // ServiceId sets the optional parameter "serviceId": Service id.
  3751  func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) ServiceId(serviceId string) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall {
  3752  	c.urlParams_.Set("serviceId", serviceId)
  3753  	return c
  3754  }
  3755  
  3756  // Fields allows partial responses to be retrieved. See
  3757  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3758  // for more information.
  3759  func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall {
  3760  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3761  	return c
  3762  }
  3763  
  3764  // IfNoneMatch sets the optional parameter which makes the operation
  3765  // fail if the object's ETag matches the given value. This is useful for
  3766  // getting updates only after the object has changed since the last
  3767  // request. Use googleapi.IsNotModified to check whether the response
  3768  // error from Do is the result of In-None-Match.
  3769  func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall {
  3770  	c.ifNoneMatch_ = entityTag
  3771  	return c
  3772  }
  3773  
  3774  // Context sets the context to be used in this call's Do method. Any
  3775  // pending HTTP request will be aborted if the provided context is
  3776  // canceled.
  3777  func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesGetLastOperationCall {
  3778  	c.ctx_ = ctx
  3779  	return c
  3780  }
  3781  
  3782  // Header returns an http.Header that can be modified by the caller to
  3783  // add HTTP headers to the request.
  3784  func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Header() http.Header {
  3785  	if c.header_ == nil {
  3786  		c.header_ = make(http.Header)
  3787  	}
  3788  	return c.header_
  3789  }
  3790  
  3791  func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) doRequest(alt string) (*http.Response, error) {
  3792  	reqHeaders := make(http.Header)
  3793  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  3794  	for k, v := range c.header_ {
  3795  		reqHeaders[k] = v
  3796  	}
  3797  	reqHeaders.Set("User-Agent", c.s.userAgent())
  3798  	if c.ifNoneMatch_ != "" {
  3799  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3800  	}
  3801  	var body io.Reader = nil
  3802  	c.urlParams_.Set("alt", alt)
  3803  	c.urlParams_.Set("prettyPrint", "false")
  3804  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/last_operation")
  3805  	urls += "?" + c.urlParams_.Encode()
  3806  	req, err := http.NewRequest("GET", urls, body)
  3807  	if err != nil {
  3808  		return nil, err
  3809  	}
  3810  	req.Header = reqHeaders
  3811  	googleapi.Expand(req.URL, map[string]string{
  3812  		"name": c.name,
  3813  	})
  3814  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3815  }
  3816  
  3817  // Do executes the "servicebroker.projects.brokers.v2.service_instances.getLast_operation" call.
  3818  // Exactly one of *GoogleCloudServicebrokerV1beta1__Operation or error
  3819  // will be non-nil. Any non-2xx status code is an error. Response
  3820  // headers are in either
  3821  // *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or
  3822  // (if a response was returned at all) in
  3823  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3824  // whether the returned error was because http.StatusNotModified was
  3825  // returned.
  3826  func (c *ProjectsBrokersV2ServiceInstancesGetLastOperationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__Operation, error) {
  3827  	gensupport.SetOptions(c.urlParams_, opts...)
  3828  	res, err := c.doRequest("json")
  3829  	if res != nil && res.StatusCode == http.StatusNotModified {
  3830  		if res.Body != nil {
  3831  			res.Body.Close()
  3832  		}
  3833  		return nil, &googleapi.Error{
  3834  			Code:   res.StatusCode,
  3835  			Header: res.Header,
  3836  		}
  3837  	}
  3838  	if err != nil {
  3839  		return nil, err
  3840  	}
  3841  	defer googleapi.CloseBody(res)
  3842  	if err := googleapi.CheckResponse(res); err != nil {
  3843  		return nil, err
  3844  	}
  3845  	ret := &GoogleCloudServicebrokerV1beta1__Operation{
  3846  		ServerResponse: googleapi.ServerResponse{
  3847  			Header:         res.Header,
  3848  			HTTPStatusCode: res.StatusCode,
  3849  		},
  3850  	}
  3851  	target := &ret
  3852  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3853  		return nil, err
  3854  	}
  3855  	return ret, nil
  3856  	// {
  3857  	//   "description": "Returns the state of the last operation for the service instance.\nOnly last (or current) operation can be polled.",
  3858  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/last_operation",
  3859  	//   "httpMethod": "GET",
  3860  	//   "id": "servicebroker.projects.brokers.v2.service_instances.getLast_operation",
  3861  	//   "parameterOrder": [
  3862  	//     "name"
  3863  	//   ],
  3864  	//   "parameters": {
  3865  	//     "name": {
  3866  	//       "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+\n   `service_instances/[INSTANCE_ID]`.",
  3867  	//       "location": "path",
  3868  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+$",
  3869  	//       "required": true,
  3870  	//       "type": "string"
  3871  	//     },
  3872  	//     "operation": {
  3873  	//       "description": "If `operation` was returned during mutation operation, this field must be\npopulated with the provided value.",
  3874  	//       "location": "query",
  3875  	//       "type": "string"
  3876  	//     },
  3877  	//     "planId": {
  3878  	//       "description": "Plan id.",
  3879  	//       "location": "query",
  3880  	//       "type": "string"
  3881  	//     },
  3882  	//     "serviceId": {
  3883  	//       "description": "Service id.",
  3884  	//       "location": "query",
  3885  	//       "type": "string"
  3886  	//     }
  3887  	//   },
  3888  	//   "path": "v1beta1/{+name}/last_operation",
  3889  	//   "response": {
  3890  	//     "$ref": "GoogleCloudServicebrokerV1beta1__Operation"
  3891  	//   },
  3892  	//   "scopes": [
  3893  	//     "https://www.googleapis.com/auth/cloud-platform"
  3894  	//   ]
  3895  	// }
  3896  
  3897  }
  3898  
  3899  // method id "servicebroker.projects.brokers.v2.service_instances.patch":
  3900  
  3901  type ProjectsBrokersV2ServiceInstancesPatchCall struct {
  3902  	s                                                *Service
  3903  	name                                             string
  3904  	googlecloudservicebrokerv1beta1__serviceinstance *GoogleCloudServicebrokerV1beta1__ServiceInstance
  3905  	urlParams_                                       gensupport.URLParams
  3906  	ctx_                                             context.Context
  3907  	header_                                          http.Header
  3908  }
  3909  
  3910  // Patch: Updates an existing service instance.
  3911  // See CreateServiceInstance for possible response codes.
  3912  func (r *ProjectsBrokersV2ServiceInstancesService) Patch(name string, googlecloudservicebrokerv1beta1__serviceinstance *GoogleCloudServicebrokerV1beta1__ServiceInstance) *ProjectsBrokersV2ServiceInstancesPatchCall {
  3913  	c := &ProjectsBrokersV2ServiceInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3914  	c.name = name
  3915  	c.googlecloudservicebrokerv1beta1__serviceinstance = googlecloudservicebrokerv1beta1__serviceinstance
  3916  	return c
  3917  }
  3918  
  3919  // AcceptsIncomplete sets the optional parameter "acceptsIncomplete":
  3920  // See CreateServiceInstanceRequest for details.
  3921  func (c *ProjectsBrokersV2ServiceInstancesPatchCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesPatchCall {
  3922  	c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete))
  3923  	return c
  3924  }
  3925  
  3926  // Fields allows partial responses to be retrieved. See
  3927  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3928  // for more information.
  3929  func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesPatchCall {
  3930  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3931  	return c
  3932  }
  3933  
  3934  // Context sets the context to be used in this call's Do method. Any
  3935  // pending HTTP request will be aborted if the provided context is
  3936  // canceled.
  3937  func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesPatchCall {
  3938  	c.ctx_ = ctx
  3939  	return c
  3940  }
  3941  
  3942  // Header returns an http.Header that can be modified by the caller to
  3943  // add HTTP headers to the request.
  3944  func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Header() http.Header {
  3945  	if c.header_ == nil {
  3946  		c.header_ = make(http.Header)
  3947  	}
  3948  	return c.header_
  3949  }
  3950  
  3951  func (c *ProjectsBrokersV2ServiceInstancesPatchCall) doRequest(alt string) (*http.Response, error) {
  3952  	reqHeaders := make(http.Header)
  3953  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  3954  	for k, v := range c.header_ {
  3955  		reqHeaders[k] = v
  3956  	}
  3957  	reqHeaders.Set("User-Agent", c.s.userAgent())
  3958  	var body io.Reader = nil
  3959  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudservicebrokerv1beta1__serviceinstance)
  3960  	if err != nil {
  3961  		return nil, err
  3962  	}
  3963  	reqHeaders.Set("Content-Type", "application/json")
  3964  	c.urlParams_.Set("alt", alt)
  3965  	c.urlParams_.Set("prettyPrint", "false")
  3966  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  3967  	urls += "?" + c.urlParams_.Encode()
  3968  	req, err := http.NewRequest("PATCH", urls, body)
  3969  	if err != nil {
  3970  		return nil, err
  3971  	}
  3972  	req.Header = reqHeaders
  3973  	googleapi.Expand(req.URL, map[string]string{
  3974  		"name": c.name,
  3975  	})
  3976  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3977  }
  3978  
  3979  // Do executes the "servicebroker.projects.brokers.v2.service_instances.patch" call.
  3980  // Exactly one of
  3981  // *GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse or
  3982  // error will be non-nil. Any non-2xx status code is an error. Response
  3983  // headers are in either
  3984  // *GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse.Server
  3985  // Response.Header or (if a response was returned at all) in
  3986  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3987  // whether the returned error was because http.StatusNotModified was
  3988  // returned.
  3989  func (c *ProjectsBrokersV2ServiceInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse, error) {
  3990  	gensupport.SetOptions(c.urlParams_, opts...)
  3991  	res, err := c.doRequest("json")
  3992  	if res != nil && res.StatusCode == http.StatusNotModified {
  3993  		if res.Body != nil {
  3994  			res.Body.Close()
  3995  		}
  3996  		return nil, &googleapi.Error{
  3997  			Code:   res.StatusCode,
  3998  			Header: res.Header,
  3999  		}
  4000  	}
  4001  	if err != nil {
  4002  		return nil, err
  4003  	}
  4004  	defer googleapi.CloseBody(res)
  4005  	if err := googleapi.CheckResponse(res); err != nil {
  4006  		return nil, err
  4007  	}
  4008  	ret := &GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse{
  4009  		ServerResponse: googleapi.ServerResponse{
  4010  			Header:         res.Header,
  4011  			HTTPStatusCode: res.StatusCode,
  4012  		},
  4013  	}
  4014  	target := &ret
  4015  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4016  		return nil, err
  4017  	}
  4018  	return ret, nil
  4019  	// {
  4020  	//   "description": "Updates an existing service instance.\nSee CreateServiceInstance for possible response codes.",
  4021  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}",
  4022  	//   "httpMethod": "PATCH",
  4023  	//   "id": "servicebroker.projects.brokers.v2.service_instances.patch",
  4024  	//   "parameterOrder": [
  4025  	//     "name"
  4026  	//   ],
  4027  	//   "parameters": {
  4028  	//     "acceptsIncomplete": {
  4029  	//       "description": "See CreateServiceInstanceRequest for details.",
  4030  	//       "location": "query",
  4031  	//       "type": "boolean"
  4032  	//     },
  4033  	//     "name": {
  4034  	//       "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`.",
  4035  	//       "location": "path",
  4036  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+$",
  4037  	//       "required": true,
  4038  	//       "type": "string"
  4039  	//     }
  4040  	//   },
  4041  	//   "path": "v1beta1/{+name}",
  4042  	//   "request": {
  4043  	//     "$ref": "GoogleCloudServicebrokerV1beta1__ServiceInstance"
  4044  	//   },
  4045  	//   "response": {
  4046  	//     "$ref": "GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse"
  4047  	//   },
  4048  	//   "scopes": [
  4049  	//     "https://www.googleapis.com/auth/cloud-platform"
  4050  	//   ]
  4051  	// }
  4052  
  4053  }
  4054  
  4055  // method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.create":
  4056  
  4057  type ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall struct {
  4058  	s                                        *Service
  4059  	parent                                   string
  4060  	bindingId                                string
  4061  	googlecloudservicebrokerv1beta1__binding *GoogleCloudServicebrokerV1beta1__Binding
  4062  	urlParams_                               gensupport.URLParams
  4063  	ctx_                                     context.Context
  4064  	header_                                  http.Header
  4065  }
  4066  
  4067  // Create: CreateBinding generates a service binding to an existing
  4068  // service instance.
  4069  // See ProviServiceInstance for async operation details.
  4070  func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Create(parent string, bindingId string, googlecloudservicebrokerv1beta1__binding *GoogleCloudServicebrokerV1beta1__Binding) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall {
  4071  	c := &ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4072  	c.parent = parent
  4073  	c.bindingId = bindingId
  4074  	c.googlecloudservicebrokerv1beta1__binding = googlecloudservicebrokerv1beta1__binding
  4075  	return c
  4076  }
  4077  
  4078  // AcceptsIncomplete sets the optional parameter "acceptsIncomplete":
  4079  // See CreateServiceInstanceRequest for details.
  4080  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall {
  4081  	c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete))
  4082  	return c
  4083  }
  4084  
  4085  // Fields allows partial responses to be retrieved. See
  4086  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4087  // for more information.
  4088  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall {
  4089  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4090  	return c
  4091  }
  4092  
  4093  // Context sets the context to be used in this call's Do method. Any
  4094  // pending HTTP request will be aborted if the provided context is
  4095  // canceled.
  4096  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall {
  4097  	c.ctx_ = ctx
  4098  	return c
  4099  }
  4100  
  4101  // Header returns an http.Header that can be modified by the caller to
  4102  // add HTTP headers to the request.
  4103  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Header() http.Header {
  4104  	if c.header_ == nil {
  4105  		c.header_ = make(http.Header)
  4106  	}
  4107  	return c.header_
  4108  }
  4109  
  4110  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) doRequest(alt string) (*http.Response, error) {
  4111  	reqHeaders := make(http.Header)
  4112  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  4113  	for k, v := range c.header_ {
  4114  		reqHeaders[k] = v
  4115  	}
  4116  	reqHeaders.Set("User-Agent", c.s.userAgent())
  4117  	var body io.Reader = nil
  4118  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudservicebrokerv1beta1__binding)
  4119  	if err != nil {
  4120  		return nil, err
  4121  	}
  4122  	reqHeaders.Set("Content-Type", "application/json")
  4123  	c.urlParams_.Set("alt", alt)
  4124  	c.urlParams_.Set("prettyPrint", "false")
  4125  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/service_bindings/{+binding_id}")
  4126  	urls += "?" + c.urlParams_.Encode()
  4127  	req, err := http.NewRequest("PUT", urls, body)
  4128  	if err != nil {
  4129  		return nil, err
  4130  	}
  4131  	req.Header = reqHeaders
  4132  	googleapi.Expand(req.URL, map[string]string{
  4133  		"parent":     c.parent,
  4134  		"binding_id": c.bindingId,
  4135  	})
  4136  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4137  }
  4138  
  4139  // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.create" call.
  4140  // Exactly one of
  4141  // *GoogleCloudServicebrokerV1beta1__CreateBindingResponse or error will
  4142  // be non-nil. Any non-2xx status code is an error. Response headers are
  4143  // in either
  4144  // *GoogleCloudServicebrokerV1beta1__CreateBindingResponse.ServerResponse
  4145  // .Header or (if a response was returned at all) in
  4146  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4147  // whether the returned error was because http.StatusNotModified was
  4148  // returned.
  4149  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__CreateBindingResponse, error) {
  4150  	gensupport.SetOptions(c.urlParams_, opts...)
  4151  	res, err := c.doRequest("json")
  4152  	if res != nil && res.StatusCode == http.StatusNotModified {
  4153  		if res.Body != nil {
  4154  			res.Body.Close()
  4155  		}
  4156  		return nil, &googleapi.Error{
  4157  			Code:   res.StatusCode,
  4158  			Header: res.Header,
  4159  		}
  4160  	}
  4161  	if err != nil {
  4162  		return nil, err
  4163  	}
  4164  	defer googleapi.CloseBody(res)
  4165  	if err := googleapi.CheckResponse(res); err != nil {
  4166  		return nil, err
  4167  	}
  4168  	ret := &GoogleCloudServicebrokerV1beta1__CreateBindingResponse{
  4169  		ServerResponse: googleapi.ServerResponse{
  4170  			Header:         res.Header,
  4171  			HTTPStatusCode: res.StatusCode,
  4172  		},
  4173  	}
  4174  	target := &ret
  4175  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4176  		return nil, err
  4177  	}
  4178  	return ret, nil
  4179  	// {
  4180  	//   "description": "CreateBinding generates a service binding to an existing service instance.\nSee ProviServiceInstance for async operation details.",
  4181  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/service_bindings/{service_bindingsId}",
  4182  	//   "httpMethod": "PUT",
  4183  	//   "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.create",
  4184  	//   "parameterOrder": [
  4185  	//     "parent",
  4186  	//     "binding_id"
  4187  	//   ],
  4188  	//   "parameters": {
  4189  	//     "acceptsIncomplete": {
  4190  	//       "description": "See CreateServiceInstanceRequest for details.",
  4191  	//       "location": "query",
  4192  	//       "type": "boolean"
  4193  	//     },
  4194  	//     "binding_id": {
  4195  	//       "description": "The id of the binding. Must be unique within GCP project.\nMaximum length is 64, GUID recommended.\nRequired.",
  4196  	//       "location": "path",
  4197  	//       "pattern": "^[^/]+$",
  4198  	//       "required": true,
  4199  	//       "type": "string"
  4200  	//     },
  4201  	//     "parent": {
  4202  	//       "description": "The GCP container.\nMust match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`.",
  4203  	//       "location": "path",
  4204  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+$",
  4205  	//       "required": true,
  4206  	//       "type": "string"
  4207  	//     }
  4208  	//   },
  4209  	//   "path": "v1beta1/{+parent}/service_bindings/{+binding_id}",
  4210  	//   "request": {
  4211  	//     "$ref": "GoogleCloudServicebrokerV1beta1__Binding"
  4212  	//   },
  4213  	//   "response": {
  4214  	//     "$ref": "GoogleCloudServicebrokerV1beta1__CreateBindingResponse"
  4215  	//   },
  4216  	//   "scopes": [
  4217  	//     "https://www.googleapis.com/auth/cloud-platform"
  4218  	//   ]
  4219  	// }
  4220  
  4221  }
  4222  
  4223  // method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.delete":
  4224  
  4225  type ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall struct {
  4226  	s          *Service
  4227  	name       string
  4228  	urlParams_ gensupport.URLParams
  4229  	ctx_       context.Context
  4230  	header_    http.Header
  4231  }
  4232  
  4233  // Delete: Unbinds from a service instance.
  4234  // For synchronous/asynchronous request details see
  4235  // CreateServiceInstance
  4236  // method.
  4237  // If binding does not exist HTTP 410 status will be returned.
  4238  func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Delete(name string) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall {
  4239  	c := &ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4240  	c.name = name
  4241  	return c
  4242  }
  4243  
  4244  // AcceptsIncomplete sets the optional parameter "acceptsIncomplete":
  4245  // See CreateServiceInstanceRequest for details.
  4246  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) AcceptsIncomplete(acceptsIncomplete bool) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall {
  4247  	c.urlParams_.Set("acceptsIncomplete", fmt.Sprint(acceptsIncomplete))
  4248  	return c
  4249  }
  4250  
  4251  // PlanId sets the optional parameter "planId": The plan id of the
  4252  // service instance.
  4253  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) PlanId(planId string) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall {
  4254  	c.urlParams_.Set("planId", planId)
  4255  	return c
  4256  }
  4257  
  4258  // ServiceId sets the optional parameter "serviceId": Additional query
  4259  // parameter hints.
  4260  // The service id of the service instance.
  4261  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) ServiceId(serviceId string) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall {
  4262  	c.urlParams_.Set("serviceId", serviceId)
  4263  	return c
  4264  }
  4265  
  4266  // Fields allows partial responses to be retrieved. See
  4267  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4268  // for more information.
  4269  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall {
  4270  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4271  	return c
  4272  }
  4273  
  4274  // Context sets the context to be used in this call's Do method. Any
  4275  // pending HTTP request will be aborted if the provided context is
  4276  // canceled.
  4277  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall {
  4278  	c.ctx_ = ctx
  4279  	return c
  4280  }
  4281  
  4282  // Header returns an http.Header that can be modified by the caller to
  4283  // add HTTP headers to the request.
  4284  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Header() http.Header {
  4285  	if c.header_ == nil {
  4286  		c.header_ = make(http.Header)
  4287  	}
  4288  	return c.header_
  4289  }
  4290  
  4291  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) doRequest(alt string) (*http.Response, error) {
  4292  	reqHeaders := make(http.Header)
  4293  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  4294  	for k, v := range c.header_ {
  4295  		reqHeaders[k] = v
  4296  	}
  4297  	reqHeaders.Set("User-Agent", c.s.userAgent())
  4298  	var body io.Reader = nil
  4299  	c.urlParams_.Set("alt", alt)
  4300  	c.urlParams_.Set("prettyPrint", "false")
  4301  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  4302  	urls += "?" + c.urlParams_.Encode()
  4303  	req, err := http.NewRequest("DELETE", urls, body)
  4304  	if err != nil {
  4305  		return nil, err
  4306  	}
  4307  	req.Header = reqHeaders
  4308  	googleapi.Expand(req.URL, map[string]string{
  4309  		"name": c.name,
  4310  	})
  4311  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4312  }
  4313  
  4314  // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.delete" call.
  4315  // Exactly one of
  4316  // *GoogleCloudServicebrokerV1beta1__DeleteBindingResponse or error will
  4317  // be non-nil. Any non-2xx status code is an error. Response headers are
  4318  // in either
  4319  // *GoogleCloudServicebrokerV1beta1__DeleteBindingResponse.ServerResponse
  4320  // .Header or (if a response was returned at all) in
  4321  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4322  // whether the returned error was because http.StatusNotModified was
  4323  // returned.
  4324  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__DeleteBindingResponse, error) {
  4325  	gensupport.SetOptions(c.urlParams_, opts...)
  4326  	res, err := c.doRequest("json")
  4327  	if res != nil && res.StatusCode == http.StatusNotModified {
  4328  		if res.Body != nil {
  4329  			res.Body.Close()
  4330  		}
  4331  		return nil, &googleapi.Error{
  4332  			Code:   res.StatusCode,
  4333  			Header: res.Header,
  4334  		}
  4335  	}
  4336  	if err != nil {
  4337  		return nil, err
  4338  	}
  4339  	defer googleapi.CloseBody(res)
  4340  	if err := googleapi.CheckResponse(res); err != nil {
  4341  		return nil, err
  4342  	}
  4343  	ret := &GoogleCloudServicebrokerV1beta1__DeleteBindingResponse{
  4344  		ServerResponse: googleapi.ServerResponse{
  4345  			Header:         res.Header,
  4346  			HTTPStatusCode: res.StatusCode,
  4347  		},
  4348  	}
  4349  	target := &ret
  4350  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4351  		return nil, err
  4352  	}
  4353  	return ret, nil
  4354  	// {
  4355  	//   "description": "Unbinds from a service instance.\nFor synchronous/asynchronous request details see CreateServiceInstance\nmethod.\nIf binding does not exist HTTP 410 status will be returned.",
  4356  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/service_bindings/{service_bindingsId}",
  4357  	//   "httpMethod": "DELETE",
  4358  	//   "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.delete",
  4359  	//   "parameterOrder": [
  4360  	//     "name"
  4361  	//   ],
  4362  	//   "parameters": {
  4363  	//     "acceptsIncomplete": {
  4364  	//       "description": "See CreateServiceInstanceRequest for details.",
  4365  	//       "location": "query",
  4366  	//       "type": "boolean"
  4367  	//     },
  4368  	//     "name": {
  4369  	//       "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/`\n`v2/service_instances/[INSTANCE_ID]/service_bindings/[BINDING_ID]`\nor\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/`\n`/instances/[INSTANCE_ID]/bindings/[BINDING_ID]`.",
  4370  	//       "location": "path",
  4371  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+/service_bindings/[^/]+$",
  4372  	//       "required": true,
  4373  	//       "type": "string"
  4374  	//     },
  4375  	//     "planId": {
  4376  	//       "description": "The plan id of the service instance.",
  4377  	//       "location": "query",
  4378  	//       "type": "string"
  4379  	//     },
  4380  	//     "serviceId": {
  4381  	//       "description": "Additional query parameter hints.\nThe service id of the service instance.",
  4382  	//       "location": "query",
  4383  	//       "type": "string"
  4384  	//     }
  4385  	//   },
  4386  	//   "path": "v1beta1/{+name}",
  4387  	//   "response": {
  4388  	//     "$ref": "GoogleCloudServicebrokerV1beta1__DeleteBindingResponse"
  4389  	//   },
  4390  	//   "scopes": [
  4391  	//     "https://www.googleapis.com/auth/cloud-platform"
  4392  	//   ]
  4393  	// }
  4394  
  4395  }
  4396  
  4397  // method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.get":
  4398  
  4399  type ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall struct {
  4400  	s            *Service
  4401  	name         string
  4402  	urlParams_   gensupport.URLParams
  4403  	ifNoneMatch_ string
  4404  	ctx_         context.Context
  4405  	header_      http.Header
  4406  }
  4407  
  4408  // Get: GetBinding returns the binding information.
  4409  func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) Get(name string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall {
  4410  	c := &ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4411  	c.name = name
  4412  	return c
  4413  }
  4414  
  4415  // PlanId sets the optional parameter "planId": Plan id.
  4416  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) PlanId(planId string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall {
  4417  	c.urlParams_.Set("planId", planId)
  4418  	return c
  4419  }
  4420  
  4421  // ServiceId sets the optional parameter "serviceId": Service id.
  4422  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) ServiceId(serviceId string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall {
  4423  	c.urlParams_.Set("serviceId", serviceId)
  4424  	return c
  4425  }
  4426  
  4427  // Fields allows partial responses to be retrieved. See
  4428  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4429  // for more information.
  4430  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall {
  4431  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4432  	return c
  4433  }
  4434  
  4435  // IfNoneMatch sets the optional parameter which makes the operation
  4436  // fail if the object's ETag matches the given value. This is useful for
  4437  // getting updates only after the object has changed since the last
  4438  // request. Use googleapi.IsNotModified to check whether the response
  4439  // error from Do is the result of In-None-Match.
  4440  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall {
  4441  	c.ifNoneMatch_ = entityTag
  4442  	return c
  4443  }
  4444  
  4445  // Context sets the context to be used in this call's Do method. Any
  4446  // pending HTTP request will be aborted if the provided context is
  4447  // canceled.
  4448  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall {
  4449  	c.ctx_ = ctx
  4450  	return c
  4451  }
  4452  
  4453  // Header returns an http.Header that can be modified by the caller to
  4454  // add HTTP headers to the request.
  4455  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Header() http.Header {
  4456  	if c.header_ == nil {
  4457  		c.header_ = make(http.Header)
  4458  	}
  4459  	return c.header_
  4460  }
  4461  
  4462  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) doRequest(alt string) (*http.Response, error) {
  4463  	reqHeaders := make(http.Header)
  4464  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  4465  	for k, v := range c.header_ {
  4466  		reqHeaders[k] = v
  4467  	}
  4468  	reqHeaders.Set("User-Agent", c.s.userAgent())
  4469  	if c.ifNoneMatch_ != "" {
  4470  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4471  	}
  4472  	var body io.Reader = nil
  4473  	c.urlParams_.Set("alt", alt)
  4474  	c.urlParams_.Set("prettyPrint", "false")
  4475  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  4476  	urls += "?" + c.urlParams_.Encode()
  4477  	req, err := http.NewRequest("GET", urls, body)
  4478  	if err != nil {
  4479  		return nil, err
  4480  	}
  4481  	req.Header = reqHeaders
  4482  	googleapi.Expand(req.URL, map[string]string{
  4483  		"name": c.name,
  4484  	})
  4485  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4486  }
  4487  
  4488  // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.get" call.
  4489  // Exactly one of *GoogleCloudServicebrokerV1beta1__GetBindingResponse
  4490  // or error will be non-nil. Any non-2xx status code is an error.
  4491  // Response headers are in either
  4492  // *GoogleCloudServicebrokerV1beta1__GetBindingResponse.ServerResponse.He
  4493  // ader or (if a response was returned at all) in
  4494  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4495  // whether the returned error was because http.StatusNotModified was
  4496  // returned.
  4497  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__GetBindingResponse, error) {
  4498  	gensupport.SetOptions(c.urlParams_, opts...)
  4499  	res, err := c.doRequest("json")
  4500  	if res != nil && res.StatusCode == http.StatusNotModified {
  4501  		if res.Body != nil {
  4502  			res.Body.Close()
  4503  		}
  4504  		return nil, &googleapi.Error{
  4505  			Code:   res.StatusCode,
  4506  			Header: res.Header,
  4507  		}
  4508  	}
  4509  	if err != nil {
  4510  		return nil, err
  4511  	}
  4512  	defer googleapi.CloseBody(res)
  4513  	if err := googleapi.CheckResponse(res); err != nil {
  4514  		return nil, err
  4515  	}
  4516  	ret := &GoogleCloudServicebrokerV1beta1__GetBindingResponse{
  4517  		ServerResponse: googleapi.ServerResponse{
  4518  			Header:         res.Header,
  4519  			HTTPStatusCode: res.StatusCode,
  4520  		},
  4521  	}
  4522  	target := &ret
  4523  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4524  		return nil, err
  4525  	}
  4526  	return ret, nil
  4527  	// {
  4528  	//   "description": "GetBinding returns the binding information.",
  4529  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/service_bindings/{service_bindingsId}",
  4530  	//   "httpMethod": "GET",
  4531  	//   "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.get",
  4532  	//   "parameterOrder": [
  4533  	//     "name"
  4534  	//   ],
  4535  	//   "parameters": {
  4536  	//     "name": {
  4537  	//       "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_bindings`.",
  4538  	//       "location": "path",
  4539  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+/service_bindings/[^/]+$",
  4540  	//       "required": true,
  4541  	//       "type": "string"
  4542  	//     },
  4543  	//     "planId": {
  4544  	//       "description": "Plan id.",
  4545  	//       "location": "query",
  4546  	//       "type": "string"
  4547  	//     },
  4548  	//     "serviceId": {
  4549  	//       "description": "Service id.",
  4550  	//       "location": "query",
  4551  	//       "type": "string"
  4552  	//     }
  4553  	//   },
  4554  	//   "path": "v1beta1/{+name}",
  4555  	//   "response": {
  4556  	//     "$ref": "GoogleCloudServicebrokerV1beta1__GetBindingResponse"
  4557  	//   },
  4558  	//   "scopes": [
  4559  	//     "https://www.googleapis.com/auth/cloud-platform"
  4560  	//   ]
  4561  	// }
  4562  
  4563  }
  4564  
  4565  // method id "servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation":
  4566  
  4567  type ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall struct {
  4568  	s            *Service
  4569  	name         string
  4570  	urlParams_   gensupport.URLParams
  4571  	ifNoneMatch_ string
  4572  	ctx_         context.Context
  4573  	header_      http.Header
  4574  }
  4575  
  4576  // GetLastOperation: Returns the state of the last operation for the
  4577  // binding.
  4578  // Only last (or current) operation can be polled.
  4579  func (r *ProjectsBrokersV2ServiceInstancesServiceBindingsService) GetLastOperation(name string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall {
  4580  	c := &ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4581  	c.name = name
  4582  	return c
  4583  }
  4584  
  4585  // Operation sets the optional parameter "operation": If `operation` was
  4586  // returned during mutation operation, this field must be
  4587  // populated with the provided value.
  4588  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Operation(operation string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall {
  4589  	c.urlParams_.Set("operation", operation)
  4590  	return c
  4591  }
  4592  
  4593  // PlanId sets the optional parameter "planId": Plan id.
  4594  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) PlanId(planId string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall {
  4595  	c.urlParams_.Set("planId", planId)
  4596  	return c
  4597  }
  4598  
  4599  // ServiceId sets the optional parameter "serviceId": Service id.
  4600  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) ServiceId(serviceId string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall {
  4601  	c.urlParams_.Set("serviceId", serviceId)
  4602  	return c
  4603  }
  4604  
  4605  // Fields allows partial responses to be retrieved. See
  4606  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4607  // for more information.
  4608  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Fields(s ...googleapi.Field) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall {
  4609  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4610  	return c
  4611  }
  4612  
  4613  // IfNoneMatch sets the optional parameter which makes the operation
  4614  // fail if the object's ETag matches the given value. This is useful for
  4615  // getting updates only after the object has changed since the last
  4616  // request. Use googleapi.IsNotModified to check whether the response
  4617  // error from Do is the result of In-None-Match.
  4618  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) IfNoneMatch(entityTag string) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall {
  4619  	c.ifNoneMatch_ = entityTag
  4620  	return c
  4621  }
  4622  
  4623  // Context sets the context to be used in this call's Do method. Any
  4624  // pending HTTP request will be aborted if the provided context is
  4625  // canceled.
  4626  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Context(ctx context.Context) *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall {
  4627  	c.ctx_ = ctx
  4628  	return c
  4629  }
  4630  
  4631  // Header returns an http.Header that can be modified by the caller to
  4632  // add HTTP headers to the request.
  4633  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Header() http.Header {
  4634  	if c.header_ == nil {
  4635  		c.header_ = make(http.Header)
  4636  	}
  4637  	return c.header_
  4638  }
  4639  
  4640  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) doRequest(alt string) (*http.Response, error) {
  4641  	reqHeaders := make(http.Header)
  4642  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  4643  	for k, v := range c.header_ {
  4644  		reqHeaders[k] = v
  4645  	}
  4646  	reqHeaders.Set("User-Agent", c.s.userAgent())
  4647  	if c.ifNoneMatch_ != "" {
  4648  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4649  	}
  4650  	var body io.Reader = nil
  4651  	c.urlParams_.Set("alt", alt)
  4652  	c.urlParams_.Set("prettyPrint", "false")
  4653  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/last_operation")
  4654  	urls += "?" + c.urlParams_.Encode()
  4655  	req, err := http.NewRequest("GET", urls, body)
  4656  	if err != nil {
  4657  		return nil, err
  4658  	}
  4659  	req.Header = reqHeaders
  4660  	googleapi.Expand(req.URL, map[string]string{
  4661  		"name": c.name,
  4662  	})
  4663  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4664  }
  4665  
  4666  // Do executes the "servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation" call.
  4667  // Exactly one of *GoogleCloudServicebrokerV1beta1__Operation or error
  4668  // will be non-nil. Any non-2xx status code is an error. Response
  4669  // headers are in either
  4670  // *GoogleCloudServicebrokerV1beta1__Operation.ServerResponse.Header or
  4671  // (if a response was returned at all) in
  4672  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4673  // whether the returned error was because http.StatusNotModified was
  4674  // returned.
  4675  func (c *ProjectsBrokersV2ServiceInstancesServiceBindingsGetLastOperationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudServicebrokerV1beta1__Operation, error) {
  4676  	gensupport.SetOptions(c.urlParams_, opts...)
  4677  	res, err := c.doRequest("json")
  4678  	if res != nil && res.StatusCode == http.StatusNotModified {
  4679  		if res.Body != nil {
  4680  			res.Body.Close()
  4681  		}
  4682  		return nil, &googleapi.Error{
  4683  			Code:   res.StatusCode,
  4684  			Header: res.Header,
  4685  		}
  4686  	}
  4687  	if err != nil {
  4688  		return nil, err
  4689  	}
  4690  	defer googleapi.CloseBody(res)
  4691  	if err := googleapi.CheckResponse(res); err != nil {
  4692  		return nil, err
  4693  	}
  4694  	ret := &GoogleCloudServicebrokerV1beta1__Operation{
  4695  		ServerResponse: googleapi.ServerResponse{
  4696  			Header:         res.Header,
  4697  			HTTPStatusCode: res.StatusCode,
  4698  		},
  4699  	}
  4700  	target := &ret
  4701  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4702  		return nil, err
  4703  	}
  4704  	return ret, nil
  4705  	// {
  4706  	//   "description": "Returns the state of the last operation for the binding.\nOnly last (or current) operation can be polled.",
  4707  	//   "flatPath": "v1beta1/projects/{projectsId}/brokers/{brokersId}/v2/service_instances/{service_instancesId}/service_bindings/{service_bindingsId}/last_operation",
  4708  	//   "httpMethod": "GET",
  4709  	//   "id": "servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation",
  4710  	//   "parameterOrder": [
  4711  	//     "name"
  4712  	//   ],
  4713  	//   "parameters": {
  4714  	//     "name": {
  4715  	//       "description": "Name must match\n`projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_binding/[BINDING_ID]`.",
  4716  	//       "location": "path",
  4717  	//       "pattern": "^projects/[^/]+/brokers/[^/]+/v2/service_instances/[^/]+/service_bindings/[^/]+$",
  4718  	//       "required": true,
  4719  	//       "type": "string"
  4720  	//     },
  4721  	//     "operation": {
  4722  	//       "description": "If `operation` was returned during mutation operation, this field must be\npopulated with the provided value.",
  4723  	//       "location": "query",
  4724  	//       "type": "string"
  4725  	//     },
  4726  	//     "planId": {
  4727  	//       "description": "Plan id.",
  4728  	//       "location": "query",
  4729  	//       "type": "string"
  4730  	//     },
  4731  	//     "serviceId": {
  4732  	//       "description": "Service id.",
  4733  	//       "location": "query",
  4734  	//       "type": "string"
  4735  	//     }
  4736  	//   },
  4737  	//   "path": "v1beta1/{+name}/last_operation",
  4738  	//   "response": {
  4739  	//     "$ref": "GoogleCloudServicebrokerV1beta1__Operation"
  4740  	//   },
  4741  	//   "scopes": [
  4742  	//     "https://www.googleapis.com/auth/cloud-platform"
  4743  	//   ]
  4744  	// }
  4745  
  4746  }
  4747  
  4748  // method id "servicebroker.getIamPolicy":
  4749  
  4750  type V1beta1GetIamPolicyCall struct {
  4751  	s            *Service
  4752  	resource     string
  4753  	urlParams_   gensupport.URLParams
  4754  	ifNoneMatch_ string
  4755  	ctx_         context.Context
  4756  	header_      http.Header
  4757  }
  4758  
  4759  // GetIamPolicy: Gets the access control policy for a resource.
  4760  // Returns an empty policy if the resource exists and does not have a
  4761  // policy
  4762  // set.
  4763  func (r *V1beta1Service) GetIamPolicy(resource string) *V1beta1GetIamPolicyCall {
  4764  	c := &V1beta1GetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4765  	c.resource = resource
  4766  	return c
  4767  }
  4768  
  4769  // OptionsRequestedPolicyVersion sets the optional parameter
  4770  // "options.requestedPolicyVersion": The policy format version to be
  4771  // returned.
  4772  //
  4773  // Valid values are 0, 1, and 3. Requests specifying an invalid value
  4774  // will be
  4775  // rejected.
  4776  //
  4777  // Requests for policies with any conditional bindings must specify
  4778  // version 3.
  4779  // Policies without any conditional bindings may specify any valid value
  4780  // or
  4781  // leave the field unset.
  4782  func (c *V1beta1GetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *V1beta1GetIamPolicyCall {
  4783  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  4784  	return c
  4785  }
  4786  
  4787  // Fields allows partial responses to be retrieved. See
  4788  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4789  // for more information.
  4790  func (c *V1beta1GetIamPolicyCall) Fields(s ...googleapi.Field) *V1beta1GetIamPolicyCall {
  4791  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4792  	return c
  4793  }
  4794  
  4795  // IfNoneMatch sets the optional parameter which makes the operation
  4796  // fail if the object's ETag matches the given value. This is useful for
  4797  // getting updates only after the object has changed since the last
  4798  // request. Use googleapi.IsNotModified to check whether the response
  4799  // error from Do is the result of In-None-Match.
  4800  func (c *V1beta1GetIamPolicyCall) IfNoneMatch(entityTag string) *V1beta1GetIamPolicyCall {
  4801  	c.ifNoneMatch_ = entityTag
  4802  	return c
  4803  }
  4804  
  4805  // Context sets the context to be used in this call's Do method. Any
  4806  // pending HTTP request will be aborted if the provided context is
  4807  // canceled.
  4808  func (c *V1beta1GetIamPolicyCall) Context(ctx context.Context) *V1beta1GetIamPolicyCall {
  4809  	c.ctx_ = ctx
  4810  	return c
  4811  }
  4812  
  4813  // Header returns an http.Header that can be modified by the caller to
  4814  // add HTTP headers to the request.
  4815  func (c *V1beta1GetIamPolicyCall) Header() http.Header {
  4816  	if c.header_ == nil {
  4817  		c.header_ = make(http.Header)
  4818  	}
  4819  	return c.header_
  4820  }
  4821  
  4822  func (c *V1beta1GetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  4823  	reqHeaders := make(http.Header)
  4824  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  4825  	for k, v := range c.header_ {
  4826  		reqHeaders[k] = v
  4827  	}
  4828  	reqHeaders.Set("User-Agent", c.s.userAgent())
  4829  	if c.ifNoneMatch_ != "" {
  4830  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4831  	}
  4832  	var body io.Reader = nil
  4833  	c.urlParams_.Set("alt", alt)
  4834  	c.urlParams_.Set("prettyPrint", "false")
  4835  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
  4836  	urls += "?" + c.urlParams_.Encode()
  4837  	req, err := http.NewRequest("GET", urls, body)
  4838  	if err != nil {
  4839  		return nil, err
  4840  	}
  4841  	req.Header = reqHeaders
  4842  	googleapi.Expand(req.URL, map[string]string{
  4843  		"resource": c.resource,
  4844  	})
  4845  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4846  }
  4847  
  4848  // Do executes the "servicebroker.getIamPolicy" call.
  4849  // Exactly one of *GoogleIamV1__Policy or error will be non-nil. Any
  4850  // non-2xx status code is an error. Response headers are in either
  4851  // *GoogleIamV1__Policy.ServerResponse.Header or (if a response was
  4852  // returned at all) in error.(*googleapi.Error).Header. Use
  4853  // googleapi.IsNotModified to check whether the returned error was
  4854  // because http.StatusNotModified was returned.
  4855  func (c *V1beta1GetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Policy, error) {
  4856  	gensupport.SetOptions(c.urlParams_, opts...)
  4857  	res, err := c.doRequest("json")
  4858  	if res != nil && res.StatusCode == http.StatusNotModified {
  4859  		if res.Body != nil {
  4860  			res.Body.Close()
  4861  		}
  4862  		return nil, &googleapi.Error{
  4863  			Code:   res.StatusCode,
  4864  			Header: res.Header,
  4865  		}
  4866  	}
  4867  	if err != nil {
  4868  		return nil, err
  4869  	}
  4870  	defer googleapi.CloseBody(res)
  4871  	if err := googleapi.CheckResponse(res); err != nil {
  4872  		return nil, err
  4873  	}
  4874  	ret := &GoogleIamV1__Policy{
  4875  		ServerResponse: googleapi.ServerResponse{
  4876  			Header:         res.Header,
  4877  			HTTPStatusCode: res.StatusCode,
  4878  		},
  4879  	}
  4880  	target := &ret
  4881  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4882  		return nil, err
  4883  	}
  4884  	return ret, nil
  4885  	// {
  4886  	//   "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
  4887  	//   "flatPath": "v1beta1/{v1beta1Id}:getIamPolicy",
  4888  	//   "httpMethod": "GET",
  4889  	//   "id": "servicebroker.getIamPolicy",
  4890  	//   "parameterOrder": [
  4891  	//     "resource"
  4892  	//   ],
  4893  	//   "parameters": {
  4894  	//     "options.requestedPolicyVersion": {
  4895  	//       "description": "Optional. The policy format version to be returned.\n\nValid values are 0, 1, and 3. Requests specifying an invalid value will be\nrejected.\n\nRequests for policies with any conditional bindings must specify version 3.\nPolicies without any conditional bindings may specify any valid value or\nleave the field unset.",
  4896  	//       "format": "int32",
  4897  	//       "location": "query",
  4898  	//       "type": "integer"
  4899  	//     },
  4900  	//     "resource": {
  4901  	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
  4902  	//       "location": "path",
  4903  	//       "pattern": "^.+$",
  4904  	//       "required": true,
  4905  	//       "type": "string"
  4906  	//     }
  4907  	//   },
  4908  	//   "path": "v1beta1/{+resource}:getIamPolicy",
  4909  	//   "response": {
  4910  	//     "$ref": "GoogleIamV1__Policy"
  4911  	//   },
  4912  	//   "scopes": [
  4913  	//     "https://www.googleapis.com/auth/cloud-platform"
  4914  	//   ]
  4915  	// }
  4916  
  4917  }
  4918  
  4919  // method id "servicebroker.setIamPolicy":
  4920  
  4921  type V1beta1SetIamPolicyCall struct {
  4922  	s                                *Service
  4923  	resource                         string
  4924  	googleiamv1__setiampolicyrequest *GoogleIamV1__SetIamPolicyRequest
  4925  	urlParams_                       gensupport.URLParams
  4926  	ctx_                             context.Context
  4927  	header_                          http.Header
  4928  }
  4929  
  4930  // SetIamPolicy: Sets the access control policy on the specified
  4931  // resource. Replaces any
  4932  // existing policy.
  4933  //
  4934  // Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and
  4935  // PERMISSION_DENIED
  4936  func (r *V1beta1Service) SetIamPolicy(resource string, googleiamv1__setiampolicyrequest *GoogleIamV1__SetIamPolicyRequest) *V1beta1SetIamPolicyCall {
  4937  	c := &V1beta1SetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4938  	c.resource = resource
  4939  	c.googleiamv1__setiampolicyrequest = googleiamv1__setiampolicyrequest
  4940  	return c
  4941  }
  4942  
  4943  // Fields allows partial responses to be retrieved. See
  4944  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4945  // for more information.
  4946  func (c *V1beta1SetIamPolicyCall) Fields(s ...googleapi.Field) *V1beta1SetIamPolicyCall {
  4947  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4948  	return c
  4949  }
  4950  
  4951  // Context sets the context to be used in this call's Do method. Any
  4952  // pending HTTP request will be aborted if the provided context is
  4953  // canceled.
  4954  func (c *V1beta1SetIamPolicyCall) Context(ctx context.Context) *V1beta1SetIamPolicyCall {
  4955  	c.ctx_ = ctx
  4956  	return c
  4957  }
  4958  
  4959  // Header returns an http.Header that can be modified by the caller to
  4960  // add HTTP headers to the request.
  4961  func (c *V1beta1SetIamPolicyCall) Header() http.Header {
  4962  	if c.header_ == nil {
  4963  		c.header_ = make(http.Header)
  4964  	}
  4965  	return c.header_
  4966  }
  4967  
  4968  func (c *V1beta1SetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  4969  	reqHeaders := make(http.Header)
  4970  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  4971  	for k, v := range c.header_ {
  4972  		reqHeaders[k] = v
  4973  	}
  4974  	reqHeaders.Set("User-Agent", c.s.userAgent())
  4975  	var body io.Reader = nil
  4976  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1__setiampolicyrequest)
  4977  	if err != nil {
  4978  		return nil, err
  4979  	}
  4980  	reqHeaders.Set("Content-Type", "application/json")
  4981  	c.urlParams_.Set("alt", alt)
  4982  	c.urlParams_.Set("prettyPrint", "false")
  4983  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
  4984  	urls += "?" + c.urlParams_.Encode()
  4985  	req, err := http.NewRequest("POST", urls, body)
  4986  	if err != nil {
  4987  		return nil, err
  4988  	}
  4989  	req.Header = reqHeaders
  4990  	googleapi.Expand(req.URL, map[string]string{
  4991  		"resource": c.resource,
  4992  	})
  4993  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4994  }
  4995  
  4996  // Do executes the "servicebroker.setIamPolicy" call.
  4997  // Exactly one of *GoogleIamV1__Policy or error will be non-nil. Any
  4998  // non-2xx status code is an error. Response headers are in either
  4999  // *GoogleIamV1__Policy.ServerResponse.Header or (if a response was
  5000  // returned at all) in error.(*googleapi.Error).Header. Use
  5001  // googleapi.IsNotModified to check whether the returned error was
  5002  // because http.StatusNotModified was returned.
  5003  func (c *V1beta1SetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__Policy, error) {
  5004  	gensupport.SetOptions(c.urlParams_, opts...)
  5005  	res, err := c.doRequest("json")
  5006  	if res != nil && res.StatusCode == http.StatusNotModified {
  5007  		if res.Body != nil {
  5008  			res.Body.Close()
  5009  		}
  5010  		return nil, &googleapi.Error{
  5011  			Code:   res.StatusCode,
  5012  			Header: res.Header,
  5013  		}
  5014  	}
  5015  	if err != nil {
  5016  		return nil, err
  5017  	}
  5018  	defer googleapi.CloseBody(res)
  5019  	if err := googleapi.CheckResponse(res); err != nil {
  5020  		return nil, err
  5021  	}
  5022  	ret := &GoogleIamV1__Policy{
  5023  		ServerResponse: googleapi.ServerResponse{
  5024  			Header:         res.Header,
  5025  			HTTPStatusCode: res.StatusCode,
  5026  		},
  5027  	}
  5028  	target := &ret
  5029  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5030  		return nil, err
  5031  	}
  5032  	return ret, nil
  5033  	// {
  5034  	//   "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.\n\nCan return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED",
  5035  	//   "flatPath": "v1beta1/{v1beta1Id}:setIamPolicy",
  5036  	//   "httpMethod": "POST",
  5037  	//   "id": "servicebroker.setIamPolicy",
  5038  	//   "parameterOrder": [
  5039  	//     "resource"
  5040  	//   ],
  5041  	//   "parameters": {
  5042  	//     "resource": {
  5043  	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
  5044  	//       "location": "path",
  5045  	//       "pattern": "^.+$",
  5046  	//       "required": true,
  5047  	//       "type": "string"
  5048  	//     }
  5049  	//   },
  5050  	//   "path": "v1beta1/{+resource}:setIamPolicy",
  5051  	//   "request": {
  5052  	//     "$ref": "GoogleIamV1__SetIamPolicyRequest"
  5053  	//   },
  5054  	//   "response": {
  5055  	//     "$ref": "GoogleIamV1__Policy"
  5056  	//   },
  5057  	//   "scopes": [
  5058  	//     "https://www.googleapis.com/auth/cloud-platform"
  5059  	//   ]
  5060  	// }
  5061  
  5062  }
  5063  
  5064  // method id "servicebroker.testIamPermissions":
  5065  
  5066  type V1beta1TestIamPermissionsCall struct {
  5067  	s                                      *Service
  5068  	resource                               string
  5069  	googleiamv1__testiampermissionsrequest *GoogleIamV1__TestIamPermissionsRequest
  5070  	urlParams_                             gensupport.URLParams
  5071  	ctx_                                   context.Context
  5072  	header_                                http.Header
  5073  }
  5074  
  5075  // TestIamPermissions: Returns permissions that a caller has on the
  5076  // specified resource.
  5077  // If the resource does not exist, this will return an empty set
  5078  // of
  5079  // permissions, not a NOT_FOUND error.
  5080  //
  5081  // Note: This operation is designed to be used for building
  5082  // permission-aware
  5083  // UIs and command-line tools, not for authorization checking. This
  5084  // operation
  5085  // may "fail open" without warning.
  5086  func (r *V1beta1Service) TestIamPermissions(resource string, googleiamv1__testiampermissionsrequest *GoogleIamV1__TestIamPermissionsRequest) *V1beta1TestIamPermissionsCall {
  5087  	c := &V1beta1TestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5088  	c.resource = resource
  5089  	c.googleiamv1__testiampermissionsrequest = googleiamv1__testiampermissionsrequest
  5090  	return c
  5091  }
  5092  
  5093  // Fields allows partial responses to be retrieved. See
  5094  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5095  // for more information.
  5096  func (c *V1beta1TestIamPermissionsCall) Fields(s ...googleapi.Field) *V1beta1TestIamPermissionsCall {
  5097  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5098  	return c
  5099  }
  5100  
  5101  // Context sets the context to be used in this call's Do method. Any
  5102  // pending HTTP request will be aborted if the provided context is
  5103  // canceled.
  5104  func (c *V1beta1TestIamPermissionsCall) Context(ctx context.Context) *V1beta1TestIamPermissionsCall {
  5105  	c.ctx_ = ctx
  5106  	return c
  5107  }
  5108  
  5109  // Header returns an http.Header that can be modified by the caller to
  5110  // add HTTP headers to the request.
  5111  func (c *V1beta1TestIamPermissionsCall) Header() http.Header {
  5112  	if c.header_ == nil {
  5113  		c.header_ = make(http.Header)
  5114  	}
  5115  	return c.header_
  5116  }
  5117  
  5118  func (c *V1beta1TestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  5119  	reqHeaders := make(http.Header)
  5120  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  5121  	for k, v := range c.header_ {
  5122  		reqHeaders[k] = v
  5123  	}
  5124  	reqHeaders.Set("User-Agent", c.s.userAgent())
  5125  	var body io.Reader = nil
  5126  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1__testiampermissionsrequest)
  5127  	if err != nil {
  5128  		return nil, err
  5129  	}
  5130  	reqHeaders.Set("Content-Type", "application/json")
  5131  	c.urlParams_.Set("alt", alt)
  5132  	c.urlParams_.Set("prettyPrint", "false")
  5133  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
  5134  	urls += "?" + c.urlParams_.Encode()
  5135  	req, err := http.NewRequest("POST", urls, body)
  5136  	if err != nil {
  5137  		return nil, err
  5138  	}
  5139  	req.Header = reqHeaders
  5140  	googleapi.Expand(req.URL, map[string]string{
  5141  		"resource": c.resource,
  5142  	})
  5143  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5144  }
  5145  
  5146  // Do executes the "servicebroker.testIamPermissions" call.
  5147  // Exactly one of *GoogleIamV1__TestIamPermissionsResponse or error will
  5148  // be non-nil. Any non-2xx status code is an error. Response headers are
  5149  // in either
  5150  // *GoogleIamV1__TestIamPermissionsResponse.ServerResponse.Header or (if
  5151  // a response was returned at all) in error.(*googleapi.Error).Header.
  5152  // Use googleapi.IsNotModified to check whether the returned error was
  5153  // because http.StatusNotModified was returned.
  5154  func (c *V1beta1TestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1__TestIamPermissionsResponse, error) {
  5155  	gensupport.SetOptions(c.urlParams_, opts...)
  5156  	res, err := c.doRequest("json")
  5157  	if res != nil && res.StatusCode == http.StatusNotModified {
  5158  		if res.Body != nil {
  5159  			res.Body.Close()
  5160  		}
  5161  		return nil, &googleapi.Error{
  5162  			Code:   res.StatusCode,
  5163  			Header: res.Header,
  5164  		}
  5165  	}
  5166  	if err != nil {
  5167  		return nil, err
  5168  	}
  5169  	defer googleapi.CloseBody(res)
  5170  	if err := googleapi.CheckResponse(res); err != nil {
  5171  		return nil, err
  5172  	}
  5173  	ret := &GoogleIamV1__TestIamPermissionsResponse{
  5174  		ServerResponse: googleapi.ServerResponse{
  5175  			Header:         res.Header,
  5176  			HTTPStatusCode: res.StatusCode,
  5177  		},
  5178  	}
  5179  	target := &ret
  5180  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5181  		return nil, err
  5182  	}
  5183  	return ret, nil
  5184  	// {
  5185  	//   "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.",
  5186  	//   "flatPath": "v1beta1/{v1beta1Id}:testIamPermissions",
  5187  	//   "httpMethod": "POST",
  5188  	//   "id": "servicebroker.testIamPermissions",
  5189  	//   "parameterOrder": [
  5190  	//     "resource"
  5191  	//   ],
  5192  	//   "parameters": {
  5193  	//     "resource": {
  5194  	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
  5195  	//       "location": "path",
  5196  	//       "pattern": "^.+$",
  5197  	//       "required": true,
  5198  	//       "type": "string"
  5199  	//     }
  5200  	//   },
  5201  	//   "path": "v1beta1/{+resource}:testIamPermissions",
  5202  	//   "request": {
  5203  	//     "$ref": "GoogleIamV1__TestIamPermissionsRequest"
  5204  	//   },
  5205  	//   "response": {
  5206  	//     "$ref": "GoogleIamV1__TestIamPermissionsResponse"
  5207  	//   },
  5208  	//   "scopes": [
  5209  	//     "https://www.googleapis.com/auth/cloud-platform"
  5210  	//   ]
  5211  	// }
  5212  
  5213  }
  5214  

View as plain text