huaweicloud

package
v1.35.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MPL-2.0 Imports: 186 Imported by: 6

Documentation

Index

Constants

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

Variables

This section is empty.

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 AttachmentJobRefreshFunc added in v1.35.0

func AttachmentJobRefreshFunc(c *golangsdk.ServiceClient, jobId string) resource.StateRefreshFunc

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 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 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 DataSourceComputeInstances added in v1.30.0

func DataSourceComputeInstances() *schema.Resource

func DataSourceEcsFlavors added in v1.19.2

func DataSourceEcsFlavors() *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 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 DataSourceNetworkingSecGroup added in v1.34.0

func DataSourceNetworkingSecGroup() *schema.Resource

func DataSourceObsBucketObject added in v1.20.2

func DataSourceObsBucketObject() *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 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 GaussRedisInstanceUpdateFlavor added in v1.30.0

func GaussRedisInstanceUpdateFlavor(d *schema.ResourceData, client, bssClient *golangsdk.ServiceClient) error

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 IsSystemVolume added in v1.30.0

func IsSystemVolume(index string) bool

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 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 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 ResourceComputeVolumeAttach added in v1.35.0

func ResourceComputeVolumeAttach() *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 ResourceEvsSnapshotV2 added in v1.20.1

func ResourceEvsSnapshotV2() *schema.Resource

func ResourceGesGraphV1 added in v1.26.0

func ResourceGesGraphV1() *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 ResourceL7PolicyV3 added in v1.25.0

func ResourceL7PolicyV3() *schema.Resource

func ResourceL7RuleV3 added in v1.25.0

func ResourceL7RuleV3() *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 ResourceMemberV3 added in v1.25.0

func ResourceMemberV3() *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 ResourceNetworkingPortV2 added in v1.20.1

func ResourceNetworkingPortV2() *schema.Resource

func ResourceNetworkingSecGroup added in v1.34.0

func ResourceNetworkingSecGroup() *schema.Resource

func ResourceNetworkingSecGroupRule added in v1.34.0

func ResourceNetworkingSecGroupRule() *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 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 SecGroupV2StateRefreshFunc

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

func ServerV1StateRefreshFunc added in v1.35.1

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

ServerV1StateRefreshFunc 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 InstanceNIC

type InstanceNIC struct {
	NetworkID       string
	PortID          string
	FixedIPv4       string
	FixedIPv6       string
	MAC             string
	SourceDestCheck bool
	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 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 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