armoracledatabase

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 14 Imported by: 0

README

Azure Oracle Database Module for Go

PkgGoDev

The armoracledatabase module provides operations for working with Azure Oracle Database.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Oracle Database module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Oracle Database. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Oracle Database module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armoracledatabase.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armoracledatabase.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewAutonomousDatabaseBackupsClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Oracle Database label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType

type ActionType string

ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.

const (
	ActionTypeInternal ActionType = "Internal"
)

func PossibleActionTypeValues

func PossibleActionTypeValues() []ActionType

PossibleActionTypeValues returns the possible values for the ActionType const type.

type ActivationLinks struct {
	// READ-ONLY; Existing Cloud Account Activation Link
	ExistingCloudAccountActivationLink *string

	// READ-ONLY; New Cloud Account Activation Link
	NewCloudAccountActivationLink *string
}

ActivationLinks - Activation Links model

func (ActivationLinks) MarshalJSON

func (a ActivationLinks) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ActivationLinks.

func (*ActivationLinks) UnmarshalJSON

func (a *ActivationLinks) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ActivationLinks.

type AddRemoveDbNode

type AddRemoveDbNode struct {
	// REQUIRED; Db servers ocids
	DbServers []*string
}

AddRemoveDbNode - Add/Remove (Virtual Machine) DbNode model

func (AddRemoveDbNode) MarshalJSON

func (a AddRemoveDbNode) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AddRemoveDbNode.

func (*AddRemoveDbNode) UnmarshalJSON

func (a *AddRemoveDbNode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AddRemoveDbNode.

type AllConnectionStringType

type AllConnectionStringType struct {
	// The High database service provides the highest level of resources to each SQL statement resulting in the highest performance,
	// but supports the fewest number of concurrent SQL statements.
	High *string

	// The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent
	// SQL statements.
	Low *string

	// The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level
	// of performance, but supports more concurrent SQL statements.
	Medium *string
}

AllConnectionStringType - The connection string profile to allow clients to group, filter and select connection string values based on structured metadata.

func (AllConnectionStringType) MarshalJSON

func (a AllConnectionStringType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AllConnectionStringType.

func (*AllConnectionStringType) UnmarshalJSON

func (a *AllConnectionStringType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AllConnectionStringType.

type ApexDetailsType

type ApexDetailsType struct {
	// The Oracle APEX Application Development version.
	ApexVersion *string

	// The Oracle REST Data Services (ORDS) version.
	OrdsVersion *string
}

ApexDetailsType - Information about Oracle APEX Application Development.

func (ApexDetailsType) MarshalJSON

func (a ApexDetailsType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ApexDetailsType.

func (*ApexDetailsType) UnmarshalJSON

func (a *ApexDetailsType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ApexDetailsType.

type AutonomousDatabase

type AutonomousDatabase struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// The resource-specific properties for this resource.
	Properties AutonomousDatabaseBasePropertiesClassification

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

AutonomousDatabase - Autonomous Database resource model.

func (AutonomousDatabase) MarshalJSON

func (a AutonomousDatabase) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabase.

func (*AutonomousDatabase) UnmarshalJSON

func (a *AutonomousDatabase) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabase.

type AutonomousDatabaseBackup

type AutonomousDatabaseBackup struct {
	// The resource-specific properties for this resource.
	Properties *AutonomousDatabaseBackupProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

AutonomousDatabaseBackup resource definition

func (AutonomousDatabaseBackup) MarshalJSON

func (a AutonomousDatabaseBackup) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseBackup.

func (*AutonomousDatabaseBackup) UnmarshalJSON

func (a *AutonomousDatabaseBackup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseBackup.

type AutonomousDatabaseBackupLifecycleState

type AutonomousDatabaseBackupLifecycleState string

AutonomousDatabaseBackupLifecycleState - Autonomous database backup lifecycle state enum

const (
	// AutonomousDatabaseBackupLifecycleStateActive - AutonomousDatabase backup is active
	AutonomousDatabaseBackupLifecycleStateActive AutonomousDatabaseBackupLifecycleState = "Active"
	// AutonomousDatabaseBackupLifecycleStateCreating - AutonomousDatabase backup is creating
	AutonomousDatabaseBackupLifecycleStateCreating AutonomousDatabaseBackupLifecycleState = "Creating"
	// AutonomousDatabaseBackupLifecycleStateDeleting - AutonomousDatabase backup is deleting
	AutonomousDatabaseBackupLifecycleStateDeleting AutonomousDatabaseBackupLifecycleState = "Deleting"
	// AutonomousDatabaseBackupLifecycleStateFailed - AutonomousDatabase backup is failed
	AutonomousDatabaseBackupLifecycleStateFailed AutonomousDatabaseBackupLifecycleState = "Failed"
	// AutonomousDatabaseBackupLifecycleStateUpdating - AutonomousDatabase backup is updating
	AutonomousDatabaseBackupLifecycleStateUpdating AutonomousDatabaseBackupLifecycleState = "Updating"
)

func PossibleAutonomousDatabaseBackupLifecycleStateValues

func PossibleAutonomousDatabaseBackupLifecycleStateValues() []AutonomousDatabaseBackupLifecycleState

PossibleAutonomousDatabaseBackupLifecycleStateValues returns the possible values for the AutonomousDatabaseBackupLifecycleState const type.

type AutonomousDatabaseBackupListResult

type AutonomousDatabaseBackupListResult struct {
	// REQUIRED; The AutonomousDatabaseBackup items on this page
	Value []*AutonomousDatabaseBackup

	// The link to the next page of items
	NextLink *string
}

AutonomousDatabaseBackupListResult - The response of a AutonomousDatabaseBackup list operation.

func (AutonomousDatabaseBackupListResult) MarshalJSON

func (a AutonomousDatabaseBackupListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseBackupListResult.

func (*AutonomousDatabaseBackupListResult) UnmarshalJSON

func (a *AutonomousDatabaseBackupListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseBackupListResult.

type AutonomousDatabaseBackupProperties

type AutonomousDatabaseBackupProperties struct {
	// The user-friendly name for the backup. The name does not have to be unique.
	DisplayName *string

	// Retention period, in days, for long-term backups.
	RetentionPeriodInDays *int32

	// READ-ONLY; The OCID of the Autonomous Database.
	AutonomousDatabaseOcid *string

	// READ-ONLY; The type of backup.
	BackupType *AutonomousDatabaseBackupType

	// READ-ONLY; The size of the database in terabytes at the time the backup was taken.
	DatabaseSizeInTbs *float64

	// READ-ONLY; A valid Oracle Database version for Autonomous Database.
	DbVersion *string

	// READ-ONLY; Indicates whether the backup is user-initiated or automatic.
	IsAutomatic *bool

	// READ-ONLY; Indicates whether the backup can be used to restore the associated Autonomous Database.
	IsRestorable *bool

	// READ-ONLY; Additional information about the current lifecycle state.
	LifecycleDetails *string

	// READ-ONLY; The current state of the backup.
	LifecycleState *AutonomousDatabaseBackupLifecycleState

	// READ-ONLY; The OCID of the Autonomous Database backup.
	Ocid *string

	// READ-ONLY; Azure resource provisioning state.
	ProvisioningState *AzureResourceProvisioningState

	// READ-ONLY; The backup size in terabytes (TB).
	SizeInTbs *float64

	// READ-ONLY; Timestamp until when the backup will be available.
	TimeAvailableTil *time.Time

	// READ-ONLY; The date and time the backup completed.
	TimeEnded *string

	// READ-ONLY; The date and time the backup started.
	TimeStarted *string
}

AutonomousDatabaseBackupProperties - AutonomousDatabaseBackup resource model

func (AutonomousDatabaseBackupProperties) MarshalJSON

func (a AutonomousDatabaseBackupProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseBackupProperties.

func (*AutonomousDatabaseBackupProperties) UnmarshalJSON

func (a *AutonomousDatabaseBackupProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseBackupProperties.

type AutonomousDatabaseBackupType

type AutonomousDatabaseBackupType string

AutonomousDatabaseBackupType - Autonomous database backup type enum

const (
	// AutonomousDatabaseBackupTypeFull - Full backup
	AutonomousDatabaseBackupTypeFull AutonomousDatabaseBackupType = "Full"
	// AutonomousDatabaseBackupTypeIncremental - Incremental backup
	AutonomousDatabaseBackupTypeIncremental AutonomousDatabaseBackupType = "Incremental"
	// AutonomousDatabaseBackupTypeLongTerm - LongTerm backup
	AutonomousDatabaseBackupTypeLongTerm AutonomousDatabaseBackupType = "LongTerm"
)

func PossibleAutonomousDatabaseBackupTypeValues

func PossibleAutonomousDatabaseBackupTypeValues() []AutonomousDatabaseBackupType

PossibleAutonomousDatabaseBackupTypeValues returns the possible values for the AutonomousDatabaseBackupType const type.

type AutonomousDatabaseBackupUpdate

type AutonomousDatabaseBackupUpdate struct {
	// The updatable properties of the AutonomousDatabaseBackup.
	Properties *AutonomousDatabaseBackupUpdateProperties
}

AutonomousDatabaseBackupUpdate - The type used for update operations of the AutonomousDatabaseBackup.

func (AutonomousDatabaseBackupUpdate) MarshalJSON

func (a AutonomousDatabaseBackupUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseBackupUpdate.

func (*AutonomousDatabaseBackupUpdate) UnmarshalJSON

func (a *AutonomousDatabaseBackupUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseBackupUpdate.

type AutonomousDatabaseBackupUpdateProperties

type AutonomousDatabaseBackupUpdateProperties struct {
	// Retention period, in days, for long-term backups.
	RetentionPeriodInDays *int32
}

AutonomousDatabaseBackupUpdateProperties - The updatable properties of the AutonomousDatabaseBackup.

func (AutonomousDatabaseBackupUpdateProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseBackupUpdateProperties.

func (*AutonomousDatabaseBackupUpdateProperties) UnmarshalJSON

func (a *AutonomousDatabaseBackupUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseBackupUpdateProperties.

type AutonomousDatabaseBackupsClient

type AutonomousDatabaseBackupsClient struct {
	// contains filtered or unexported fields
}

AutonomousDatabaseBackupsClient contains the methods for the AutonomousDatabaseBackups group. Don't use this type directly, use NewAutonomousDatabaseBackupsClient() instead.

func NewAutonomousDatabaseBackupsClient

func NewAutonomousDatabaseBackupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AutonomousDatabaseBackupsClient, error)

NewAutonomousDatabaseBackupsClient creates a new instance of AutonomousDatabaseBackupsClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*AutonomousDatabaseBackupsClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a AutonomousDatabaseBackup If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • adbbackupid - AutonomousDatabaseBackup id
  • resource - Resource create parameters.
  • options - AutonomousDatabaseBackupsClientBeginCreateOrUpdateOptions contains the optional parameters for the AutonomousDatabaseBackupsClient.BeginCreateOrUpdate method.
Example (AutonomousDatabaseBackupsCreateOrUpdate)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAutonomousDatabaseBackupsClient().BeginCreateOrUpdate(ctx, "rg000", "databasedb1", "1711644130", armoracledatabase.AutonomousDatabaseBackup{
		Properties: &armoracledatabase.AutonomousDatabaseBackupProperties{
			AutonomousDatabaseOcid: to.Ptr("ocid1.autonomousdatabase.oc1..aaaaa3klq"),
			DisplayName:            to.Ptr("Nightly Backup"),
			RetentionPeriodInDays:  to.Ptr[int32](365),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabaseBackup = armoracledatabase.AutonomousDatabaseBackup{
	// 	Type: to.Ptr("Oracle.Database/autonomousDatabases/autonomousDatabaseBackups"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130"),
	// 	Properties: &armoracledatabase.AutonomousDatabaseBackupProperties{
	// 		AutonomousDatabaseOcid: to.Ptr("ocid1.autonomousdatabase.oc1..aaaaa3klq"),
	// 		BackupType: to.Ptr(armoracledatabase.AutonomousDatabaseBackupTypeFull),
	// 		DatabaseSizeInTbs: to.Ptr[float64](2),
	// 		DbVersion: to.Ptr("19.6.0.0"),
	// 		DisplayName: to.Ptr("Nightly Backup"),
	// 		IsAutomatic: to.Ptr(true),
	// 		IsRestorable: to.Ptr(true),
	// 		LifecycleDetails: to.Ptr("Backup completed successfully"),
	// 		LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseBackupLifecycleStateActive),
	// 		Ocid: to.Ptr("ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		RetentionPeriodInDays: to.Ptr[int32](365),
	// 		SizeInTbs: to.Ptr[float64](2),
	// 		TimeAvailableTil: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-01-09T20:44:09.466Z"); return t}()),
	// 		TimeEnded: to.Ptr("2024-01-09T20:44:09.466Z"),
	// 		TimeStarted: to.Ptr("2024-01-09T19:44:09.466Z"),
	// 	},
	// }
}
Output:

func (*AutonomousDatabaseBackupsClient) BeginDelete

BeginDelete - Delete a AutonomousDatabaseBackup If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • adbbackupid - AutonomousDatabaseBackup id
  • options - AutonomousDatabaseBackupsClientBeginDeleteOptions contains the optional parameters for the AutonomousDatabaseBackupsClient.BeginDelete method.
Example (AutonomousDatabaseBackupsDelete)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAutonomousDatabaseBackupsClient().BeginDelete(ctx, "rg000", "databasedb1", "1711644130", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*AutonomousDatabaseBackupsClient) BeginUpdate

BeginUpdate - Update a AutonomousDatabaseBackup If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • adbbackupid - AutonomousDatabaseBackup id
  • properties - The resource properties to be updated.
  • options - AutonomousDatabaseBackupsClientBeginUpdateOptions contains the optional parameters for the AutonomousDatabaseBackupsClient.BeginUpdate method.
Example (AutonomousDatabaseBackupsUpdate)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_patch.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAutonomousDatabaseBackupsClient().BeginUpdate(ctx, "rg000", "databasedb1", "1711644130", armoracledatabase.AutonomousDatabaseBackupUpdate{}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabaseBackup = armoracledatabase.AutonomousDatabaseBackup{
	// 	Type: to.Ptr("Oracle.Database/autonomousDatabases/autonomousDatabaseBackups"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130"),
	// 	Properties: &armoracledatabase.AutonomousDatabaseBackupProperties{
	// 		AutonomousDatabaseOcid: to.Ptr("ocid1.autonomousdatabase.oc1..aaaaa3klq"),
	// 		BackupType: to.Ptr(armoracledatabase.AutonomousDatabaseBackupTypeFull),
	// 		DatabaseSizeInTbs: to.Ptr[float64](2),
	// 		DbVersion: to.Ptr("19.6.0.0"),
	// 		DisplayName: to.Ptr("Nightly Backup"),
	// 		IsAutomatic: to.Ptr(true),
	// 		IsRestorable: to.Ptr(true),
	// 		LifecycleDetails: to.Ptr("Backup updated successfully"),
	// 		LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseBackupLifecycleStateActive),
	// 		Ocid: to.Ptr("ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		RetentionPeriodInDays: to.Ptr[int32](400),
	// 		SizeInTbs: to.Ptr[float64](2),
	// 	},
	// }
}
Output:

func (*AutonomousDatabaseBackupsClient) Get

func (client *AutonomousDatabaseBackupsClient) Get(ctx context.Context, resourceGroupName string, autonomousdatabasename string, adbbackupid string, options *AutonomousDatabaseBackupsClientGetOptions) (AutonomousDatabaseBackupsClientGetResponse, error)

Get - Get a AutonomousDatabaseBackup If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • adbbackupid - AutonomousDatabaseBackup id
  • options - AutonomousDatabaseBackupsClientGetOptions contains the optional parameters for the AutonomousDatabaseBackupsClient.Get method.
Example (AutonomousDatabaseBackupsGet)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewAutonomousDatabaseBackupsClient().Get(ctx, "rg000", "databasedb1", "1711644130", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabaseBackup = armoracledatabase.AutonomousDatabaseBackup{
	// 	Type: to.Ptr("Oracle.Database/autonomousDatabases/autonomousDatabaseBackups"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130"),
	// 	Properties: &armoracledatabase.AutonomousDatabaseBackupProperties{
	// 		AutonomousDatabaseOcid: to.Ptr("ocid1.autonomousdatabase.oc1..aaaaa3klq"),
	// 		BackupType: to.Ptr(armoracledatabase.AutonomousDatabaseBackupTypeFull),
	// 		DatabaseSizeInTbs: to.Ptr[float64](2),
	// 		DbVersion: to.Ptr("19.6.0.0"),
	// 		DisplayName: to.Ptr("Nightly Backup"),
	// 		IsAutomatic: to.Ptr(true),
	// 		IsRestorable: to.Ptr(true),
	// 		LifecycleDetails: to.Ptr("Backup completed successfully"),
	// 		LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseBackupLifecycleStateActive),
	// 		Ocid: to.Ptr("ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		RetentionPeriodInDays: to.Ptr[int32](365),
	// 		SizeInTbs: to.Ptr[float64](2),
	// 		TimeAvailableTil: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-01-09T20:44:09.466Z"); return t}()),
	// 		TimeEnded: to.Ptr("2024-01-09T20:44:09.466Z"),
	// 		TimeStarted: to.Ptr("2024-01-09T19:44:09.466Z"),
	// 	},
	// }
}
Output:

func (*AutonomousDatabaseBackupsClient) NewListByAutonomousDatabasePager

NewListByAutonomousDatabasePager - List AutonomousDatabaseBackup resources by AutonomousDatabase

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • options - AutonomousDatabaseBackupsClientListByAutonomousDatabaseOptions contains the optional parameters for the AutonomousDatabaseBackupsClient.NewListByAutonomousDatabasePager method.
Example (AutonomousDatabaseBackupsListByAutonomousDatabase)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_listByParent.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAutonomousDatabaseBackupsClient().NewListByAutonomousDatabasePager("rg000", "databasedb1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.AutonomousDatabaseBackupListResult = armoracledatabase.AutonomousDatabaseBackupListResult{
		// 	Value: []*armoracledatabase.AutonomousDatabaseBackup{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/autonomousDatabases/autonomousDatabaseBackups"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130"),
		// 			Properties: &armoracledatabase.AutonomousDatabaseBackupProperties{
		// 				AutonomousDatabaseOcid: to.Ptr("ocid1.autonomousdatabase.oc1..aaaaa3klq"),
		// 				BackupType: to.Ptr(armoracledatabase.AutonomousDatabaseBackupTypeFull),
		// 				DatabaseSizeInTbs: to.Ptr[float64](2),
		// 				DbVersion: to.Ptr("19.6.0.0"),
		// 				DisplayName: to.Ptr("Nightly Backup"),
		// 				IsAutomatic: to.Ptr(true),
		// 				IsRestorable: to.Ptr(true),
		// 				LifecycleDetails: to.Ptr("Backup completed successfully"),
		// 				LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseBackupLifecycleStateActive),
		// 				Ocid: to.Ptr("ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj"),
		// 				ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
		// 				RetentionPeriodInDays: to.Ptr[int32](365),
		// 				SizeInTbs: to.Ptr[float64](2),
		// 				TimeAvailableTil: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-01-09T20:44:09.466Z"); return t}()),
		// 				TimeEnded: to.Ptr("2024-01-09T20:44:09.466Z"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type AutonomousDatabaseBackupsClientBeginCreateOrUpdateOptions

type AutonomousDatabaseBackupsClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AutonomousDatabaseBackupsClientBeginCreateOrUpdateOptions contains the optional parameters for the AutonomousDatabaseBackupsClient.BeginCreateOrUpdate method.

type AutonomousDatabaseBackupsClientBeginDeleteOptions

type AutonomousDatabaseBackupsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AutonomousDatabaseBackupsClientBeginDeleteOptions contains the optional parameters for the AutonomousDatabaseBackupsClient.BeginDelete method.

type AutonomousDatabaseBackupsClientBeginUpdateOptions

type AutonomousDatabaseBackupsClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AutonomousDatabaseBackupsClientBeginUpdateOptions contains the optional parameters for the AutonomousDatabaseBackupsClient.BeginUpdate method.

type AutonomousDatabaseBackupsClientCreateOrUpdateResponse

type AutonomousDatabaseBackupsClientCreateOrUpdateResponse struct {
	// AutonomousDatabaseBackup resource definition
	AutonomousDatabaseBackup
}

AutonomousDatabaseBackupsClientCreateOrUpdateResponse contains the response from method AutonomousDatabaseBackupsClient.BeginCreateOrUpdate.

type AutonomousDatabaseBackupsClientDeleteResponse

type AutonomousDatabaseBackupsClientDeleteResponse struct {
}

AutonomousDatabaseBackupsClientDeleteResponse contains the response from method AutonomousDatabaseBackupsClient.BeginDelete.

type AutonomousDatabaseBackupsClientGetOptions

type AutonomousDatabaseBackupsClientGetOptions struct {
}

AutonomousDatabaseBackupsClientGetOptions contains the optional parameters for the AutonomousDatabaseBackupsClient.Get method.

type AutonomousDatabaseBackupsClientGetResponse

type AutonomousDatabaseBackupsClientGetResponse struct {
	// AutonomousDatabaseBackup resource definition
	AutonomousDatabaseBackup
}

AutonomousDatabaseBackupsClientGetResponse contains the response from method AutonomousDatabaseBackupsClient.Get.

type AutonomousDatabaseBackupsClientListByAutonomousDatabaseOptions

type AutonomousDatabaseBackupsClientListByAutonomousDatabaseOptions struct {
}

AutonomousDatabaseBackupsClientListByAutonomousDatabaseOptions contains the optional parameters for the AutonomousDatabaseBackupsClient.NewListByAutonomousDatabasePager method.

type AutonomousDatabaseBackupsClientListByAutonomousDatabaseResponse

type AutonomousDatabaseBackupsClientListByAutonomousDatabaseResponse struct {
	// The response of a AutonomousDatabaseBackup list operation.
	AutonomousDatabaseBackupListResult
}

AutonomousDatabaseBackupsClientListByAutonomousDatabaseResponse contains the response from method AutonomousDatabaseBackupsClient.NewListByAutonomousDatabasePager.

type AutonomousDatabaseBackupsClientUpdateResponse

type AutonomousDatabaseBackupsClientUpdateResponse struct {
	// AutonomousDatabaseBackup resource definition
	AutonomousDatabaseBackup
}

AutonomousDatabaseBackupsClientUpdateResponse contains the response from method AutonomousDatabaseBackupsClient.BeginUpdate.

type AutonomousDatabaseBaseProperties

type AutonomousDatabaseBaseProperties struct {
	// REQUIRED; Database type to be created.
	DataBaseType *DataBaseType

	// Admin password.
	AdminPassword *string

	// Autonomous Database ID
	AutonomousDatabaseID *string

	// The maintenance schedule type of the Autonomous Database Serverless.
	AutonomousMaintenanceScheduleType *AutonomousMaintenanceScheduleType

	// Retention period, in days, for long-term backups
	BackupRetentionPeriodInDays *int32

	// The number of CPU cores to be made available to the database.
	CPUCoreCount *int32

	// The character set for the autonomous database.
	CharacterSet *string

	// The compute amount (CPUs) available to the database.
	ComputeCount *float32

	// The compute model of the Autonomous Database.
	ComputeModel *ComputeModel

	// Customer Contacts.
	CustomerContacts []*CustomerContact

	// The size, in gigabytes, of the data volume that will be created and attached to the database.
	DataStorageSizeInGbs *int32

	// The quantity of data in the database, in terabytes.
	DataStorageSizeInTbs *int32

	// The Oracle Database Edition that applies to the Autonomous databases.
	DatabaseEdition *DatabaseEditionType

	// A valid Oracle Database version for Autonomous Database.
	DbVersion *string

	// The Autonomous Database workload type
	DbWorkload *WorkloadType

	// The user-friendly name for the Autonomous Database.
	DisplayName *string

	// Indicates if auto scaling is enabled for the Autonomous Database CPU core count.
	IsAutoScalingEnabled *bool

	// Indicates if auto scaling is enabled for the Autonomous Database storage.
	IsAutoScalingForStorageEnabled *bool

	// Indicates whether the Autonomous Database has local or called in-region Data Guard enabled.
	IsLocalDataGuardEnabled *bool

	// Specifies if the Autonomous Database requires mTLS connections.
	IsMtlsConnectionRequired *bool

	// Specifies if the Autonomous Database preview version is being provisioned.
	IsPreviewVersionWithServiceTermsAccepted *bool

	// The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED.
	LicenseModel *LicenseModel

	// Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover
	// will be triggered when necessary for a Local Autonomous Data Guard
	LocalAdgAutoFailoverMaxDataLossLimit *int32

	// Details for the long-term backup schedule.
	LongTermBackupSchedule *LongTermBackUpScheduleDetails

	// The character set for the Autonomous Database.
	NcharacterSet *string

	// Indicates the Autonomous Database mode.
	OpenMode *OpenModeType

	// The database OCID of the Disaster Recovery peer database, which is located in a different region from the current peer
	// database.
	PeerDbID *string

	// The Autonomous Database permission level.
	PermissionLevel *PermissionLevelType

	// The private endpoint Ip address for the resource.
	PrivateEndpointIP *string

	// The resource's private endpoint label.
	PrivateEndpointLabel *string

	// The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
	Role *RoleType

	// The list of scheduled operations.
	ScheduledOperations *ScheduledOperationsType

	// Client subnet
	SubnetID *string

	// VNET for network connectivity
	VnetID *string

	// The client IP access control list (ACL). This is an array of CIDR notations and/or IP addresses. Values should be separate
	// strings, separated by commas. Example: ['1.1.1.1','1.1.1.0/24','1.1.2.25']
	WhitelistedIPs []*string

	// READ-ONLY; The current amount of storage in use for user and system data, in terabytes (TB).
	ActualUsedDataStorageSizeInTbs *float64

	// READ-ONLY; The amount of storage currently allocated for the database tables and billed for, rounded up.
	AllocatedStorageSizeInTbs *float64

	// READ-ONLY; Information about Oracle APEX Application Development.
	ApexDetails *ApexDetailsType

	// READ-ONLY; List of Oracle Database versions available for a database upgrade. If there are no version upgrades available,
	// this list is empty.
	AvailableUpgradeVersions []*string

	// READ-ONLY; The connection string used to connect to the Autonomous Database.
	ConnectionStrings *ConnectionStringType

	// READ-ONLY; The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute
	// instance within your VCN or that has a direct connection to your VCN.
	ConnectionUrls *ConnectionURLType

	// READ-ONLY; Status of the Data Safe registration for this Autonomous Database.
	DataSafeStatus *DataSafeStatusType

	// READ-ONLY; Indicates the number of seconds of data loss for a Data Guard failover.
	FailedDataRecoveryInSeconds *int32

	// READ-ONLY; The area assigned to In-Memory tables in Autonomous Database.
	InMemoryAreaInGbs *int32

	// READ-ONLY; Indicates if the Autonomous Database version is a preview version.
	IsPreview *bool

	// READ-ONLY; Indicates whether the Autonomous Database has Cross Region Data Guard enabled.
	IsRemoteDataGuardEnabled *bool

	// READ-ONLY; Additional information about the current lifecycle state.
	LifecycleDetails *string

	// READ-ONLY; Views lifecycleState
	LifecycleState *AutonomousDatabaseLifecycleState

	// READ-ONLY; Indicates the local disaster recovery (DR) type of the Autonomous Database Serverless instance.Autonomous Data
	// Guard (ADG) DR type provides business critical DR with a faster recovery time objective
	// (RTO) during failover or switchover.Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover.
	LocalDisasterRecoveryType *DisasterRecoveryType

	// READ-ONLY; Local Autonomous Disaster Recovery standby database details.
	LocalStandbyDb *AutonomousDatabaseStandbySummary

	// READ-ONLY; The amount of memory (in GBs) enabled per ECPU or OCPU.
	MemoryPerOracleComputeUnitInGbs *int32

	// READ-ONLY; The date and time when the next long-term backup would be created.
	NextLongTermBackupTimeStamp *time.Time

	// READ-ONLY; HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.
	OciURL *string

	// READ-ONLY; Database ocid
	Ocid *string

	// READ-ONLY; Status of Operations Insights for this Autonomous Database.
	OperationsInsightsStatus *OperationsInsightsStatusType

	// READ-ONLY; The list of OCIDs [https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm] of standby databases
	// located in Autonomous Data Guard remote regions that are associated with the source
	// database. Note that for Autonomous Database Serverless instances, standby databases located in the same region as the source
	// primary database do not have OCIDs.
	PeerDbIDs []*string

	// READ-ONLY; The private endpoint for the resource.
	PrivateEndpoint *string

	// READ-ONLY; An array of CPU values that an Autonomous Database can be scaled to.
	ProvisionableCpus []*int32

	// READ-ONLY; Azure resource provisioning state.
	ProvisioningState *AzureResourceProvisioningState

	// READ-ONLY; The SQL Web Developer URL for the Oracle Autonomous Database.
	SQLWebDeveloperURL *string

	// READ-ONLY; The URL of the Service Console for the Autonomous Database.
	ServiceConsoleURL *string

	// READ-ONLY; The list of regions that support the creation of an Autonomous Database clone or an Autonomous Data Guard standby
	// database.
	SupportedRegionsToCloneTo []*string

	// READ-ONLY; The date and time that the database was created.
	TimeCreated *time.Time

	// READ-ONLY; The date and time the Autonomous Data Guard role was switched for the Autonomous Database.
	TimeDataGuardRoleChanged *string

	// READ-ONLY; The date and time the Always Free database will be automatically deleted because of inactivity.
	TimeDeletionOfFreeAutonomousDatabase *string

	// READ-ONLY; The date and time that Autonomous Data Guard was enabled for an Autonomous Database where the standby was provisioned
	// in the same region as the primary database.
	TimeLocalDataGuardEnabled *string

	// READ-ONLY; The date and time when maintenance will begin.
	TimeMaintenanceBegin *time.Time

	// READ-ONLY; The date and time when maintenance will end.
	TimeMaintenanceEnd *time.Time

	// READ-ONLY; The timestamp of the last failover operation.
	TimeOfLastFailover *string

	// READ-ONLY; The date and time when last refresh happened.
	TimeOfLastRefresh *string

	// READ-ONLY; The refresh point timestamp (UTC).
	TimeOfLastRefreshPoint *string

	// READ-ONLY; The timestamp of the last switchover operation for the Autonomous Database.
	TimeOfLastSwitchover *string

	// READ-ONLY; The date and time the Always Free database will be stopped because of inactivity.
	TimeReclamationOfFreeAutonomousDatabase *string

	// READ-ONLY; The storage space consumed by Autonomous Database in GBs.
	UsedDataStorageSizeInGbs *int32

	// READ-ONLY; The amount of storage that has been used, in terabytes.
	UsedDataStorageSizeInTbs *int32
}

AutonomousDatabaseBaseProperties - Autonomous Database base resource model.

func (*AutonomousDatabaseBaseProperties) GetAutonomousDatabaseBaseProperties

func (a *AutonomousDatabaseBaseProperties) GetAutonomousDatabaseBaseProperties() *AutonomousDatabaseBaseProperties

GetAutonomousDatabaseBaseProperties implements the AutonomousDatabaseBasePropertiesClassification interface for type AutonomousDatabaseBaseProperties.

func (AutonomousDatabaseBaseProperties) MarshalJSON

func (a AutonomousDatabaseBaseProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseBaseProperties.

func (*AutonomousDatabaseBaseProperties) UnmarshalJSON

func (a *AutonomousDatabaseBaseProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseBaseProperties.

type AutonomousDatabaseBasePropertiesClassification

type AutonomousDatabaseBasePropertiesClassification interface {
	// GetAutonomousDatabaseBaseProperties returns the AutonomousDatabaseBaseProperties content of the underlying type.
	GetAutonomousDatabaseBaseProperties() *AutonomousDatabaseBaseProperties
}

AutonomousDatabaseBasePropertiesClassification provides polymorphic access to related types. Call the interface's GetAutonomousDatabaseBaseProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AutonomousDatabaseBaseProperties, *AutonomousDatabaseCloneProperties, *AutonomousDatabaseProperties

type AutonomousDatabaseCharacterSet

type AutonomousDatabaseCharacterSet struct {
	// The resource-specific properties for this resource.
	Properties *AutonomousDatabaseCharacterSetProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

AutonomousDatabaseCharacterSets resource definition

func (AutonomousDatabaseCharacterSet) MarshalJSON

func (a AutonomousDatabaseCharacterSet) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseCharacterSet.

func (*AutonomousDatabaseCharacterSet) UnmarshalJSON

func (a *AutonomousDatabaseCharacterSet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseCharacterSet.

type AutonomousDatabaseCharacterSetListResult

type AutonomousDatabaseCharacterSetListResult struct {
	// REQUIRED; The AutonomousDatabaseCharacterSet items on this page
	Value []*AutonomousDatabaseCharacterSet

	// The link to the next page of items
	NextLink *string
}

AutonomousDatabaseCharacterSetListResult - The response of a AutonomousDatabaseCharacterSet list operation.

func (AutonomousDatabaseCharacterSetListResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseCharacterSetListResult.

func (*AutonomousDatabaseCharacterSetListResult) UnmarshalJSON

func (a *AutonomousDatabaseCharacterSetListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseCharacterSetListResult.

type AutonomousDatabaseCharacterSetProperties

type AutonomousDatabaseCharacterSetProperties struct {
	// READ-ONLY; The Oracle Autonomous Database supported character sets.
	CharacterSet *string
}

AutonomousDatabaseCharacterSetProperties - AutonomousDatabaseCharacterSet resource model

func (AutonomousDatabaseCharacterSetProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseCharacterSetProperties.

func (*AutonomousDatabaseCharacterSetProperties) UnmarshalJSON

func (a *AutonomousDatabaseCharacterSetProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseCharacterSetProperties.

type AutonomousDatabaseCharacterSetsClient

type AutonomousDatabaseCharacterSetsClient struct {
	// contains filtered or unexported fields
}

AutonomousDatabaseCharacterSetsClient contains the methods for the AutonomousDatabaseCharacterSets group. Don't use this type directly, use NewAutonomousDatabaseCharacterSetsClient() instead.

func NewAutonomousDatabaseCharacterSetsClient

func NewAutonomousDatabaseCharacterSetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AutonomousDatabaseCharacterSetsClient, error)

NewAutonomousDatabaseCharacterSetsClient creates a new instance of AutonomousDatabaseCharacterSetsClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*AutonomousDatabaseCharacterSetsClient) Get

Get - Get a AutonomousDatabaseCharacterSet If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • adbscharsetname - AutonomousDatabaseCharacterSet name
  • options - AutonomousDatabaseCharacterSetsClientGetOptions contains the optional parameters for the AutonomousDatabaseCharacterSetsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewAutonomousDatabaseCharacterSetsClient().Get(ctx, "eastus", "DATABASE", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabaseCharacterSet = armoracledatabase.AutonomousDatabaseCharacterSet{
	// 	Type: to.Ptr("Oracle.Database/locations/autonomousDatabaseCharacterSets"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDatabaseCharacterSets/DATABASE"),
	// 	Properties: &armoracledatabase.AutonomousDatabaseCharacterSetProperties{
	// 		CharacterSet: to.Ptr("AL32UTF8"),
	// 	},
	// }
}
Output:

func (*AutonomousDatabaseCharacterSetsClient) NewListByLocationPager

NewListByLocationPager - List AutonomousDatabaseCharacterSet resources by Location

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • options - AutonomousDatabaseCharacterSetsClientListByLocationOptions contains the optional parameters for the AutonomousDatabaseCharacterSetsClient.NewListByLocationPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_listByLocation.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAutonomousDatabaseCharacterSetsClient().NewListByLocationPager("eastus", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.AutonomousDatabaseCharacterSetListResult = armoracledatabase.AutonomousDatabaseCharacterSetListResult{
		// 	Value: []*armoracledatabase.AutonomousDatabaseCharacterSet{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/locations/autonomousDatabaseCharacterSets"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDatabaseCharacterSets/DATABASE"),
		// 			Properties: &armoracledatabase.AutonomousDatabaseCharacterSetProperties{
		// 				CharacterSet: to.Ptr("AL32UTF8"),
		// 			},
		// 		},
		// 		{
		// 			Type: to.Ptr("Oracle.Database/locations/autonomousDatabaseCharacterSets"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDatabaseCharacterSets/DATABASE"),
		// 			Properties: &armoracledatabase.AutonomousDatabaseCharacterSetProperties{
		// 				CharacterSet: to.Ptr("UTF8"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type AutonomousDatabaseCharacterSetsClientGetOptions

type AutonomousDatabaseCharacterSetsClientGetOptions struct {
}

AutonomousDatabaseCharacterSetsClientGetOptions contains the optional parameters for the AutonomousDatabaseCharacterSetsClient.Get method.

type AutonomousDatabaseCharacterSetsClientGetResponse

type AutonomousDatabaseCharacterSetsClientGetResponse struct {
	// AutonomousDatabaseCharacterSets resource definition
	AutonomousDatabaseCharacterSet
}

AutonomousDatabaseCharacterSetsClientGetResponse contains the response from method AutonomousDatabaseCharacterSetsClient.Get.

type AutonomousDatabaseCharacterSetsClientListByLocationOptions

type AutonomousDatabaseCharacterSetsClientListByLocationOptions struct {
}

AutonomousDatabaseCharacterSetsClientListByLocationOptions contains the optional parameters for the AutonomousDatabaseCharacterSetsClient.NewListByLocationPager method.

type AutonomousDatabaseCharacterSetsClientListByLocationResponse

type AutonomousDatabaseCharacterSetsClientListByLocationResponse struct {
	// The response of a AutonomousDatabaseCharacterSet list operation.
	AutonomousDatabaseCharacterSetListResult
}

AutonomousDatabaseCharacterSetsClientListByLocationResponse contains the response from method AutonomousDatabaseCharacterSetsClient.NewListByLocationPager.

type AutonomousDatabaseCloneProperties

type AutonomousDatabaseCloneProperties struct {
	// REQUIRED; The Autonomous Database clone type.
	CloneType *CloneType

	// REQUIRED; Database type to be created.
	DataBaseType *DataBaseType

	// REQUIRED; The Azure ID of the Autonomous Database that was cloned to create the current Autonomous Database.
	SourceID *string

	// Admin password.
	AdminPassword *string

	// Autonomous Database ID
	AutonomousDatabaseID *string

	// The maintenance schedule type of the Autonomous Database Serverless.
	AutonomousMaintenanceScheduleType *AutonomousMaintenanceScheduleType

	// Retention period, in days, for long-term backups
	BackupRetentionPeriodInDays *int32

	// The number of CPU cores to be made available to the database.
	CPUCoreCount *int32

	// The character set for the autonomous database.
	CharacterSet *string

	// The compute amount (CPUs) available to the database.
	ComputeCount *float32

	// The compute model of the Autonomous Database.
	ComputeModel *ComputeModel

	// Customer Contacts.
	CustomerContacts []*CustomerContact

	// The size, in gigabytes, of the data volume that will be created and attached to the database.
	DataStorageSizeInGbs *int32

	// The quantity of data in the database, in terabytes.
	DataStorageSizeInTbs *int32

	// The Oracle Database Edition that applies to the Autonomous databases.
	DatabaseEdition *DatabaseEditionType

	// A valid Oracle Database version for Autonomous Database.
	DbVersion *string

	// The Autonomous Database workload type
	DbWorkload *WorkloadType

	// The user-friendly name for the Autonomous Database.
	DisplayName *string

	// Indicates if auto scaling is enabled for the Autonomous Database CPU core count.
	IsAutoScalingEnabled *bool

	// Indicates if auto scaling is enabled for the Autonomous Database storage.
	IsAutoScalingForStorageEnabled *bool

	// Indicates whether the Autonomous Database has local or called in-region Data Guard enabled.
	IsLocalDataGuardEnabled *bool

	// Specifies if the Autonomous Database requires mTLS connections.
	IsMtlsConnectionRequired *bool

	// Specifies if the Autonomous Database preview version is being provisioned.
	IsPreviewVersionWithServiceTermsAccepted *bool

	// The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED.
	LicenseModel *LicenseModel

	// Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover
	// will be triggered when necessary for a Local Autonomous Data Guard
	LocalAdgAutoFailoverMaxDataLossLimit *int32

	// Details for the long-term backup schedule.
	LongTermBackupSchedule *LongTermBackUpScheduleDetails

	// The character set for the Autonomous Database.
	NcharacterSet *string

	// Indicates the Autonomous Database mode.
	OpenMode *OpenModeType

	// The database OCID of the Disaster Recovery peer database, which is located in a different region from the current peer
	// database.
	PeerDbID *string

	// The Autonomous Database permission level.
	PermissionLevel *PermissionLevelType

	// The private endpoint Ip address for the resource.
	PrivateEndpointIP *string

	// The resource's private endpoint label.
	PrivateEndpointLabel *string

	// The refresh mode of the clone.
	RefreshableModel *RefreshableModelType

	// The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
	Role *RoleType

	// The list of scheduled operations.
	ScheduledOperations *ScheduledOperationsType

	// The source of the database.
	Source *SourceType

	// Client subnet
	SubnetID *string

	// The time and date as an RFC3339 formatted string, e.g., 2022-01-01T12:00:00.000Z, to set the limit for a refreshable clone
	// to be reconnected to its source database.
	TimeUntilReconnectCloneEnabled *string

	// VNET for network connectivity
	VnetID *string

	// The client IP access control list (ACL). This is an array of CIDR notations and/or IP addresses. Values should be separate
	// strings, separated by commas. Example: ['1.1.1.1','1.1.1.0/24','1.1.2.25']
	WhitelistedIPs []*string

	// READ-ONLY; The current amount of storage in use for user and system data, in terabytes (TB).
	ActualUsedDataStorageSizeInTbs *float64

	// READ-ONLY; The amount of storage currently allocated for the database tables and billed for, rounded up.
	AllocatedStorageSizeInTbs *float64

	// READ-ONLY; Information about Oracle APEX Application Development.
	ApexDetails *ApexDetailsType

	// READ-ONLY; List of Oracle Database versions available for a database upgrade. If there are no version upgrades available,
	// this list is empty.
	AvailableUpgradeVersions []*string

	// READ-ONLY; The connection string used to connect to the Autonomous Database.
	ConnectionStrings *ConnectionStringType

	// READ-ONLY; The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute
	// instance within your VCN or that has a direct connection to your VCN.
	ConnectionUrls *ConnectionURLType

	// READ-ONLY; Status of the Data Safe registration for this Autonomous Database.
	DataSafeStatus *DataSafeStatusType

	// READ-ONLY; Indicates the number of seconds of data loss for a Data Guard failover.
	FailedDataRecoveryInSeconds *int32

	// READ-ONLY; The area assigned to In-Memory tables in Autonomous Database.
	InMemoryAreaInGbs *int32

	// READ-ONLY; Indicates if the Autonomous Database version is a preview version.
	IsPreview *bool

	// READ-ONLY; Indicates if the refreshable clone can be reconnected to its source database.
	IsReconnectCloneEnabled *bool

	// READ-ONLY; Indicates if the Autonomous Database is a refreshable clone.
	IsRefreshableClone *bool

	// READ-ONLY; Indicates whether the Autonomous Database has Cross Region Data Guard enabled.
	IsRemoteDataGuardEnabled *bool

	// READ-ONLY; Additional information about the current lifecycle state.
	LifecycleDetails *string

	// READ-ONLY; Views lifecycleState
	LifecycleState *AutonomousDatabaseLifecycleState

	// READ-ONLY; Indicates the local disaster recovery (DR) type of the Autonomous Database Serverless instance.Autonomous Data
	// Guard (ADG) DR type provides business critical DR with a faster recovery time objective
	// (RTO) during failover or switchover.Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover.
	LocalDisasterRecoveryType *DisasterRecoveryType

	// READ-ONLY; Local Autonomous Disaster Recovery standby database details.
	LocalStandbyDb *AutonomousDatabaseStandbySummary

	// READ-ONLY; The amount of memory (in GBs) enabled per ECPU or OCPU.
	MemoryPerOracleComputeUnitInGbs *int32

	// READ-ONLY; The date and time when the next long-term backup would be created.
	NextLongTermBackupTimeStamp *time.Time

	// READ-ONLY; HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.
	OciURL *string

	// READ-ONLY; Database ocid
	Ocid *string

	// READ-ONLY; Status of Operations Insights for this Autonomous Database.
	OperationsInsightsStatus *OperationsInsightsStatusType

	// READ-ONLY; The list of OCIDs [https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm] of standby databases
	// located in Autonomous Data Guard remote regions that are associated with the source
	// database. Note that for Autonomous Database Serverless instances, standby databases located in the same region as the source
	// primary database do not have OCIDs.
	PeerDbIDs []*string

	// READ-ONLY; The private endpoint for the resource.
	PrivateEndpoint *string

	// READ-ONLY; An array of CPU values that an Autonomous Database can be scaled to.
	ProvisionableCpus []*int32

	// READ-ONLY; Azure resource provisioning state.
	ProvisioningState *AzureResourceProvisioningState

	// READ-ONLY; The refresh status of the clone.
	RefreshableStatus *RefreshableStatusType

	// READ-ONLY; The SQL Web Developer URL for the Oracle Autonomous Database.
	SQLWebDeveloperURL *string

	// READ-ONLY; The URL of the Service Console for the Autonomous Database.
	ServiceConsoleURL *string

	// READ-ONLY; The list of regions that support the creation of an Autonomous Database clone or an Autonomous Data Guard standby
	// database.
	SupportedRegionsToCloneTo []*string

	// READ-ONLY; The date and time that the database was created.
	TimeCreated *time.Time

	// READ-ONLY; The date and time the Autonomous Data Guard role was switched for the Autonomous Database.
	TimeDataGuardRoleChanged *string

	// READ-ONLY; The date and time the Always Free database will be automatically deleted because of inactivity.
	TimeDeletionOfFreeAutonomousDatabase *string

	// READ-ONLY; The date and time that Autonomous Data Guard was enabled for an Autonomous Database where the standby was provisioned
	// in the same region as the primary database.
	TimeLocalDataGuardEnabled *string

	// READ-ONLY; The date and time when maintenance will begin.
	TimeMaintenanceBegin *time.Time

	// READ-ONLY; The date and time when maintenance will end.
	TimeMaintenanceEnd *time.Time

	// READ-ONLY; The timestamp of the last failover operation.
	TimeOfLastFailover *string

	// READ-ONLY; The date and time when last refresh happened.
	TimeOfLastRefresh *string

	// READ-ONLY; The refresh point timestamp (UTC).
	TimeOfLastRefreshPoint *string

	// READ-ONLY; The timestamp of the last switchover operation for the Autonomous Database.
	TimeOfLastSwitchover *string

	// READ-ONLY; The date and time the Always Free database will be stopped because of inactivity.
	TimeReclamationOfFreeAutonomousDatabase *string

	// READ-ONLY; The storage space consumed by Autonomous Database in GBs.
	UsedDataStorageSizeInGbs *int32

	// READ-ONLY; The amount of storage that has been used, in terabytes.
	UsedDataStorageSizeInTbs *int32
}

AutonomousDatabaseCloneProperties - Autonomous Database clone resource model.

func (*AutonomousDatabaseCloneProperties) GetAutonomousDatabaseBaseProperties

func (a *AutonomousDatabaseCloneProperties) GetAutonomousDatabaseBaseProperties() *AutonomousDatabaseBaseProperties

GetAutonomousDatabaseBaseProperties implements the AutonomousDatabaseBasePropertiesClassification interface for type AutonomousDatabaseCloneProperties.

func (AutonomousDatabaseCloneProperties) MarshalJSON

func (a AutonomousDatabaseCloneProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseCloneProperties.

func (*AutonomousDatabaseCloneProperties) UnmarshalJSON

func (a *AutonomousDatabaseCloneProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseCloneProperties.

type AutonomousDatabaseLifecycleState

type AutonomousDatabaseLifecycleState string

AutonomousDatabaseLifecycleState - Autonomous database lifecycle state enum

const (
	// AutonomousDatabaseLifecycleStateAvailable - Indicates that resource in Available state
	AutonomousDatabaseLifecycleStateAvailable AutonomousDatabaseLifecycleState = "Available"
	// AutonomousDatabaseLifecycleStateAvailableNeedsAttention - Indicates that resource is available but needs attention
	AutonomousDatabaseLifecycleStateAvailableNeedsAttention AutonomousDatabaseLifecycleState = "AvailableNeedsAttention"
	// AutonomousDatabaseLifecycleStateBackupInProgress - Indicates that resource in BackupInProgress state
	AutonomousDatabaseLifecycleStateBackupInProgress AutonomousDatabaseLifecycleState = "BackupInProgress"
	// AutonomousDatabaseLifecycleStateInaccessible - IIndicates that resource in Inaccessible state
	AutonomousDatabaseLifecycleStateInaccessible AutonomousDatabaseLifecycleState = "Inaccessible"
	// AutonomousDatabaseLifecycleStateMaintenanceInProgress - Indicates that resource maintenance in progress state
	AutonomousDatabaseLifecycleStateMaintenanceInProgress AutonomousDatabaseLifecycleState = "MaintenanceInProgress"
	// AutonomousDatabaseLifecycleStateProvisioning - Indicates that resource in Provisioning state
	AutonomousDatabaseLifecycleStateProvisioning AutonomousDatabaseLifecycleState = "Provisioning"
	// AutonomousDatabaseLifecycleStateRecreating - Indicates that resource in Recreating state
	AutonomousDatabaseLifecycleStateRecreating AutonomousDatabaseLifecycleState = "Recreating"
	// AutonomousDatabaseLifecycleStateRestarting - Indicates that resource in Restarting state
	AutonomousDatabaseLifecycleStateRestarting AutonomousDatabaseLifecycleState = "Restarting"
	// AutonomousDatabaseLifecycleStateRestoreFailed - Indicates that resource in RestoreFailed state
	AutonomousDatabaseLifecycleStateRestoreFailed AutonomousDatabaseLifecycleState = "RestoreFailed"
	// AutonomousDatabaseLifecycleStateRestoreInProgress - Indicates that resource in RestoreInProgress state
	AutonomousDatabaseLifecycleStateRestoreInProgress AutonomousDatabaseLifecycleState = "RestoreInProgress"
	// AutonomousDatabaseLifecycleStateRoleChangeInProgress - Indicates that resource role change in progress state
	AutonomousDatabaseLifecycleStateRoleChangeInProgress AutonomousDatabaseLifecycleState = "RoleChangeInProgress"
	// AutonomousDatabaseLifecycleStateScaleInProgress - Indicates that resource in ScaleInProgress state
	AutonomousDatabaseLifecycleStateScaleInProgress AutonomousDatabaseLifecycleState = "ScaleInProgress"
	// AutonomousDatabaseLifecycleStateStandby - Indicates that resource in Standby state
	AutonomousDatabaseLifecycleStateStandby AutonomousDatabaseLifecycleState = "Standby"
	// AutonomousDatabaseLifecycleStateStarting - Indicates that resource in Starting state
	AutonomousDatabaseLifecycleStateStarting AutonomousDatabaseLifecycleState = "Starting"
	// AutonomousDatabaseLifecycleStateStopped - Indicates that resource in Stopped state
	AutonomousDatabaseLifecycleStateStopped AutonomousDatabaseLifecycleState = "Stopped"
	// AutonomousDatabaseLifecycleStateStopping - Indicates that resource in Stopping state
	AutonomousDatabaseLifecycleStateStopping AutonomousDatabaseLifecycleState = "Stopping"
	// AutonomousDatabaseLifecycleStateTerminated - Indicates that resource in Terminated state
	AutonomousDatabaseLifecycleStateTerminated AutonomousDatabaseLifecycleState = "Terminated"
	// AutonomousDatabaseLifecycleStateTerminating - Indicates that resource in Terminating state
	AutonomousDatabaseLifecycleStateTerminating AutonomousDatabaseLifecycleState = "Terminating"
	// AutonomousDatabaseLifecycleStateUnavailable - Indicates that resource in Unavailable state
	AutonomousDatabaseLifecycleStateUnavailable AutonomousDatabaseLifecycleState = "Unavailable"
	// AutonomousDatabaseLifecycleStateUpdating - Indicates that resource in Updating state
	AutonomousDatabaseLifecycleStateUpdating AutonomousDatabaseLifecycleState = "Updating"
	// AutonomousDatabaseLifecycleStateUpgrading - Indicates that resource in Upgrading state
	AutonomousDatabaseLifecycleStateUpgrading AutonomousDatabaseLifecycleState = "Upgrading"
)

func PossibleAutonomousDatabaseLifecycleStateValues

func PossibleAutonomousDatabaseLifecycleStateValues() []AutonomousDatabaseLifecycleState

PossibleAutonomousDatabaseLifecycleStateValues returns the possible values for the AutonomousDatabaseLifecycleState const type.

type AutonomousDatabaseListResult

type AutonomousDatabaseListResult struct {
	// REQUIRED; The AutonomousDatabase items on this page
	Value []*AutonomousDatabase

	// The link to the next page of items
	NextLink *string
}

AutonomousDatabaseListResult - The response of a AutonomousDatabase list operation.

func (AutonomousDatabaseListResult) MarshalJSON

func (a AutonomousDatabaseListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseListResult.

func (*AutonomousDatabaseListResult) UnmarshalJSON

func (a *AutonomousDatabaseListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseListResult.

type AutonomousDatabaseNationalCharacterSet

type AutonomousDatabaseNationalCharacterSet struct {
	// The resource-specific properties for this resource.
	Properties *AutonomousDatabaseNationalCharacterSetProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

AutonomousDatabaseNationalCharacterSets resource definition

func (AutonomousDatabaseNationalCharacterSet) MarshalJSON

func (a AutonomousDatabaseNationalCharacterSet) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseNationalCharacterSet.

func (*AutonomousDatabaseNationalCharacterSet) UnmarshalJSON

func (a *AutonomousDatabaseNationalCharacterSet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseNationalCharacterSet.

type AutonomousDatabaseNationalCharacterSetListResult

type AutonomousDatabaseNationalCharacterSetListResult struct {
	// REQUIRED; The AutonomousDatabaseNationalCharacterSet items on this page
	Value []*AutonomousDatabaseNationalCharacterSet

	// The link to the next page of items
	NextLink *string
}

AutonomousDatabaseNationalCharacterSetListResult - The response of a AutonomousDatabaseNationalCharacterSet list operation.

func (AutonomousDatabaseNationalCharacterSetListResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseNationalCharacterSetListResult.

func (*AutonomousDatabaseNationalCharacterSetListResult) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseNationalCharacterSetListResult.

type AutonomousDatabaseNationalCharacterSetProperties

type AutonomousDatabaseNationalCharacterSetProperties struct {
	// READ-ONLY; The Oracle Autonomous Database supported national character sets.
	CharacterSet *string
}

AutonomousDatabaseNationalCharacterSetProperties - AutonomousDatabaseNationalCharacterSet resource model

func (AutonomousDatabaseNationalCharacterSetProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseNationalCharacterSetProperties.

func (*AutonomousDatabaseNationalCharacterSetProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseNationalCharacterSetProperties.

type AutonomousDatabaseNationalCharacterSetsClient

type AutonomousDatabaseNationalCharacterSetsClient struct {
	// contains filtered or unexported fields
}

AutonomousDatabaseNationalCharacterSetsClient contains the methods for the AutonomousDatabaseNationalCharacterSets group. Don't use this type directly, use NewAutonomousDatabaseNationalCharacterSetsClient() instead.

func NewAutonomousDatabaseNationalCharacterSetsClient

func NewAutonomousDatabaseNationalCharacterSetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AutonomousDatabaseNationalCharacterSetsClient, error)

NewAutonomousDatabaseNationalCharacterSetsClient creates a new instance of AutonomousDatabaseNationalCharacterSetsClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*AutonomousDatabaseNationalCharacterSetsClient) Get

Get - Get a AutonomousDatabaseNationalCharacterSet If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • adbsncharsetname - AutonomousDatabaseNationalCharacterSets name
  • options - AutonomousDatabaseNationalCharacterSetsClientGetOptions contains the optional parameters for the AutonomousDatabaseNationalCharacterSetsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewAutonomousDatabaseNationalCharacterSetsClient().Get(ctx, "eastus", "NATIONAL", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabaseNationalCharacterSet = armoracledatabase.AutonomousDatabaseNationalCharacterSet{
	// 	Type: to.Ptr("Oracle.Database/locations/autonomousDatabaseNationalCharacterSets"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDatabaseNationalCharacterSets/NATIONAL"),
	// 	Properties: &armoracledatabase.AutonomousDatabaseNationalCharacterSetProperties{
	// 		CharacterSet: to.Ptr("AL16UTF16"),
	// 	},
	// }
}
Output:

func (*AutonomousDatabaseNationalCharacterSetsClient) NewListByLocationPager

NewListByLocationPager - List AutonomousDatabaseNationalCharacterSet resources by Location

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • options - AutonomousDatabaseNationalCharacterSetsClientListByLocationOptions contains the optional parameters for the AutonomousDatabaseNationalCharacterSetsClient.NewListByLocationPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_listByLocation.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAutonomousDatabaseNationalCharacterSetsClient().NewListByLocationPager("eastus", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.AutonomousDatabaseNationalCharacterSetListResult = armoracledatabase.AutonomousDatabaseNationalCharacterSetListResult{
		// 	Value: []*armoracledatabase.AutonomousDatabaseNationalCharacterSet{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/locations/autonomousDatabaseNationalCharacterSets"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDatabaseNationalCharacterSets/NATIONAL"),
		// 			Properties: &armoracledatabase.AutonomousDatabaseNationalCharacterSetProperties{
		// 				CharacterSet: to.Ptr("AL16UTF16"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type AutonomousDatabaseNationalCharacterSetsClientGetOptions

type AutonomousDatabaseNationalCharacterSetsClientGetOptions struct {
}

AutonomousDatabaseNationalCharacterSetsClientGetOptions contains the optional parameters for the AutonomousDatabaseNationalCharacterSetsClient.Get method.

type AutonomousDatabaseNationalCharacterSetsClientGetResponse

type AutonomousDatabaseNationalCharacterSetsClientGetResponse struct {
	// AutonomousDatabaseNationalCharacterSets resource definition
	AutonomousDatabaseNationalCharacterSet
}

AutonomousDatabaseNationalCharacterSetsClientGetResponse contains the response from method AutonomousDatabaseNationalCharacterSetsClient.Get.

type AutonomousDatabaseNationalCharacterSetsClientListByLocationOptions

type AutonomousDatabaseNationalCharacterSetsClientListByLocationOptions struct {
}

AutonomousDatabaseNationalCharacterSetsClientListByLocationOptions contains the optional parameters for the AutonomousDatabaseNationalCharacterSetsClient.NewListByLocationPager method.

type AutonomousDatabaseNationalCharacterSetsClientListByLocationResponse

type AutonomousDatabaseNationalCharacterSetsClientListByLocationResponse struct {
	// The response of a AutonomousDatabaseNationalCharacterSet list operation.
	AutonomousDatabaseNationalCharacterSetListResult
}

AutonomousDatabaseNationalCharacterSetsClientListByLocationResponse contains the response from method AutonomousDatabaseNationalCharacterSetsClient.NewListByLocationPager.

type AutonomousDatabaseProperties

type AutonomousDatabaseProperties struct {
	// REQUIRED; Database type to be created.
	DataBaseType *DataBaseType

	// Admin password.
	AdminPassword *string

	// Autonomous Database ID
	AutonomousDatabaseID *string

	// The maintenance schedule type of the Autonomous Database Serverless.
	AutonomousMaintenanceScheduleType *AutonomousMaintenanceScheduleType

	// Retention period, in days, for long-term backups
	BackupRetentionPeriodInDays *int32

	// The number of CPU cores to be made available to the database.
	CPUCoreCount *int32

	// The character set for the autonomous database.
	CharacterSet *string

	// The compute amount (CPUs) available to the database.
	ComputeCount *float32

	// The compute model of the Autonomous Database.
	ComputeModel *ComputeModel

	// Customer Contacts.
	CustomerContacts []*CustomerContact

	// The size, in gigabytes, of the data volume that will be created and attached to the database.
	DataStorageSizeInGbs *int32

	// The quantity of data in the database, in terabytes.
	DataStorageSizeInTbs *int32

	// The Oracle Database Edition that applies to the Autonomous databases.
	DatabaseEdition *DatabaseEditionType

	// A valid Oracle Database version for Autonomous Database.
	DbVersion *string

	// The Autonomous Database workload type
	DbWorkload *WorkloadType

	// The user-friendly name for the Autonomous Database.
	DisplayName *string

	// Indicates if auto scaling is enabled for the Autonomous Database CPU core count.
	IsAutoScalingEnabled *bool

	// Indicates if auto scaling is enabled for the Autonomous Database storage.
	IsAutoScalingForStorageEnabled *bool

	// Indicates whether the Autonomous Database has local or called in-region Data Guard enabled.
	IsLocalDataGuardEnabled *bool

	// Specifies if the Autonomous Database requires mTLS connections.
	IsMtlsConnectionRequired *bool

	// Specifies if the Autonomous Database preview version is being provisioned.
	IsPreviewVersionWithServiceTermsAccepted *bool

	// The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED.
	LicenseModel *LicenseModel

	// Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover
	// will be triggered when necessary for a Local Autonomous Data Guard
	LocalAdgAutoFailoverMaxDataLossLimit *int32

	// Details for the long-term backup schedule.
	LongTermBackupSchedule *LongTermBackUpScheduleDetails

	// The character set for the Autonomous Database.
	NcharacterSet *string

	// Indicates the Autonomous Database mode.
	OpenMode *OpenModeType

	// The database OCID of the Disaster Recovery peer database, which is located in a different region from the current peer
	// database.
	PeerDbID *string

	// The Autonomous Database permission level.
	PermissionLevel *PermissionLevelType

	// The private endpoint Ip address for the resource.
	PrivateEndpointIP *string

	// The resource's private endpoint label.
	PrivateEndpointLabel *string

	// The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
	Role *RoleType

	// The list of scheduled operations.
	ScheduledOperations *ScheduledOperationsType

	// Client subnet
	SubnetID *string

	// VNET for network connectivity
	VnetID *string

	// The client IP access control list (ACL). This is an array of CIDR notations and/or IP addresses. Values should be separate
	// strings, separated by commas. Example: ['1.1.1.1','1.1.1.0/24','1.1.2.25']
	WhitelistedIPs []*string

	// READ-ONLY; The current amount of storage in use for user and system data, in terabytes (TB).
	ActualUsedDataStorageSizeInTbs *float64

	// READ-ONLY; The amount of storage currently allocated for the database tables and billed for, rounded up.
	AllocatedStorageSizeInTbs *float64

	// READ-ONLY; Information about Oracle APEX Application Development.
	ApexDetails *ApexDetailsType

	// READ-ONLY; List of Oracle Database versions available for a database upgrade. If there are no version upgrades available,
	// this list is empty.
	AvailableUpgradeVersions []*string

	// READ-ONLY; The connection string used to connect to the Autonomous Database.
	ConnectionStrings *ConnectionStringType

	// READ-ONLY; The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute
	// instance within your VCN or that has a direct connection to your VCN.
	ConnectionUrls *ConnectionURLType

	// READ-ONLY; Status of the Data Safe registration for this Autonomous Database.
	DataSafeStatus *DataSafeStatusType

	// READ-ONLY; Indicates the number of seconds of data loss for a Data Guard failover.
	FailedDataRecoveryInSeconds *int32

	// READ-ONLY; The area assigned to In-Memory tables in Autonomous Database.
	InMemoryAreaInGbs *int32

	// READ-ONLY; Indicates if the Autonomous Database version is a preview version.
	IsPreview *bool

	// READ-ONLY; Indicates whether the Autonomous Database has Cross Region Data Guard enabled.
	IsRemoteDataGuardEnabled *bool

	// READ-ONLY; Additional information about the current lifecycle state.
	LifecycleDetails *string

	// READ-ONLY; Views lifecycleState
	LifecycleState *AutonomousDatabaseLifecycleState

	// READ-ONLY; Indicates the local disaster recovery (DR) type of the Autonomous Database Serverless instance.Autonomous Data
	// Guard (ADG) DR type provides business critical DR with a faster recovery time objective
	// (RTO) during failover or switchover.Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover.
	LocalDisasterRecoveryType *DisasterRecoveryType

	// READ-ONLY; Local Autonomous Disaster Recovery standby database details.
	LocalStandbyDb *AutonomousDatabaseStandbySummary

	// READ-ONLY; The amount of memory (in GBs) enabled per ECPU or OCPU.
	MemoryPerOracleComputeUnitInGbs *int32

	// READ-ONLY; The date and time when the next long-term backup would be created.
	NextLongTermBackupTimeStamp *time.Time

	// READ-ONLY; HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.
	OciURL *string

	// READ-ONLY; Database ocid
	Ocid *string

	// READ-ONLY; Status of Operations Insights for this Autonomous Database.
	OperationsInsightsStatus *OperationsInsightsStatusType

	// READ-ONLY; The list of OCIDs [https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm] of standby databases
	// located in Autonomous Data Guard remote regions that are associated with the source
	// database. Note that for Autonomous Database Serverless instances, standby databases located in the same region as the source
	// primary database do not have OCIDs.
	PeerDbIDs []*string

	// READ-ONLY; The private endpoint for the resource.
	PrivateEndpoint *string

	// READ-ONLY; An array of CPU values that an Autonomous Database can be scaled to.
	ProvisionableCpus []*int32

	// READ-ONLY; Azure resource provisioning state.
	ProvisioningState *AzureResourceProvisioningState

	// READ-ONLY; The SQL Web Developer URL for the Oracle Autonomous Database.
	SQLWebDeveloperURL *string

	// READ-ONLY; The URL of the Service Console for the Autonomous Database.
	ServiceConsoleURL *string

	// READ-ONLY; The list of regions that support the creation of an Autonomous Database clone or an Autonomous Data Guard standby
	// database.
	SupportedRegionsToCloneTo []*string

	// READ-ONLY; The date and time that the database was created.
	TimeCreated *time.Time

	// READ-ONLY; The date and time the Autonomous Data Guard role was switched for the Autonomous Database.
	TimeDataGuardRoleChanged *string

	// READ-ONLY; The date and time the Always Free database will be automatically deleted because of inactivity.
	TimeDeletionOfFreeAutonomousDatabase *string

	// READ-ONLY; The date and time that Autonomous Data Guard was enabled for an Autonomous Database where the standby was provisioned
	// in the same region as the primary database.
	TimeLocalDataGuardEnabled *string

	// READ-ONLY; The date and time when maintenance will begin.
	TimeMaintenanceBegin *time.Time

	// READ-ONLY; The date and time when maintenance will end.
	TimeMaintenanceEnd *time.Time

	// READ-ONLY; The timestamp of the last failover operation.
	TimeOfLastFailover *string

	// READ-ONLY; The date and time when last refresh happened.
	TimeOfLastRefresh *string

	// READ-ONLY; The refresh point timestamp (UTC).
	TimeOfLastRefreshPoint *string

	// READ-ONLY; The timestamp of the last switchover operation for the Autonomous Database.
	TimeOfLastSwitchover *string

	// READ-ONLY; The date and time the Always Free database will be stopped because of inactivity.
	TimeReclamationOfFreeAutonomousDatabase *string

	// READ-ONLY; The storage space consumed by Autonomous Database in GBs.
	UsedDataStorageSizeInGbs *int32

	// READ-ONLY; The amount of storage that has been used, in terabytes.
	UsedDataStorageSizeInTbs *int32
}

AutonomousDatabaseProperties - Autonomous Database resource model.

func (*AutonomousDatabaseProperties) GetAutonomousDatabaseBaseProperties

func (a *AutonomousDatabaseProperties) GetAutonomousDatabaseBaseProperties() *AutonomousDatabaseBaseProperties

GetAutonomousDatabaseBaseProperties implements the AutonomousDatabaseBasePropertiesClassification interface for type AutonomousDatabaseProperties.

func (AutonomousDatabaseProperties) MarshalJSON

func (a AutonomousDatabaseProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseProperties.

func (*AutonomousDatabaseProperties) UnmarshalJSON

func (a *AutonomousDatabaseProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseProperties.

type AutonomousDatabaseStandbySummary

type AutonomousDatabaseStandbySummary struct {
	// The amount of time, in seconds, that the data of the standby database lags the data of the primary database. Can be used
	// to determine the potential data loss in the event of a failover.
	LagTimeInSeconds *int32

	// Additional information about the current lifecycle state.
	LifecycleDetails *string

	// The current state of the Autonomous Database.
	LifecycleState *AutonomousDatabaseLifecycleState

	// The date and time the Autonomous Data Guard role was switched for the standby Autonomous Database.
	TimeDataGuardRoleChanged *string

	// The date and time the Disaster Recovery role was switched for the standby Autonomous Database.
	TimeDisasterRecoveryRoleChanged *string
}

AutonomousDatabaseStandbySummary - Autonomous Disaster Recovery standby database details.

func (AutonomousDatabaseStandbySummary) MarshalJSON

func (a AutonomousDatabaseStandbySummary) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseStandbySummary.

func (*AutonomousDatabaseStandbySummary) UnmarshalJSON

func (a *AutonomousDatabaseStandbySummary) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseStandbySummary.

type AutonomousDatabaseUpdate

type AutonomousDatabaseUpdate struct {
	// The updatable properties of the AutonomousDatabase.
	Properties *AutonomousDatabaseUpdateProperties

	// Resource tags.
	Tags map[string]*string
}

AutonomousDatabaseUpdate - The type used for update operations of the AutonomousDatabase.

func (AutonomousDatabaseUpdate) MarshalJSON

func (a AutonomousDatabaseUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseUpdate.

func (*AutonomousDatabaseUpdate) UnmarshalJSON

func (a *AutonomousDatabaseUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseUpdate.

type AutonomousDatabaseUpdateProperties

type AutonomousDatabaseUpdateProperties struct {
	// Admin password.
	AdminPassword *string

	// The maintenance schedule type of the Autonomous Database Serverless.
	AutonomousMaintenanceScheduleType *AutonomousMaintenanceScheduleType

	// Retention period, in days, for long-term backups
	BackupRetentionPeriodInDays *int32

	// The number of CPU cores to be made available to the database.
	CPUCoreCount *int32

	// The compute amount (CPUs) available to the database.
	ComputeCount *float32

	// Customer Contacts.
	CustomerContacts []*CustomerContact

	// The size, in gigabytes, of the data volume that will be created and attached to the database.
	DataStorageSizeInGbs *int32

	// The quantity of data in the database, in terabytes.
	DataStorageSizeInTbs *int32

	// The Oracle Database Edition that applies to the Autonomous databases.
	DatabaseEdition *DatabaseEditionType

	// The user-friendly name for the Autonomous Database.
	DisplayName *string

	// Indicates if auto scaling is enabled for the Autonomous Database CPU core count.
	IsAutoScalingEnabled *bool

	// Indicates if auto scaling is enabled for the Autonomous Database storage.
	IsAutoScalingForStorageEnabled *bool

	// Indicates whether the Autonomous Database has local or called in-region Data Guard enabled.
	IsLocalDataGuardEnabled *bool

	// Specifies if the Autonomous Database requires mTLS connections.
	IsMtlsConnectionRequired *bool

	// The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED.
	LicenseModel *LicenseModel

	// Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover
	// will be triggered when necessary for a Local Autonomous Data Guard
	LocalAdgAutoFailoverMaxDataLossLimit *int32

	// Details for the long-term backup schedule.
	LongTermBackupSchedule *LongTermBackUpScheduleDetails

	// Indicates the Autonomous Database mode.
	OpenMode *OpenModeType

	// The database OCID of the Disaster Recovery peer database, which is located in a different region from the current peer
	// database.
	PeerDbID *string

	// The Autonomous Database permission level.
	PermissionLevel *PermissionLevelType

	// The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
	Role *RoleType

	// The list of scheduled operations.
	ScheduledOperations *ScheduledOperationsTypeUpdate

	// The client IP access control list (ACL). This is an array of CIDR notations and/or IP addresses. Values should be separate
	// strings, separated by commas. Example: ['1.1.1.1','1.1.1.0/24','1.1.2.25']
	WhitelistedIPs []*string
}

AutonomousDatabaseUpdateProperties - The updatable properties of the AutonomousDatabase.

func (AutonomousDatabaseUpdateProperties) MarshalJSON

func (a AutonomousDatabaseUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseUpdateProperties.

func (*AutonomousDatabaseUpdateProperties) UnmarshalJSON

func (a *AutonomousDatabaseUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseUpdateProperties.

type AutonomousDatabaseVersionsClient

type AutonomousDatabaseVersionsClient struct {
	// contains filtered or unexported fields
}

AutonomousDatabaseVersionsClient contains the methods for the AutonomousDatabaseVersions group. Don't use this type directly, use NewAutonomousDatabaseVersionsClient() instead.

func NewAutonomousDatabaseVersionsClient

func NewAutonomousDatabaseVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AutonomousDatabaseVersionsClient, error)

NewAutonomousDatabaseVersionsClient creates a new instance of AutonomousDatabaseVersionsClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*AutonomousDatabaseVersionsClient) Get

Get - Get a AutonomousDbVersion If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • autonomousdbversionsname - AutonomousDbVersion name
  • options - AutonomousDatabaseVersionsClientGetOptions contains the optional parameters for the AutonomousDatabaseVersionsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewAutonomousDatabaseVersionsClient().Get(ctx, "eastus", "18.4.0.0", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDbVersion = armoracledatabase.AutonomousDbVersion{
	// 	Type: to.Ptr("Oracle.Database/locations/autonomousDbVersions"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDbVersions/18.4.0.0"),
	// 	Properties: &armoracledatabase.AutonomousDbVersionProperties{
	// 		Version: to.Ptr("18.4.0.0"),
	// 	},
	// }
}
Output:

func (*AutonomousDatabaseVersionsClient) NewListByLocationPager

NewListByLocationPager - List AutonomousDbVersion resources by Location

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • options - AutonomousDatabaseVersionsClientListByLocationOptions contains the optional parameters for the AutonomousDatabaseVersionsClient.NewListByLocationPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_listByLocation.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAutonomousDatabaseVersionsClient().NewListByLocationPager("eastus", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.AutonomousDbVersionListResult = armoracledatabase.AutonomousDbVersionListResult{
		// 	Value: []*armoracledatabase.AutonomousDbVersion{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/locations/autonomousDbVersions"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDbVersions/18.4.0.0"),
		// 			Properties: &armoracledatabase.AutonomousDbVersionProperties{
		// 				Version: to.Ptr("18.4.0.0"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type AutonomousDatabaseVersionsClientGetOptions

type AutonomousDatabaseVersionsClientGetOptions struct {
}

AutonomousDatabaseVersionsClientGetOptions contains the optional parameters for the AutonomousDatabaseVersionsClient.Get method.

type AutonomousDatabaseVersionsClientGetResponse

type AutonomousDatabaseVersionsClientGetResponse struct {
	// AutonomousDbVersion resource definition
	AutonomousDbVersion
}

AutonomousDatabaseVersionsClientGetResponse contains the response from method AutonomousDatabaseVersionsClient.Get.

type AutonomousDatabaseVersionsClientListByLocationOptions

type AutonomousDatabaseVersionsClientListByLocationOptions struct {
}

AutonomousDatabaseVersionsClientListByLocationOptions contains the optional parameters for the AutonomousDatabaseVersionsClient.NewListByLocationPager method.

type AutonomousDatabaseVersionsClientListByLocationResponse

type AutonomousDatabaseVersionsClientListByLocationResponse struct {
	// The response of a AutonomousDbVersion list operation.
	AutonomousDbVersionListResult
}

AutonomousDatabaseVersionsClientListByLocationResponse contains the response from method AutonomousDatabaseVersionsClient.NewListByLocationPager.

type AutonomousDatabaseWalletFile

type AutonomousDatabaseWalletFile struct {
	// REQUIRED; The base64 encoded wallet files
	WalletFiles *string
}

AutonomousDatabaseWalletFile - Autonomous Database Wallet File resource model.

func (AutonomousDatabaseWalletFile) MarshalJSON

func (a AutonomousDatabaseWalletFile) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDatabaseWalletFile.

func (*AutonomousDatabaseWalletFile) UnmarshalJSON

func (a *AutonomousDatabaseWalletFile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDatabaseWalletFile.

type AutonomousDatabasesClient

type AutonomousDatabasesClient struct {
	// contains filtered or unexported fields
}

AutonomousDatabasesClient contains the methods for the AutonomousDatabases group. Don't use this type directly, use NewAutonomousDatabasesClient() instead.

func NewAutonomousDatabasesClient

func NewAutonomousDatabasesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AutonomousDatabasesClient, error)

NewAutonomousDatabasesClient creates a new instance of AutonomousDatabasesClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*AutonomousDatabasesClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a AutonomousDatabase If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • resource - Resource create parameters.
  • options - AutonomousDatabasesClientBeginCreateOrUpdateOptions contains the optional parameters for the AutonomousDatabasesClient.BeginCreateOrUpdate method.
Example (AutonomousDatabasesCreateOrUpdate)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAutonomousDatabasesClient().BeginCreateOrUpdate(ctx, "rg000", "databasedb1", armoracledatabase.AutonomousDatabase{
		Location: to.Ptr("eastus"),
		Tags: map[string]*string{
			"tagK1": to.Ptr("tagV1"),
		},
		Properties: &armoracledatabase.AutonomousDatabaseProperties{
			AdminPassword:        to.Ptr("********"),
			CharacterSet:         to.Ptr("AL32UTF8"),
			ComputeCount:         to.Ptr[float32](2),
			ComputeModel:         to.Ptr(armoracledatabase.ComputeModelECPU),
			DataBaseType:         to.Ptr(armoracledatabase.DataBaseTypeRegular),
			DataStorageSizeInTbs: to.Ptr[int32](1),
			DbVersion:            to.Ptr("18.4.0.0"),
			DisplayName:          to.Ptr("example_autonomous_databasedb1"),
			NcharacterSet:        to.Ptr("AL16UTF16"),
			SubnetID:             to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
			VnetID:               to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabase = armoracledatabase.AutonomousDatabase{
	// 	Type: to.Ptr("Oracle.Database/autonomousDatabases"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.AutonomousDatabaseProperties{
	// 		AutonomousDatabaseID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 		AutonomousMaintenanceScheduleType: to.Ptr(armoracledatabase.AutonomousMaintenanceScheduleTypeRegular),
	// 		CharacterSet: to.Ptr("AL32UTF8"),
	// 		ComputeCount: to.Ptr[float32](2),
	// 		ComputeModel: to.Ptr(armoracledatabase.ComputeModelECPU),
	// 		CPUCoreCount: to.Ptr[int32](1),
	// 		DataBaseType: to.Ptr(armoracledatabase.DataBaseTypeRegular),
	// 		DataStorageSizeInGbs: to.Ptr[int32](1024),
	// 		DataStorageSizeInTbs: to.Ptr[int32](1),
	// 		DatabaseEdition: to.Ptr(armoracledatabase.DatabaseEditionTypeEnterpriseEdition),
	// 		DbVersion: to.Ptr("18.4.0.0"),
	// 		DisplayName: to.Ptr("example_autonomous_databasedb1"),
	// 		IsAutoScalingEnabled: to.Ptr(false),
	// 		IsAutoScalingForStorageEnabled: to.Ptr(false),
	// 		IsLocalDataGuardEnabled: to.Ptr(false),
	// 		IsMtlsConnectionRequired: to.Ptr(true),
	// 		LicenseModel: to.Ptr(armoracledatabase.LicenseModelBringYourOwnLicense),
	// 		LifecycleDetails: to.Ptr("success"),
	// 		LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleState("Succeeded")),
	// 		NcharacterSet: to.Ptr("AL16UTF16"),
	// 		OciURL: to.Ptr("https://fake"),
	// 		Ocid: to.Ptr("ocid1..aaaaa"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-09T20:44:09.466Z"); return t}()),
	// 		VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 		WhitelistedIPs: []*string{
	// 			to.Ptr("1.1.1.1"),
	// 			to.Ptr("1.1.1.0/24"),
	// 			to.Ptr("1.1.2.25")},
	// 		},
	// 	}
}
Output:

Example (AutonomousDatabasesCreateOrUpdateClone)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseClone_create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAutonomousDatabasesClient().BeginCreateOrUpdate(ctx, "rg000", "databasedb1", armoracledatabase.AutonomousDatabase{
		Location: to.Ptr("eastus"),
		Tags: map[string]*string{
			"tagK1": to.Ptr("tagV1"),
		},
		Properties: &armoracledatabase.AutonomousDatabaseCloneProperties{
			AdminPassword:        to.Ptr("********"),
			CharacterSet:         to.Ptr("AL32UTF8"),
			ComputeCount:         to.Ptr[float32](2),
			ComputeModel:         to.Ptr(armoracledatabase.ComputeModelECPU),
			DataBaseType:         to.Ptr(armoracledatabase.DataBaseTypeClone),
			DataStorageSizeInTbs: to.Ptr[int32](1),
			DisplayName:          to.Ptr("example_autonomous_databasedb1_clone"),
			NcharacterSet:        to.Ptr("AL16UTF16"),
			SubnetID:             to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
			VnetID:               to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
			CloneType:            to.Ptr(armoracledatabase.CloneTypeFull),
			SourceID:             to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabase = armoracledatabase.AutonomousDatabase{
	// 	Type: to.Ptr("Oracle.Database/autonomousDatabases"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.AutonomousDatabaseCloneProperties{
	// 		AutonomousDatabaseID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1Clone"),
	// 		AutonomousMaintenanceScheduleType: to.Ptr(armoracledatabase.AutonomousMaintenanceScheduleTypeRegular),
	// 		CharacterSet: to.Ptr("AL32UTF8"),
	// 		ComputeCount: to.Ptr[float32](2),
	// 		ComputeModel: to.Ptr(armoracledatabase.ComputeModelECPU),
	// 		CPUCoreCount: to.Ptr[int32](1),
	// 		DataBaseType: to.Ptr(armoracledatabase.DataBaseTypeClone),
	// 		DataStorageSizeInGbs: to.Ptr[int32](1024),
	// 		DataStorageSizeInTbs: to.Ptr[int32](1),
	// 		DatabaseEdition: to.Ptr(armoracledatabase.DatabaseEditionTypeEnterpriseEdition),
	// 		DbVersion: to.Ptr("18.4.0.0"),
	// 		DisplayName: to.Ptr("example_autonomous_databasedb1"),
	// 		IsAutoScalingEnabled: to.Ptr(false),
	// 		IsAutoScalingForStorageEnabled: to.Ptr(false),
	// 		IsLocalDataGuardEnabled: to.Ptr(false),
	// 		IsMtlsConnectionRequired: to.Ptr(true),
	// 		LicenseModel: to.Ptr(armoracledatabase.LicenseModelBringYourOwnLicense),
	// 		LifecycleDetails: to.Ptr("success"),
	// 		LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleState("Succeeded")),
	// 		NcharacterSet: to.Ptr("AL16UTF16"),
	// 		OciURL: to.Ptr("https://fake"),
	// 		Ocid: to.Ptr("ocid1..aaaaa"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-09T20:44:09.466Z"); return t}()),
	// 		VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 		WhitelistedIPs: []*string{
	// 			to.Ptr("1.1.1.1"),
	// 			to.Ptr("1.1.1.0/24"),
	// 			to.Ptr("1.1.2.25")},
	// 			CloneType: to.Ptr(armoracledatabase.CloneTypeFull),
	// 			SourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 		},
	// 	}
}
Output:

func (*AutonomousDatabasesClient) BeginDelete

func (client *AutonomousDatabasesClient) BeginDelete(ctx context.Context, resourceGroupName string, autonomousdatabasename string, options *AutonomousDatabasesClientBeginDeleteOptions) (*runtime.Poller[AutonomousDatabasesClientDeleteResponse], error)

BeginDelete - Delete a AutonomousDatabase If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • options - AutonomousDatabasesClientBeginDeleteOptions contains the optional parameters for the AutonomousDatabasesClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAutonomousDatabasesClient().BeginDelete(ctx, "rg000", "databasedb1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*AutonomousDatabasesClient) BeginFailover

BeginFailover - Perform failover action on Autonomous Database If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • body - The content of the action request
  • options - AutonomousDatabasesClientBeginFailoverOptions contains the optional parameters for the AutonomousDatabasesClient.BeginFailover method.
Example (AutonomousDatabasesFailover)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_failover.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAutonomousDatabasesClient().BeginFailover(ctx, "rg000", "databasedb1", armoracledatabase.PeerDbDetails{
		PeerDbID: to.Ptr("peerDbId"),
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabase = armoracledatabase.AutonomousDatabase{
	// 	Type: to.Ptr("Oracle.Database/autonomousDatabases"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.AutonomousDatabaseProperties{
	// 		AutonomousDatabaseID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 		AutonomousMaintenanceScheduleType: to.Ptr(armoracledatabase.AutonomousMaintenanceScheduleTypeRegular),
	// 		CharacterSet: to.Ptr("AL32UTF8"),
	// 		ComputeCount: to.Ptr[float32](2),
	// 		ComputeModel: to.Ptr(armoracledatabase.ComputeModelECPU),
	// 		CPUCoreCount: to.Ptr[int32](1),
	// 		DataBaseType: to.Ptr(armoracledatabase.DataBaseTypeRegular),
	// 		DataStorageSizeInGbs: to.Ptr[int32](1024),
	// 		DataStorageSizeInTbs: to.Ptr[int32](1),
	// 		DatabaseEdition: to.Ptr(armoracledatabase.DatabaseEditionTypeEnterpriseEdition),
	// 		DbVersion: to.Ptr("18.4.0.0"),
	// 		DisplayName: to.Ptr("example_autonomous_databasedb1"),
	// 		IsAutoScalingEnabled: to.Ptr(false),
	// 		IsAutoScalingForStorageEnabled: to.Ptr(false),
	// 		IsLocalDataGuardEnabled: to.Ptr(true),
	// 		IsMtlsConnectionRequired: to.Ptr(true),
	// 		LicenseModel: to.Ptr(armoracledatabase.LicenseModelBringYourOwnLicense),
	// 		LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleStateUpdating),
	// 		LocalAdgAutoFailoverMaxDataLossLimit: to.Ptr[int32](300),
	// 		LocalDisasterRecoveryType: to.Ptr(armoracledatabase.DisasterRecoveryTypeAdg),
	// 		LocalStandbyDb: &armoracledatabase.AutonomousDatabaseStandbySummary{
	// 			LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleStateRoleChangeInProgress),
	// 		},
	// 		NcharacterSet: to.Ptr("AL16UTF16"),
	// 		OciURL: to.Ptr("https://fake"),
	// 		Ocid: to.Ptr("ocid1..aaaaa"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		Role: to.Ptr(armoracledatabase.RoleTypePrimary),
	// 		SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-09T20:44:09.466Z"); return t}()),
	// 		TimeLocalDataGuardEnabled: to.Ptr("2024-02-28T19:03:43.714Z"),
	// 		VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 		WhitelistedIPs: []*string{
	// 			to.Ptr("1.1.1.1"),
	// 			to.Ptr("1.1.1.0/24"),
	// 			to.Ptr("1.1.2.25")},
	// 		},
	// 	}
}
Output:

func (*AutonomousDatabasesClient) BeginRestore added in v0.2.0

BeginRestore - Restores an Autonomous Database based on the provided request parameters. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • body - The content of the action request
  • options - AutonomousDatabasesClientBeginRestoreOptions contains the optional parameters for the AutonomousDatabasesClient.BeginRestore method.
Example (AutonomousDatabasesRestore)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_restore.json

package main

import (
	"context"
	"log"

	"time"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAutonomousDatabasesClient().BeginRestore(ctx, "rg000", "databasedb1", armoracledatabase.RestoreAutonomousDatabaseDetails{
		Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-23T00:00:00.000Z"); return t }()),
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabase = armoracledatabase.AutonomousDatabase{
	// 	Type: to.Ptr("Oracle.Database/autonomousDatabases"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.AutonomousDatabaseProperties{
	// 		AutonomousDatabaseID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 		AutonomousMaintenanceScheduleType: to.Ptr(armoracledatabase.AutonomousMaintenanceScheduleTypeRegular),
	// 		BackupRetentionPeriodInDays: to.Ptr[int32](60),
	// 		CharacterSet: to.Ptr("AL32UTF8"),
	// 		ComputeCount: to.Ptr[float32](2),
	// 		ComputeModel: to.Ptr(armoracledatabase.ComputeModelECPU),
	// 		CPUCoreCount: to.Ptr[int32](1),
	// 		DataBaseType: to.Ptr(armoracledatabase.DataBaseTypeRegular),
	// 		DataStorageSizeInGbs: to.Ptr[int32](1024),
	// 		DataStorageSizeInTbs: to.Ptr[int32](1),
	// 		DatabaseEdition: to.Ptr(armoracledatabase.DatabaseEditionTypeEnterpriseEdition),
	// 		DbVersion: to.Ptr("18.4.0.0"),
	// 		DisplayName: to.Ptr("example_autonomous_databasedb1"),
	// 		IsAutoScalingEnabled: to.Ptr(false),
	// 		IsAutoScalingForStorageEnabled: to.Ptr(false),
	// 		IsLocalDataGuardEnabled: to.Ptr(false),
	// 		IsMtlsConnectionRequired: to.Ptr(true),
	// 		LicenseModel: to.Ptr(armoracledatabase.LicenseModelBringYourOwnLicense),
	// 		LifecycleDetails: to.Ptr(""),
	// 		LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleStateRestoreInProgress),
	// 		LongTermBackupSchedule: &armoracledatabase.LongTermBackUpScheduleDetails{
	// 			RepeatCadence: to.Ptr(armoracledatabase.RepeatCadenceTypeWeekly),
	// 			RetentionPeriodInDays: to.Ptr[int32](365),
	// 			TimeOfBackup: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-21T21:03:41.309Z"); return t}()),
	// 		},
	// 		NcharacterSet: to.Ptr("AL16UTF16"),
	// 		NextLongTermBackupTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-24T21:03:41.000Z"); return t}()),
	// 		OciURL: to.Ptr("https://fake"),
	// 		Ocid: to.Ptr("ocid1..aaaaa"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-09T20:44:09.466Z"); return t}()),
	// 		VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 		WhitelistedIPs: []*string{
	// 			to.Ptr("1.1.1.1"),
	// 			to.Ptr("1.1.1.0/24"),
	// 			to.Ptr("1.1.2.25")},
	// 		},
	// 	}
}
Output:

func (*AutonomousDatabasesClient) BeginShrink added in v0.2.0

func (client *AutonomousDatabasesClient) BeginShrink(ctx context.Context, resourceGroupName string, autonomousdatabasename string, options *AutonomousDatabasesClientBeginShrinkOptions) (*runtime.Poller[AutonomousDatabasesClientShrinkResponse], error)

BeginShrink - This operation shrinks the current allocated storage down to the current actual used data storage. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • options - AutonomousDatabasesClientBeginShrinkOptions contains the optional parameters for the AutonomousDatabasesClient.BeginShrink method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_shrink.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAutonomousDatabasesClient().BeginShrink(ctx, "rg000", "databasedb1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabase = armoracledatabase.AutonomousDatabase{
	// 	Type: to.Ptr("Oracle.Database/autonomousDatabases"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.AutonomousDatabaseProperties{
	// 		AutonomousDatabaseID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 		AutonomousMaintenanceScheduleType: to.Ptr(armoracledatabase.AutonomousMaintenanceScheduleTypeRegular),
	// 		BackupRetentionPeriodInDays: to.Ptr[int32](90),
	// 		CharacterSet: to.Ptr("AL32UTF8"),
	// 		ComputeCount: to.Ptr[float32](2),
	// 		ComputeModel: to.Ptr(armoracledatabase.ComputeModelECPU),
	// 		CPUCoreCount: to.Ptr[int32](1),
	// 		DataBaseType: to.Ptr(armoracledatabase.DataBaseTypeRegular),
	// 		DataStorageSizeInGbs: to.Ptr[int32](1024),
	// 		DataStorageSizeInTbs: to.Ptr[int32](1),
	// 		DatabaseEdition: to.Ptr(armoracledatabase.DatabaseEditionTypeEnterpriseEdition),
	// 		DbVersion: to.Ptr("18.4.0.0"),
	// 		DisplayName: to.Ptr("example_autonomous_databasedb1"),
	// 		IsAutoScalingEnabled: to.Ptr(false),
	// 		IsAutoScalingForStorageEnabled: to.Ptr(false),
	// 		IsLocalDataGuardEnabled: to.Ptr(false),
	// 		IsMtlsConnectionRequired: to.Ptr(true),
	// 		LicenseModel: to.Ptr(armoracledatabase.LicenseModelBringYourOwnLicense),
	// 		LifecycleDetails: to.Ptr(""),
	// 		LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleStateScaleInProgress),
	// 		LongTermBackupSchedule: &armoracledatabase.LongTermBackUpScheduleDetails{
	// 			RepeatCadence: to.Ptr(armoracledatabase.RepeatCadenceTypeWeekly),
	// 			RetentionPeriodInDays: to.Ptr[int32](365),
	// 			TimeOfBackup: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-21T21:03:41.309Z"); return t}()),
	// 		},
	// 		NcharacterSet: to.Ptr("AL16UTF16"),
	// 		NextLongTermBackupTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-24T21:03:41.000Z"); return t}()),
	// 		OciURL: to.Ptr("https://fake"),
	// 		Ocid: to.Ptr("ocid1..aaaaa"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-09T20:44:09.466Z"); return t}()),
	// 		VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 		WhitelistedIPs: []*string{
	// 			to.Ptr("1.1.1.1"),
	// 			to.Ptr("1.1.1.0/24"),
	// 			to.Ptr("1.1.2.25")},
	// 		},
	// 	}
}
Output:

func (*AutonomousDatabasesClient) BeginSwitchover

BeginSwitchover - Perform switchover action on Autonomous Database If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • body - The content of the action request
  • options - AutonomousDatabasesClientBeginSwitchoverOptions contains the optional parameters for the AutonomousDatabasesClient.BeginSwitchover method.
Example (AutonomousDatabasesSwitchover)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_switchover.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAutonomousDatabasesClient().BeginSwitchover(ctx, "rg000", "databasedb1", armoracledatabase.PeerDbDetails{
		PeerDbID: to.Ptr("peerDbId"),
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabase = armoracledatabase.AutonomousDatabase{
	// 	Type: to.Ptr("Oracle.Database/autonomousDatabases"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.AutonomousDatabaseProperties{
	// 		AutonomousDatabaseID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 		AutonomousMaintenanceScheduleType: to.Ptr(armoracledatabase.AutonomousMaintenanceScheduleTypeRegular),
	// 		CharacterSet: to.Ptr("AL32UTF8"),
	// 		ComputeCount: to.Ptr[float32](2),
	// 		ComputeModel: to.Ptr(armoracledatabase.ComputeModelECPU),
	// 		CPUCoreCount: to.Ptr[int32](1),
	// 		DataBaseType: to.Ptr(armoracledatabase.DataBaseTypeRegular),
	// 		DataStorageSizeInGbs: to.Ptr[int32](1024),
	// 		DataStorageSizeInTbs: to.Ptr[int32](1),
	// 		DatabaseEdition: to.Ptr(armoracledatabase.DatabaseEditionTypeEnterpriseEdition),
	// 		DbVersion: to.Ptr("18.4.0.0"),
	// 		DisplayName: to.Ptr("example_autonomous_databasedb1"),
	// 		IsAutoScalingEnabled: to.Ptr(false),
	// 		IsAutoScalingForStorageEnabled: to.Ptr(false),
	// 		IsLocalDataGuardEnabled: to.Ptr(false),
	// 		IsMtlsConnectionRequired: to.Ptr(true),
	// 		LicenseModel: to.Ptr(armoracledatabase.LicenseModelBringYourOwnLicense),
	// 		LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleStateUpdating),
	// 		LocalDisasterRecoveryType: to.Ptr(armoracledatabase.DisasterRecoveryTypeBackupBased),
	// 		LocalStandbyDb: &armoracledatabase.AutonomousDatabaseStandbySummary{
	// 			LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleStateRoleChangeInProgress),
	// 		},
	// 		NcharacterSet: to.Ptr("AL16UTF16"),
	// 		OciURL: to.Ptr("https://fake"),
	// 		Ocid: to.Ptr("ocid1..aaaaa"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		Role: to.Ptr(armoracledatabase.RoleTypePrimary),
	// 		SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-09T20:44:09.466Z"); return t}()),
	// 		TimeOfLastSwitchover: to.Ptr("2024-02-27T18:37:08.069Z"),
	// 		VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 		WhitelistedIPs: []*string{
	// 			to.Ptr("1.1.1.1"),
	// 			to.Ptr("1.1.1.0/24"),
	// 			to.Ptr("1.1.2.25")},
	// 		},
	// 	}
}
Output:

func (*AutonomousDatabasesClient) BeginUpdate

BeginUpdate - Update a AutonomousDatabase If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • properties - The resource properties to be updated.
  • options - AutonomousDatabasesClientBeginUpdateOptions contains the optional parameters for the AutonomousDatabasesClient.BeginUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_patch.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAutonomousDatabasesClient().BeginUpdate(ctx, "rg000", "databasedb1", armoracledatabase.AutonomousDatabaseUpdate{}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabase = armoracledatabase.AutonomousDatabase{
	// 	Type: to.Ptr("Oracle.Database/autonomousDatabases"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.AutonomousDatabaseProperties{
	// 		AutonomousDatabaseID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 		AutonomousMaintenanceScheduleType: to.Ptr(armoracledatabase.AutonomousMaintenanceScheduleTypeRegular),
	// 		CharacterSet: to.Ptr("AL32UTF8"),
	// 		ComputeCount: to.Ptr[float32](2),
	// 		ComputeModel: to.Ptr(armoracledatabase.ComputeModelECPU),
	// 		CPUCoreCount: to.Ptr[int32](1),
	// 		DataBaseType: to.Ptr(armoracledatabase.DataBaseTypeRegular),
	// 		DataStorageSizeInGbs: to.Ptr[int32](1024),
	// 		DataStorageSizeInTbs: to.Ptr[int32](1),
	// 		DatabaseEdition: to.Ptr(armoracledatabase.DatabaseEditionTypeEnterpriseEdition),
	// 		DbVersion: to.Ptr("18.4.0.0"),
	// 		DisplayName: to.Ptr("example_autonomous_databasedb1"),
	// 		IsAutoScalingEnabled: to.Ptr(false),
	// 		IsAutoScalingForStorageEnabled: to.Ptr(false),
	// 		IsLocalDataGuardEnabled: to.Ptr(false),
	// 		IsMtlsConnectionRequired: to.Ptr(true),
	// 		LicenseModel: to.Ptr(armoracledatabase.LicenseModelBringYourOwnLicense),
	// 		LifecycleDetails: to.Ptr("success"),
	// 		LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleState("Succeeded")),
	// 		NcharacterSet: to.Ptr("AL16UTF16"),
	// 		OciURL: to.Ptr("https://fake"),
	// 		Ocid: to.Ptr("ocid1..aaaaa"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-09T20:44:09.466Z"); return t}()),
	// 		VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 		WhitelistedIPs: []*string{
	// 			to.Ptr("1.1.1.1"),
	// 			to.Ptr("1.1.1.0/24"),
	// 			to.Ptr("1.1.2.25")},
	// 		},
	// 	}
}
Output:

func (*AutonomousDatabasesClient) GenerateWallet

GenerateWallet - Generate wallet action on Autonomous Database If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • body - The content of the action request
  • options - AutonomousDatabasesClientGenerateWalletOptions contains the optional parameters for the AutonomousDatabasesClient.GenerateWallet method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_generateWallet.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewAutonomousDatabasesClient().GenerateWallet(ctx, "rg000", "databasedb1", armoracledatabase.GenerateAutonomousDatabaseWalletDetails{
		GenerateType: to.Ptr(armoracledatabase.GenerateTypeSingle),
		IsRegional:   to.Ptr(false),
		Password:     to.Ptr("********"),
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabaseWalletFile = armoracledatabase.AutonomousDatabaseWalletFile{
	// 	WalletFiles: to.Ptr("testEncodedFiles"),
	// }
}
Output:

func (*AutonomousDatabasesClient) Get

func (client *AutonomousDatabasesClient) Get(ctx context.Context, resourceGroupName string, autonomousdatabasename string, options *AutonomousDatabasesClientGetOptions) (AutonomousDatabasesClientGetResponse, error)

Get - Get a AutonomousDatabase If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • autonomousdatabasename - The database name.
  • options - AutonomousDatabasesClientGetOptions contains the optional parameters for the AutonomousDatabasesClient.Get method.
Example (AutonomousDatabasesGet)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewAutonomousDatabasesClient().Get(ctx, "rg000", "databasedb1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.AutonomousDatabase = armoracledatabase.AutonomousDatabase{
	// 	Type: to.Ptr("Oracle.Database/autonomousDatabases"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.AutonomousDatabaseProperties{
	// 		AutonomousDatabaseID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
	// 		AutonomousMaintenanceScheduleType: to.Ptr(armoracledatabase.AutonomousMaintenanceScheduleTypeRegular),
	// 		CharacterSet: to.Ptr("AL32UTF8"),
	// 		ComputeCount: to.Ptr[float32](2),
	// 		ComputeModel: to.Ptr(armoracledatabase.ComputeModelECPU),
	// 		CPUCoreCount: to.Ptr[int32](1),
	// 		DataBaseType: to.Ptr(armoracledatabase.DataBaseTypeRegular),
	// 		DataStorageSizeInGbs: to.Ptr[int32](1024),
	// 		DataStorageSizeInTbs: to.Ptr[int32](1),
	// 		DatabaseEdition: to.Ptr(armoracledatabase.DatabaseEditionTypeEnterpriseEdition),
	// 		DbVersion: to.Ptr("18.4.0.0"),
	// 		DisplayName: to.Ptr("example_autonomous_databasedb1"),
	// 		IsAutoScalingEnabled: to.Ptr(false),
	// 		IsAutoScalingForStorageEnabled: to.Ptr(false),
	// 		IsLocalDataGuardEnabled: to.Ptr(false),
	// 		IsMtlsConnectionRequired: to.Ptr(true),
	// 		LicenseModel: to.Ptr(armoracledatabase.LicenseModelBringYourOwnLicense),
	// 		LifecycleDetails: to.Ptr("success"),
	// 		LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleState("Succeeded")),
	// 		NcharacterSet: to.Ptr("AL16UTF16"),
	// 		OciURL: to.Ptr("https://fake"),
	// 		Ocid: to.Ptr("ocid1..aaaaa"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-09T20:44:09.466Z"); return t}()),
	// 		VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 		WhitelistedIPs: []*string{
	// 			to.Ptr("1.1.1.1"),
	// 			to.Ptr("1.1.1.0/24"),
	// 			to.Ptr("1.1.2.25")},
	// 		},
	// 	}
}
Output:

func (*AutonomousDatabasesClient) NewListByResourceGroupPager

NewListByResourceGroupPager - List AutonomousDatabase resources by resource group

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - AutonomousDatabasesClientListByResourceGroupOptions contains the optional parameters for the AutonomousDatabasesClient.NewListByResourceGroupPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listByResourceGroup.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAutonomousDatabasesClient().NewListByResourceGroupPager("rg000", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.AutonomousDatabaseListResult = armoracledatabase.AutonomousDatabaseListResult{
		// 	Value: []*armoracledatabase.AutonomousDatabase{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/autonomousDatabases"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"tagK1": to.Ptr("tagV1"),
		// 			},
		// 			Properties: &armoracledatabase.AutonomousDatabaseProperties{
		// 				AutonomousDatabaseID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
		// 				AutonomousMaintenanceScheduleType: to.Ptr(armoracledatabase.AutonomousMaintenanceScheduleTypeRegular),
		// 				CharacterSet: to.Ptr("AL32UTF8"),
		// 				ComputeCount: to.Ptr[float32](2),
		// 				ComputeModel: to.Ptr(armoracledatabase.ComputeModelECPU),
		// 				CPUCoreCount: to.Ptr[int32](1),
		// 				DataBaseType: to.Ptr(armoracledatabase.DataBaseTypeRegular),
		// 				DataStorageSizeInGbs: to.Ptr[int32](1024),
		// 				DataStorageSizeInTbs: to.Ptr[int32](1),
		// 				DatabaseEdition: to.Ptr(armoracledatabase.DatabaseEditionTypeEnterpriseEdition),
		// 				DbVersion: to.Ptr("18.4.0.0"),
		// 				DisplayName: to.Ptr("example_autonomous_databasedb1"),
		// 				IsAutoScalingEnabled: to.Ptr(false),
		// 				IsAutoScalingForStorageEnabled: to.Ptr(false),
		// 				IsLocalDataGuardEnabled: to.Ptr(false),
		// 				IsMtlsConnectionRequired: to.Ptr(true),
		// 				LicenseModel: to.Ptr(armoracledatabase.LicenseModelBringYourOwnLicense),
		// 				LifecycleDetails: to.Ptr("success"),
		// 				LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleState("Succeeded")),
		// 				NcharacterSet: to.Ptr("AL16UTF16"),
		// 				OciURL: to.Ptr("https://fake"),
		// 				Ocid: to.Ptr("ocid1..aaaaa"),
		// 				ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
		// 				SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
		// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-09T20:44:09.466Z"); return t}()),
		// 				VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
		// 				WhitelistedIPs: []*string{
		// 					to.Ptr("1.1.1.1"),
		// 					to.Ptr("1.1.1.0/24"),
		// 					to.Ptr("1.1.2.25")},
		// 				},
		// 		}},
		// 	}
	}
}
Output:

func (*AutonomousDatabasesClient) NewListBySubscriptionPager

NewListBySubscriptionPager - List AutonomousDatabase resources by subscription ID

Generated from API version 2023-09-01

  • options - AutonomousDatabasesClientListBySubscriptionOptions contains the optional parameters for the AutonomousDatabasesClient.NewListBySubscriptionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listBySubscription.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAutonomousDatabasesClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.AutonomousDatabaseListResult = armoracledatabase.AutonomousDatabaseListResult{
		// 	Value: []*armoracledatabase.AutonomousDatabase{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/autonomousDatabases"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"tagK1": to.Ptr("tagV1"),
		// 			},
		// 			Properties: &armoracledatabase.AutonomousDatabaseProperties{
		// 				AutonomousDatabaseID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1"),
		// 				AutonomousMaintenanceScheduleType: to.Ptr(armoracledatabase.AutonomousMaintenanceScheduleTypeRegular),
		// 				CharacterSet: to.Ptr("AL32UTF8"),
		// 				ComputeCount: to.Ptr[float32](2),
		// 				ComputeModel: to.Ptr(armoracledatabase.ComputeModelECPU),
		// 				CPUCoreCount: to.Ptr[int32](1),
		// 				DataBaseType: to.Ptr(armoracledatabase.DataBaseTypeRegular),
		// 				DataStorageSizeInGbs: to.Ptr[int32](1024),
		// 				DataStorageSizeInTbs: to.Ptr[int32](1),
		// 				DatabaseEdition: to.Ptr(armoracledatabase.DatabaseEditionTypeEnterpriseEdition),
		// 				DbVersion: to.Ptr("18.4.0.0"),
		// 				DisplayName: to.Ptr("example_autonomous_databasedb1"),
		// 				IsAutoScalingEnabled: to.Ptr(false),
		// 				IsAutoScalingForStorageEnabled: to.Ptr(false),
		// 				IsLocalDataGuardEnabled: to.Ptr(false),
		// 				IsMtlsConnectionRequired: to.Ptr(true),
		// 				LicenseModel: to.Ptr(armoracledatabase.LicenseModelBringYourOwnLicense),
		// 				LifecycleDetails: to.Ptr("success"),
		// 				LifecycleState: to.Ptr(armoracledatabase.AutonomousDatabaseLifecycleState("Succeeded")),
		// 				NcharacterSet: to.Ptr("AL16UTF16"),
		// 				OciURL: to.Ptr("https://fake"),
		// 				Ocid: to.Ptr("ocid1..aaaaa"),
		// 				ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
		// 				SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
		// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-09T20:44:09.466Z"); return t}()),
		// 				VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
		// 				WhitelistedIPs: []*string{
		// 					to.Ptr("1.1.1.1"),
		// 					to.Ptr("1.1.1.0/24"),
		// 					to.Ptr("1.1.2.25")},
		// 				},
		// 		}},
		// 	}
	}
}
Output:

type AutonomousDatabasesClientBeginCreateOrUpdateOptions

type AutonomousDatabasesClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AutonomousDatabasesClientBeginCreateOrUpdateOptions contains the optional parameters for the AutonomousDatabasesClient.BeginCreateOrUpdate method.

type AutonomousDatabasesClientBeginDeleteOptions

type AutonomousDatabasesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AutonomousDatabasesClientBeginDeleteOptions contains the optional parameters for the AutonomousDatabasesClient.BeginDelete method.

type AutonomousDatabasesClientBeginFailoverOptions

type AutonomousDatabasesClientBeginFailoverOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AutonomousDatabasesClientBeginFailoverOptions contains the optional parameters for the AutonomousDatabasesClient.BeginFailover method.

type AutonomousDatabasesClientBeginRestoreOptions added in v0.2.0

type AutonomousDatabasesClientBeginRestoreOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AutonomousDatabasesClientBeginRestoreOptions contains the optional parameters for the AutonomousDatabasesClient.BeginRestore method.

type AutonomousDatabasesClientBeginShrinkOptions added in v0.2.0

type AutonomousDatabasesClientBeginShrinkOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AutonomousDatabasesClientBeginShrinkOptions contains the optional parameters for the AutonomousDatabasesClient.BeginShrink method.

type AutonomousDatabasesClientBeginSwitchoverOptions

type AutonomousDatabasesClientBeginSwitchoverOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AutonomousDatabasesClientBeginSwitchoverOptions contains the optional parameters for the AutonomousDatabasesClient.BeginSwitchover method.

type AutonomousDatabasesClientBeginUpdateOptions

type AutonomousDatabasesClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

AutonomousDatabasesClientBeginUpdateOptions contains the optional parameters for the AutonomousDatabasesClient.BeginUpdate method.

type AutonomousDatabasesClientCreateOrUpdateResponse

type AutonomousDatabasesClientCreateOrUpdateResponse struct {
	// Autonomous Database resource model.
	AutonomousDatabase
}

AutonomousDatabasesClientCreateOrUpdateResponse contains the response from method AutonomousDatabasesClient.BeginCreateOrUpdate.

type AutonomousDatabasesClientDeleteResponse

type AutonomousDatabasesClientDeleteResponse struct {
}

AutonomousDatabasesClientDeleteResponse contains the response from method AutonomousDatabasesClient.BeginDelete.

type AutonomousDatabasesClientFailoverResponse

type AutonomousDatabasesClientFailoverResponse struct {
	// Autonomous Database resource model.
	AutonomousDatabase
}

AutonomousDatabasesClientFailoverResponse contains the response from method AutonomousDatabasesClient.BeginFailover.

type AutonomousDatabasesClientGenerateWalletOptions

type AutonomousDatabasesClientGenerateWalletOptions struct {
}

AutonomousDatabasesClientGenerateWalletOptions contains the optional parameters for the AutonomousDatabasesClient.GenerateWallet method.

type AutonomousDatabasesClientGenerateWalletResponse

type AutonomousDatabasesClientGenerateWalletResponse struct {
	// Autonomous Database Wallet File resource model.
	AutonomousDatabaseWalletFile
}

AutonomousDatabasesClientGenerateWalletResponse contains the response from method AutonomousDatabasesClient.GenerateWallet.

type AutonomousDatabasesClientGetOptions

type AutonomousDatabasesClientGetOptions struct {
}

AutonomousDatabasesClientGetOptions contains the optional parameters for the AutonomousDatabasesClient.Get method.

type AutonomousDatabasesClientGetResponse

type AutonomousDatabasesClientGetResponse struct {
	// Autonomous Database resource model.
	AutonomousDatabase
}

AutonomousDatabasesClientGetResponse contains the response from method AutonomousDatabasesClient.Get.

type AutonomousDatabasesClientListByResourceGroupOptions

type AutonomousDatabasesClientListByResourceGroupOptions struct {
}

AutonomousDatabasesClientListByResourceGroupOptions contains the optional parameters for the AutonomousDatabasesClient.NewListByResourceGroupPager method.

type AutonomousDatabasesClientListByResourceGroupResponse

type AutonomousDatabasesClientListByResourceGroupResponse struct {
	// The response of a AutonomousDatabase list operation.
	AutonomousDatabaseListResult
}

AutonomousDatabasesClientListByResourceGroupResponse contains the response from method AutonomousDatabasesClient.NewListByResourceGroupPager.

type AutonomousDatabasesClientListBySubscriptionOptions

type AutonomousDatabasesClientListBySubscriptionOptions struct {
}

AutonomousDatabasesClientListBySubscriptionOptions contains the optional parameters for the AutonomousDatabasesClient.NewListBySubscriptionPager method.

type AutonomousDatabasesClientListBySubscriptionResponse

type AutonomousDatabasesClientListBySubscriptionResponse struct {
	// The response of a AutonomousDatabase list operation.
	AutonomousDatabaseListResult
}

AutonomousDatabasesClientListBySubscriptionResponse contains the response from method AutonomousDatabasesClient.NewListBySubscriptionPager.

type AutonomousDatabasesClientRestoreResponse added in v0.2.0

type AutonomousDatabasesClientRestoreResponse struct {
	// Autonomous Database resource model.
	AutonomousDatabase
}

AutonomousDatabasesClientRestoreResponse contains the response from method AutonomousDatabasesClient.BeginRestore.

type AutonomousDatabasesClientShrinkResponse added in v0.2.0

type AutonomousDatabasesClientShrinkResponse struct {
	// Autonomous Database resource model.
	AutonomousDatabase
}

AutonomousDatabasesClientShrinkResponse contains the response from method AutonomousDatabasesClient.BeginShrink.

type AutonomousDatabasesClientSwitchoverResponse

type AutonomousDatabasesClientSwitchoverResponse struct {
	// Autonomous Database resource model.
	AutonomousDatabase
}

AutonomousDatabasesClientSwitchoverResponse contains the response from method AutonomousDatabasesClient.BeginSwitchover.

type AutonomousDatabasesClientUpdateResponse

type AutonomousDatabasesClientUpdateResponse struct {
	// Autonomous Database resource model.
	AutonomousDatabase
}

AutonomousDatabasesClientUpdateResponse contains the response from method AutonomousDatabasesClient.BeginUpdate.

type AutonomousDbVersion

type AutonomousDbVersion struct {
	// The resource-specific properties for this resource.
	Properties *AutonomousDbVersionProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

AutonomousDbVersion resource definition

func (AutonomousDbVersion) MarshalJSON

func (a AutonomousDbVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDbVersion.

func (*AutonomousDbVersion) UnmarshalJSON

func (a *AutonomousDbVersion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDbVersion.

type AutonomousDbVersionListResult

type AutonomousDbVersionListResult struct {
	// REQUIRED; The AutonomousDbVersion items on this page
	Value []*AutonomousDbVersion

	// The link to the next page of items
	NextLink *string
}

AutonomousDbVersionListResult - The response of a AutonomousDbVersion list operation.

func (AutonomousDbVersionListResult) MarshalJSON

func (a AutonomousDbVersionListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDbVersionListResult.

func (*AutonomousDbVersionListResult) UnmarshalJSON

func (a *AutonomousDbVersionListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDbVersionListResult.

type AutonomousDbVersionProperties

type AutonomousDbVersionProperties struct {
	// READ-ONLY; Supported Autonomous Db versions.
	Version *string

	// READ-ONLY; The Autonomous Database workload type
	DbWorkload *WorkloadType

	// READ-ONLY; True if this version of the Oracle Database software's default is free.
	IsDefaultForFree *bool

	// READ-ONLY; True if this version of the Oracle Database software's default is paid.
	IsDefaultForPaid *bool

	// READ-ONLY; True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.
	IsFreeTierEnabled *bool

	// READ-ONLY; True if this version of the Oracle Database software has payments enabled.
	IsPaidEnabled *bool
}

AutonomousDbVersionProperties - AutonomousDbVersion resource model

func (AutonomousDbVersionProperties) MarshalJSON

func (a AutonomousDbVersionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutonomousDbVersionProperties.

func (*AutonomousDbVersionProperties) UnmarshalJSON

func (a *AutonomousDbVersionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutonomousDbVersionProperties.

type AutonomousMaintenanceScheduleType

type AutonomousMaintenanceScheduleType string

AutonomousMaintenanceScheduleType - Autonomous database maintenance schedule type enum.

const (
	// AutonomousMaintenanceScheduleTypeEarly - Early maintenance schedule
	AutonomousMaintenanceScheduleTypeEarly AutonomousMaintenanceScheduleType = "Early"
	// AutonomousMaintenanceScheduleTypeRegular - Regular maintenance schedule
	AutonomousMaintenanceScheduleTypeRegular AutonomousMaintenanceScheduleType = "Regular"
)

func PossibleAutonomousMaintenanceScheduleTypeValues

func PossibleAutonomousMaintenanceScheduleTypeValues() []AutonomousMaintenanceScheduleType

PossibleAutonomousMaintenanceScheduleTypeValues returns the possible values for the AutonomousMaintenanceScheduleType const type.

type AzureResourceProvisioningState

type AzureResourceProvisioningState string

AzureResourceProvisioningState - Azure Resource Provisioning State enum

const (
	// AzureResourceProvisioningStateCanceled - Resource creation was canceled.
	AzureResourceProvisioningStateCanceled AzureResourceProvisioningState = "Canceled"
	// AzureResourceProvisioningStateFailed - Resource creation failed.
	AzureResourceProvisioningStateFailed AzureResourceProvisioningState = "Failed"
	// AzureResourceProvisioningStateProvisioning - Indicates that resource in Provisioning state
	AzureResourceProvisioningStateProvisioning AzureResourceProvisioningState = "Provisioning"
	// AzureResourceProvisioningStateSucceeded - Resource has been created.
	AzureResourceProvisioningStateSucceeded AzureResourceProvisioningState = "Succeeded"
)

func PossibleAzureResourceProvisioningStateValues

func PossibleAzureResourceProvisioningStateValues() []AzureResourceProvisioningState

PossibleAzureResourceProvisioningStateValues returns the possible values for the AzureResourceProvisioningState const type.

type ClientFactory

type ClientFactory struct {
	// contains filtered or unexported fields
}

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory

func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewAutonomousDatabaseBackupsClient

func (c *ClientFactory) NewAutonomousDatabaseBackupsClient() *AutonomousDatabaseBackupsClient

NewAutonomousDatabaseBackupsClient creates a new instance of AutonomousDatabaseBackupsClient.

func (*ClientFactory) NewAutonomousDatabaseCharacterSetsClient

func (c *ClientFactory) NewAutonomousDatabaseCharacterSetsClient() *AutonomousDatabaseCharacterSetsClient

NewAutonomousDatabaseCharacterSetsClient creates a new instance of AutonomousDatabaseCharacterSetsClient.

func (*ClientFactory) NewAutonomousDatabaseNationalCharacterSetsClient

func (c *ClientFactory) NewAutonomousDatabaseNationalCharacterSetsClient() *AutonomousDatabaseNationalCharacterSetsClient

NewAutonomousDatabaseNationalCharacterSetsClient creates a new instance of AutonomousDatabaseNationalCharacterSetsClient.

func (*ClientFactory) NewAutonomousDatabaseVersionsClient

func (c *ClientFactory) NewAutonomousDatabaseVersionsClient() *AutonomousDatabaseVersionsClient

NewAutonomousDatabaseVersionsClient creates a new instance of AutonomousDatabaseVersionsClient.

func (*ClientFactory) NewAutonomousDatabasesClient

func (c *ClientFactory) NewAutonomousDatabasesClient() *AutonomousDatabasesClient

NewAutonomousDatabasesClient creates a new instance of AutonomousDatabasesClient.

func (*ClientFactory) NewCloudExadataInfrastructuresClient

func (c *ClientFactory) NewCloudExadataInfrastructuresClient() *CloudExadataInfrastructuresClient

NewCloudExadataInfrastructuresClient creates a new instance of CloudExadataInfrastructuresClient.

func (*ClientFactory) NewCloudVMClustersClient

func (c *ClientFactory) NewCloudVMClustersClient() *CloudVMClustersClient

NewCloudVMClustersClient creates a new instance of CloudVMClustersClient.

func (*ClientFactory) NewDNSPrivateViewsClient

func (c *ClientFactory) NewDNSPrivateViewsClient() *DNSPrivateViewsClient

NewDNSPrivateViewsClient creates a new instance of DNSPrivateViewsClient.

func (*ClientFactory) NewDNSPrivateZonesClient

func (c *ClientFactory) NewDNSPrivateZonesClient() *DNSPrivateZonesClient

NewDNSPrivateZonesClient creates a new instance of DNSPrivateZonesClient.

func (*ClientFactory) NewDbNodesClient

func (c *ClientFactory) NewDbNodesClient() *DbNodesClient

NewDbNodesClient creates a new instance of DbNodesClient.

func (*ClientFactory) NewDbServersClient

func (c *ClientFactory) NewDbServersClient() *DbServersClient

NewDbServersClient creates a new instance of DbServersClient.

func (*ClientFactory) NewDbSystemShapesClient

func (c *ClientFactory) NewDbSystemShapesClient() *DbSystemShapesClient

NewDbSystemShapesClient creates a new instance of DbSystemShapesClient.

func (*ClientFactory) NewGiVersionsClient

func (c *ClientFactory) NewGiVersionsClient() *GiVersionsClient

NewGiVersionsClient creates a new instance of GiVersionsClient.

func (*ClientFactory) NewOperationsClient

func (c *ClientFactory) NewOperationsClient() *OperationsClient

NewOperationsClient creates a new instance of OperationsClient.

func (*ClientFactory) NewOracleSubscriptionsClient

func (c *ClientFactory) NewOracleSubscriptionsClient() *OracleSubscriptionsClient

NewOracleSubscriptionsClient creates a new instance of OracleSubscriptionsClient.

func (*ClientFactory) NewSystemVersionsClient added in v0.2.0

func (c *ClientFactory) NewSystemVersionsClient() *SystemVersionsClient

NewSystemVersionsClient creates a new instance of SystemVersionsClient.

func (*ClientFactory) NewVirtualNetworkAddressesClient

func (c *ClientFactory) NewVirtualNetworkAddressesClient() *VirtualNetworkAddressesClient

NewVirtualNetworkAddressesClient creates a new instance of VirtualNetworkAddressesClient.

type CloneType

type CloneType string

CloneType - Clone type enum

const (
	// CloneTypeFull - Full clone
	CloneTypeFull CloneType = "Full"
	// CloneTypeMetadata - Metadata only
	CloneTypeMetadata CloneType = "Metadata"
)

func PossibleCloneTypeValues

func PossibleCloneTypeValues() []CloneType

PossibleCloneTypeValues returns the possible values for the CloneType const type.

type CloudAccountDetails

type CloudAccountDetails struct {
	// READ-ONLY; Cloud Account Home region
	CloudAccountHomeRegion *string

	// READ-ONLY; Cloud Account name
	CloudAccountName *string
}

CloudAccountDetails - Cloud Account Details model

func (CloudAccountDetails) MarshalJSON

func (c CloudAccountDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudAccountDetails.

func (*CloudAccountDetails) UnmarshalJSON

func (c *CloudAccountDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloudAccountDetails.

type CloudAccountProvisioningState

type CloudAccountProvisioningState string

CloudAccountProvisioningState - CloudAccountProvisioningState enum

const (
	// CloudAccountProvisioningStateAvailable - Available - State when Oracle cloud account cloud linking is complete and it is
	// available
	CloudAccountProvisioningStateAvailable CloudAccountProvisioningState = "Available"
	// CloudAccountProvisioningStatePending - Pending - Initial state when Oracle cloud account is not configured
	CloudAccountProvisioningStatePending CloudAccountProvisioningState = "Pending"
	// CloudAccountProvisioningStateProvisioning - Provisioning - State when Oracle cloud account is being provisioned
	CloudAccountProvisioningStateProvisioning CloudAccountProvisioningState = "Provisioning"
)

func PossibleCloudAccountProvisioningStateValues

func PossibleCloudAccountProvisioningStateValues() []CloudAccountProvisioningState

PossibleCloudAccountProvisioningStateValues returns the possible values for the CloudAccountProvisioningState const type.

type CloudExadataInfrastructure

type CloudExadataInfrastructure struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// REQUIRED; CloudExadataInfrastructure zones
	Zones []*string

	// The resource-specific properties for this resource.
	Properties *CloudExadataInfrastructureProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

CloudExadataInfrastructure resource definition

func (CloudExadataInfrastructure) MarshalJSON

func (c CloudExadataInfrastructure) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudExadataInfrastructure.

func (*CloudExadataInfrastructure) UnmarshalJSON

func (c *CloudExadataInfrastructure) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloudExadataInfrastructure.

type CloudExadataInfrastructureLifecycleState

type CloudExadataInfrastructureLifecycleState string

CloudExadataInfrastructureLifecycleState - CloudExadataInfrastructureLifecycleState enum

const (
	// CloudExadataInfrastructureLifecycleStateAvailable - Indicates that resource in Available state
	CloudExadataInfrastructureLifecycleStateAvailable CloudExadataInfrastructureLifecycleState = "Available"
	// CloudExadataInfrastructureLifecycleStateFailed - Indicates that resource in Failed state
	CloudExadataInfrastructureLifecycleStateFailed CloudExadataInfrastructureLifecycleState = "Failed"
	// CloudExadataInfrastructureLifecycleStateMaintenanceInProgress - Indicates that resource maintenance in progress state
	CloudExadataInfrastructureLifecycleStateMaintenanceInProgress CloudExadataInfrastructureLifecycleState = "MaintenanceInProgress"
	// CloudExadataInfrastructureLifecycleStateProvisioning - Indicates that resource in Provisioning state
	CloudExadataInfrastructureLifecycleStateProvisioning CloudExadataInfrastructureLifecycleState = "Provisioning"
	// CloudExadataInfrastructureLifecycleStateTerminated - Indicates that resource in Terminated state
	CloudExadataInfrastructureLifecycleStateTerminated CloudExadataInfrastructureLifecycleState = "Terminated"
	// CloudExadataInfrastructureLifecycleStateTerminating - Indicates that resource in Terminating state
	CloudExadataInfrastructureLifecycleStateTerminating CloudExadataInfrastructureLifecycleState = "Terminating"
	// CloudExadataInfrastructureLifecycleStateUpdating - Indicates that resource in Updating state
	CloudExadataInfrastructureLifecycleStateUpdating CloudExadataInfrastructureLifecycleState = "Updating"
)

func PossibleCloudExadataInfrastructureLifecycleStateValues

func PossibleCloudExadataInfrastructureLifecycleStateValues() []CloudExadataInfrastructureLifecycleState

PossibleCloudExadataInfrastructureLifecycleStateValues returns the possible values for the CloudExadataInfrastructureLifecycleState const type.

type CloudExadataInfrastructureListResult

type CloudExadataInfrastructureListResult struct {
	// REQUIRED; The CloudExadataInfrastructure items on this page
	Value []*CloudExadataInfrastructure

	// The link to the next page of items
	NextLink *string
}

CloudExadataInfrastructureListResult - The response of a CloudExadataInfrastructure list operation.

func (CloudExadataInfrastructureListResult) MarshalJSON

func (c CloudExadataInfrastructureListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudExadataInfrastructureListResult.

func (*CloudExadataInfrastructureListResult) UnmarshalJSON

func (c *CloudExadataInfrastructureListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloudExadataInfrastructureListResult.

type CloudExadataInfrastructureProperties

type CloudExadataInfrastructureProperties struct {
	// REQUIRED; The name for the Exadata infrastructure.
	DisplayName *string

	// REQUIRED; The model name of the cloud Exadata infrastructure resource.
	Shape *string

	// The number of compute servers for the cloud Exadata infrastructure.
	ComputeCount *int32

	// The list of customer email addresses that receive information from Oracle about the specified OCI Database service resource.
	// Oracle uses these email addresses to send notifications about planned and
	// unplanned software maintenance updates, information about system hardware, and other information needed by administrators.
	// Up to 10 email addresses can be added to the customer contacts for a cloud
	// Exadata infrastructure instance.
	CustomerContacts []*CustomerContact

	// maintenanceWindow property
	MaintenanceWindow *MaintenanceWindow

	// The number of storage servers for the cloud Exadata infrastructure.
	StorageCount *int32

	// READ-ONLY; The requested number of additional storage servers activated for the Exadata infrastructure.
	ActivatedStorageCount *int32

	// READ-ONLY; The requested number of additional storage servers for the Exadata infrastructure.
	AdditionalStorageCount *int32

	// READ-ONLY; The available storage can be allocated to the cloud Exadata infrastructure resource, in gigabytes (GB).
	AvailableStorageSizeInGbs *int32

	// READ-ONLY; The total number of CPU cores allocated.
	CPUCount *int32

	// READ-ONLY; The quantity of data in the database, in terabytes.
	DataStorageSizeInTbs *float64

	// READ-ONLY; The local node storage to be allocated in GBs.
	DbNodeStorageSizeInGbs *int32

	// READ-ONLY; The software version of the database servers (dom0) in the Exadata infrastructure.
	DbServerVersion *string

	// READ-ONLY; The estimated total time required in minutes for all patching operations (database server, storage server, and
	// network switch patching).
	EstimatedPatchingTime *EstimatedPatchingTime

	// READ-ONLY; The OCID of the last maintenance run.
	LastMaintenanceRunID *string

	// READ-ONLY; Additional information about the current lifecycle state.
	LifecycleDetails *string

	// READ-ONLY; CloudExadataInfrastructure lifecycle state
	LifecycleState *CloudExadataInfrastructureLifecycleState

	// READ-ONLY; The total number of CPU cores available.
	MaxCPUCount *int32

	// READ-ONLY; The total available DATA disk group size.
	MaxDataStorageInTbs *float64

	// READ-ONLY; The total local node storage available in GBs.
	MaxDbNodeStorageSizeInGbs *int32

	// READ-ONLY; The total memory available in GBs.
	MaxMemoryInGbs *int32

	// READ-ONLY; The memory allocated in GBs.
	MemorySizeInGbs *int32

	// READ-ONLY; Monthly Db Server version
	MonthlyDbServerVersion *string

	// READ-ONLY; Monthly Storage Server version
	MonthlyStorageServerVersion *string

	// READ-ONLY; The OCID of the next maintenance run.
	NextMaintenanceRunID *string

	// READ-ONLY; HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.
	OciURL *string

	// READ-ONLY; Exadata infra ocid
	Ocid *string

	// READ-ONLY; CloudExadataInfrastructure provisioning state
	ProvisioningState *AzureResourceProvisioningState

	// READ-ONLY; The software version of the storage servers (cells) in the Exadata infrastructure.
	StorageServerVersion *string

	// READ-ONLY; The date and time the cloud Exadata infrastructure resource was created.
	TimeCreated *string

	// READ-ONLY; The total storage allocated to the cloud Exadata infrastructure resource, in gigabytes (GB).
	TotalStorageSizeInGbs *int32
}

CloudExadataInfrastructureProperties - CloudExadataInfrastructure resource model

func (CloudExadataInfrastructureProperties) MarshalJSON

func (c CloudExadataInfrastructureProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudExadataInfrastructureProperties.

func (*CloudExadataInfrastructureProperties) UnmarshalJSON

func (c *CloudExadataInfrastructureProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloudExadataInfrastructureProperties.

type CloudExadataInfrastructureUpdate

type CloudExadataInfrastructureUpdate struct {
	// The updatable properties of the CloudExadataInfrastructure.
	Properties *CloudExadataInfrastructureUpdateProperties

	// Resource tags.
	Tags map[string]*string

	// CloudExadataInfrastructure zones
	Zones []*string
}

CloudExadataInfrastructureUpdate - The type used for update operations of the CloudExadataInfrastructure.

func (CloudExadataInfrastructureUpdate) MarshalJSON

func (c CloudExadataInfrastructureUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudExadataInfrastructureUpdate.

func (*CloudExadataInfrastructureUpdate) UnmarshalJSON

func (c *CloudExadataInfrastructureUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloudExadataInfrastructureUpdate.

type CloudExadataInfrastructureUpdateProperties

type CloudExadataInfrastructureUpdateProperties struct {
	// The number of compute servers for the cloud Exadata infrastructure.
	ComputeCount *int32

	// The list of customer email addresses that receive information from Oracle about the specified OCI Database service resource.
	// Oracle uses these email addresses to send notifications about planned and
	// unplanned software maintenance updates, information about system hardware, and other information needed by administrators.
	// Up to 10 email addresses can be added to the customer contacts for a cloud
	// Exadata infrastructure instance.
	CustomerContacts []*CustomerContact

	// The name for the Exadata infrastructure.
	DisplayName *string

	// maintenanceWindow property
	MaintenanceWindow *MaintenanceWindow

	// The number of storage servers for the cloud Exadata infrastructure.
	StorageCount *int32
}

CloudExadataInfrastructureUpdateProperties - The updatable properties of the CloudExadataInfrastructure.

func (CloudExadataInfrastructureUpdateProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type CloudExadataInfrastructureUpdateProperties.

func (*CloudExadataInfrastructureUpdateProperties) UnmarshalJSON

func (c *CloudExadataInfrastructureUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloudExadataInfrastructureUpdateProperties.

type CloudExadataInfrastructuresClient

type CloudExadataInfrastructuresClient struct {
	// contains filtered or unexported fields
}

CloudExadataInfrastructuresClient contains the methods for the CloudExadataInfrastructures group. Don't use this type directly, use NewCloudExadataInfrastructuresClient() instead.

func NewCloudExadataInfrastructuresClient

func NewCloudExadataInfrastructuresClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudExadataInfrastructuresClient, error)

NewCloudExadataInfrastructuresClient creates a new instance of CloudExadataInfrastructuresClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*CloudExadataInfrastructuresClient) BeginAddStorageCapacity

BeginAddStorageCapacity - Perform add storage capacity on exadata infra If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudexadatainfrastructurename - CloudExadataInfrastructure name
  • options - CloudExadataInfrastructuresClientBeginAddStorageCapacityOptions contains the optional parameters for the CloudExadataInfrastructuresClient.BeginAddStorageCapacity method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_addStorageCapacity.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCloudExadataInfrastructuresClient().BeginAddStorageCapacity(ctx, "rg000", "infra1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CloudExadataInfrastructure = armoracledatabase.CloudExadataInfrastructure{
	// 	Type: to.Ptr("Oracle.Database/cloudExadataInfrastructures"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.CloudExadataInfrastructureProperties{
	// 		ActivatedStorageCount: to.Ptr[int32](1),
	// 		AdditionalStorageCount: to.Ptr[int32](1),
	// 		AvailableStorageSizeInGbs: to.Ptr[int32](1000),
	// 		ComputeCount: to.Ptr[int32](100),
	// 		CPUCount: to.Ptr[int32](10),
	// 		CustomerContacts: []*armoracledatabase.CustomerContact{
	// 			{
	// 				Email: to.Ptr("noreply@oracle.com"),
	// 		}},
	// 		DataStorageSizeInTbs: to.Ptr[float64](10),
	// 		DbNodeStorageSizeInGbs: to.Ptr[int32](10),
	// 		DbServerVersion: to.Ptr("19.0.0.0"),
	// 		DisplayName: to.Ptr("infra 1"),
	// 		EstimatedPatchingTime: &armoracledatabase.EstimatedPatchingTime{
	// 			EstimatedDbServerPatchingTime: to.Ptr[int32](3000),
	// 			EstimatedNetworkSwitchesPatchingTime: to.Ptr[int32](3000),
	// 			EstimatedStorageServerPatchingTime: to.Ptr[int32](3000),
	// 			TotalEstimatedPatchingTime: to.Ptr[int32](3000),
	// 		},
	// 		LastMaintenanceRunID: to.Ptr("ocid1..aaaaa"),
	// 		LifecycleDetails: to.Ptr("none"),
	// 		MaintenanceWindow: &armoracledatabase.MaintenanceWindow{
	// 			CustomActionTimeoutInMins: to.Ptr[int32](120),
	// 			DaysOfWeek: []*armoracledatabase.DayOfWeek{
	// 				{
	// 					Name: to.Ptr(armoracledatabase.DayOfWeekNameMonday),
	// 			}},
	// 			HoursOfDay: []*int32{
	// 				to.Ptr[int32](0)},
	// 				IsCustomActionTimeoutEnabled: to.Ptr(true),
	// 				IsMonthlyPatchingEnabled: to.Ptr(true),
	// 				LeadTimeInWeeks: to.Ptr[int32](0),
	// 				Months: []*armoracledatabase.Month{
	// 					{
	// 						Name: to.Ptr(armoracledatabase.MonthNameJanuary),
	// 				}},
	// 				PatchingMode: to.Ptr(armoracledatabase.PatchingModeRolling),
	// 				Preference: to.Ptr(armoracledatabase.PreferenceNoPreference),
	// 				WeeksOfMonth: []*int32{
	// 					to.Ptr[int32](0)},
	// 				},
	// 				MaxCPUCount: to.Ptr[int32](100),
	// 				MaxDataStorageInTbs: to.Ptr[float64](1000),
	// 				MaxDbNodeStorageSizeInGbs: to.Ptr[int32](10),
	// 				MaxMemoryInGbs: to.Ptr[int32](1000),
	// 				MemorySizeInGbs: to.Ptr[int32](100),
	// 				MonthlyDbServerVersion: to.Ptr("aaaa"),
	// 				MonthlyStorageServerVersion: to.Ptr("aaaa"),
	// 				NextMaintenanceRunID: to.Ptr("ocid1..aaaaaa"),
	// 				OciURL: to.Ptr("https://url"),
	// 				Ocid: to.Ptr("ocid1..aaaaaa"),
	// 				ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 				Shape: to.Ptr("EXADATA.X9M"),
	// 				StorageCount: to.Ptr[int32](10),
	// 				StorageServerVersion: to.Ptr("0.0"),
	// 				TimeCreated: to.Ptr("2023-02-01T01:01:00"),
	// 				TotalStorageSizeInGbs: to.Ptr[int32](1000),
	// 			},
	// 			Zones: []*string{
	// 				to.Ptr("1")},
	// 			}
}
Output:

func (*CloudExadataInfrastructuresClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a CloudExadataInfrastructure If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudexadatainfrastructurename - CloudExadataInfrastructure name
  • resource - Resource create parameters.
  • options - CloudExadataInfrastructuresClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudExadataInfrastructuresClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCloudExadataInfrastructuresClient().BeginCreateOrUpdate(ctx, "rg000", "infra1", armoracledatabase.CloudExadataInfrastructure{
		Location: to.Ptr("eastus"),
		Tags: map[string]*string{
			"tagK1": to.Ptr("tagV1"),
		},
		Properties: &armoracledatabase.CloudExadataInfrastructureProperties{
			ComputeCount: to.Ptr[int32](100),
			DisplayName:  to.Ptr("infra 1"),
			Shape:        to.Ptr("EXADATA.X9M"),
			StorageCount: to.Ptr[int32](10),
		},
		Zones: []*string{
			to.Ptr("1")},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CloudExadataInfrastructure = armoracledatabase.CloudExadataInfrastructure{
	// 	Type: to.Ptr("Oracle.Database/cloudExadataInfrastructures"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.CloudExadataInfrastructureProperties{
	// 		ActivatedStorageCount: to.Ptr[int32](1),
	// 		AdditionalStorageCount: to.Ptr[int32](1),
	// 		AvailableStorageSizeInGbs: to.Ptr[int32](1000),
	// 		ComputeCount: to.Ptr[int32](100),
	// 		CPUCount: to.Ptr[int32](10),
	// 		CustomerContacts: []*armoracledatabase.CustomerContact{
	// 			{
	// 				Email: to.Ptr("noreply@oracle.com"),
	// 		}},
	// 		DataStorageSizeInTbs: to.Ptr[float64](10),
	// 		DbNodeStorageSizeInGbs: to.Ptr[int32](10),
	// 		DbServerVersion: to.Ptr("19.0.0.0"),
	// 		DisplayName: to.Ptr("infra 1"),
	// 		EstimatedPatchingTime: &armoracledatabase.EstimatedPatchingTime{
	// 			EstimatedDbServerPatchingTime: to.Ptr[int32](3000),
	// 			EstimatedNetworkSwitchesPatchingTime: to.Ptr[int32](3000),
	// 			EstimatedStorageServerPatchingTime: to.Ptr[int32](3000),
	// 			TotalEstimatedPatchingTime: to.Ptr[int32](3000),
	// 		},
	// 		LastMaintenanceRunID: to.Ptr("ocid1..aaaaa"),
	// 		LifecycleDetails: to.Ptr("none"),
	// 		MaintenanceWindow: &armoracledatabase.MaintenanceWindow{
	// 			CustomActionTimeoutInMins: to.Ptr[int32](120),
	// 			DaysOfWeek: []*armoracledatabase.DayOfWeek{
	// 				{
	// 					Name: to.Ptr(armoracledatabase.DayOfWeekNameMonday),
	// 			}},
	// 			HoursOfDay: []*int32{
	// 				to.Ptr[int32](0)},
	// 				IsCustomActionTimeoutEnabled: to.Ptr(true),
	// 				IsMonthlyPatchingEnabled: to.Ptr(true),
	// 				LeadTimeInWeeks: to.Ptr[int32](0),
	// 				Months: []*armoracledatabase.Month{
	// 					{
	// 						Name: to.Ptr(armoracledatabase.MonthNameJanuary),
	// 				}},
	// 				PatchingMode: to.Ptr(armoracledatabase.PatchingModeRolling),
	// 				Preference: to.Ptr(armoracledatabase.PreferenceNoPreference),
	// 				WeeksOfMonth: []*int32{
	// 					to.Ptr[int32](0)},
	// 				},
	// 				MaxCPUCount: to.Ptr[int32](100),
	// 				MaxDataStorageInTbs: to.Ptr[float64](1000),
	// 				MaxDbNodeStorageSizeInGbs: to.Ptr[int32](10),
	// 				MaxMemoryInGbs: to.Ptr[int32](1000),
	// 				MemorySizeInGbs: to.Ptr[int32](100),
	// 				MonthlyDbServerVersion: to.Ptr("aaaa"),
	// 				MonthlyStorageServerVersion: to.Ptr("aaaa"),
	// 				NextMaintenanceRunID: to.Ptr("ocid1..aaaaaa"),
	// 				OciURL: to.Ptr("https://url"),
	// 				Ocid: to.Ptr("ocid1..aaaaaa"),
	// 				ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 				Shape: to.Ptr("EXADATA.X9M"),
	// 				StorageCount: to.Ptr[int32](10),
	// 				StorageServerVersion: to.Ptr("0.0"),
	// 				TimeCreated: to.Ptr("2023-02-01T01:01:00"),
	// 				TotalStorageSizeInGbs: to.Ptr[int32](1000),
	// 			},
	// 			Zones: []*string{
	// 				to.Ptr("1")},
	// 			}
}
Output:

func (*CloudExadataInfrastructuresClient) BeginDelete

BeginDelete - Delete a CloudExadataInfrastructure If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudexadatainfrastructurename - CloudExadataInfrastructure name
  • options - CloudExadataInfrastructuresClientBeginDeleteOptions contains the optional parameters for the CloudExadataInfrastructuresClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCloudExadataInfrastructuresClient().BeginDelete(ctx, "rg000", "infra1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*CloudExadataInfrastructuresClient) BeginUpdate

BeginUpdate - Update a CloudExadataInfrastructure If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudexadatainfrastructurename - CloudExadataInfrastructure name
  • properties - The resource properties to be updated.
  • options - CloudExadataInfrastructuresClientBeginUpdateOptions contains the optional parameters for the CloudExadataInfrastructuresClient.BeginUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_patch.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCloudExadataInfrastructuresClient().BeginUpdate(ctx, "rg000", "infra1", armoracledatabase.CloudExadataInfrastructureUpdate{}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CloudExadataInfrastructure = armoracledatabase.CloudExadataInfrastructure{
	// 	Type: to.Ptr("Oracle.Database/cloudExadataInfrastructures"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.CloudExadataInfrastructureProperties{
	// 		ActivatedStorageCount: to.Ptr[int32](1),
	// 		AdditionalStorageCount: to.Ptr[int32](1),
	// 		AvailableStorageSizeInGbs: to.Ptr[int32](1000),
	// 		ComputeCount: to.Ptr[int32](100),
	// 		CPUCount: to.Ptr[int32](10),
	// 		CustomerContacts: []*armoracledatabase.CustomerContact{
	// 			{
	// 				Email: to.Ptr("noreply@oracle.com"),
	// 		}},
	// 		DataStorageSizeInTbs: to.Ptr[float64](10),
	// 		DbNodeStorageSizeInGbs: to.Ptr[int32](10),
	// 		DbServerVersion: to.Ptr("19.0.0.0"),
	// 		DisplayName: to.Ptr("infra 1"),
	// 		EstimatedPatchingTime: &armoracledatabase.EstimatedPatchingTime{
	// 			EstimatedDbServerPatchingTime: to.Ptr[int32](3000),
	// 			EstimatedNetworkSwitchesPatchingTime: to.Ptr[int32](3000),
	// 			EstimatedStorageServerPatchingTime: to.Ptr[int32](3000),
	// 			TotalEstimatedPatchingTime: to.Ptr[int32](3000),
	// 		},
	// 		LastMaintenanceRunID: to.Ptr("ocid1..aaaaa"),
	// 		LifecycleDetails: to.Ptr("none"),
	// 		MaintenanceWindow: &armoracledatabase.MaintenanceWindow{
	// 			CustomActionTimeoutInMins: to.Ptr[int32](120),
	// 			DaysOfWeek: []*armoracledatabase.DayOfWeek{
	// 				{
	// 					Name: to.Ptr(armoracledatabase.DayOfWeekNameMonday),
	// 			}},
	// 			HoursOfDay: []*int32{
	// 				to.Ptr[int32](0)},
	// 				IsCustomActionTimeoutEnabled: to.Ptr(true),
	// 				IsMonthlyPatchingEnabled: to.Ptr(true),
	// 				LeadTimeInWeeks: to.Ptr[int32](0),
	// 				Months: []*armoracledatabase.Month{
	// 					{
	// 						Name: to.Ptr(armoracledatabase.MonthNameJanuary),
	// 				}},
	// 				PatchingMode: to.Ptr(armoracledatabase.PatchingModeRolling),
	// 				Preference: to.Ptr(armoracledatabase.PreferenceNoPreference),
	// 				WeeksOfMonth: []*int32{
	// 					to.Ptr[int32](0)},
	// 				},
	// 				MaxCPUCount: to.Ptr[int32](100),
	// 				MaxDataStorageInTbs: to.Ptr[float64](1000),
	// 				MaxDbNodeStorageSizeInGbs: to.Ptr[int32](10),
	// 				MaxMemoryInGbs: to.Ptr[int32](1000),
	// 				MemorySizeInGbs: to.Ptr[int32](100),
	// 				MonthlyDbServerVersion: to.Ptr("aaaa"),
	// 				MonthlyStorageServerVersion: to.Ptr("aaaa"),
	// 				NextMaintenanceRunID: to.Ptr("ocid1..aaaaaa"),
	// 				OciURL: to.Ptr("https://url"),
	// 				Ocid: to.Ptr("ocid1..aaaaaa"),
	// 				ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 				Shape: to.Ptr("EXADATA.X9M"),
	// 				StorageCount: to.Ptr[int32](10),
	// 				StorageServerVersion: to.Ptr("0.0"),
	// 				TimeCreated: to.Ptr("2023-02-01T01:01:00"),
	// 				TotalStorageSizeInGbs: to.Ptr[int32](1000),
	// 			},
	// 			Zones: []*string{
	// 				to.Ptr("1")},
	// 			}
}
Output:

func (*CloudExadataInfrastructuresClient) Get

Get - Get a CloudExadataInfrastructure If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudexadatainfrastructurename - CloudExadataInfrastructure name
  • options - CloudExadataInfrastructuresClientGetOptions contains the optional parameters for the CloudExadataInfrastructuresClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewCloudExadataInfrastructuresClient().Get(ctx, "rg000", "infra1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CloudExadataInfrastructure = armoracledatabase.CloudExadataInfrastructure{
	// 	Type: to.Ptr("Oracle.Database/cloudExadataInfrastructures"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.CloudExadataInfrastructureProperties{
	// 		ActivatedStorageCount: to.Ptr[int32](1),
	// 		AdditionalStorageCount: to.Ptr[int32](1),
	// 		AvailableStorageSizeInGbs: to.Ptr[int32](1000),
	// 		ComputeCount: to.Ptr[int32](100),
	// 		CPUCount: to.Ptr[int32](10),
	// 		CustomerContacts: []*armoracledatabase.CustomerContact{
	// 			{
	// 				Email: to.Ptr("noreply@oracle.com"),
	// 		}},
	// 		DataStorageSizeInTbs: to.Ptr[float64](10),
	// 		DbNodeStorageSizeInGbs: to.Ptr[int32](10),
	// 		DbServerVersion: to.Ptr("19.0.0.0"),
	// 		DisplayName: to.Ptr("infra 1"),
	// 		EstimatedPatchingTime: &armoracledatabase.EstimatedPatchingTime{
	// 			EstimatedDbServerPatchingTime: to.Ptr[int32](3000),
	// 			EstimatedNetworkSwitchesPatchingTime: to.Ptr[int32](3000),
	// 			EstimatedStorageServerPatchingTime: to.Ptr[int32](3000),
	// 			TotalEstimatedPatchingTime: to.Ptr[int32](3000),
	// 		},
	// 		LastMaintenanceRunID: to.Ptr("ocid1..aaaaa"),
	// 		LifecycleDetails: to.Ptr("none"),
	// 		MaintenanceWindow: &armoracledatabase.MaintenanceWindow{
	// 			CustomActionTimeoutInMins: to.Ptr[int32](120),
	// 			DaysOfWeek: []*armoracledatabase.DayOfWeek{
	// 				{
	// 					Name: to.Ptr(armoracledatabase.DayOfWeekNameMonday),
	// 			}},
	// 			HoursOfDay: []*int32{
	// 				to.Ptr[int32](0)},
	// 				IsCustomActionTimeoutEnabled: to.Ptr(true),
	// 				IsMonthlyPatchingEnabled: to.Ptr(true),
	// 				LeadTimeInWeeks: to.Ptr[int32](0),
	// 				Months: []*armoracledatabase.Month{
	// 					{
	// 						Name: to.Ptr(armoracledatabase.MonthNameJanuary),
	// 				}},
	// 				PatchingMode: to.Ptr(armoracledatabase.PatchingModeRolling),
	// 				Preference: to.Ptr(armoracledatabase.PreferenceNoPreference),
	// 				WeeksOfMonth: []*int32{
	// 					to.Ptr[int32](0)},
	// 				},
	// 				MaxCPUCount: to.Ptr[int32](100),
	// 				MaxDataStorageInTbs: to.Ptr[float64](1000),
	// 				MaxDbNodeStorageSizeInGbs: to.Ptr[int32](10),
	// 				MaxMemoryInGbs: to.Ptr[int32](1000),
	// 				MemorySizeInGbs: to.Ptr[int32](100),
	// 				MonthlyDbServerVersion: to.Ptr("aaaa"),
	// 				MonthlyStorageServerVersion: to.Ptr("aaaa"),
	// 				NextMaintenanceRunID: to.Ptr("ocid1..aaaaaa"),
	// 				OciURL: to.Ptr("https://url"),
	// 				Ocid: to.Ptr("ocid1..aaaaaa"),
	// 				ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 				Shape: to.Ptr("EXADATA.X9M"),
	// 				StorageCount: to.Ptr[int32](10),
	// 				StorageServerVersion: to.Ptr("0.0"),
	// 				TimeCreated: to.Ptr("2023-02-01T01:01:00"),
	// 				TotalStorageSizeInGbs: to.Ptr[int32](1000),
	// 			},
	// 			Zones: []*string{
	// 				to.Ptr("1")},
	// 			}
}
Output:

func (*CloudExadataInfrastructuresClient) NewListByResourceGroupPager

NewListByResourceGroupPager - List CloudExadataInfrastructure resources by resource group

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - CloudExadataInfrastructuresClientListByResourceGroupOptions contains the optional parameters for the CloudExadataInfrastructuresClient.NewListByResourceGroupPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listByResourceGroup.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewCloudExadataInfrastructuresClient().NewListByResourceGroupPager("rg000", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.CloudExadataInfrastructureListResult = armoracledatabase.CloudExadataInfrastructureListResult{
		// 	Value: []*armoracledatabase.CloudExadataInfrastructure{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/cloudExadataInfrastructures"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"tagK1": to.Ptr("tagV1"),
		// 			},
		// 			Properties: &armoracledatabase.CloudExadataInfrastructureProperties{
		// 				ActivatedStorageCount: to.Ptr[int32](1),
		// 				AdditionalStorageCount: to.Ptr[int32](1),
		// 				AvailableStorageSizeInGbs: to.Ptr[int32](1000),
		// 				ComputeCount: to.Ptr[int32](100),
		// 				CPUCount: to.Ptr[int32](10),
		// 				CustomerContacts: []*armoracledatabase.CustomerContact{
		// 					{
		// 						Email: to.Ptr("noreply@oracle.com"),
		// 				}},
		// 				DataStorageSizeInTbs: to.Ptr[float64](10),
		// 				DbNodeStorageSizeInGbs: to.Ptr[int32](10),
		// 				DbServerVersion: to.Ptr("19.0.0.0"),
		// 				DisplayName: to.Ptr("infra 1"),
		// 				EstimatedPatchingTime: &armoracledatabase.EstimatedPatchingTime{
		// 					EstimatedDbServerPatchingTime: to.Ptr[int32](3000),
		// 					EstimatedNetworkSwitchesPatchingTime: to.Ptr[int32](3000),
		// 					EstimatedStorageServerPatchingTime: to.Ptr[int32](3000),
		// 					TotalEstimatedPatchingTime: to.Ptr[int32](3000),
		// 				},
		// 				LastMaintenanceRunID: to.Ptr("ocid1..aaaaa"),
		// 				LifecycleDetails: to.Ptr("none"),
		// 				MaintenanceWindow: &armoracledatabase.MaintenanceWindow{
		// 					CustomActionTimeoutInMins: to.Ptr[int32](120),
		// 					DaysOfWeek: []*armoracledatabase.DayOfWeek{
		// 						{
		// 							Name: to.Ptr(armoracledatabase.DayOfWeekNameMonday),
		// 					}},
		// 					HoursOfDay: []*int32{
		// 						to.Ptr[int32](0)},
		// 						IsCustomActionTimeoutEnabled: to.Ptr(true),
		// 						IsMonthlyPatchingEnabled: to.Ptr(true),
		// 						LeadTimeInWeeks: to.Ptr[int32](0),
		// 						Months: []*armoracledatabase.Month{
		// 							{
		// 								Name: to.Ptr(armoracledatabase.MonthNameJanuary),
		// 						}},
		// 						PatchingMode: to.Ptr(armoracledatabase.PatchingModeRolling),
		// 						Preference: to.Ptr(armoracledatabase.PreferenceNoPreference),
		// 						WeeksOfMonth: []*int32{
		// 							to.Ptr[int32](0)},
		// 						},
		// 						MaxCPUCount: to.Ptr[int32](100),
		// 						MaxDataStorageInTbs: to.Ptr[float64](1000),
		// 						MaxDbNodeStorageSizeInGbs: to.Ptr[int32](10),
		// 						MaxMemoryInGbs: to.Ptr[int32](1000),
		// 						MemorySizeInGbs: to.Ptr[int32](100),
		// 						MonthlyDbServerVersion: to.Ptr("aaaa"),
		// 						MonthlyStorageServerVersion: to.Ptr("aaaa"),
		// 						NextMaintenanceRunID: to.Ptr("ocid1..aaaaaa"),
		// 						OciURL: to.Ptr("https://url"),
		// 						Ocid: to.Ptr("ocid1..aaaaaa"),
		// 						ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
		// 						Shape: to.Ptr("EXADATA.X9M"),
		// 						StorageCount: to.Ptr[int32](10),
		// 						StorageServerVersion: to.Ptr("0.0"),
		// 						TimeCreated: to.Ptr("2023-02-01T01:01:00"),
		// 						TotalStorageSizeInGbs: to.Ptr[int32](1000),
		// 					},
		// 					Zones: []*string{
		// 						to.Ptr("1")},
		// 				}},
		// 			}
	}
}
Output:

func (*CloudExadataInfrastructuresClient) NewListBySubscriptionPager

NewListBySubscriptionPager - List CloudExadataInfrastructure resources by subscription ID

Generated from API version 2023-09-01

  • options - CloudExadataInfrastructuresClientListBySubscriptionOptions contains the optional parameters for the CloudExadataInfrastructuresClient.NewListBySubscriptionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listBySubscription.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewCloudExadataInfrastructuresClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.CloudExadataInfrastructureListResult = armoracledatabase.CloudExadataInfrastructureListResult{
		// 	Value: []*armoracledatabase.CloudExadataInfrastructure{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/cloudExadataInfrastructures"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"tagK1": to.Ptr("tagV1"),
		// 			},
		// 			Properties: &armoracledatabase.CloudExadataInfrastructureProperties{
		// 				ActivatedStorageCount: to.Ptr[int32](1),
		// 				AdditionalStorageCount: to.Ptr[int32](1),
		// 				AvailableStorageSizeInGbs: to.Ptr[int32](1000),
		// 				ComputeCount: to.Ptr[int32](100),
		// 				CPUCount: to.Ptr[int32](10),
		// 				CustomerContacts: []*armoracledatabase.CustomerContact{
		// 					{
		// 						Email: to.Ptr("noreply@oracle.com"),
		// 				}},
		// 				DataStorageSizeInTbs: to.Ptr[float64](10),
		// 				DbNodeStorageSizeInGbs: to.Ptr[int32](10),
		// 				DbServerVersion: to.Ptr("19.0.0.0"),
		// 				DisplayName: to.Ptr("infra 1"),
		// 				EstimatedPatchingTime: &armoracledatabase.EstimatedPatchingTime{
		// 					EstimatedDbServerPatchingTime: to.Ptr[int32](3000),
		// 					EstimatedNetworkSwitchesPatchingTime: to.Ptr[int32](3000),
		// 					EstimatedStorageServerPatchingTime: to.Ptr[int32](3000),
		// 					TotalEstimatedPatchingTime: to.Ptr[int32](3000),
		// 				},
		// 				LastMaintenanceRunID: to.Ptr("ocid1..aaaaa"),
		// 				LifecycleDetails: to.Ptr("none"),
		// 				MaintenanceWindow: &armoracledatabase.MaintenanceWindow{
		// 					CustomActionTimeoutInMins: to.Ptr[int32](120),
		// 					DaysOfWeek: []*armoracledatabase.DayOfWeek{
		// 						{
		// 							Name: to.Ptr(armoracledatabase.DayOfWeekNameMonday),
		// 					}},
		// 					HoursOfDay: []*int32{
		// 						to.Ptr[int32](0)},
		// 						IsCustomActionTimeoutEnabled: to.Ptr(true),
		// 						IsMonthlyPatchingEnabled: to.Ptr(true),
		// 						LeadTimeInWeeks: to.Ptr[int32](0),
		// 						Months: []*armoracledatabase.Month{
		// 							{
		// 								Name: to.Ptr(armoracledatabase.MonthNameJanuary),
		// 						}},
		// 						PatchingMode: to.Ptr(armoracledatabase.PatchingModeRolling),
		// 						Preference: to.Ptr(armoracledatabase.PreferenceNoPreference),
		// 						WeeksOfMonth: []*int32{
		// 							to.Ptr[int32](0)},
		// 						},
		// 						MaxCPUCount: to.Ptr[int32](100),
		// 						MaxDataStorageInTbs: to.Ptr[float64](1000),
		// 						MaxDbNodeStorageSizeInGbs: to.Ptr[int32](10),
		// 						MaxMemoryInGbs: to.Ptr[int32](1000),
		// 						MemorySizeInGbs: to.Ptr[int32](100),
		// 						MonthlyDbServerVersion: to.Ptr("aaaa"),
		// 						MonthlyStorageServerVersion: to.Ptr("aaaa"),
		// 						NextMaintenanceRunID: to.Ptr("ocid1..aaaaaa"),
		// 						OciURL: to.Ptr("https://url"),
		// 						Ocid: to.Ptr("ocid1..aaaaaa"),
		// 						ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
		// 						Shape: to.Ptr("EXADATA.X9M"),
		// 						StorageCount: to.Ptr[int32](10),
		// 						StorageServerVersion: to.Ptr("0.0"),
		// 						TimeCreated: to.Ptr("2023-02-01T01:01:00"),
		// 						TotalStorageSizeInGbs: to.Ptr[int32](1000),
		// 					},
		// 					Zones: []*string{
		// 						to.Ptr("1")},
		// 				}},
		// 			}
	}
}
Output:

type CloudExadataInfrastructuresClientAddStorageCapacityResponse

type CloudExadataInfrastructuresClientAddStorageCapacityResponse struct {
	// CloudExadataInfrastructure resource definition
	CloudExadataInfrastructure
}

CloudExadataInfrastructuresClientAddStorageCapacityResponse contains the response from method CloudExadataInfrastructuresClient.BeginAddStorageCapacity.

type CloudExadataInfrastructuresClientBeginAddStorageCapacityOptions

type CloudExadataInfrastructuresClientBeginAddStorageCapacityOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CloudExadataInfrastructuresClientBeginAddStorageCapacityOptions contains the optional parameters for the CloudExadataInfrastructuresClient.BeginAddStorageCapacity method.

type CloudExadataInfrastructuresClientBeginCreateOrUpdateOptions

type CloudExadataInfrastructuresClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CloudExadataInfrastructuresClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudExadataInfrastructuresClient.BeginCreateOrUpdate method.

type CloudExadataInfrastructuresClientBeginDeleteOptions

type CloudExadataInfrastructuresClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CloudExadataInfrastructuresClientBeginDeleteOptions contains the optional parameters for the CloudExadataInfrastructuresClient.BeginDelete method.

type CloudExadataInfrastructuresClientBeginUpdateOptions

type CloudExadataInfrastructuresClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CloudExadataInfrastructuresClientBeginUpdateOptions contains the optional parameters for the CloudExadataInfrastructuresClient.BeginUpdate method.

type CloudExadataInfrastructuresClientCreateOrUpdateResponse

type CloudExadataInfrastructuresClientCreateOrUpdateResponse struct {
	// CloudExadataInfrastructure resource definition
	CloudExadataInfrastructure
}

CloudExadataInfrastructuresClientCreateOrUpdateResponse contains the response from method CloudExadataInfrastructuresClient.BeginCreateOrUpdate.

type CloudExadataInfrastructuresClientDeleteResponse

type CloudExadataInfrastructuresClientDeleteResponse struct {
}

CloudExadataInfrastructuresClientDeleteResponse contains the response from method CloudExadataInfrastructuresClient.BeginDelete.

type CloudExadataInfrastructuresClientGetOptions

type CloudExadataInfrastructuresClientGetOptions struct {
}

CloudExadataInfrastructuresClientGetOptions contains the optional parameters for the CloudExadataInfrastructuresClient.Get method.

type CloudExadataInfrastructuresClientGetResponse

type CloudExadataInfrastructuresClientGetResponse struct {
	// CloudExadataInfrastructure resource definition
	CloudExadataInfrastructure
}

CloudExadataInfrastructuresClientGetResponse contains the response from method CloudExadataInfrastructuresClient.Get.

type CloudExadataInfrastructuresClientListByResourceGroupOptions

type CloudExadataInfrastructuresClientListByResourceGroupOptions struct {
}

CloudExadataInfrastructuresClientListByResourceGroupOptions contains the optional parameters for the CloudExadataInfrastructuresClient.NewListByResourceGroupPager method.

type CloudExadataInfrastructuresClientListByResourceGroupResponse

type CloudExadataInfrastructuresClientListByResourceGroupResponse struct {
	// The response of a CloudExadataInfrastructure list operation.
	CloudExadataInfrastructureListResult
}

CloudExadataInfrastructuresClientListByResourceGroupResponse contains the response from method CloudExadataInfrastructuresClient.NewListByResourceGroupPager.

type CloudExadataInfrastructuresClientListBySubscriptionOptions

type CloudExadataInfrastructuresClientListBySubscriptionOptions struct {
}

CloudExadataInfrastructuresClientListBySubscriptionOptions contains the optional parameters for the CloudExadataInfrastructuresClient.NewListBySubscriptionPager method.

type CloudExadataInfrastructuresClientListBySubscriptionResponse

type CloudExadataInfrastructuresClientListBySubscriptionResponse struct {
	// The response of a CloudExadataInfrastructure list operation.
	CloudExadataInfrastructureListResult
}

CloudExadataInfrastructuresClientListBySubscriptionResponse contains the response from method CloudExadataInfrastructuresClient.NewListBySubscriptionPager.

type CloudExadataInfrastructuresClientUpdateResponse

type CloudExadataInfrastructuresClientUpdateResponse struct {
	// CloudExadataInfrastructure resource definition
	CloudExadataInfrastructure
}

CloudExadataInfrastructuresClientUpdateResponse contains the response from method CloudExadataInfrastructuresClient.BeginUpdate.

type CloudVMCluster

type CloudVMCluster struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// The resource-specific properties for this resource.
	Properties *CloudVMClusterProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

CloudVMCluster - CloudVmCluster resource definition

func (CloudVMCluster) MarshalJSON

func (c CloudVMCluster) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudVMCluster.

func (*CloudVMCluster) UnmarshalJSON

func (c *CloudVMCluster) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloudVMCluster.

type CloudVMClusterLifecycleState

type CloudVMClusterLifecycleState string

CloudVMClusterLifecycleState - Cloud VM Cluster lifecycle state enum

const (
	// CloudVMClusterLifecycleStateAvailable - Indicates that resource in Available state
	CloudVMClusterLifecycleStateAvailable CloudVMClusterLifecycleState = "Available"
	// CloudVMClusterLifecycleStateFailed - Indicates that resource in Failed state
	CloudVMClusterLifecycleStateFailed CloudVMClusterLifecycleState = "Failed"
	// CloudVMClusterLifecycleStateMaintenanceInProgress - Indicates that resource Maintenance in progress state
	CloudVMClusterLifecycleStateMaintenanceInProgress CloudVMClusterLifecycleState = "MaintenanceInProgress"
	// CloudVMClusterLifecycleStateProvisioning - Indicates that resource in Provisioning state
	CloudVMClusterLifecycleStateProvisioning CloudVMClusterLifecycleState = "Provisioning"
	// CloudVMClusterLifecycleStateTerminated - Indicates that resource in Terminated state
	CloudVMClusterLifecycleStateTerminated CloudVMClusterLifecycleState = "Terminated"
	// CloudVMClusterLifecycleStateTerminating - Indicates that resource in Terminating state
	CloudVMClusterLifecycleStateTerminating CloudVMClusterLifecycleState = "Terminating"
	// CloudVMClusterLifecycleStateUpdating - Indicates that resource in Updating state
	CloudVMClusterLifecycleStateUpdating CloudVMClusterLifecycleState = "Updating"
)

func PossibleCloudVMClusterLifecycleStateValues

func PossibleCloudVMClusterLifecycleStateValues() []CloudVMClusterLifecycleState

PossibleCloudVMClusterLifecycleStateValues returns the possible values for the CloudVMClusterLifecycleState const type.

type CloudVMClusterListResult

type CloudVMClusterListResult struct {
	// REQUIRED; The CloudVmCluster items on this page
	Value []*CloudVMCluster

	// The link to the next page of items
	NextLink *string
}

CloudVMClusterListResult - The response of a CloudVmCluster list operation.

func (CloudVMClusterListResult) MarshalJSON

func (c CloudVMClusterListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudVMClusterListResult.

func (*CloudVMClusterListResult) UnmarshalJSON

func (c *CloudVMClusterListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloudVMClusterListResult.

type CloudVMClusterProperties

type CloudVMClusterProperties struct {
	// REQUIRED; The number of CPU cores enabled on the cloud VM cluster.
	CPUCoreCount *int32

	// REQUIRED; Cloud Exadata Infrastructure ID
	CloudExadataInfrastructureID *string

	// REQUIRED; Display Name
	DisplayName *string

	// REQUIRED; Oracle Grid Infrastructure (GI) software version
	GiVersion *string

	// REQUIRED; The hostname for the cloud VM cluster.
	Hostname *string

	// REQUIRED; The public key portion of one or more key pairs used for SSH access to the cloud VM cluster.
	SSHPublicKeys []*string

	// REQUIRED; Client subnet
	SubnetID *string

	// REQUIRED; VNET for network connectivity
	VnetID *string

	// Client OCI backup subnet CIDR, default is 192.168.252.0/22
	BackupSubnetCidr *string

	// The cluster name for cloud VM cluster. The cluster name must begin with an alphabetic character, and may contain hyphens
	// (-). Underscores (_) are not permitted. The cluster name can be no longer than
	// 11 characters and is not case sensitive.
	ClusterName *string

	// The list of compute servers to be added to the cloud VM cluster.
	ComputeNodes []*string

	// Indicates user preferences for the various diagnostic collection options for the VM cluster/Cloud VM cluster/VMBM DBCS.
	DataCollectionOptions *DataCollectionOptions

	// The percentage assigned to DATA storage (user data and database files). The remaining percentage is assigned to RECO storage
	// (database redo logs, archive logs, and recovery manager backups). Accepted
	// values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See Storage Configuration [/Content/Database/Concepts/exaoverview.htm#Exadata]
	// in the Exadata documentation for
	// details on the impact of the configuration settings on storage.
	DataStoragePercentage *int32

	// The data disk group size to be allocated in TBs.
	DataStorageSizeInTbs *float64

	// The local node storage to be allocated in GBs.
	DbNodeStorageSizeInGbs *int32

	// The list of DB servers.
	DbServers []*string

	// The domain name for the cloud VM cluster.
	Domain *string

	// If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on
	// local Exadata storage is not available in the cloud VM cluster.
	IsLocalBackupEnabled *bool

	// If true, sparse disk group is configured for the cloud VM cluster. If false, sparse disk group is not created.
	IsSparseDiskgroupEnabled *bool

	// The Oracle license model that applies to the cloud VM cluster. The default is LICENSE_INCLUDED.
	LicenseModel *LicenseModel

	// The memory to be allocated in GBs.
	MemorySizeInGbs *int32

	// CIDR blocks for additional NSG ingress rules. The VNET CIDRs used to provision the VM Cluster will be added by default.
	NsgCidrs []*NsgCidr

	// The number of OCPU cores to enable on the cloud VM cluster. Only 1 decimal place is allowed for the fractional part.
	OcpuCount *float32

	// The TCP Single Client Access Name (SCAN) port. The default port is 1521.
	ScanListenerPortTCP *int32

	// The TCPS Single Client Access Name (SCAN) port. The default port is 2484.
	ScanListenerPortTCPSSL *int32

	// The data disk group size to be allocated in GBs per VM.
	StorageSizeInGbs *int32

	// Operating system version of the image.
	SystemVersion *string

	// The time zone of the cloud VM cluster. For details, see Exadata Infrastructure Time Zones [/Content/Database/References/timezones.htm].
	TimeZone *string

	// The OCID of the zone the cloud VM cluster is associated with.
	ZoneID *string

	// READ-ONLY; Cluster compartmentId
	CompartmentID *string

	// READ-ONLY; The type of redundancy configured for the cloud Vm cluster. NORMAL is 2-way redundancy. HIGH is 3-way redundancy.
	DiskRedundancy *DiskRedundancy

	// READ-ONLY; iormConfigCache details for cloud VM cluster.
	IormConfigCache *ExadataIormConfig

	// READ-ONLY; The OCID of the last maintenance update history entry.
	LastUpdateHistoryEntryID *string

	// READ-ONLY; Additional information about the current lifecycle state.
	LifecycleDetails *string

	// READ-ONLY; CloudVmCluster lifecycle state
	LifecycleState *CloudVMClusterLifecycleState

	// READ-ONLY; The port number configured for the listener on the cloud VM cluster.
	ListenerPort *int64

	// READ-ONLY; The number of nodes in the cloud VM cluster.
	NodeCount *int32

	// READ-ONLY; HTTPS link to OCI Network Security Group exposed to Azure Customer via the Azure Interface.
	NsgURL *string

	// READ-ONLY; HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.
	OciURL *string

	// READ-ONLY; Cloud VM Cluster ocid
	Ocid *string

	// READ-ONLY; CloudVmCluster provisioning state
	ProvisioningState *AzureResourceProvisioningState

	// READ-ONLY; The FQDN of the DNS record for the SCAN IP addresses that are associated with the cloud VM cluster.
	ScanDNSName *string

	// READ-ONLY; The OCID of the DNS record for the SCAN IP addresses that are associated with the cloud VM cluster.
	ScanDNSRecordID *string

	// READ-ONLY; The Single Client Access Name (SCAN) IP addresses associated with the cloud VM cluster. SCAN IP addresses are
	// typically used for load balancing and are not assigned to any interface. Oracle
	// Clusterware directs the requests to the appropriate nodes in the cluster. Note: For a single-node DB system, this list
	// is empty.
	ScanIPIDs []*string

	// READ-ONLY; The model name of the Exadata hardware running the cloud VM cluster.
	Shape *string

	// READ-ONLY; Cluster subnet ocid
	SubnetOcid *string

	// READ-ONLY; The date and time that the cloud VM cluster was created.
	TimeCreated *time.Time

	// READ-ONLY; The virtual IP (VIP) addresses associated with the cloud VM cluster. The Cluster Ready Services (CRS) creates
	// and maintains one VIP address for each node in the Exadata Cloud Service instance to
	// enable failover. If one node fails, the VIP is reassigned to another active node in the cluster. Note: For a single-node
	// DB system, this list is empty.
	VipIDs []*string
}

CloudVMClusterProperties - CloudVmCluster resource model

func (CloudVMClusterProperties) MarshalJSON

func (c CloudVMClusterProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudVMClusterProperties.

func (*CloudVMClusterProperties) UnmarshalJSON

func (c *CloudVMClusterProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloudVMClusterProperties.

type CloudVMClusterUpdate

type CloudVMClusterUpdate struct {
	// The updatable properties of the CloudVmCluster.
	Properties *CloudVMClusterUpdateProperties

	// Resource tags.
	Tags map[string]*string
}

CloudVMClusterUpdate - The type used for update operations of the CloudVmCluster.

func (CloudVMClusterUpdate) MarshalJSON

func (c CloudVMClusterUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudVMClusterUpdate.

func (*CloudVMClusterUpdate) UnmarshalJSON

func (c *CloudVMClusterUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloudVMClusterUpdate.

type CloudVMClusterUpdateProperties

type CloudVMClusterUpdateProperties struct {
	// The number of CPU cores enabled on the cloud VM cluster.
	CPUCoreCount *int32

	// The list of compute servers to be added to the cloud VM cluster.
	ComputeNodes []*string

	// Indicates user preferences for the various diagnostic collection options for the VM cluster/Cloud VM cluster/VMBM DBCS.
	DataCollectionOptions *DataCollectionOptions

	// The data disk group size to be allocated in TBs.
	DataStorageSizeInTbs *float64

	// The local node storage to be allocated in GBs.
	DbNodeStorageSizeInGbs *int32

	// Display Name
	DisplayName *string

	// The Oracle license model that applies to the cloud VM cluster. The default is LICENSE_INCLUDED.
	LicenseModel *LicenseModel

	// The memory to be allocated in GBs.
	MemorySizeInGbs *int32

	// The number of OCPU cores to enable on the cloud VM cluster. Only 1 decimal place is allowed for the fractional part.
	OcpuCount *float32

	// The public key portion of one or more key pairs used for SSH access to the cloud VM cluster.
	SSHPublicKeys []*string

	// The data disk group size to be allocated in GBs per VM.
	StorageSizeInGbs *int32
}

CloudVMClusterUpdateProperties - The updatable properties of the CloudVmCluster.

func (CloudVMClusterUpdateProperties) MarshalJSON

func (c CloudVMClusterUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudVMClusterUpdateProperties.

func (*CloudVMClusterUpdateProperties) UnmarshalJSON

func (c *CloudVMClusterUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CloudVMClusterUpdateProperties.

type CloudVMClustersClient

type CloudVMClustersClient struct {
	// contains filtered or unexported fields
}

CloudVMClustersClient contains the methods for the CloudVMClusters group. Don't use this type directly, use NewCloudVMClustersClient() instead.

func NewCloudVMClustersClient

func NewCloudVMClustersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CloudVMClustersClient, error)

NewCloudVMClustersClient creates a new instance of CloudVMClustersClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*CloudVMClustersClient) BeginAddVMs

func (client *CloudVMClustersClient) BeginAddVMs(ctx context.Context, resourceGroupName string, cloudvmclustername string, body AddRemoveDbNode, options *CloudVMClustersClientBeginAddVMsOptions) (*runtime.Poller[CloudVMClustersClientAddVMsResponse], error)

BeginAddVMs - Add VMs to the VM Cluster If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • body - The content of the action request
  • options - CloudVMClustersClientBeginAddVMsOptions contains the optional parameters for the CloudVMClustersClient.BeginAddVMs method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_addVms.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCloudVMClustersClient().BeginAddVMs(ctx, "rg000", "cluster1", armoracledatabase.AddRemoveDbNode{
		DbServers: []*string{
			to.Ptr("ocid1..aaaa"),
			to.Ptr("ocid1..aaaaaa")},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CloudVMCluster = armoracledatabase.CloudVMCluster{
	// 	Type: to.Ptr("Oracle.Database/cloudVmClusters"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.CloudVMClusterProperties{
	// 		CloudExadataInfrastructureID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
	// 		ClusterName: to.Ptr("cluster1"),
	// 		CompartmentID: to.Ptr("ocid1..aaaaaa"),
	// 		CPUCoreCount: to.Ptr[int32](10),
	// 		DataCollectionOptions: &armoracledatabase.DataCollectionOptions{
	// 			IsDiagnosticsEventsEnabled: to.Ptr(false),
	// 			IsHealthMonitoringEnabled: to.Ptr(false),
	// 			IsIncidentLogsEnabled: to.Ptr(false),
	// 		},
	// 		DataStoragePercentage: to.Ptr[int32](80),
	// 		DataStorageSizeInTbs: to.Ptr[float64](10),
	// 		DbNodeStorageSizeInGbs: to.Ptr[int32](100),
	// 		DbServers: []*string{
	// 			to.Ptr("ocid1..aaaa")},
	// 			DiskRedundancy: to.Ptr(armoracledatabase.DiskRedundancyHigh),
	// 			DisplayName: to.Ptr("cluster 1"),
	// 			Domain: to.Ptr("domain1"),
	// 			GiVersion: to.Ptr("19.0.0.0"),
	// 			Hostname: to.Ptr("hostname1"),
	// 			IormConfigCache: &armoracledatabase.ExadataIormConfig{
	// 				DbPlans: []*armoracledatabase.DbIormConfig{
	// 					{
	// 						DbName: to.Ptr("db1"),
	// 						FlashCacheLimit: to.Ptr("none"),
	// 						Share: to.Ptr[int32](32),
	// 				}},
	// 				LifecycleDetails: to.Ptr("Disabled"),
	// 				LifecycleState: to.Ptr(armoracledatabase.IormLifecycleStateDisabled),
	// 				Objective: to.Ptr(armoracledatabase.ObjectiveLowLatency),
	// 			},
	// 			IsLocalBackupEnabled: to.Ptr(false),
	// 			IsSparseDiskgroupEnabled: to.Ptr(false),
	// 			LastUpdateHistoryEntryID: to.Ptr("none"),
	// 			LicenseModel: to.Ptr(armoracledatabase.LicenseModelLicenseIncluded),
	// 			LifecycleDetails: to.Ptr("success"),
	// 			ListenerPort: to.Ptr[int64](1050),
	// 			MemorySizeInGbs: to.Ptr[int32](1000),
	// 			NodeCount: to.Ptr[int32](100),
	// 			OciURL: to.Ptr("https://fake"),
	// 			Ocid: to.Ptr("ocid1..aaaa"),
	// 			OcpuCount: to.Ptr[float32](100),
	// 			ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 			ScanDNSName: to.Ptr("dbdns1"),
	// 			ScanDNSRecordID: to.Ptr("scandns1"),
	// 			ScanIPIDs: []*string{
	// 				to.Ptr("10.0.0.1")},
	// 				ScanListenerPortTCP: to.Ptr[int32](1050),
	// 				ScanListenerPortTCPSSL: to.Ptr[int32](1025),
	// 				Shape: to.Ptr("EXADATA.X9M"),
	// 				SSHPublicKeys: []*string{
	// 					to.Ptr("ssh-key 1")},
	// 					StorageSizeInGbs: to.Ptr[int32](1000),
	// 					SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 					SubnetOcid: to.Ptr("ocid1..aaaaaa"),
	// 					SystemVersion: to.Ptr("v1"),
	// 					TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-22T02:18:35.683Z"); return t}()),
	// 					TimeZone: to.Ptr("UTC"),
	// 					VipIDs: []*string{
	// 						to.Ptr("10.0.1.3")},
	// 						VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 						ZoneID: to.Ptr("ocid1..aaaa"),
	// 					},
	// 				}
}
Output:

func (*CloudVMClustersClient) BeginCreateOrUpdate

func (client *CloudVMClustersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, cloudvmclustername string, resource CloudVMCluster, options *CloudVMClustersClientBeginCreateOrUpdateOptions) (*runtime.Poller[CloudVMClustersClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create a CloudVmCluster If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • resource - Resource create parameters.
  • options - CloudVMClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudVMClustersClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCloudVMClustersClient().BeginCreateOrUpdate(ctx, "rg000", "cluster1", armoracledatabase.CloudVMCluster{
		Location: to.Ptr("eastus"),
		Tags: map[string]*string{
			"tagK1": to.Ptr("tagV1"),
		},
		Properties: &armoracledatabase.CloudVMClusterProperties{
			BackupSubnetCidr:             to.Ptr("172.17.5.0/24"),
			CloudExadataInfrastructureID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
			ClusterName:                  to.Ptr("cluster1"),
			CPUCoreCount:                 to.Ptr[int32](2),
			DataCollectionOptions: &armoracledatabase.DataCollectionOptions{
				IsDiagnosticsEventsEnabled: to.Ptr(false),
				IsHealthMonitoringEnabled:  to.Ptr(false),
				IsIncidentLogsEnabled:      to.Ptr(false),
			},
			DataStoragePercentage:  to.Ptr[int32](100),
			DataStorageSizeInTbs:   to.Ptr[float64](1000),
			DbNodeStorageSizeInGbs: to.Ptr[int32](1000),
			DbServers: []*string{
				to.Ptr("ocid1..aaaa")},
			DisplayName:              to.Ptr("cluster 1"),
			Domain:                   to.Ptr("domain1"),
			GiVersion:                to.Ptr("19.0.0.0"),
			Hostname:                 to.Ptr("hostname1"),
			IsLocalBackupEnabled:     to.Ptr(false),
			IsSparseDiskgroupEnabled: to.Ptr(false),
			LicenseModel:             to.Ptr(armoracledatabase.LicenseModelLicenseIncluded),
			MemorySizeInGbs:          to.Ptr[int32](1000),
			NsgCidrs: []*armoracledatabase.NsgCidr{
				{
					DestinationPortRange: &armoracledatabase.PortRange{
						Max: to.Ptr[int32](1522),
						Min: to.Ptr[int32](1520),
					},
					Source: to.Ptr("10.0.0.0/16"),
				},
				{
					Source: to.Ptr("10.10.0.0/24"),
				}},
			OcpuCount:              to.Ptr[float32](3),
			ScanListenerPortTCP:    to.Ptr[int32](1050),
			ScanListenerPortTCPSSL: to.Ptr[int32](1025),
			SSHPublicKeys: []*string{
				to.Ptr("ssh-key 1")},
			SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
			TimeZone: to.Ptr("UTC"),
			VnetID:   to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CloudVMCluster = armoracledatabase.CloudVMCluster{
	// 	Type: to.Ptr("Oracle.Database/cloudVmClusters"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.CloudVMClusterProperties{
	// 		BackupSubnetCidr: to.Ptr("172.17.5.0/24"),
	// 		CloudExadataInfrastructureID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
	// 		ClusterName: to.Ptr("cluster1"),
	// 		CompartmentID: to.Ptr("ocid1..aaaaaa"),
	// 		CPUCoreCount: to.Ptr[int32](10),
	// 		DataCollectionOptions: &armoracledatabase.DataCollectionOptions{
	// 			IsDiagnosticsEventsEnabled: to.Ptr(false),
	// 			IsHealthMonitoringEnabled: to.Ptr(false),
	// 			IsIncidentLogsEnabled: to.Ptr(false),
	// 		},
	// 		DataStoragePercentage: to.Ptr[int32](80),
	// 		DataStorageSizeInTbs: to.Ptr[float64](10),
	// 		DbNodeStorageSizeInGbs: to.Ptr[int32](100),
	// 		DbServers: []*string{
	// 			to.Ptr("ocid1..aaaa")},
	// 			DiskRedundancy: to.Ptr(armoracledatabase.DiskRedundancyHigh),
	// 			DisplayName: to.Ptr("cluster 1"),
	// 			Domain: to.Ptr("domain1"),
	// 			GiVersion: to.Ptr("19.0.0.0"),
	// 			Hostname: to.Ptr("hostname1"),
	// 			IormConfigCache: &armoracledatabase.ExadataIormConfig{
	// 				DbPlans: []*armoracledatabase.DbIormConfig{
	// 					{
	// 						DbName: to.Ptr("db1"),
	// 						FlashCacheLimit: to.Ptr("none"),
	// 						Share: to.Ptr[int32](32),
	// 				}},
	// 				LifecycleDetails: to.Ptr("Disabled"),
	// 				LifecycleState: to.Ptr(armoracledatabase.IormLifecycleStateDisabled),
	// 				Objective: to.Ptr(armoracledatabase.ObjectiveLowLatency),
	// 			},
	// 			IsLocalBackupEnabled: to.Ptr(false),
	// 			IsSparseDiskgroupEnabled: to.Ptr(false),
	// 			LastUpdateHistoryEntryID: to.Ptr("none"),
	// 			LicenseModel: to.Ptr(armoracledatabase.LicenseModelLicenseIncluded),
	// 			LifecycleDetails: to.Ptr("success"),
	// 			ListenerPort: to.Ptr[int64](1050),
	// 			MemorySizeInGbs: to.Ptr[int32](1000),
	// 			NodeCount: to.Ptr[int32](100),
	// 			OciURL: to.Ptr("https://fake"),
	// 			Ocid: to.Ptr("ocid1..aaaa"),
	// 			OcpuCount: to.Ptr[float32](100),
	// 			ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 			ScanDNSName: to.Ptr("dbdns1"),
	// 			ScanDNSRecordID: to.Ptr("scandns1"),
	// 			ScanIPIDs: []*string{
	// 				to.Ptr("10.0.0.1")},
	// 				ScanListenerPortTCP: to.Ptr[int32](1050),
	// 				ScanListenerPortTCPSSL: to.Ptr[int32](1025),
	// 				Shape: to.Ptr("EXADATA.X9M"),
	// 				SSHPublicKeys: []*string{
	// 					to.Ptr("ssh-key 1")},
	// 					StorageSizeInGbs: to.Ptr[int32](1000),
	// 					SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 					SubnetOcid: to.Ptr("ocid1..aaaaaa"),
	// 					SystemVersion: to.Ptr("v1"),
	// 					TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-22T02:18:35.683Z"); return t}()),
	// 					TimeZone: to.Ptr("UTC"),
	// 					VipIDs: []*string{
	// 						to.Ptr("10.0.1.3")},
	// 						VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 						ZoneID: to.Ptr("ocid1..aaaa"),
	// 					},
	// 				}
}
Output:

func (*CloudVMClustersClient) BeginDelete

func (client *CloudVMClustersClient) BeginDelete(ctx context.Context, resourceGroupName string, cloudvmclustername string, options *CloudVMClustersClientBeginDeleteOptions) (*runtime.Poller[CloudVMClustersClientDeleteResponse], error)

BeginDelete - Delete a CloudVmCluster If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • options - CloudVMClustersClientBeginDeleteOptions contains the optional parameters for the CloudVMClustersClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCloudVMClustersClient().BeginDelete(ctx, "rg000", "cluster1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*CloudVMClustersClient) BeginRemoveVMs

func (client *CloudVMClustersClient) BeginRemoveVMs(ctx context.Context, resourceGroupName string, cloudvmclustername string, body AddRemoveDbNode, options *CloudVMClustersClientBeginRemoveVMsOptions) (*runtime.Poller[CloudVMClustersClientRemoveVMsResponse], error)

BeginRemoveVMs - Remove VMs from the VM Cluster If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • body - The content of the action request
  • options - CloudVMClustersClientBeginRemoveVMsOptions contains the optional parameters for the CloudVMClustersClient.BeginRemoveVMs method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_removeVms.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCloudVMClustersClient().BeginRemoveVMs(ctx, "rg000", "cluster1", armoracledatabase.AddRemoveDbNode{
		DbServers: []*string{
			to.Ptr("ocid1..aaaa")},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CloudVMCluster = armoracledatabase.CloudVMCluster{
	// 	Type: to.Ptr("Oracle.Database/cloudVmClusters"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.CloudVMClusterProperties{
	// 		BackupSubnetCidr: to.Ptr("172.17.5.0/24"),
	// 		CloudExadataInfrastructureID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
	// 		ClusterName: to.Ptr("cluster1"),
	// 		CompartmentID: to.Ptr("ocid1..aaaaaa"),
	// 		CPUCoreCount: to.Ptr[int32](10),
	// 		DataCollectionOptions: &armoracledatabase.DataCollectionOptions{
	// 			IsDiagnosticsEventsEnabled: to.Ptr(false),
	// 			IsHealthMonitoringEnabled: to.Ptr(false),
	// 			IsIncidentLogsEnabled: to.Ptr(false),
	// 		},
	// 		DataStoragePercentage: to.Ptr[int32](80),
	// 		DataStorageSizeInTbs: to.Ptr[float64](10),
	// 		DbNodeStorageSizeInGbs: to.Ptr[int32](100),
	// 		DbServers: []*string{
	// 			to.Ptr("ocid1..aaaa")},
	// 			DiskRedundancy: to.Ptr(armoracledatabase.DiskRedundancyHigh),
	// 			DisplayName: to.Ptr("cluster 1"),
	// 			Domain: to.Ptr("domain1"),
	// 			GiVersion: to.Ptr("19.0.0.0"),
	// 			Hostname: to.Ptr("hostname1"),
	// 			IormConfigCache: &armoracledatabase.ExadataIormConfig{
	// 				DbPlans: []*armoracledatabase.DbIormConfig{
	// 					{
	// 						DbName: to.Ptr("db1"),
	// 						FlashCacheLimit: to.Ptr("none"),
	// 						Share: to.Ptr[int32](32),
	// 				}},
	// 				LifecycleDetails: to.Ptr("Disabled"),
	// 				LifecycleState: to.Ptr(armoracledatabase.IormLifecycleStateDisabled),
	// 				Objective: to.Ptr(armoracledatabase.ObjectiveLowLatency),
	// 			},
	// 			IsLocalBackupEnabled: to.Ptr(false),
	// 			IsSparseDiskgroupEnabled: to.Ptr(false),
	// 			LastUpdateHistoryEntryID: to.Ptr("none"),
	// 			LicenseModel: to.Ptr(armoracledatabase.LicenseModelLicenseIncluded),
	// 			LifecycleDetails: to.Ptr("success"),
	// 			ListenerPort: to.Ptr[int64](1050),
	// 			MemorySizeInGbs: to.Ptr[int32](1000),
	// 			NodeCount: to.Ptr[int32](100),
	// 			OciURL: to.Ptr("https://fake"),
	// 			Ocid: to.Ptr("ocid1..aaaa"),
	// 			OcpuCount: to.Ptr[float32](100),
	// 			ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 			ScanDNSName: to.Ptr("dbdns1"),
	// 			ScanDNSRecordID: to.Ptr("scandns1"),
	// 			ScanIPIDs: []*string{
	// 				to.Ptr("10.0.0.1")},
	// 				ScanListenerPortTCP: to.Ptr[int32](1050),
	// 				ScanListenerPortTCPSSL: to.Ptr[int32](1025),
	// 				Shape: to.Ptr("EXADATA.X9M"),
	// 				SSHPublicKeys: []*string{
	// 					to.Ptr("ssh-key 1")},
	// 					StorageSizeInGbs: to.Ptr[int32](1000),
	// 					SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 					SubnetOcid: to.Ptr("ocid1..aaaaaa"),
	// 					SystemVersion: to.Ptr("v1"),
	// 					TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-22T02:18:35.683Z"); return t}()),
	// 					TimeZone: to.Ptr("UTC"),
	// 					VipIDs: []*string{
	// 						to.Ptr("10.0.1.3")},
	// 						VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 						ZoneID: to.Ptr("ocid1..aaaa"),
	// 					},
	// 				}
}
Output:

func (*CloudVMClustersClient) BeginUpdate

func (client *CloudVMClustersClient) BeginUpdate(ctx context.Context, resourceGroupName string, cloudvmclustername string, properties CloudVMClusterUpdate, options *CloudVMClustersClientBeginUpdateOptions) (*runtime.Poller[CloudVMClustersClientUpdateResponse], error)

BeginUpdate - Update a CloudVmCluster If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • properties - The resource properties to be updated.
  • options - CloudVMClustersClientBeginUpdateOptions contains the optional parameters for the CloudVMClustersClient.BeginUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_patch.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewCloudVMClustersClient().BeginUpdate(ctx, "rg000", "cluster1", armoracledatabase.CloudVMClusterUpdate{}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CloudVMCluster = armoracledatabase.CloudVMCluster{
	// 	Type: to.Ptr("Oracle.Database/cloudVmClusters"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.CloudVMClusterProperties{
	// 		BackupSubnetCidr: to.Ptr("172.17.5.0/24"),
	// 		CloudExadataInfrastructureID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
	// 		ClusterName: to.Ptr("cluster1"),
	// 		CompartmentID: to.Ptr("ocid1..aaaaaa"),
	// 		CPUCoreCount: to.Ptr[int32](10),
	// 		DataCollectionOptions: &armoracledatabase.DataCollectionOptions{
	// 			IsDiagnosticsEventsEnabled: to.Ptr(false),
	// 			IsHealthMonitoringEnabled: to.Ptr(false),
	// 			IsIncidentLogsEnabled: to.Ptr(false),
	// 		},
	// 		DataStoragePercentage: to.Ptr[int32](80),
	// 		DataStorageSizeInTbs: to.Ptr[float64](10),
	// 		DbNodeStorageSizeInGbs: to.Ptr[int32](100),
	// 		DbServers: []*string{
	// 			to.Ptr("ocid1..aaaa")},
	// 			DiskRedundancy: to.Ptr(armoracledatabase.DiskRedundancyHigh),
	// 			DisplayName: to.Ptr("cluster 1"),
	// 			Domain: to.Ptr("domain1"),
	// 			GiVersion: to.Ptr("19.0.0.0"),
	// 			Hostname: to.Ptr("hostname1"),
	// 			IormConfigCache: &armoracledatabase.ExadataIormConfig{
	// 				DbPlans: []*armoracledatabase.DbIormConfig{
	// 					{
	// 						DbName: to.Ptr("db1"),
	// 						FlashCacheLimit: to.Ptr("none"),
	// 						Share: to.Ptr[int32](32),
	// 				}},
	// 				LifecycleDetails: to.Ptr("Disabled"),
	// 				LifecycleState: to.Ptr(armoracledatabase.IormLifecycleStateDisabled),
	// 				Objective: to.Ptr(armoracledatabase.ObjectiveLowLatency),
	// 			},
	// 			IsLocalBackupEnabled: to.Ptr(false),
	// 			IsSparseDiskgroupEnabled: to.Ptr(false),
	// 			LastUpdateHistoryEntryID: to.Ptr("none"),
	// 			LicenseModel: to.Ptr(armoracledatabase.LicenseModelLicenseIncluded),
	// 			LifecycleDetails: to.Ptr("success"),
	// 			ListenerPort: to.Ptr[int64](1050),
	// 			MemorySizeInGbs: to.Ptr[int32](1000),
	// 			NodeCount: to.Ptr[int32](100),
	// 			OciURL: to.Ptr("https://fake"),
	// 			Ocid: to.Ptr("ocid1..aaaa"),
	// 			OcpuCount: to.Ptr[float32](100),
	// 			ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 			ScanDNSName: to.Ptr("dbdns1"),
	// 			ScanDNSRecordID: to.Ptr("scandns1"),
	// 			ScanIPIDs: []*string{
	// 				to.Ptr("10.0.0.1")},
	// 				ScanListenerPortTCP: to.Ptr[int32](1050),
	// 				ScanListenerPortTCPSSL: to.Ptr[int32](1025),
	// 				Shape: to.Ptr("EXADATA.X9M"),
	// 				SSHPublicKeys: []*string{
	// 					to.Ptr("ssh-key 1")},
	// 					StorageSizeInGbs: to.Ptr[int32](1000),
	// 					SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 					SubnetOcid: to.Ptr("ocid1..aaaaaa"),
	// 					SystemVersion: to.Ptr("v1"),
	// 					TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-22T02:18:35.683Z"); return t}()),
	// 					TimeZone: to.Ptr("UTC"),
	// 					VipIDs: []*string{
	// 						to.Ptr("10.0.1.3")},
	// 						VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 						ZoneID: to.Ptr("ocid1..aaaa"),
	// 					},
	// 				}
}
Output:

func (*CloudVMClustersClient) Get

func (client *CloudVMClustersClient) Get(ctx context.Context, resourceGroupName string, cloudvmclustername string, options *CloudVMClustersClientGetOptions) (CloudVMClustersClientGetResponse, error)

Get - Get a CloudVmCluster If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • options - CloudVMClustersClientGetOptions contains the optional parameters for the CloudVMClustersClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewCloudVMClustersClient().Get(ctx, "rg000", "cluster1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CloudVMCluster = armoracledatabase.CloudVMCluster{
	// 	Type: to.Ptr("Oracle.Database/cloudVmClusters"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1"),
	// 	Location: to.Ptr("eastus"),
	// 	Tags: map[string]*string{
	// 		"tagK1": to.Ptr("tagV1"),
	// 	},
	// 	Properties: &armoracledatabase.CloudVMClusterProperties{
	// 		BackupSubnetCidr: to.Ptr("172.17.5.0/24"),
	// 		CloudExadataInfrastructureID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
	// 		ClusterName: to.Ptr("cluster1"),
	// 		CompartmentID: to.Ptr("ocid1..aaaaaa"),
	// 		CPUCoreCount: to.Ptr[int32](10),
	// 		DataCollectionOptions: &armoracledatabase.DataCollectionOptions{
	// 			IsDiagnosticsEventsEnabled: to.Ptr(false),
	// 			IsHealthMonitoringEnabled: to.Ptr(false),
	// 			IsIncidentLogsEnabled: to.Ptr(false),
	// 		},
	// 		DataStoragePercentage: to.Ptr[int32](80),
	// 		DataStorageSizeInTbs: to.Ptr[float64](10),
	// 		DbNodeStorageSizeInGbs: to.Ptr[int32](100),
	// 		DbServers: []*string{
	// 			to.Ptr("ocid1..aaaa")},
	// 			DiskRedundancy: to.Ptr(armoracledatabase.DiskRedundancyHigh),
	// 			DisplayName: to.Ptr("cluster 1"),
	// 			Domain: to.Ptr("domain1"),
	// 			GiVersion: to.Ptr("19.0.0.0"),
	// 			Hostname: to.Ptr("hostname1"),
	// 			IormConfigCache: &armoracledatabase.ExadataIormConfig{
	// 				DbPlans: []*armoracledatabase.DbIormConfig{
	// 					{
	// 						DbName: to.Ptr("db1"),
	// 						FlashCacheLimit: to.Ptr("none"),
	// 						Share: to.Ptr[int32](32),
	// 				}},
	// 				LifecycleDetails: to.Ptr("Disabled"),
	// 				LifecycleState: to.Ptr(armoracledatabase.IormLifecycleStateDisabled),
	// 				Objective: to.Ptr(armoracledatabase.ObjectiveLowLatency),
	// 			},
	// 			IsLocalBackupEnabled: to.Ptr(false),
	// 			IsSparseDiskgroupEnabled: to.Ptr(false),
	// 			LastUpdateHistoryEntryID: to.Ptr("none"),
	// 			LicenseModel: to.Ptr(armoracledatabase.LicenseModelLicenseIncluded),
	// 			LifecycleDetails: to.Ptr("success"),
	// 			ListenerPort: to.Ptr[int64](1050),
	// 			MemorySizeInGbs: to.Ptr[int32](1000),
	// 			NodeCount: to.Ptr[int32](100),
	// 			NsgCidrs: []*armoracledatabase.NsgCidr{
	// 				{
	// 					DestinationPortRange: &armoracledatabase.PortRange{
	// 						Max: to.Ptr[int32](1522),
	// 						Min: to.Ptr[int32](1520),
	// 					},
	// 					Source: to.Ptr("10.0.0.0/16"),
	// 				},
	// 				{
	// 					Source: to.Ptr("10.10.0.0/24"),
	// 			}},
	// 			NsgURL: to.Ptr("https://fake"),
	// 			OciURL: to.Ptr("https://fake"),
	// 			Ocid: to.Ptr("ocid1..aaaa"),
	// 			OcpuCount: to.Ptr[float32](100),
	// 			ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 			ScanDNSName: to.Ptr("dbdns1"),
	// 			ScanDNSRecordID: to.Ptr("scandns1"),
	// 			ScanIPIDs: []*string{
	// 				to.Ptr("10.0.0.1")},
	// 				ScanListenerPortTCP: to.Ptr[int32](1050),
	// 				ScanListenerPortTCPSSL: to.Ptr[int32](1025),
	// 				Shape: to.Ptr("EXADATA.X9M"),
	// 				SSHPublicKeys: []*string{
	// 					to.Ptr("ssh-key 1")},
	// 					StorageSizeInGbs: to.Ptr[int32](1000),
	// 					SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
	// 					SubnetOcid: to.Ptr("ocid1..aaaaaa"),
	// 					SystemVersion: to.Ptr("v1"),
	// 					TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-22T02:18:35.683Z"); return t}()),
	// 					TimeZone: to.Ptr("UTC"),
	// 					VipIDs: []*string{
	// 						to.Ptr("10.0.1.3")},
	// 						VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
	// 						ZoneID: to.Ptr("ocid1..aaaa"),
	// 					},
	// 				}
}
Output:

func (*CloudVMClustersClient) ListPrivateIPAddresses

ListPrivateIPAddresses - List Private IP Addresses by the provided filter If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • body - The content of the action request
  • options - CloudVMClustersClientListPrivateIPAddressesOptions contains the optional parameters for the CloudVMClustersClient.ListPrivateIPAddresses method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listPrivateIpAddresses.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewCloudVMClustersClient().ListPrivateIPAddresses(ctx, "rg000", "cluster1", armoracledatabase.PrivateIPAddressesFilter{
		SubnetID: to.Ptr("ocid1..aaaaaa"),
		VnicID:   to.Ptr("ocid1..aaaaa"),
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.PrivateIPAddressPropertiesArray = []*armoracledatabase.PrivateIPAddressProperties{
	// 	{
	// 		DisplayName: to.Ptr("ip1"),
	// 		HostnameLabel: to.Ptr("hostname1"),
	// 		IPAddress: to.Ptr("192.168.0.1"),
	// 		Ocid: to.Ptr("ocid1..aaaa"),
	// 		SubnetID: to.Ptr("ocid1..aaaa"),
	// }}
}
Output:

func (*CloudVMClustersClient) NewListByResourceGroupPager

NewListByResourceGroupPager - List CloudVmCluster resources by resource group

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - CloudVMClustersClientListByResourceGroupOptions contains the optional parameters for the CloudVMClustersClient.NewListByResourceGroupPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listByResourceGroup.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewCloudVMClustersClient().NewListByResourceGroupPager("rg000", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.CloudVMClusterListResult = armoracledatabase.CloudVMClusterListResult{
		// 	Value: []*armoracledatabase.CloudVMCluster{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/cloudVmClusters"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1"),
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"tagK1": to.Ptr("tagV1"),
		// 			},
		// 			Properties: &armoracledatabase.CloudVMClusterProperties{
		// 				BackupSubnetCidr: to.Ptr("172.17.5.0/24"),
		// 				CloudExadataInfrastructureID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
		// 				ClusterName: to.Ptr("cluster1"),
		// 				CompartmentID: to.Ptr("ocid1..aaaaaa"),
		// 				CPUCoreCount: to.Ptr[int32](10),
		// 				DataCollectionOptions: &armoracledatabase.DataCollectionOptions{
		// 					IsDiagnosticsEventsEnabled: to.Ptr(false),
		// 					IsHealthMonitoringEnabled: to.Ptr(false),
		// 					IsIncidentLogsEnabled: to.Ptr(false),
		// 				},
		// 				DataStoragePercentage: to.Ptr[int32](80),
		// 				DataStorageSizeInTbs: to.Ptr[float64](10),
		// 				DbNodeStorageSizeInGbs: to.Ptr[int32](100),
		// 				DbServers: []*string{
		// 					to.Ptr("ocid1..aaaa")},
		// 					DiskRedundancy: to.Ptr(armoracledatabase.DiskRedundancyHigh),
		// 					DisplayName: to.Ptr("cluster 1"),
		// 					Domain: to.Ptr("domain1"),
		// 					GiVersion: to.Ptr("19.0.0.0"),
		// 					Hostname: to.Ptr("hostname1"),
		// 					IormConfigCache: &armoracledatabase.ExadataIormConfig{
		// 						DbPlans: []*armoracledatabase.DbIormConfig{
		// 							{
		// 								DbName: to.Ptr("db1"),
		// 								FlashCacheLimit: to.Ptr("none"),
		// 								Share: to.Ptr[int32](32),
		// 						}},
		// 						LifecycleDetails: to.Ptr("Disabled"),
		// 						LifecycleState: to.Ptr(armoracledatabase.IormLifecycleStateDisabled),
		// 						Objective: to.Ptr(armoracledatabase.ObjectiveLowLatency),
		// 					},
		// 					IsLocalBackupEnabled: to.Ptr(false),
		// 					IsSparseDiskgroupEnabled: to.Ptr(false),
		// 					LastUpdateHistoryEntryID: to.Ptr("none"),
		// 					LicenseModel: to.Ptr(armoracledatabase.LicenseModelLicenseIncluded),
		// 					LifecycleDetails: to.Ptr("success"),
		// 					ListenerPort: to.Ptr[int64](1050),
		// 					MemorySizeInGbs: to.Ptr[int32](1000),
		// 					NodeCount: to.Ptr[int32](100),
		// 					OciURL: to.Ptr("https://fake"),
		// 					Ocid: to.Ptr("ocid1..aaaa"),
		// 					OcpuCount: to.Ptr[float32](100),
		// 					ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
		// 					ScanDNSName: to.Ptr("dbdns1"),
		// 					ScanDNSRecordID: to.Ptr("scandns1"),
		// 					ScanIPIDs: []*string{
		// 						to.Ptr("10.0.0.1")},
		// 						ScanListenerPortTCP: to.Ptr[int32](1050),
		// 						ScanListenerPortTCPSSL: to.Ptr[int32](1025),
		// 						Shape: to.Ptr("EXADATA.X9M"),
		// 						SSHPublicKeys: []*string{
		// 							to.Ptr("ssh-key 1")},
		// 							StorageSizeInGbs: to.Ptr[int32](1000),
		// 							SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
		// 							SubnetOcid: to.Ptr("ocid1..aaaaaa"),
		// 							SystemVersion: to.Ptr("v1"),
		// 							TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-22T02:18:35.683Z"); return t}()),
		// 							TimeZone: to.Ptr("UTC"),
		// 							VipIDs: []*string{
		// 								to.Ptr("10.0.1.3")},
		// 								VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
		// 								ZoneID: to.Ptr("ocid1..aaaa"),
		// 							},
		// 					}},
		// 				}
	}
}
Output:

func (*CloudVMClustersClient) NewListBySubscriptionPager

NewListBySubscriptionPager - List CloudVmCluster resources by subscription ID

Generated from API version 2023-09-01

  • options - CloudVMClustersClientListBySubscriptionOptions contains the optional parameters for the CloudVMClustersClient.NewListBySubscriptionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listBySubscription.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewCloudVMClustersClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.CloudVMClusterListResult = armoracledatabase.CloudVMClusterListResult{
		// 	Value: []*armoracledatabase.CloudVMCluster{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/cloudVmClusters"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1"),
		// 			Location: to.Ptr("eastus"),
		// 			Tags: map[string]*string{
		// 				"tagK1": to.Ptr("tagV1"),
		// 			},
		// 			Properties: &armoracledatabase.CloudVMClusterProperties{
		// 				BackupSubnetCidr: to.Ptr("172.17.5.0/24"),
		// 				CloudExadataInfrastructureID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
		// 				ClusterName: to.Ptr("cluster1"),
		// 				CompartmentID: to.Ptr("ocid1..aaaaaa"),
		// 				CPUCoreCount: to.Ptr[int32](10),
		// 				DataCollectionOptions: &armoracledatabase.DataCollectionOptions{
		// 					IsDiagnosticsEventsEnabled: to.Ptr(false),
		// 					IsHealthMonitoringEnabled: to.Ptr(false),
		// 					IsIncidentLogsEnabled: to.Ptr(false),
		// 				},
		// 				DataStoragePercentage: to.Ptr[int32](80),
		// 				DataStorageSizeInTbs: to.Ptr[float64](10),
		// 				DbNodeStorageSizeInGbs: to.Ptr[int32](100),
		// 				DbServers: []*string{
		// 					to.Ptr("ocid1..aaaa")},
		// 					DiskRedundancy: to.Ptr(armoracledatabase.DiskRedundancyHigh),
		// 					DisplayName: to.Ptr("cluster 1"),
		// 					Domain: to.Ptr("domain1"),
		// 					GiVersion: to.Ptr("19.0.0.0"),
		// 					Hostname: to.Ptr("hostname1"),
		// 					IormConfigCache: &armoracledatabase.ExadataIormConfig{
		// 						DbPlans: []*armoracledatabase.DbIormConfig{
		// 							{
		// 								DbName: to.Ptr("db1"),
		// 								FlashCacheLimit: to.Ptr("none"),
		// 								Share: to.Ptr[int32](32),
		// 						}},
		// 						LifecycleDetails: to.Ptr("Disabled"),
		// 						LifecycleState: to.Ptr(armoracledatabase.IormLifecycleStateDisabled),
		// 						Objective: to.Ptr(armoracledatabase.ObjectiveLowLatency),
		// 					},
		// 					IsLocalBackupEnabled: to.Ptr(false),
		// 					IsSparseDiskgroupEnabled: to.Ptr(false),
		// 					LastUpdateHistoryEntryID: to.Ptr("none"),
		// 					LicenseModel: to.Ptr(armoracledatabase.LicenseModelLicenseIncluded),
		// 					LifecycleDetails: to.Ptr("success"),
		// 					ListenerPort: to.Ptr[int64](1050),
		// 					MemorySizeInGbs: to.Ptr[int32](1000),
		// 					NodeCount: to.Ptr[int32](100),
		// 					OciURL: to.Ptr("https://fake"),
		// 					Ocid: to.Ptr("ocid1..aaaa"),
		// 					OcpuCount: to.Ptr[float32](100),
		// 					ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
		// 					ScanDNSName: to.Ptr("dbdns1"),
		// 					ScanDNSRecordID: to.Ptr("scandns1"),
		// 					ScanIPIDs: []*string{
		// 						to.Ptr("10.0.0.1")},
		// 						ScanListenerPortTCP: to.Ptr[int32](1050),
		// 						ScanListenerPortTCPSSL: to.Ptr[int32](1025),
		// 						Shape: to.Ptr("EXADATA.X9M"),
		// 						SSHPublicKeys: []*string{
		// 							to.Ptr("ssh-key 1")},
		// 							StorageSizeInGbs: to.Ptr[int32](1000),
		// 							SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
		// 							SubnetOcid: to.Ptr("ocid1..aaaaaa"),
		// 							SystemVersion: to.Ptr("v1"),
		// 							TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-22T02:18:35.683Z"); return t}()),
		// 							TimeZone: to.Ptr("UTC"),
		// 							VipIDs: []*string{
		// 								to.Ptr("10.0.1.3")},
		// 								VnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1"),
		// 								ZoneID: to.Ptr("ocid1..aaaa"),
		// 							},
		// 					}},
		// 				}
	}
}
Output:

type CloudVMClustersClientAddVMsResponse

type CloudVMClustersClientAddVMsResponse struct {
	// CloudVmCluster resource definition
	CloudVMCluster
}

CloudVMClustersClientAddVMsResponse contains the response from method CloudVMClustersClient.BeginAddVMs.

type CloudVMClustersClientBeginAddVMsOptions

type CloudVMClustersClientBeginAddVMsOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CloudVMClustersClientBeginAddVMsOptions contains the optional parameters for the CloudVMClustersClient.BeginAddVMs method.

type CloudVMClustersClientBeginCreateOrUpdateOptions

type CloudVMClustersClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CloudVMClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the CloudVMClustersClient.BeginCreateOrUpdate method.

type CloudVMClustersClientBeginDeleteOptions

type CloudVMClustersClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CloudVMClustersClientBeginDeleteOptions contains the optional parameters for the CloudVMClustersClient.BeginDelete method.

type CloudVMClustersClientBeginRemoveVMsOptions

type CloudVMClustersClientBeginRemoveVMsOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CloudVMClustersClientBeginRemoveVMsOptions contains the optional parameters for the CloudVMClustersClient.BeginRemoveVMs method.

type CloudVMClustersClientBeginUpdateOptions

type CloudVMClustersClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

CloudVMClustersClientBeginUpdateOptions contains the optional parameters for the CloudVMClustersClient.BeginUpdate method.

type CloudVMClustersClientCreateOrUpdateResponse

type CloudVMClustersClientCreateOrUpdateResponse struct {
	// CloudVmCluster resource definition
	CloudVMCluster
}

CloudVMClustersClientCreateOrUpdateResponse contains the response from method CloudVMClustersClient.BeginCreateOrUpdate.

type CloudVMClustersClientDeleteResponse

type CloudVMClustersClientDeleteResponse struct {
}

CloudVMClustersClientDeleteResponse contains the response from method CloudVMClustersClient.BeginDelete.

type CloudVMClustersClientGetOptions

type CloudVMClustersClientGetOptions struct {
}

CloudVMClustersClientGetOptions contains the optional parameters for the CloudVMClustersClient.Get method.

type CloudVMClustersClientGetResponse

type CloudVMClustersClientGetResponse struct {
	// CloudVmCluster resource definition
	CloudVMCluster
}

CloudVMClustersClientGetResponse contains the response from method CloudVMClustersClient.Get.

type CloudVMClustersClientListByResourceGroupOptions

type CloudVMClustersClientListByResourceGroupOptions struct {
}

CloudVMClustersClientListByResourceGroupOptions contains the optional parameters for the CloudVMClustersClient.NewListByResourceGroupPager method.

type CloudVMClustersClientListByResourceGroupResponse

type CloudVMClustersClientListByResourceGroupResponse struct {
	// The response of a CloudVmCluster list operation.
	CloudVMClusterListResult
}

CloudVMClustersClientListByResourceGroupResponse contains the response from method CloudVMClustersClient.NewListByResourceGroupPager.

type CloudVMClustersClientListBySubscriptionOptions

type CloudVMClustersClientListBySubscriptionOptions struct {
}

CloudVMClustersClientListBySubscriptionOptions contains the optional parameters for the CloudVMClustersClient.NewListBySubscriptionPager method.

type CloudVMClustersClientListBySubscriptionResponse

type CloudVMClustersClientListBySubscriptionResponse struct {
	// The response of a CloudVmCluster list operation.
	CloudVMClusterListResult
}

CloudVMClustersClientListBySubscriptionResponse contains the response from method CloudVMClustersClient.NewListBySubscriptionPager.

type CloudVMClustersClientListPrivateIPAddressesOptions

type CloudVMClustersClientListPrivateIPAddressesOptions struct {
}

CloudVMClustersClientListPrivateIPAddressesOptions contains the optional parameters for the CloudVMClustersClient.ListPrivateIPAddresses method.

type CloudVMClustersClientListPrivateIPAddressesResponse

type CloudVMClustersClientListPrivateIPAddressesResponse struct {
	// Array of PrivateIpAddressProperties
	PrivateIPAddressPropertiesArray []*PrivateIPAddressProperties
}

CloudVMClustersClientListPrivateIPAddressesResponse contains the response from method CloudVMClustersClient.ListPrivateIPAddresses.

type CloudVMClustersClientRemoveVMsResponse

type CloudVMClustersClientRemoveVMsResponse struct {
	// CloudVmCluster resource definition
	CloudVMCluster
}

CloudVMClustersClientRemoveVMsResponse contains the response from method CloudVMClustersClient.BeginRemoveVMs.

type CloudVMClustersClientUpdateResponse

type CloudVMClustersClientUpdateResponse struct {
	// CloudVmCluster resource definition
	CloudVMCluster
}

CloudVMClustersClientUpdateResponse contains the response from method CloudVMClustersClient.BeginUpdate.

type ComputeModel

type ComputeModel string

ComputeModel - Compute model enum

const (
	// ComputeModelECPU - ECPU model type
	ComputeModelECPU ComputeModel = "ECPU"
	// ComputeModelOCPU - OCPU model type
	ComputeModelOCPU ComputeModel = "OCPU"
)

func PossibleComputeModelValues

func PossibleComputeModelValues() []ComputeModel

PossibleComputeModelValues returns the possible values for the ComputeModel const type.

type ConnectionStringType

type ConnectionStringType struct {
	// Returns all connection strings that can be used to connect to the Autonomous Database.
	AllConnectionStrings *AllConnectionStringType

	// The database service provides the least level of resources to each SQL statement, but supports the most number of concurrent
	// SQL statements.
	Dedicated *string

	// The High database service provides the highest level of resources to each SQL statement resulting in the highest performance,
	// but supports the fewest number of concurrent SQL statements.
	High *string

	// The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent
	// SQL statements.
	Low *string

	// The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level
	// of performance, but supports more concurrent SQL statements.
	Medium *string

	// A list of connection string profiles to allow clients to group, filter and select connection string values based on structured
	// metadata.
	Profiles []*ProfileType
}

ConnectionStringType - Connection strings to connect to an Oracle Autonomous Database.

func (ConnectionStringType) MarshalJSON

func (c ConnectionStringType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionStringType.

func (*ConnectionStringType) UnmarshalJSON

func (c *ConnectionStringType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionStringType.

type ConnectionURLType

type ConnectionURLType struct {
	// Oracle Application Express (APEX) URL.
	ApexURL *string

	// The URL of the Database Transforms for the Autonomous Database.
	DatabaseTransformsURL *string

	// The URL of the Graph Studio for the Autonomous Database.
	GraphStudioURL *string

	// The URL of the Oracle Machine Learning (OML) Notebook for the Autonomous Database.
	MachineLearningNotebookURL *string

	// The URL of the MongoDB API for the Autonomous Database.
	MongoDbURL *string

	// The Oracle REST Data Services (ORDS) URL of the Web Access for the Autonomous Database.
	OrdsURL *string

	// Oracle SQL Developer Web URL.
	SQLDevWebURL *string
}

ConnectionURLType - The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN.

func (ConnectionURLType) MarshalJSON

func (c ConnectionURLType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionURLType.

func (*ConnectionURLType) UnmarshalJSON

func (c *ConnectionURLType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionURLType.

type ConsumerGroup

type ConsumerGroup string

ConsumerGroup - Consumer group enum.

const (
	// ConsumerGroupHigh - High group
	ConsumerGroupHigh ConsumerGroup = "High"
	// ConsumerGroupLow - Low group
	ConsumerGroupLow ConsumerGroup = "Low"
	// ConsumerGroupMedium - Medium group
	ConsumerGroupMedium ConsumerGroup = "Medium"
	// ConsumerGroupTp - TP group
	ConsumerGroupTp ConsumerGroup = "Tp"
	// ConsumerGroupTpurgent - TPurgent group
	ConsumerGroupTpurgent ConsumerGroup = "Tpurgent"
)

func PossibleConsumerGroupValues

func PossibleConsumerGroupValues() []ConsumerGroup

PossibleConsumerGroupValues returns the possible values for the ConsumerGroup const type.

type CreatedByType

type CreatedByType string

CreatedByType - The type of identity that created the resource.

const (
	CreatedByTypeApplication     CreatedByType = "Application"
	CreatedByTypeKey             CreatedByType = "Key"
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	CreatedByTypeUser            CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.

type CustomerContact

type CustomerContact struct {
	// REQUIRED; The email address used by Oracle to send notifications regarding databases and infrastructure.
	Email *string
}

CustomerContact resource properties

func (CustomerContact) MarshalJSON

func (c CustomerContact) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CustomerContact.

func (*CustomerContact) UnmarshalJSON

func (c *CustomerContact) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CustomerContact.

type DNSPrivateView

type DNSPrivateView struct {
	// The resource-specific properties for this resource.
	Properties *DNSPrivateViewProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

DNSPrivateView - DnsPrivateView resource definition

func (DNSPrivateView) MarshalJSON

func (d DNSPrivateView) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DNSPrivateView.

func (*DNSPrivateView) UnmarshalJSON

func (d *DNSPrivateView) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DNSPrivateView.

type DNSPrivateViewListResult

type DNSPrivateViewListResult struct {
	// REQUIRED; The DnsPrivateView items on this page
	Value []*DNSPrivateView

	// The link to the next page of items
	NextLink *string
}

DNSPrivateViewListResult - The response of a DnsPrivateView list operation.

func (DNSPrivateViewListResult) MarshalJSON

func (d DNSPrivateViewListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DNSPrivateViewListResult.

func (*DNSPrivateViewListResult) UnmarshalJSON

func (d *DNSPrivateViewListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DNSPrivateViewListResult.

type DNSPrivateViewProperties

type DNSPrivateViewProperties struct {
	// READ-ONLY; A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
	IsProtected *bool

	// READ-ONLY; The OCID of the view
	Ocid *string

	// READ-ONLY; The canonical absolute URL of the resource.
	Self *string

	// READ-ONLY; views timeCreated
	TimeCreated *time.Time

	// READ-ONLY; views timeCreated
	TimeUpdated *time.Time

	// READ-ONLY; The display name of the view resource
	DisplayName *string

	// READ-ONLY; Views lifecycleState
	LifecycleState *DNSPrivateViewsLifecycleState

	// READ-ONLY; Azure resource provisioning state.
	ProvisioningState *ResourceProvisioningState
}

DNSPrivateViewProperties - Views resource model

func (DNSPrivateViewProperties) MarshalJSON

func (d DNSPrivateViewProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DNSPrivateViewProperties.

func (*DNSPrivateViewProperties) UnmarshalJSON

func (d *DNSPrivateViewProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DNSPrivateViewProperties.

type DNSPrivateViewsClient

type DNSPrivateViewsClient struct {
	// contains filtered or unexported fields
}

DNSPrivateViewsClient contains the methods for the DNSPrivateViews group. Don't use this type directly, use NewDNSPrivateViewsClient() instead.

func NewDNSPrivateViewsClient

func NewDNSPrivateViewsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DNSPrivateViewsClient, error)

NewDNSPrivateViewsClient creates a new instance of DNSPrivateViewsClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*DNSPrivateViewsClient) Get

Get - Get a DnsPrivateView If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • dnsprivateviewocid - DnsPrivateView OCID
  • options - DNSPrivateViewsClientGetOptions contains the optional parameters for the DNSPrivateViewsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDNSPrivateViewsClient().Get(ctx, "eastus", "ocid1....aaaaaa", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.DNSPrivateView = armoracledatabase.DNSPrivateView{
	// 	Type: to.Ptr("Oracle.Database/locations/dnsPrivateViews"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateViews/ocid1....aaaaaa"),
	// 	Properties: &armoracledatabase.DNSPrivateViewProperties{
	// 		DisplayName: to.Ptr("example-dns-private-view"),
	// 		IsProtected: to.Ptr(false),
	// 		LifecycleState: to.Ptr(armoracledatabase.DNSPrivateViewsLifecycleStateActive),
	// 		Ocid: to.Ptr("ocid1....aaaaaa"),
	// 		Self: to.Ptr("https://api.example.com/your-dns-private-view"),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-26T12:34:56.000Z"); return t}()),
	// 		TimeUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-26T14:00:00.000Z"); return t}()),
	// 	},
	// }
}
Output:

func (*DNSPrivateViewsClient) NewListByLocationPager

NewListByLocationPager - List DnsPrivateView resources by Location

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • options - DNSPrivateViewsClientListByLocationOptions contains the optional parameters for the DNSPrivateViewsClient.NewListByLocationPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_listByLocation.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDNSPrivateViewsClient().NewListByLocationPager("eastus", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.DNSPrivateViewListResult = armoracledatabase.DNSPrivateViewListResult{
		// 	Value: []*armoracledatabase.DNSPrivateView{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/locations/dnsPrivateViews"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateViews/ocid1....aaaaaa"),
		// 			Properties: &armoracledatabase.DNSPrivateViewProperties{
		// 				DisplayName: to.Ptr("example-dns-private-view1"),
		// 				IsProtected: to.Ptr(false),
		// 				LifecycleState: to.Ptr(armoracledatabase.DNSPrivateViewsLifecycleStateActive),
		// 				Ocid: to.Ptr("ocid1....aaaaaa"),
		// 				Self: to.Ptr("https://api.example.com/view1"),
		// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-26T12:34:56.000Z"); return t}()),
		// 				TimeUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-26T14:00:00.000Z"); return t}()),
		// 			},
		// 		},
		// 		{
		// 			Type: to.Ptr("Oracle.Database/locations/dnsPrivateViews"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateViews/ocid1....aaaaab"),
		// 			Properties: &armoracledatabase.DNSPrivateViewProperties{
		// 				DisplayName: to.Ptr("example-dns-private-view2"),
		// 				IsProtected: to.Ptr(true),
		// 				LifecycleState: to.Ptr(armoracledatabase.DNSPrivateViewsLifecycleState("Creating")),
		// 				Ocid: to.Ptr("ocid1....aaaaab"),
		// 				Self: to.Ptr("https://api.example.com/view2"),
		// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-27T09:45:00.000Z"); return t}()),
		// 				TimeUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-27T10:30:00.000Z"); return t}()),
		// 			},
		// 	}},
		// }
	}
}
Output:

type DNSPrivateViewsClientGetOptions

type DNSPrivateViewsClientGetOptions struct {
}

DNSPrivateViewsClientGetOptions contains the optional parameters for the DNSPrivateViewsClient.Get method.

type DNSPrivateViewsClientGetResponse

type DNSPrivateViewsClientGetResponse struct {
	// DnsPrivateView resource definition
	DNSPrivateView
}

DNSPrivateViewsClientGetResponse contains the response from method DNSPrivateViewsClient.Get.

type DNSPrivateViewsClientListByLocationOptions

type DNSPrivateViewsClientListByLocationOptions struct {
}

DNSPrivateViewsClientListByLocationOptions contains the optional parameters for the DNSPrivateViewsClient.NewListByLocationPager method.

type DNSPrivateViewsClientListByLocationResponse

type DNSPrivateViewsClientListByLocationResponse struct {
	// The response of a DnsPrivateView list operation.
	DNSPrivateViewListResult
}

DNSPrivateViewsClientListByLocationResponse contains the response from method DNSPrivateViewsClient.NewListByLocationPager.

type DNSPrivateViewsLifecycleState

type DNSPrivateViewsLifecycleState string

DNSPrivateViewsLifecycleState - DNS Private Views lifecycle state enum

const (
	// DNSPrivateViewsLifecycleStateActive - DNS Private View is active
	DNSPrivateViewsLifecycleStateActive DNSPrivateViewsLifecycleState = "Active"
	// DNSPrivateViewsLifecycleStateDeleted - DNS Private View is deleted
	DNSPrivateViewsLifecycleStateDeleted DNSPrivateViewsLifecycleState = "Deleted"
	// DNSPrivateViewsLifecycleStateDeleting - DNS Private View is deleting
	DNSPrivateViewsLifecycleStateDeleting DNSPrivateViewsLifecycleState = "Deleting"
	// DNSPrivateViewsLifecycleStateUpdating - DNS Private View is updating
	DNSPrivateViewsLifecycleStateUpdating DNSPrivateViewsLifecycleState = "Updating"
)

func PossibleDNSPrivateViewsLifecycleStateValues

func PossibleDNSPrivateViewsLifecycleStateValues() []DNSPrivateViewsLifecycleState

PossibleDNSPrivateViewsLifecycleStateValues returns the possible values for the DNSPrivateViewsLifecycleState const type.

type DNSPrivateZone

type DNSPrivateZone struct {
	// The resource-specific properties for this resource.
	Properties *DNSPrivateZoneProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

DNSPrivateZone - DnsPrivateZone resource definition

func (DNSPrivateZone) MarshalJSON

func (d DNSPrivateZone) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DNSPrivateZone.

func (*DNSPrivateZone) UnmarshalJSON

func (d *DNSPrivateZone) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DNSPrivateZone.

type DNSPrivateZoneListResult

type DNSPrivateZoneListResult struct {
	// REQUIRED; The DnsPrivateZone items on this page
	Value []*DNSPrivateZone

	// The link to the next page of items
	NextLink *string
}

DNSPrivateZoneListResult - The response of a DnsPrivateZone list operation.

func (DNSPrivateZoneListResult) MarshalJSON

func (d DNSPrivateZoneListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DNSPrivateZoneListResult.

func (*DNSPrivateZoneListResult) UnmarshalJSON

func (d *DNSPrivateZoneListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DNSPrivateZoneListResult.

type DNSPrivateZoneProperties

type DNSPrivateZoneProperties struct {
	// READ-ONLY; A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
	IsProtected *bool

	// READ-ONLY; The OCID of the Zone
	Ocid *string

	// READ-ONLY; The canonical absolute URL of the resource.
	Self *string

	// READ-ONLY; The current serial of the zone. As seen in the zone's SOA record.
	Serial *int32

	// READ-ONLY; Zones timeCreated
	TimeCreated *time.Time

	// READ-ONLY; Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's
	// SOA record is derived.
	Version *string

	// READ-ONLY; The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.
	ZoneType *ZoneType

	// READ-ONLY; Zones lifecycleState
	LifecycleState *DNSPrivateZonesLifecycleState

	// READ-ONLY; Azure resource provisioning state.
	ProvisioningState *ResourceProvisioningState

	// READ-ONLY; The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which
	// are publicly resolvable and not part of a private view.
	ViewID *string
}

DNSPrivateZoneProperties - Zones resource model

func (DNSPrivateZoneProperties) MarshalJSON

func (d DNSPrivateZoneProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DNSPrivateZoneProperties.

func (*DNSPrivateZoneProperties) UnmarshalJSON

func (d *DNSPrivateZoneProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DNSPrivateZoneProperties.

type DNSPrivateZonesClient

type DNSPrivateZonesClient struct {
	// contains filtered or unexported fields
}

DNSPrivateZonesClient contains the methods for the DNSPrivateZones group. Don't use this type directly, use NewDNSPrivateZonesClient() instead.

func NewDNSPrivateZonesClient

func NewDNSPrivateZonesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DNSPrivateZonesClient, error)

NewDNSPrivateZonesClient creates a new instance of DNSPrivateZonesClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*DNSPrivateZonesClient) Get

Get - Get a DnsPrivateZone If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • dnsprivatezonename - DnsPrivateZone name
  • options - DNSPrivateZonesClientGetOptions contains the optional parameters for the DNSPrivateZonesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDNSPrivateZonesClient().Get(ctx, "eastus", "example-dns-private-zone", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.DNSPrivateZone = armoracledatabase.DNSPrivateZone{
	// 	Type: to.Ptr("Oracle.Database/locations/dnsPrivateZones"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateZones/example-dns-private-zone"),
	// 	Properties: &armoracledatabase.DNSPrivateZoneProperties{
	// 		IsProtected: to.Ptr(false),
	// 		LifecycleState: to.Ptr(armoracledatabase.DNSPrivateZonesLifecycleStateActive),
	// 		Ocid: to.Ptr("your-zone-id"),
	// 		Self: to.Ptr("https://api.example.com/your-dns-private-zone"),
	// 		Serial: to.Ptr[int32](12345),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-26T12:34:56.000Z"); return t}()),
	// 		Version: to.Ptr("1.0.0.0"),
	// 		ViewID: to.Ptr("your-view-id"),
	// 		ZoneType: to.Ptr(armoracledatabase.ZoneTypePrimary),
	// 	},
	// }
}
Output:

func (*DNSPrivateZonesClient) NewListByLocationPager

NewListByLocationPager - List DnsPrivateZone resources by Location

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • options - DNSPrivateZonesClientListByLocationOptions contains the optional parameters for the DNSPrivateZonesClient.NewListByLocationPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_listByLocation.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDNSPrivateZonesClient().NewListByLocationPager("eastus", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.DNSPrivateZoneListResult = armoracledatabase.DNSPrivateZoneListResult{
		// 	Value: []*armoracledatabase.DNSPrivateZone{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/locations/dnsPrivateZones"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateZones/zone1"),
		// 			Properties: &armoracledatabase.DNSPrivateZoneProperties{
		// 				IsProtected: to.Ptr(false),
		// 				LifecycleState: to.Ptr(armoracledatabase.DNSPrivateZonesLifecycleStateActive),
		// 				Ocid: to.Ptr("zone-id-1"),
		// 				Self: to.Ptr("https://api.example.com/zone1"),
		// 				Serial: to.Ptr[int32](12345),
		// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-26T12:34:56.000Z"); return t}()),
		// 				Version: to.Ptr("1.0.0.0"),
		// 				ViewID: to.Ptr("view-id-1"),
		// 				ZoneType: to.Ptr(armoracledatabase.ZoneTypePrimary),
		// 			},
		// 		},
		// 		{
		// 			Type: to.Ptr("Oracle.Database/locations/dnsPrivateZones"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateZones/zone2"),
		// 			Properties: &armoracledatabase.DNSPrivateZoneProperties{
		// 				IsProtected: to.Ptr(true),
		// 				LifecycleState: to.Ptr(armoracledatabase.DNSPrivateZonesLifecycleStateCreating),
		// 				Ocid: to.Ptr("zone-id-2"),
		// 				Self: to.Ptr("https://api.example.com/zone2"),
		// 				Serial: to.Ptr[int32](54321),
		// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-27T09:45:00.000Z"); return t}()),
		// 				Version: to.Ptr("2.0.0.0"),
		// 				ViewID: to.Ptr("view-id-2"),
		// 				ZoneType: to.Ptr(armoracledatabase.ZoneTypeSecondary),
		// 			},
		// 	}},
		// }
	}
}
Output:

type DNSPrivateZonesClientGetOptions

type DNSPrivateZonesClientGetOptions struct {
}

DNSPrivateZonesClientGetOptions contains the optional parameters for the DNSPrivateZonesClient.Get method.

type DNSPrivateZonesClientGetResponse

type DNSPrivateZonesClientGetResponse struct {
	// DnsPrivateZone resource definition
	DNSPrivateZone
}

DNSPrivateZonesClientGetResponse contains the response from method DNSPrivateZonesClient.Get.

type DNSPrivateZonesClientListByLocationOptions

type DNSPrivateZonesClientListByLocationOptions struct {
}

DNSPrivateZonesClientListByLocationOptions contains the optional parameters for the DNSPrivateZonesClient.NewListByLocationPager method.

type DNSPrivateZonesClientListByLocationResponse

type DNSPrivateZonesClientListByLocationResponse struct {
	// The response of a DnsPrivateZone list operation.
	DNSPrivateZoneListResult
}

DNSPrivateZonesClientListByLocationResponse contains the response from method DNSPrivateZonesClient.NewListByLocationPager.

type DNSPrivateZonesLifecycleState

type DNSPrivateZonesLifecycleState string

DNSPrivateZonesLifecycleState - DNS Private Zones lifecycle state enum

const (
	// DNSPrivateZonesLifecycleStateActive - DNS Private Zones is active
	DNSPrivateZonesLifecycleStateActive DNSPrivateZonesLifecycleState = "Active"
	// DNSPrivateZonesLifecycleStateCreating - DNS Private Zones is creating
	DNSPrivateZonesLifecycleStateCreating DNSPrivateZonesLifecycleState = "Creating"
	// DNSPrivateZonesLifecycleStateDeleted - DNS Private Zones is deleted
	DNSPrivateZonesLifecycleStateDeleted DNSPrivateZonesLifecycleState = "Deleted"
	// DNSPrivateZonesLifecycleStateDeleting - DNS Private Zones is deleting
	DNSPrivateZonesLifecycleStateDeleting DNSPrivateZonesLifecycleState = "Deleting"
	// DNSPrivateZonesLifecycleStateUpdating - DNS Private Zones is updating
	DNSPrivateZonesLifecycleStateUpdating DNSPrivateZonesLifecycleState = "Updating"
)

func PossibleDNSPrivateZonesLifecycleStateValues

func PossibleDNSPrivateZonesLifecycleStateValues() []DNSPrivateZonesLifecycleState

PossibleDNSPrivateZonesLifecycleStateValues returns the possible values for the DNSPrivateZonesLifecycleState const type.

type DataBaseType

type DataBaseType string

DataBaseType - Database type enum

const (
	// DataBaseTypeClone - Clone DB
	DataBaseTypeClone DataBaseType = "Clone"
	// DataBaseTypeRegular - Regular DB
	DataBaseTypeRegular DataBaseType = "Regular"
)

func PossibleDataBaseTypeValues

func PossibleDataBaseTypeValues() []DataBaseType

PossibleDataBaseTypeValues returns the possible values for the DataBaseType const type.

type DataCollectionOptions

type DataCollectionOptions struct {
	// Indicates whether diagnostic collection is enabled for the VM cluster/Cloud VM cluster/VMBM DBCS.
	IsDiagnosticsEventsEnabled *bool

	// Indicates whether health monitoring is enabled for the VM cluster / Cloud VM cluster / VMBM DBCS.
	IsHealthMonitoringEnabled *bool

	// Indicates whether incident logs and trace collection are enabled for the VM cluster / Cloud VM cluster / VMBM DBCS.
	IsIncidentLogsEnabled *bool
}

DataCollectionOptions resource properties

func (DataCollectionOptions) MarshalJSON

func (d DataCollectionOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DataCollectionOptions.

func (*DataCollectionOptions) UnmarshalJSON

func (d *DataCollectionOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DataCollectionOptions.

type DataSafeStatusType

type DataSafeStatusType string

DataSafeStatusType - DataSafe status type enum.

const (
	// DataSafeStatusTypeDeregistering - Deregistering status
	DataSafeStatusTypeDeregistering DataSafeStatusType = "Deregistering"
	// DataSafeStatusTypeFailed - Failed status
	DataSafeStatusTypeFailed DataSafeStatusType = "Failed"
	// DataSafeStatusTypeNotRegistered - NotRegistered status
	DataSafeStatusTypeNotRegistered DataSafeStatusType = "NotRegistered"
	// DataSafeStatusTypeRegistered - Registered status
	DataSafeStatusTypeRegistered DataSafeStatusType = "Registered"
	// DataSafeStatusTypeRegistering - Registering status
	DataSafeStatusTypeRegistering DataSafeStatusType = "Registering"
)

func PossibleDataSafeStatusTypeValues

func PossibleDataSafeStatusTypeValues() []DataSafeStatusType

PossibleDataSafeStatusTypeValues returns the possible values for the DataSafeStatusType const type.

type DatabaseEditionType

type DatabaseEditionType string

DatabaseEditionType - Database edition type enum.

const (
	// DatabaseEditionTypeEnterpriseEdition - Enterprise edition
	DatabaseEditionTypeEnterpriseEdition DatabaseEditionType = "EnterpriseEdition"
	// DatabaseEditionTypeStandardEdition - Standard edition
	DatabaseEditionTypeStandardEdition DatabaseEditionType = "StandardEdition"
)

func PossibleDatabaseEditionTypeValues

func PossibleDatabaseEditionTypeValues() []DatabaseEditionType

PossibleDatabaseEditionTypeValues returns the possible values for the DatabaseEditionType const type.

type DayOfWeek

type DayOfWeek struct {
	// REQUIRED; Name of the day of the week.
	Name *DayOfWeekName
}

DayOfWeek resource properties

func (DayOfWeek) MarshalJSON

func (d DayOfWeek) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DayOfWeek.

func (*DayOfWeek) UnmarshalJSON

func (d *DayOfWeek) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DayOfWeek.

type DayOfWeekName

type DayOfWeekName string

DayOfWeekName - DayOfWeekName enum

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

func PossibleDayOfWeekNameValues

func PossibleDayOfWeekNameValues() []DayOfWeekName

PossibleDayOfWeekNameValues returns the possible values for the DayOfWeekName const type.

type DayOfWeekUpdate

type DayOfWeekUpdate struct {
	// Name of the day of the week.
	Name *DayOfWeekName
}

DayOfWeekUpdate - DayOfWeek resource properties

func (DayOfWeekUpdate) MarshalJSON

func (d DayOfWeekUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DayOfWeekUpdate.

func (*DayOfWeekUpdate) UnmarshalJSON

func (d *DayOfWeekUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DayOfWeekUpdate.

type DbIormConfig

type DbIormConfig struct {
	// The database name. For the default DbPlan, the dbName is default.
	DbName *string

	// The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.
	FlashCacheLimit *string

	// The relative priority of this database.
	Share *int32
}

DbIormConfig for cloud vm cluster

func (DbIormConfig) MarshalJSON

func (d DbIormConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbIormConfig.

func (*DbIormConfig) UnmarshalJSON

func (d *DbIormConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbIormConfig.

type DbNode

type DbNode struct {
	// The resource-specific properties for this resource.
	Properties *DbNodeProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

DbNode - The DbNode resource belonging to vmCluster

func (DbNode) MarshalJSON

func (d DbNode) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbNode.

func (*DbNode) UnmarshalJSON

func (d *DbNode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbNode.

type DbNodeAction

type DbNodeAction struct {
	// REQUIRED; Db action
	Action *DbNodeActionEnum
}

DbNodeAction - DbNode action object

func (DbNodeAction) MarshalJSON

func (d DbNodeAction) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbNodeAction.

func (*DbNodeAction) UnmarshalJSON

func (d *DbNodeAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbNodeAction.

type DbNodeActionEnum

type DbNodeActionEnum string

DbNodeActionEnum - DbNode action enum

const (
	// DbNodeActionEnumReset - Reset DbNode
	DbNodeActionEnumReset DbNodeActionEnum = "Reset"
	// DbNodeActionEnumSoftReset - Soft reset DbNode
	DbNodeActionEnumSoftReset DbNodeActionEnum = "SoftReset"
	// DbNodeActionEnumStart - Start DbNode
	DbNodeActionEnumStart DbNodeActionEnum = "Start"
	// DbNodeActionEnumStop - Stop DbNode
	DbNodeActionEnumStop DbNodeActionEnum = "Stop"
)

func PossibleDbNodeActionEnumValues

func PossibleDbNodeActionEnumValues() []DbNodeActionEnum

PossibleDbNodeActionEnumValues returns the possible values for the DbNodeActionEnum const type.

type DbNodeListResult

type DbNodeListResult struct {
	// REQUIRED; The DbNode items on this page
	Value []*DbNode

	// The link to the next page of items
	NextLink *string
}

DbNodeListResult - The response of a DbNode list operation.

func (DbNodeListResult) MarshalJSON

func (d DbNodeListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbNodeListResult.

func (*DbNodeListResult) UnmarshalJSON

func (d *DbNodeListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbNodeListResult.

type DbNodeMaintenanceType

type DbNodeMaintenanceType string

DbNodeMaintenanceType - The type of database node maintenance.

const (
	// DbNodeMaintenanceTypeVmdbRebootMigration - VMDB reboot migration maintenance type
	DbNodeMaintenanceTypeVmdbRebootMigration DbNodeMaintenanceType = "VmdbRebootMigration"
)

func PossibleDbNodeMaintenanceTypeValues

func PossibleDbNodeMaintenanceTypeValues() []DbNodeMaintenanceType

PossibleDbNodeMaintenanceTypeValues returns the possible values for the DbNodeMaintenanceType const type.

type DbNodeProperties

type DbNodeProperties struct {
	// READ-ONLY; The OCID of the DB system.
	DbSystemID *string

	// READ-ONLY; DbNode OCID
	Ocid *string

	// READ-ONLY; Additional information about the planned maintenance.
	AdditionalDetails *string

	// READ-ONLY; The OCID of the backup IP address associated with the database node.
	BackupIPID *string

	// READ-ONLY; The OCID of the second backup VNIC.
	BackupVnic2ID *string

	// READ-ONLY; The OCID of the backup VNIC.
	BackupVnicID *string

	// READ-ONLY; The number of CPU cores enabled on the Db node.
	CPUCoreCount *int32

	// READ-ONLY; The allocated local node storage in GBs on the Db node.
	DbNodeStorageSizeInGbs *int32

	// READ-ONLY; The OCID of the Exacc Db server associated with the database node.
	DbServerID *string

	// READ-ONLY; The name of the Fault Domain the instance is contained in.
	FaultDomain *string

	// READ-ONLY; The OCID of the host IP address associated with the database node.
	HostIPID *string

	// READ-ONLY; The host name for the database node.
	Hostname *string

	// READ-ONLY; Lifecycle details of Db Node.
	LifecycleDetails *string

	// READ-ONLY; The current state of the database node.
	LifecycleState *DbNodeProvisioningState

	// READ-ONLY; The type of database node maintenance.
	MaintenanceType *DbNodeMaintenanceType

	// READ-ONLY; The allocated memory in GBs on the Db node.
	MemorySizeInGbs *int32

	// READ-ONLY; Azure resource provisioning state.
	ProvisioningState *ResourceProvisioningState

	// READ-ONLY; The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual
	// machine DB systems.
	SoftwareStorageSizeInGb *int32

	// READ-ONLY; The date and time that the database node was created.
	TimeCreated *time.Time

	// READ-ONLY; End date and time of maintenance window.
	TimeMaintenanceWindowEnd *time.Time

	// READ-ONLY; Start date and time of maintenance window.
	TimeMaintenanceWindowStart *time.Time

	// READ-ONLY; The OCID of the second VNIC.
	Vnic2ID *string

	// READ-ONLY; The OCID of the VNIC.
	VnicID *string
}

DbNodeProperties - The properties of DbNodeResource

func (DbNodeProperties) MarshalJSON

func (d DbNodeProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbNodeProperties.

func (*DbNodeProperties) UnmarshalJSON

func (d *DbNodeProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbNodeProperties.

type DbNodeProvisioningState

type DbNodeProvisioningState string

DbNodeProvisioningState - DnNode provisioning state enum

const (
	// DbNodeProvisioningStateAvailable - Indicates that resource in Available state
	DbNodeProvisioningStateAvailable DbNodeProvisioningState = "Available"
	// DbNodeProvisioningStateFailed - Indicates that resource in Failed state
	DbNodeProvisioningStateFailed DbNodeProvisioningState = "Failed"
	// DbNodeProvisioningStateProvisioning - Indicates that resource in Provisioning state
	DbNodeProvisioningStateProvisioning DbNodeProvisioningState = "Provisioning"
	// DbNodeProvisioningStateStarting - Indicates that resource in Starting state
	DbNodeProvisioningStateStarting DbNodeProvisioningState = "Starting"
	// DbNodeProvisioningStateStopped - Indicates that resource in Stopped state
	DbNodeProvisioningStateStopped DbNodeProvisioningState = "Stopped"
	// DbNodeProvisioningStateStopping - Indicates that resource in Stopping state
	DbNodeProvisioningStateStopping DbNodeProvisioningState = "Stopping"
	// DbNodeProvisioningStateTerminated - Indicates that resource in Terminated state
	DbNodeProvisioningStateTerminated DbNodeProvisioningState = "Terminated"
	// DbNodeProvisioningStateTerminating - Indicates that resource in Terminating state
	DbNodeProvisioningStateTerminating DbNodeProvisioningState = "Terminating"
	// DbNodeProvisioningStateUpdating - Indicates that resource in Updating state
	DbNodeProvisioningStateUpdating DbNodeProvisioningState = "Updating"
)

func PossibleDbNodeProvisioningStateValues

func PossibleDbNodeProvisioningStateValues() []DbNodeProvisioningState

PossibleDbNodeProvisioningStateValues returns the possible values for the DbNodeProvisioningState const type.

type DbNodesClient

type DbNodesClient struct {
	// contains filtered or unexported fields
}

DbNodesClient contains the methods for the DbNodes group. Don't use this type directly, use NewDbNodesClient() instead.

func NewDbNodesClient

func NewDbNodesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DbNodesClient, error)

NewDbNodesClient creates a new instance of DbNodesClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*DbNodesClient) BeginAction

func (client *DbNodesClient) BeginAction(ctx context.Context, resourceGroupName string, cloudvmclustername string, dbnodeocid string, body DbNodeAction, options *DbNodesClientBeginActionOptions) (*runtime.Poller[DbNodesClientActionResponse], error)

BeginAction - VM actions on DbNode of VM Cluster by the provided filter If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • dbnodeocid - DbNode OCID.
  • body - The content of the action request
  • options - DbNodesClientBeginActionOptions contains the optional parameters for the DbNodesClient.BeginAction method.
Example (DbNodesAction)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_action.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDbNodesClient().BeginAction(ctx, "rg000", "cluster1", "ocid1....aaaaaa", armoracledatabase.DbNodeAction{
		Action: to.Ptr(armoracledatabase.DbNodeActionEnumStart),
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.DbNode = armoracledatabase.DbNode{
	// 	Type: to.Ptr("Oracle.Database/cloudVmClusters/dbNodes"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/dbNodes/ocid1"),
	// 	Properties: &armoracledatabase.DbNodeProperties{
	// 		BackupIPID: to.Ptr("id1"),
	// 		BackupVnic2ID: to.Ptr("id1"),
	// 		BackupVnicID: to.Ptr("id1"),
	// 		CPUCoreCount: to.Ptr[int32](1000),
	// 		DbNodeStorageSizeInGbs: to.Ptr[int32](500),
	// 		DbServerID: to.Ptr("dbserver1"),
	// 		DbSystemID: to.Ptr("db1"),
	// 		FaultDomain: to.Ptr("domain1"),
	// 		HostIPID: to.Ptr("10.0.0.0"),
	// 		Hostname: to.Ptr("host1"),
	// 		MaintenanceType: to.Ptr(armoracledatabase.DbNodeMaintenanceTypeVmdbRebootMigration),
	// 		MemorySizeInGbs: to.Ptr[int32](100),
	// 		Ocid: to.Ptr("ocid.dbNodes.1"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.ResourceProvisioningStateSucceeded),
	// 		SoftwareStorageSizeInGb: to.Ptr[int32](1000),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-21T13:44:04.924Z"); return t}()),
	// 		TimeMaintenanceWindowEnd: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-21T13:44:04.924Z"); return t}()),
	// 		TimeMaintenanceWindowStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-21T13:44:04.924Z"); return t}()),
	// 		Vnic2ID: to.Ptr("ocid.vnic.id2"),
	// 		VnicID: to.Ptr("ocid.vnic.id1"),
	// 	},
	// }
}
Output:

func (*DbNodesClient) Get

func (client *DbNodesClient) Get(ctx context.Context, resourceGroupName string, cloudvmclustername string, dbnodeocid string, options *DbNodesClientGetOptions) (DbNodesClientGetResponse, error)

Get - Get a DbNode If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • dbnodeocid - DbNode OCID.
  • options - DbNodesClientGetOptions contains the optional parameters for the DbNodesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDbNodesClient().Get(ctx, "rg000", "cluster1", "ocid1....aaaaaa", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.DbNode = armoracledatabase.DbNode{
	// 	Type: to.Ptr("Oracle.Database/cloudVmClusters/dbNodes"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/dbNodes/ocid1"),
	// 	Properties: &armoracledatabase.DbNodeProperties{
	// 		BackupIPID: to.Ptr("id1"),
	// 		BackupVnic2ID: to.Ptr("id1"),
	// 		BackupVnicID: to.Ptr("id1"),
	// 		CPUCoreCount: to.Ptr[int32](1000),
	// 		DbNodeStorageSizeInGbs: to.Ptr[int32](500),
	// 		DbServerID: to.Ptr("dbserver1"),
	// 		DbSystemID: to.Ptr("db1"),
	// 		FaultDomain: to.Ptr("domain1"),
	// 		HostIPID: to.Ptr("10.0.0.0"),
	// 		Hostname: to.Ptr("host1"),
	// 		LifecycleState: to.Ptr(armoracledatabase.DbNodeProvisioningStateAvailable),
	// 		MaintenanceType: to.Ptr(armoracledatabase.DbNodeMaintenanceTypeVmdbRebootMigration),
	// 		MemorySizeInGbs: to.Ptr[int32](100),
	// 		Ocid: to.Ptr("ocid.dbNodes.1"),
	// 		SoftwareStorageSizeInGb: to.Ptr[int32](1000),
	// 		TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-21T13:44:04.924Z"); return t}()),
	// 		TimeMaintenanceWindowEnd: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-21T13:44:04.924Z"); return t}()),
	// 		TimeMaintenanceWindowStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-21T13:44:04.924Z"); return t}()),
	// 		Vnic2ID: to.Ptr("ocid.vnic.id2"),
	// 		VnicID: to.Ptr("ocid.vnic.id1"),
	// 	},
	// }
}
Output:

func (*DbNodesClient) NewListByCloudVMClusterPager

func (client *DbNodesClient) NewListByCloudVMClusterPager(resourceGroupName string, cloudvmclustername string, options *DbNodesClientListByCloudVMClusterOptions) *runtime.Pager[DbNodesClientListByCloudVMClusterResponse]

NewListByCloudVMClusterPager - List DbNode resources by CloudVmCluster

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • options - DbNodesClientListByCloudVMClusterOptions contains the optional parameters for the DbNodesClient.NewListByCloudVMClusterPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_listByParent.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDbNodesClient().NewListByCloudVMClusterPager("rg000", "cluster1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.DbNodeListResult = armoracledatabase.DbNodeListResult{
		// 	Value: []*armoracledatabase.DbNode{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/cloudVmClusters/dbNodes"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/dbNodes/ocid1"),
		// 			Properties: &armoracledatabase.DbNodeProperties{
		// 				BackupIPID: to.Ptr("id1"),
		// 				BackupVnic2ID: to.Ptr("id1"),
		// 				BackupVnicID: to.Ptr("id1"),
		// 				CPUCoreCount: to.Ptr[int32](1000),
		// 				DbNodeStorageSizeInGbs: to.Ptr[int32](500),
		// 				DbServerID: to.Ptr("dbserver1"),
		// 				DbSystemID: to.Ptr("db1"),
		// 				FaultDomain: to.Ptr("domain1"),
		// 				HostIPID: to.Ptr("10.0.0.0"),
		// 				Hostname: to.Ptr("host1"),
		// 				LifecycleState: to.Ptr(armoracledatabase.DbNodeProvisioningStateAvailable),
		// 				MaintenanceType: to.Ptr(armoracledatabase.DbNodeMaintenanceTypeVmdbRebootMigration),
		// 				MemorySizeInGbs: to.Ptr[int32](100),
		// 				Ocid: to.Ptr("ocid.dbNodes.1"),
		// 				SoftwareStorageSizeInGb: to.Ptr[int32](1000),
		// 				TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-21T13:44:04.924Z"); return t}()),
		// 				TimeMaintenanceWindowEnd: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-21T13:44:04.924Z"); return t}()),
		// 				TimeMaintenanceWindowStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-21T13:44:04.924Z"); return t}()),
		// 				Vnic2ID: to.Ptr("ocid.vnic.id2"),
		// 				VnicID: to.Ptr("ocid.vnic.id1"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type DbNodesClientActionResponse

type DbNodesClientActionResponse struct {
	// The DbNode resource belonging to vmCluster
	DbNode
}

DbNodesClientActionResponse contains the response from method DbNodesClient.BeginAction.

type DbNodesClientBeginActionOptions

type DbNodesClientBeginActionOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

DbNodesClientBeginActionOptions contains the optional parameters for the DbNodesClient.BeginAction method.

type DbNodesClientGetOptions

type DbNodesClientGetOptions struct {
}

DbNodesClientGetOptions contains the optional parameters for the DbNodesClient.Get method.

type DbNodesClientGetResponse

type DbNodesClientGetResponse struct {
	// The DbNode resource belonging to vmCluster
	DbNode
}

DbNodesClientGetResponse contains the response from method DbNodesClient.Get.

type DbNodesClientListByCloudVMClusterOptions

type DbNodesClientListByCloudVMClusterOptions struct {
}

DbNodesClientListByCloudVMClusterOptions contains the optional parameters for the DbNodesClient.NewListByCloudVMClusterPager method.

type DbNodesClientListByCloudVMClusterResponse

type DbNodesClientListByCloudVMClusterResponse struct {
	// The response of a DbNode list operation.
	DbNodeListResult
}

DbNodesClientListByCloudVMClusterResponse contains the response from method DbNodesClient.NewListByCloudVMClusterPager.

type DbServer

type DbServer struct {
	// The resource-specific properties for this resource.
	Properties *DbServerProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

DbServer resource model

func (DbServer) MarshalJSON

func (d DbServer) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbServer.

func (*DbServer) UnmarshalJSON

func (d *DbServer) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbServer.

type DbServerListResult

type DbServerListResult struct {
	// REQUIRED; The DbServer items on this page
	Value []*DbServer

	// The link to the next page of items
	NextLink *string
}

DbServerListResult - The response of a DbServer list operation.

func (DbServerListResult) MarshalJSON

func (d DbServerListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbServerListResult.

func (*DbServerListResult) UnmarshalJSON

func (d *DbServerListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbServerListResult.

type DbServerPatchingDetails

type DbServerPatchingDetails struct {
	// READ-ONLY; Estimated Patch Duration
	EstimatedPatchDuration *int32

	// READ-ONLY; Patching Status
	PatchingStatus *DbServerPatchingStatus

	// READ-ONLY; Time Patching Ended
	TimePatchingEnded *time.Time

	// READ-ONLY; Time Patching Started
	TimePatchingStarted *time.Time
}

DbServerPatchingDetails - DbServer Patching Properties

func (DbServerPatchingDetails) MarshalJSON

func (d DbServerPatchingDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbServerPatchingDetails.

func (*DbServerPatchingDetails) UnmarshalJSON

func (d *DbServerPatchingDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbServerPatchingDetails.

type DbServerPatchingStatus

type DbServerPatchingStatus string

DbServerPatchingStatus - DB Server patching status enum

const (
	// DbServerPatchingStatusComplete - Patching completed
	DbServerPatchingStatusComplete DbServerPatchingStatus = "Complete"
	// DbServerPatchingStatusFailed - Patching failed
	DbServerPatchingStatusFailed DbServerPatchingStatus = "Failed"
	// DbServerPatchingStatusMaintenanceInProgress - Patching in progress
	DbServerPatchingStatusMaintenanceInProgress DbServerPatchingStatus = "MaintenanceInProgress"
	// DbServerPatchingStatusScheduled - Patching scheduled
	DbServerPatchingStatusScheduled DbServerPatchingStatus = "Scheduled"
)

func PossibleDbServerPatchingStatusValues

func PossibleDbServerPatchingStatusValues() []DbServerPatchingStatus

PossibleDbServerPatchingStatusValues returns the possible values for the DbServerPatchingStatus const type.

type DbServerProperties

type DbServerProperties struct {
	// READ-ONLY; The list of OCIDs of the Autonomous VM Clusters associated with the Db server.
	AutonomousVMClusterIDs []*string

	// READ-ONLY; The list of OCIDs of the Autonomous Virtual Machines associated with the Db server.
	AutonomousVirtualMachineIDs []*string

	// READ-ONLY; The number of CPU cores enabled on the Db server.
	CPUCoreCount *int32

	// READ-ONLY; The OCID of the compartment.
	CompartmentID *string

	// READ-ONLY; The OCID of the Db nodes associated with the Db server.
	DbNodeIDs []*string

	// READ-ONLY; The allocated local node storage in GBs on the Db server.
	DbNodeStorageSizeInGbs *int32

	// READ-ONLY; dbServerPatching details of the Db server.
	DbServerPatchingDetails *DbServerPatchingDetails

	// READ-ONLY; The name for the Db Server.
	DisplayName *string

	// READ-ONLY; The OCID of the Exadata infrastructure.
	ExadataInfrastructureID *string

	// READ-ONLY; Lifecycle details of dbServer.
	LifecycleDetails *string

	// READ-ONLY; DbServer provisioning state.
	LifecycleState *DbServerProvisioningState

	// READ-ONLY; The total number of CPU cores available.
	MaxCPUCount *int32

	// READ-ONLY; The total max dbNode storage in GBs.
	MaxDbNodeStorageInGbs *int32

	// READ-ONLY; The total memory available in GBs.
	MaxMemoryInGbs *int32

	// READ-ONLY; The total memory size in GBs.
	MemorySizeInGbs *int32

	// READ-ONLY; Db server name.
	Ocid *string

	// READ-ONLY; Azure resource provisioning state.
	ProvisioningState *ResourceProvisioningState

	// READ-ONLY; The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.
	Shape *string

	// READ-ONLY; The date and time that the Db Server was created.
	TimeCreated *time.Time

	// READ-ONLY; The OCID of the VM Clusters associated with the Db server.
	VMClusterIDs []*string
}

DbServerProperties - DbServer resource properties

func (DbServerProperties) MarshalJSON

func (d DbServerProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbServerProperties.

func (*DbServerProperties) UnmarshalJSON

func (d *DbServerProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbServerProperties.

type DbServerProvisioningState

type DbServerProvisioningState string

DbServerProvisioningState - DbServerProvisioningState enum

const (
	// DbServerProvisioningStateAvailable - Indicates that resource in Available state
	DbServerProvisioningStateAvailable DbServerProvisioningState = "Available"
	// DbServerProvisioningStateCreating - Indicates that resource in Creating state
	DbServerProvisioningStateCreating DbServerProvisioningState = "Creating"
	// DbServerProvisioningStateDeleted - Indicates that resource in Deleted state
	DbServerProvisioningStateDeleted DbServerProvisioningState = "Deleted"
	// DbServerProvisioningStateDeleting - Indicates that resource in Deleting state
	DbServerProvisioningStateDeleting DbServerProvisioningState = "Deleting"
	// DbServerProvisioningStateMaintenanceInProgress - Indicates that resource maintenance in progress state
	DbServerProvisioningStateMaintenanceInProgress DbServerProvisioningState = "MaintenanceInProgress"
	// DbServerProvisioningStateUnavailable - Indicates that resource in Unavailable state
	DbServerProvisioningStateUnavailable DbServerProvisioningState = "Unavailable"
)

func PossibleDbServerProvisioningStateValues

func PossibleDbServerProvisioningStateValues() []DbServerProvisioningState

PossibleDbServerProvisioningStateValues returns the possible values for the DbServerProvisioningState const type.

type DbServersClient

type DbServersClient struct {
	// contains filtered or unexported fields
}

DbServersClient contains the methods for the DbServers group. Don't use this type directly, use NewDbServersClient() instead.

func NewDbServersClient

func NewDbServersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DbServersClient, error)

NewDbServersClient creates a new instance of DbServersClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*DbServersClient) Get

func (client *DbServersClient) Get(ctx context.Context, resourceGroupName string, cloudexadatainfrastructurename string, dbserverocid string, options *DbServersClientGetOptions) (DbServersClientGetResponse, error)

Get - Get a DbServer If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudexadatainfrastructurename - CloudExadataInfrastructure name
  • dbserverocid - DbServer OCID.
  • options - DbServersClientGetOptions contains the optional parameters for the DbServersClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDbServersClient().Get(ctx, "rg000", "infra1", "ocid1....aaaaaa", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.DbServer = armoracledatabase.DbServer{
	// 	Type: to.Ptr("Oracle.Database/cloudVmClusters/dbServers"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1/dbServers/ocid1"),
	// 	Properties: &armoracledatabase.DbServerProperties{
	// 		AutonomousVirtualMachineIDs: []*string{
	// 			to.Ptr("ocid1..aaaaa")},
	// 			AutonomousVMClusterIDs: []*string{
	// 				to.Ptr("ocid1..aaaaa")},
	// 				CompartmentID: to.Ptr("ocid1....aaaa"),
	// 				CPUCoreCount: to.Ptr[int32](100),
	// 				DbNodeIDs: []*string{
	// 					to.Ptr("ocid1..aaaaa")},
	// 					DbNodeStorageSizeInGbs: to.Ptr[int32](150),
	// 					DisplayName: to.Ptr("dbserver1"),
	// 					ExadataInfrastructureID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
	// 					LifecycleState: to.Ptr(armoracledatabase.DbServerProvisioningStateAvailable),
	// 					MaxCPUCount: to.Ptr[int32](1000),
	// 					MaxMemoryInGbs: to.Ptr[int32](1000),
	// 					Ocid: to.Ptr("ocid1"),
	// 					VMClusterIDs: []*string{
	// 						to.Ptr("ocid1..aaaaa")},
	// 					},
	// 				}
}
Output:

func (*DbServersClient) NewListByCloudExadataInfrastructurePager

func (client *DbServersClient) NewListByCloudExadataInfrastructurePager(resourceGroupName string, cloudexadatainfrastructurename string, options *DbServersClientListByCloudExadataInfrastructureOptions) *runtime.Pager[DbServersClientListByCloudExadataInfrastructureResponse]

NewListByCloudExadataInfrastructurePager - List DbServer resources by CloudExadataInfrastructure

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudexadatainfrastructurename - CloudExadataInfrastructure name
  • options - DbServersClientListByCloudExadataInfrastructureOptions contains the optional parameters for the DbServersClient.NewListByCloudExadataInfrastructurePager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_listByParent.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDbServersClient().NewListByCloudExadataInfrastructurePager("rg000", "infra1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.DbServerListResult = armoracledatabase.DbServerListResult{
		// 	Value: []*armoracledatabase.DbServer{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/cloudVmClusters/dbServers"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1/dbServers/ocid1"),
		// 			Properties: &armoracledatabase.DbServerProperties{
		// 				AutonomousVirtualMachineIDs: []*string{
		// 					to.Ptr("ocid1..aaaaa")},
		// 					AutonomousVMClusterIDs: []*string{
		// 						to.Ptr("ocid1..aaaaa")},
		// 						CompartmentID: to.Ptr("ocid1....aaaa"),
		// 						CPUCoreCount: to.Ptr[int32](100),
		// 						DbNodeIDs: []*string{
		// 							to.Ptr("ocid1..aaaaa")},
		// 							DbNodeStorageSizeInGbs: to.Ptr[int32](150),
		// 							DisplayName: to.Ptr("dbserver1"),
		// 							ExadataInfrastructureID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1"),
		// 							LifecycleState: to.Ptr(armoracledatabase.DbServerProvisioningStateAvailable),
		// 							MaxCPUCount: to.Ptr[int32](1000),
		// 							MaxMemoryInGbs: to.Ptr[int32](1000),
		// 							Ocid: to.Ptr("ocid1"),
		// 							VMClusterIDs: []*string{
		// 								to.Ptr("ocid1..aaaaa")},
		// 							},
		// 					}},
		// 				}
	}
}
Output:

type DbServersClientGetOptions

type DbServersClientGetOptions struct {
}

DbServersClientGetOptions contains the optional parameters for the DbServersClient.Get method.

type DbServersClientGetResponse

type DbServersClientGetResponse struct {
	// DbServer resource model
	DbServer
}

DbServersClientGetResponse contains the response from method DbServersClient.Get.

type DbServersClientListByCloudExadataInfrastructureOptions

type DbServersClientListByCloudExadataInfrastructureOptions struct {
}

DbServersClientListByCloudExadataInfrastructureOptions contains the optional parameters for the DbServersClient.NewListByCloudExadataInfrastructurePager method.

type DbServersClientListByCloudExadataInfrastructureResponse

type DbServersClientListByCloudExadataInfrastructureResponse struct {
	// The response of a DbServer list operation.
	DbServerListResult
}

DbServersClientListByCloudExadataInfrastructureResponse contains the response from method DbServersClient.NewListByCloudExadataInfrastructurePager.

type DbSystemShape

type DbSystemShape struct {
	// The resource-specific properties for this resource.
	Properties *DbSystemShapeProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

DbSystemShape resource definition

func (DbSystemShape) MarshalJSON

func (d DbSystemShape) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbSystemShape.

func (*DbSystemShape) UnmarshalJSON

func (d *DbSystemShape) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbSystemShape.

type DbSystemShapeListResult

type DbSystemShapeListResult struct {
	// REQUIRED; The DbSystemShape items on this page
	Value []*DbSystemShape

	// The link to the next page of items
	NextLink *string
}

DbSystemShapeListResult - The response of a DbSystemShape list operation.

func (DbSystemShapeListResult) MarshalJSON

func (d DbSystemShapeListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbSystemShapeListResult.

func (*DbSystemShapeListResult) UnmarshalJSON

func (d *DbSystemShapeListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbSystemShapeListResult.

type DbSystemShapeProperties

type DbSystemShapeProperties struct {
	// READ-ONLY; The maximum number of CPU cores that can be enabled on the DB system for this shape.
	AvailableCoreCount *int32

	// READ-ONLY; The maximum number of CPU cores per database node that can be enabled for this shape. Only applicable to the
	// flex Exadata shape and ExaCC Elastic shapes.
	AvailableCoreCountPerNode *int32

	// READ-ONLY; The maximum DATA storage that can be enabled for this shape.
	AvailableDataStorageInTbs *int32

	// READ-ONLY; The maximum data storage available per storage server for this shape. Only applicable to ExaCC Elastic shapes.
	AvailableDataStoragePerServerInTbs *float64

	// READ-ONLY; The maximum Db Node storage available per database node for this shape. Only applicable to ExaCC Elastic shapes.
	AvailableDbNodePerNodeInGbs *int32

	// READ-ONLY; The maximum Db Node storage that can be enabled for this shape.
	AvailableDbNodeStorageInGbs *int32

	// READ-ONLY; The maximum memory that can be enabled for this shape.
	AvailableMemoryInGbs *int32

	// READ-ONLY; The maximum memory available per database node for this shape. Only applicable to ExaCC Elastic shapes.
	AvailableMemoryPerNodeInGbs *int32

	// READ-ONLY; The discrete number by which the CPU core count for this shape can be increased or decreased.
	CoreCountIncrement *int32

	// READ-ONLY; The maximum number of Exadata storage servers available for the Exadata infrastructure.
	MaxStorageCount *int32

	// READ-ONLY; The maximum number of database nodes available for this shape.
	MaximumNodeCount *int32

	// READ-ONLY; The minimum number of CPU cores that can be enabled per node for this shape.
	MinCoreCountPerNode *int32

	// READ-ONLY; The minimum data storage that need be allocated for this shape.
	MinDataStorageInTbs *int32

	// READ-ONLY; The minimum Db Node storage that need be allocated per node for this shape.
	MinDbNodeStoragePerNodeInGbs *int32

	// READ-ONLY; The minimum memory that need be allocated per node for this shape.
	MinMemoryPerNodeInGbs *int32

	// READ-ONLY; The minimum number of Exadata storage servers available for the Exadata infrastructure.
	MinStorageCount *int32

	// READ-ONLY; The minimum number of CPU cores that can be enabled on the DB system for this shape.
	MinimumCoreCount *int32

	// READ-ONLY; The minimum number of database nodes available for this shape.
	MinimumNodeCount *int32

	// READ-ONLY; The runtime minimum number of CPU cores that can be enabled on the DB system for this shape.
	RuntimeMinimumCoreCount *int32

	// READ-ONLY; The family of the shape used for the DB system.
	ShapeFamily *string
}

DbSystemShapeProperties - DbSystemShape resource model

func (DbSystemShapeProperties) MarshalJSON

func (d DbSystemShapeProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DbSystemShapeProperties.

func (*DbSystemShapeProperties) UnmarshalJSON

func (d *DbSystemShapeProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DbSystemShapeProperties.

type DbSystemShapesClient

type DbSystemShapesClient struct {
	// contains filtered or unexported fields
}

DbSystemShapesClient contains the methods for the DbSystemShapes group. Don't use this type directly, use NewDbSystemShapesClient() instead.

func NewDbSystemShapesClient

func NewDbSystemShapesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DbSystemShapesClient, error)

NewDbSystemShapesClient creates a new instance of DbSystemShapesClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*DbSystemShapesClient) Get

func (client *DbSystemShapesClient) Get(ctx context.Context, location string, dbsystemshapename string, options *DbSystemShapesClientGetOptions) (DbSystemShapesClientGetResponse, error)

Get - Get a DbSystemShape If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • dbsystemshapename - DbSystemShape name
  • options - DbSystemShapesClientGetOptions contains the optional parameters for the DbSystemShapesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDbSystemShapesClient().Get(ctx, "eastus", "EXADATA.X9M", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.DbSystemShape = armoracledatabase.DbSystemShape{
	// 	Type: to.Ptr("Oracle.Database/locations/dbSystemShapes"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dbSystemShapes/EXADATA.X9M"),
	// 	Properties: &armoracledatabase.DbSystemShapeProperties{
	// 		AvailableCoreCount: to.Ptr[int32](100),
	// 		AvailableCoreCountPerNode: to.Ptr[int32](1000),
	// 		AvailableDataStorageInTbs: to.Ptr[int32](10),
	// 		AvailableDataStoragePerServerInTbs: to.Ptr[float64](100),
	// 		AvailableDbNodePerNodeInGbs: to.Ptr[int32](10),
	// 		AvailableDbNodeStorageInGbs: to.Ptr[int32](10),
	// 		AvailableMemoryInGbs: to.Ptr[int32](10),
	// 		AvailableMemoryPerNodeInGbs: to.Ptr[int32](10),
	// 		CoreCountIncrement: to.Ptr[int32](1),
	// 		MaxStorageCount: to.Ptr[int32](100),
	// 		MaximumNodeCount: to.Ptr[int32](1000),
	// 		MinCoreCountPerNode: to.Ptr[int32](0),
	// 		MinDataStorageInTbs: to.Ptr[int32](0),
	// 		MinDbNodeStoragePerNodeInGbs: to.Ptr[int32](0),
	// 		MinMemoryPerNodeInGbs: to.Ptr[int32](0),
	// 		MinStorageCount: to.Ptr[int32](0),
	// 		MinimumCoreCount: to.Ptr[int32](1),
	// 		MinimumNodeCount: to.Ptr[int32](0),
	// 		RuntimeMinimumCoreCount: to.Ptr[int32](1),
	// 		ShapeFamily: to.Ptr("EXADATA"),
	// 	},
	// }
}
Output:

func (*DbSystemShapesClient) NewListByLocationPager

NewListByLocationPager - List DbSystemShape resources by Location

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • options - DbSystemShapesClientListByLocationOptions contains the optional parameters for the DbSystemShapesClient.NewListByLocationPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_listByLocation.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDbSystemShapesClient().NewListByLocationPager("eastus", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.DbSystemShapeListResult = armoracledatabase.DbSystemShapeListResult{
		// 	Value: []*armoracledatabase.DbSystemShape{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/locations/dbSystemShapes"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dbSystemShapes/EXADATA.X9M"),
		// 			Properties: &armoracledatabase.DbSystemShapeProperties{
		// 				AvailableCoreCount: to.Ptr[int32](100),
		// 				AvailableCoreCountPerNode: to.Ptr[int32](1000),
		// 				AvailableDataStorageInTbs: to.Ptr[int32](10),
		// 				AvailableDataStoragePerServerInTbs: to.Ptr[float64](100),
		// 				AvailableDbNodePerNodeInGbs: to.Ptr[int32](10),
		// 				AvailableDbNodeStorageInGbs: to.Ptr[int32](10),
		// 				AvailableMemoryInGbs: to.Ptr[int32](10),
		// 				AvailableMemoryPerNodeInGbs: to.Ptr[int32](10),
		// 				CoreCountIncrement: to.Ptr[int32](1),
		// 				MaxStorageCount: to.Ptr[int32](100),
		// 				MaximumNodeCount: to.Ptr[int32](1000),
		// 				MinCoreCountPerNode: to.Ptr[int32](0),
		// 				MinDataStorageInTbs: to.Ptr[int32](0),
		// 				MinDbNodeStoragePerNodeInGbs: to.Ptr[int32](0),
		// 				MinMemoryPerNodeInGbs: to.Ptr[int32](0),
		// 				MinStorageCount: to.Ptr[int32](0),
		// 				MinimumCoreCount: to.Ptr[int32](1),
		// 				MinimumNodeCount: to.Ptr[int32](0),
		// 				RuntimeMinimumCoreCount: to.Ptr[int32](1),
		// 				ShapeFamily: to.Ptr("EXADATA"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type DbSystemShapesClientGetOptions

type DbSystemShapesClientGetOptions struct {
}

DbSystemShapesClientGetOptions contains the optional parameters for the DbSystemShapesClient.Get method.

type DbSystemShapesClientGetResponse

type DbSystemShapesClientGetResponse struct {
	// DbSystemShape resource definition
	DbSystemShape
}

DbSystemShapesClientGetResponse contains the response from method DbSystemShapesClient.Get.

type DbSystemShapesClientListByLocationOptions

type DbSystemShapesClientListByLocationOptions struct {
}

DbSystemShapesClientListByLocationOptions contains the optional parameters for the DbSystemShapesClient.NewListByLocationPager method.

type DbSystemShapesClientListByLocationResponse

type DbSystemShapesClientListByLocationResponse struct {
	// The response of a DbSystemShape list operation.
	DbSystemShapeListResult
}

DbSystemShapesClientListByLocationResponse contains the response from method DbSystemShapesClient.NewListByLocationPager.

type DisasterRecoveryType

type DisasterRecoveryType string

DisasterRecoveryType - Disaster recovery type enum.

const (
	// DisasterRecoveryTypeAdg - ADG type
	DisasterRecoveryTypeAdg DisasterRecoveryType = "Adg"
	// DisasterRecoveryTypeBackupBased - Backup based type
	DisasterRecoveryTypeBackupBased DisasterRecoveryType = "BackupBased"
)

func PossibleDisasterRecoveryTypeValues

func PossibleDisasterRecoveryTypeValues() []DisasterRecoveryType

PossibleDisasterRecoveryTypeValues returns the possible values for the DisasterRecoveryType const type.

type DiskRedundancy

type DiskRedundancy string

DiskRedundancy - Disk redundancy enum

const (
	// DiskRedundancyHigh - High redundancy
	DiskRedundancyHigh DiskRedundancy = "High"
	// DiskRedundancyNormal - Normal redundancy
	DiskRedundancyNormal DiskRedundancy = "Normal"
)

func PossibleDiskRedundancyValues

func PossibleDiskRedundancyValues() []DiskRedundancy

PossibleDiskRedundancyValues returns the possible values for the DiskRedundancy const type.

type EstimatedPatchingTime

type EstimatedPatchingTime struct {
	// READ-ONLY; The estimated time required in minutes for database server patching.
	EstimatedDbServerPatchingTime *int32

	// READ-ONLY; The estimated time required in minutes for network switch patching.
	EstimatedNetworkSwitchesPatchingTime *int32

	// READ-ONLY; The estimated time required in minutes for storage server patching.
	EstimatedStorageServerPatchingTime *int32

	// READ-ONLY; The estimated total time required in minutes for all patching operations.
	TotalEstimatedPatchingTime *int32
}

EstimatedPatchingTime - The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching).

func (EstimatedPatchingTime) MarshalJSON

func (e EstimatedPatchingTime) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EstimatedPatchingTime.

func (*EstimatedPatchingTime) UnmarshalJSON

func (e *EstimatedPatchingTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EstimatedPatchingTime.

type ExadataIormConfig

type ExadataIormConfig struct {
	// An array of IORM settings for all the database in the Exadata DB system.
	DbPlans []*DbIormConfig

	// Additional information about the current lifecycleState.
	LifecycleDetails *string

	// The current state of IORM configuration for the Exadata DB system.
	LifecycleState *IormLifecycleState

	// The current value for the IORM objective. The default is AUTO.
	Objective *Objective
}

ExadataIormConfig for cloud vm cluster

func (ExadataIormConfig) MarshalJSON

func (e ExadataIormConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExadataIormConfig.

func (*ExadataIormConfig) UnmarshalJSON

func (e *ExadataIormConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExadataIormConfig.

type GenerateAutonomousDatabaseWalletDetails

type GenerateAutonomousDatabaseWalletDetails struct {
	// REQUIRED; The password to encrypt the keys inside the wallet
	Password *string

	// The type of wallet to generate.
	GenerateType *GenerateType

	// True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.
	IsRegional *bool
}

GenerateAutonomousDatabaseWalletDetails - Autonomous Database Generate Wallet resource model.

func (GenerateAutonomousDatabaseWalletDetails) MarshalJSON

func (g GenerateAutonomousDatabaseWalletDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GenerateAutonomousDatabaseWalletDetails.

func (*GenerateAutonomousDatabaseWalletDetails) UnmarshalJSON

func (g *GenerateAutonomousDatabaseWalletDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GenerateAutonomousDatabaseWalletDetails.

type GenerateType

type GenerateType string

GenerateType - Generate type enum

const (
	// GenerateTypeAll - Generate all
	GenerateTypeAll GenerateType = "All"
	// GenerateTypeSingle - Generate single
	GenerateTypeSingle GenerateType = "Single"
)

func PossibleGenerateTypeValues

func PossibleGenerateTypeValues() []GenerateType

PossibleGenerateTypeValues returns the possible values for the GenerateType const type.

type GiVersion

type GiVersion struct {
	// The resource-specific properties for this resource.
	Properties *GiVersionProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

GiVersion resource definition

func (GiVersion) MarshalJSON

func (g GiVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GiVersion.

func (*GiVersion) UnmarshalJSON

func (g *GiVersion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GiVersion.

type GiVersionListResult

type GiVersionListResult struct {
	// REQUIRED; The GiVersion items on this page
	Value []*GiVersion

	// The link to the next page of items
	NextLink *string
}

GiVersionListResult - The response of a GiVersion list operation.

func (GiVersionListResult) MarshalJSON

func (g GiVersionListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GiVersionListResult.

func (*GiVersionListResult) UnmarshalJSON

func (g *GiVersionListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GiVersionListResult.

type GiVersionProperties

type GiVersionProperties struct {
	// READ-ONLY; A valid Oracle Grid Infrastructure (GI) software version.
	Version *string
}

GiVersionProperties - GiVersion resource model

func (GiVersionProperties) MarshalJSON

func (g GiVersionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GiVersionProperties.

func (*GiVersionProperties) UnmarshalJSON

func (g *GiVersionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GiVersionProperties.

type GiVersionsClient

type GiVersionsClient struct {
	// contains filtered or unexported fields
}

GiVersionsClient contains the methods for the GiVersions group. Don't use this type directly, use NewGiVersionsClient() instead.

func NewGiVersionsClient

func NewGiVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GiVersionsClient, error)

NewGiVersionsClient creates a new instance of GiVersionsClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*GiVersionsClient) Get

func (client *GiVersionsClient) Get(ctx context.Context, location string, giversionname string, options *GiVersionsClientGetOptions) (GiVersionsClientGetResponse, error)

Get - Get a GiVersion If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • giversionname - GiVersion name
  • options - GiVersionsClientGetOptions contains the optional parameters for the GiVersionsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewGiVersionsClient().Get(ctx, "eastus", "19.0.0.0", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.GiVersion = armoracledatabase.GiVersion{
	// 	Type: to.Ptr("Oracle.Database/locations/giVersions"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/giVersions/19.0.0.0"),
	// 	Properties: &armoracledatabase.GiVersionProperties{
	// 		Version: to.Ptr("19.0.0.0"),
	// 	},
	// }
}
Output:

func (*GiVersionsClient) NewListByLocationPager

NewListByLocationPager - List GiVersion resources by Location

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • options - GiVersionsClientListByLocationOptions contains the optional parameters for the GiVersionsClient.NewListByLocationPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_listByLocation.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewGiVersionsClient().NewListByLocationPager("eastus", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.GiVersionListResult = armoracledatabase.GiVersionListResult{
		// 	Value: []*armoracledatabase.GiVersion{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/locations/giVersions"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/giVersions/19.0.0.0"),
		// 			Properties: &armoracledatabase.GiVersionProperties{
		// 				Version: to.Ptr("19.0.0.0"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type GiVersionsClientGetOptions

type GiVersionsClientGetOptions struct {
}

GiVersionsClientGetOptions contains the optional parameters for the GiVersionsClient.Get method.

type GiVersionsClientGetResponse

type GiVersionsClientGetResponse struct {
	// GiVersion resource definition
	GiVersion
}

GiVersionsClientGetResponse contains the response from method GiVersionsClient.Get.

type GiVersionsClientListByLocationOptions

type GiVersionsClientListByLocationOptions struct {
}

GiVersionsClientListByLocationOptions contains the optional parameters for the GiVersionsClient.NewListByLocationPager method.

type GiVersionsClientListByLocationResponse

type GiVersionsClientListByLocationResponse struct {
	// The response of a GiVersion list operation.
	GiVersionListResult
}

GiVersionsClientListByLocationResponse contains the response from method GiVersionsClient.NewListByLocationPager.

type HostFormatType

type HostFormatType string

HostFormatType - Host format type enum.

const (
	// HostFormatTypeFqdn - FQDN format
	HostFormatTypeFqdn HostFormatType = "Fqdn"
	// HostFormatTypeIP - IP format
	HostFormatTypeIP HostFormatType = "Ip"
)

func PossibleHostFormatTypeValues

func PossibleHostFormatTypeValues() []HostFormatType

PossibleHostFormatTypeValues returns the possible values for the HostFormatType const type.

type Intent

type Intent string

Intent - Intent enum

const (
	// IntentReset - Reset intent
	IntentReset Intent = "Reset"
	// IntentRetain - Retain intent
	IntentRetain Intent = "Retain"
)

func PossibleIntentValues

func PossibleIntentValues() []Intent

PossibleIntentValues returns the possible values for the Intent const type.

type IormLifecycleState

type IormLifecycleState string

IormLifecycleState - ORM lifecycle state enum

const (
	// IormLifecycleStateBootStrapping - Indicates that resource in Provisioning state
	IormLifecycleStateBootStrapping IormLifecycleState = "BootStrapping"
	// IormLifecycleStateDisabled - Indicates that resource in Disabled state
	IormLifecycleStateDisabled IormLifecycleState = "Disabled"
	// IormLifecycleStateEnabled - Indicates that resource in Enabled state
	IormLifecycleStateEnabled IormLifecycleState = "Enabled"
	// IormLifecycleStateFailed - Indicates that resource in Failed state
	IormLifecycleStateFailed IormLifecycleState = "Failed"
	// IormLifecycleStateUpdating - Indicates that resource in Updating state
	IormLifecycleStateUpdating IormLifecycleState = "Updating"
)

func PossibleIormLifecycleStateValues

func PossibleIormLifecycleStateValues() []IormLifecycleState

PossibleIormLifecycleStateValues returns the possible values for the IormLifecycleState const type.

type LicenseModel

type LicenseModel string

LicenseModel - LicenseModel enum

const (
	// LicenseModelBringYourOwnLicense - Bring Your Own License
	LicenseModelBringYourOwnLicense LicenseModel = "BringYourOwnLicense"
	// LicenseModelLicenseIncluded - License included
	LicenseModelLicenseIncluded LicenseModel = "LicenseIncluded"
)

func PossibleLicenseModelValues

func PossibleLicenseModelValues() []LicenseModel

PossibleLicenseModelValues returns the possible values for the LicenseModel const type.

type LongTermBackUpScheduleDetails added in v0.2.0

type LongTermBackUpScheduleDetails struct {
	// Indicates if the long-term backup schedule should be deleted. The default value is FALSE.
	IsDisabled *bool

	// The frequency of the long-term backup schedule
	RepeatCadence *RepeatCadenceType

	// Retention period, in days, for backups.
	RetentionPeriodInDays *int32

	// The timestamp for the long-term backup schedule. For a MONTHLY cadence, months having fewer days than the provided date
	// will have the backup taken on the last day of that month.
	TimeOfBackup *time.Time
}

LongTermBackUpScheduleDetails - Details for the long-term backup schedule.

func (LongTermBackUpScheduleDetails) MarshalJSON added in v0.2.0

func (l LongTermBackUpScheduleDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LongTermBackUpScheduleDetails.

func (*LongTermBackUpScheduleDetails) UnmarshalJSON added in v0.2.0

func (l *LongTermBackUpScheduleDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LongTermBackUpScheduleDetails.

type MaintenanceWindow

type MaintenanceWindow struct {
	// Determines the amount of time the system will wait before the start of each database server patching operation. Custom
	// action timeout is in minutes and valid value is between 15 to 120 (inclusive).
	CustomActionTimeoutInMins *int32

	// Days during the week when maintenance should be performed.
	DaysOfWeek []*DayOfWeek

	// The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are
	// - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59
	// UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot
	// 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC
	HoursOfDay []*int32

	// If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.
	IsCustomActionTimeoutEnabled *bool

	// is Monthly Patching Enabled
	IsMonthlyPatchingEnabled *bool

	// Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is
	// between 1 to 4.
	LeadTimeInWeeks *int32

	// Months during the year when maintenance should be performed.
	Months []*Month

	// Cloud Exadata infrastructure node patching method.
	PatchingMode *PatchingMode

	// The maintenance window scheduling preference.
	Preference *Preference

	// Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month,
	// and have a duration of 7 days. Weeks start and end based on calendar dates,
	// not days of the week. For example, to allow maintenance during the 2nd week of the month (from the 8th day to the 14th
	// day of the month), use the value 2. Maintenance cannot be scheduled for the fifth
	// week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and hoursOfDay
	// parameters to allow you to specify specific days of the week and hours
	// that maintenance will be performed.
	WeeksOfMonth []*int32
}

MaintenanceWindow resource properties

func (MaintenanceWindow) MarshalJSON

func (m MaintenanceWindow) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MaintenanceWindow.

func (*MaintenanceWindow) UnmarshalJSON

func (m *MaintenanceWindow) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MaintenanceWindow.

type Month

type Month struct {
	// REQUIRED; Name of the month of the year.
	Name *MonthName
}

Month resource properties

func (Month) MarshalJSON

func (m Month) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Month.

func (*Month) UnmarshalJSON

func (m *Month) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Month.

type MonthName

type MonthName string

MonthName - MonthName enum

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

func PossibleMonthNameValues

func PossibleMonthNameValues() []MonthName

PossibleMonthNameValues returns the possible values for the MonthName const type.

type NsgCidr added in v0.2.0

type NsgCidr struct {
	// REQUIRED; Conceptually, this is the range of IP addresses that a packet coming into the instance can come from.
	Source *string

	// Destination port range to specify particular destination ports for TCP rules.
	DestinationPortRange *PortRange
}

NsgCidr - A rule for allowing inbound (INGRESS) IP packets

func (NsgCidr) MarshalJSON added in v0.2.0

func (n NsgCidr) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NsgCidr.

func (*NsgCidr) UnmarshalJSON added in v0.2.0

func (n *NsgCidr) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NsgCidr.

type Objective

type Objective string

Objective - Objective enum

const (
	// ObjectiveAuto - Auto objective
	ObjectiveAuto Objective = "Auto"
	// ObjectiveBalanced - Balanced objective
	ObjectiveBalanced Objective = "Balanced"
	// ObjectiveBasic - Basic objective
	ObjectiveBasic Objective = "Basic"
	// ObjectiveHighThroughput - High throughput objective
	ObjectiveHighThroughput Objective = "HighThroughput"
	// ObjectiveLowLatency - Low latency objective
	ObjectiveLowLatency Objective = "LowLatency"
)

func PossibleObjectiveValues

func PossibleObjectiveValues() []Objective

PossibleObjectiveValues returns the possible values for the Objective const type.

type OpenModeType

type OpenModeType string

OpenModeType - Open mode type enum.

const (
	// OpenModeTypeReadOnly - ReadOnly mode
	OpenModeTypeReadOnly OpenModeType = "ReadOnly"
	// OpenModeTypeReadWrite - ReadWrite mode
	OpenModeTypeReadWrite OpenModeType = "ReadWrite"
)

func PossibleOpenModeTypeValues

func PossibleOpenModeTypeValues() []OpenModeType

PossibleOpenModeTypeValues returns the possible values for the OpenModeType const type.

type Operation

type Operation struct {
	// Localized display information for this particular operation.
	Display *OperationDisplay

	// READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
	ActionType *ActionType

	// READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane
	// operations.
	IsDataAction *bool

	// READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write",
	// "Microsoft.Compute/virtualMachines/capture/action"
	Name *string

	// READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
	// value is "user,system"
	Origin *Origin
}

Operation - Details of a REST API operation, returned from the Resource Provider Operations API

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Operation.

func (*Operation) UnmarshalJSON

func (o *Operation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Operation.

type OperationDisplay

type OperationDisplay struct {
	// READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
	Description *string

	// READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
	// Machine", "Restart Virtual Machine".
	Operation *string

	// READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
	// Compute".
	Provider *string

	// READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
	// Schedule Collections".
	Resource *string
}

OperationDisplay - Localized display information for this particular operation.

func (OperationDisplay) MarshalJSON

func (o OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationDisplay.

func (*OperationDisplay) UnmarshalJSON

func (o *OperationDisplay) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.

type OperationListResult

type OperationListResult struct {
	// READ-ONLY; URL to get the next set of operation list results (if there are any).
	NextLink *string

	// READ-ONLY; List of operations supported by the resource provider
	Value []*Operation
}

OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.

func (OperationListResult) MarshalJSON

func (o OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

func (*OperationListResult) UnmarshalJSON

func (o *OperationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type OperationsClient

type OperationsClient struct {
	// contains filtered or unexported fields
}

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OperationsClient) NewListPager

NewListPager - List the operations for the provider

Generated from API version 2023-09-01

  • options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/operations_list.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewOperationsClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OperationListResult = armoracledatabase.OperationListResult{
		// 	Value: []*armoracledatabase.Operation{
		// 		{
		// 			Name: to.Ptr("Oracle.Database/cloudExadataInfrastructures/Read"),
		// 			Display: &armoracledatabase.OperationDisplay{
		// 				Description: to.Ptr("Reads Exadata Infrastructure"),
		// 				Operation: to.Ptr("Get/list Exadata Infrastructure resources"),
		// 				Provider: to.Ptr("Oracle.Database"),
		// 				Resource: to.Ptr("cloudExadataInfrastructures"),
		// 			},
		// 			IsDataAction: to.Ptr(false),
		// 	}},
		// }
	}
}
Output:

type OperationsClientListOptions

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.

type OperationsClientListResponse

type OperationsClientListResponse struct {
	// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
	OperationListResult
}

OperationsClientListResponse contains the response from method OperationsClient.NewListPager.

type OperationsInsightsStatusType

type OperationsInsightsStatusType string

OperationsInsightsStatusType - Operations Insights status type enum.

const (
	// OperationsInsightsStatusTypeDisabling - Disabling status
	OperationsInsightsStatusTypeDisabling OperationsInsightsStatusType = "Disabling"
	// OperationsInsightsStatusTypeEnabled - Enabled status
	OperationsInsightsStatusTypeEnabled OperationsInsightsStatusType = "Enabled"
	// OperationsInsightsStatusTypeEnabling - Enabling status
	OperationsInsightsStatusTypeEnabling OperationsInsightsStatusType = "Enabling"
	// OperationsInsightsStatusTypeFailedDisabling - FailedDisabling status
	OperationsInsightsStatusTypeFailedDisabling OperationsInsightsStatusType = "FailedDisabling"
	// OperationsInsightsStatusTypeFailedEnabling - FailedEnabling status
	OperationsInsightsStatusTypeFailedEnabling OperationsInsightsStatusType = "FailedEnabling"
	// OperationsInsightsStatusTypeNotEnabled - NotEnabled status
	OperationsInsightsStatusTypeNotEnabled OperationsInsightsStatusType = "NotEnabled"
)

func PossibleOperationsInsightsStatusTypeValues

func PossibleOperationsInsightsStatusTypeValues() []OperationsInsightsStatusType

PossibleOperationsInsightsStatusTypeValues returns the possible values for the OperationsInsightsStatusType const type.

type OracleSubscription

type OracleSubscription struct {
	// Details of the resource plan.
	Plan *Plan

	// The resource-specific properties for this resource.
	Properties *OracleSubscriptionProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

OracleSubscription resource definition

func (OracleSubscription) MarshalJSON

func (o OracleSubscription) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OracleSubscription.

func (*OracleSubscription) UnmarshalJSON

func (o *OracleSubscription) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OracleSubscription.

type OracleSubscriptionListResult

type OracleSubscriptionListResult struct {
	// REQUIRED; The OracleSubscription items on this page
	Value []*OracleSubscription

	// The link to the next page of items
	NextLink *string
}

OracleSubscriptionListResult - The response of a OracleSubscription list operation.

func (OracleSubscriptionListResult) MarshalJSON

func (o OracleSubscriptionListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OracleSubscriptionListResult.

func (*OracleSubscriptionListResult) UnmarshalJSON

func (o *OracleSubscriptionListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OracleSubscriptionListResult.

type OracleSubscriptionProperties

type OracleSubscriptionProperties struct {
	// Intent for the update operation
	Intent *Intent

	// Product code for the term unit
	ProductCode *string

	// Term Unit. P1Y, P3Y, etc, see Durations https://en.wikipedia.org/wiki/ISO_8601
	TermUnit *string

	// READ-ONLY; Cloud Account Id
	CloudAccountID *string

	// READ-ONLY; Cloud Account provisioning state.
	CloudAccountState *CloudAccountProvisioningState

	// READ-ONLY; OracleSubscriptionProvisioningState provisioning state
	ProvisioningState *OracleSubscriptionProvisioningState

	// READ-ONLY; SAAS subscription ID generated by Marketplace
	SaasSubscriptionID *string
}

OracleSubscriptionProperties - Oracle Subscription resource model

func (OracleSubscriptionProperties) MarshalJSON

func (o OracleSubscriptionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OracleSubscriptionProperties.

func (*OracleSubscriptionProperties) UnmarshalJSON

func (o *OracleSubscriptionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OracleSubscriptionProperties.

type OracleSubscriptionProvisioningState

type OracleSubscriptionProvisioningState string

OracleSubscriptionProvisioningState - OracleSubscriptionProvisioningState enum

const (
	// OracleSubscriptionProvisioningStateCanceled - Resource creation was canceled.
	OracleSubscriptionProvisioningStateCanceled OracleSubscriptionProvisioningState = "Canceled"
	// OracleSubscriptionProvisioningStateFailed - Resource creation failed.
	OracleSubscriptionProvisioningStateFailed OracleSubscriptionProvisioningState = "Failed"
	// OracleSubscriptionProvisioningStateSucceeded - Resource has been created.
	OracleSubscriptionProvisioningStateSucceeded OracleSubscriptionProvisioningState = "Succeeded"
)

func PossibleOracleSubscriptionProvisioningStateValues

func PossibleOracleSubscriptionProvisioningStateValues() []OracleSubscriptionProvisioningState

PossibleOracleSubscriptionProvisioningStateValues returns the possible values for the OracleSubscriptionProvisioningState const type.

type OracleSubscriptionUpdate

type OracleSubscriptionUpdate struct {
	// Details of the resource plan.
	Plan *PlanUpdate

	// The updatable properties of the OracleSubscription.
	Properties *OracleSubscriptionUpdateProperties
}

OracleSubscriptionUpdate - The type used for update operations of the OracleSubscription.

func (OracleSubscriptionUpdate) MarshalJSON

func (o OracleSubscriptionUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OracleSubscriptionUpdate.

func (*OracleSubscriptionUpdate) UnmarshalJSON

func (o *OracleSubscriptionUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OracleSubscriptionUpdate.

type OracleSubscriptionUpdateProperties

type OracleSubscriptionUpdateProperties struct {
	// Intent for the update operation
	Intent *Intent

	// Product code for the term unit
	ProductCode *string
}

OracleSubscriptionUpdateProperties - The updatable properties of the OracleSubscription.

func (OracleSubscriptionUpdateProperties) MarshalJSON

func (o OracleSubscriptionUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OracleSubscriptionUpdateProperties.

func (*OracleSubscriptionUpdateProperties) UnmarshalJSON

func (o *OracleSubscriptionUpdateProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OracleSubscriptionUpdateProperties.

type OracleSubscriptionsClient

type OracleSubscriptionsClient struct {
	// contains filtered or unexported fields
}

OracleSubscriptionsClient contains the methods for the OracleSubscriptions group. Don't use this type directly, use NewOracleSubscriptionsClient() instead.

func NewOracleSubscriptionsClient

func NewOracleSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OracleSubscriptionsClient, error)

NewOracleSubscriptionsClient creates a new instance of OracleSubscriptionsClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OracleSubscriptionsClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a OracleSubscription If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resource - Resource create parameters.
  • options - OracleSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the OracleSubscriptionsClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewOracleSubscriptionsClient().BeginCreateOrUpdate(ctx, armoracledatabase.OracleSubscription{
		Plan: &armoracledatabase.Plan{
			Name:          to.Ptr("plan1"),
			Product:       to.Ptr("product1"),
			PromotionCode: to.Ptr("none"),
			Publisher:     to.Ptr("publisher1"),
			Version:       to.Ptr("alpha"),
		},
		Properties: &armoracledatabase.OracleSubscriptionProperties{},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.OracleSubscription = armoracledatabase.OracleSubscription{
	// 	Type: to.Ptr("Oracle.Database/oracleSubscriptions"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default"),
	// 	Plan: &armoracledatabase.Plan{
	// 		Name: to.Ptr("plan1"),
	// 		Product: to.Ptr("product1"),
	// 		PromotionCode: to.Ptr("none"),
	// 		Publisher: to.Ptr("publisher1"),
	// 		Version: to.Ptr("alpha"),
	// 	},
	// 	Properties: &armoracledatabase.OracleSubscriptionProperties{
	// 		CloudAccountID: to.Ptr("ocid1..aaaaaa"),
	// 		CloudAccountState: to.Ptr(armoracledatabase.CloudAccountProvisioningStatePending),
	// 		ProvisioningState: to.Ptr(armoracledatabase.OracleSubscriptionProvisioningStateSucceeded),
	// 		SaasSubscriptionID: to.Ptr("saas1"),
	// 	},
	// }
}
Output:

func (*OracleSubscriptionsClient) BeginDelete

BeginDelete - Delete a OracleSubscription If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • options - OracleSubscriptionsClientBeginDeleteOptions contains the optional parameters for the OracleSubscriptionsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewOracleSubscriptionsClient().BeginDelete(ctx, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

BeginListActivationLinks - List Activation Links If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • options - OracleSubscriptionsClientBeginListActivationLinksOptions contains the optional parameters for the OracleSubscriptionsClient.BeginListActivationLinks method.

func (*OracleSubscriptionsClient) BeginListCloudAccountDetails

BeginListCloudAccountDetails - List Cloud Account Details If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • options - OracleSubscriptionsClientBeginListCloudAccountDetailsOptions contains the optional parameters for the OracleSubscriptionsClient.BeginListCloudAccountDetails method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listCloudAccountDetails.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewOracleSubscriptionsClient().BeginListCloudAccountDetails(ctx, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.CloudAccountDetails = armoracledatabase.CloudAccountDetails{
	// 	CloudAccountHomeRegion: to.Ptr("East US"),
	// 	CloudAccountName: to.Ptr("Cloud Account"),
	// }
}
Output:

func (*OracleSubscriptionsClient) BeginListSaasSubscriptionDetails

BeginListSaasSubscriptionDetails - List Saas Subscription Details If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • options - OracleSubscriptionsClientBeginListSaasSubscriptionDetailsOptions contains the optional parameters for the OracleSubscriptionsClient.BeginListSaasSubscriptionDetails method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listSaasSubscriptionDetails.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewOracleSubscriptionsClient().BeginListSaasSubscriptionDetails(ctx, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SaasSubscriptionDetails = armoracledatabase.SaasSubscriptionDetails{
	// 	ID: to.Ptr("1234567890"),
	// 	IsAutoRenew: to.Ptr(true),
	// 	IsFreeTrial: to.Ptr(false),
	// 	OfferID: to.Ptr("offer1"),
	// 	PlanID: to.Ptr("silver"),
	// 	PublisherID: to.Ptr("Oracle"),
	// 	PurchaserEmailID: to.Ptr("test@test.com"),
	// 	PurchaserTenantID: to.Ptr("1234567890"),
	// 	SaasSubscriptionStatus: to.Ptr("PendingFulfillmentStart"),
	// 	SubscriptionName: to.Ptr("Oracle"),
	// 	TermUnit: to.Ptr("P1M"),
	// 	TimeCreated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-07T00:00:00.000Z"); return t}()),
	// }
}
Output:

func (*OracleSubscriptionsClient) BeginUpdate

BeginUpdate - Update a OracleSubscription If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • properties - The resource properties to be updated.
  • options - OracleSubscriptionsClientBeginUpdateOptions contains the optional parameters for the OracleSubscriptionsClient.BeginUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_patch.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewOracleSubscriptionsClient().BeginUpdate(ctx, armoracledatabase.OracleSubscriptionUpdate{}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.OracleSubscription = armoracledatabase.OracleSubscription{
	// 	Type: to.Ptr("Oracle.Database/oracleSubscriptions"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default"),
	// 	Plan: &armoracledatabase.Plan{
	// 		Name: to.Ptr("plan1"),
	// 		Product: to.Ptr("product1"),
	// 		PromotionCode: to.Ptr("none"),
	// 		Publisher: to.Ptr("publisher1"),
	// 		Version: to.Ptr("alpha"),
	// 	},
	// 	Properties: &armoracledatabase.OracleSubscriptionProperties{
	// 		CloudAccountID: to.Ptr("ocid1..aaaaaa"),
	// 		CloudAccountState: to.Ptr(armoracledatabase.CloudAccountProvisioningStatePending),
	// 		ProvisioningState: to.Ptr(armoracledatabase.OracleSubscriptionProvisioningStateSucceeded),
	// 		SaasSubscriptionID: to.Ptr("saas1"),
	// 	},
	// }
}
Output:

func (*OracleSubscriptionsClient) Get

Get - Get a OracleSubscription If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • options - OracleSubscriptionsClientGetOptions contains the optional parameters for the OracleSubscriptionsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewOracleSubscriptionsClient().Get(ctx, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.OracleSubscription = armoracledatabase.OracleSubscription{
	// 	Type: to.Ptr("Oracle.Database/oracleSubscriptions"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default"),
	// 	Plan: &armoracledatabase.Plan{
	// 		Name: to.Ptr("plan1"),
	// 		Product: to.Ptr("product1"),
	// 		PromotionCode: to.Ptr("none"),
	// 		Publisher: to.Ptr("publisher1"),
	// 		Version: to.Ptr("alpha"),
	// 	},
	// 	Properties: &armoracledatabase.OracleSubscriptionProperties{
	// 		CloudAccountID: to.Ptr("ocid1..aaaaaa"),
	// 		CloudAccountState: to.Ptr(armoracledatabase.CloudAccountProvisioningStatePending),
	// 		ProvisioningState: to.Ptr(armoracledatabase.OracleSubscriptionProvisioningStateSucceeded),
	// 		SaasSubscriptionID: to.Ptr("saas1"),
	// 	},
	// }
}
Output:

func (*OracleSubscriptionsClient) NewListBySubscriptionPager

NewListBySubscriptionPager - List OracleSubscription resources by subscription ID

Generated from API version 2023-09-01

  • options - OracleSubscriptionsClientListBySubscriptionOptions contains the optional parameters for the OracleSubscriptionsClient.NewListBySubscriptionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listBySubscription.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewOracleSubscriptionsClient().NewListBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OracleSubscriptionListResult = armoracledatabase.OracleSubscriptionListResult{
		// 	Value: []*armoracledatabase.OracleSubscription{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/oracleSubscriptions"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default"),
		// 			Plan: &armoracledatabase.Plan{
		// 				Name: to.Ptr("plan1"),
		// 				Product: to.Ptr("product1"),
		// 				PromotionCode: to.Ptr("none"),
		// 				Publisher: to.Ptr("publisher1"),
		// 				Version: to.Ptr("alpha"),
		// 			},
		// 			Properties: &armoracledatabase.OracleSubscriptionProperties{
		// 				CloudAccountID: to.Ptr("ocid1..aaaaaa"),
		// 				CloudAccountState: to.Ptr(armoracledatabase.CloudAccountProvisioningStatePending),
		// 				ProvisioningState: to.Ptr(armoracledatabase.OracleSubscriptionProvisioningStateSucceeded),
		// 				SaasSubscriptionID: to.Ptr("saas1"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type OracleSubscriptionsClientBeginCreateOrUpdateOptions

type OracleSubscriptionsClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

OracleSubscriptionsClientBeginCreateOrUpdateOptions contains the optional parameters for the OracleSubscriptionsClient.BeginCreateOrUpdate method.

type OracleSubscriptionsClientBeginDeleteOptions

type OracleSubscriptionsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

OracleSubscriptionsClientBeginDeleteOptions contains the optional parameters for the OracleSubscriptionsClient.BeginDelete method.

type OracleSubscriptionsClientBeginListActivationLinksOptions

type OracleSubscriptionsClientBeginListActivationLinksOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

OracleSubscriptionsClientBeginListActivationLinksOptions contains the optional parameters for the OracleSubscriptionsClient.BeginListActivationLinks method.

type OracleSubscriptionsClientBeginListCloudAccountDetailsOptions

type OracleSubscriptionsClientBeginListCloudAccountDetailsOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

OracleSubscriptionsClientBeginListCloudAccountDetailsOptions contains the optional parameters for the OracleSubscriptionsClient.BeginListCloudAccountDetails method.

type OracleSubscriptionsClientBeginListSaasSubscriptionDetailsOptions

type OracleSubscriptionsClientBeginListSaasSubscriptionDetailsOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

OracleSubscriptionsClientBeginListSaasSubscriptionDetailsOptions contains the optional parameters for the OracleSubscriptionsClient.BeginListSaasSubscriptionDetails method.

type OracleSubscriptionsClientBeginUpdateOptions

type OracleSubscriptionsClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

OracleSubscriptionsClientBeginUpdateOptions contains the optional parameters for the OracleSubscriptionsClient.BeginUpdate method.

type OracleSubscriptionsClientCreateOrUpdateResponse

type OracleSubscriptionsClientCreateOrUpdateResponse struct {
	// OracleSubscription resource definition
	OracleSubscription
}

OracleSubscriptionsClientCreateOrUpdateResponse contains the response from method OracleSubscriptionsClient.BeginCreateOrUpdate.

type OracleSubscriptionsClientDeleteResponse

type OracleSubscriptionsClientDeleteResponse struct {
}

OracleSubscriptionsClientDeleteResponse contains the response from method OracleSubscriptionsClient.BeginDelete.

type OracleSubscriptionsClientGetOptions

type OracleSubscriptionsClientGetOptions struct {
}

OracleSubscriptionsClientGetOptions contains the optional parameters for the OracleSubscriptionsClient.Get method.

type OracleSubscriptionsClientGetResponse

type OracleSubscriptionsClientGetResponse struct {
	// OracleSubscription resource definition
	OracleSubscription
}

OracleSubscriptionsClientGetResponse contains the response from method OracleSubscriptionsClient.Get.

type OracleSubscriptionsClientListActivationLinksResponse

type OracleSubscriptionsClientListActivationLinksResponse struct {
	// Activation Links model
	ActivationLinks
}

OracleSubscriptionsClientListActivationLinksResponse contains the response from method OracleSubscriptionsClient.BeginListActivationLinks.

type OracleSubscriptionsClientListBySubscriptionOptions

type OracleSubscriptionsClientListBySubscriptionOptions struct {
}

OracleSubscriptionsClientListBySubscriptionOptions contains the optional parameters for the OracleSubscriptionsClient.NewListBySubscriptionPager method.

type OracleSubscriptionsClientListBySubscriptionResponse

type OracleSubscriptionsClientListBySubscriptionResponse struct {
	// The response of a OracleSubscription list operation.
	OracleSubscriptionListResult
}

OracleSubscriptionsClientListBySubscriptionResponse contains the response from method OracleSubscriptionsClient.NewListBySubscriptionPager.

type OracleSubscriptionsClientListCloudAccountDetailsResponse

type OracleSubscriptionsClientListCloudAccountDetailsResponse struct {
	// Cloud Account Details model
	CloudAccountDetails
}

OracleSubscriptionsClientListCloudAccountDetailsResponse contains the response from method OracleSubscriptionsClient.BeginListCloudAccountDetails.

type OracleSubscriptionsClientListSaasSubscriptionDetailsResponse

type OracleSubscriptionsClientListSaasSubscriptionDetailsResponse struct {
	// SaaS Subscription Details model
	SaasSubscriptionDetails
}

OracleSubscriptionsClientListSaasSubscriptionDetailsResponse contains the response from method OracleSubscriptionsClient.BeginListSaasSubscriptionDetails.

type OracleSubscriptionsClientUpdateResponse

type OracleSubscriptionsClientUpdateResponse struct {
	// OracleSubscription resource definition
	OracleSubscription
}

OracleSubscriptionsClientUpdateResponse contains the response from method OracleSubscriptionsClient.BeginUpdate.

type Origin

type Origin string

Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"

const (
	OriginSystem     Origin = "system"
	OriginUser       Origin = "user"
	OriginUserSystem Origin = "user,system"
)

func PossibleOriginValues

func PossibleOriginValues() []Origin

PossibleOriginValues returns the possible values for the Origin const type.

type PatchingMode

type PatchingMode string

PatchingMode - Patching mode enum

const (
	// PatchingModeNonRolling - Non Rolling patching
	PatchingModeNonRolling PatchingMode = "NonRolling"
	// PatchingModeRolling - Rolling patching
	PatchingModeRolling PatchingMode = "Rolling"
)

func PossiblePatchingModeValues

func PossiblePatchingModeValues() []PatchingMode

PossiblePatchingModeValues returns the possible values for the PatchingMode const type.

type PeerDbDetails

type PeerDbDetails struct {
	// The database OCID of the Disaster Recovery peer database, which is located in a different region from the current peer
	// database.
	PeerDbID *string
}

PeerDbDetails - PeerDb Details

func (PeerDbDetails) MarshalJSON

func (p PeerDbDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PeerDbDetails.

func (*PeerDbDetails) UnmarshalJSON

func (p *PeerDbDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PeerDbDetails.

type PermissionLevelType

type PermissionLevelType string

PermissionLevelType - Permission level type enum.

const (
	// PermissionLevelTypeRestricted - Restricted permission level
	PermissionLevelTypeRestricted PermissionLevelType = "Restricted"
	// PermissionLevelTypeUnrestricted - Unrestricted permission level
	PermissionLevelTypeUnrestricted PermissionLevelType = "Unrestricted"
)

func PossiblePermissionLevelTypeValues

func PossiblePermissionLevelTypeValues() []PermissionLevelType

PossiblePermissionLevelTypeValues returns the possible values for the PermissionLevelType const type.

type Plan

type Plan struct {
	// REQUIRED; A user defined name of the 3rd Party Artifact that is being procured.
	Name *string

	// REQUIRED; The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact
	// at the time of Data Market onboarding.
	Product *string

	// REQUIRED; The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
	Publisher *string

	// A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
	PromotionCode *string

	// The version of the desired product/artifact.
	Version *string
}

Plan for the resource.

func (Plan) MarshalJSON

func (p Plan) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Plan.

func (*Plan) UnmarshalJSON

func (p *Plan) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Plan.

type PlanUpdate added in v0.2.0

type PlanUpdate struct {
	// A user defined name of the 3rd Party Artifact that is being procured.
	Name *string

	// The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at
	// the time of Data Market onboarding.
	Product *string

	// A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
	PromotionCode *string

	// The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
	Publisher *string

	// The version of the desired product/artifact.
	Version *string
}

PlanUpdate - ResourcePlanTypeUpdate model definition

func (PlanUpdate) MarshalJSON added in v0.2.0

func (p PlanUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PlanUpdate.

func (*PlanUpdate) UnmarshalJSON added in v0.2.0

func (p *PlanUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PlanUpdate.

type PortRange

type PortRange struct {
	// REQUIRED; The maximum port number, which must not be less than the minimum port number. To specify a single port number,
	// set both the min and max to the same value.
	Max *int32

	// REQUIRED; The minimum port number, which must not be greater than the maximum port number.
	Min *int32
}

PortRange - Port Range to specify particular destination ports for TCP rules.

func (PortRange) MarshalJSON

func (p PortRange) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PortRange.

func (*PortRange) UnmarshalJSON

func (p *PortRange) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PortRange.

type Preference

type Preference string

Preference - Preference enum

const (
	// PreferenceCustomPreference - Custom preference
	PreferenceCustomPreference Preference = "CustomPreference"
	// PreferenceNoPreference - No preference
	PreferenceNoPreference Preference = "NoPreference"
)

func PossiblePreferenceValues

func PossiblePreferenceValues() []Preference

PossiblePreferenceValues returns the possible values for the Preference const type.

type PrivateIPAddressProperties

type PrivateIPAddressProperties struct {
	// REQUIRED; PrivateIpAddresses displayName
	DisplayName *string

	// REQUIRED; PrivateIpAddresses hostnameLabel
	HostnameLabel *string

	// REQUIRED; PrivateIpAddresses ipAddress
	IPAddress *string

	// REQUIRED; PrivateIpAddresses Id
	Ocid *string

	// REQUIRED; PrivateIpAddresses subnetId
	SubnetID *string
}

PrivateIPAddressProperties - PrivateIpAddress resource properties

func (PrivateIPAddressProperties) MarshalJSON

func (p PrivateIPAddressProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateIPAddressProperties.

func (*PrivateIPAddressProperties) UnmarshalJSON

func (p *PrivateIPAddressProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateIPAddressProperties.

type PrivateIPAddressesFilter

type PrivateIPAddressesFilter struct {
	// REQUIRED; Subnet OCID
	SubnetID *string

	// REQUIRED; VCN OCID
	VnicID *string
}

PrivateIPAddressesFilter - Private Ip Addresses filter

func (PrivateIPAddressesFilter) MarshalJSON

func (p PrivateIPAddressesFilter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateIPAddressesFilter.

func (*PrivateIPAddressesFilter) UnmarshalJSON

func (p *PrivateIPAddressesFilter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateIPAddressesFilter.

type ProfileType

type ProfileType struct {
	// REQUIRED; A user-friendly name for the connection.
	DisplayName *string

	// REQUIRED; Host format used in connection string.
	HostFormat *HostFormatType

	// REQUIRED; Protocol used by the connection.
	Protocol *ProtocolType

	// REQUIRED; Specifies whether the listener performs a direct hand-off of the session, or redirects the session.
	SessionMode *SessionModeType

	// REQUIRED; Specifies whether the connection string is using the long (LONG), Easy Connect (EZCONNECT), or Easy Connect Plus
	// (EZCONNECTPLUS) format.
	SyntaxFormat *SyntaxFormatType

	// REQUIRED; Connection string value.
	Value *string

	// Consumer group used by the connection.
	ConsumerGroup *ConsumerGroup

	// True for a regional connection string, applicable to cross-region DG only.
	IsRegional *bool

	// Specifies whether the TLS handshake is using one-way (SERVER) or mutual (MUTUAL) authentication.
	TLSAuthentication *TLSAuthenticationType
}

ProfileType - The connection string profile to allow clients to group, filter and select connection string values based on structured metadata.

func (ProfileType) MarshalJSON

func (p ProfileType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProfileType.

func (*ProfileType) UnmarshalJSON

func (p *ProfileType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProfileType.

type ProtocolType

type ProtocolType string

ProtocolType - Protocol type enum.

const (
	// ProtocolTypeTCP - TCP protocol
	ProtocolTypeTCP ProtocolType = "TCP"
	// ProtocolTypeTCPS - TCPS protocol
	ProtocolTypeTCPS ProtocolType = "TCPS"
)

func PossibleProtocolTypeValues

func PossibleProtocolTypeValues() []ProtocolType

PossibleProtocolTypeValues returns the possible values for the ProtocolType const type.

type RefreshableModelType

type RefreshableModelType string

RefreshableModelType - Refreshable model type enum

const (
	// RefreshableModelTypeAutomatic - Automatic refreshable model type
	RefreshableModelTypeAutomatic RefreshableModelType = "Automatic"
	// RefreshableModelTypeManual - Manual refreshable model type
	RefreshableModelTypeManual RefreshableModelType = "Manual"
)

func PossibleRefreshableModelTypeValues

func PossibleRefreshableModelTypeValues() []RefreshableModelType

PossibleRefreshableModelTypeValues returns the possible values for the RefreshableModelType const type.

type RefreshableStatusType

type RefreshableStatusType string

RefreshableStatusType - Refreshable status type enum.

const (
	// RefreshableStatusTypeNotRefreshing - NotRefreshing status
	RefreshableStatusTypeNotRefreshing RefreshableStatusType = "NotRefreshing"
	// RefreshableStatusTypeRefreshing - Refreshing status
	RefreshableStatusTypeRefreshing RefreshableStatusType = "Refreshing"
)

func PossibleRefreshableStatusTypeValues

func PossibleRefreshableStatusTypeValues() []RefreshableStatusType

PossibleRefreshableStatusTypeValues returns the possible values for the RefreshableStatusType const type.

type RepeatCadenceType added in v0.2.0

type RepeatCadenceType string

RepeatCadenceType - Repeat cadence type enum

const (
	// RepeatCadenceTypeMonthly - Repeat monthly
	RepeatCadenceTypeMonthly RepeatCadenceType = "Monthly"
	// RepeatCadenceTypeOneTime - Repeat one time
	RepeatCadenceTypeOneTime RepeatCadenceType = "OneTime"
	// RepeatCadenceTypeWeekly - Repeat weekly
	RepeatCadenceTypeWeekly RepeatCadenceType = "Weekly"
	// RepeatCadenceTypeYearly - Repeat yearly
	RepeatCadenceTypeYearly RepeatCadenceType = "Yearly"
)

func PossibleRepeatCadenceTypeValues added in v0.2.0

func PossibleRepeatCadenceTypeValues() []RepeatCadenceType

PossibleRepeatCadenceTypeValues returns the possible values for the RepeatCadenceType const type.

type ResourceProvisioningState

type ResourceProvisioningState string

ResourceProvisioningState - The provisioning state of a resource type.

const (
	// ResourceProvisioningStateCanceled - Resource creation was canceled.
	ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled"
	// ResourceProvisioningStateFailed - Resource creation failed.
	ResourceProvisioningStateFailed ResourceProvisioningState = "Failed"
	// ResourceProvisioningStateSucceeded - Resource has been created.
	ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded"
)

func PossibleResourceProvisioningStateValues

func PossibleResourceProvisioningStateValues() []ResourceProvisioningState

PossibleResourceProvisioningStateValues returns the possible values for the ResourceProvisioningState const type.

type RestoreAutonomousDatabaseDetails added in v0.2.0

type RestoreAutonomousDatabaseDetails struct {
	// REQUIRED; The time to restore the database to.
	Timestamp *time.Time
}

RestoreAutonomousDatabaseDetails - Details to restore an Oracle Autonomous Database.

func (RestoreAutonomousDatabaseDetails) MarshalJSON added in v0.2.0

func (r RestoreAutonomousDatabaseDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RestoreAutonomousDatabaseDetails.

func (*RestoreAutonomousDatabaseDetails) UnmarshalJSON added in v0.2.0

func (r *RestoreAutonomousDatabaseDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RestoreAutonomousDatabaseDetails.

type RoleType

type RoleType string

RoleType - Role type enum.

const (
	// RoleTypeBackupCopy - BackupCopy role
	RoleTypeBackupCopy RoleType = "BackupCopy"
	// RoleTypeDisabledStandby - DisabledStandby role
	RoleTypeDisabledStandby RoleType = "DisabledStandby"
	// RoleTypePrimary - Primary role
	RoleTypePrimary RoleType = "Primary"
	// RoleTypeSnapshotStandby - SnapshotStandby role
	RoleTypeSnapshotStandby RoleType = "SnapshotStandby"
	// RoleTypeStandby - Standby role
	RoleTypeStandby RoleType = "Standby"
)

func PossibleRoleTypeValues

func PossibleRoleTypeValues() []RoleType

PossibleRoleTypeValues returns the possible values for the RoleType const type.

type SaasSubscriptionDetails

type SaasSubscriptionDetails struct {
	// READ-ONLY; Purchased SaaS subscription ID
	ID *string

	// READ-ONLY; AutoRenew flag
	IsAutoRenew *bool

	// READ-ONLY; FreeTrial flag
	IsFreeTrial *bool

	// READ-ONLY; Purchased offer ID
	OfferID *string

	// READ-ONLY; Purchased offer's plan ID
	PlanID *string

	// READ-ONLY; Publisher ID
	PublisherID *string

	// READ-ONLY; Purchaser Email ID
	PurchaserEmailID *string

	// READ-ONLY; Purchaser Tenant ID
	PurchaserTenantID *string

	// READ-ONLY; Indicates the status of the Subscription.
	SaasSubscriptionStatus *string

	// READ-ONLY; SaaS subscription name
	SubscriptionName *string

	// READ-ONLY; Purchase Term Unit
	TermUnit *string

	// READ-ONLY; Creation Date and Time
	TimeCreated *time.Time
}

SaasSubscriptionDetails - SaaS Subscription Details model

func (SaasSubscriptionDetails) MarshalJSON

func (s SaasSubscriptionDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SaasSubscriptionDetails.

func (*SaasSubscriptionDetails) UnmarshalJSON

func (s *SaasSubscriptionDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SaasSubscriptionDetails.

type ScheduledOperationsType

type ScheduledOperationsType struct {
	// REQUIRED; Day of week
	DayOfWeek *DayOfWeek

	// auto start time. value must be of ISO-8601 format HH:mm
	ScheduledStartTime *string

	// auto stop time. value must be of ISO-8601 format HH:mm
	ScheduledStopTime *string
}

ScheduledOperationsType - The list of scheduled operations.

func (ScheduledOperationsType) MarshalJSON

func (s ScheduledOperationsType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScheduledOperationsType.

func (*ScheduledOperationsType) UnmarshalJSON

func (s *ScheduledOperationsType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScheduledOperationsType.

type ScheduledOperationsTypeUpdate

type ScheduledOperationsTypeUpdate struct {
	// Day of week
	DayOfWeek *DayOfWeekUpdate

	// auto start time. value must be of ISO-8601 format HH:mm
	ScheduledStartTime *string

	// auto stop time. value must be of ISO-8601 format HH:mm
	ScheduledStopTime *string
}

ScheduledOperationsTypeUpdate - The list of scheduled operations.

func (ScheduledOperationsTypeUpdate) MarshalJSON

func (s ScheduledOperationsTypeUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScheduledOperationsTypeUpdate.

func (*ScheduledOperationsTypeUpdate) UnmarshalJSON

func (s *ScheduledOperationsTypeUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScheduledOperationsTypeUpdate.

type SessionModeType

type SessionModeType string

SessionModeType - Session mode type enum.

const (
	// SessionModeTypeDirect - Direct session mode
	SessionModeTypeDirect SessionModeType = "Direct"
	// SessionModeTypeRedirect - Redirect session mode
	SessionModeTypeRedirect SessionModeType = "Redirect"
)

func PossibleSessionModeTypeValues

func PossibleSessionModeTypeValues() []SessionModeType

PossibleSessionModeTypeValues returns the possible values for the SessionModeType const type.

type SourceType

type SourceType string

SourceType - Source type enum.

const (
	// SourceTypeBackupFromID - Backup from ID source
	SourceTypeBackupFromID SourceType = "BackupFromId"
	// SourceTypeBackupFromTimestamp - Backup from timestamp source
	SourceTypeBackupFromTimestamp SourceType = "BackupFromTimestamp"
	// SourceTypeCloneToRefreshable - Clone to refreshable source
	SourceTypeCloneToRefreshable SourceType = "CloneToRefreshable"
	// SourceTypeCrossRegionDataguard - Cross region dataguard source
	SourceTypeCrossRegionDataguard SourceType = "CrossRegionDataguard"
	// SourceTypeCrossRegionDisasterRecovery - cross region disaster recovery source
	SourceTypeCrossRegionDisasterRecovery SourceType = "CrossRegionDisasterRecovery"
	// SourceTypeDatabase - Database source
	SourceTypeDatabase SourceType = "Database"
	// SourceTypeNone - None source
	SourceTypeNone SourceType = "None"
)

func PossibleSourceTypeValues

func PossibleSourceTypeValues() []SourceType

PossibleSourceTypeValues returns the possible values for the SourceType const type.

type SyntaxFormatType

type SyntaxFormatType string

SyntaxFormatType - Syntax format type enum.

const (
	// SyntaxFormatTypeEzconnect - Ezconnect format
	SyntaxFormatTypeEzconnect SyntaxFormatType = "Ezconnect"
	// SyntaxFormatTypeEzconnectplus - Ezconnectplus format
	SyntaxFormatTypeEzconnectplus SyntaxFormatType = "Ezconnectplus"
	// SyntaxFormatTypeLong - Long format
	SyntaxFormatTypeLong SyntaxFormatType = "Long"
)

func PossibleSyntaxFormatTypeValues

func PossibleSyntaxFormatTypeValues() []SyntaxFormatType

PossibleSyntaxFormatTypeValues returns the possible values for the SyntaxFormatType const type.

type SystemData

type SystemData struct {
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time

	// The identity that created the resource.
	CreatedBy *string

	// The type of identity that created the resource.
	CreatedByType *CreatedByType

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time

	// The identity that last modified the resource.
	LastModifiedBy *string

	// The type of identity that last modified the resource.
	LastModifiedByType *CreatedByType
}

SystemData - Metadata pertaining to creation and last modification of the resource.

func (SystemData) MarshalJSON

func (s SystemData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SystemData.

func (*SystemData) UnmarshalJSON

func (s *SystemData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.

type SystemVersion added in v0.2.0

type SystemVersion struct {
	// The resource-specific properties for this resource.
	Properties *SystemVersionProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

SystemVersion resource Definition

func (SystemVersion) MarshalJSON added in v0.2.0

func (s SystemVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SystemVersion.

func (*SystemVersion) UnmarshalJSON added in v0.2.0

func (s *SystemVersion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemVersion.

type SystemVersionListResult added in v0.2.0

type SystemVersionListResult struct {
	// REQUIRED; The SystemVersion items on this page
	Value []*SystemVersion

	// The link to the next page of items
	NextLink *string
}

SystemVersionListResult - The response of a SystemVersion list operation.

func (SystemVersionListResult) MarshalJSON added in v0.2.0

func (s SystemVersionListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SystemVersionListResult.

func (*SystemVersionListResult) UnmarshalJSON added in v0.2.0

func (s *SystemVersionListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemVersionListResult.

type SystemVersionProperties added in v0.2.0

type SystemVersionProperties struct {
	// READ-ONLY; A valid Oracle System Version
	SystemVersion *string
}

SystemVersionProperties - System Version Resource model

func (SystemVersionProperties) MarshalJSON added in v0.2.0

func (s SystemVersionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SystemVersionProperties.

func (*SystemVersionProperties) UnmarshalJSON added in v0.2.0

func (s *SystemVersionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemVersionProperties.

type SystemVersionsClient added in v0.2.0

type SystemVersionsClient struct {
	// contains filtered or unexported fields
}

SystemVersionsClient contains the methods for the SystemVersions group. Don't use this type directly, use NewSystemVersionsClient() instead.

func NewSystemVersionsClient added in v0.2.0

func NewSystemVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SystemVersionsClient, error)

NewSystemVersionsClient creates a new instance of SystemVersionsClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SystemVersionsClient) Get added in v0.2.0

func (client *SystemVersionsClient) Get(ctx context.Context, location string, systemversionname string, options *SystemVersionsClientGetOptions) (SystemVersionsClientGetResponse, error)

Get - Get a SystemVersion If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • systemversionname - SystemVersion name
  • options - SystemVersionsClientGetOptions contains the optional parameters for the SystemVersionsClient.Get method.
Example (GetExadataSystemVersion)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSystemVersionsClient().Get(ctx, "eastus", "22.x", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SystemVersion = armoracledatabase.SystemVersion{
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/systemVersion/22.1.7.0.0.230113"),
	// 	Properties: &armoracledatabase.SystemVersionProperties{
	// 		SystemVersion: to.Ptr("22.1.7.0.0.230113"),
	// 	},
	// }
}
Output:

func (*SystemVersionsClient) NewListByLocationPager added in v0.2.0

NewListByLocationPager - List SystemVersion resources by Location

Generated from API version 2023-09-01

  • location - The name of the Azure region.
  • options - SystemVersionsClientListByLocationOptions contains the optional parameters for the SystemVersionsClient.NewListByLocationPager method.
Example (ListExadataSystemVersionsByTheProvidedFilter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_listByLocation.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSystemVersionsClient().NewListByLocationPager("eastus", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.SystemVersionListResult = armoracledatabase.SystemVersionListResult{
		// 	Value: []*armoracledatabase.SystemVersion{
		// 		{
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/systemVersion/22.1.7.0.0.230113"),
		// 			Properties: &armoracledatabase.SystemVersionProperties{
		// 				SystemVersion: to.Ptr("22.1.7.0.0.230113"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type SystemVersionsClientGetOptions added in v0.2.0

type SystemVersionsClientGetOptions struct {
}

SystemVersionsClientGetOptions contains the optional parameters for the SystemVersionsClient.Get method.

type SystemVersionsClientGetResponse added in v0.2.0

type SystemVersionsClientGetResponse struct {
	// SystemVersion resource Definition
	SystemVersion
}

SystemVersionsClientGetResponse contains the response from method SystemVersionsClient.Get.

type SystemVersionsClientListByLocationOptions added in v0.2.0

type SystemVersionsClientListByLocationOptions struct {
}

SystemVersionsClientListByLocationOptions contains the optional parameters for the SystemVersionsClient.NewListByLocationPager method.

type SystemVersionsClientListByLocationResponse added in v0.2.0

type SystemVersionsClientListByLocationResponse struct {
	// The response of a SystemVersion list operation.
	SystemVersionListResult
}

SystemVersionsClientListByLocationResponse contains the response from method SystemVersionsClient.NewListByLocationPager.

type TLSAuthenticationType

type TLSAuthenticationType string

TLSAuthenticationType - TLS authentication type enum.

const (
	// TLSAuthenticationTypeMutual - Mutual TLS
	TLSAuthenticationTypeMutual TLSAuthenticationType = "Mutual"
	// TLSAuthenticationTypeServer - Server authentication
	TLSAuthenticationTypeServer TLSAuthenticationType = "Server"
)

func PossibleTLSAuthenticationTypeValues

func PossibleTLSAuthenticationTypeValues() []TLSAuthenticationType

PossibleTLSAuthenticationTypeValues returns the possible values for the TLSAuthenticationType const type.

type VirtualNetworkAddress

type VirtualNetworkAddress struct {
	// The resource-specific properties for this resource.
	Properties *VirtualNetworkAddressProperties

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

VirtualNetworkAddress - Virtual IP resource belonging to a vm cluster resource.

func (VirtualNetworkAddress) MarshalJSON

func (v VirtualNetworkAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VirtualNetworkAddress.

func (*VirtualNetworkAddress) UnmarshalJSON

func (v *VirtualNetworkAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkAddress.

type VirtualNetworkAddressLifecycleState

type VirtualNetworkAddressLifecycleState string

VirtualNetworkAddressLifecycleState - VirtualNetworkAddressLifecycleState enum

const (
	// VirtualNetworkAddressLifecycleStateAvailable - Indicates that resource in Available state
	VirtualNetworkAddressLifecycleStateAvailable VirtualNetworkAddressLifecycleState = "Available"
	// VirtualNetworkAddressLifecycleStateFailed - Indicates that resource in Failed state
	VirtualNetworkAddressLifecycleStateFailed VirtualNetworkAddressLifecycleState = "Failed"
	// VirtualNetworkAddressLifecycleStateProvisioning - Indicates that resource in Provisioning state
	VirtualNetworkAddressLifecycleStateProvisioning VirtualNetworkAddressLifecycleState = "Provisioning"
	// VirtualNetworkAddressLifecycleStateTerminated - Indicates that resource in Terminated state
	VirtualNetworkAddressLifecycleStateTerminated VirtualNetworkAddressLifecycleState = "Terminated"
	// VirtualNetworkAddressLifecycleStateTerminating - Indicates that resource in Terminating state
	VirtualNetworkAddressLifecycleStateTerminating VirtualNetworkAddressLifecycleState = "Terminating"
)

func PossibleVirtualNetworkAddressLifecycleStateValues

func PossibleVirtualNetworkAddressLifecycleStateValues() []VirtualNetworkAddressLifecycleState

PossibleVirtualNetworkAddressLifecycleStateValues returns the possible values for the VirtualNetworkAddressLifecycleState const type.

type VirtualNetworkAddressListResult

type VirtualNetworkAddressListResult struct {
	// REQUIRED; The VirtualNetworkAddress items on this page
	Value []*VirtualNetworkAddress

	// The link to the next page of items
	NextLink *string
}

VirtualNetworkAddressListResult - The response of a VirtualNetworkAddress list operation.

func (VirtualNetworkAddressListResult) MarshalJSON

func (v VirtualNetworkAddressListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VirtualNetworkAddressListResult.

func (*VirtualNetworkAddressListResult) UnmarshalJSON

func (v *VirtualNetworkAddressListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkAddressListResult.

type VirtualNetworkAddressProperties

type VirtualNetworkAddressProperties struct {
	// Virtual network Address address.
	IPAddress *string

	// Virtual Machine OCID.
	VMOcid *string

	// READ-ONLY; Virtual network address fully qualified domain name.
	Domain *string

	// READ-ONLY; Additional information about the current lifecycle state of the application virtual IP (VIP) address.
	LifecycleDetails *string

	// READ-ONLY; virtual network address lifecycle state.
	LifecycleState *VirtualNetworkAddressLifecycleState

	// READ-ONLY; Application VIP OCID.
	Ocid *string

	// READ-ONLY; Azure resource provisioning state.
	ProvisioningState *AzureResourceProvisioningState

	// READ-ONLY; The date and time when the create operation for the application virtual IP (VIP) address completed.
	TimeAssigned *time.Time
}

VirtualNetworkAddressProperties - virtualNetworkAddress resource properties

func (VirtualNetworkAddressProperties) MarshalJSON

func (v VirtualNetworkAddressProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VirtualNetworkAddressProperties.

func (*VirtualNetworkAddressProperties) UnmarshalJSON

func (v *VirtualNetworkAddressProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkAddressProperties.

type VirtualNetworkAddressesClient

type VirtualNetworkAddressesClient struct {
	// contains filtered or unexported fields
}

VirtualNetworkAddressesClient contains the methods for the VirtualNetworkAddresses group. Don't use this type directly, use NewVirtualNetworkAddressesClient() instead.

func NewVirtualNetworkAddressesClient

func NewVirtualNetworkAddressesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualNetworkAddressesClient, error)

NewVirtualNetworkAddressesClient creates a new instance of VirtualNetworkAddressesClient with the specified values.

  • subscriptionID - The ID of the target subscription. The value must be an UUID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*VirtualNetworkAddressesClient) BeginCreateOrUpdate

func (client *VirtualNetworkAddressesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, cloudvmclustername string, virtualnetworkaddressname string, resource VirtualNetworkAddress, options *VirtualNetworkAddressesClientBeginCreateOrUpdateOptions) (*runtime.Poller[VirtualNetworkAddressesClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create a VirtualNetworkAddress If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • virtualnetworkaddressname - Virtual IP address hostname.
  • resource - Resource create parameters.
  • options - VirtualNetworkAddressesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkAddressesClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewVirtualNetworkAddressesClient().BeginCreateOrUpdate(ctx, "rg000", "cluster1", "hostname1", armoracledatabase.VirtualNetworkAddress{
		Properties: &armoracledatabase.VirtualNetworkAddressProperties{
			IPAddress: to.Ptr("192.168.0.1"),
			VMOcid:    to.Ptr("ocid1..aaaa"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.VirtualNetworkAddress = armoracledatabase.VirtualNetworkAddress{
	// 	Type: to.Ptr("Oracle.Database/cloudVmClusters/virtualNetworkAddresses"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/virtualNetworkAddresses/hostname1"),
	// 	Properties: &armoracledatabase.VirtualNetworkAddressProperties{
	// 		Domain: to.Ptr("domain1"),
	// 		IPAddress: to.Ptr("192.168.0.1"),
	// 		LifecycleDetails: to.Ptr("success"),
	// 		LifecycleState: to.Ptr(armoracledatabase.VirtualNetworkAddressLifecycleStateAvailable),
	// 		Ocid: to.Ptr("ocid1..aaaaaa"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		TimeAssigned: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-22T00:27:02.119Z"); return t}()),
	// 		VMOcid: to.Ptr("ocid1..aaaa"),
	// 	},
	// }
}
Output:

func (*VirtualNetworkAddressesClient) BeginDelete

func (client *VirtualNetworkAddressesClient) BeginDelete(ctx context.Context, resourceGroupName string, cloudvmclustername string, virtualnetworkaddressname string, options *VirtualNetworkAddressesClientBeginDeleteOptions) (*runtime.Poller[VirtualNetworkAddressesClientDeleteResponse], error)

BeginDelete - Delete a VirtualNetworkAddress If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • virtualnetworkaddressname - Virtual IP address hostname.
  • options - VirtualNetworkAddressesClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkAddressesClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewVirtualNetworkAddressesClient().BeginDelete(ctx, "rg000", "cluster1", "hostname1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*VirtualNetworkAddressesClient) Get

func (client *VirtualNetworkAddressesClient) Get(ctx context.Context, resourceGroupName string, cloudvmclustername string, virtualnetworkaddressname string, options *VirtualNetworkAddressesClientGetOptions) (VirtualNetworkAddressesClientGetResponse, error)

Get - Get a VirtualNetworkAddress If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • virtualnetworkaddressname - Virtual IP address hostname.
  • options - VirtualNetworkAddressesClientGetOptions contains the optional parameters for the VirtualNetworkAddressesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewVirtualNetworkAddressesClient().Get(ctx, "rg000", "cluster1", "hostname1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.VirtualNetworkAddress = armoracledatabase.VirtualNetworkAddress{
	// 	Type: to.Ptr("Oracle.Database/cloudVmClusters/virtualNetworkAddresses"),
	// 	ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/virtualNetworkAddresses/hostname1"),
	// 	Properties: &armoracledatabase.VirtualNetworkAddressProperties{
	// 		Domain: to.Ptr("domain1"),
	// 		IPAddress: to.Ptr("192.168.0.1"),
	// 		LifecycleDetails: to.Ptr("success"),
	// 		LifecycleState: to.Ptr(armoracledatabase.VirtualNetworkAddressLifecycleStateAvailable),
	// 		Ocid: to.Ptr("ocid1..aaaaaa"),
	// 		ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
	// 		TimeAssigned: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-22T00:27:02.119Z"); return t}()),
	// 		VMOcid: to.Ptr("ocid1..aaaa"),
	// 	},
	// }
}
Output:

func (*VirtualNetworkAddressesClient) NewListByCloudVMClusterPager

NewListByCloudVMClusterPager - List VirtualNetworkAddress resources by CloudVmCluster

Generated from API version 2023-09-01

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • cloudvmclustername - CloudVmCluster name
  • options - VirtualNetworkAddressesClientListByCloudVMClusterOptions contains the optional parameters for the VirtualNetworkAddressesClient.NewListByCloudVMClusterPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1c63635d66ae38cff18045ab416a6572d3e15f6e/specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_listByParent.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armoracledatabase.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewVirtualNetworkAddressesClient().NewListByCloudVMClusterPager("rg000", "cluster1", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.VirtualNetworkAddressListResult = armoracledatabase.VirtualNetworkAddressListResult{
		// 	Value: []*armoracledatabase.VirtualNetworkAddress{
		// 		{
		// 			Type: to.Ptr("Oracle.Database/cloudVmClusters/virtualNetworkAddresses"),
		// 			ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/virtualNetworkAddresses/hostname1"),
		// 			Properties: &armoracledatabase.VirtualNetworkAddressProperties{
		// 				Domain: to.Ptr("domain1"),
		// 				IPAddress: to.Ptr("192.168.0.1"),
		// 				LifecycleDetails: to.Ptr("success"),
		// 				LifecycleState: to.Ptr(armoracledatabase.VirtualNetworkAddressLifecycleStateAvailable),
		// 				Ocid: to.Ptr("ocid1..aaaaaa"),
		// 				ProvisioningState: to.Ptr(armoracledatabase.AzureResourceProvisioningStateSucceeded),
		// 				TimeAssigned: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-22T00:27:02.119Z"); return t}()),
		// 				VMOcid: to.Ptr("ocid1..aaaa"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type VirtualNetworkAddressesClientBeginCreateOrUpdateOptions

type VirtualNetworkAddressesClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

VirtualNetworkAddressesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualNetworkAddressesClient.BeginCreateOrUpdate method.

type VirtualNetworkAddressesClientBeginDeleteOptions

type VirtualNetworkAddressesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

VirtualNetworkAddressesClientBeginDeleteOptions contains the optional parameters for the VirtualNetworkAddressesClient.BeginDelete method.

type VirtualNetworkAddressesClientCreateOrUpdateResponse

type VirtualNetworkAddressesClientCreateOrUpdateResponse struct {
	// Virtual IP resource belonging to a vm cluster resource.
	VirtualNetworkAddress
}

VirtualNetworkAddressesClientCreateOrUpdateResponse contains the response from method VirtualNetworkAddressesClient.BeginCreateOrUpdate.

type VirtualNetworkAddressesClientDeleteResponse

type VirtualNetworkAddressesClientDeleteResponse struct {
}

VirtualNetworkAddressesClientDeleteResponse contains the response from method VirtualNetworkAddressesClient.BeginDelete.

type VirtualNetworkAddressesClientGetOptions

type VirtualNetworkAddressesClientGetOptions struct {
}

VirtualNetworkAddressesClientGetOptions contains the optional parameters for the VirtualNetworkAddressesClient.Get method.

type VirtualNetworkAddressesClientGetResponse

type VirtualNetworkAddressesClientGetResponse struct {
	// Virtual IP resource belonging to a vm cluster resource.
	VirtualNetworkAddress
}

VirtualNetworkAddressesClientGetResponse contains the response from method VirtualNetworkAddressesClient.Get.

type VirtualNetworkAddressesClientListByCloudVMClusterOptions

type VirtualNetworkAddressesClientListByCloudVMClusterOptions struct {
}

VirtualNetworkAddressesClientListByCloudVMClusterOptions contains the optional parameters for the VirtualNetworkAddressesClient.NewListByCloudVMClusterPager method.

type VirtualNetworkAddressesClientListByCloudVMClusterResponse

type VirtualNetworkAddressesClientListByCloudVMClusterResponse struct {
	// The response of a VirtualNetworkAddress list operation.
	VirtualNetworkAddressListResult
}

VirtualNetworkAddressesClientListByCloudVMClusterResponse contains the response from method VirtualNetworkAddressesClient.NewListByCloudVMClusterPager.

type WorkloadType

type WorkloadType string

WorkloadType - WorkloadType enum

const (
	// WorkloadTypeAJD - AJD - indicates an Autonomous JSON Database
	WorkloadTypeAJD WorkloadType = "AJD"
	// WorkloadTypeAPEX - APEX - indicates an Autonomous Database with the Oracle APEX Application Development workload type.
	WorkloadTypeAPEX WorkloadType = "APEX"
	// WorkloadTypeDW - DW - indicates an Autonomous Data Warehouse database
	WorkloadTypeDW WorkloadType = "DW"
	// WorkloadTypeOLTP - OLTP - indicates an Autonomous Transaction Processing database
	WorkloadTypeOLTP WorkloadType = "OLTP"
)

func PossibleWorkloadTypeValues

func PossibleWorkloadTypeValues() []WorkloadType

PossibleWorkloadTypeValues returns the possible values for the WorkloadType const type.

type ZoneType

type ZoneType string

ZoneType - Zone type enum

const (
	// ZoneTypePrimary - Primary zone
	ZoneTypePrimary ZoneType = "Primary"
	// ZoneTypeSecondary - Secondary zone
	ZoneTypeSecondary ZoneType = "Secondary"
)

func PossibleZoneTypeValues

func PossibleZoneTypeValues() []ZoneType

PossibleZoneTypeValues returns the possible values for the ZoneType const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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