tpu
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package tpu provides access to the Cloud TPU API.
For product documentation, see:https://cloud.google.com/tpu/
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/tpu/v1"...ctx := context.Background()tpuService, err := tpu.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
tpuService, err := tpu.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)tpuService, err := tpu.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type AcceleratorType
- type Empty
- type ListAcceleratorTypesResponse
- type ListLocationsResponse
- type ListNodesResponse
- type ListOperationsResponse
- type ListTensorFlowVersionsResponse
- type Location
- type NetworkEndpoint
- type Node
- type Operation
- type OperationMetadata
- type ProjectsLocationsAcceleratorTypesGetCall
- func (c *ProjectsLocationsAcceleratorTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAcceleratorTypesGetCall
- func (c *ProjectsLocationsAcceleratorTypesGetCall) Do(opts ...googleapi.CallOption) (*AcceleratorType, error)
- func (c *ProjectsLocationsAcceleratorTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAcceleratorTypesGetCall
- func (c *ProjectsLocationsAcceleratorTypesGetCall) Header() http.Header
- func (c *ProjectsLocationsAcceleratorTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAcceleratorTypesGetCall
- type ProjectsLocationsAcceleratorTypesListCall
- func (c *ProjectsLocationsAcceleratorTypesListCall) Context(ctx context.Context) *ProjectsLocationsAcceleratorTypesListCall
- func (c *ProjectsLocationsAcceleratorTypesListCall) Do(opts ...googleapi.CallOption) (*ListAcceleratorTypesResponse, error)
- func (c *ProjectsLocationsAcceleratorTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAcceleratorTypesListCall
- func (c *ProjectsLocationsAcceleratorTypesListCall) Filter(filter string) *ProjectsLocationsAcceleratorTypesListCall
- func (c *ProjectsLocationsAcceleratorTypesListCall) Header() http.Header
- func (c *ProjectsLocationsAcceleratorTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAcceleratorTypesListCall
- func (c *ProjectsLocationsAcceleratorTypesListCall) OrderBy(orderBy string) *ProjectsLocationsAcceleratorTypesListCall
- func (c *ProjectsLocationsAcceleratorTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAcceleratorTypesListCall
- func (c *ProjectsLocationsAcceleratorTypesListCall) PageToken(pageToken string) *ProjectsLocationsAcceleratorTypesListCall
- func (c *ProjectsLocationsAcceleratorTypesListCall) Pages(ctx context.Context, f func(*ListAcceleratorTypesResponse) error) error
- type ProjectsLocationsAcceleratorTypesService
- 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 ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
- 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 ProjectsLocationsNodesCreateCall
- func (c *ProjectsLocationsNodesCreateCall) Context(ctx context.Context) *ProjectsLocationsNodesCreateCall
- func (c *ProjectsLocationsNodesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsNodesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesCreateCall
- func (c *ProjectsLocationsNodesCreateCall) Header() http.Header
- func (c *ProjectsLocationsNodesCreateCall) NodeId(nodeId string) *ProjectsLocationsNodesCreateCall
- type ProjectsLocationsNodesDeleteCall
- func (c *ProjectsLocationsNodesDeleteCall) Context(ctx context.Context) *ProjectsLocationsNodesDeleteCall
- func (c *ProjectsLocationsNodesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsNodesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesDeleteCall
- func (c *ProjectsLocationsNodesDeleteCall) Header() http.Header
- type ProjectsLocationsNodesGetCall
- func (c *ProjectsLocationsNodesGetCall) Context(ctx context.Context) *ProjectsLocationsNodesGetCall
- func (c *ProjectsLocationsNodesGetCall) Do(opts ...googleapi.CallOption) (*Node, error)
- func (c *ProjectsLocationsNodesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesGetCall
- func (c *ProjectsLocationsNodesGetCall) Header() http.Header
- func (c *ProjectsLocationsNodesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNodesGetCall
- type ProjectsLocationsNodesListCall
- func (c *ProjectsLocationsNodesListCall) Context(ctx context.Context) *ProjectsLocationsNodesListCall
- func (c *ProjectsLocationsNodesListCall) Do(opts ...googleapi.CallOption) (*ListNodesResponse, error)
- func (c *ProjectsLocationsNodesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesListCall
- func (c *ProjectsLocationsNodesListCall) Header() http.Header
- func (c *ProjectsLocationsNodesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNodesListCall
- func (c *ProjectsLocationsNodesListCall) PageSize(pageSize int64) *ProjectsLocationsNodesListCall
- func (c *ProjectsLocationsNodesListCall) PageToken(pageToken string) *ProjectsLocationsNodesListCall
- func (c *ProjectsLocationsNodesListCall) Pages(ctx context.Context, f func(*ListNodesResponse) error) error
- type ProjectsLocationsNodesReimageCall
- func (c *ProjectsLocationsNodesReimageCall) Context(ctx context.Context) *ProjectsLocationsNodesReimageCall
- func (c *ProjectsLocationsNodesReimageCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsNodesReimageCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesReimageCall
- func (c *ProjectsLocationsNodesReimageCall) Header() http.Header
- type ProjectsLocationsNodesService
- func (r *ProjectsLocationsNodesService) Create(parent string, node *Node) *ProjectsLocationsNodesCreateCall
- func (r *ProjectsLocationsNodesService) Delete(name string) *ProjectsLocationsNodesDeleteCall
- func (r *ProjectsLocationsNodesService) Get(name string) *ProjectsLocationsNodesGetCall
- func (r *ProjectsLocationsNodesService) List(parent string) *ProjectsLocationsNodesListCall
- func (r *ProjectsLocationsNodesService) Reimage(name string, reimagenoderequest *ReimageNodeRequest) *ProjectsLocationsNodesReimageCall
- func (r *ProjectsLocationsNodesService) Start(name string, startnoderequest *StartNodeRequest) *ProjectsLocationsNodesStartCall
- func (r *ProjectsLocationsNodesService) Stop(name string, stopnoderequest *StopNodeRequest) *ProjectsLocationsNodesStopCall
- type ProjectsLocationsNodesStartCall
- func (c *ProjectsLocationsNodesStartCall) Context(ctx context.Context) *ProjectsLocationsNodesStartCall
- func (c *ProjectsLocationsNodesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsNodesStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesStartCall
- func (c *ProjectsLocationsNodesStartCall) Header() http.Header
- type ProjectsLocationsNodesStopCall
- func (c *ProjectsLocationsNodesStopCall) Context(ctx context.Context) *ProjectsLocationsNodesStopCall
- func (c *ProjectsLocationsNodesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsNodesStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesStopCall
- func (c *ProjectsLocationsNodesStopCall) Header() http.Header
- 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
- func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string) *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 ProjectsLocationsTensorflowVersionsGetCall
- func (c *ProjectsLocationsTensorflowVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsTensorflowVersionsGetCall
- func (c *ProjectsLocationsTensorflowVersionsGetCall) Do(opts ...googleapi.CallOption) (*TensorFlowVersion, error)
- func (c *ProjectsLocationsTensorflowVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorflowVersionsGetCall
- func (c *ProjectsLocationsTensorflowVersionsGetCall) Header() http.Header
- func (c *ProjectsLocationsTensorflowVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTensorflowVersionsGetCall
- type ProjectsLocationsTensorflowVersionsListCall
- func (c *ProjectsLocationsTensorflowVersionsListCall) Context(ctx context.Context) *ProjectsLocationsTensorflowVersionsListCall
- func (c *ProjectsLocationsTensorflowVersionsListCall) Do(opts ...googleapi.CallOption) (*ListTensorFlowVersionsResponse, error)
- func (c *ProjectsLocationsTensorflowVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorflowVersionsListCall
- func (c *ProjectsLocationsTensorflowVersionsListCall) Filter(filter string) *ProjectsLocationsTensorflowVersionsListCall
- func (c *ProjectsLocationsTensorflowVersionsListCall) Header() http.Header
- func (c *ProjectsLocationsTensorflowVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTensorflowVersionsListCall
- func (c *ProjectsLocationsTensorflowVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsTensorflowVersionsListCall
- func (c *ProjectsLocationsTensorflowVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsTensorflowVersionsListCall
- func (c *ProjectsLocationsTensorflowVersionsListCall) PageToken(pageToken string) *ProjectsLocationsTensorflowVersionsListCall
- func (c *ProjectsLocationsTensorflowVersionsListCall) Pages(ctx context.Context, f func(*ListTensorFlowVersionsResponse) error) error
- type ProjectsLocationsTensorflowVersionsService
- type ProjectsService
- type ReimageNodeRequest
- type SchedulingConfig
- type Service
- type StartNodeRequest
- type Status
- type StopNodeRequest
- type Symptom
- type TensorFlowVersion
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¶
typeAcceleratorType¶
type AcceleratorType struct {// Name: The resource name.Namestring `json:"name,omitempty"`// Type: the accelerator type.Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AcceleratorType: A accelerator type that a Node can be configured with.
func (AcceleratorType)MarshalJSON¶
func (sAcceleratorType) MarshalJSON() ([]byte,error)
typeEmpty¶
type Empty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}Empty: A generic empty message that you can re-use to avoid definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
typeListAcceleratorTypesResponse¶
type ListAcceleratorTypesResponse struct {// AcceleratorTypes: The listed nodes.AcceleratorTypes []*AcceleratorType `json:"acceleratorTypes,omitempty"`// NextPageToken: The next page token or empty if none.NextPageTokenstring `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. "AcceleratorTypes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AcceleratorTypes") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListAcceleratorTypesResponse: Response for ListAcceleratorTypes.
func (ListAcceleratorTypesResponse)MarshalJSON¶
func (sListAcceleratorTypesResponse) MarshalJSON() ([]byte,error)
typeListLocationsResponse¶
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.NextPageTokenstring `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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListLocationsResponse: The response message for Locations.ListLocations.
func (ListLocationsResponse)MarshalJSON¶
func (sListLocationsResponse) MarshalJSON() ([]byte,error)
typeListNodesResponse¶
type ListNodesResponse struct {// NextPageToken: The next page token or empty if none.NextPageTokenstring `json:"nextPageToken,omitempty"`// Nodes: The listed nodes.Nodes []*Node `json:"nodes,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. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListNodesResponse: Response for ListNodes.
func (ListNodesResponse)MarshalJSON¶
func (sListNodesResponse) MarshalJSON() ([]byte,error)
typeListOperationsResponse¶
type ListOperationsResponse struct {// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// Operations: A list of operations that matches the specified filter in the// request.Operations []*Operation `json:"operations,omitempty"`// Unreachable: Unordered list. Unreachable resources. Populated when the// request sets `ListOperationsRequest.return_partial_success` and reads across// collections e.g. when attempting to list all resources across all supported// locations.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. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListOperationsResponse: The response message for Operations.ListOperations.
func (ListOperationsResponse)MarshalJSON¶
func (sListOperationsResponse) MarshalJSON() ([]byte,error)
typeListTensorFlowVersionsResponse¶
type ListTensorFlowVersionsResponse struct {// NextPageToken: The next page token or empty if none.NextPageTokenstring `json:"nextPageToken,omitempty"`// TensorflowVersions: The listed nodes.TensorflowVersions []*TensorFlowVersion `json:"tensorflowVersions,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. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListTensorFlowVersionsResponse: Response for ListTensorFlowVersions.
func (ListTensorFlowVersionsResponse)MarshalJSON¶
func (sListTensorFlowVersionsResponse) MarshalJSON() ([]byte,error)
typeLocation¶
type Location struct {// DisplayName: The friendly name for this location, typically a nearby city// name. For example, "Tokyo".DisplayNamestring `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".LocationIdstring `json:"locationId,omitempty"`// Metadata: Service-specific metadata. For example the available capacity at// the given location.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: Resource name for the location, which may vary between// implementations. For example:// "projects/example-project/locations/us-east1"Namestring `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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Location: A resource that represents a Google Cloud location.
func (Location)MarshalJSON¶
typeNetworkEndpoint¶
type NetworkEndpoint struct {// IpAddress: The IP address of this network endpoint.IpAddressstring `json:"ipAddress,omitempty"`// Port: The port of this network endpoint.Portint64 `json:"port,omitempty"`// ForceSendFields is a list of field names (e.g. "IpAddress") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IpAddress") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}NetworkEndpoint: A network endpoint over which a TPU worker can be reached.
func (NetworkEndpoint)MarshalJSON¶
func (sNetworkEndpoint) MarshalJSON() ([]byte,error)
typeNode¶
type Node struct {// AcceleratorType: Required. The type of hardware accelerators associated with// this node.AcceleratorTypestring `json:"acceleratorType,omitempty"`// ApiVersion: Output only. The API version that created this Node.//// Possible values:// "API_VERSION_UNSPECIFIED" - API version is unknown.// "V1_ALPHA1" - TPU API V1Alpha1 version.// "V1" - TPU API V1 version.// "V2_ALPHA1" - TPU API V2Alpha1 version.ApiVersionstring `json:"apiVersion,omitempty"`// CidrBlock: The CIDR block that the TPU node will use when selecting an IP// address. This CIDR block must be a /29 block; the Compute Engine networks// API forbids a smaller block, and using a larger block would be wasteful (a// node can only consume one IP address). Errors will occur if the CIDR block// has already been used for a currently existing TPU node, the CIDR block// conflicts with any subnetworks in the user's provided network, or the// provided network is peered with another network that is using that CIDR// block.CidrBlockstring `json:"cidrBlock,omitempty"`// CreateTime: Output only. The time when the node was created.CreateTimestring `json:"createTime,omitempty"`// Description: The user-supplied description of the TPU. Maximum of 512// characters.Descriptionstring `json:"description,omitempty"`// Health: The health status of the TPU node.//// Possible values:// "HEALTH_UNSPECIFIED" - Health status is unknown: not initialized or failed// to retrieve.// "HEALTHY" - The resource is healthy.// "DEPRECATED_UNHEALTHY" - The resource is unhealthy.// "TIMEOUT" - The resource is unresponsive.// "UNHEALTHY_TENSORFLOW" - The in-guest ML stack is unhealthy.// "UNHEALTHY_MAINTENANCE" - The node is under maintenance/priority boost// caused rescheduling and will resume running once rescheduled.Healthstring `json:"health,omitempty"`// HealthDescription: Output only. If this field is populated, it contains a// description of why the TPU Node is unhealthy.HealthDescriptionstring `json:"healthDescription,omitempty"`// IpAddress: Output only. DEPRECATED! Use network_endpoints instead. The// network address for the TPU Node as visible to Compute Engine instances.IpAddressstring `json:"ipAddress,omitempty"`// Labels: Resource labels to represent user-provided metadata.Labels map[string]string `json:"labels,omitempty"`// Name: Output only. Immutable. The name of the TPUNamestring `json:"name,omitempty"`// Network: The name of a network they wish to peer the TPU node to. It must be// a preexisting Compute Engine network inside of the project on which this API// has been activated. If none is provided, "default" will be used.Networkstring `json:"network,omitempty"`// NetworkEndpoints: Output only. The network endpoints where TPU workers can// be accessed and sent work. It is recommended that Tensorflow clients of the// node reach out to the 0th entry in this map first.NetworkEndpoints []*NetworkEndpoint `json:"networkEndpoints,omitempty"`// Port: Output only. DEPRECATED! Use network_endpoints instead. The network// port for the TPU Node as visible to Compute Engine instances.Portstring `json:"port,omitempty"`// SchedulingConfig: The scheduling options for this node.SchedulingConfig *SchedulingConfig `json:"schedulingConfig,omitempty"`// ServiceAccount: Output only. The service account used to run the tensor flow// services within the node. To share resources, including Google Cloud Storage// data, with the Tensorflow job running in the Node, this account must have// permissions to that data.ServiceAccountstring `json:"serviceAccount,omitempty"`// State: Output only. The current state for the TPU Node.//// Possible values:// "STATE_UNSPECIFIED" - TPU node state is not known/set.// "CREATING" - TPU node is being created.// "READY" - TPU node has been created.// "RESTARTING" - TPU node is restarting.// "REIMAGING" - TPU node is undergoing reimaging.// "DELETING" - TPU node is being deleted.// "REPAIRING" - TPU node is being repaired and may be unusable. Details can// be found in the `help_description` field.// "STOPPED" - TPU node is stopped.// "STOPPING" - TPU node is currently stopping.// "STARTING" - TPU node is currently starting.// "PREEMPTED" - TPU node has been preempted. Only applies to Preemptible TPU// Nodes.// "TERMINATED" - TPU node has been terminated due to maintenance or has// reached the end of its life cycle (for preemptible nodes).// "HIDING" - TPU node is currently hiding.// "HIDDEN" - TPU node has been hidden.// "UNHIDING" - TPU node is currently unhiding.// "UNKNOWN" - TPU node has unknown state after a failed repair.Statestring `json:"state,omitempty"`// Symptoms: Output only. The Symptoms that have occurred to the TPU Node.Symptoms []*Symptom `json:"symptoms,omitempty"`// TensorflowVersion: Required. The version of Tensorflow running in the Node.TensorflowVersionstring `json:"tensorflowVersion,omitempty"`// UseServiceNetworking: Whether the VPC peering for the node is set up through// Service Networking API. The VPC Peering should be set up before provisioning// the node. If this field is set, cidr_block field should not be specified. If// the network, that you want to peer the TPU Node to, is Shared VPC networks,// the node must be created with this this field enabled.UseServiceNetworkingbool `json:"useServiceNetworking,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AcceleratorType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AcceleratorType") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Node: A TPU instance.
func (Node)MarshalJSON¶
typeOperation¶
type Operation struct {// Done: If the value is `false`, it means the operation is still in progress.// If `true`, the operation is completed, and either `error` or `response` is// available.Donebool `json:"done,omitempty"`// Error: The error result of the operation in case of failure or cancellation.Error *Status `json:"error,omitempty"`// Metadata: Service-specific metadata associated with the operation. It// typically contains progress information and common metadata such as create// time. Some services might not provide such metadata. Any method that returns// a long-running operation should document the metadata type, if any.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: The server-assigned name, which is only unique within the same service// that originally returns it. If you use the default HTTP mapping, the `name`// should be a resource name ending with `operations/{unique_id}`.Namestring `json:"name,omitempty"`// Response: The normal, successful response of the operation. If the original// method returns no data on success, such as `Delete`, the response is// `google.protobuf.Empty`. If the original method is standard// `Get`/`Create`/`Update`, the response should be the resource. For other// methods, the response should have the type `XxxResponse`, where `Xxx` is the// original method name. For example, if the original method name is// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.Responsegoogleapi.RawMessage `json:"response,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Done") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Operation: This resource represents a long-running operation that is theresult of a network API call.
func (Operation)MarshalJSON¶
typeOperationMetadata¶
type OperationMetadata struct {// ApiVersion: API version.ApiVersionstring `json:"apiVersion,omitempty"`// CancelRequested: Specifies if cancellation was requested for the operation.CancelRequestedbool `json:"cancelRequested,omitempty"`// CreateTime: The time the operation was created.CreateTimestring `json:"createTime,omitempty"`// EndTime: The time the operation finished running.EndTimestring `json:"endTime,omitempty"`// StatusDetail: Human-readable status of the operation, if any.StatusDetailstring `json:"statusDetail,omitempty"`// Target: Target of the operation - for example// projects/project-1/connectivityTests/test-1Targetstring `json:"target,omitempty"`// Verb: Name of the verb executed by the operation.Verbstring `json:"verb,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiVersion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}OperationMetadata: Metadata describing an Operation
func (OperationMetadata)MarshalJSON¶
func (sOperationMetadata) MarshalJSON() ([]byte,error)
typeProjectsLocationsAcceleratorTypesGetCall¶
type ProjectsLocationsAcceleratorTypesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsAcceleratorTypesGetCall)Context¶
func (c *ProjectsLocationsAcceleratorTypesGetCall) Context(ctxcontext.Context) *ProjectsLocationsAcceleratorTypesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAcceleratorTypesGetCall)Do¶
func (c *ProjectsLocationsAcceleratorTypesGetCall) Do(opts ...googleapi.CallOption) (*AcceleratorType,error)
Do executes the "tpu.projects.locations.acceleratorTypes.get" call.Any non-2xx status code is an error. Response headers are in either*AcceleratorType.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsAcceleratorTypesGetCall)Fields¶
func (c *ProjectsLocationsAcceleratorTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAcceleratorTypesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsAcceleratorTypesGetCall)Header¶
func (c *ProjectsLocationsAcceleratorTypesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsAcceleratorTypesGetCall)IfNoneMatch¶
func (c *ProjectsLocationsAcceleratorTypesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsAcceleratorTypesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsAcceleratorTypesListCall¶
type ProjectsLocationsAcceleratorTypesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsAcceleratorTypesListCall)Context¶
func (c *ProjectsLocationsAcceleratorTypesListCall) Context(ctxcontext.Context) *ProjectsLocationsAcceleratorTypesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsAcceleratorTypesListCall)Do¶
func (c *ProjectsLocationsAcceleratorTypesListCall) Do(opts ...googleapi.CallOption) (*ListAcceleratorTypesResponse,error)
Do executes the "tpu.projects.locations.acceleratorTypes.list" call.Any non-2xx status code is an error. Response headers are in either*ListAcceleratorTypesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsAcceleratorTypesListCall)Fields¶
func (c *ProjectsLocationsAcceleratorTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAcceleratorTypesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsAcceleratorTypesListCall)Filter¶
func (c *ProjectsLocationsAcceleratorTypesListCall) Filter(filterstring) *ProjectsLocationsAcceleratorTypesListCall
Filter sets the optional parameter "filter": List filter.
func (*ProjectsLocationsAcceleratorTypesListCall)Header¶
func (c *ProjectsLocationsAcceleratorTypesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsAcceleratorTypesListCall)IfNoneMatch¶
func (c *ProjectsLocationsAcceleratorTypesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsAcceleratorTypesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsAcceleratorTypesListCall)OrderBy¶
func (c *ProjectsLocationsAcceleratorTypesListCall) OrderBy(orderBystring) *ProjectsLocationsAcceleratorTypesListCall
OrderBy sets the optional parameter "orderBy": Sort results.
func (*ProjectsLocationsAcceleratorTypesListCall)PageSize¶
func (c *ProjectsLocationsAcceleratorTypesListCall) PageSize(pageSizeint64) *ProjectsLocationsAcceleratorTypesListCall
PageSize sets the optional parameter "pageSize": The maximum number of itemsto return.
func (*ProjectsLocationsAcceleratorTypesListCall)PageToken¶
func (c *ProjectsLocationsAcceleratorTypesListCall) PageToken(pageTokenstring) *ProjectsLocationsAcceleratorTypesListCall
PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous List request, if any.
func (*ProjectsLocationsAcceleratorTypesListCall)Pages¶
func (c *ProjectsLocationsAcceleratorTypesListCall) Pages(ctxcontext.Context, f func(*ListAcceleratorTypesResponse)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.
typeProjectsLocationsAcceleratorTypesService¶
type ProjectsLocationsAcceleratorTypesService struct {// contains filtered or unexported fields}funcNewProjectsLocationsAcceleratorTypesService¶
func NewProjectsLocationsAcceleratorTypesService(s *Service) *ProjectsLocationsAcceleratorTypesService
func (*ProjectsLocationsAcceleratorTypesService)Get¶
func (r *ProjectsLocationsAcceleratorTypesService) Get(namestring) *ProjectsLocationsAcceleratorTypesGetCall
Get: Gets AcceleratorType.
- name: The resource name.
func (*ProjectsLocationsAcceleratorTypesService)List¶
func (r *ProjectsLocationsAcceleratorTypesService) List(parentstring) *ProjectsLocationsAcceleratorTypesListCall
List: Lists accelerator types supported by this API.
- parent: The parent resource name.
typeProjectsLocationsGetCall¶
type ProjectsLocationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsGetCall)Context¶
func (c *ProjectsLocationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGetCall)Do¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,error)
Do executes the "tpu.projects.locations.get" call.Any non-2xx status code is an error. Response headers are in either*Location.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether 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. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsGetCall)Header¶
func (c *ProjectsLocationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsListCall¶
type ProjectsLocationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsListCall)Context¶
func (c *ProjectsLocationsListCall) Context(ctxcontext.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsListCall)Do¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse,error)
Do executes the "tpu.projects.locations.list" call.Any non-2xx status code is an error. Response headers are in either*ListLocationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsListCall)ExtraLocationTypes¶added inv0.229.0
func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unlessexplicitly documented otherwise, don't use this unsupported field which isprimarily intended for internal usage.
func (*ProjectsLocationsListCall)Fields¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsListCall)Filter¶
func (c *ProjectsLocationsListCall) Filter(filterstring) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down resultsto 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 a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsListCall)IfNoneMatch¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsListCall)PageSize¶
func (c *ProjectsLocationsListCall) PageSize(pageSizeint64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall)PageToken¶
func (c *ProjectsLocationsListCall) PageToken(pageTokenstring) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.
func (*ProjectsLocationsListCall)Pages¶
func (c *ProjectsLocationsListCall) Pages(ctxcontext.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.
typeProjectsLocationsNodesCreateCall¶
type ProjectsLocationsNodesCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNodesCreateCall)Context¶
func (c *ProjectsLocationsNodesCreateCall) Context(ctxcontext.Context) *ProjectsLocationsNodesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNodesCreateCall)Do¶
func (c *ProjectsLocationsNodesCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "tpu.projects.locations.nodes.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNodesCreateCall)Fields¶
func (c *ProjectsLocationsNodesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNodesCreateCall)Header¶
func (c *ProjectsLocationsNodesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNodesCreateCall)NodeId¶
func (c *ProjectsLocationsNodesCreateCall) NodeId(nodeIdstring) *ProjectsLocationsNodesCreateCall
NodeId sets the optional parameter "nodeId": The unqualified resource name.
typeProjectsLocationsNodesDeleteCall¶
type ProjectsLocationsNodesDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNodesDeleteCall)Context¶
func (c *ProjectsLocationsNodesDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsNodesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNodesDeleteCall)Do¶
func (c *ProjectsLocationsNodesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "tpu.projects.locations.nodes.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNodesDeleteCall)Fields¶
func (c *ProjectsLocationsNodesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNodesDeleteCall)Header¶
func (c *ProjectsLocationsNodesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNodesGetCall¶
type ProjectsLocationsNodesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNodesGetCall)Context¶
func (c *ProjectsLocationsNodesGetCall) Context(ctxcontext.Context) *ProjectsLocationsNodesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNodesGetCall)Do¶
func (c *ProjectsLocationsNodesGetCall) Do(opts ...googleapi.CallOption) (*Node,error)
Do executes the "tpu.projects.locations.nodes.get" call.Any non-2xx status code is an error. Response headers are in either*Node.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNodesGetCall)Fields¶
func (c *ProjectsLocationsNodesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNodesGetCall)Header¶
func (c *ProjectsLocationsNodesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNodesGetCall)IfNoneMatch¶
func (c *ProjectsLocationsNodesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNodesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsNodesListCall¶
type ProjectsLocationsNodesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNodesListCall)Context¶
func (c *ProjectsLocationsNodesListCall) Context(ctxcontext.Context) *ProjectsLocationsNodesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNodesListCall)Do¶
func (c *ProjectsLocationsNodesListCall) Do(opts ...googleapi.CallOption) (*ListNodesResponse,error)
Do executes the "tpu.projects.locations.nodes.list" call.Any non-2xx status code is an error. Response headers are in either*ListNodesResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsNodesListCall)Fields¶
func (c *ProjectsLocationsNodesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNodesListCall)Header¶
func (c *ProjectsLocationsNodesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNodesListCall)IfNoneMatch¶
func (c *ProjectsLocationsNodesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNodesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsNodesListCall)PageSize¶
func (c *ProjectsLocationsNodesListCall) PageSize(pageSizeint64) *ProjectsLocationsNodesListCall
PageSize sets the optional parameter "pageSize": The maximum number of itemsto return.
func (*ProjectsLocationsNodesListCall)PageToken¶
func (c *ProjectsLocationsNodesListCall) PageToken(pageTokenstring) *ProjectsLocationsNodesListCall
PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous List request, if any.
func (*ProjectsLocationsNodesListCall)Pages¶
func (c *ProjectsLocationsNodesListCall) Pages(ctxcontext.Context, f func(*ListNodesResponse)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.
typeProjectsLocationsNodesReimageCall¶
type ProjectsLocationsNodesReimageCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNodesReimageCall)Context¶
func (c *ProjectsLocationsNodesReimageCall) Context(ctxcontext.Context) *ProjectsLocationsNodesReimageCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNodesReimageCall)Do¶
func (c *ProjectsLocationsNodesReimageCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "tpu.projects.locations.nodes.reimage" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNodesReimageCall)Fields¶
func (c *ProjectsLocationsNodesReimageCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesReimageCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNodesReimageCall)Header¶
func (c *ProjectsLocationsNodesReimageCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNodesService¶
type ProjectsLocationsNodesService struct {// contains filtered or unexported fields}funcNewProjectsLocationsNodesService¶
func NewProjectsLocationsNodesService(s *Service) *ProjectsLocationsNodesService
func (*ProjectsLocationsNodesService)Create¶
func (r *ProjectsLocationsNodesService) Create(parentstring, node *Node) *ProjectsLocationsNodesCreateCall
Create: Creates a node.
- parent: The parent resource name.
func (*ProjectsLocationsNodesService)Delete¶
func (r *ProjectsLocationsNodesService) Delete(namestring) *ProjectsLocationsNodesDeleteCall
Delete: Deletes a node.
- name: The resource name.
func (*ProjectsLocationsNodesService)Get¶
func (r *ProjectsLocationsNodesService) Get(namestring) *ProjectsLocationsNodesGetCall
Get: Gets the details of a node.
- name: The resource name.
func (*ProjectsLocationsNodesService)List¶
func (r *ProjectsLocationsNodesService) List(parentstring) *ProjectsLocationsNodesListCall
List: Lists nodes.
- parent: The parent resource name.
func (*ProjectsLocationsNodesService)Reimage¶
func (r *ProjectsLocationsNodesService) Reimage(namestring, reimagenoderequest *ReimageNodeRequest) *ProjectsLocationsNodesReimageCall
Reimage: Reimages a node's OS.
- name: The resource name.
func (*ProjectsLocationsNodesService)Start¶
func (r *ProjectsLocationsNodesService) Start(namestring, startnoderequest *StartNodeRequest) *ProjectsLocationsNodesStartCall
Start: Starts a node.
- name: The resource name.
func (*ProjectsLocationsNodesService)Stop¶
func (r *ProjectsLocationsNodesService) Stop(namestring, stopnoderequest *StopNodeRequest) *ProjectsLocationsNodesStopCall
Stop: Stops a node, this operation is only available with single TPU nodes.
- name: The resource name.
typeProjectsLocationsNodesStartCall¶
type ProjectsLocationsNodesStartCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNodesStartCall)Context¶
func (c *ProjectsLocationsNodesStartCall) Context(ctxcontext.Context) *ProjectsLocationsNodesStartCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNodesStartCall)Do¶
func (c *ProjectsLocationsNodesStartCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "tpu.projects.locations.nodes.start" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNodesStartCall)Fields¶
func (c *ProjectsLocationsNodesStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesStartCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNodesStartCall)Header¶
func (c *ProjectsLocationsNodesStartCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNodesStopCall¶
type ProjectsLocationsNodesStopCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNodesStopCall)Context¶
func (c *ProjectsLocationsNodesStopCall) Context(ctxcontext.Context) *ProjectsLocationsNodesStopCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNodesStopCall)Do¶
func (c *ProjectsLocationsNodesStopCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "tpu.projects.locations.nodes.stop" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNodesStopCall)Fields¶
func (c *ProjectsLocationsNodesStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesStopCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNodesStopCall)Header¶
func (c *ProjectsLocationsNodesStopCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsOperationsCancelCall¶
type ProjectsLocationsOperationsCancelCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsCancelCall)Context¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsCancelCall)Do¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "tpu.projects.locations.operations.cancel" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether 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. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsCancelCall)Header¶
func (c *ProjectsLocationsOperationsCancelCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsOperationsDeleteCall¶
type ProjectsLocationsOperationsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsDeleteCall)Context¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsDeleteCall)Do¶
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "tpu.projects.locations.operations.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether 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. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsDeleteCall)Header¶
func (c *ProjectsLocationsOperationsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsOperationsGetCall¶
type ProjectsLocationsOperationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsGetCall)Context¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsGetCall)Do¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "tpu.projects.locations.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether 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. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsGetCall)Header¶
func (c *ProjectsLocationsOperationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsOperationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsOperationsListCall¶
type ProjectsLocationsOperationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsListCall)Context¶
func (c *ProjectsLocationsOperationsListCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsListCall)Do¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse,error)
Do executes the "tpu.projects.locations.operations.list" call.Any non-2xx status code is an error. Response headers are in either*ListOperationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsOperationsListCall)Fields¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsListCall)Filter¶
func (c *ProjectsLocationsOperationsListCall) Filter(filterstring) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall)Header¶
func (c *ProjectsLocationsOperationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsOperationsListCall)IfNoneMatch¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsOperationsListCall)PageSize¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSizeint64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list pagesize.
func (*ProjectsLocationsOperationsListCall)PageToken¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageTokenstring) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list pagetoken.
func (*ProjectsLocationsOperationsListCall)Pages¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctxcontext.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.
func (*ProjectsLocationsOperationsListCall)ReturnPartialSuccess¶added inv0.253.0
func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccessbool) *ProjectsLocationsOperationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess":When set to `true`, operations that are reachable are returned as normal,and those that are unreachable are returned in the[ListOperationsResponse.unreachable] field. This can only be `true` whenreading across collections e.g. when `parent` is set to"projects/example/locations/-". This field is not by default supported andwill result in an `UNIMPLEMENTED` error if set unless explicitly documentedotherwise in service or product specific documentation.
typeProjectsLocationsOperationsService¶
type ProjectsLocationsOperationsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsOperationsService¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService)Cancel¶
func (r *ProjectsLocationsOperationsService) Cancel(namestring) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. Theserver makes a best effort to cancel the operation, but success is notguaranteed. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation, theoperation is not deleted; instead, it becomes an operation with anOperation.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(namestring) *ProjectsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that theclient is no longer interested in the operation result. It does not cancelthe 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(namestring) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.
- name: The name of the operation resource.
func (*ProjectsLocationsOperationsService)List¶
func (r *ProjectsLocationsOperationsService) List(namestring) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. Ifthe server doesn't support this method, it returns `UNIMPLEMENTED`.
- name: The name of the operation's parent resource.
typeProjectsLocationsService¶
type ProjectsLocationsService struct {AcceleratorTypes *ProjectsLocationsAcceleratorTypesServiceNodes *ProjectsLocationsNodesServiceOperations *ProjectsLocationsOperationsServiceTensorflowVersions *ProjectsLocationsTensorflowVersionsService// contains filtered or unexported fields}funcNewProjectsLocationsService¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService)Get¶
func (r *ProjectsLocationsService) Get(namestring) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService)List¶
func (r *ProjectsLocationsService) List(namestring) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
typeProjectsLocationsTensorflowVersionsGetCall¶
type ProjectsLocationsTensorflowVersionsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsTensorflowVersionsGetCall)Context¶
func (c *ProjectsLocationsTensorflowVersionsGetCall) Context(ctxcontext.Context) *ProjectsLocationsTensorflowVersionsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsTensorflowVersionsGetCall)Do¶
func (c *ProjectsLocationsTensorflowVersionsGetCall) Do(opts ...googleapi.CallOption) (*TensorFlowVersion,error)
Do executes the "tpu.projects.locations.tensorflowVersions.get" call.Any non-2xx status code is an error. Response headers are in either*TensorFlowVersion.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsTensorflowVersionsGetCall)Fields¶
func (c *ProjectsLocationsTensorflowVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorflowVersionsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsTensorflowVersionsGetCall)Header¶
func (c *ProjectsLocationsTensorflowVersionsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsTensorflowVersionsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsTensorflowVersionsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsTensorflowVersionsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsTensorflowVersionsListCall¶
type ProjectsLocationsTensorflowVersionsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsTensorflowVersionsListCall)Context¶
func (c *ProjectsLocationsTensorflowVersionsListCall) Context(ctxcontext.Context) *ProjectsLocationsTensorflowVersionsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsTensorflowVersionsListCall)Do¶
func (c *ProjectsLocationsTensorflowVersionsListCall) Do(opts ...googleapi.CallOption) (*ListTensorFlowVersionsResponse,error)
Do executes the "tpu.projects.locations.tensorflowVersions.list" call.Any non-2xx status code is an error. Response headers are in either*ListTensorFlowVersionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsTensorflowVersionsListCall)Fields¶
func (c *ProjectsLocationsTensorflowVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorflowVersionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsTensorflowVersionsListCall)Filter¶
func (c *ProjectsLocationsTensorflowVersionsListCall) Filter(filterstring) *ProjectsLocationsTensorflowVersionsListCall
Filter sets the optional parameter "filter": List filter.
func (*ProjectsLocationsTensorflowVersionsListCall)Header¶
func (c *ProjectsLocationsTensorflowVersionsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsTensorflowVersionsListCall)IfNoneMatch¶
func (c *ProjectsLocationsTensorflowVersionsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsTensorflowVersionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsTensorflowVersionsListCall)OrderBy¶
func (c *ProjectsLocationsTensorflowVersionsListCall) OrderBy(orderBystring) *ProjectsLocationsTensorflowVersionsListCall
OrderBy sets the optional parameter "orderBy": Sort results.
func (*ProjectsLocationsTensorflowVersionsListCall)PageSize¶
func (c *ProjectsLocationsTensorflowVersionsListCall) PageSize(pageSizeint64) *ProjectsLocationsTensorflowVersionsListCall
PageSize sets the optional parameter "pageSize": The maximum number of itemsto return.
func (*ProjectsLocationsTensorflowVersionsListCall)PageToken¶
func (c *ProjectsLocationsTensorflowVersionsListCall) PageToken(pageTokenstring) *ProjectsLocationsTensorflowVersionsListCall
PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous List request, if any.
func (*ProjectsLocationsTensorflowVersionsListCall)Pages¶
func (c *ProjectsLocationsTensorflowVersionsListCall) Pages(ctxcontext.Context, f func(*ListTensorFlowVersionsResponse)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.
typeProjectsLocationsTensorflowVersionsService¶
type ProjectsLocationsTensorflowVersionsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsTensorflowVersionsService¶
func NewProjectsLocationsTensorflowVersionsService(s *Service) *ProjectsLocationsTensorflowVersionsService
func (*ProjectsLocationsTensorflowVersionsService)Get¶
func (r *ProjectsLocationsTensorflowVersionsService) Get(namestring) *ProjectsLocationsTensorflowVersionsGetCall
Get: Gets TensorFlow Version.
- name: The resource name.
func (*ProjectsLocationsTensorflowVersionsService)List¶
func (r *ProjectsLocationsTensorflowVersionsService) List(parentstring) *ProjectsLocationsTensorflowVersionsListCall
List: List TensorFlow versions supported by this API.
- parent: The parent resource name.
typeProjectsService¶
type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}funcNewProjectsService¶
func NewProjectsService(s *Service) *ProjectsService
typeReimageNodeRequest¶
type ReimageNodeRequest struct {// TensorflowVersion: The version for reimage to create.TensorflowVersionstring `json:"tensorflowVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "TensorflowVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TensorflowVersion") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ReimageNodeRequest: Request for ReimageNode.
func (ReimageNodeRequest)MarshalJSON¶
func (sReimageNodeRequest) MarshalJSON() ([]byte,error)
typeSchedulingConfig¶
type SchedulingConfig struct {// Preemptible: Defines whether the node is preemptible.Preemptiblebool `json:"preemptible,omitempty"`// Reserved: Whether the node is created under a reservation.Reservedbool `json:"reserved,omitempty"`// ForceSendFields is a list of field names (e.g. "Preemptible") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Preemptible") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SchedulingConfig: Sets the scheduling options for this node.
func (SchedulingConfig)MarshalJSON¶
func (sSchedulingConfig) MarshalJSON() ([]byte,error)
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶added inv0.3.0
NewService creates a new Service.
typeStatus¶
type Status struct {// Code: The status code, which should be an enum value of google.rpc.Code.Codeint64 `json:"code,omitempty"`// Details: A list of messages that carry the error details. There is a common// set of message types for APIs to use.Details []googleapi.RawMessage `json:"details,omitempty"`// Message: A developer-facing error message, which should be in English. Any// user-facing error message should be localized and sent in the// google.rpc.Status.details field, or localized by the client.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Status: The `Status` type defines a logical error model that is suitable fordifferent programming environments, including REST APIs and RPC APIs. It isused by gRPC (https://github.com/grpc). Each `Status` message contains threepieces of data: error code, error message, and error details. You can findout more about this error model and how to work with it in the API DesignGuide (https://cloud.google.com/apis/design/errors).
func (Status)MarshalJSON¶
typeSymptom¶added inv0.32.0
type Symptom struct {// CreateTime: Timestamp when the Symptom is created.CreateTimestring `json:"createTime,omitempty"`// Details: Detailed information of the current Symptom.Detailsstring `json:"details,omitempty"`// SymptomType: Type of the Symptom.//// Possible values:// "SYMPTOM_TYPE_UNSPECIFIED" - Unspecified symptom.// "LOW_MEMORY" - TPU VM memory is low.// "OUT_OF_MEMORY" - TPU runtime is out of memory.// "EXECUTE_TIMED_OUT" - TPU runtime execution has timed out.// "MESH_BUILD_FAIL" - TPU runtime fails to construct a mesh that recognizes// each TPU device's neighbors.// "HBM_OUT_OF_MEMORY" - TPU HBM is out of memory.// "PROJECT_ABUSE" - Abusive behaviors have been identified on the current// project.SymptomTypestring `json:"symptomType,omitempty"`// WorkerId: A string used to uniquely distinguish a worker within a TPU node.WorkerIdstring `json:"workerId,omitempty"`// 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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Symptom: A Symptom instance.
func (Symptom)MarshalJSON¶added inv0.32.0
typeTensorFlowVersion¶
type TensorFlowVersion struct {// Name: The resource name.Namestring `json:"name,omitempty"`// Version: the tensorflow version.Versionstring `json:"version,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}TensorFlowVersion: A tensorflow version that a Node can be configured with.
func (TensorFlowVersion)MarshalJSON¶
func (sTensorFlowVersion) MarshalJSON() ([]byte,error)