deprecated

package
v1.68.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MPL-2.0 Imports: 89 Imported by: 4

Documentation

Index

Constants

View Source
const (
	MemberTypeEcs MemberType = "ECS"
	MemberTypeEip MemberType = "EIP"

	AlgorithmTypeWrr AlgorithmType = "WRR"
	AlgorithmTypeWlc AlgorithmType = "WLC"
	AlgorithmTypeSh  AlgorithmType = "SH"
	AlgorithmTypeUri AlgorithmType = "URI hashing"

	ProtocolTypeTcp   ProtocolType = "TCP"
	ProtocolTypeHttp  ProtocolType = "HTTP"
	ProtocolTypeHttps ProtocolType = "HTTPS"
	ProtocolTypeBoth  ProtocolType = "BOTH"

	ChannelStatusNormal   ChannelStatus = 1
	ChannelStatusAbnormal ChannelStatus = 2

	ProtocolTypeTCP   ProtocolType = "TCP"
	ProtocolTypeHTTP  ProtocolType = "HTTP"
	ProtocolTypeHTTPS ProtocolType = "HTTPS"
)
View Source
const (
	PoolID   = "0a2228f2-7f8a-45f1-8e09-9039e1d09975"
	PoolName = "admin_external_net"
)

Variables

View Source
var ContainerFormats = [1]string{"bare"}
View Source
var DiskFormats = [2]string{"vhd", "qcow2"}

Functions

func AddValueSpecs added in v1.29.0

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

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 DataSourceAntiDdosV1 added in v1.55.0

func DataSourceAntiDdosV1() *schema.Resource

func DataSourceCSBSBackupPolicyV1 added in v1.46.0

func DataSourceCSBSBackupPolicyV1() *schema.Resource

func DataSourceCSBSBackupV1 added in v1.46.0

func DataSourceCSBSBackupV1() *schema.Resource

func DataSourceCTSTrackerV1

func DataSourceCTSTrackerV1() *schema.Resource

func DataSourceComputeAvailabilityZonesV2 added in v1.46.0

func DataSourceComputeAvailabilityZonesV2() *schema.Resource

func DataSourceDcsAZV1 added in v1.29.0

func DataSourceDcsAZV1() *schema.Resource

func DataSourceDcsProductV1 added in v1.29.0

func DataSourceDcsProductV1() *schema.Resource

func DataSourceDmsAZ added in v1.32.0

func DataSourceDmsAZ() *schema.Resource

func DataSourceNetworkingNetworkV2 added in v1.46.0

func DataSourceNetworkingNetworkV2() *schema.Resource

func DataSourceNetworkingSubnetV2 added in v1.46.0

func DataSourceNetworkingSubnetV2() *schema.Resource

func DataSourceSFSFileSystemV2 added in v1.68.0

func DataSourceSFSFileSystemV2() *schema.Resource

@API SFS GET /v2/{project_id}/shares/detail @API SFS POST /v2/{project_id}/shares/{id}/action @API SFS GET /v2/{project_id}/shares/{id}/export_locations

func DataSourceVBSBackupPolicyV2 added in v1.46.0

func DataSourceVBSBackupPolicyV2() *schema.Resource

func DataSourceVBSBackupV2 added in v1.46.0

func DataSourceVBSBackupV2() *schema.Resource

func DmsInstancesV1StateRefreshFunc added in v1.31.1

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

func FindCsRouteV1ByList added in v1.28.0

func FindCsRouteV1ByList(client *golangsdk.ServiceClient, link, resourceID string) (interface{}, error)

func FloatingIPV2StateRefreshFunc added in v1.46.0

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

func GetCloudImage added in v1.68.1

func GetCloudImage(client *golangsdk.ServiceClient, id string) (*cloudimages.Image, error)

func MapResourceProp added in v1.29.0

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

MapResourceProp converts ResourceData property into a map

func MapValueSpecs added in v1.29.0

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

MapValueSpecs converts ResourceData into a map

