cloudexadatainfrastructures

package
v0.20240923.1142107 Latest Latest
Warning

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

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

README

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

The cloudexadatainfrastructures 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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/oracledatabase/2024-06-01/cloudexadatainfrastructures"

Client Initialization

client := cloudexadatainfrastructures.NewCloudExadataInfrastructuresClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CloudExadataInfrastructuresClient.AddStorageCapacity

ctx := context.TODO()
id := cloudexadatainfrastructures.NewCloudExadataInfrastructureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudexadatainfrastructurename")

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

Example Usage: CloudExadataInfrastructuresClient.CreateOrUpdate

ctx := context.TODO()
id := cloudexadatainfrastructures.NewCloudExadataInfrastructureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudexadatainfrastructurename")

payload := cloudexadatainfrastructures.CloudExadataInfrastructure{
	// ...
}


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

Example Usage: CloudExadataInfrastructuresClient.Delete

ctx := context.TODO()
id := cloudexadatainfrastructures.NewCloudExadataInfrastructureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudexadatainfrastructurename")

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

Example Usage: CloudExadataInfrastructuresClient.Get

ctx := context.TODO()
id := cloudexadatainfrastructures.NewCloudExadataInfrastructureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudexadatainfrastructurename")

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: CloudExadataInfrastructuresClient.ListByResourceGroup

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

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

Example Usage: CloudExadataInfrastructuresClient.ListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: CloudExadataInfrastructuresClient.Update

ctx := context.TODO()
id := cloudexadatainfrastructures.NewCloudExadataInfrastructureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudexadatainfrastructurename")

payload := cloudexadatainfrastructures.CloudExadataInfrastructureUpdate{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAzureResourceProvisioningState

func PossibleValuesForAzureResourceProvisioningState() []string

func PossibleValuesForCloudExadataInfrastructureLifecycleState

func PossibleValuesForCloudExadataInfrastructureLifecycleState() []string

func PossibleValuesForDayOfWeekName

func PossibleValuesForDayOfWeekName() []string

func PossibleValuesForMonthName

func PossibleValuesForMonthName() []string

func PossibleValuesForPatchingMode

func PossibleValuesForPatchingMode() []string

func PossibleValuesForPreference

func PossibleValuesForPreference() []string

func ValidateCloudExadataInfrastructureID

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

ValidateCloudExadataInfrastructureID checks that 'input' can be parsed as a Cloud Exadata Infrastructure ID

Types

type AddStorageCapacityOperationResponse

type AddStorageCapacityOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CloudExadataInfrastructure
}

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 CloudExadataInfrastructure

type CloudExadataInfrastructure struct {
	Id         *string                               `json:"id,omitempty"`
	Location   string                                `json:"location"`
	Name       *string                               `json:"name,omitempty"`
	Properties *CloudExadataInfrastructureProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData                `json:"systemData,omitempty"`
	Tags       *map[string]string                    `json:"tags,omitempty"`
	Type       *string                               `json:"type,omitempty"`
	Zones      zones.Schema                          `json:"zones"`
}

type CloudExadataInfrastructureId

type CloudExadataInfrastructureId struct {
	SubscriptionId                 string
	ResourceGroupName              string
	CloudExadataInfrastructureName string
}

CloudExadataInfrastructureId is a struct representing the Resource ID for a Cloud Exadata Infrastructure

func NewCloudExadataInfrastructureID

func NewCloudExadataInfrastructureID(subscriptionId string, resourceGroupName string, cloudExadataInfrastructureName string) CloudExadataInfrastructureId

NewCloudExadataInfrastructureID returns a new CloudExadataInfrastructureId struct

func ParseCloudExadataInfrastructureID

func ParseCloudExadataInfrastructureID(input string) (*CloudExadataInfrastructureId, error)

ParseCloudExadataInfrastructureID parses 'input' into a CloudExadataInfrastructureId

func ParseCloudExadataInfrastructureIDInsensitively

func ParseCloudExadataInfrastructureIDInsensitively(input string) (*CloudExadataInfrastructureId, error)

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

func (*CloudExadataInfrastructureId) FromParseResult

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

func (CloudExadataInfrastructureId) ID

ID returns the formatted Cloud Exadata Infrastructure ID

func (CloudExadataInfrastructureId) Segments

Segments returns a slice of Resource ID Segments which comprise this Cloud Exadata Infrastructure ID

func (CloudExadataInfrastructureId) String

String returns a human-readable description of this Cloud Exadata Infrastructure ID

type CloudExadataInfrastructureLifecycleState

type CloudExadataInfrastructureLifecycleState string
const (
	CloudExadataInfrastructureLifecycleStateAvailable             CloudExadataInfrastructureLifecycleState = "Available"
	CloudExadataInfrastructureLifecycleStateFailed                CloudExadataInfrastructureLifecycleState = "Failed"
	CloudExadataInfrastructureLifecycleStateMaintenanceInProgress CloudExadataInfrastructureLifecycleState = "MaintenanceInProgress"
	CloudExadataInfrastructureLifecycleStateProvisioning          CloudExadataInfrastructureLifecycleState = "Provisioning"
	CloudExadataInfrastructureLifecycleStateTerminated            CloudExadataInfrastructureLifecycleState = "Terminated"
	CloudExadataInfrastructureLifecycleStateTerminating           CloudExadataInfrastructureLifecycleState = "Terminating"
	CloudExadataInfrastructureLifecycleStateUpdating              CloudExadataInfrastructureLifecycleState = "Updating"
)

