huaweicloud

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MPL-2.0 Imports: 226 Imported by: 6

Documentation

Index

Constants

View Source
const (
	PoolID   = "0a2228f2-7f8a-45f1-8e09-9039e1d09975"
	PoolName = "admin_external_net"
)
View Source
const DIS_SYS_TAG_KEY_ENTERPRISE_PROJECT_ID = "_sys_enterprise_project_id"
View Source
const DisabledState = "3"
View Source
const EnabledState = "2"
View Source
const PendingDeletionState = "4"
View Source
const WaitingForEnableState = "1"

Variables

View Source
var BandWidthChargeMode = [1]string{"traffic"}
View Source
var BandWidthShareType = [1]string{"PER"}
View Source
var ContainerFormats = [1]string{"bare"}
View Source
var DiskFormats = [2]string{"vhd", "qcow2"}
View Source
var HealthAuditMethods = [2]string{"ELB_AUDIT", "NOVA_AUDIT"}
View Source
var HealthAuditTime = [4]int{5, 15, 60, 180}
View Source
var IpTypes = [1]string{"5_bgp"}
View Source
var PolicyActions = [3]string{"ADD", "REMOVE", "SET"}
View Source
var PolicyTypes = [3]string{"ALARM", "SCHEDULED", "RECURRENCE"}
View Source
var RecurrenceTypes = [3]string{"Daily", "Weekly", "Monthly"}
View Source
var TerminatePolices = [4]string{"OLD_CONFIG_OLD_INSTANCE", "OLD_CONFIG_NEW_INSTANCE", "OLD_INSTANCE", "NEW_INSTANCE"}

Functions

func AddValueSpecs

func AddValueSpecs(body map[string]interface{}) map[string]interface{}

AddValueSpecs expands the 'value_specs' object and removes 'value_specs' from the reqeust body.

func BuildRequest

func BuildRequest(opts interface{}, parent string) (map[string]interface{}, error)

BuildRequest takes an opts struct and builds a request body for golangsdk to execute

func BytesToString added in v1.1.0

func BytesToString(b []byte) string

func CheckDeleted

func CheckDeleted(d *schema.ResourceData, err error, msg string) error

CheckDeleted checks the error to see if it's a 404 (Not Found) and, if so, sets the resource ID to the empty string instead of throwing an error.

func ClusterStateRefreshFunc added in v1.3.0

func ClusterStateRefreshFunc(client *golangsdk.ServiceClient, clusterID string) resource.StateRefreshFunc

func DataSourceAvailabilityZones added in v1.20.1

func DataSourceAvailabilityZones() *schema.Resource

func DataSourceBandWidth added in v1.20.1

func DataSourceBandWidth() *schema.Resource

func DataSourceCCEAddonTemplateV3 added in v1.24.2

func DataSourceCCEAddonTemplateV3() *schema.Resource

func DataSourceCCEClusterV3 added in v1.20.2

func DataSourceCCEClusterV3() *schema.Resource

func DataSourceCCENodePoolV3 added in v1.24.0

func DataSourceCCENodePoolV3() *schema.Resource

func DataSourceCCENodeV3 added in v1.20.2

func DataSourceCCENodeV3() *schema.Resource

func DataSourceCdmFlavorV1 added in v1.25.1

func DataSourceCdmFlavorV1() *schema.Resource

func DataSourceComputeInstance added in v1.20.1

func DataSourceComputeInstance() *schema.Resource

func DataSourceDDSFlavorV3 added in v1.25.1

func DataSourceDDSFlavorV3() *schema.Resource

func DataSourceDcsAZV1 added in v1.25.1

func DataSourceDcsAZV1() *schema.Resource

func DataSourceDcsMaintainWindowV1 added in v1.25.1

func DataSourceDcsMaintainWindowV1() *schema.Resource

func DataSourceDcsProductV1 added in v1.25.1

func DataSourceDcsProductV1() *schema.Resource

func DataSourceDisPartitionV2 added in v1.25.1

func DataSourceDisPartitionV2() *schema.Resource

