files_tf

package
v1.62.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddBlock

type AddBlock struct {
	// The base64-encoded data to append to the stream. This has a limit of 1
	// MB.
	Data types.String `tfsdk:"data" tf:""`
	// The handle on an open stream.
	Handle types.Int64 `tfsdk:"handle" tf:""`
}

func (AddBlock) GetComplexFieldTypes added in v1.61.0

func (a AddBlock) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AddBlock. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AddBlock) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AddBlock) SyncEffectiveFieldsDuringCreateOrUpdate(plan AddBlock)

func (*AddBlock) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AddBlock) SyncEffectiveFieldsDuringRead(existingState AddBlock)

func (AddBlock) ToObjectValue added in v1.61.0

func (o AddBlock) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AddBlock only implements ToObjectValue() and Type().

func (AddBlock) Type added in v1.61.0

func (o AddBlock) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type AddBlockResponse

type AddBlockResponse struct {
}

func (AddBlockResponse) GetComplexFieldTypes added in v1.61.0

func (a AddBlockResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in AddBlockResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*AddBlockResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *AddBlockResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan AddBlockResponse)

func (*AddBlockResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *AddBlockResponse) SyncEffectiveFieldsDuringRead(existingState AddBlockResponse)

func (AddBlockResponse) ToObjectValue added in v1.61.0

func (o AddBlockResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, AddBlockResponse only implements ToObjectValue() and Type().

func (AddBlockResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type Close

type Close struct {
	// The handle on an open stream.
	Handle types.Int64 `tfsdk:"handle" tf:""`
}

func (Close) GetComplexFieldTypes added in v1.61.0

func (a Close) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in Close. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*Close) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Close) SyncEffectiveFieldsDuringCreateOrUpdate(plan Close)

func (*Close) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Close) SyncEffectiveFieldsDuringRead(existingState Close)

func (Close) ToObjectValue added in v1.61.0

func (o Close) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, Close only implements ToObjectValue() and Type().

func (Close) Type added in v1.61.0

func (o Close) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type CloseResponse

type CloseResponse struct {
}

func (CloseResponse) GetComplexFieldTypes added in v1.61.0

func (a CloseResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in CloseResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*CloseResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CloseResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CloseResponse)

func (*CloseResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CloseResponse) SyncEffectiveFieldsDuringRead(existingState CloseResponse)

func (CloseResponse) ToObjectValue added in v1.61.0

func (o CloseResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, CloseResponse only implements ToObjectValue() and Type().

func (CloseResponse) Type added in v1.61.0

func (o CloseResponse) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type Create

type Create struct {
	// The flag that specifies whether to overwrite existing file/files.
	Overwrite types.Bool `tfsdk:"overwrite" tf:"optional"`
	// The path of the new file. The path should be the absolute DBFS path.
	Path types.String `tfsdk:"path" tf:""`
}

func (Create) GetComplexFieldTypes added in v1.61.0

func (a Create) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in Create. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*Create) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Create) SyncEffectiveFieldsDuringCreateOrUpdate(plan Create)

func (*Create) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Create) SyncEffectiveFieldsDuringRead(existingState Create)

func (Create) ToObjectValue added in v1.61.0

func (o Create) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, Create only implements ToObjectValue() and Type().

func (Create) Type added in v1.61.0

func (o Create) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type CreateDirectoryRequest

type CreateDirectoryRequest struct {
	// The absolute path of a directory.
	DirectoryPath types.String `tfsdk:"-"`
}

Create a directory

func (CreateDirectoryRequest) GetComplexFieldTypes added in v1.61.0

func (a CreateDirectoryRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateDirectoryRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*CreateDirectoryRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateDirectoryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateDirectoryRequest)

func (*CreateDirectoryRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateDirectoryRequest) SyncEffectiveFieldsDuringRead(existingState CreateDirectoryRequest)