func (*CloudExadataInfrastructureLifecycleState) UnmarshalJSON

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

type CloudExadataInfrastructureOperationPredicate

type CloudExadataInfrastructureOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (CloudExadataInfrastructureOperationPredicate) Matches

type CloudExadataInfrastructureProperties

type CloudExadataInfrastructureProperties struct {
	ActivatedStorageCount       *int64                                    `json:"activatedStorageCount,omitempty"`
	AdditionalStorageCount      *int64                                    `json:"additionalStorageCount,omitempty"`
	AvailableStorageSizeInGbs   *int64                                    `json:"availableStorageSizeInGbs,omitempty"`
	ComputeCount                *int64                                    `json:"computeCount,omitempty"`
	CpuCount                    *int64                                    `json:"cpuCount,omitempty"`
	CustomerContacts            *[]CustomerContact                        `json:"customerContacts,omitempty"`
	DataStorageSizeInTbs        *float64                                  `json:"dataStorageSizeInTbs,omitempty"`
	DbNodeStorageSizeInGbs      *int64                                    `json:"dbNodeStorageSizeInGbs,omitempty"`
	DbServerVersion             *string                                   `json:"dbServerVersion,omitempty"`
	DisplayName                 string                                    `json:"displayName"`
	EstimatedPatchingTime       *EstimatedPatchingTime                    `json:"estimatedPatchingTime,omitempty"`
	LastMaintenanceRunId        *string                                   `json:"lastMaintenanceRunId,omitempty"`
	LifecycleDetails            *string                                   `json:"lifecycleDetails,omitempty"`
	LifecycleState              *CloudExadataInfrastructureLifecycleState `json:"lifecycleState,omitempty"`
	MaintenanceWindow           *MaintenanceWindow                        `json:"maintenanceWindow,omitempty"`
	MaxCPUCount                 *int64                                    `json:"maxCpuCount,omitempty"`
	MaxDataStorageInTbs         *float64                                  `json:"maxDataStorageInTbs,omitempty"`
	MaxDbNodeStorageSizeInGbs   *int64                                    `json:"maxDbNodeStorageSizeInGbs,omitempty"`
	MaxMemoryInGbs              *int64                                    `json:"maxMemoryInGbs,omitempty"`
	MemorySizeInGbs             *int64                                    `json:"memorySizeInGbs,omitempty"`
	MonthlyDbServerVersion      *string                                   `json:"monthlyDbServerVersion,omitempty"`
	MonthlyStorageServerVersion *string                                   `json:"monthlyStorageServerVersion,omitempty"`
	NextMaintenanceRunId        *string                                   `json:"nextMaintenanceRunId,omitempty"`
	OciUrl                      *string                                   `json:"ociUrl,omitempty"`
	Ocid                        *string                                   `json:"ocid,omitempty"`
	ProvisioningState           *AzureResourceProvisioningState           `json:"provisioningState,omitempty"`
	Shape                       string                                    `json:"shape"`
	StorageCount                *int64                                    `json:"storageCount,omitempty"`
	StorageServerVersion        *string                                   `json:"storageServerVersion,omitempty"`
	TimeCreated                 *string                                   `json:"timeCreated,omitempty"`
	TotalStorageSizeInGbs       *int64                                    `json:"totalStorageSizeInGbs,omitempty"`
}

type CloudExadataInfrastructureUpdate

type CloudExadataInfrastructureUpdate struct {
	Properties *CloudExadataInfrastructureUpdateProperties `json:"properties,omitempty"`
	Tags       *map[string]string                          `json:"tags,omitempty"`
	Zones      *zones.Schema                               `json:"zones,omitempty"`
}

type CloudExadataInfrastructureUpdateProperties

type CloudExadataInfrastructureUpdateProperties struct {
	ComputeCount      *int64             `json:"computeCount,omitempty"`
	CustomerContacts  *[]CustomerContact `json:"customerContacts,omitempty"`
	DisplayName       *string            `json:"displayName,omitempty"`
	MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
	StorageCount      *int64             `json:"storageCount,omitempty"`
}

type CloudExadataInfrastructuresClient

type CloudExadataInfrastructuresClient struct {
	Client *resourcemanager.Client
}

func NewCloudExadataInfrastructuresClientWithBaseURI

func NewCloudExadataInfrastructuresClientWithBaseURI(sdkApi sdkEnv.Api) (*CloudExadataInfrastructuresClient, error)

func (CloudExadataInfrastructuresClient) AddStorageCapacity

AddStorageCapacity ...

func (CloudExadataInfrastructuresClient) AddStorageCapacityThenPoll

