Documentation ¶
Overview ¶
resource types unit tests
Index ¶
Constants ¶
const ResourceTypeCreateWithAttributesRequest = `` /* 284-byte string literal not displayed */
ResourceTypeCreateWithAttributesRequest represents a request to create a resource type with attributes.
const ResourceTypeCreateWithAttributesResult = `` /* 336-byte string literal not displayed */
ResourceTypeCreateWithAttributesResult represents a raw server response to the ResourceTypeCreateWithAttributesRequest.
const ResourceTypeCreateWithoutAttributesRequest = `
{
"name":"identity_project"
}
`
ResourceTypeCreateWithoutAttributesRequest represents a request to create a resource type without attributes.
const ResourceTypeCreateWithoutAttributesResult = `
{
"attributes": {},
"state": "active",
"name": "identity_project"
}
`
ResourceTypeCreateWithoutAttributesResult represents a raw server response to the ResourceTypeCreateWithoutAttributesRequest.
const ResourceTypeGetResult = `` /* 325-byte string literal not displayed */
ResourceTypeGetResult represents raw server response from a server to a get request.
const ResourceTypeListResult = `` /* 592-byte string literal not displayed */
ResourceTypeListResult represents raw server response from a server to a list call.
const ResourceTypeUpdateRequest = `` /* 471-byte string literal not displayed */
ResourceTypeUpdateRequest represents a request to update a resource type.
const ResourceTypeUpdateResult = `` /* 414-byte string literal not displayed */
ResourceTypeUpdateResult represents a raw server response to the ResourceTypeUpdateRequest.
Variables ¶
var ResourceType1 = resourcetypes.ResourceType{ Name: "generic", State: "active", Attributes: map[string]resourcetypes.Attribute{}, }
ResourceType1 is an expected representation of a first resource from the ResourceTypeListResult.
var ResourceType2 = resourcetypes.ResourceType{ Name: "identity_project", State: "active", Attributes: map[string]resourcetypes.Attribute{ "parent_id": { Type: "uuid", Details: map[string]interface{}{ "required": false, }, }, }, }
ResourceType2 is an expected representation of a first resource from the ResourceTypeListResult.
var ResourceType3 = resourcetypes.ResourceType{ Name: "compute_instance", State: "active", Attributes: map[string]resourcetypes.Attribute{ "host": { Type: "string", Details: map[string]interface{}{ "max_length": float64(128), "min_length": float64(0), "required": true, }, }, }, }
ResourceType3 is an expected representation of a first resource from the ResourceTypeListResult.
Functions ¶
This section is empty.
Types ¶
This section is empty.