virtualnetworkaddresses

package
v0.20240927.1005214 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/oracledatabase/2024-06-01/virtualnetworkaddresses Documentation

The virtualnetworkaddresses SDK allows for interaction with Azure Resource Manager oracledatabase (API Version 2024-06-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/oracledatabase/2024-06-01/virtualnetworkaddresses"

Client Initialization

client := virtualnetworkaddresses.NewVirtualNetworkAddressesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: VirtualNetworkAddressesClient.CreateOrUpdate

ctx := context.TODO()
id := virtualnetworkaddresses.NewVirtualNetworkAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudvmclustername", "virtualnetworkaddressname")

payload := virtualnetworkaddresses.VirtualNetworkAddress{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: VirtualNetworkAddressesClient.Delete

ctx := context.TODO()
id := virtualnetworkaddresses.NewVirtualNetworkAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudvmclustername", "virtualnetworkaddressname")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: VirtualNetworkAddressesClient.Get

ctx := context.TODO()
id := virtualnetworkaddresses.NewVirtualNetworkAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudvmclustername", "virtualnetworkaddressname")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualNetworkAddressesClient.ListByCloudVMCluster

ctx := context.TODO()
id := virtualnetworkaddresses.NewCloudVMClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudvmclustername")

// alternatively `client.ListByCloudVMCluster(ctx, id)` can be used to do batched pagination
items, err := client.ListByCloudVMClusterComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAzureResourceProvisioningState

func PossibleValuesForAzureResourceProvisioningState() []string

func PossibleValuesForVirtualNetworkAddressLifecycleState

func PossibleValuesForVirtualNetworkAddressLifecycleState() []string

func ValidateCloudVMClusterID

func ValidateCloudVMClusterID(input interface{}, key string) (warnings []string, errors []error)

ValidateCloudVMClusterID checks that 'input' can be parsed as a Cloud V M Cluster ID

func ValidateVirtualNetworkAddressID

func ValidateVirtualNetworkAddressID(input interface{}, key string) (warnings []string, errors []error)

ValidateVirtualNetworkAddressID checks that 'input' can be parsed as a Virtual Network Address ID

Types

type AzureResourceProvisioningState

type AzureResourceProvisioningState string
const (
	AzureResourceProvisioningStateCanceled     AzureResourceProvisioningState = "Canceled"
	AzureResourceProvisioningStateFailed       AzureResourceProvisioningState = "Failed"
	AzureResourceProvisioningStateProvisioning AzureResourceProvisioningState = "Provisioning"
	AzureResourceProvisioningStateSucceeded    AzureResourceProvisioningState = "Succeeded"
)

func (*AzureResourceProvisioningState) UnmarshalJSON

func (s *AzureResourceProvisioningState) UnmarshalJSON(bytes []byte) error

type CloudVMClusterId

type CloudVMClusterId struct {
	SubscriptionId     string
	ResourceGroupName  string
	CloudVmClusterName string
}

CloudVMClusterId is a struct representing the Resource ID for a Cloud V M Cluster

func NewCloudVMClusterID

func NewCloudVMClusterID(subscriptionId string, resourceGroupName string, cloudVmClusterName string) CloudVMClusterId

NewCloudVMClusterID returns a new CloudVMClusterId struct

func ParseCloudVMClusterID

func ParseCloudVMClusterID(input string) (*CloudVMClusterId, error)

ParseCloudVMClusterID parses 'input' into a CloudVMClusterId

func ParseCloudVMClusterIDInsensitively

func ParseCloudVMClusterIDInsensitively(input string) (*CloudVMClusterId, error)

ParseCloudVMClusterIDInsensitively parses 'input' case-insensitively into a CloudVMClusterId note: this method should only be used for API response data and not user input

func (*CloudVMClusterId) FromParseResult

func (id *CloudVMClusterId) FromParseResult(input resourceids.ParseResult) error

func (CloudVMClusterId) ID

func (id CloudVMClusterId) ID() string

ID returns the formatted Cloud V M Cluster ID

func (CloudVMClusterId) Segments

func (id CloudVMClusterId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Cloud V M Cluster ID

func (CloudVMClusterId) String

func (id CloudVMClusterId) String() string

String returns a human-readable description of this Cloud V M Cluster ID

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VirtualNetworkAddress
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VirtualNetworkAddress
}

type ListByCloudVMClusterCompleteResult

type ListByCloudVMClusterCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []VirtualNetworkAddress
}

type ListByCloudVMClusterCustomPager

type ListByCloudVMClusterCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByCloudVMClusterCustomPager) NextPageLink() *odata.Link

type ListByCloudVMClusterOperationResponse

type ListByCloudVMClusterOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualNetworkAddress
}

type VirtualNetworkAddress

type VirtualNetworkAddress struct {
	Id         *string                          `json:"id,omitempty"`
	Name       *string                          `json:"name,omitempty"`
	Properties *VirtualNetworkAddressProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData           `json:"systemData,omitempty"`
	Type       *string                          `json:"type,omitempty"`
}