func (CreateDirectoryRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, CreateDirectoryRequest only implements ToObjectValue() and Type().

func (CreateDirectoryRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type CreateDirectoryResponse

type CreateDirectoryResponse struct {
}

func (CreateDirectoryResponse) GetComplexFieldTypes added in v1.61.0

func (a CreateDirectoryResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateDirectoryResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*CreateDirectoryResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateDirectoryResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateDirectoryResponse)

func (*CreateDirectoryResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateDirectoryResponse) SyncEffectiveFieldsDuringRead(existingState CreateDirectoryResponse)

func (CreateDirectoryResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, CreateDirectoryResponse only implements ToObjectValue() and Type().

func (CreateDirectoryResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type CreateResponse

type CreateResponse struct {
	// Handle which should subsequently be passed into the AddBlock and Close
	// calls when writing to a file through a stream.
	Handle types.Int64 `tfsdk:"handle" tf:"optional"`
}

func (CreateResponse) GetComplexFieldTypes added in v1.61.0

func (a CreateResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in CreateResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*CreateResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *CreateResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan CreateResponse)

func (*CreateResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *CreateResponse) SyncEffectiveFieldsDuringRead(existingState CreateResponse)

func (CreateResponse) ToObjectValue added in v1.61.0

func (o CreateResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, CreateResponse only implements ToObjectValue() and Type().

func (CreateResponse) Type added in v1.61.0

func (o CreateResponse) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type Delete

type Delete struct {
	// The path of the file or directory to delete. The path should be the
	// absolute DBFS path.
	Path types.String `tfsdk:"path" tf:""`
	// Whether or not to recursively delete the directory's contents. Deleting
	// empty directories can be done without providing the recursive flag.
	Recursive types.Bool `tfsdk:"recursive" tf:"optional"`
}

func (Delete) GetComplexFieldTypes added in v1.61.0

func (a Delete) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in Delete. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*Delete) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Delete) SyncEffectiveFieldsDuringCreateOrUpdate(plan Delete)

func (*Delete) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Delete) SyncEffectiveFieldsDuringRead(existingState Delete)

func (Delete) ToObjectValue added in v1.61.0

func (o Delete) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, Delete only implements ToObjectValue() and Type().

func (Delete) Type added in v1.61.0

func (o Delete) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type DeleteDirectoryRequest

type DeleteDirectoryRequest struct {
	// The absolute path of a directory.
	DirectoryPath types.String `tfsdk:"-"`
}

Delete a directory

func (DeleteDirectoryRequest) GetComplexFieldTypes added in v1.61.0

func (a DeleteDirectoryRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDirectoryRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*DeleteDirectoryRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteDirectoryRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDirectoryRequest)

func (*DeleteDirectoryRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteDirectoryRequest) SyncEffectiveFieldsDuringRead(existingState DeleteDirectoryRequest)

func (DeleteDirectoryRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DeleteDirectoryRequest only implements ToObjectValue() and Type().

func (DeleteDirectoryRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DeleteDirectoryResponse

type DeleteDirectoryResponse struct {
}

func (DeleteDirectoryResponse) GetComplexFieldTypes added in v1.61.0

func (a DeleteDirectoryResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteDirectoryResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*DeleteDirectoryResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteDirectoryResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteDirectoryResponse)

func (*DeleteDirectoryResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteDirectoryResponse) SyncEffectiveFieldsDuringRead(existingState DeleteDirectoryResponse)

func (DeleteDirectoryResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DeleteDirectoryResponse only implements ToObjectValue() and Type().

func (DeleteDirectoryResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DeleteFileRequest

type DeleteFileRequest struct {
	// The absolute path of the file.
	FilePath types.String `tfsdk:"-"`
}

Delete a file

func (DeleteFileRequest) GetComplexFieldTypes added in v1.61.0

func (a DeleteFileRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteFileRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*DeleteFileRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteFileRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteFileRequest)

func (*DeleteFileRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteFileRequest) SyncEffectiveFieldsDuringRead(existingState DeleteFileRequest)

func (DeleteFileRequest) ToObjectValue added in v1.61.0

func (o DeleteFileRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DeleteFileRequest only implements ToObjectValue() and Type().

func (DeleteFileRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type DeleteResponse

type DeleteResponse struct {
}

func (DeleteResponse) GetComplexFieldTypes added in v1.61.0

func (a DeleteResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in DeleteResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DeleteResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DeleteResponse)

func (*DeleteResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DeleteResponse) SyncEffectiveFieldsDuringRead(existingState DeleteResponse)

func (DeleteResponse) ToObjectValue added in v1.61.0

func (o DeleteResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DeleteResponse only implements ToObjectValue() and Type().

func (DeleteResponse) Type added in v1.61.0

func (o DeleteResponse) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type DirectoryEntry

type DirectoryEntry struct {
	// The length of the file in bytes. This field is omitted for directories.
	FileSize types.Int64 `tfsdk:"file_size" tf:"optional"`
	// True if the path is a directory.
	IsDirectory types.Bool `tfsdk:"is_directory" tf:"optional"`
	// Last modification time of given file in milliseconds since unix epoch.
	LastModified types.Int64 `tfsdk:"last_modified" tf:"optional"`
	// The name of the file or directory. This is the last component of the
	// path.
	Name types.String `tfsdk:"name" tf:"optional"`
	// The absolute path of the file or directory.
	Path types.String `tfsdk:"path" tf:"optional"`
}

func (DirectoryEntry) GetComplexFieldTypes added in v1.61.0

func (a DirectoryEntry) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in DirectoryEntry. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*DirectoryEntry) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DirectoryEntry) SyncEffectiveFieldsDuringCreateOrUpdate(plan DirectoryEntry)

func (*DirectoryEntry) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DirectoryEntry) SyncEffectiveFieldsDuringRead(existingState DirectoryEntry)

func (DirectoryEntry) ToObjectValue added in v1.61.0

func (o DirectoryEntry) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DirectoryEntry only implements ToObjectValue() and Type().

func (DirectoryEntry) Type added in v1.61.0

func (o DirectoryEntry) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type DownloadRequest

type DownloadRequest struct {
	// The absolute path of the file.
	FilePath types.String `tfsdk:"-"`
}

Download a file

func (DownloadRequest) GetComplexFieldTypes added in v1.61.0

func (a DownloadRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in DownloadRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*DownloadRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DownloadRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan DownloadRequest)

func (*DownloadRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DownloadRequest) SyncEffectiveFieldsDuringRead(existingState DownloadRequest)

func (DownloadRequest) ToObjectValue added in v1.61.0

func (o DownloadRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DownloadRequest only implements ToObjectValue() and Type().

func (DownloadRequest) Type added in v1.61.0

func (o DownloadRequest) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type DownloadResponse

type DownloadResponse struct {
	ContentLength types.Int64 `tfsdk:"-"`

	ContentType types.String `tfsdk:"-"`

	Contents types.Object `tfsdk:"-"`

	LastModified types.String `tfsdk:"-"`
}

func (DownloadResponse) GetComplexFieldTypes added in v1.61.0

func (a DownloadResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in DownloadResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*DownloadResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *DownloadResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan DownloadResponse)

func (*DownloadResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *DownloadResponse) SyncEffectiveFieldsDuringRead(existingState DownloadResponse)

func (DownloadResponse) ToObjectValue added in v1.61.0

func (o DownloadResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DownloadResponse only implements ToObjectValue() and Type().

func (DownloadResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type FileInfo

type FileInfo struct {
	// The length of the file in bytes. This field is omitted for directories.
	FileSize types.Int64 `tfsdk:"file_size" tf:"optional"`
	// True if the path is a directory.
	IsDir types.Bool `tfsdk:"is_dir" tf:"optional"`
	// Last modification time of given file in milliseconds since epoch.
	ModificationTime types.Int64 `tfsdk:"modification_time" tf:"optional"`
	// The absolute path of the file or directory.
	Path types.String `tfsdk:"path" tf:"optional"`
}

func (FileInfo) GetComplexFieldTypes added in v1.61.0

func (a FileInfo) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in FileInfo. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*FileInfo) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *FileInfo) SyncEffectiveFieldsDuringCreateOrUpdate(plan FileInfo)

func (*FileInfo) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *FileInfo) SyncEffectiveFieldsDuringRead(existingState FileInfo)

func (FileInfo) ToObjectValue added in v1.61.0

func (o FileInfo) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, FileInfo only implements ToObjectValue() and Type().

func (FileInfo) Type added in v1.61.0

func (o FileInfo) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type GetDirectoryMetadataRequest

type GetDirectoryMetadataRequest struct {
	// The absolute path of a directory.
	DirectoryPath types.String `tfsdk:"-"`
}

Get directory metadata

func (GetDirectoryMetadataRequest) GetComplexFieldTypes added in v1.61.0

func (a GetDirectoryMetadataRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDirectoryMetadataRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GetDirectoryMetadataRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetDirectoryMetadataRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDirectoryMetadataRequest)

func (*GetDirectoryMetadataRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetDirectoryMetadataRequest) SyncEffectiveFieldsDuringRead(existingState GetDirectoryMetadataRequest)

func (GetDirectoryMetadataRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetDirectoryMetadataRequest only implements ToObjectValue() and Type().

func (GetDirectoryMetadataRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetDirectoryMetadataResponse

type GetDirectoryMetadataResponse struct {
}

func (GetDirectoryMetadataResponse) GetComplexFieldTypes added in v1.61.0

func (a GetDirectoryMetadataResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetDirectoryMetadataResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GetDirectoryMetadataResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetDirectoryMetadataResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetDirectoryMetadataResponse)

func (*GetDirectoryMetadataResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetDirectoryMetadataResponse) SyncEffectiveFieldsDuringRead(existingState GetDirectoryMetadataResponse)

func (GetDirectoryMetadataResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetDirectoryMetadataResponse only implements ToObjectValue() and Type().

func (GetDirectoryMetadataResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetMetadataRequest

type GetMetadataRequest struct {
	// The absolute path of the file.
	FilePath types.String `tfsdk:"-"`
}

Get file metadata

func (GetMetadataRequest) GetComplexFieldTypes added in v1.61.0

func (a GetMetadataRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetMetadataRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GetMetadataRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetMetadataRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetMetadataRequest)

func (*GetMetadataRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetMetadataRequest) SyncEffectiveFieldsDuringRead(existingState GetMetadataRequest)

func (GetMetadataRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetMetadataRequest only implements ToObjectValue() and Type().

func (GetMetadataRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetMetadataResponse

type GetMetadataResponse struct {
	ContentLength types.Int64 `tfsdk:"-"`

	ContentType types.String `tfsdk:"-"`

	LastModified types.String `tfsdk:"-"`
}

func (GetMetadataResponse) GetComplexFieldTypes added in v1.61.0

func (a GetMetadataResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetMetadataResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GetMetadataResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetMetadataResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetMetadataResponse)

func (*GetMetadataResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetMetadataResponse) SyncEffectiveFieldsDuringRead(existingState GetMetadataResponse)

func (GetMetadataResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetMetadataResponse only implements ToObjectValue() and Type().

func (GetMetadataResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type GetStatusRequest

type GetStatusRequest struct {
	// The path of the file or directory. The path should be the absolute DBFS
	// path.
	Path types.String `tfsdk:"-"`
}

Get the information of a file or directory

func (GetStatusRequest) GetComplexFieldTypes added in v1.61.0

func (a GetStatusRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in GetStatusRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*GetStatusRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *GetStatusRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan GetStatusRequest)

func (*GetStatusRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *GetStatusRequest) SyncEffectiveFieldsDuringRead(existingState GetStatusRequest)

func (GetStatusRequest) ToObjectValue added in v1.61.0

func (o GetStatusRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, GetStatusRequest only implements ToObjectValue() and Type().

func (GetStatusRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListDbfsRequest

type ListDbfsRequest struct {
	// The path of the file or directory. The path should be the absolute DBFS
	// path.
	Path types.String `tfsdk:"-"`
}

List directory contents or file details

func (ListDbfsRequest) GetComplexFieldTypes added in v1.61.0

func (a ListDbfsRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDbfsRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ListDbfsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListDbfsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDbfsRequest)

func (*ListDbfsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListDbfsRequest) SyncEffectiveFieldsDuringRead(existingState ListDbfsRequest)

func (ListDbfsRequest) ToObjectValue added in v1.61.0

func (o ListDbfsRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ListDbfsRequest only implements ToObjectValue() and Type().

func (ListDbfsRequest) Type added in v1.61.0

func (o ListDbfsRequest) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type ListDirectoryContentsRequest

type ListDirectoryContentsRequest struct {
	// The absolute path of a directory.
	DirectoryPath types.String `tfsdk:"-"`
	// The maximum number of directory entries to return. The response may
	// contain fewer entries. If the response contains a `next_page_token`,
	// there may be more entries, even if fewer than `page_size` entries are in
	// the response.
	//
	// We recommend not to set this value unless you are intentionally listing
	// less than the complete directory contents.
	//
	// If unspecified, at most 1000 directory entries will be returned. The
	// maximum value is 1000. Values above 1000 will be coerced to 1000.
	PageSize types.Int64 `tfsdk:"-"`
	// An opaque page token which was the `next_page_token` in the response of
	// the previous request to list the contents of this directory. Provide this
	// token to retrieve the next page of directory entries. When providing a
	// `page_token`, all other parameters provided to the request must match the
	// previous request. To list all of the entries in a directory, it is
	// necessary to continue requesting pages of entries until the response
	// contains no `next_page_token`. Note that the number of entries returned
	// must not be used to determine when the listing is complete.
	PageToken types.String `tfsdk:"-"`
}

List directory contents

func (ListDirectoryContentsRequest) GetComplexFieldTypes added in v1.61.0

func (a ListDirectoryContentsRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDirectoryContentsRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ListDirectoryContentsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListDirectoryContentsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDirectoryContentsRequest)

func (*ListDirectoryContentsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListDirectoryContentsRequest) SyncEffectiveFieldsDuringRead(existingState ListDirectoryContentsRequest)

func (ListDirectoryContentsRequest) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ListDirectoryContentsRequest only implements ToObjectValue() and Type().

func (ListDirectoryContentsRequest) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListDirectoryResponse

type ListDirectoryResponse struct {
	// Array of DirectoryEntry.
	Contents types.List `tfsdk:"contents" tf:"optional"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	NextPageToken types.String `tfsdk:"next_page_token" tf:"optional"`
}

func (ListDirectoryResponse) GetComplexFieldTypes added in v1.61.0

func (a ListDirectoryResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListDirectoryResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ListDirectoryResponse) GetContents added in v1.61.0

func (o *ListDirectoryResponse) GetContents(ctx context.Context) ([]DirectoryEntry, bool)

GetContents returns the value of the Contents field in ListDirectoryResponse as a slice of DirectoryEntry values. If the field is unknown or null, the boolean return value is false.

func (*ListDirectoryResponse) SetContents added in v1.61.0

func (o *ListDirectoryResponse) SetContents(ctx context.Context, v []DirectoryEntry)

SetContents sets the value of the Contents field in ListDirectoryResponse.

func (*ListDirectoryResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListDirectoryResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListDirectoryResponse)

func (*ListDirectoryResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListDirectoryResponse) SyncEffectiveFieldsDuringRead(existingState ListDirectoryResponse)

func (ListDirectoryResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ListDirectoryResponse only implements ToObjectValue() and Type().

func (ListDirectoryResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type ListStatusResponse

type ListStatusResponse struct {
	// A list of FileInfo's that describe contents of directory or file. See
	// example above.
	Files types.List `tfsdk:"files" tf:"optional"`
}

func (ListStatusResponse) GetComplexFieldTypes added in v1.61.0

func (a ListStatusResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ListStatusResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ListStatusResponse) GetFiles added in v1.61.0

func (o *ListStatusResponse) GetFiles(ctx context.Context) ([]FileInfo, bool)

GetFiles returns the value of the Files field in ListStatusResponse as a slice of FileInfo values. If the field is unknown or null, the boolean return value is false.

func (*ListStatusResponse) SetFiles added in v1.61.0

func (o *ListStatusResponse) SetFiles(ctx context.Context, v []FileInfo)

SetFiles sets the value of the Files field in ListStatusResponse.

func (*ListStatusResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ListStatusResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ListStatusResponse)

func (*ListStatusResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ListStatusResponse) SyncEffectiveFieldsDuringRead(existingState ListStatusResponse)

func (ListStatusResponse) ToObjectValue added in v1.61.0

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ListStatusResponse only implements ToObjectValue() and Type().

func (ListStatusResponse) Type added in v1.61.0

Type implements basetypes.ObjectValuable.

type MkDirs

type MkDirs struct {
	// The path of the new directory. The path should be the absolute DBFS path.
	Path types.String `tfsdk:"path" tf:""`
}

func (MkDirs) GetComplexFieldTypes added in v1.61.0

func (a MkDirs) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in MkDirs. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*MkDirs) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *MkDirs) SyncEffectiveFieldsDuringCreateOrUpdate(plan MkDirs)

func (*MkDirs) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *MkDirs) SyncEffectiveFieldsDuringRead(existingState MkDirs)

func (MkDirs) ToObjectValue added in v1.61.0

func (o MkDirs) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, MkDirs only implements ToObjectValue() and Type().

func (MkDirs) Type added in v1.61.0

func (o MkDirs) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type MkDirsResponse

type MkDirsResponse struct {
}

func (MkDirsResponse) GetComplexFieldTypes added in v1.61.0

func (a MkDirsResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in MkDirsResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*MkDirsResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *MkDirsResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan MkDirsResponse)

func (*MkDirsResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *MkDirsResponse) SyncEffectiveFieldsDuringRead(existingState MkDirsResponse)

func (MkDirsResponse) ToObjectValue added in v1.61.0

func (o MkDirsResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, MkDirsResponse only implements ToObjectValue() and Type().

func (MkDirsResponse) Type added in v1.61.0

func (o MkDirsResponse) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type Move

type Move struct {
	// The destination path of the file or directory. The path should be the
	// absolute DBFS path.
	DestinationPath types.String `tfsdk:"destination_path" tf:""`
	// The source path of the file or directory. The path should be the absolute
	// DBFS path.
	SourcePath types.String `tfsdk:"source_path" tf:""`
}

func (Move) GetComplexFieldTypes added in v1.61.0

func (a Move) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in Move. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*Move) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Move) SyncEffectiveFieldsDuringCreateOrUpdate(plan Move)

func (*Move) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Move) SyncEffectiveFieldsDuringRead(existingState Move)

func (Move) ToObjectValue added in v1.61.0

func (o Move) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, Move only implements ToObjectValue() and Type().

func (Move) Type added in v1.61.0

func (o Move) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type MoveResponse

type MoveResponse struct {
}

func (MoveResponse) GetComplexFieldTypes added in v1.61.0

func (a MoveResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in MoveResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*MoveResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *MoveResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan MoveResponse)

func (*MoveResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *MoveResponse) SyncEffectiveFieldsDuringRead(existingState MoveResponse)

func (MoveResponse) ToObjectValue added in v1.61.0

func (o MoveResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, MoveResponse only implements ToObjectValue() and Type().

func (MoveResponse) Type added in v1.61.0

func (o MoveResponse) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type Put

type Put struct {
	// This parameter might be absent, and instead a posted file will be used.
	Contents types.String `tfsdk:"contents" tf:"optional"`
	// The flag that specifies whether to overwrite existing file/files.
	Overwrite types.Bool `tfsdk:"overwrite" tf:"optional"`
	// The path of the new file. The path should be the absolute DBFS path.
	Path types.String `tfsdk:"path" tf:""`
}

func (Put) GetComplexFieldTypes added in v1.61.0

func (a Put) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in Put. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*Put) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *Put) SyncEffectiveFieldsDuringCreateOrUpdate(plan Put)

func (*Put) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *Put) SyncEffectiveFieldsDuringRead(existingState Put)

func (Put) ToObjectValue added in v1.61.0

func (o Put) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, Put only implements ToObjectValue() and Type().

func (Put) Type added in v1.61.0

func (o Put) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type PutResponse

type PutResponse struct {
}

func (PutResponse) GetComplexFieldTypes added in v1.61.0

func (a PutResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in PutResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*PutResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *PutResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan PutResponse)

func (*PutResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *PutResponse) SyncEffectiveFieldsDuringRead(existingState PutResponse)

func (PutResponse) ToObjectValue added in v1.61.0

func (o PutResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, PutResponse only implements ToObjectValue() and Type().

func (PutResponse) Type added in v1.61.0

func (o PutResponse) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type ReadDbfsRequest

type ReadDbfsRequest struct {
	// The number of bytes to read starting from the offset. This has a limit of
	// 1 MB, and a default value of 0.5 MB.
	Length types.Int64 `tfsdk:"-"`
	// The offset to read from in bytes.
	Offset types.Int64 `tfsdk:"-"`
	// The path of the file to read. The path should be the absolute DBFS path.
	Path types.String `tfsdk:"-"`
}

Get the contents of a file

func (ReadDbfsRequest) GetComplexFieldTypes added in v1.61.0

func (a ReadDbfsRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ReadDbfsRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ReadDbfsRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ReadDbfsRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReadDbfsRequest)

func (*ReadDbfsRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ReadDbfsRequest) SyncEffectiveFieldsDuringRead(existingState ReadDbfsRequest)

func (ReadDbfsRequest) ToObjectValue added in v1.61.0

func (o ReadDbfsRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ReadDbfsRequest only implements ToObjectValue() and Type().

func (ReadDbfsRequest) Type added in v1.61.0

func (o ReadDbfsRequest) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type ReadResponse

type ReadResponse struct {
	// The number of bytes read (could be less than “length“ if we hit end of
	// file). This refers to number of bytes read in unencoded version (response
	// data is base64-encoded).
	BytesRead types.Int64 `tfsdk:"bytes_read" tf:"optional"`
	// The base64-encoded contents of the file read.
	Data types.String `tfsdk:"data" tf:"optional"`
}

func (ReadResponse) GetComplexFieldTypes added in v1.61.0

func (a ReadResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in ReadResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*ReadResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *ReadResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan ReadResponse)

func (*ReadResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *ReadResponse) SyncEffectiveFieldsDuringRead(existingState ReadResponse)

func (ReadResponse) ToObjectValue added in v1.61.0

func (o ReadResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ReadResponse only implements ToObjectValue() and Type().

func (ReadResponse) Type added in v1.61.0

func (o ReadResponse) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type UploadRequest

type UploadRequest struct {
	Contents types.Object `tfsdk:"-"`
	// The absolute path of the file.
	FilePath types.String `tfsdk:"-"`
	// If true, an existing file will be overwritten.
	Overwrite types.Bool `tfsdk:"-"`
}

Upload a file

func (UploadRequest) GetComplexFieldTypes added in v1.61.0

func (a UploadRequest) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in UploadRequest. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*UploadRequest) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *UploadRequest) SyncEffectiveFieldsDuringCreateOrUpdate(plan UploadRequest)

func (*UploadRequest) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *UploadRequest) SyncEffectiveFieldsDuringRead(existingState UploadRequest)

func (UploadRequest) ToObjectValue added in v1.61.0

func (o UploadRequest) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, UploadRequest only implements ToObjectValue() and Type().

func (UploadRequest) Type added in v1.61.0

func (o UploadRequest) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

type UploadResponse

type UploadResponse struct {
}

func (UploadResponse) GetComplexFieldTypes added in v1.61.0

func (a UploadResponse) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in UploadResponse. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*UploadResponse) SyncEffectiveFieldsDuringCreateOrUpdate added in v1.54.0

func (newState *UploadResponse) SyncEffectiveFieldsDuringCreateOrUpdate(plan UploadResponse)

func (*UploadResponse) SyncEffectiveFieldsDuringRead added in v1.54.0

func (newState *UploadResponse) SyncEffectiveFieldsDuringRead(existingState UploadResponse)

func (UploadResponse) ToObjectValue added in v1.61.0

func (o UploadResponse) ToObjectValue(ctx context.Context) basetypes.ObjectValue

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, UploadResponse only implements ToObjectValue() and Type().

func (UploadResponse) Type added in v1.61.0

func (o UploadResponse) Type(ctx context.Context) attr.Type

Type implements basetypes.ObjectValuable.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL