dbsystemshapes

package
v0.20241023.1122425 Latest Latest
Warning

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

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

README

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

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

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

Import Path

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

Client Initialization

client := dbsystemshapes.NewDbSystemShapesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DbSystemShapesClient.Get

ctx := context.TODO()
id := dbsystemshapes.NewDbSystemShapeID("12345678-1234-9876-4563-123456789012", "locationName", "dbSystemShapeName")

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

Example Usage: DbSystemShapesClient.ListByLocation

ctx := context.TODO()
id := dbsystemshapes.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateDbSystemShapeID

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

ValidateDbSystemShapeID checks that 'input' can be parsed as a Db System Shape ID

func ValidateLocationID

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

ValidateLocationID checks that 'input' can be parsed as a Location ID

Types

type DbSystemShape

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

type DbSystemShapeId

type DbSystemShapeId struct {
	SubscriptionId    string
	LocationName      string
	DbSystemShapeName string
}

DbSystemShapeId is a struct representing the Resource ID for a Db System Shape

func NewDbSystemShapeID

func NewDbSystemShapeID(subscriptionId string, locationName string, dbSystemShapeName string) DbSystemShapeId

NewDbSystemShapeID returns a new DbSystemShapeId struct

func ParseDbSystemShapeID

func ParseDbSystemShapeID(input string) (*DbSystemShapeId, error)

ParseDbSystemShapeID parses 'input' into a DbSystemShapeId

func ParseDbSystemShapeIDInsensitively

func ParseDbSystemShapeIDInsensitively(input string) (*DbSystemShapeId, error)

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

func (*DbSystemShapeId) FromParseResult

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

func (DbSystemShapeId) ID

func (id DbSystemShapeId) ID() string

ID returns the formatted Db System Shape ID

func (DbSystemShapeId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Db System Shape ID

func (DbSystemShapeId) String

func (id DbSystemShapeId) String() string

String returns a human-readable description of this Db System Shape ID

type DbSystemShapeOperationPredicate

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

func (DbSystemShapeOperationPredicate) Matches

type DbSystemShapeProperties

type DbSystemShapeProperties struct {
	AvailableCoreCount                 int64    `json:"availableCoreCount"`
	AvailableCoreCountPerNode          *int64   `json:"availableCoreCountPerNode,omitempty"`
	AvailableDataStorageInTbs          *int64   `json:"availableDataStorageInTbs,omitempty"`
	AvailableDataStoragePerServerInTbs *float64 `json:"availableDataStoragePerServerInTbs,omitempty"`
	AvailableDbNodePerNodeInGbs        *int64   `json:"availableDbNodePerNodeInGbs,omitempty"`
	AvailableDbNodeStorageInGbs        *int64   `json:"availableDbNodeStorageInGbs,omitempty"`
	AvailableMemoryInGbs               *int64   `json:"availableMemoryInGbs,omitempty"`
	AvailableMemoryPerNodeInGbs        *int64   `json:"availableMemoryPerNodeInGbs,omitempty"`
	CoreCountIncrement                 *int64   `json:"coreCountIncrement,omitempty"`
	MaxStorageCount                    *int64   `json:"maxStorageCount,omitempty"`
	MaximumNodeCount                   *int64   `json:"maximumNodeCount,omitempty"`
	MinCoreCountPerNode                *int64   `json:"minCoreCountPerNode,omitempty"`
	MinDataStorageInTbs                *int64   `json:"minDataStorageInTbs,omitempty"`
	MinDbNodeStoragePerNodeInGbs       *int64   `json:"minDbNodeStoragePerNodeInGbs,omitempty"`
	MinMemoryPerNodeInGbs              *int64   `json:"minMemoryPerNodeInGbs,omitempty"`
	MinStorageCount                    *int64   `json:"minStorageCount,omitempty"`
	MinimumCoreCount                   *int64   `json:"minimumCoreCount,omitempty"`
	MinimumNodeCount                   *int64   `json:"minimumNodeCount,omitempty"`
	RuntimeMinimumCoreCount            *int64   `json:"runtimeMinimumCoreCount,omitempty"`
	ShapeFamily                        *string  `json:"shapeFamily,omitempty"`
}

type DbSystemShapesClient

type DbSystemShapesClient struct {
	Client *resourcemanager.Client
}

func NewDbSystemShapesClientWithBaseURI

func NewDbSystemShapesClientWithBaseURI(sdkApi sdkEnv.Api) (*DbSystemShapesClient, error)

func (DbSystemShapesClient) Get

Get ...

func (DbSystemShapesClient) ListByLocation

func (c DbSystemShapesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error)

ListByLocation ...

func (DbSystemShapesClient) ListByLocationComplete

ListByLocationComplete retrieves all the results into a single object

func (DbSystemShapesClient) ListByLocationCompleteMatchingPredicate

func (c DbSystemShapesClient) ListByLocationCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate DbSystemShapeOperationPredicate) (result ListByLocationCompleteResult, err error)

ListByLocationCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetOperationResponse

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

type ListByLocationCompleteResult

type ListByLocationCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DbSystemShape
}

type ListByLocationCustomPager

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

type ListByLocationOperationResponse

type ListByLocationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DbSystemShape
}

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

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

func (*LocationId) FromParseResult

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

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Location ID

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

Jump to

Keyboard shortcuts

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