func DataSourceDmsAZV1 added in v1.25.1

func DataSourceDmsAZV1() *schema.Resource

func DataSourceDmsMaintainWindowV1 added in v1.25.1

func DataSourceDmsMaintainWindowV1() *schema.Resource

func DataSourceDmsProductV1 added in v1.25.1

func DataSourceDmsProductV1() *schema.Resource

func DataSourceELBV2Loadbalancer added in v1.24.1

func DataSourceELBV2Loadbalancer() *schema.Resource

func DataSourceEcsFlavors added in v1.19.2

func DataSourceEcsFlavors() *schema.Resource

func DataSourceEnterpriseProject added in v1.19.2

func DataSourceEnterpriseProject() *schema.Resource

func DataSourceIECPort added in v1.25.0

func DataSourceIECPort() *schema.Resource

func DataSourceIECVpc added in v1.25.0

func DataSourceIECVpc() *schema.Resource

func DataSourceIECVpcSubnets added in v1.25.0

func DataSourceIECVpcSubnets() *schema.Resource

func DataSourceIdentityCustomRole added in v1.20.3

func DataSourceIdentityCustomRole() *schema.Resource

func DataSourceIdentityRoleV3 added in v1.19.1

func DataSourceIdentityRoleV3() *schema.Resource

func DataSourceImagesImageV2 added in v1.20.1

func DataSourceImagesImageV2() *schema.Resource

func DataSourceKmsDataKeyV1 added in v1.25.1

func DataSourceKmsDataKeyV1() *schema.Resource

func DataSourceKmsKeyV1 added in v1.25.1

func DataSourceKmsKeyV1() *schema.Resource

func DataSourceNatGatewayV2 added in v1.22.3

func DataSourceNatGatewayV2() *schema.Resource

func DataSourceNetworkingPortV2 added in v1.20.1

func DataSourceNetworkingPortV2() *schema.Resource

func DataSourceNetworkingSecGroupV2 added in v1.20.1

func DataSourceNetworkingSecGroupV2() *schema.Resource

func DataSourceObsBucketObject added in v1.20.2

func DataSourceObsBucketObject() *schema.Resource

func DataSourceRdsFlavorV3 added in v1.25.0

func DataSourceRdsFlavorV3() *schema.Resource

func DataSourceSFSFileSystemV2 added in v1.24.1

func DataSourceSFSFileSystemV2() *schema.Resource

func DataSourceVPCEPPublicServices added in v1.20.2

func DataSourceVPCEPPublicServices() *schema.Resource

func DataSourceVPCRouteV2 added in v1.19.1

func DataSourceVPCRouteV2() *schema.Resource

func DataSourceVirtualPrivateCloudVpcV1 added in v1.19.1

func DataSourceVirtualPrivateCloudVpcV1() *schema.Resource

func DataSourceVpcEip added in v1.20.1

func DataSourceVpcEip() *schema.Resource

func DataSourceVpcSubnetIdsV1 added in v1.19.1

func DataSourceVpcSubnetIdsV1() *schema.Resource

func DataSourceVpcSubnetV1 added in v1.19.1

func DataSourceVpcSubnetV1() *schema.Resource

func DcsInstancesV1StateRefreshFunc added in v1.3.0

func DcsInstancesV1StateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc

func DdsInstanceStateRefreshFunc added in v1.18.0

func DdsInstanceStateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc

func DmsInstancesV1StateRefreshFunc added in v1.3.0

func DmsInstancesV1StateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc

func DmsKafkaInstanceStateRefreshFunc added in v1.25.0

func DmsKafkaInstanceStateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc

func DmsRabbitmqInstanceStateRefreshFunc added in v1.25.0

func DmsRabbitmqInstanceStateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc

func FloatingIPV2StateRefreshFunc

func FloatingIPV2StateRefreshFunc(computeClient *golangsdk.ServiceClient, d *schema.ResourceData) resource.StateRefreshFunc

func GaussDBInstanceStateRefreshFunc added in v1.18.0

func GaussDBInstanceStateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc

func GaussRedisInstanceStateRefreshFunc added in v1.27.2

func GaussRedisInstanceStateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc

func GaussRedisInstanceUpdateRefreshFunc added in v1.27.2

func GaussRedisInstanceUpdateRefreshFunc(client *golangsdk.ServiceClient, instanceID, state string) resource.StateRefreshFunc

func GeminiDBInstanceStateRefreshFunc added in v1.18.0

func GeminiDBInstanceStateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc

func GeminiDBInstanceUpdateRefreshFunc added in v1.18.0

func GeminiDBInstanceUpdateRefreshFunc(client *golangsdk.ServiceClient, instanceID, state string) resource.StateRefreshFunc

func GetEnterpriseProjectID added in v1.19.1

func GetEnterpriseProjectID(d *schema.ResourceData, config *config.Config) string

GetEnterpriseProjectID returns the enterprise_project_id that was specified in the resource. If it was not set, the provider-level value is checked. The provider-level value can either be set by the `enterprise_project_id` argument or by HW_ENTERPRISE_PROJECT_ID.

func GetRegion

func GetRegion(d *schema.ResourceData, config *config.Config) string

GetRegion returns the region that was specified in the resource. If a region was not set, the provider-level region is checked. The provider-level region can either be set by the region argument or by HW_REGION_NAME.

func JobStateRefreshFunc added in v1.3.0

func JobStateRefreshFunc(client *golangsdk.ServiceClient, jobID string) resource.StateRefreshFunc

func KeyV1StateRefreshFunc

func KeyV1StateRefreshFunc(client *golangsdk.ServiceClient, keyID string) resource.StateRefreshFunc

func MapResourceProp

func MapResourceProp(d *schema.ResourceData, prop string) map[string]interface{}

MapResourceProp converts ResourceData property into a map

func MapValueSpecs

func MapValueSpecs(d *schema.ResourceData) map[string]string

MapValueSpecs converts ResourceData into a map

func OpenGaussInstanceStateRefreshFunc added in v1.18.0

func OpenGaussInstanceStateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc

func Provider

func Provider() *schema.Provider

Provider returns a schema.Provider for HuaweiCloud.

func ResourceAPIGatewayAPI added in v1.25.1

func ResourceAPIGatewayAPI() *schema.Resource

func ResourceAPIGatewayGroup added in v1.25.1

func ResourceAPIGatewayGroup() *schema.Resource

func ResourceASConfiguration added in v1.20.2

func ResourceASConfiguration() *schema.Resource

func ResourceASGroup added in v1.20.2

func ResourceASGroup() *schema.Resource

func ResourceASLifecycleHook added in v1.25.0

func ResourceASLifecycleHook() *schema.Resource

func ResourceASPolicy added in v1.20.2

func ResourceASPolicy() *schema.Resource

func ResourceAlarmRule added in v1.26.0

func ResourceAlarmRule() *schema.Resource

func ResourceBmsInstance added in v1.24.0

func ResourceBmsInstance() *schema.Resource

func ResourceCCEAddonV3 added in v1.20.2

func ResourceCCEAddonV3() *schema.Resource

func ResourceCCEClusterV3 added in v1.20.2

func ResourceCCEClusterV3() *schema.Resource

func ResourceCCENodeAttachV3 added in v1.27.1

func ResourceCCENodeAttachV3() *schema.Resource

func ResourceCCENodePool added in v1.20.2

func ResourceCCENodePool() *schema.Resource

func ResourceCCENodeV3 added in v1.20.2

func ResourceCCENodeV3() *schema.Resource

func ResourceCCIPersistentVolumeClaimV1 added in v1.25.0

func ResourceCCIPersistentVolumeClaimV1() *schema.Resource

func ResourceCdmClusterV1 added in v1.25.1

func ResourceCdmClusterV1() *schema.Resource

func ResourceCertificateV2 added in v1.20.2

func ResourceCertificateV2() *schema.Resource

func ResourceCertificateV3 added in v1.25.0

func ResourceCertificateV3() *schema.Resource

func ResourceComputeFloatingIPAssociateV2 added in v1.20.1