type VirtualNetworkAddressId

type VirtualNetworkAddressId struct {
	SubscriptionId            string
	ResourceGroupName         string
	CloudVmClusterName        string
	VirtualNetworkAddressName string
}

VirtualNetworkAddressId is a struct representing the Resource ID for a Virtual Network Address

func NewVirtualNetworkAddressID

func NewVirtualNetworkAddressID(subscriptionId string, resourceGroupName string, cloudVmClusterName string, virtualNetworkAddressName string) VirtualNetworkAddressId

NewVirtualNetworkAddressID returns a new VirtualNetworkAddressId struct

func ParseVirtualNetworkAddressID

func ParseVirtualNetworkAddressID(input string) (*VirtualNetworkAddressId, error)

ParseVirtualNetworkAddressID parses 'input' into a VirtualNetworkAddressId

func ParseVirtualNetworkAddressIDInsensitively

func ParseVirtualNetworkAddressIDInsensitively(input string) (*VirtualNetworkAddressId, error)

ParseVirtualNetworkAddressIDInsensitively parses 'input' case-insensitively into a VirtualNetworkAddressId note: this method should only be used for API response data and not user input

func (*VirtualNetworkAddressId) FromParseResult

func (id *VirtualNetworkAddressId) FromParseResult(input resourceids.ParseResult) error

func (VirtualNetworkAddressId) ID

ID returns the formatted Virtual Network Address ID

func (VirtualNetworkAddressId) Segments

Segments returns a slice of Resource ID Segments which comprise this Virtual Network Address ID

func (VirtualNetworkAddressId) String

func (id VirtualNetworkAddressId) String() string

String returns a human-readable description of this Virtual Network Address ID

type VirtualNetworkAddressLifecycleState

type VirtualNetworkAddressLifecycleState string
const (
	VirtualNetworkAddressLifecycleStateAvailable    VirtualNetworkAddressLifecycleState = "Available"
	VirtualNetworkAddressLifecycleStateFailed       VirtualNetworkAddressLifecycleState = "Failed"
	VirtualNetworkAddressLifecycleStateProvisioning VirtualNetworkAddressLifecycleState = "Provisioning"
	VirtualNetworkAddressLifecycleStateTerminated   VirtualNetworkAddressLifecycleState = "Terminated"
	VirtualNetworkAddressLifecycleStateTerminating  VirtualNetworkAddressLifecycleState = "Terminating"
)

func (*VirtualNetworkAddressLifecycleState) UnmarshalJSON

func (s *VirtualNetworkAddressLifecycleState) UnmarshalJSON(bytes []byte) error

type VirtualNetworkAddressOperationPredicate

type VirtualNetworkAddressOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (VirtualNetworkAddressOperationPredicate) Matches

type VirtualNetworkAddressProperties

type VirtualNetworkAddressProperties struct {
	Domain            *string                              `json:"domain,omitempty"`
	IPAddress         *string                              `json:"ipAddress,omitempty"`
	LifecycleDetails  *string                              `json:"lifecycleDetails,omitempty"`
	LifecycleState    *VirtualNetworkAddressLifecycleState `json:"lifecycleState,omitempty"`
	Ocid              *string                              `json:"ocid,omitempty"`
	ProvisioningState *AzureResourceProvisioningState      `json:"provisioningState,omitempty"`
	TimeAssigned      *string                              `json:"timeAssigned,omitempty"`
	VMOcid            *string                              `json:"vmOcid,omitempty"`
}

func (*VirtualNetworkAddressProperties) GetTimeAssignedAsTime

func (o *VirtualNetworkAddressProperties) GetTimeAssignedAsTime() (*time.Time, error)

func (*VirtualNetworkAddressProperties) SetTimeAssignedAsTime

func (o *VirtualNetworkAddressProperties) SetTimeAssignedAsTime(input time.Time)

type VirtualNetworkAddressesClient

type VirtualNetworkAddressesClient struct {
	Client *resourcemanager.Client
}

func NewVirtualNetworkAddressesClientWithBaseURI

func NewVirtualNetworkAddressesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkAddressesClient, error)

func (VirtualNetworkAddressesClient) CreateOrUpdate

CreateOrUpdate ...

func (VirtualNetworkAddressesClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (VirtualNetworkAddressesClient) Delete

Delete ...

func (VirtualNetworkAddressesClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (VirtualNetworkAddressesClient) Get

Get ...

func (VirtualNetworkAddressesClient) ListByCloudVMCluster

ListByCloudVMCluster ...

func (VirtualNetworkAddressesClient) ListByCloudVMClusterComplete

ListByCloudVMClusterComplete retrieves all the results into a single object

func (VirtualNetworkAddressesClient) ListByCloudVMClusterCompleteMatchingPredicate

func (c VirtualNetworkAddressesClient) ListByCloudVMClusterCompleteMatchingPredicate(ctx context.Context, id CloudVMClusterId, predicate VirtualNetworkAddressOperationPredicate) (result ListByCloudVMClusterCompleteResult, err error)

ListByCloudVMClusterCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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