dbservers

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: 14 Imported by: 1

README

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

The dbservers 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/dbservers"

Client Initialization

client := dbservers.NewDbServersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DbServersClient.Get

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

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: DbServersClient.ListByCloudExadataInfrastructure

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

// alternatively `client.ListByCloudExadataInfrastructure(ctx, id)` can be used to do batched pagination
items, err := client.ListByCloudExadataInfrastructureComplete(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 PossibleValuesForDbServerPatchingStatus

func PossibleValuesForDbServerPatchingStatus() []string

func PossibleValuesForDbServerProvisioningState

func PossibleValuesForDbServerProvisioningState() []string

func PossibleValuesForResourceProvisioningState

func PossibleValuesForResourceProvisioningState() []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

func ValidateDbServerID

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

ValidateDbServerID checks that 'input' can be parsed as a Db Server ID

Types

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 DbServer

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

type DbServerId

type DbServerId struct {
	SubscriptionId                 string
	ResourceGroupName              string
	CloudExadataInfrastructureName string
	DbServerName                   string
}

DbServerId is a struct representing the Resource ID for a Db Server

func NewDbServerID

func NewDbServerID(subscriptionId string, resourceGroupName string, cloudExadataInfrastructureName string, dbServerName string) DbServerId

NewDbServerID returns a new DbServerId struct

func ParseDbServerID

func ParseDbServerID(input string) (*DbServerId, error)

ParseDbServerID parses 'input' into a DbServerId

func ParseDbServerIDInsensitively

func ParseDbServerIDInsensitively(input string) (*DbServerId, error)

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

func (*DbServerId) FromParseResult

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

func (DbServerId) ID

func (id DbServerId) ID() string

ID returns the formatted Db Server ID

func (DbServerId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Db Server ID

func (DbServerId) String

func (id DbServerId) String() string

String returns a human-readable description of this Db Server ID

type DbServerOperationPredicate

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

func (DbServerOperationPredicate) Matches

func (p DbServerOperationPredicate) Matches(input DbServer) bool

type DbServerPatchingDetails

type DbServerPatchingDetails struct {
	EstimatedPatchDuration *int64                  `json:"estimatedPatchDuration,omitempty"`
	PatchingStatus         *DbServerPatchingStatus `json:"patchingStatus,omitempty"`
	TimePatchingEnded      *string                 `json:"timePatchingEnded,omitempty"`
	TimePatchingStarted    *string                 `json:"timePatchingStarted,omitempty"`
}

func (*DbServerPatchingDetails) GetTimePatchingEndedAsTime

func (o *DbServerPatchingDetails) GetTimePatchingEndedAsTime() (*time.Time, error)

func (*DbServerPatchingDetails) GetTimePatchingStartedAsTime

func (o *DbServerPatchingDetails) GetTimePatchingStartedAsTime() (*time.Time, error)

func (*DbServerPatchingDetails) SetTimePatchingEndedAsTime

func (o *DbServerPatchingDetails) SetTimePatchingEndedAsTime(input time.Time)

func (*DbServerPatchingDetails) SetTimePatchingStartedAsTime

func (o *DbServerPatchingDetails) SetTimePatchingStartedAsTime(input time.Time)

type DbServerPatchingStatus

type DbServerPatchingStatus string
const (
	DbServerPatchingStatusComplete              DbServerPatchingStatus = "Complete"
	DbServerPatchingStatusFailed                DbServerPatchingStatus = "Failed"
	DbServerPatchingStatusMaintenanceInProgress DbServerPatchingStatus = "MaintenanceInProgress"
	DbServerPatchingStatusScheduled             DbServerPatchingStatus = "Scheduled"
)

func (*DbServerPatchingStatus) UnmarshalJSON

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

type DbServerProperties

type DbServerProperties struct {
	AutonomousVMClusterIds      *[]string                  `json:"autonomousVmClusterIds,omitempty"`
	AutonomousVirtualMachineIds *[]string                  `json:"autonomousVirtualMachineIds,omitempty"`
	CompartmentId               *string                    `json:"compartmentId,omitempty"`
	CpuCoreCount                *int64                     `json:"cpuCoreCount,omitempty"`
	DbNodeIds                   *[]string                  `json:"dbNodeIds,omitempty"`
	DbNodeStorageSizeInGbs      *int64                     `json:"dbNodeStorageSizeInGbs,omitempty"`
	DbServerPatchingDetails     *DbServerPatchingDetails   `json:"dbServerPatchingDetails,omitempty"`
	DisplayName                 *string                    `json:"displayName,omitempty"`
	ExadataInfrastructureId     *string                    `json:"exadataInfrastructureId,omitempty"`
	LifecycleDetails            *string                    `json:"lifecycleDetails,omitempty"`
	LifecycleState              *DbServerProvisioningState `json:"lifecycleState,omitempty"`
	MaxCPUCount                 *int64                     `json:"maxCpuCount,omitempty"`
	MaxDbNodeStorageInGbs       *int64                     `json:"maxDbNodeStorageInGbs,omitempty"`
	MaxMemoryInGbs              *int64                     `json:"maxMemoryInGbs,omitempty"`
	MemorySizeInGbs             *int64                     `json:"memorySizeInGbs,omitempty"`
	Ocid                        *string                    `json:"ocid,omitempty"`
	ProvisioningState           *ResourceProvisioningState `json:"provisioningState,omitempty"`
	Shape                       *string                    `json:"shape,omitempty"`
	TimeCreated                 *string                    `json:"timeCreated,omitempty"`
	VMClusterIds                *[]string                  `json:"vmClusterIds,omitempty"`
}

func (*DbServerProperties) GetTimeCreatedAsTime

func (o *DbServerProperties) GetTimeCreatedAsTime() (*time.Time, error)

func (*DbServerProperties) SetTimeCreatedAsTime

func (o *DbServerProperties) SetTimeCreatedAsTime(input time.Time)

type DbServerProvisioningState

type DbServerProvisioningState string
const (
	DbServerProvisioningStateAvailable             DbServerProvisioningState = "Available"
	DbServerProvisioningStateCreating              DbServerProvisioningState = "Creating"
	DbServerProvisioningStateDeleted               DbServerProvisioningState = "Deleted"
	DbServerProvisioningStateDeleting              DbServerProvisioningState = "Deleting"
	DbServerProvisioningStateMaintenanceInProgress DbServerProvisioningState = "MaintenanceInProgress"
	DbServerProvisioningStateUnavailable           DbServerProvisioningState = "Unavailable"
)

func (*DbServerProvisioningState) UnmarshalJSON

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

type DbServersClient

type DbServersClient struct {
	Client *resourcemanager.Client
}

func NewDbServersClientWithBaseURI

func NewDbServersClientWithBaseURI(sdkApi sdkEnv.Api) (*DbServersClient, error)

func (DbServersClient) Get

func (c DbServersClient) Get(ctx context.Context, id DbServerId) (result GetOperationResponse, err error)

Get ...

func (DbServersClient) ListByCloudExadataInfrastructure

ListByCloudExadataInfrastructure ...

func (DbServersClient) ListByCloudExadataInfrastructureComplete

ListByCloudExadataInfrastructureComplete retrieves all the results into a single object

func (DbServersClient) ListByCloudExadataInfrastructureCompleteMatchingPredicate

func (c DbServersClient) ListByCloudExadataInfrastructureCompleteMatchingPredicate(ctx context.Context, id CloudExadataInfrastructureId, predicate DbServerOperationPredicate) (result ListByCloudExadataInfrastructureCompleteResult, err error)

ListByCloudExadataInfrastructureCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetOperationResponse

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

type ListByCloudExadataInfrastructureCompleteResult

type ListByCloudExadataInfrastructureCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DbServer
}

type ListByCloudExadataInfrastructureCustomPager

type ListByCloudExadataInfrastructureCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type ListByCloudExadataInfrastructureOperationResponse

type ListByCloudExadataInfrastructureOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DbServer
}

type ResourceProvisioningState

type ResourceProvisioningState string
const (
	ResourceProvisioningStateCanceled  ResourceProvisioningState = "Canceled"
	ResourceProvisioningStateFailed    ResourceProvisioningState = "Failed"
	ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded"
)

func (*ResourceProvisioningState) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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