func ResourceComputeFloatingIPAssociateV2() *schema.Resource

func ResourceComputeFloatingIPV2 added in v1.20.1

func ResourceComputeFloatingIPV2() *schema.Resource

func ResourceComputeInstanceV2 added in v1.20.1

func ResourceComputeInstanceV2() *schema.Resource

func ResourceComputeInterfaceAttachV2 added in v1.20.1

func ResourceComputeInterfaceAttachV2() *schema.Resource

func ResourceComputeKeypairV2 added in v1.20.1

func ResourceComputeKeypairV2() *schema.Resource

func ResourceComputeSecGroupV2 added in v1.20.1

func ResourceComputeSecGroupV2() *schema.Resource

func ResourceComputeServerGroupV2 added in v1.20.1

func ResourceComputeServerGroupV2() *schema.Resource

func ResourceComputeVolumeAttachV2 added in v1.20.1

func ResourceComputeVolumeAttachV2() *schema.Resource

func ResourceCssClusterV1 added in v1.26.0

func ResourceCssClusterV1() *schema.Resource

func ResourceCssSnapshot added in v1.26.0

func ResourceCssSnapshot() *schema.Resource

func ResourceDNSPtrRecordV2 added in v1.19.1

func ResourceDNSPtrRecordV2() *schema.Resource

func ResourceDNSRecordSetV2 added in v1.19.1

func ResourceDNSRecordSetV2() *schema.Resource

func ResourceDNSZoneV2 added in v1.19.1

func ResourceDNSZoneV2() *schema.Resource

func ResourceDcsInstanceV1 added in v1.20.1

func ResourceDcsInstanceV1() *schema.Resource

func ResourceDdsInstanceV3 added in v1.25.1

func ResourceDdsInstanceV3() *schema.Resource

func ResourceDisStreamV2 added in v1.25.1

func ResourceDisStreamV2() *schema.Resource

func ResourceDmsGroupsV1 added in v1.25.1

func ResourceDmsGroupsV1() *schema.Resource

func ResourceDmsInstancesV1 added in v1.25.1

func ResourceDmsInstancesV1() *schema.Resource

func ResourceDmsKafkaInstance added in v1.25.1

func ResourceDmsKafkaInstance() *schema.Resource

func ResourceDmsKafkaTopic added in v1.27.2

func ResourceDmsKafkaTopic() *schema.Resource

ResourceDmsKafkaTopic implements the resource of "huaweicloud_dms_kafka_topic"

func ResourceDmsQueuesV1 added in v1.25.1

func ResourceDmsQueuesV1() *schema.Resource

func ResourceDmsRabbitmqInstance added in v1.25.1

func ResourceDmsRabbitmqInstance() *schema.Resource

func ResourceDwsCluster added in v1.26.0

func ResourceDwsCluster() *schema.Resource

func ResourceEvsSnapshotV2 added in v1.20.1

func ResourceEvsSnapshotV2() *schema.Resource

func ResourceEvsStorageVolumeV3 added in v1.20.1

func ResourceEvsStorageVolumeV3() *schema.Resource

func ResourceFgsFunctionV2 added in v1.25.1

func ResourceFgsFunctionV2() *schema.Resource

func ResourceGesGraphV1 added in v1.26.0

func ResourceGesGraphV1() *schema.Resource

func ResourceIAMAgencyV3 added in v1.25.0

func ResourceIAMAgencyV3() *schema.Resource

func ResourceIdentityACL added in v1.25.0

func ResourceIdentityACL() *schema.Resource

func ResourceIdentityGroupMembershipV3 added in v1.19.1

func ResourceIdentityGroupMembershipV3() *schema.Resource

func ResourceIdentityGroupV3 added in v1.19.1

func ResourceIdentityGroupV3() *schema.Resource

func ResourceIdentityProjectV3 added in v1.19.1

func ResourceIdentityProjectV3() *schema.Resource

func ResourceIdentityRole added in v1.25.0

func ResourceIdentityRole() *schema.Resource

func ResourceIdentityRoleAssignmentV3 added in v1.19.1