func ResourceApigVpcChannelV2 added in v1.48.0

func ResourceApigVpcChannelV2() *schema.Resource

func ResourceBatchTaskFile added in v1.63.0

func ResourceBatchTaskFile() *schema.Resource

@API IoTDA POST /v5/iot/{project_id}/batchtask-files @API IoTDA GET /v5/iot/{project_id}/batchtask-files @API IoTDA DELETE /v5/iot/{project_id}/batchtask-files/{file_id}

func ResourceBlockStorageVolumeV2 added in v1.46.0

func ResourceBlockStorageVolumeV2() *schema.Resource

func ResourceCSBSBackupPolicyV1 added in v1.46.0

func ResourceCSBSBackupPolicyV1() *schema.Resource

func ResourceCSBSBackupV1 added in v1.46.0

func ResourceCSBSBackupV1() *schema.Resource

func ResourceCTSTrackerV1

func ResourceCTSTrackerV1() *schema.Resource

func ResourceComputeFloatingIPV2 added in v1.46.0

func ResourceComputeFloatingIPV2() *schema.Resource

func ResourceComputeSecGroupV2 added in v1.46.0

func ResourceComputeSecGroupV2() *schema.Resource

func ResourceCsClusterV1 added in v1.28.0

func ResourceCsClusterV1() *schema.Resource

func ResourceCsPeeringConnectV1 added in v1.28.0

func ResourceCsPeeringConnectV1() *schema.Resource

func ResourceCsRouteV1 added in v1.28.0

func ResourceCsRouteV1() *schema.Resource

func ResourceDmsGroups added in v1.33.0

func ResourceDmsGroups() *schema.Resource

func ResourceDmsInstancesV1 added in v1.31.1

func ResourceDmsInstancesV1() *schema.Resource

func ResourceDmsQueues added in v1.33.0

func ResourceDmsQueues() *schema.Resource

func ResourceEcsInstanceV1 added in v1.46.0

func ResourceEcsInstanceV1() *schema.Resource

func ResourceFWFirewallGroupV2 added in v1.46.0

func ResourceFWFirewallGroupV2() *schema.Resource

func ResourceFWPolicyV2 added in v1.46.0

func ResourceFWPolicyV2() *schema.Resource

func ResourceFWRuleV2 added in v1.46.0

func ResourceFWRuleV2() *schema.Resource

func ResourceFunctionGraphTrigger added in v1.62.1

func ResourceFunctionGraphTrigger() *schema.Resource

@API FunctionGraph POST /v2/{project_id}/fgs/triggers/{function_urn} @API FunctionGraph GET /v2/{project_id}/fgs/triggers/{function_urn} @API FunctionGraph PUT /v2/{project_id}/fgs/triggers/{function_urn}/{trigger_type_code}/{trigger_id} @API FunctionGraph DELETE /v2/{project_id}/fgs/triggers/{function_urn}/{trigger_type_code}/{trigger_id}

func ResourceImagesImageV2 added in v1.30.0

func ResourceImagesImageV2() *schema.Resource

func ResourceImsImage added in v1.68.1

func ResourceImsImage() *schema.Resource

@API IMS POST /v2/cloudimages/action @API IMS POST /v1/cloudimages/wholeimages/action @API IMS GET /v2/cloudimages @API IMS PATCH /v2/cloudimages/{image_id} @API CBR GET /v3/{project_id}/backups/{backup_id} @API IMS GET /v2/{project_id}/images/{image_id}/tags @API IMS POST /v2/{project_id}/images/{image_id}/tags/action @API IMS GET /v2/images/{image_id} @API IMS DELETE /v2/images/{image_id}

func ResourceMaasTaskV1 added in v1.46.0

func ResourceMaasTaskV1() *schema.Resource

func ResourceNetworkingFloatingIPV2 added in v1.46.0

func ResourceNetworkingFloatingIPV2() *schema.Resource

func ResourceNetworkingNetworkV2 added in v1.46.0

