Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceTypeShowSchemaTableFormat ¶ added in v0.48.0
func GetResourceTypeShowSchemaTableFormat() output.FormatterOptions
GetResourceTypeShowSchemaTableFormat returns the fields to output from a resource type schema object for show command.
func GetResourceTypeShowTableFormat ¶ added in v0.48.0
func GetResourceTypeShowTableFormat() output.FormatterOptions
GetResourceTypeShowTableFormat returns the fields to output from a resource type object for show command.
func GetResourceTypeTableFormat ¶
func GetResourceTypeTableFormat() output.FormatterOptions
GetResourceTypeTableFormat returns the fields to output from a resource type object.
Types ¶
type APIVersionProperties ¶ added in v0.48.0
type APIVersionProperties struct {
// Schema is the schema of the resource type.
Schema map[string]any
}
APIVersionProperties is used to store the schema of the resource type for the api version.
type ResourceType ¶
type ResourceType struct {
// Name is the fully-qualified name of the resource type.
Name string
// Description of the resource type.
Description string
// ResourceProviderNamespace is the namespace of the resource provider.
ResourceProviderNamespace string
// APIVersions is the list of API versions supported by the resource type.
APIVersions map[string]*APIVersionProperties
}
ResourceType is used by the CLI for display of resource types.
func GetResourceTypeDetails ¶ added in v0.43.0
func GetResourceTypeDetails(ctx context.Context, resourceProviderName string, resourceTypeName string, clientFactory *v20231001preview.ClientFactory) (ResourceType, error)
GetResourceTypeDetails retrieves the details of a resource provider's resource type using the UCP client. It returns the resource type details or an error if the resource type is not found.
func ResourceTypesForProvider ¶
func ResourceTypesForProvider(provider *v20231001preview.ResourceProviderSummary) []ResourceType
ResourceTypesForProvider returns a list of resource types for a given provider.
type ResourceTypeListOutputFormat ¶ added in v0.48.0
type ResourceTypeListOutputFormat struct {
ResourceType
// APIVersionList is the list of API versions supported by the resource type.
APIVersionList []string
}
ResourceTypeListOutputFormat is used to format the output of the resource type list and create commands.