func ResourceIdentityRoleAssignmentV3() *schema.Resource

func ResourceIdentityUserV3 added in v1.19.1

func ResourceIdentityUserV3() *schema.Resource

func ResourceIecVpc added in v1.20.2

func ResourceIecVpc() *schema.Resource

func ResourceImsImage added in v1.20.1

func ResourceImsImage() *schema.Resource

func ResourceIpGroupV3 added in v1.25.0

func ResourceIpGroupV3() *schema.Resource

func ResourceKmsKeyV1 added in v1.25.1

func ResourceKmsKeyV1() *schema.Resource

func ResourceL7PolicyV2 added in v1.20.2

func ResourceL7PolicyV2() *schema.Resource

func ResourceL7PolicyV3 added in v1.25.0

func ResourceL7PolicyV3() *schema.Resource

func ResourceL7RuleV2 added in v1.20.2

func ResourceL7RuleV2() *schema.Resource

func ResourceL7RuleV3 added in v1.25.0

func ResourceL7RuleV3() *schema.Resource

func ResourceListenerV2 added in v1.20.2

func ResourceListenerV2() *schema.Resource

func ResourceListenerV3 added in v1.24.2

func ResourceListenerV3() *schema.Resource

func ResourceLoadBalancerV2 added in v1.20.2

func ResourceLoadBalancerV2() *schema.Resource

func ResourceLoadBalancerV3 added in v1.24.1

func ResourceLoadBalancerV3() *schema.Resource

func ResourceMRSClusterV1 added in v1.26.0

func ResourceMRSClusterV1() *schema.Resource

func ResourceMRSJobV1 added in v1.26.0

func ResourceMRSJobV1() *schema.Resource

func ResourceMemberV2 added in v1.20.2

func ResourceMemberV2() *schema.Resource

func ResourceMemberV3 added in v1.25.0

func ResourceMemberV3() *schema.Resource

func ResourceMonitorV2 added in v1.20.2

func ResourceMonitorV2() *schema.Resource

func ResourceMonitorV3 added in v1.25.0

func ResourceMonitorV3() *schema.Resource

func ResourceNatDnatRuleV2 added in v1.22.3

func ResourceNatDnatRuleV2() *schema.Resource

func ResourceNatGatewayV2 added in v1.22.3

func ResourceNatGatewayV2() *schema.Resource

func ResourceNatSnatRuleV2 added in v1.22.3

func ResourceNatSnatRuleV2() *schema.Resource

func ResourceNetworkACL added in v1.20.3

func ResourceNetworkACL() *schema.Resource

func ResourceNetworkACLRule added in v1.20.3

func ResourceNetworkACLRule() *schema.Resource

func ResourceNetworkingFloatingIPAssociateV2 added in v1.24.1

func ResourceNetworkingFloatingIPAssociateV2() *schema.Resource

func ResourceNetworkingPortV2 added in v1.20.1

func ResourceNetworkingPortV2() *schema.Resource

func ResourceNetworkingSecGroupRuleV2 added in v1.19.1

func ResourceNetworkingSecGroupRuleV2() *schema.Resource

func ResourceNetworkingSecGroupV2 added in v1.19.1

func ResourceNetworkingSecGroupV2() *schema.Resource

func ResourceObsBucket added in v1.20.2

func ResourceObsBucket() *schema.Resource

func ResourceObsBucketObject added in v1.20.2

func ResourceObsBucketObject() *schema.Resource

func ResourceObsBucketPolicy added in v1.20.2

func ResourceObsBucketPolicy() *schema.Resource

func ResourcePoolV2 added in v1.20.2

func ResourcePoolV2() *schema.Resource

func ResourcePoolV3 added in v1.25.0

func ResourcePoolV3() *schema.Resource

func ResourceRdsConfigurationV3 added in v1.25.0

func ResourceRdsConfigurationV3() *schema.Resource

func ResourceRdsInstanceV3 added in v1.25.0

func ResourceRdsInstanceV3() *schema.Resource