AddStorageCapacityThenPoll performs AddStorageCapacity then polls until it's completed

func (CloudExadataInfrastructuresClient) CreateOrUpdate

CreateOrUpdate ...

func (CloudExadataInfrastructuresClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (CloudExadataInfrastructuresClient) Delete

Delete ...

func (CloudExadataInfrastructuresClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (CloudExadataInfrastructuresClient) Get

Get ...

func (CloudExadataInfrastructuresClient) ListByResourceGroup

ListByResourceGroup ...

func (CloudExadataInfrastructuresClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (CloudExadataInfrastructuresClient) ListByResourceGroupCompleteMatchingPredicate

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (CloudExadataInfrastructuresClient) ListBySubscription

ListBySubscription ...

func (CloudExadataInfrastructuresClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (CloudExadataInfrastructuresClient) ListBySubscriptionCompleteMatchingPredicate

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (CloudExadataInfrastructuresClient) Update

Update ...

func (CloudExadataInfrastructuresClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type CreateOrUpdateOperationResponse

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

type CustomerContact

type CustomerContact struct {
	Email string `json:"email"`
}

type DayOfWeek

type DayOfWeek struct {
	Name DayOfWeekName `json:"name"`
}

type DayOfWeekName

type DayOfWeekName string
const (
	DayOfWeekNameFriday    DayOfWeekName = "Friday"
	DayOfWeekNameMonday    DayOfWeekName = "Monday"
	DayOfWeekNameSaturday  DayOfWeekName = "Saturday"
	DayOfWeekNameSunday    DayOfWeekName = "Sunday"
	DayOfWeekNameThursday  DayOfWeekName = "Thursday"
	DayOfWeekNameTuesday   DayOfWeekName = "Tuesday"
	DayOfWeekNameWednesday DayOfWeekName = "Wednesday"
)

func (*DayOfWeekName) UnmarshalJSON

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

type DeleteOperationResponse

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

type EstimatedPatchingTime

type EstimatedPatchingTime struct {
	EstimatedDbServerPatchingTime        *int64 `json:"estimatedDbServerPatchingTime,omitempty"`
	EstimatedNetworkSwitchesPatchingTime *int64 `json:"estimatedNetworkSwitchesPatchingTime,omitempty"`
	EstimatedStorageServerPatchingTime   *int64 `json:"estimatedStorageServerPatchingTime,omitempty"`
	TotalEstimatedPatchingTime           *int64 `json:"totalEstimatedPatchingTime,omitempty"`
}

type GetOperationResponse

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

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []CloudExadataInfrastructure
}

type ListByResourceGroupCustomPager

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

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]CloudExadataInfrastructure
}

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []CloudExadataInfrastructure
}

type ListBySubscriptionCustomPager

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

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]CloudExadataInfrastructure
}

type MaintenanceWindow

type MaintenanceWindow struct {
	CustomActionTimeoutInMins    *int64        `json:"customActionTimeoutInMins,omitempty"`
	DaysOfWeek                   *[]DayOfWeek  `json:"daysOfWeek,omitempty"`
	HoursOfDay                   *[]int64      `json:"hoursOfDay,omitempty"`
	IsCustomActionTimeoutEnabled *bool         `json:"isCustomActionTimeoutEnabled,omitempty"`
	IsMonthlyPatchingEnabled     *bool         `json:"isMonthlyPatchingEnabled,omitempty"`
	LeadTimeInWeeks              *int64        `json:"leadTimeInWeeks,omitempty"`
	Months                       *[]Month      `json:"months,omitempty"`
	PatchingMode                 *PatchingMode `json:"patchingMode,omitempty"`
	Preference                   *Preference   `json:"preference,omitempty"`
	WeeksOfMonth                 *[]int64      `json:"weeksOfMonth,omitempty"`
}

type Month

type Month struct {
	Name MonthName `json:"name"`
}

type MonthName

type MonthName string
const (
	MonthNameApril     MonthName = "April"
	MonthNameAugust    MonthName = "August"
	MonthNameDecember  MonthName = "December"
	MonthNameFebruary  MonthName = "February"
	MonthNameJanuary   MonthName = "January"
	MonthNameJuly      MonthName = "July"
	MonthNameJune      MonthName = "June"
	MonthNameMarch     MonthName = "March"
	MonthNameMay       MonthName = "May"
	MonthNameNovember  MonthName = "November"
	MonthNameOctober   MonthName = "October"
	MonthNameSeptember MonthName = "September"
)

func (*MonthName) UnmarshalJSON

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

type PatchingMode

type PatchingMode string
const (
	PatchingModeNonRolling PatchingMode = "NonRolling"
	PatchingModeRolling    PatchingMode = "Rolling"
)

func (*PatchingMode) UnmarshalJSON

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

type Preference

type Preference string
const (
	PreferenceCustomPreference Preference = "CustomPreference"
	PreferenceNoPreference     Preference = "NoPreference"
)

func (*Preference) UnmarshalJSON

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CloudExadataInfrastructure
}

Jump to

Keyboard shortcuts

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