Documentation ¶
Overview ¶
Package baremetalsolution provides access to the Bare Metal Solution API.
For product documentation, see: https://cloud.google.com/bare-metal
Creating a client ¶
Usage example:
import "google.golang.org/api/baremetalsolution/v2" ... ctx := context.Background() baremetalsolutionService, err := baremetalsolution.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
baremetalsolutionService, err := baremetalsolution.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, ...) baremetalsolutionService, err := baremetalsolution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type CancelOperationRequest
- type Empty
- type Instance
- type ListInstancesResponse
- type ListLocationsResponse
- type ListLunsResponse
- type ListNetworksResponse
- type ListOperationsResponse
- type ListSnapshotSchedulePoliciesResponse
- type ListVolumeSnapshotsResponse
- type ListVolumesResponse
- type Location
- type Lun
- type Network
- type Operation
- type ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
- func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Header() http.Header
- func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
- type ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error)
- func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Header() http.Header
- func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetCall
- type ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Context(ctx context.Context) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error)
- func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Header() http.Header
- func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.Context, f func(*ListInstancesResponse) error) error
- type ProjectsLocationsInstancesResetCall
- func (c *ProjectsLocationsInstancesResetCall) Context(ctx context.Context) *ProjectsLocationsInstancesResetCall
- func (c *ProjectsLocationsInstancesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesResetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesResetCall
- func (c *ProjectsLocationsInstancesResetCall) Header() http.Header
- type ProjectsLocationsInstancesService
- func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall
- func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall
- func (r *ProjectsLocationsInstancesService) Reset(name string, resetinstancerequest *ResetInstanceRequest) *ProjectsLocationsInstancesResetCall
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Header() http.Header
- func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
- type ProjectsLocationsNetworksGetCall
- func (c *ProjectsLocationsNetworksGetCall) Context(ctx context.Context) *ProjectsLocationsNetworksGetCall
- func (c *ProjectsLocationsNetworksGetCall) Do(opts ...googleapi.CallOption) (*Network, error)
- func (c *ProjectsLocationsNetworksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksGetCall
- func (c *ProjectsLocationsNetworksGetCall) Header() http.Header
- func (c *ProjectsLocationsNetworksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworksGetCall
- type ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) Context(ctx context.Context) *ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) Do(opts ...googleapi.CallOption) (*ListNetworksResponse, error)
- func (c *ProjectsLocationsNetworksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) Header() http.Header
- func (c *ProjectsLocationsNetworksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) PageSize(pageSize int64) *ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) PageToken(pageToken string) *ProjectsLocationsNetworksListCall
- func (c *ProjectsLocationsNetworksListCall) Pages(ctx context.Context, f func(*ListNetworksResponse) error) error
- type ProjectsLocationsNetworksService
- 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 ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) 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 ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsService
- type ProjectsLocationsSnapshotSchedulePoliciesCreateCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsSnapshotSchedulePoliciesCreateCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
- func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSnapshotSchedulePoliciesCreateCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Header() http.Header
- func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) SnapshotSchedulePolicyId(snapshotSchedulePolicyId string) *ProjectsLocationsSnapshotSchedulePoliciesCreateCall
- type ProjectsLocationsSnapshotSchedulePoliciesDeleteCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Header() http.Header
- type ProjectsLocationsSnapshotSchedulePoliciesGetCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsSnapshotSchedulePoliciesGetCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
- func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSnapshotSchedulePoliciesGetCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) Header() http.Header
- func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSnapshotSchedulePoliciesGetCall
- type ProjectsLocationsSnapshotSchedulePoliciesListCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Context(ctx context.Context) *ProjectsLocationsSnapshotSchedulePoliciesListCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Do(opts ...googleapi.CallOption) (*ListSnapshotSchedulePoliciesResponse, error)
- func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSnapshotSchedulePoliciesListCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Header() http.Header
- func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSnapshotSchedulePoliciesListCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsSnapshotSchedulePoliciesListCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) PageToken(pageToken string) *ProjectsLocationsSnapshotSchedulePoliciesListCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Pages(ctx context.Context, f func(*ListSnapshotSchedulePoliciesResponse) error) error
- type ProjectsLocationsSnapshotSchedulePoliciesPatchCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsSnapshotSchedulePoliciesPatchCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
- func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSnapshotSchedulePoliciesPatchCall
- func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Header() http.Header
- func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSnapshotSchedulePoliciesPatchCall
- type ProjectsLocationsSnapshotSchedulePoliciesService
- func (r *ProjectsLocationsSnapshotSchedulePoliciesService) Create(parent string, snapshotschedulepolicy *SnapshotSchedulePolicy) *ProjectsLocationsSnapshotSchedulePoliciesCreateCall
- func (r *ProjectsLocationsSnapshotSchedulePoliciesService) Delete(name string) *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall
- func (r *ProjectsLocationsSnapshotSchedulePoliciesService) Get(name string) *ProjectsLocationsSnapshotSchedulePoliciesGetCall
- func (r *ProjectsLocationsSnapshotSchedulePoliciesService) List(parent string) *ProjectsLocationsSnapshotSchedulePoliciesListCall
- func (r *ProjectsLocationsSnapshotSchedulePoliciesService) Patch(name string, snapshotschedulepolicy *SnapshotSchedulePolicy) *ProjectsLocationsSnapshotSchedulePoliciesPatchCall
- type ProjectsLocationsVolumesGetCall
- func (c *ProjectsLocationsVolumesGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesGetCall
- func (c *ProjectsLocationsVolumesGetCall) Do(opts ...googleapi.CallOption) (*Volume, error)
- func (c *ProjectsLocationsVolumesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesGetCall
- func (c *ProjectsLocationsVolumesGetCall) Header() http.Header
- func (c *ProjectsLocationsVolumesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesGetCall
- type ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) Context(ctx context.Context) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) Do(opts ...googleapi.CallOption) (*ListVolumesResponse, error)
- func (c *ProjectsLocationsVolumesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) Header() http.Header
- func (c *ProjectsLocationsVolumesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) PageToken(pageToken string) *ProjectsLocationsVolumesListCall
- func (c *ProjectsLocationsVolumesListCall) Pages(ctx context.Context, f func(*ListVolumesResponse) error) error
- type ProjectsLocationsVolumesLunsGetCall
- func (c *ProjectsLocationsVolumesLunsGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesLunsGetCall
- func (c *ProjectsLocationsVolumesLunsGetCall) Do(opts ...googleapi.CallOption) (*Lun, error)
- func (c *ProjectsLocationsVolumesLunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsGetCall
- func (c *ProjectsLocationsVolumesLunsGetCall) Header() http.Header
- func (c *ProjectsLocationsVolumesLunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesLunsGetCall
- type ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) Context(ctx context.Context) *ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) Do(opts ...googleapi.CallOption) (*ListLunsResponse, error)
- func (c *ProjectsLocationsVolumesLunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) Header() http.Header
- func (c *ProjectsLocationsVolumesLunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) PageToken(pageToken string) *ProjectsLocationsVolumesLunsListCall
- func (c *ProjectsLocationsVolumesLunsListCall) Pages(ctx context.Context, f func(*ListLunsResponse) error) error
- type ProjectsLocationsVolumesLunsService
- type ProjectsLocationsVolumesPatchCall
- func (c *ProjectsLocationsVolumesPatchCall) Context(ctx context.Context) *ProjectsLocationsVolumesPatchCall
- func (c *ProjectsLocationsVolumesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsVolumesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesPatchCall
- func (c *ProjectsLocationsVolumesPatchCall) Header() http.Header
- func (c *ProjectsLocationsVolumesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsVolumesPatchCall
- type ProjectsLocationsVolumesService
- type ProjectsLocationsVolumesSnapshotsCreateCall
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsCreateCall
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, error)
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsCreateCall
- func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Header() http.Header
- type ProjectsLocationsVolumesSnapshotsDeleteCall
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsDeleteCall
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsDeleteCall
- func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Header() http.Header
- type ProjectsLocationsVolumesSnapshotsGetCall
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsGetCall
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, error)
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsGetCall
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) Header() http.Header
- func (c *ProjectsLocationsVolumesSnapshotsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsGetCall
- type ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Do(opts ...googleapi.CallOption) (*ListVolumeSnapshotsResponse, error)
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Header() http.Header
- func (c *ProjectsLocationsVolumesSnapshotsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) PageToken(pageToken string) *ProjectsLocationsVolumesSnapshotsListCall
- func (c *ProjectsLocationsVolumesSnapshotsListCall) Pages(ctx context.Context, f func(*ListVolumeSnapshotsResponse) error) error
- type ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
- func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
- func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
- func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Header() http.Header
- type ProjectsLocationsVolumesSnapshotsService
- func (r *ProjectsLocationsVolumesSnapshotsService) Create(parent string, volumesnapshot *VolumeSnapshot) *ProjectsLocationsVolumesSnapshotsCreateCall
- func (r *ProjectsLocationsVolumesSnapshotsService) Delete(name string) *ProjectsLocationsVolumesSnapshotsDeleteCall
- func (r *ProjectsLocationsVolumesSnapshotsService) Get(name string) *ProjectsLocationsVolumesSnapshotsGetCall
- func (r *ProjectsLocationsVolumesSnapshotsService) List(parent string) *ProjectsLocationsVolumesSnapshotsListCall
- func (r *ProjectsLocationsVolumesSnapshotsService) RestoreVolumeSnapshot(volumeSnapshot string, ...) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
- type ProjectsService
- type ResetInstanceRequest
- type RestoreVolumeSnapshotRequest
- type Schedule
- type Service
- type SnapshotReservationDetail
- type SnapshotSchedulePolicy
- type Status
- type VRF
- type Volume
- type VolumeSnapshot
Constants ¶
const ( // See, edit, configure, and delete your Google Cloud data and see the // email address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelOperationRequest ¶
type CancelOperationRequest struct { }
CancelOperationRequest: The request message for Operations.CancelOperation.
type Empty ¶
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 defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
type Instance ¶
type Instance struct { // CreateTime: Output only. Create a time stamp. CreateTime string `json:"createTime,omitempty"` // HyperthreadingEnabled: True if you enable hyperthreading for the // server, otherwise false. The default value is false. HyperthreadingEnabled bool `json:"hyperthreadingEnabled,omitempty"` // InteractiveSerialConsoleEnabled: True if the interactive serial // console feature is enabled for the instance, false otherwise. The // default value is false. InteractiveSerialConsoleEnabled bool `json:"interactiveSerialConsoleEnabled,omitempty"` // Labels: Labels as key value pairs. Labels map[string]string `json:"labels,omitempty"` // Luns: List of LUNs associated with this server. Luns []*Lun `json:"luns,omitempty"` // MachineType: The server type. Available server types // (https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations) MachineType string `json:"machineType,omitempty"` // Name: Output only. The resource name of this `Instance`. Resource // names are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. Format: // `projects/{project}/locations/{location}/instances/{instance}` Name string `json:"name,omitempty"` // Networks: List of networks associated with this server. Networks []*Network `json:"networks,omitempty"` // State: The state of the server. // // Possible values: // "STATE_UNSPECIFIED" - The server is in an unknown state. // "PROVISIONING" - The server is being provisioned. // "RUNNING" - The server is running. // "DELETED" - The server has been deleted. State string `json:"state,omitempty"` // UpdateTime: Output only. Update a time stamp. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with // empty or default 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. "CreateTime") 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:"-"` }
Instance: A server.
func (*Instance) MarshalJSON ¶
type ListInstancesResponse ¶
type ListInstancesResponse struct { // Instances: The list of servers. Instances []*Instance `json:"instances,omitempty"` // NextPageToken: A token identifying a page of results from the server. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Instances") to // unconditionally include in API requests. By default, fields with // empty or default 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. "Instances") 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:"-"` }
ListInstancesResponse: Response message for the list of servers.
func (*ListInstancesResponse) MarshalJSON ¶
func (s *ListInstancesResponse) MarshalJSON() ([]byte, error)
type ListLocationsResponse ¶
type ListLocationsResponse struct { // Locations: A list of locations that matches the specified filter in // the request. Locations []*Location `json:"locations,omitempty"` // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with // empty or default 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. "Locations") 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:"-"` }
ListLocationsResponse: The response message for Locations.ListLocations.
func (*ListLocationsResponse) MarshalJSON ¶
func (s *ListLocationsResponse) MarshalJSON() ([]byte, error)
type ListLunsResponse ¶ added in v0.60.0
type ListLunsResponse struct { // Luns: The list of luns. Luns []*Lun `json:"luns,omitempty"` // NextPageToken: A token identifying a page of results from the server. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Luns") to // unconditionally include in API requests. By default, fields with // empty or default 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. "Luns") 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:"-"` }
ListLunsResponse: Response message containing the list of storage volume luns.
func (*ListLunsResponse) MarshalJSON ¶ added in v0.60.0
func (s *ListLunsResponse) MarshalJSON() ([]byte, error)
type ListNetworksResponse ¶ added in v0.62.0
type ListNetworksResponse struct { // Networks: The list of networks. Networks []*Network `json:"networks,omitempty"` // NextPageToken: A token identifying a page of results from the server. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Networks") to // unconditionally include in API requests. By default, fields with // empty or default 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. "Networks") 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:"-"` }
ListNetworksResponse: Response message containing the list of networks.
func (*ListNetworksResponse) MarshalJSON ¶ added in v0.62.0
func (s *ListNetworksResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // Operations: A list of operations that matches the specified filter in // the request. Operations []*Operation `json:"operations,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 or default 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:"-"` }
ListOperationsResponse: The response message for Operations.ListOperations.
func (*ListOperationsResponse) MarshalJSON ¶
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error)
type ListSnapshotSchedulePoliciesResponse ¶ added in v0.62.0
type ListSnapshotSchedulePoliciesResponse struct { // NextPageToken: Token to retrieve the next page of results, or empty // if there are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` // SnapshotSchedulePolicies: The snapshot schedule policies registered // in this project. SnapshotSchedulePolicies []*SnapshotSchedulePolicy `json:"snapshotSchedulePolicies,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 or default 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:"-"` }
ListSnapshotSchedulePoliciesResponse: Response message containing the list of snapshot schedule policies.
func (*ListSnapshotSchedulePoliciesResponse) MarshalJSON ¶ added in v0.62.0
func (s *ListSnapshotSchedulePoliciesResponse) MarshalJSON() ([]byte, error)
type ListVolumeSnapshotsResponse ¶ added in v0.62.0
type ListVolumeSnapshotsResponse struct { // NextPageToken: A token identifying a page of results from the server. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // VolumeSnapshots: The list of storage volumes. VolumeSnapshots []*VolumeSnapshot `json:"volumeSnapshots,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 or default 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:"-"` }
ListVolumeSnapshotsResponse: Response message containing the list of storage volume snapshots.
func (*ListVolumeSnapshotsResponse) MarshalJSON ¶ added in v0.62.0
func (s *ListVolumeSnapshotsResponse) MarshalJSON() ([]byte, error)
type ListVolumesResponse ¶ added in v0.55.0
type ListVolumesResponse struct { // NextPageToken: A token identifying a page of results from the server. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // Volumes: The list of storage volumes. Volumes []*Volume `json:"volumes,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 or default 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:"-"` }
ListVolumesResponse: Response message containing the list of storage volumes.
func (*ListVolumesResponse) MarshalJSON ¶ added in v0.55.0
func (s *ListVolumesResponse) MarshalJSON() ([]byte, error)
type Location ¶
type Location struct { // DisplayName: The friendly name for this location, typically a nearby // city name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` // Labels: Cross-service attributes for the location. For example // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` // LocationId: The canonical id for this location. For example: // "us-east1". LocationId string `json:"locationId,omitempty"` // Metadata: Service-specific metadata. For example the available // capacity at the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default 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. "DisplayName") 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:"-"` }
Location: A resource that represents Google Cloud Platform location.
func (*Location) MarshalJSON ¶
type Lun ¶
type Lun struct { // BootLun: Display if this LUN is a boot LUN. BootLun bool `json:"bootLun,omitempty"` // MultiprotocolType: The LUN multiprotocol type ensures the // characteristics of the LUN are optimized for each operating system. // // Possible values: // "MULTIPROTOCOL_TYPE_UNSPECIFIED" - Server has no OS specified. // "LINUX" - Server with Linux OS. MultiprotocolType string `json:"multiprotocolType,omitempty"` // Name: Output only. The name of the LUN. Name string `json:"name,omitempty"` // physical servers. Shareable bool `json:"shareable,omitempty"` // SizeGb: The size of this LUN, in gigabytes. SizeGb int64 `json:"sizeGb,omitempty,string"` // State: The state of this storage volume. // // Possible values: // "STATE_UNSPECIFIED" - The LUN is in an unknown state. // "CREATING" - The LUN is being created. // "UPDATING" - The LUN is being updated. // "READY" - The LUN is ready for use. // "DELETING" - The LUN has been requested to be deleted. State string `json:"state,omitempty"` // StorageType: The storage type for this LUN. // // Possible values: // "STORAGE_TYPE_UNSPECIFIED" - The storage type for this LUN is // unknown. // "SSD" - This storage type for this LUN is SSD. // "HDD" - This storage type for this LUN is HDD. StorageType string `json:"storageType,omitempty"` // StorageVolume: Display the storage volume for this LUN. StorageVolume string `json:"storageVolume,omitempty"` // Wwid: The WWID for this LUN. Wwid string `json:"wwid,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BootLun") to // unconditionally include in API requests. By default, fields with // empty or default 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. "BootLun") 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:"-"` }
Lun: A storage volume logical unit number (LUN).
func (*Lun) MarshalJSON ¶
type Network ¶
type Network struct { // Cidr: The cidr of the Network. Cidr string `json:"cidr,omitempty"` // IpAddress: IP address configured. IpAddress string `json:"ipAddress,omitempty"` // MacAddress: List of physical interfaces. MacAddress []string `json:"macAddress,omitempty"` // Name: Output only. The resource name of this `Network`. Resource // names are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. Format: // `projects/{project}/locations/{location}/networks/{network}` This // field will contain the same value as field "network", which will soon // be deprecated. Please use this field to reference the name of the // network resource. Name string `json:"name,omitempty"` // Network: Name of the network. Network string `json:"network,omitempty"` // State: The Network state. // // Possible values: // "STATE_UNSPECIFIED" - The Network is in an unknown state. // "PROVISIONING" - The Network is being provisioning. // "PROVISIONED" - The Network has been provisioned. State string `json:"state,omitempty"` // Type: The type of this network. // // Possible values: // "TYPE_UNSPECIFIED" - Unspecified value. // "CLIENT" - Client network, a network peered to a Google Cloud VPC. // "PRIVATE" - Private network, a network local to the Bare Metal // Solution environment. Type string `json:"type,omitempty"` // VlanId: The vlan id of the Network. VlanId string `json:"vlanId,omitempty"` // Vrf: The vrf for the Network. Vrf *VRF `json:"vrf,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Cidr") to // unconditionally include in API requests. By default, fields with // empty or default 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. "Cidr") 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:"-"` }
Network: A Network.
func (*Network) MarshalJSON ¶
type Operation ¶
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. Done bool `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. Metadata googleapi.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}`. Name string `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`. Response googleapi.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 or default 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 is the result of a network API call.
func (*Operation) MarshalJSON ¶
type ProjectsLocationsGetCall ¶
type ProjectsLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGetCall) Context ¶
func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGetCall) Do ¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
Do executes the "baremetalsolution.projects.locations.get" call. Exactly one of *Location or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Location.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsGetCall) Fields ¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGetCall) Header ¶
func (c *ProjectsLocationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsInstancesGetCall ¶
type ProjectsLocationsInstancesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesGetCall) Context ¶
func (c *ProjectsLocationsInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstancesGetCall) Do ¶
func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error)
Do executes the "baremetalsolution.projects.locations.instances.get" call. Exactly one of *Instance or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Instance.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesGetCall) Fields ¶
func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesGetCall) Header ¶
func (c *ProjectsLocationsInstancesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsInstancesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsInstancesListCall ¶
type ProjectsLocationsInstancesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesListCall) Context ¶
func (c *ProjectsLocationsInstancesListCall) Context(ctx context.Context) *ProjectsLocationsInstancesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstancesListCall) Do ¶
func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error)
Do executes the "baremetalsolution.projects.locations.instances.list" call. Exactly one of *ListInstancesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListInstancesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesListCall) Fields ¶
func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesListCall) Header ¶
func (c *ProjectsLocationsInstancesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsInstancesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsInstancesListCall) PageSize ¶
func (c *ProjectsLocationsInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsInstancesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
func (*ProjectsLocationsInstancesListCall) PageToken ¶
func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *ProjectsLocationsInstancesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results from the server.
func (*ProjectsLocationsInstancesListCall) Pages ¶
func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.Context, f func(*ListInstancesResponse) 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.
type ProjectsLocationsInstancesResetCall ¶ added in v0.62.0
type ProjectsLocationsInstancesResetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesResetCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsInstancesResetCall) Context(ctx context.Context) *ProjectsLocationsInstancesResetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsInstancesResetCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsInstancesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.instances.reset" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesResetCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsInstancesResetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesResetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsInstancesResetCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsInstancesResetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsInstancesService ¶
type ProjectsLocationsInstancesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsInstancesService ¶
func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService
func (*ProjectsLocationsInstancesService) Get ¶
func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall
Get: Get details about a single server.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService) List ¶
func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall
List: List servers in a given project and location.
- parent: Parent value for ListInstancesRequest.
func (*ProjectsLocationsInstancesService) Reset ¶ added in v0.62.0
func (r *ProjectsLocationsInstancesService) Reset(name string, resetinstancerequest *ResetInstanceRequest) *ProjectsLocationsInstancesResetCall
Reset: Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.
- name: Name of the resource.
type ProjectsLocationsListCall ¶
type ProjectsLocationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsListCall) Context ¶
func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsListCall) Do ¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
Do executes the "baremetalsolution.projects.locations.list" call. Exactly one of *ListLocationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLocationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsListCall) Fields ¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsListCall) Filter ¶
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160 (https://google.aip.dev/160).
func (*ProjectsLocationsListCall) Header ¶
func (c *ProjectsLocationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsListCall) PageSize ¶
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall) PageToken ¶
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
func (*ProjectsLocationsListCall) Pages ¶
func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) 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.
type ProjectsLocationsNetworksGetCall ¶ added in v0.62.0
type ProjectsLocationsNetworksGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsNetworksGetCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksGetCall) Context(ctx context.Context) *ProjectsLocationsNetworksGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsNetworksGetCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksGetCall) Do(opts ...googleapi.CallOption) (*Network, error)
Do executes the "baremetalsolution.projects.locations.networks.get" call. Exactly one of *Network or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Network.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNetworksGetCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsNetworksGetCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsNetworksGetCall) IfNoneMatch ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworksGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsNetworksListCall ¶ added in v0.62.0
type ProjectsLocationsNetworksListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsNetworksListCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) Context(ctx context.Context) *ProjectsLocationsNetworksListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsNetworksListCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) Do(opts ...googleapi.CallOption) (*ListNetworksResponse, error)
Do executes the "baremetalsolution.projects.locations.networks.list" call. Exactly one of *ListNetworksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListNetworksResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNetworksListCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsNetworksListCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsNetworksListCall) IfNoneMatch ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworksListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsNetworksListCall) PageSize ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) PageSize(pageSize int64) *ProjectsLocationsNetworksListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsNetworksListCall) PageToken ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) PageToken(pageToken string) *ProjectsLocationsNetworksListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results from the server.
func (*ProjectsLocationsNetworksListCall) Pages ¶ added in v0.62.0
func (c *ProjectsLocationsNetworksListCall) Pages(ctx context.Context, f func(*ListNetworksResponse) 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.
type ProjectsLocationsNetworksService ¶ added in v0.62.0
type ProjectsLocationsNetworksService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsNetworksService ¶ added in v0.62.0
func NewProjectsLocationsNetworksService(s *Service) *ProjectsLocationsNetworksService
func (*ProjectsLocationsNetworksService) Get ¶ added in v0.62.0
func (r *ProjectsLocationsNetworksService) Get(name string) *ProjectsLocationsNetworksGetCall
Get: Get details of a single network.
- name: Name of the resource.
func (*ProjectsLocationsNetworksService) List ¶ added in v0.62.0
func (r *ProjectsLocationsNetworksService) List(parent string) *ProjectsLocationsNetworksListCall
List: List network in a given project and location.
- parent: Parent value for ListNetworksRequest.
type ProjectsLocationsOperationsCancelCall ¶
type ProjectsLocationsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsCancelCall) Context ¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsCancelCall) Do ¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "baremetalsolution.projects.locations.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code 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 to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsCancelCall) Fields ¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsCancelCall) Header ¶
func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsOperationsDeleteCall ¶
type ProjectsLocationsOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsDeleteCall) Context ¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsDeleteCall) Do ¶
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "baremetalsolution.projects.locations.operations.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code 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 to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsDeleteCall) Fields ¶
func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsDeleteCall) Header ¶
func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsOperationsGetCall ¶
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsGetCall) Do ¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall) Fields ¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsGetCall) Header ¶
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsOperationsListCall ¶
type ProjectsLocationsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsListCall) Context ¶
func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsListCall) Do ¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
Do executes the "baremetalsolution.projects.locations.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsListCall) Fields ¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsListCall) Filter ¶
func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall) Header ¶
func (c *ProjectsLocationsOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsOperationsListCall) PageSize ¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsLocationsOperationsListCall) PageToken ¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsLocationsOperationsListCall) Pages ¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) 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.
type ProjectsLocationsOperationsService ¶
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Cancel ¶
func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
- name: The name of the operation resource to be cancelled.
func (*ProjectsLocationsOperationsService) Delete ¶
func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
- name: The name of the operation resource to be deleted.
func (*ProjectsLocationsOperationsService) Get ¶
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
- name: The name of the operation resource.
func (*ProjectsLocationsOperationsService) List ¶
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
- name: The name of the operation's parent resource.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { Instances *ProjectsLocationsInstancesService Networks *ProjectsLocationsNetworksService Operations *ProjectsLocationsOperationsService SnapshotSchedulePolicies *ProjectsLocationsSnapshotSchedulePoliciesService Volumes *ProjectsLocationsVolumesService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService) Get ¶
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService) List ¶
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
type ProjectsLocationsSnapshotSchedulePoliciesCreateCall ¶ added in v0.62.0
type ProjectsLocationsSnapshotSchedulePoliciesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsSnapshotSchedulePoliciesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
Do executes the "baremetalsolution.projects.locations.snapshotSchedulePolicies.create" call. Exactly one of *SnapshotSchedulePolicy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SnapshotSchedulePolicy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSnapshotSchedulePoliciesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsSnapshotSchedulePoliciesCreateCall) SnapshotSchedulePolicyId ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesCreateCall) SnapshotSchedulePolicyId(snapshotSchedulePolicyId string) *ProjectsLocationsSnapshotSchedulePoliciesCreateCall
SnapshotSchedulePolicyId sets the optional parameter "snapshotSchedulePolicyId": Required. Snapshot policy ID
type ProjectsLocationsSnapshotSchedulePoliciesDeleteCall ¶ added in v0.62.0
type ProjectsLocationsSnapshotSchedulePoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "baremetalsolution.projects.locations.snapshotSchedulePolicies.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code 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 to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsSnapshotSchedulePoliciesGetCall ¶ added in v0.62.0
type ProjectsLocationsSnapshotSchedulePoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSnapshotSchedulePoliciesGetCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsSnapshotSchedulePoliciesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsSnapshotSchedulePoliciesGetCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
Do executes the "baremetalsolution.projects.locations.snapshotSchedulePolicies.get" call. Exactly one of *SnapshotSchedulePolicy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SnapshotSchedulePolicy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSnapshotSchedulePoliciesGetCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSnapshotSchedulePoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsSnapshotSchedulePoliciesGetCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsSnapshotSchedulePoliciesGetCall) IfNoneMatch ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSnapshotSchedulePoliciesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsSnapshotSchedulePoliciesListCall ¶ added in v0.62.0
type ProjectsLocationsSnapshotSchedulePoliciesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSnapshotSchedulePoliciesListCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Context(ctx context.Context) *ProjectsLocationsSnapshotSchedulePoliciesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsSnapshotSchedulePoliciesListCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Do(opts ...googleapi.CallOption) (*ListSnapshotSchedulePoliciesResponse, error)
Do executes the "baremetalsolution.projects.locations.snapshotSchedulePolicies.list" call. Exactly one of *ListSnapshotSchedulePoliciesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSnapshotSchedulePoliciesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSnapshotSchedulePoliciesListCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSnapshotSchedulePoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsSnapshotSchedulePoliciesListCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsSnapshotSchedulePoliciesListCall) IfNoneMatch ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSnapshotSchedulePoliciesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsSnapshotSchedulePoliciesListCall) PageSize ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsSnapshotSchedulePoliciesListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return.
func (*ProjectsLocationsSnapshotSchedulePoliciesListCall) PageToken ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) PageToken(pageToken string) *ProjectsLocationsSnapshotSchedulePoliciesListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous List request, if any.
func (*ProjectsLocationsSnapshotSchedulePoliciesListCall) Pages ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesListCall) Pages(ctx context.Context, f func(*ListSnapshotSchedulePoliciesResponse) 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.
type ProjectsLocationsSnapshotSchedulePoliciesPatchCall ¶ added in v0.62.0
type ProjectsLocationsSnapshotSchedulePoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsSnapshotSchedulePoliciesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Do(opts ...googleapi.CallOption) (*SnapshotSchedulePolicy, error)
Do executes the "baremetalsolution.projects.locations.snapshotSchedulePolicies.patch" call. Exactly one of *SnapshotSchedulePolicy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SnapshotSchedulePolicy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSnapshotSchedulePoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsSnapshotSchedulePoliciesPatchCall) UpdateMask ¶ added in v0.62.0
func (c *ProjectsLocationsSnapshotSchedulePoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSnapshotSchedulePoliciesPatchCall
UpdateMask sets the optional parameter "updateMask": Required. The list of fields to update.
type ProjectsLocationsSnapshotSchedulePoliciesService ¶ added in v0.62.0
type ProjectsLocationsSnapshotSchedulePoliciesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsSnapshotSchedulePoliciesService ¶ added in v0.62.0
func NewProjectsLocationsSnapshotSchedulePoliciesService(s *Service) *ProjectsLocationsSnapshotSchedulePoliciesService
func (*ProjectsLocationsSnapshotSchedulePoliciesService) Create ¶ added in v0.62.0
func (r *ProjectsLocationsSnapshotSchedulePoliciesService) Create(parent string, snapshotschedulepolicy *SnapshotSchedulePolicy) *ProjectsLocationsSnapshotSchedulePoliciesCreateCall
Create: Create a snapshot schedule policy in the specified project.
- parent: The parent project and location containing the SnapshotSchedulePolicy.
func (*ProjectsLocationsSnapshotSchedulePoliciesService) Delete ¶ added in v0.62.0
func (r *ProjectsLocationsSnapshotSchedulePoliciesService) Delete(name string) *ProjectsLocationsSnapshotSchedulePoliciesDeleteCall
Delete: Delete a named snapshot schedule policy.
- name: The name of the snapshot schedule policy to delete.
func (*ProjectsLocationsSnapshotSchedulePoliciesService) Get ¶ added in v0.62.0
func (r *ProjectsLocationsSnapshotSchedulePoliciesService) Get(name string) *ProjectsLocationsSnapshotSchedulePoliciesGetCall
Get: Get details of a single snapshot schedule policy.
- name: Name of the resource.
func (*ProjectsLocationsSnapshotSchedulePoliciesService) List ¶ added in v0.62.0
func (r *ProjectsLocationsSnapshotSchedulePoliciesService) List(parent string) *ProjectsLocationsSnapshotSchedulePoliciesListCall
List: List snapshot schedule policies in a given project and location.
- parent: The parent project containing the Snapshot Schedule Policies.
func (*ProjectsLocationsSnapshotSchedulePoliciesService) Patch ¶ added in v0.62.0
func (r *ProjectsLocationsSnapshotSchedulePoliciesService) Patch(name string, snapshotschedulepolicy *SnapshotSchedulePolicy) *ProjectsLocationsSnapshotSchedulePoliciesPatchCall
Patch: Update a snapshot schedule policy in the specified project.
- name: Output only. The name of the snapshot schedule policy.
type ProjectsLocationsVolumesGetCall ¶ added in v0.55.0
type ProjectsLocationsVolumesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesGetCall) Context ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesGetCall) Do ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesGetCall) Do(opts ...googleapi.CallOption) (*Volume, error)
Do executes the "baremetalsolution.projects.locations.volumes.get" call. Exactly one of *Volume or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Volume.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesGetCall) Fields ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesGetCall) Header ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesGetCall) IfNoneMatch ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsVolumesListCall ¶ added in v0.55.0
type ProjectsLocationsVolumesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesListCall) Context ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) Context(ctx context.Context) *ProjectsLocationsVolumesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesListCall) Do ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) Do(opts ...googleapi.CallOption) (*ListVolumesResponse, error)
Do executes the "baremetalsolution.projects.locations.volumes.list" call. Exactly one of *ListVolumesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListVolumesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesListCall) Fields ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesListCall) Header ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesListCall) IfNoneMatch ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsVolumesListCall) PageSize ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsVolumesListCall) PageToken ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) PageToken(pageToken string) *ProjectsLocationsVolumesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results from the server.
func (*ProjectsLocationsVolumesListCall) Pages ¶ added in v0.55.0
func (c *ProjectsLocationsVolumesListCall) Pages(ctx context.Context, f func(*ListVolumesResponse) 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.
type ProjectsLocationsVolumesLunsGetCall ¶ added in v0.60.0
type ProjectsLocationsVolumesLunsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesLunsGetCall) Context ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesLunsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesLunsGetCall) Do ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Do(opts ...googleapi.CallOption) (*Lun, error)
Do executes the "baremetalsolution.projects.locations.volumes.luns.get" call. Exactly one of *Lun or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Lun.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesLunsGetCall) Fields ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesLunsGetCall) Header ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesLunsGetCall) IfNoneMatch ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesLunsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsVolumesLunsListCall ¶ added in v0.60.0
type ProjectsLocationsVolumesLunsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesLunsListCall) Context ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Context(ctx context.Context) *ProjectsLocationsVolumesLunsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesLunsListCall) Do ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Do(opts ...googleapi.CallOption) (*ListLunsResponse, error)
Do executes the "baremetalsolution.projects.locations.volumes.luns.list" call. Exactly one of *ListLunsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLunsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesLunsListCall) Fields ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesLunsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesLunsListCall) Header ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesLunsListCall) IfNoneMatch ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesLunsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsVolumesLunsListCall) PageSize ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesLunsListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsVolumesLunsListCall) PageToken ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) PageToken(pageToken string) *ProjectsLocationsVolumesLunsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results from the server.
func (*ProjectsLocationsVolumesLunsListCall) Pages ¶ added in v0.60.0
func (c *ProjectsLocationsVolumesLunsListCall) Pages(ctx context.Context, f func(*ListLunsResponse) 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.
type ProjectsLocationsVolumesLunsService ¶ added in v0.60.0
type ProjectsLocationsVolumesLunsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsVolumesLunsService ¶ added in v0.60.0
func NewProjectsLocationsVolumesLunsService(s *Service) *ProjectsLocationsVolumesLunsService
func (*ProjectsLocationsVolumesLunsService) Get ¶ added in v0.60.0
func (r *ProjectsLocationsVolumesLunsService) Get(name string) *ProjectsLocationsVolumesLunsGetCall
Get: Get details of a single storage lun.
- name: Name of the resource.
func (*ProjectsLocationsVolumesLunsService) List ¶ added in v0.60.0
func (r *ProjectsLocationsVolumesLunsService) List(parent string) *ProjectsLocationsVolumesLunsListCall
List: List storage volume luns for given storage volume.
- parent: Parent value for ListLunsRequest.
type ProjectsLocationsVolumesPatchCall ¶ added in v0.62.0
type ProjectsLocationsVolumesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesPatchCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Context(ctx context.Context) *ProjectsLocationsVolumesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesPatchCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.volumes.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesPatchCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesPatchCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesPatchCall) UpdateMask ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsVolumesPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to update. The only currently supported fields are: `snapshot_auto_delete_behavior` `snapshot_schedule_policy_name`
type ProjectsLocationsVolumesService ¶ added in v0.55.0
type ProjectsLocationsVolumesService struct { Luns *ProjectsLocationsVolumesLunsService Snapshots *ProjectsLocationsVolumesSnapshotsService // contains filtered or unexported fields }
func NewProjectsLocationsVolumesService ¶ added in v0.55.0
func NewProjectsLocationsVolumesService(s *Service) *ProjectsLocationsVolumesService
func (*ProjectsLocationsVolumesService) Get ¶ added in v0.55.0
func (r *ProjectsLocationsVolumesService) Get(name string) *ProjectsLocationsVolumesGetCall
Get: Get details of a single storage volume.
- name: Name of the resource.
func (*ProjectsLocationsVolumesService) List ¶ added in v0.55.0
func (r *ProjectsLocationsVolumesService) List(parent string) *ProjectsLocationsVolumesListCall
List: List storage volumes in a given project and location.
- parent: Parent value for ListVolumesRequest.
func (*ProjectsLocationsVolumesService) Patch ¶ added in v0.62.0
func (r *ProjectsLocationsVolumesService) Patch(name string, volume *Volume) *ProjectsLocationsVolumesPatchCall
Patch: Update details of a single storage volume.
- name: Output only. The resource name of this `Volume`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/volumes/{volume}`.
type ProjectsLocationsVolumesSnapshotsCreateCall ¶ added in v0.62.0
type ProjectsLocationsVolumesSnapshotsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesSnapshotsCreateCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesSnapshotsCreateCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.create" call. Exactly one of *VolumeSnapshot or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *VolumeSnapshot.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsCreateCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesSnapshotsCreateCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsVolumesSnapshotsDeleteCall ¶ added in v0.62.0
type ProjectsLocationsVolumesSnapshotsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesSnapshotsDeleteCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesSnapshotsDeleteCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code 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 to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsDeleteCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesSnapshotsDeleteCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsVolumesSnapshotsGetCall ¶ added in v0.62.0
type ProjectsLocationsVolumesSnapshotsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesSnapshotsGetCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesSnapshotsGetCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*VolumeSnapshot, error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.get" call. Exactly one of *VolumeSnapshot or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *VolumeSnapshot.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsGetCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesSnapshotsGetCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesSnapshotsGetCall) IfNoneMatch ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsVolumesSnapshotsListCall ¶ added in v0.62.0
type ProjectsLocationsVolumesSnapshotsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesSnapshotsListCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesSnapshotsListCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) Do(opts ...googleapi.CallOption) (*ListVolumeSnapshotsResponse, error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.list" call. Exactly one of *ListVolumeSnapshotsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListVolumeSnapshotsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsListCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesSnapshotsListCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsVolumesSnapshotsListCall) IfNoneMatch ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVolumesSnapshotsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsVolumesSnapshotsListCall) PageSize ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) PageSize(pageSize int64) *ProjectsLocationsVolumesSnapshotsListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsVolumesSnapshotsListCall) PageToken ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) PageToken(pageToken string) *ProjectsLocationsVolumesSnapshotsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results from the server.
func (*ProjectsLocationsVolumesSnapshotsListCall) Pages ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsListCall) Pages(ctx context.Context, f func(*ListVolumeSnapshotsResponse) 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.
type ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall ¶ added in v0.62.0
type ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Context ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Context(ctx context.Context) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Do ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "baremetalsolution.projects.locations.volumes.snapshots.restoreVolumeSnapshot" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Fields ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Fields(s ...googleapi.Field) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Header ¶ added in v0.62.0
func (c *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsVolumesSnapshotsService ¶ added in v0.62.0
type ProjectsLocationsVolumesSnapshotsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsVolumesSnapshotsService ¶ added in v0.62.0
func NewProjectsLocationsVolumesSnapshotsService(s *Service) *ProjectsLocationsVolumesSnapshotsService
func (*ProjectsLocationsVolumesSnapshotsService) Create ¶ added in v0.62.0
func (r *ProjectsLocationsVolumesSnapshotsService) Create(parent string, volumesnapshot *VolumeSnapshot) *ProjectsLocationsVolumesSnapshotsCreateCall
Create: Create a storage volume snapshot in a containing volume.
- parent: The volume to snapshot.
func (*ProjectsLocationsVolumesSnapshotsService) Delete ¶ added in v0.62.0
func (r *ProjectsLocationsVolumesSnapshotsService) Delete(name string) *ProjectsLocationsVolumesSnapshotsDeleteCall
Delete: Deletes a storage volume snapshot for a given volume.
- name: The name of the snapshot to delete.
func (*ProjectsLocationsVolumesSnapshotsService) Get ¶ added in v0.62.0
func (r *ProjectsLocationsVolumesSnapshotsService) Get(name string) *ProjectsLocationsVolumesSnapshotsGetCall
Get: Get details of a single storage volume snapshot.
- name: Name of the resource.
func (*ProjectsLocationsVolumesSnapshotsService) List ¶ added in v0.62.0
func (r *ProjectsLocationsVolumesSnapshotsService) List(parent string) *ProjectsLocationsVolumesSnapshotsListCall
List: List storage volume snapshots for given storage volume.
- parent: Parent value for ListVolumesRequest.
func (*ProjectsLocationsVolumesSnapshotsService) RestoreVolumeSnapshot ¶ added in v0.62.0
func (r *ProjectsLocationsVolumesSnapshotsService) RestoreVolumeSnapshot(volumeSnapshot string, restorevolumesnapshotrequest *RestoreVolumeSnapshotRequest) *ProjectsLocationsVolumesSnapshotsRestoreVolumeSnapshotCall
RestoreVolumeSnapshot: Restore a storage volume snapshot to its containing volume.
- volumeSnapshot: Name of the resource.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type ResetInstanceRequest ¶ added in v0.62.0
type ResetInstanceRequest struct { }
ResetInstanceRequest: Message requesting to reset a server.
type RestoreVolumeSnapshotRequest ¶ added in v0.62.0
type RestoreVolumeSnapshotRequest struct { }
RestoreVolumeSnapshotRequest: Message for restoring a volume snapshot.
type Schedule ¶ added in v0.62.0
type Schedule struct { // CrontabSpec: A crontab-like specification that the schedule uses to // take snapshots. CrontabSpec string `json:"crontabSpec,omitempty"` // Prefix: A list of snapshot names created in this schedule. Prefix string `json:"prefix,omitempty"` // RetentionCount: The maximum number of snapshots to retain in this // schedule. RetentionCount int64 `json:"retentionCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CrontabSpec") to // unconditionally include in API requests. By default, fields with // empty or default 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. "CrontabSpec") 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:"-"` }
Schedule: A snapshot schedule.
func (*Schedule) MarshalJSON ¶ added in v0.62.0
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
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.
func NewService ¶
NewService creates a new Service.
type SnapshotReservationDetail ¶ added in v0.55.0
type SnapshotReservationDetail struct { // ReservedSpaceGib: The space on this storage volume reserved for // snapshots, shown in GiB. ReservedSpaceGib int64 `json:"reservedSpaceGib,omitempty,string"` // ReservedSpaceRemainingGib: The amount, in GiB, of available space in // this storage volume's reserved snapshot space. ReservedSpaceRemainingGib int64 `json:"reservedSpaceRemainingGib,omitempty,string"` // ReservedSpaceUsedPercent: The percent of snapshot space on this // storage volume actually being used by the snapshot copies. This value // might be higher than 100% if the snapshot copies have overflowed into // the data portion of the storage volume. ReservedSpaceUsedPercent int64 `json:"reservedSpaceUsedPercent,omitempty"` // ForceSendFields is a list of field names (e.g. "ReservedSpaceGib") to // unconditionally include in API requests. By default, fields with // empty or default 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. "ReservedSpaceGib") 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:"-"` }
SnapshotReservationDetail: Details about snapshot space reservation and usage on the storage volume.
func (*SnapshotReservationDetail) MarshalJSON ¶ added in v0.55.0
func (s *SnapshotReservationDetail) MarshalJSON() ([]byte, error)
type SnapshotSchedulePolicy ¶ added in v0.62.0
type SnapshotSchedulePolicy struct { // Description: The description of the snapshot schedule policy. Description string `json:"description,omitempty"` // Name: Output only. The name of the snapshot schedule policy. Name string `json:"name,omitempty"` // Schedules: The snapshot schedules contained in this policy. You can // specify a maxiumum of 5 schedules. Schedules []*Schedule `json:"schedules,omitempty"` // Volumes: The names of the volumes associated with this policy. Volumes []string `json:"volumes,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty or default 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. "Description") 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:"-"` }
SnapshotSchedulePolicy: A snapshot schedule policy.
func (*SnapshotSchedulePolicy) MarshalJSON ¶ added in v0.62.0
func (s *SnapshotSchedulePolicy) MarshalJSON() ([]byte, error)
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `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. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty or default 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 is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (*Status) MarshalJSON ¶
type VRF ¶ added in v0.60.0
type VRF struct { // AutonomousSystemNumber: The autonomous system number of the VRF. AutonomousSystemNumber string `json:"autonomousSystemNumber,omitempty"` // JuniperAlias: The Juniper alias of the VRF. JuniperAlias string `json:"juniperAlias,omitempty"` // Name: The name of the VRF. Name string `json:"name,omitempty"` // RouteTarget: The route target of the VRF. RouteTarget int64 `json:"routeTarget,omitempty,string"` // State: The possible state of VRF. // // Possible values: // "STATE_UNSPECIFIED" - The unspecified state. // "PROVISIONING" - The vrf is being provisioning. // "PROVISIONED" - The vrf is being provisioning. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. // "AutonomousSystemNumber") to unconditionally include in API requests. // By default, fields with empty or default 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. "AutonomousSystemNumber") // 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:"-"` }
VRF: A network VRF.
func (*VRF) MarshalJSON ¶ added in v0.60.0
type Volume ¶ added in v0.55.0
type Volume struct { // AutoGrownSizeGib: The size, in GiB, that this storage volume has // expanded as a result of an auto grow policy. In the absence of // auto-grow, the value is 0. AutoGrownSizeGib int64 `json:"autoGrownSizeGib,omitempty,string"` // CurrentSizeGib: The current size of this storage volume, in GiB, // including space reserved for snapshots. This size might be different // than the requested size if the storage volume has been configured // with auto grow or auto shrink. CurrentSizeGib int64 `json:"currentSizeGib,omitempty,string"` // Name: Output only. The resource name of this `Volume`. Resource names // are schemeless URIs that follow the conventions in // https://cloud.google.com/apis/design/resource_names. Format: // `projects/{project}/locations/{location}/volumes/{volume}` Name string `json:"name,omitempty"` // RemainingSpaceGib: The space remaining in the storage volume for new // LUNs, in GiB, excluding space reserved for snapshots. RemainingSpaceGib int64 `json:"remainingSpaceGib,omitempty,string"` // RequestedSizeGib: The requested size of this storage volume, in GiB. RequestedSizeGib int64 `json:"requestedSizeGib,omitempty,string"` // SnapshotAutoDeleteBehavior: The behavior to use when snapshot // reserved space is full. // // Possible values: // "SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED" - The unspecified // behavior. // "DISABLED" - Don't delete any snapshots. This disables new snapshot // creation, as long as the snapshot reserved space is full. // "OLDEST_FIRST" - Delete the oldest snapshots first. // "NEWEST_FIRST" - Delete the newest snapshots first. SnapshotAutoDeleteBehavior string `json:"snapshotAutoDeleteBehavior,omitempty"` // SnapshotReservationDetail: Details about snapshot space reservation // and usage on the storage volume. SnapshotReservationDetail *SnapshotReservationDetail `json:"snapshotReservationDetail,omitempty"` // SnapshotSchedulePolicy: The name of the snapshot schedule policy in // use for this volume, if any. SnapshotSchedulePolicy string `json:"snapshotSchedulePolicy,omitempty"` // State: The state of this storage volume. // // Possible values: // "STATE_UNSPECIFIED" - The storage volume is in an unknown state. // "CREATING" - The storage volume is being created. // "READY" - The storage volume is ready for use. // "DELETING" - The storage volume has been requested to be deleted. State string `json:"state,omitempty"` // StorageType: The storage type for this volume. // // Possible values: // "STORAGE_TYPE_UNSPECIFIED" - The storage type for this volume is // unknown. // "SSD" - The storage type for this volume is SSD. // "HDD" - This storage type for this volume is HDD. StorageType string `json:"storageType,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AutoGrownSizeGib") to // unconditionally include in API requests. By default, fields with // empty or default 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. "AutoGrownSizeGib") 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:"-"` }
Volume: A storage volume.
func (*Volume) MarshalJSON ¶ added in v0.55.0
type VolumeSnapshot ¶ added in v0.62.0
type VolumeSnapshot struct { // CreateTime: Optional. The creation time of the storage volume // snapshot. CreateTime string `json:"createTime,omitempty"` // Description: The description of the storage volume snapshot. Description string `json:"description,omitempty"` // Name: Output only. The name of the storage volume snapshot. Name string `json:"name,omitempty"` // SizeBytes: The size of the storage volume snapshot, in bytes. SizeBytes int64 `json:"sizeBytes,omitempty,string"` // StorageVolume: The storage volume this snapshot belongs to. StorageVolume string `json:"storageVolume,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with // empty or default 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. "CreateTime") 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:"-"` }
VolumeSnapshot: Snapshot registered for a given storage volume.
func (*VolumeSnapshot) MarshalJSON ¶ added in v0.62.0
func (s *VolumeSnapshot) MarshalJSON() ([]byte, error)