func ResourceRdsReadReplicaInstance added in v1.25.0

func ResourceRdsReadReplicaInstance() *schema.Resource

func ResourceSFSAccessRuleV2 added in v1.24.1

func ResourceSFSAccessRuleV2() *schema.Resource

func ResourceSFSFileSystemV2 added in v1.24.1

func ResourceSFSFileSystemV2() *schema.Resource

func ResourceSFSTurbo added in v1.22.3

func ResourceSFSTurbo() *schema.Resource

func ResourceSubscription added in v1.25.1

func ResourceSubscription() *schema.Resource

func ResourceTopic added in v1.25.1

func ResourceTopic() *schema.Resource

func ResourceVPCEndpoint added in v1.20.2

func ResourceVPCEndpoint() *schema.Resource

func ResourceVPCEndpointApproval added in v1.20.2

func ResourceVPCEndpointApproval() *schema.Resource

func ResourceVPCEndpointService added in v1.20.2

func ResourceVPCEndpointService() *schema.Resource

func ResourceVPCRouteV2 added in v1.19.1

func ResourceVPCRouteV2() *schema.Resource

func ResourceVpcBandWidthV2 added in v1.20.1

func ResourceVpcBandWidthV2() *schema.Resource

func ResourceVpcEIPV1 added in v1.19.1

func ResourceVpcEIPV1() *schema.Resource

func ResourceVpcPeeringConnectionV2 added in v1.19.1

func ResourceVpcPeeringConnectionV2() *schema.Resource

func ResourceVpnEndpointGroupV2 added in v1.26.0

func ResourceVpnEndpointGroupV2() *schema.Resource

func ResourceVpnIKEPolicyV2 added in v1.26.0

func ResourceVpnIKEPolicyV2() *schema.Resource

func ResourceVpnIPSecPolicyV2 added in v1.26.0

func ResourceVpnIPSecPolicyV2() *schema.Resource

func ResourceVpnServiceV2 added in v1.26.0

func ResourceVpnServiceV2() *schema.Resource

func ResourceVpnSiteConnectionV2 added in v1.26.0

func ResourceVpnSiteConnectionV2() *schema.Resource

func ResourceWhitelistV2 added in v1.20.2

func ResourceWhitelistV2() *schema.Resource

func SecGroupV2StateRefreshFunc

func SecGroupV2StateRefreshFunc(computeClient *golangsdk.ServiceClient, d *schema.ResourceData) resource.StateRefreshFunc

func ServerV2StateRefreshFunc

func ServerV2StateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc

ServerV2StateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an HuaweiCloud instance.

func UnsubscribePrePaidResource added in v1.22.3

func UnsubscribePrePaidResource(d *schema.ResourceData, config *config.Config, resourceIDs []string) error

UnsubscribePrePaidResource impl the action of unsubscribe resource

func VolumeV2StateRefreshFunc

func VolumeV2StateRefreshFunc(client *golangsdk.ServiceClient, volumeID string) resource.StateRefreshFunc

VolumeV2StateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an HuaweiCloud volume.

Types

type Condition added in v1.18.0

type Condition struct {
	KeyPrefixEquals             string `json:"KeyPrefixEquals,omitempty"`
	HttpErrorCodeReturnedEquals string `json:"HttpErrorCodeReturnedEquals,omitempty"`
}

type FirewallGroup

FirewallGroup is an HuaweiCloud firewall group.

type FirewallGroupCreateOpts

