Documentation ¶
Overview ¶
nolint: lll
nolint: lll
nolint: lll
Index ¶
- type GetTensorflowVersionsArgs
- type GetTensorflowVersionsResult
- type Node
- type NodeArgs
- type NodeNetworkEndpoint
- type NodeNetworkEndpointArgs
- type NodeNetworkEndpointArray
- type NodeNetworkEndpointArrayInput
- type NodeNetworkEndpointArrayOutput
- func (NodeNetworkEndpointArrayOutput) ElementType() reflect.Type
- func (o NodeNetworkEndpointArrayOutput) Index(i pulumi.IntInput) NodeNetworkEndpointOutput
- func (o NodeNetworkEndpointArrayOutput) ToNodeNetworkEndpointArrayOutput() NodeNetworkEndpointArrayOutput
- func (o NodeNetworkEndpointArrayOutput) ToNodeNetworkEndpointArrayOutputWithContext(ctx context.Context) NodeNetworkEndpointArrayOutput
- type NodeNetworkEndpointInput
- type NodeNetworkEndpointOutput
- func (NodeNetworkEndpointOutput) ElementType() reflect.Type
- func (o NodeNetworkEndpointOutput) IpAddress() pulumi.StringPtrOutput
- func (o NodeNetworkEndpointOutput) Port() pulumi.IntPtrOutput
- func (o NodeNetworkEndpointOutput) ToNodeNetworkEndpointOutput() NodeNetworkEndpointOutput
- func (o NodeNetworkEndpointOutput) ToNodeNetworkEndpointOutputWithContext(ctx context.Context) NodeNetworkEndpointOutput
- type NodeSchedulingConfig
- type NodeSchedulingConfigArgs
- func (NodeSchedulingConfigArgs) ElementType() reflect.Type
- func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigOutput() NodeSchedulingConfigOutput
- func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigOutputWithContext(ctx context.Context) NodeSchedulingConfigOutput
- func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigPtrOutput() NodeSchedulingConfigPtrOutput
- func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigPtrOutputWithContext(ctx context.Context) NodeSchedulingConfigPtrOutput
- type NodeSchedulingConfigInput
- type NodeSchedulingConfigOutput
- func (NodeSchedulingConfigOutput) ElementType() reflect.Type
- func (o NodeSchedulingConfigOutput) Preemptible() pulumi.BoolOutput
- func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigOutput() NodeSchedulingConfigOutput
- func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigOutputWithContext(ctx context.Context) NodeSchedulingConfigOutput
- func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigPtrOutput() NodeSchedulingConfigPtrOutput
- func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigPtrOutputWithContext(ctx context.Context) NodeSchedulingConfigPtrOutput
- type NodeSchedulingConfigPtrInput
- type NodeSchedulingConfigPtrOutput
- func (o NodeSchedulingConfigPtrOutput) Elem() NodeSchedulingConfigOutput
- func (NodeSchedulingConfigPtrOutput) ElementType() reflect.Type
- func (o NodeSchedulingConfigPtrOutput) Preemptible() pulumi.BoolOutput
- func (o NodeSchedulingConfigPtrOutput) ToNodeSchedulingConfigPtrOutput() NodeSchedulingConfigPtrOutput
- func (o NodeSchedulingConfigPtrOutput) ToNodeSchedulingConfigPtrOutputWithContext(ctx context.Context) NodeSchedulingConfigPtrOutput
- type NodeState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTensorflowVersionsArgs ¶
type GetTensorflowVersionsArgs struct { // The project to list versions for. If it // is not provided, the provider project is used. Project *string `pulumi:"project"` // The zone to list versions for. If it // is not provided, the provider zone is used. Zone *string `pulumi:"zone"` }
A collection of arguments for invoking getTensorflowVersions.
type GetTensorflowVersionsResult ¶
type GetTensorflowVersionsResult struct { // id is the provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Project string `pulumi:"project"` // The list of TensorFlow versions available for the given project and zone. Versions []string `pulumi:"versions"` Zone string `pulumi:"zone"` }
A collection of values returned by getTensorflowVersions.
func GetTensorflowVersions ¶
func GetTensorflowVersions(ctx *pulumi.Context, args *GetTensorflowVersionsArgs, opts ...pulumi.InvokeOption) (*GetTensorflowVersionsResult, error)
Get TensorFlow versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.tensorflowVersions).
> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/d/datasource_tpu_tensorflow_versions.html.markdown.
type Node ¶
type Node struct { pulumi.CustomResourceState // The type of hardware accelerators associated with this node. AcceleratorType pulumi.StringOutput `pulumi:"acceleratorType"` // 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. CidrBlock pulumi.StringOutput `pulumi:"cidrBlock"` // The user-supplied description of the TPU. Maximum of 512 characters. Description pulumi.StringPtrOutput `pulumi:"description"` // Resource labels to represent user provided metadata. Labels pulumi.StringMapOutput `pulumi:"labels"` // The immutable name of the TPU. Name pulumi.StringOutput `pulumi:"name"` // The name of a network 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. Network pulumi.StringOutput `pulumi:"network"` // The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the // node first reach out to the first (index 0) entry. NetworkEndpoints NodeNetworkEndpointArrayOutput `pulumi:"networkEndpoints"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // Sets the scheduling options for this TPU instance. SchedulingConfig NodeSchedulingConfigPtrOutput `pulumi:"schedulingConfig"` // 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. ServiceAccount pulumi.StringOutput `pulumi:"serviceAccount"` // The version of Tensorflow running in the Node. TensorflowVersion pulumi.StringOutput `pulumi:"tensorflowVersion"` // The GCP location for the TPU. Zone pulumi.StringOutput `pulumi:"zone"` }
A Cloud TPU instance.
To get more information about Node, see:
* [API documentation](https://cloud.google.com/tpu/docs/reference/rest/) * How-to Guides
- [Official Documentation](https://cloud.google.com/tpu/docs/)
> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/tpu_node.html.markdown.
func GetNode ¶
func GetNode(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NodeState, opts ...pulumi.ResourceOption) (*Node, error)
GetNode gets an existing Node resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
type NodeArgs ¶
type NodeArgs struct { // The type of hardware accelerators associated with this node. AcceleratorType pulumi.StringInput // 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. CidrBlock pulumi.StringInput // The user-supplied description of the TPU. Maximum of 512 characters. Description pulumi.StringPtrInput // Resource labels to represent user provided metadata. Labels pulumi.StringMapInput // The immutable name of the TPU. Name pulumi.StringPtrInput // The name of a network 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. Network pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // Sets the scheduling options for this TPU instance. SchedulingConfig NodeSchedulingConfigPtrInput // The version of Tensorflow running in the Node. TensorflowVersion pulumi.StringInput // The GCP location for the TPU. Zone pulumi.StringInput }
The set of arguments for constructing a Node resource.
func (NodeArgs) ElementType ¶
type NodeNetworkEndpoint ¶
type NodeNetworkEndpointArgs ¶
type NodeNetworkEndpointArgs struct { IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"` Port pulumi.IntPtrInput `pulumi:"port"` }
func (NodeNetworkEndpointArgs) ElementType ¶
func (NodeNetworkEndpointArgs) ElementType() reflect.Type
func (NodeNetworkEndpointArgs) ToNodeNetworkEndpointOutput ¶
func (i NodeNetworkEndpointArgs) ToNodeNetworkEndpointOutput() NodeNetworkEndpointOutput
func (NodeNetworkEndpointArgs) ToNodeNetworkEndpointOutputWithContext ¶
func (i NodeNetworkEndpointArgs) ToNodeNetworkEndpointOutputWithContext(ctx context.Context) NodeNetworkEndpointOutput
type NodeNetworkEndpointArray ¶
type NodeNetworkEndpointArray []NodeNetworkEndpointInput
func (NodeNetworkEndpointArray) ElementType ¶
func (NodeNetworkEndpointArray) ElementType() reflect.Type
func (NodeNetworkEndpointArray) ToNodeNetworkEndpointArrayOutput ¶
func (i NodeNetworkEndpointArray) ToNodeNetworkEndpointArrayOutput() NodeNetworkEndpointArrayOutput
func (NodeNetworkEndpointArray) ToNodeNetworkEndpointArrayOutputWithContext ¶
func (i NodeNetworkEndpointArray) ToNodeNetworkEndpointArrayOutputWithContext(ctx context.Context) NodeNetworkEndpointArrayOutput
type NodeNetworkEndpointArrayInput ¶
type NodeNetworkEndpointArrayInput interface { pulumi.Input ToNodeNetworkEndpointArrayOutput() NodeNetworkEndpointArrayOutput ToNodeNetworkEndpointArrayOutputWithContext(context.Context) NodeNetworkEndpointArrayOutput }
type NodeNetworkEndpointArrayOutput ¶
type NodeNetworkEndpointArrayOutput struct{ *pulumi.OutputState }
func (NodeNetworkEndpointArrayOutput) ElementType ¶
func (NodeNetworkEndpointArrayOutput) ElementType() reflect.Type
func (NodeNetworkEndpointArrayOutput) Index ¶
func (o NodeNetworkEndpointArrayOutput) Index(i pulumi.IntInput) NodeNetworkEndpointOutput
func (NodeNetworkEndpointArrayOutput) ToNodeNetworkEndpointArrayOutput ¶
func (o NodeNetworkEndpointArrayOutput) ToNodeNetworkEndpointArrayOutput() NodeNetworkEndpointArrayOutput
func (NodeNetworkEndpointArrayOutput) ToNodeNetworkEndpointArrayOutputWithContext ¶
func (o NodeNetworkEndpointArrayOutput) ToNodeNetworkEndpointArrayOutputWithContext(ctx context.Context) NodeNetworkEndpointArrayOutput
type NodeNetworkEndpointInput ¶
type NodeNetworkEndpointInput interface { pulumi.Input ToNodeNetworkEndpointOutput() NodeNetworkEndpointOutput ToNodeNetworkEndpointOutputWithContext(context.Context) NodeNetworkEndpointOutput }
type NodeNetworkEndpointOutput ¶
type NodeNetworkEndpointOutput struct{ *pulumi.OutputState }
func (NodeNetworkEndpointOutput) ElementType ¶
func (NodeNetworkEndpointOutput) ElementType() reflect.Type
func (NodeNetworkEndpointOutput) IpAddress ¶
func (o NodeNetworkEndpointOutput) IpAddress() pulumi.StringPtrOutput
func (NodeNetworkEndpointOutput) Port ¶
func (o NodeNetworkEndpointOutput) Port() pulumi.IntPtrOutput
func (NodeNetworkEndpointOutput) ToNodeNetworkEndpointOutput ¶
func (o NodeNetworkEndpointOutput) ToNodeNetworkEndpointOutput() NodeNetworkEndpointOutput
func (NodeNetworkEndpointOutput) ToNodeNetworkEndpointOutputWithContext ¶
func (o NodeNetworkEndpointOutput) ToNodeNetworkEndpointOutputWithContext(ctx context.Context) NodeNetworkEndpointOutput
type NodeSchedulingConfig ¶
type NodeSchedulingConfig struct {
Preemptible bool `pulumi:"preemptible"`
}
type NodeSchedulingConfigArgs ¶
func (NodeSchedulingConfigArgs) ElementType ¶
func (NodeSchedulingConfigArgs) ElementType() reflect.Type
func (NodeSchedulingConfigArgs) ToNodeSchedulingConfigOutput ¶
func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigOutput() NodeSchedulingConfigOutput
func (NodeSchedulingConfigArgs) ToNodeSchedulingConfigOutputWithContext ¶
func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigOutputWithContext(ctx context.Context) NodeSchedulingConfigOutput
func (NodeSchedulingConfigArgs) ToNodeSchedulingConfigPtrOutput ¶
func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigPtrOutput() NodeSchedulingConfigPtrOutput
func (NodeSchedulingConfigArgs) ToNodeSchedulingConfigPtrOutputWithContext ¶
func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigPtrOutputWithContext(ctx context.Context) NodeSchedulingConfigPtrOutput
type NodeSchedulingConfigInput ¶
type NodeSchedulingConfigInput interface { pulumi.Input ToNodeSchedulingConfigOutput() NodeSchedulingConfigOutput ToNodeSchedulingConfigOutputWithContext(context.Context) NodeSchedulingConfigOutput }
type NodeSchedulingConfigOutput ¶
type NodeSchedulingConfigOutput struct{ *pulumi.OutputState }
func (NodeSchedulingConfigOutput) ElementType ¶
func (NodeSchedulingConfigOutput) ElementType() reflect.Type
func (NodeSchedulingConfigOutput) Preemptible ¶
func (o NodeSchedulingConfigOutput) Preemptible() pulumi.BoolOutput
func (NodeSchedulingConfigOutput) ToNodeSchedulingConfigOutput ¶
func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigOutput() NodeSchedulingConfigOutput
func (NodeSchedulingConfigOutput) ToNodeSchedulingConfigOutputWithContext ¶
func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigOutputWithContext(ctx context.Context) NodeSchedulingConfigOutput
func (NodeSchedulingConfigOutput) ToNodeSchedulingConfigPtrOutput ¶
func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigPtrOutput() NodeSchedulingConfigPtrOutput
func (NodeSchedulingConfigOutput) ToNodeSchedulingConfigPtrOutputWithContext ¶
func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigPtrOutputWithContext(ctx context.Context) NodeSchedulingConfigPtrOutput
type NodeSchedulingConfigPtrInput ¶
type NodeSchedulingConfigPtrInput interface { pulumi.Input ToNodeSchedulingConfigPtrOutput() NodeSchedulingConfigPtrOutput ToNodeSchedulingConfigPtrOutputWithContext(context.Context) NodeSchedulingConfigPtrOutput }
func NodeSchedulingConfigPtr ¶
func NodeSchedulingConfigPtr(v *NodeSchedulingConfigArgs) NodeSchedulingConfigPtrInput
type NodeSchedulingConfigPtrOutput ¶
type NodeSchedulingConfigPtrOutput struct{ *pulumi.OutputState }
func (NodeSchedulingConfigPtrOutput) Elem ¶
func (o NodeSchedulingConfigPtrOutput) Elem() NodeSchedulingConfigOutput
func (NodeSchedulingConfigPtrOutput) ElementType ¶
func (NodeSchedulingConfigPtrOutput) ElementType() reflect.Type
func (NodeSchedulingConfigPtrOutput) Preemptible ¶
func (o NodeSchedulingConfigPtrOutput) Preemptible() pulumi.BoolOutput
func (NodeSchedulingConfigPtrOutput) ToNodeSchedulingConfigPtrOutput ¶
func (o NodeSchedulingConfigPtrOutput) ToNodeSchedulingConfigPtrOutput() NodeSchedulingConfigPtrOutput
func (NodeSchedulingConfigPtrOutput) ToNodeSchedulingConfigPtrOutputWithContext ¶
func (o NodeSchedulingConfigPtrOutput) ToNodeSchedulingConfigPtrOutputWithContext(ctx context.Context) NodeSchedulingConfigPtrOutput
type NodeState ¶
type NodeState struct { // The type of hardware accelerators associated with this node. AcceleratorType pulumi.StringPtrInput // 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. CidrBlock pulumi.StringPtrInput // The user-supplied description of the TPU. Maximum of 512 characters. Description pulumi.StringPtrInput // Resource labels to represent user provided metadata. Labels pulumi.StringMapInput // The immutable name of the TPU. Name pulumi.StringPtrInput // The name of a network 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. Network pulumi.StringPtrInput // The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the // node first reach out to the first (index 0) entry. NetworkEndpoints NodeNetworkEndpointArrayInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // Sets the scheduling options for this TPU instance. SchedulingConfig NodeSchedulingConfigPtrInput // 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. ServiceAccount pulumi.StringPtrInput // The version of Tensorflow running in the Node. TensorflowVersion pulumi.StringPtrInput // The GCP location for the TPU. Zone pulumi.StringPtrInput }