func ResourceNetworkingNetworkV2() *schema.Resource

func ResourceNetworkingPortV2 added in v1.46.0

func ResourceNetworkingPortV2() *schema.Resource

func ResourceNetworkingRouterInterfaceV2 added in v1.46.0

func ResourceNetworkingRouterInterfaceV2() *schema.Resource

func ResourceNetworkingRouterRouteV2 added in v1.46.0

func ResourceNetworkingRouterRouteV2() *schema.Resource

func ResourceNetworkingRouterV2 added in v1.46.0

func ResourceNetworkingRouterV2() *schema.Resource

func ResourceNetworkingSubnetV2 added in v1.46.0

func ResourceNetworkingSubnetV2() *schema.Resource

func ResourceSFSAccessRuleV2 added in v1.68.0

func ResourceSFSAccessRuleV2() *schema.Resource

@API SFS POST /v2/{project_id}/shares/{id}/action

func ResourceSFSFileSystemV2 added in v1.68.0

func ResourceSFSFileSystemV2() *schema.Resource

@API SFS POST /v2/{project_id}/shares/{id}/action @API SFS DELETE /v2/{project_id}/shares/{id} @API SFS GET /v2/{project_id}/shares/{id} @API SFS PUT /v2/{project_id}/shares/{id} @API SFS POST /v2/{project_id}/shares @API SFS POST /v2/{project_id}/sfs/{id}/tags/action @API SFS GET /v2/{project_id}/sfs/{id}/tags

func ResourceVBSBackupPolicyV2 added in v1.46.0

func ResourceVBSBackupPolicyV2() *schema.Resource

func ResourceVBSBackupV2 added in v1.46.0

func ResourceVBSBackupV2() *schema.Resource

func ResourceVPCRouteV2 added in v1.52.0

func ResourceVPCRouteV2() *schema.Resource

func ResourceVpnEndpointGroupV2 added in v1.29.0

func ResourceVpnEndpointGroupV2() *schema.Resource

func ResourceVpnIKEPolicyV2 added in v1.29.0

func ResourceVpnIKEPolicyV2() *schema.Resource

func ResourceVpnIPSecPolicyV2 added in v1.29.0

func ResourceVpnIPSecPolicyV2() *schema.Resource

func ResourceVpnServiceV2 added in v1.29.0

func ResourceVpnServiceV2() *schema.Resource

func ResourceVpnSiteConnectionV2 added in v1.29.0

func ResourceVpnSiteConnectionV2() *schema.Resource

func SecGroupV2StateRefreshFunc added in v1.46.0

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

func ServerV1StateRefreshFunc added in v1.46.0

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

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

func VolumeV2StateRefreshFunc added in v1.46.0

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

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

Types

type AlgorithmType added in v1.48.0

type AlgorithmType string

type ChannelStatus added in v1.48.0

type ChannelStatus int

type FirewallGroup added in v1.46.0

FirewallGroup is an HuaweiCloud firewall group.

type FirewallGroupCreateOpts added in v1.46.0

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

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

type FirewallGroupUpdateOpts struct {
	firewall_groups.UpdateOptsBuilder
}

FirewallGroupUpdateOpts represents the attributes used when updating a firewall

func (FirewallGroupUpdateOpts) ToFirewallUpdateMap added in v1.46.0

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

ToFirewallUpdateMap casts a FirewallGroupUpdateOpts struct to a map.

type FloatingIPCreateOpts added in v1.46.0

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

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 MemberType added in v1.48.0

type MemberType string

type NetworkCreateOpts added in v1.46.0

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

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

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

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

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

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 ProtocolType added in v1.48.0

type ProtocolType string

type RouterCreateOpts added in v1.46.0

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

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

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

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 SubnetCreateOpts added in v1.46.0

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

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 VpnEndpointGroupCreateOpts added in v1.29.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.29.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.29.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.29.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.29.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.29.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.

Source Files

Jump to

Keyboard shortcuts

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