Documentation ¶
Overview ¶
Package models exposes reusable models across resources and data sources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct { // Comment is an optional comment about the domain. Comment types.String `tfsdk:"comment"` // Name is a required field representing the domain name. Name types.String `tfsdk:"name"` // NamePast is internally used for tracking changes. NamePast types.String `tfsdk:"-"` }
Domain is a nested map attribute for the domain(s) associated with a service.
type ServiceVCL ¶
type ServiceVCL struct { // Activate controls whether the service should be activated. Activate types.Bool `tfsdk:"activate"` // Comment is a description field for the service. Comment types.String `tfsdk:"comment"` // DefaultHost is the default host name for the version. DefaultHost types.String `tfsdk:"default_host"` // DefaultTTL is the default time-to-live (TTL) for the version. DefaultTTL types.Int64 `tfsdk:"default_ttl"` // Domains is a nested map attribute for the domain(s) associated with the service. Domains map[string]Domain `tfsdk:"domains"` // ForceDestroy ensures a service will be fully deleted upon `terraform destroy`. ForceDestroy types.Bool `tfsdk:"force_destroy"` // ForceRefresh ensures all nested resources will have their state refreshed. ForceRefresh types.Bool `tfsdk:"force_refresh"` // ID is a unique ID for the service. ID types.String `tfsdk:"id"` // Imported indicates the resource is being imported. Imported types.Bool `tfsdk:"imported"` // LastActive is the last known active service version. LastActive types.Int64 `tfsdk:"last_active"` // Name is the service name. Name types.String `tfsdk:"name"` // Reuse will not delete the service upon `terraform destroy`. Reuse types.Bool `tfsdk:"reuse"` // StaleIfError enables serving a stale object if there is an error. StaleIfError types.Bool `tfsdk:"stale_if_error"` // StaleIfErrorTTL is the default time-to-live (TTL) for serving the stale object for the version. StaleIfErrorTTL types.Int64 `tfsdk:"stale_if_error_ttl"` // Version is the latest service version the provider will clone from. Version types.Int64 `tfsdk:"version"` }
ServiceVCL describes the resource data model.
Click to show internal directories.
Click to hide internal directories.