Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO
	Version = "2023-01-01"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicResource

type DynamicResource struct {
	// ID is the resource ID.
	ID *string `json:"id"`
	// Name is the resource name.
	Name *string `json:"name"`
	// Type is the resource type.
	Type *string `json:"type"`
	// Location is the resource location.
	Location *string `json:"location"`
	// Tags are the resource tags.
	Tags map[string]*string `json:"tags,omitempty"`
	// Properties stores the properties of the resource.
	Properties map[string]any `json:"properties,omitempty"`
	// SystemData stores the system data of the resource.
	SystemData map[string]any `json:"systemData,omitempty"`
	// contains filtered or unexported fields
}

DynamicResource is used as the versioned resource model for dynamic resources.

A dynamic resource uses a user-provided OpenAPI specification to define the resource schema. Therefore, the properties of the resource are not known at compile time.

func (*DynamicResource) ConvertFrom

func (d *DynamicResource) ConvertFrom(src v1.DataModelInterface) error

ConvertFrom converts the datamodel to the versioned model.

func (*DynamicResource) ConvertTo

func (d *DynamicResource) ConvertTo() (v1.DataModelInterface, error)

ConvertTo converts the versioned model to the datamodel.

func (*DynamicResource) SetAPIVersion added in v0.55.0

func (d *DynamicResource) SetAPIVersion(version string)

SetAPIVersion sets the API version for this resource. This is used by the converter to pass the actual API version from the request.

Jump to

Keyboard shortcuts

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