bigqueryreservation
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package bigqueryreservation provides access to the BigQuery Reservation API.
For product documentation, see:https://cloud.google.com/bigquery/
Creating a client¶
Usage example:
import "google.golang.org/api/bigqueryreservation/v1alpha2"...ctx := context.Background()bigqueryreservationService, err := bigqueryreservation.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
bigqueryreservationService, err := bigqueryreservation.NewService(ctx, option.WithScopes(bigqueryreservation.CloudPlatformScope))
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
bigqueryreservationService, err := bigqueryreservation.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)bigqueryreservationService, err := bigqueryreservation.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seehttps://godoc.org/google.golang.org/api/option/ for details on options.
Index¶
- Constants
- type CreateSlotPoolMetadata
- type Empty
- type ListReservationGrantsResponse
- type ListReservationsResponse
- type ListSlotPoolsResponse
- type Operation
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsService
- type ProjectsLocationsReservationGrantsCreateCall
- func (c *ProjectsLocationsReservationGrantsCreateCall) Context(ctx context.Context) *ProjectsLocationsReservationGrantsCreateCall
- func (c *ProjectsLocationsReservationGrantsCreateCall) Do(opts ...googleapi.CallOption) (*ReservationGrant, error)
- func (c *ProjectsLocationsReservationGrantsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationGrantsCreateCall
- func (c *ProjectsLocationsReservationGrantsCreateCall) Header() http.Header
- type ProjectsLocationsReservationGrantsDeleteCall
- func (c *ProjectsLocationsReservationGrantsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReservationGrantsDeleteCall
- func (c *ProjectsLocationsReservationGrantsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsReservationGrantsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationGrantsDeleteCall
- func (c *ProjectsLocationsReservationGrantsDeleteCall) Header() http.Header
- type ProjectsLocationsReservationGrantsListCall
- func (c *ProjectsLocationsReservationGrantsListCall) Context(ctx context.Context) *ProjectsLocationsReservationGrantsListCall
- func (c *ProjectsLocationsReservationGrantsListCall) Do(opts ...googleapi.CallOption) (*ListReservationGrantsResponse, error)
- func (c *ProjectsLocationsReservationGrantsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationGrantsListCall
- func (c *ProjectsLocationsReservationGrantsListCall) Header() http.Header
- func (c *ProjectsLocationsReservationGrantsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationGrantsListCall
- func (c *ProjectsLocationsReservationGrantsListCall) PageSize(pageSize int64) *ProjectsLocationsReservationGrantsListCall
- func (c *ProjectsLocationsReservationGrantsListCall) PageToken(pageToken string) *ProjectsLocationsReservationGrantsListCall
- func (c *ProjectsLocationsReservationGrantsListCall) Pages(ctx context.Context, f func(*ListReservationGrantsResponse) error) error
- type ProjectsLocationsReservationGrantsService
- func (r *ProjectsLocationsReservationGrantsService) Create(parent string, reservationgrant *ReservationGrant) *ProjectsLocationsReservationGrantsCreateCall
- func (r *ProjectsLocationsReservationGrantsService) Delete(name string) *ProjectsLocationsReservationGrantsDeleteCall
- func (r *ProjectsLocationsReservationGrantsService) List(parent string) *ProjectsLocationsReservationGrantsListCall
- type ProjectsLocationsReservationsCreateCall
- func (c *ProjectsLocationsReservationsCreateCall) Context(ctx context.Context) *ProjectsLocationsReservationsCreateCall
- func (c *ProjectsLocationsReservationsCreateCall) Do(opts ...googleapi.CallOption) (*Reservation, error)
- func (c *ProjectsLocationsReservationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsCreateCall
- func (c *ProjectsLocationsReservationsCreateCall) Header() http.Header
- func (c *ProjectsLocationsReservationsCreateCall) ReservationId(reservationId string) *ProjectsLocationsReservationsCreateCall
- type ProjectsLocationsReservationsCreateReservationCall
- func (c *ProjectsLocationsReservationsCreateReservationCall) Context(ctx context.Context) *ProjectsLocationsReservationsCreateReservationCall
- func (c *ProjectsLocationsReservationsCreateReservationCall) Do(opts ...googleapi.CallOption) (*Reservation, error)
- func (c *ProjectsLocationsReservationsCreateReservationCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsCreateReservationCall
- func (c *ProjectsLocationsReservationsCreateReservationCall) Header() http.Header
- func (c *ProjectsLocationsReservationsCreateReservationCall) ReservationId(reservationId string) *ProjectsLocationsReservationsCreateReservationCall
- type ProjectsLocationsReservationsDeleteCall
- func (c *ProjectsLocationsReservationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReservationsDeleteCall
- func (c *ProjectsLocationsReservationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsReservationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsDeleteCall
- func (c *ProjectsLocationsReservationsDeleteCall) Force(force bool) *ProjectsLocationsReservationsDeleteCall
- func (c *ProjectsLocationsReservationsDeleteCall) Header() http.Header
- type ProjectsLocationsReservationsGetCall
- func (c *ProjectsLocationsReservationsGetCall) Context(ctx context.Context) *ProjectsLocationsReservationsGetCall
- func (c *ProjectsLocationsReservationsGetCall) Do(opts ...googleapi.CallOption) (*Reservation, error)
- func (c *ProjectsLocationsReservationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsGetCall
- func (c *ProjectsLocationsReservationsGetCall) Header() http.Header
- func (c *ProjectsLocationsReservationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationsGetCall
- type ProjectsLocationsReservationsListCall
- func (c *ProjectsLocationsReservationsListCall) Context(ctx context.Context) *ProjectsLocationsReservationsListCall
- func (c *ProjectsLocationsReservationsListCall) Do(opts ...googleapi.CallOption) (*ListReservationsResponse, error)
- func (c *ProjectsLocationsReservationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsListCall
- func (c *ProjectsLocationsReservationsListCall) Filter(filter string) *ProjectsLocationsReservationsListCall
- func (c *ProjectsLocationsReservationsListCall) Header() http.Header
- func (c *ProjectsLocationsReservationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationsListCall
- func (c *ProjectsLocationsReservationsListCall) PageSize(pageSize int64) *ProjectsLocationsReservationsListCall
- func (c *ProjectsLocationsReservationsListCall) PageToken(pageToken string) *ProjectsLocationsReservationsListCall
- func (c *ProjectsLocationsReservationsListCall) Pages(ctx context.Context, f func(*ListReservationsResponse) error) error
- type ProjectsLocationsReservationsPatchCall
- func (c *ProjectsLocationsReservationsPatchCall) Context(ctx context.Context) *ProjectsLocationsReservationsPatchCall
- func (c *ProjectsLocationsReservationsPatchCall) Do(opts ...googleapi.CallOption) (*Reservation, error)
- func (c *ProjectsLocationsReservationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsPatchCall
- func (c *ProjectsLocationsReservationsPatchCall) Header() http.Header
- func (c *ProjectsLocationsReservationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsReservationsPatchCall
- type ProjectsLocationsReservationsService
- func (r *ProjectsLocationsReservationsService) Create(parent string, reservation *Reservation) *ProjectsLocationsReservationsCreateCall
- func (r *ProjectsLocationsReservationsService) CreateReservation(parent string, reservation *Reservation) *ProjectsLocationsReservationsCreateReservationCall
- func (r *ProjectsLocationsReservationsService) Delete(name string) *ProjectsLocationsReservationsDeleteCall
- func (r *ProjectsLocationsReservationsService) Get(name string) *ProjectsLocationsReservationsGetCall
- func (r *ProjectsLocationsReservationsService) List(parent string) *ProjectsLocationsReservationsListCall
- func (r *ProjectsLocationsReservationsService) Patch(name string, reservation *Reservation) *ProjectsLocationsReservationsPatchCall
- type ProjectsLocationsReservationsSlotPoolsDeleteCall
- func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReservationsSlotPoolsDeleteCall
- func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsSlotPoolsDeleteCall
- func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Header() http.Header
- type ProjectsLocationsReservationsSlotPoolsGetCall
- func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Context(ctx context.Context) *ProjectsLocationsReservationsSlotPoolsGetCall
- func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Do(opts ...googleapi.CallOption) (*SlotPool, error)
- func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsSlotPoolsGetCall
- func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Header() http.Header
- func (c *ProjectsLocationsReservationsSlotPoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationsSlotPoolsGetCall
- type ProjectsLocationsReservationsSlotPoolsListCall
- func (c *ProjectsLocationsReservationsSlotPoolsListCall) Context(ctx context.Context) *ProjectsLocationsReservationsSlotPoolsListCall
- func (c *ProjectsLocationsReservationsSlotPoolsListCall) Do(opts ...googleapi.CallOption) (*ListSlotPoolsResponse, error)
- func (c *ProjectsLocationsReservationsSlotPoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsSlotPoolsListCall
- func (c *ProjectsLocationsReservationsSlotPoolsListCall) Header() http.Header
- func (c *ProjectsLocationsReservationsSlotPoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReservationsSlotPoolsListCall
- func (c *ProjectsLocationsReservationsSlotPoolsListCall) PageSize(pageSize int64) *ProjectsLocationsReservationsSlotPoolsListCall
- func (c *ProjectsLocationsReservationsSlotPoolsListCall) PageToken(pageToken string) *ProjectsLocationsReservationsSlotPoolsListCall
- func (c *ProjectsLocationsReservationsSlotPoolsListCall) Pages(ctx context.Context, f func(*ListSlotPoolsResponse) error) error
- type ProjectsLocationsReservationsSlotPoolsService
- func (r *ProjectsLocationsReservationsSlotPoolsService) Delete(name string) *ProjectsLocationsReservationsSlotPoolsDeleteCall
- func (r *ProjectsLocationsReservationsSlotPoolsService) Get(name string) *ProjectsLocationsReservationsSlotPoolsGetCall
- func (r *ProjectsLocationsReservationsSlotPoolsService) List(parent string) *ProjectsLocationsReservationsSlotPoolsListCall
- type ProjectsLocationsSearchReservationGrantsCall
- func (c *ProjectsLocationsSearchReservationGrantsCall) Context(ctx context.Context) *ProjectsLocationsSearchReservationGrantsCall
- func (c *ProjectsLocationsSearchReservationGrantsCall) Do(opts ...googleapi.CallOption) (*SearchReservationGrantsResponse, error)
- func (c *ProjectsLocationsSearchReservationGrantsCall) Fields(s ...googleapi.Field) *ProjectsLocationsSearchReservationGrantsCall
- func (c *ProjectsLocationsSearchReservationGrantsCall) Header() http.Header
- func (c *ProjectsLocationsSearchReservationGrantsCall) IfNoneMatch(entityTag string) *ProjectsLocationsSearchReservationGrantsCall
- func (c *ProjectsLocationsSearchReservationGrantsCall) PageSize(pageSize int64) *ProjectsLocationsSearchReservationGrantsCall
- func (c *ProjectsLocationsSearchReservationGrantsCall) PageToken(pageToken string) *ProjectsLocationsSearchReservationGrantsCall
- func (c *ProjectsLocationsSearchReservationGrantsCall) Pages(ctx context.Context, f func(*SearchReservationGrantsResponse) error) error
- func (c *ProjectsLocationsSearchReservationGrantsCall) Query(query string) *ProjectsLocationsSearchReservationGrantsCall
- type ProjectsLocationsService
- type ProjectsService
- type Reservation
- type ReservationGrant
- type SearchReservationGrantsResponse
- type Service
- type SlotPool
- type Status
Constants¶
const (// View and manage your data in Google BigQueryBigqueryScope = "https://www.googleapis.com/auth/bigquery"// View and manage your data across Google Cloud Platform servicesCloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeCreateSlotPoolMetadata¶
type CreateSlotPoolMetadata struct {// SlotPool: Resource name of the slot pool that is being created. E.g.,// projects/myproject/locations/us-central1/reservations/foo/slotPools/12// 3SlotPoolstring `json:"slotPool,omitempty"`// ForceSendFields is a list of field names (e.g. "SlotPool") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SlotPool") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}CreateSlotPoolMetadata: The metadata for operation returned fromReservationService.CreateSlotPool.
func (*CreateSlotPoolMetadata)MarshalJSON¶
func (s *CreateSlotPoolMetadata) MarshalJSON() ([]byte,error)
typeEmpty¶
type Empty struct {// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`}Empty: A generic empty message that you can re-use to avoid definingduplicated empty messages in your APIs. A typical example is to useit as the request or the response type of an API method. Forinstance: service Foo { rpc Bar(google.protobuf.Empty) returns(google.protobuf.Empty); } The JSON representation for `Empty` isempty JSON object `{}`.
typeListReservationGrantsResponse¶
type ListReservationGrantsResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty// if there are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// ReservationGrants: List of reservation grants visible to the user.ReservationGrants []*ReservationGrant `json:"reservationGrants,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}ListReservationGrantsResponse: The response forReservationService.ListReservationGrants.
func (*ListReservationGrantsResponse)MarshalJSON¶
func (s *ListReservationGrantsResponse) MarshalJSON() ([]byte,error)
typeListReservationsResponse¶
type ListReservationsResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty// if there are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// Reservations: List of reservations visible to the user.Reservations []*Reservation `json:"reservations,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}ListReservationsResponse: The response forReservationService.ListReservations.
func (*ListReservationsResponse)MarshalJSON¶
func (s *ListReservationsResponse) MarshalJSON() ([]byte,error)
typeListSlotPoolsResponse¶
type ListSlotPoolsResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty// if there are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// SlotPools: List of slot pools visible to the user.SlotPools []*SlotPool `json:"slotPools,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}ListSlotPoolsResponse: The response forReservationService.ListSlotPools.
func (*ListSlotPoolsResponse)MarshalJSON¶
func (s *ListSlotPoolsResponse) MarshalJSON() ([]byte,error)
typeOperation¶
type Operation struct {// Done: If the value is `false`, it means the operation is still in// progress. If `true`, the operation is completed, and either `error`// or `response` is available.Donebool `json:"done,omitempty"`// Error: The error result of the operation in case of failure or// cancellation.Error *Status `json:"error,omitempty"`// Metadata: Service-specific metadata associated with the operation. It// typically contains progress information and common metadata such as// create time. Some services might not provide such metadata. Any// method that returns a long-running operation should document the// metadata type, if any.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: The server-assigned name, which is only unique within the same// service that originally returns it. If you use the default HTTP// mapping, the `name` should be a resource name ending with// `operations/{unique_id}`.Namestring `json:"name,omitempty"`// Response: The normal response of the operation in case of success. If// the original method returns no data on success, such as `Delete`, the// response is `google.protobuf.Empty`. If the original method is// standard `Get`/`Create`/`Update`, the response should be the// resource. For other methods, the response should have the type// `XxxResponse`, where `Xxx` is the original method name. For example,// if the original method name is `TakeSnapshot()`, the inferred// response type is `TakeSnapshotResponse`.Responsegoogleapi.RawMessage `json:"response,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Done") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Done") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Operation: This resource represents a long-running operation that isthe result of a network API call.
func (*Operation)MarshalJSON¶
typeProjectsLocationsOperationsCancelCall¶
type ProjectsLocationsOperationsCancelCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsCancelCall)Context¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsOperationsCancelCall)Do¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "bigqueryreservation.projects.locations.operations.cancel" call.Exactly one of *Empty or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*ProjectsLocationsOperationsCancelCall)Fields¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsOperationsCancelCall)Header¶
func (c *ProjectsLocationsOperationsCancelCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeProjectsLocationsOperationsGetCall¶
type ProjectsLocationsOperationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsGetCall)Context¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsOperationsGetCall)Do¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "bigqueryreservation.projects.locations.operations.get" call.Exactly one of *Operation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall)Fields¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsOperationsGetCall)Header¶
func (c *ProjectsLocationsOperationsGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ProjectsLocationsOperationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeProjectsLocationsOperationsService¶
type ProjectsLocationsOperationsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsOperationsService¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService)Cancel¶
func (r *ProjectsLocationsOperationsService) Cancel(namestring) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation.The server makes a best effort to cancel the operation, but successis not guaranteed. If the server doesn't support this method, itreturns `google.rpc.Code.UNIMPLEMENTED`. Clients can useOperations.GetOperation or other methods to check whether thecancellation succeeded or whether the operation completed despitecancellation. On successful cancellation, the operation is notdeleted; instead, it becomes an operation with an Operation.errorvalue with a google.rpc.Status.code of 1, corresponding to`Code.CANCELLED`.
func (*ProjectsLocationsOperationsService)Get¶
func (r *ProjectsLocationsOperationsService) Get(namestring) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients canuse this method to poll the operation result at intervals asrecommended by the API service.
typeProjectsLocationsReservationGrantsCreateCall¶
type ProjectsLocationsReservationGrantsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationGrantsCreateCall)Context¶
func (c *ProjectsLocationsReservationGrantsCreateCall) Context(ctxcontext.Context) *ProjectsLocationsReservationGrantsCreateCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationGrantsCreateCall)Do¶
func (c *ProjectsLocationsReservationGrantsCreateCall) Do(opts ...googleapi.CallOption) (*ReservationGrant,error)
Do executes the "bigqueryreservation.projects.locations.reservationGrants.create" call.Exactly one of *ReservationGrant or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*ReservationGrant.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*ProjectsLocationsReservationGrantsCreateCall)Fields¶
func (c *ProjectsLocationsReservationGrantsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationGrantsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationGrantsCreateCall)Header¶
func (c *ProjectsLocationsReservationGrantsCreateCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeProjectsLocationsReservationGrantsDeleteCall¶
type ProjectsLocationsReservationGrantsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationGrantsDeleteCall)Context¶
func (c *ProjectsLocationsReservationGrantsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsReservationGrantsDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationGrantsDeleteCall)Do¶
func (c *ProjectsLocationsReservationGrantsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "bigqueryreservation.projects.locations.reservationGrants.delete" call.Exactly one of *Empty or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*ProjectsLocationsReservationGrantsDeleteCall)Fields¶
func (c *ProjectsLocationsReservationGrantsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationGrantsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationGrantsDeleteCall)Header¶
func (c *ProjectsLocationsReservationGrantsDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeProjectsLocationsReservationGrantsListCall¶
type ProjectsLocationsReservationGrantsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationGrantsListCall)Context¶
func (c *ProjectsLocationsReservationGrantsListCall) Context(ctxcontext.Context) *ProjectsLocationsReservationGrantsListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationGrantsListCall)Do¶
func (c *ProjectsLocationsReservationGrantsListCall) Do(opts ...googleapi.CallOption) (*ListReservationGrantsResponse,error)
Do executes the "bigqueryreservation.projects.locations.reservationGrants.list" call.Exactly one of *ListReservationGrantsResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *ListReservationGrantsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*ProjectsLocationsReservationGrantsListCall)Fields¶
func (c *ProjectsLocationsReservationGrantsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationGrantsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationGrantsListCall)Header¶
func (c *ProjectsLocationsReservationGrantsListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ProjectsLocationsReservationGrantsListCall)IfNoneMatch¶
func (c *ProjectsLocationsReservationGrantsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsReservationGrantsListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*ProjectsLocationsReservationGrantsListCall)PageSize¶
func (c *ProjectsLocationsReservationGrantsListCall) PageSize(pageSizeint64) *ProjectsLocationsReservationGrantsListCall
PageSize sets the optional parameter "pageSize": The maximum numberof items to return.
func (*ProjectsLocationsReservationGrantsListCall)PageToken¶
func (c *ProjectsLocationsReservationGrantsListCall) PageToken(pageTokenstring) *ProjectsLocationsReservationGrantsListCall
PageToken sets the optional parameter "pageToken": Thenext_page_token value returned from a previous List request, if any.
func (*ProjectsLocationsReservationGrantsListCall)Pages¶
func (c *ProjectsLocationsReservationGrantsListCall) Pages(ctxcontext.Context, f func(*ListReservationGrantsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsReservationGrantsService¶
type ProjectsLocationsReservationGrantsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsReservationGrantsService¶
func NewProjectsLocationsReservationGrantsService(s *Service) *ProjectsLocationsReservationGrantsService
func (*ProjectsLocationsReservationGrantsService)Create¶
func (r *ProjectsLocationsReservationGrantsService) Create(parentstring, reservationgrant *ReservationGrant) *ProjectsLocationsReservationGrantsCreateCall
Create: Returns `google.rpc.Code.PERMISSION_DENIED` if user does nothave 'bigquery.admin' permissions on the project using thereservation and the project that owns this reservation. Returns`google.rpc.Code.INVALID_ARGUMENT` when location of the grant doesnot match location of the reservation.
func (*ProjectsLocationsReservationGrantsService)Delete¶
func (r *ProjectsLocationsReservationGrantsService) Delete(namestring) *ProjectsLocationsReservationGrantsDeleteCall
Delete: Deletes a reservation grant. No expansion will happen. E.g:organizationA contains project1 and project2. Reservation res1exists. CreateReservationGrant was invoked previously and followinggrants were created explicitly: Then deletion of won't affect . Afterdeletion of , queries from project1 will still use res1, whilequeries from project2 will use on-demand mode.
func (*ProjectsLocationsReservationGrantsService)List¶
func (r *ProjectsLocationsReservationGrantsService) List(parentstring) *ProjectsLocationsReservationGrantsListCall
List: Lists reservation grants. Only explicitly created grants willbe returned. E.g: organizationA contains project1 and project2.Reservation res1 exists. CreateReservationGrant was invokedpreviously and following grants were created explicitly: Then thisAPI will just return the above two grants for reservation res1, andno expansion/merge will happen.
typeProjectsLocationsReservationsCreateCall¶
type ProjectsLocationsReservationsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationsCreateCall)Context¶
func (c *ProjectsLocationsReservationsCreateCall) Context(ctxcontext.Context) *ProjectsLocationsReservationsCreateCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationsCreateCall)Do¶
func (c *ProjectsLocationsReservationsCreateCall) Do(opts ...googleapi.CallOption) (*Reservation,error)
Do executes the "bigqueryreservation.projects.locations.reservations.create" call.Exactly one of *Reservation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Reservation.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsReservationsCreateCall)Fields¶
func (c *ProjectsLocationsReservationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationsCreateCall)Header¶
func (c *ProjectsLocationsReservationsCreateCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ProjectsLocationsReservationsCreateCall)ReservationId¶
func (c *ProjectsLocationsReservationsCreateCall) ReservationId(reservationIdstring) *ProjectsLocationsReservationsCreateCall
ReservationId sets the optional parameter "reservationId": Thereservation ID relative to the parent, e.g., "dev". This field mustonly contain alphanumeric characters.
typeProjectsLocationsReservationsCreateReservationCall¶
type ProjectsLocationsReservationsCreateReservationCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationsCreateReservationCall)Context¶
func (c *ProjectsLocationsReservationsCreateReservationCall) Context(ctxcontext.Context) *ProjectsLocationsReservationsCreateReservationCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationsCreateReservationCall)Do¶
func (c *ProjectsLocationsReservationsCreateReservationCall) Do(opts ...googleapi.CallOption) (*Reservation,error)
Do executes the "bigqueryreservation.projects.locations.reservations.createReservation" call.Exactly one of *Reservation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Reservation.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsReservationsCreateReservationCall)Fields¶
func (c *ProjectsLocationsReservationsCreateReservationCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsCreateReservationCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationsCreateReservationCall)Header¶
func (c *ProjectsLocationsReservationsCreateReservationCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ProjectsLocationsReservationsCreateReservationCall)ReservationId¶
func (c *ProjectsLocationsReservationsCreateReservationCall) ReservationId(reservationIdstring) *ProjectsLocationsReservationsCreateReservationCall
ReservationId sets the optional parameter "reservationId": Thereservation ID relative to the parent, e.g., "dev". This field mustonly contain alphanumeric characters.
typeProjectsLocationsReservationsDeleteCall¶
type ProjectsLocationsReservationsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationsDeleteCall)Context¶
func (c *ProjectsLocationsReservationsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsReservationsDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationsDeleteCall)Do¶
func (c *ProjectsLocationsReservationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "bigqueryreservation.projects.locations.reservations.delete" call.Exactly one of *Empty or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*ProjectsLocationsReservationsDeleteCall)Fields¶
func (c *ProjectsLocationsReservationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationsDeleteCall)Force¶
func (c *ProjectsLocationsReservationsDeleteCall) Force(forcebool) *ProjectsLocationsReservationsDeleteCall
Force sets the optional parameter "force": If true, deletes all thechild reservations of the given reservation. Otherwise, attempting todelete a reservation that has child reservations will fail with errorcode `google.rpc.Code.FAILED_PRECONDITION`.
func (*ProjectsLocationsReservationsDeleteCall)Header¶
func (c *ProjectsLocationsReservationsDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeProjectsLocationsReservationsGetCall¶
type ProjectsLocationsReservationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationsGetCall)Context¶
func (c *ProjectsLocationsReservationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsReservationsGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationsGetCall)Do¶
func (c *ProjectsLocationsReservationsGetCall) Do(opts ...googleapi.CallOption) (*Reservation,error)
Do executes the "bigqueryreservation.projects.locations.reservations.get" call.Exactly one of *Reservation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Reservation.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsReservationsGetCall)Fields¶
func (c *ProjectsLocationsReservationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationsGetCall)Header¶
func (c *ProjectsLocationsReservationsGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ProjectsLocationsReservationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsReservationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsReservationsGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeProjectsLocationsReservationsListCall¶
type ProjectsLocationsReservationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationsListCall)Context¶
func (c *ProjectsLocationsReservationsListCall) Context(ctxcontext.Context) *ProjectsLocationsReservationsListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationsListCall)Do¶
func (c *ProjectsLocationsReservationsListCall) Do(opts ...googleapi.CallOption) (*ListReservationsResponse,error)
Do executes the "bigqueryreservation.projects.locations.reservations.list" call.Exactly one of *ListReservationsResponse or error will be non-nil.Any non-2xx status code is an error. Response headers are in either*ListReservationsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*ProjectsLocationsReservationsListCall)Fields¶
func (c *ProjectsLocationsReservationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationsListCall)Filter¶
func (c *ProjectsLocationsReservationsListCall) Filter(filterstring) *ProjectsLocationsReservationsListCall
Filter sets the optional parameter "filter": Can be used to filterout reservations based on names, capacity, etc, e.g.:filter="reservation.slot_capacity > 200" filter="reservation.name =\"*dev/*\"" Advanced filtering syntax can be[here](https://cloud.google.com/logging/docs/view/advanced-filters).
func (*ProjectsLocationsReservationsListCall)Header¶
func (c *ProjectsLocationsReservationsListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ProjectsLocationsReservationsListCall)IfNoneMatch¶
func (c *ProjectsLocationsReservationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsReservationsListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*ProjectsLocationsReservationsListCall)PageSize¶
func (c *ProjectsLocationsReservationsListCall) PageSize(pageSizeint64) *ProjectsLocationsReservationsListCall
PageSize sets the optional parameter "pageSize": The maximum numberof items to return.
func (*ProjectsLocationsReservationsListCall)PageToken¶
func (c *ProjectsLocationsReservationsListCall) PageToken(pageTokenstring) *ProjectsLocationsReservationsListCall
PageToken sets the optional parameter "pageToken": Thenext_page_token value returned from a previous List request, if any.
func (*ProjectsLocationsReservationsListCall)Pages¶
func (c *ProjectsLocationsReservationsListCall) Pages(ctxcontext.Context, f func(*ListReservationsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsReservationsPatchCall¶
type ProjectsLocationsReservationsPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationsPatchCall)Context¶
func (c *ProjectsLocationsReservationsPatchCall) Context(ctxcontext.Context) *ProjectsLocationsReservationsPatchCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationsPatchCall)Do¶
func (c *ProjectsLocationsReservationsPatchCall) Do(opts ...googleapi.CallOption) (*Reservation,error)
Do executes the "bigqueryreservation.projects.locations.reservations.patch" call.Exactly one of *Reservation or error will be non-nil. Any non-2xxstatus code is an error. Response headers are in either*Reservation.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsReservationsPatchCall)Fields¶
func (c *ProjectsLocationsReservationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationsPatchCall)Header¶
func (c *ProjectsLocationsReservationsPatchCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ProjectsLocationsReservationsPatchCall)UpdateMask¶
func (c *ProjectsLocationsReservationsPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsReservationsPatchCall
UpdateMask sets the optional parameter "updateMask": Standard fieldmask for the set of fields to be updated.
typeProjectsLocationsReservationsService¶
type ProjectsLocationsReservationsService struct {SlotPools *ProjectsLocationsReservationsSlotPoolsService// contains filtered or unexported fields}funcNewProjectsLocationsReservationsService¶
func NewProjectsLocationsReservationsService(s *Service) *ProjectsLocationsReservationsService
func (*ProjectsLocationsReservationsService)Create¶
func (r *ProjectsLocationsReservationsService) Create(parentstring, reservation *Reservation) *ProjectsLocationsReservationsCreateCall
Create: Creates a new reservation resource. Multiple reservations arecreated if the ancestor reservations do not exist.
func (*ProjectsLocationsReservationsService)CreateReservation¶
func (r *ProjectsLocationsReservationsService) CreateReservation(parentstring, reservation *Reservation) *ProjectsLocationsReservationsCreateReservationCall
CreateReservation: Creates a new reservation resource. Multiplereservations are created if the ancestor reservations do not exist.
func (*ProjectsLocationsReservationsService)Delete¶
func (r *ProjectsLocationsReservationsService) Delete(namestring) *ProjectsLocationsReservationsDeleteCall
Delete: Deletes a reservation. Returns`google.rpc.Code.FAILED_PRECONDITION` in the following cases: 1. Whenreservation has child reservations. This check can be bypassed bysetting DeleteReservationRequest.force flag to true. 2. Whentop-level reservation with slot pools is being deleted.
func (*ProjectsLocationsReservationsService)Get¶
func (r *ProjectsLocationsReservationsService) Get(namestring) *ProjectsLocationsReservationsGetCall
Get: Returns information about the reservation.
func (*ProjectsLocationsReservationsService)List¶
func (r *ProjectsLocationsReservationsService) List(parentstring) *ProjectsLocationsReservationsListCall
List: Lists all the reservations for the project in the specifiedlocation.
func (*ProjectsLocationsReservationsService)Patch¶
func (r *ProjectsLocationsReservationsService) Patch(namestring, reservation *Reservation) *ProjectsLocationsReservationsPatchCall
Patch: Updates an existing reservation resource. Applicable only forchild reservations.
typeProjectsLocationsReservationsSlotPoolsDeleteCall¶
type ProjectsLocationsReservationsSlotPoolsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationsSlotPoolsDeleteCall)Context¶
func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsReservationsSlotPoolsDeleteCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationsSlotPoolsDeleteCall)Do¶
func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "bigqueryreservation.projects.locations.reservations.slotPools.delete" call.Exactly one of *Empty or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.
func (*ProjectsLocationsReservationsSlotPoolsDeleteCall)Fields¶
func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsSlotPoolsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationsSlotPoolsDeleteCall)Header¶
func (c *ProjectsLocationsReservationsSlotPoolsDeleteCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
typeProjectsLocationsReservationsSlotPoolsGetCall¶
type ProjectsLocationsReservationsSlotPoolsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationsSlotPoolsGetCall)Context¶
func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Context(ctxcontext.Context) *ProjectsLocationsReservationsSlotPoolsGetCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationsSlotPoolsGetCall)Do¶
func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Do(opts ...googleapi.CallOption) (*SlotPool,error)
Do executes the "bigqueryreservation.projects.locations.reservations.slotPools.get" call.Exactly one of *SlotPool or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*SlotPool.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModifiedto check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsReservationsSlotPoolsGetCall)Fields¶
func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsSlotPoolsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationsSlotPoolsGetCall)Header¶
func (c *ProjectsLocationsReservationsSlotPoolsGetCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ProjectsLocationsReservationsSlotPoolsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsReservationsSlotPoolsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsReservationsSlotPoolsGetCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
typeProjectsLocationsReservationsSlotPoolsListCall¶
type ProjectsLocationsReservationsSlotPoolsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsReservationsSlotPoolsListCall)Context¶
func (c *ProjectsLocationsReservationsSlotPoolsListCall) Context(ctxcontext.Context) *ProjectsLocationsReservationsSlotPoolsListCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsReservationsSlotPoolsListCall)Do¶
func (c *ProjectsLocationsReservationsSlotPoolsListCall) Do(opts ...googleapi.CallOption) (*ListSlotPoolsResponse,error)
Do executes the "bigqueryreservation.projects.locations.reservations.slotPools.list" call.Exactly one of *ListSlotPoolsResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*ListSlotPoolsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*ProjectsLocationsReservationsSlotPoolsListCall)Fields¶
func (c *ProjectsLocationsReservationsSlotPoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsSlotPoolsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsReservationsSlotPoolsListCall)Header¶
func (c *ProjectsLocationsReservationsSlotPoolsListCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ProjectsLocationsReservationsSlotPoolsListCall)IfNoneMatch¶
func (c *ProjectsLocationsReservationsSlotPoolsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsReservationsSlotPoolsListCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*ProjectsLocationsReservationsSlotPoolsListCall)PageSize¶
func (c *ProjectsLocationsReservationsSlotPoolsListCall) PageSize(pageSizeint64) *ProjectsLocationsReservationsSlotPoolsListCall
PageSize sets the optional parameter "pageSize": The maximum numberof items to return.
func (*ProjectsLocationsReservationsSlotPoolsListCall)PageToken¶
func (c *ProjectsLocationsReservationsSlotPoolsListCall) PageToken(pageTokenstring) *ProjectsLocationsReservationsSlotPoolsListCall
PageToken sets the optional parameter "pageToken": Thenext_page_token value returned from a previous List request, if any.
func (*ProjectsLocationsReservationsSlotPoolsListCall)Pages¶
func (c *ProjectsLocationsReservationsSlotPoolsListCall) Pages(ctxcontext.Context, f func(*ListSlotPoolsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsReservationsSlotPoolsService¶
type ProjectsLocationsReservationsSlotPoolsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsReservationsSlotPoolsService¶
func NewProjectsLocationsReservationsSlotPoolsService(s *Service) *ProjectsLocationsReservationsSlotPoolsService
func (*ProjectsLocationsReservationsSlotPoolsService)Delete¶
func (r *ProjectsLocationsReservationsSlotPoolsService) Delete(namestring) *ProjectsLocationsReservationsSlotPoolsDeleteCall
Delete: Deletes a slot pool. Attempting to delete slot pool beforeits commitment_end_time will fail with the error code`google.rpc.Code.FAILED_PRECONDITION`.
func (*ProjectsLocationsReservationsSlotPoolsService)Get¶
func (r *ProjectsLocationsReservationsSlotPoolsService) Get(namestring) *ProjectsLocationsReservationsSlotPoolsGetCall
Get: Returns information about the slot pool.
func (*ProjectsLocationsReservationsSlotPoolsService)List¶
func (r *ProjectsLocationsReservationsSlotPoolsService) List(parentstring) *ProjectsLocationsReservationsSlotPoolsListCall
List: Lists all the slot pools for the reservation.
typeProjectsLocationsSearchReservationGrantsCall¶
type ProjectsLocationsSearchReservationGrantsCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsSearchReservationGrantsCall)Context¶
func (c *ProjectsLocationsSearchReservationGrantsCall) Context(ctxcontext.Context) *ProjectsLocationsSearchReservationGrantsCall
Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.
func (*ProjectsLocationsSearchReservationGrantsCall)Do¶
func (c *ProjectsLocationsSearchReservationGrantsCall) Do(opts ...googleapi.CallOption) (*SearchReservationGrantsResponse,error)
Do executes the "bigqueryreservation.projects.locations.searchReservationGrants" call.Exactly one of *SearchReservationGrantsResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *SearchReservationGrantsResponse.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.
func (*ProjectsLocationsSearchReservationGrantsCall)Fields¶
func (c *ProjectsLocationsSearchReservationGrantsCall) Fields(s ...googleapi.Field) *ProjectsLocationsSearchReservationGrantsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.
func (*ProjectsLocationsSearchReservationGrantsCall)Header¶
func (c *ProjectsLocationsSearchReservationGrantsCall) Header()http.Header
Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.
func (*ProjectsLocationsSearchReservationGrantsCall)IfNoneMatch¶
func (c *ProjectsLocationsSearchReservationGrantsCall) IfNoneMatch(entityTagstring) *ProjectsLocationsSearchReservationGrantsCall
IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.
func (*ProjectsLocationsSearchReservationGrantsCall)PageSize¶
func (c *ProjectsLocationsSearchReservationGrantsCall) PageSize(pageSizeint64) *ProjectsLocationsSearchReservationGrantsCall
PageSize sets the optional parameter "pageSize": The maximum numberof items to return.
func (*ProjectsLocationsSearchReservationGrantsCall)PageToken¶
func (c *ProjectsLocationsSearchReservationGrantsCall) PageToken(pageTokenstring) *ProjectsLocationsSearchReservationGrantsCall
PageToken sets the optional parameter "pageToken": Thenext_page_token value returned from a previous List request, if any.
func (*ProjectsLocationsSearchReservationGrantsCall)Pages¶
func (c *ProjectsLocationsSearchReservationGrantsCall) Pages(ctxcontext.Context, f func(*SearchReservationGrantsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*ProjectsLocationsSearchReservationGrantsCall)Query¶
func (c *ProjectsLocationsSearchReservationGrantsCall) Query(querystring) *ProjectsLocationsSearchReservationGrantsCall
Query sets the optional parameter "query": Please specify resourcename as grantee in the query. e.g., "grantee=projects/myproject""grantee=folders/123" "grantee=organizations/456"
typeProjectsLocationsService¶
type ProjectsLocationsService struct {Operations *ProjectsLocationsOperationsServiceReservationGrants *ProjectsLocationsReservationGrantsServiceReservations *ProjectsLocationsReservationsService// contains filtered or unexported fields}funcNewProjectsLocationsService¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService)SearchReservationGrants¶
func (r *ProjectsLocationsService) SearchReservationGrants(parentstring) *ProjectsLocationsSearchReservationGrantsCall
SearchReservationGrants: Look up grants for a specified resource fora particular region. If the request is about a project: 1) Grantscreated on the project will be returned if they exist. 2) Otherwisegrants created on the closest ancestor will be returned. 3) Grantsfor different JobTypes will all be returned. Same logic applies ifthe request is about a folder. If the request is about anorganization, then grants created on the organization will bereturned (organization doesn't have ancestors). Comparing toListReservationGrants, there are two behavior differences: 1)permission on the grantee will be verified in this API. 2) Hierarchylookup (project->folder->organization) happens in this API.
typeProjectsService¶
type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}funcNewProjectsService¶
func NewProjectsService(s *Service) *ProjectsService
typeReservation¶
type Reservation struct {// Name: The resource name of the reservation, e.g.,// "projects/*/locations/*/reservations/dev/team/product". Reservation// names (e.g., "dev/team/product") exceeding a depth of six will fail// with `google.rpc.Code.INVALID_ARGUMENT`.Namestring `json:"name,omitempty"`// SlotCapacity: Maximum slots available to this reservation and its// children. A slot is a unit of computational power in BigQuery, and// serves as the unit of parallelism. In a scan of a multi-partitioned// table, a single slot operates on a single partition of the table. If// the new reservation's slot capacity exceed the parent's slot capacity// or if total slot capacity of the new reservation and its siblings// exceeds the parent's slot capacity, the request will fail with// `google.rpc.Code.RESOURCE_EXHAUSTED`.SlotCapacityint64 `json:"slotCapacity,omitempty,string"`// UseParentReservation: If true, any query using this reservation will// also be submitted to the parent reservation. This allows the query to// share the additional slot capacity of the parent with other queries// in the parent reservation. If the parent also has this field set to// true, then this process will continue until it encounters a// reservation for which this is false. If false, a query using this// reservation will execute with the maximum slot capacity as specified// above. If not specified, default value is true. Ignored for top-level// reservation.UseParentReservationbool `json:"useParentReservation,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Name") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Reservation: A reservation is a mechanism used to guarantee slots tousers.
func (*Reservation)MarshalJSON¶
func (s *Reservation) MarshalJSON() ([]byte,error)
typeReservationGrant¶
type ReservationGrant struct {// Grantee: The resource which will use the reservation. E.g.// projects/myproject, folders/123, organizations/456.Granteestring `json:"grantee,omitempty"`// JobType: Which type of jobs will use the reservation.//// Possible values:// "JOB_TYPE_UNSPECIFIED" - Invalid type. Requests with this value// will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.// "PIPELINE" - Pipeline (load/export) jobs from the project will use// the reservation.// "QUERY" - Query jobs from the project will use the reservation.JobTypestring `json:"jobType,omitempty"`// Name: Output only. Name of the resource. E.g.:// projects/myproject/locations/eu/reservationGrants/123.Namestring `json:"name,omitempty"`// Reservation: Resource name of the reservation. E.g.,// projects/myproject/locations/eu/reservations/my_reservation. This// reservation must be in the same location as the grant. This// reservation should belong to the same parent project.Reservationstring `json:"reservation,omitempty"`// State: Output only. State of the ReservationGrant.//// Possible values:// "STATE_UNSPECIFIED" - Invalid state value.// "PENDING" - Queries from grantee will be executed as on-demand, if// related ReservationGrant is pending.// "ACTIVE" - ReservationGrant is ready.Statestring `json:"state,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Grantee") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Grantee") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}ReservationGrant: A ReservationGrant allows a project to submit jobsof a certain type using slots from the specified reservation.
func (*ReservationGrant)MarshalJSON¶
func (s *ReservationGrant) MarshalJSON() ([]byte,error)
typeSearchReservationGrantsResponse¶
type SearchReservationGrantsResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty// if there are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// ReservationGrants: List of reservation grants visible to the user.ReservationGrants []*ReservationGrant `json:"reservationGrants,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}SearchReservationGrantsResponse: The response forReservationService.SearchReservationGrants.
func (*SearchReservationGrantsResponse)MarshalJSON¶
func (s *SearchReservationGrantsResponse) MarshalJSON() ([]byte,error)
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶
NewService creates a new Service.
typeSlotPool¶
type SlotPool struct {// CommitmentEndTime: Output only. The end of the commitment period.// Slot pool cannot be removed before commitment_end_time. It is// applicable only for ACTIVE slot pools and is computed as a// combination of the plan and the time when the slot pool became// ACTIVE.CommitmentEndTimestring `json:"commitmentEndTime,omitempty"`// FailureStatus: Output only. For FAILED slot pool, provides the reason// of failure.FailureStatus *Status `json:"failureStatus,omitempty"`// Name: Output only. The resource name of the slot pool, e.g.,// projects/myproject/locations/us-central1/reservations/myreservation/sl// otPools/123Namestring `json:"name,omitempty"`// Plan: Slot pool commitment plan.//// Possible values:// "COMMITMENT_PLAN_UNSPECIFIED" - Invalid plan value. Requests with// this value will be rejected with error code// `google.rpc.Code.INVALID_ARGUMENT`.// "FLEX" - Slot pool can be removed at any point, even after becoming// ACTIVE.// "TRIAL" - Trial commitments have a committed period of 182 days// after becoming ACTIVE. After that, they are converted to a new// commitment based on the renewal_plan. Default renewal_plan for Trial// commitment is Flex so that it can be deleted right after committed// period ends.// "MONTHLY" - Slot pool cannot be removed for 30 days after becoming// ACTIVE.// "ANNUAL" - Slot pool cannot be removed for 365 days after becoming// ACTIVE. Note: annual commitments are automatically downgraded to// monthly after 365 days.Planstring `json:"plan,omitempty"`// SlotCount: Number of slots in this pool.SlotCountint64 `json:"slotCount,omitempty,string"`// State: Output only.//// Possible values:// "STATE_UNSPECIFIED" - Invalid state value.// "PENDING" - Slot pool is pending provisioning. Pending slot pool// does not contribute to the parent's slot_capacity.// "ACTIVE" - Once slots are provisioned, slot pool becomes active.// slot_count is added to the parent's slot_capacity.// "FAILED" - Slot pool is failed to be activated by the backend.Statestring `json:"state,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CommitmentEndTime")// to unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CommitmentEndTime") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}SlotPool: Slot pool is a way to purchase slots with some minimumcommitted period of usage. Slot pool is immutable and cannot bedeleted until the end of the commitment period. After the end of thecommitment period, slots are still available but can be freelyremoved any time. Annual commitments will automatically be downgradedto monthly after the commitment ends. A slot pool resource exists asa child resource of a top-level reservation. Sum of all the ACTIVEpools slot_count is always equal to the reservation slot_capacity.
func (*SlotPool)MarshalJSON¶
typeStatus¶
type Status struct {// Code: The status code, which should be an enum value of// google.rpc.Code.Codeint64 `json:"code,omitempty"`// Details: A list of messages that carry the error details. There is a// common set of message types for APIs to use.Details []googleapi.RawMessage `json:"details,omitempty"`// Message: A developer-facing error message, which should be in// English. Any user-facing error message should be localized and sent// in the google.rpc.Status.details field, or localized by the client.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}Status: The `Status` type defines a logical error model that issuitable for different programming environments, including REST APIsand RPC APIs. It is used by [gRPC](https://github.com/grpc). Each`Status` message contains three pieces of data: error code, errormessage, and error details. You can find out more about this errormodel and how to work with it in the [API DesignGuide](https://cloud.google.com/apis/design/errors).