type FirewallGroupCreateOpts struct {
	firewall_groups.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

FirewallGroupCreateOpts represents the attributes used when creating a new firewall.

func (FirewallGroupCreateOpts) ToFirewallCreateMap

func (opts FirewallGroupCreateOpts) ToFirewallCreateMap() (map[string]interface{}, error)

ToFirewallCreateMap casts a FirewallGroupCreateOpts struct to a map. It overrides firewalls.ToFirewallCreateMap to add the ValueSpecs field.

type FirewallGroupUpdateOpts

type FirewallGroupUpdateOpts struct {
	firewall_groups.UpdateOptsBuilder
}

FirewallGroupUpdateOpts represents the attributes used when updating a firewall

func (FirewallGroupUpdateOpts) ToFirewallUpdateMap

func (opts FirewallGroupUpdateOpts) ToFirewallUpdateMap() (map[string]interface{}, error)

ToFirewallUpdateMap casts a FirewallGroupUpdateOpts struct to a map.

type FloatingIPCreateOpts

type FloatingIPCreateOpts struct {
	floatingips.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

FloatingIPCreateOpts represents the attributes used when creating a new floating ip.

func (FloatingIPCreateOpts) ToFloatingIPCreateMap

func (opts FloatingIPCreateOpts) ToFloatingIPCreateMap() (map[string]interface{}, error)

ToFloatingIPCreateMap casts a CreateOpts struct to a map. It overrides floatingips.ToFloatingIPCreateMap to add the ValueSpecs field.

type Group added in v1.2.0

type Group struct {
	ID string
}

type InstanceNIC

type InstanceNIC struct {
	NetworkID string
	PortID    string
	FixedIPv4 string
	FixedIPv6 string
	MAC       string
	Fetched   bool
}

InstanceNIC is a structured representation of a servers.Server virtual NIC

type InstanceNetwork

type InstanceNetwork struct {
	UUID          string
	Name          string
	Port          string
	FixedIP       string
	AccessNetwork bool
}

InstanceNetwork represents a collection of network information that a Terraform instance needs to satisfy all network information requirements.

type Network added in v1.2.0

type Network struct {
	ID string
}

type NetworkCreateOpts

type NetworkCreateOpts struct {
	networks.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

NetworkCreateOpts represents the attributes used when creating a new network.

func (NetworkCreateOpts) ToNetworkCreateMap

func (opts NetworkCreateOpts) ToNetworkCreateMap() (map[string]interface{}, error)

ToNetworkCreateMap casts a CreateOpts struct to a map. It overrides networks.ToNetworkCreateMap to add the ValueSpecs field.

type PolicyCreateOpts

type PolicyCreateOpts struct {
	policies.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

PolicyCreateOpts represents the attributes used when creating a new firewall policy.

func (PolicyCreateOpts) ToFirewallPolicyCreateMap

func (opts PolicyCreateOpts) ToFirewallPolicyCreateMap() (map[string]interface{}, error)

ToFirewallPolicyCreateMap casts a PolicyCreateOpts struct to a map. It overrides policies.ToFirewallPolicyCreateMap to add the ValueSpecs field.

type PortCreateOpts

type PortCreateOpts struct {
	ports.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

PortCreateOpts represents the attributes used when creating a new port.

func (PortCreateOpts) ToPortCreateMap

func (opts PortCreateOpts) ToPortCreateMap() (map[string]interface{}, error)

ToPortCreateMap casts a CreateOpts struct to a map. It overrides ports.ToPortCreateMap to add the ValueSpecs field.

type RecordSetCreateOpts

type RecordSetCreateOpts struct {
	recordsets.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

RecordSetCreateOpts represents the attributes used when creating a new DNS record set.

func (RecordSetCreateOpts) ToRecordSetCreateMap

func (opts RecordSetCreateOpts) ToRecordSetCreateMap() (map[string]interface{}, error)

ToRecordSetCreateMap casts a CreateOpts struct to a map. It overrides recordsets.ToRecordSetCreateMap to add the ValueSpecs field.

type Redirect added in v1.18.0

type Redirect struct {
	Protocol             string `json:"Protocol,omitempty"`
	HostName             string `json:"HostName,omitempty"`
	ReplaceKeyPrefixWith string `json:"ReplaceKeyPrefixWith,omitempty"`
	ReplaceKeyWith       string `json:"ReplaceKeyWith,omitempty"`
	HttpRedirectCode     string `json:"HttpRedirectCode,omitempty"`
}

type RouterCreateOpts

type RouterCreateOpts struct {
	routers.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

RouterCreateOpts represents the attributes used when creating a new router.

func (RouterCreateOpts) ToRouterCreateMap

func (opts RouterCreateOpts) ToRouterCreateMap() (map[string]interface{}, error)

ToRouterCreateMap casts a CreateOpts struct to a map. It overrides routers.ToRouterCreateMap to add the ValueSpecs field.

type RuleCreateOpts

type RuleCreateOpts struct {
	rules.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

RuleCreateOpts represents the attributes used when creating a new firewall rule.

func (RuleCreateOpts) ToRuleCreateMap

func (opts RuleCreateOpts) ToRuleCreateMap() (map[string]interface{}, error)

ToRuleCreateMap casts a CreateOpts struct to a map. It overrides rules.ToRuleCreateMap to add the ValueSpecs field.

type StateRefresh added in v1.25.0

type StateRefresh struct {
	Pending      []string
	Target       []string
	Delay        time.Duration
	Timeout      time.Duration
	PollInterval time.Duration
}

type SubnetCreateOpts

type SubnetCreateOpts struct {
	subnets.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

SubnetCreateOpts represents the attributes used when creating a new subnet.

func (SubnetCreateOpts) ToSubnetCreateMap

func (opts SubnetCreateOpts) ToSubnetCreateMap() (map[string]interface{}, error)

ToSubnetCreateMap casts a CreateOpts struct to a map. It overrides subnets.ToSubnetCreateMap to add the ValueSpecs field.

type Template added in v1.24.2

type Template struct {
	UID             string
	Name            string
	Version         string
	Description     string
	Spec            string
	Stable          bool
	SupportVersions []addons.SupportVersions
}

func (Template) IsEmpty added in v1.24.2

func (t Template) IsEmpty() bool

type VpnEndpointGroupCreateOpts added in v1.18.0

type VpnEndpointGroupCreateOpts struct {
	endpointgroups.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

VpnEndpointGroupCreateOpts represents the attributes used when creating a new endpoint group.

type VpnIKEPolicyCreateOpts added in v1.18.0

type VpnIKEPolicyCreateOpts struct {
	ikepolicies.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

VpnIKEPolicyCreateOpts represents the attributes used when creating a new IKE policy.

type VpnIKEPolicyLifetimeCreateOpts added in v1.18.0

type VpnIKEPolicyLifetimeCreateOpts struct {
	ikepolicies.LifetimeCreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

VpnIKEPolicyLifetimeCreateOpts represents the attributes used when creating a new lifetime for an IKE policy.

type VpnIPSecPolicyCreateOpts added in v1.18.0

type VpnIPSecPolicyCreateOpts struct {
	ipsecpolicies.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

VpnIPSecPolicyCreateOpts represents the attributes used when creating a new IPSec policy.

type VpnServiceCreateOpts added in v1.18.0

type VpnServiceCreateOpts struct {
	services.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

VpnServiceCreateOpts represents the attributes used when creating a new VPN service.

type VpnSiteConnectionCreateOpts added in v1.18.0

type VpnSiteConnectionCreateOpts struct {
	siteconnections.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

VpnSiteConnectionCreateOpts represents the attributes used when creating a new IPSec site connection.

type WaitDomainStatus added in v1.18.0

type WaitDomainStatus struct {
	ID      string
	Penging []string
	Target  []string
	Opts    *domains.ExtensionOpts
}

type WebsiteRoutingRule added in v1.18.0

type WebsiteRoutingRule struct {
	Condition Condition `json:"Condition,omitempty"`
	Redirect  Redirect  `json:"Redirect"`
}

type ZoneCreateOpts

type ZoneCreateOpts struct {
	zones.CreateOpts
	ValueSpecs map[string]interface{} `json:"value_specs,omitempty"`
}

ZoneCreateOpts represents the attributes used when creating a new DNS zone.

func (ZoneCreateOpts) ToZoneCreateMap

func (opts ZoneCreateOpts) ToZoneCreateMap() (map[string]interface{}, error)

ToZoneCreateMap casts a CreateOpts struct to a map. It overrides zones.ToZoneCreateMap to add the ValueSpecs field.

Source Files

Jump to

Keyboard shortcuts

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