Documentation
¶
Index ¶
- type ArrayType
- type BuiltInType
- type BuiltInTypeKind
- type DiscriminatedObjectType
- type ObjectProperty
- type ObjectPropertyFlag
- type ObjectType
- type ResourceFunctionType
- type ResourceType
- type Schema
- type ScopeType
- type StringLiteralType
- type TypeBase
- type TypeBaseKind
- type TypeReference
- type UnionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayType ¶
type ArrayType struct {
ItemType *TypeReference
}
func (*ArrayType) AsTypeBase ¶
func (*ArrayType) GetWriteOnly ¶
func (t *ArrayType) GetWriteOnly(body interface{}) interface{}
func (*ArrayType) UnmarshalJSON ¶
type BuiltInType ¶
type BuiltInType struct {
Kind BuiltInTypeKind `json:"Kind"`
}
func (*BuiltInType) AsTypeBase ¶
func (t *BuiltInType) AsTypeBase() *TypeBase
func (*BuiltInType) GetWriteOnly ¶
func (t *BuiltInType) GetWriteOnly(body interface{}) interface{}
func (*BuiltInType) Validate ¶
func (t *BuiltInType) Validate(body interface{}, path string) []error
type BuiltInTypeKind ¶
type BuiltInTypeKind int
const ( Any BuiltInTypeKind = 1 NULL BuiltInTypeKind = 2 Bool BuiltInTypeKind = 3 Int BuiltInTypeKind = 4 String BuiltInTypeKind = 5 Object BuiltInTypeKind = 6 Array BuiltInTypeKind = 7 ResourceRef BuiltInTypeKind = 8 )
func (BuiltInTypeKind) String ¶
func (kind BuiltInTypeKind) String() string
type DiscriminatedObjectType ¶
type DiscriminatedObjectType struct { Name string Discriminator string BaseProperties map[string]ObjectProperty Elements map[string]*TypeReference }
func (*DiscriminatedObjectType) AsTypeBase ¶
func (t *DiscriminatedObjectType) AsTypeBase() *TypeBase
func (*DiscriminatedObjectType) GetWriteOnly ¶
func (t *DiscriminatedObjectType) GetWriteOnly(body interface{}) interface{}
func (*DiscriminatedObjectType) UnmarshalJSON ¶
func (t *DiscriminatedObjectType) UnmarshalJSON(body []byte) error
func (*DiscriminatedObjectType) Validate ¶
func (t *DiscriminatedObjectType) Validate(body interface{}, path string) []error
type ObjectProperty ¶
type ObjectProperty struct { Type *TypeReference Flags []ObjectPropertyFlag Description *string }
func (ObjectProperty) IsReadOnly ¶
func (o ObjectProperty) IsReadOnly() bool
func (ObjectProperty) IsRequired ¶
func (o ObjectProperty) IsRequired() bool
func (*ObjectProperty) UnmarshalJSON ¶
func (o *ObjectProperty) UnmarshalJSON(body []byte) error
type ObjectPropertyFlag ¶
type ObjectPropertyFlag int
const ( None ObjectPropertyFlag = 0 Required ObjectPropertyFlag = 1 << 0 ReadOnly ObjectPropertyFlag = 1 << 1 WriteOnly ObjectPropertyFlag = 1 << 2 DeployTimeConstant ObjectPropertyFlag = 1 << 3 )
func PossibleObjectPropertyFlagValues ¶
func PossibleObjectPropertyFlagValues() []ObjectPropertyFlag
type ObjectType ¶
type ObjectType struct { Name string Properties map[string]ObjectProperty AdditionalProperties *TypeReference }
func (*ObjectType) AsTypeBase ¶
func (t *ObjectType) AsTypeBase() *TypeBase
func (*ObjectType) GetWriteOnly ¶
func (t *ObjectType) GetWriteOnly(body interface{}) interface{}
func (*ObjectType) UnmarshalJSON ¶
func (t *ObjectType) UnmarshalJSON(body []byte) error
func (*ObjectType) Validate ¶
func (t *ObjectType) Validate(body interface{}, path string) []error
type ResourceFunctionType ¶
type ResourceFunctionType struct { Name string ResourceType string ApiVersion string Input *TypeReference Output *TypeReference }
func (ResourceFunctionType) AsTypeBase ¶
func (t ResourceFunctionType) AsTypeBase() *TypeBase
func (ResourceFunctionType) GetWriteOnly ¶
func (t ResourceFunctionType) GetWriteOnly(body interface{}) interface{}
func (*ResourceFunctionType) UnmarshalJSON ¶
func (t *ResourceFunctionType) UnmarshalJSON(body []byte) error
func (ResourceFunctionType) Validate ¶
func (t ResourceFunctionType) Validate(body interface{}, path string) []error
type ResourceType ¶
type ResourceType struct { Name string ScopeTypes []ScopeType Body *TypeReference }
func (*ResourceType) AsTypeBase ¶
func (t *ResourceType) AsTypeBase() *TypeBase
func (*ResourceType) GetWriteOnly ¶
func (t *ResourceType) GetWriteOnly(body interface{}) interface{}
func (*ResourceType) UnmarshalJSON ¶
func (t *ResourceType) UnmarshalJSON(body []byte) error
func (*ResourceType) Validate ¶
func (t *ResourceType) Validate(body interface{}, path string) []error
type ScopeType ¶
type ScopeType int
func PossibleScopeTypeValues ¶
func PossibleScopeTypeValues() []ScopeType
type StringLiteralType ¶
type StringLiteralType struct {
Value string `json:"Value"`
}
func (*StringLiteralType) AsTypeBase ¶
func (t *StringLiteralType) AsTypeBase() *TypeBase
func (*StringLiteralType) GetWriteOnly ¶
func (t *StringLiteralType) GetWriteOnly(i interface{}) interface{}
func (*StringLiteralType) Validate ¶
func (t *StringLiteralType) Validate(body interface{}, path string) []error
type TypeBaseKind ¶
type TypeBaseKind string
const ( TypeBaseKindBuiltInType TypeBaseKind = "1" TypeBaseKindObjectType TypeBaseKind = "2" TypeBaseKindArrayType TypeBaseKind = "3" TypeBaseKindResourceType TypeBaseKind = "4" TypeBaseKindUnionType TypeBaseKind = "5" TypeBaseKindStringLiteralType TypeBaseKind = "6" TypeBaseKindDiscriminatedObjectType TypeBaseKind = "7" TypeBaseKindResourceFunctionType TypeBaseKind = "8" )
func PossibleTypeBaseKindValues ¶
func PossibleTypeBaseKindValues() []TypeBaseKind
type TypeReference ¶
func (*TypeReference) UpdateType ¶
func (t *TypeReference) UpdateType(types []*TypeBase)
type UnionType ¶
type UnionType struct {
Elements []*TypeReference
}
func (*UnionType) AsTypeBase ¶
func (*UnionType) GetWriteOnly ¶
func (t *UnionType) GetWriteOnly(body interface{}) interface{}
func (*UnionType) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.