manageddatabaseschemas

package
v0.20230720.1124505 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2022-11-01-preview/manageddatabaseschemas Documentation

The manageddatabaseschemas SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2022-11-01-preview).

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/sql/2022-11-01-preview/manageddatabaseschemas"

Client Initialization

client := manageddatabaseschemas.NewManagedDatabaseSchemasClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedDatabaseSchemasClient.Get

ctx := context.TODO()
id := manageddatabaseschemas.NewDatabaseSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue", "schemaValue")

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: ManagedDatabaseSchemasClient.ListByDatabase

ctx := context.TODO()
id := manageddatabaseschemas.NewManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue")

// alternatively `client.ListByDatabase(ctx, id, manageddatabaseschemas.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination
items, err := client.ListByDatabaseComplete(ctx, id, manageddatabaseschemas.DefaultListByDatabaseOperationOptions())
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 ValidateDatabaseSchemaID

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

ValidateDatabaseSchemaID checks that 'input' can be parsed as a Database Schema ID

func ValidateManagedInstanceDatabaseID

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

ValidateManagedInstanceDatabaseID checks that 'input' can be parsed as a Managed Instance Database ID

Types

type DatabaseSchemaId

type DatabaseSchemaId struct {
	SubscriptionId      string
	ResourceGroupName   string
	ManagedInstanceName string
	DatabaseName        string
	SchemaName          string
}

DatabaseSchemaId is a struct representing the Resource ID for a Database Schema

func NewDatabaseSchemaID

func NewDatabaseSchemaID(subscriptionId string, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string) DatabaseSchemaId

NewDatabaseSchemaID returns a new DatabaseSchemaId struct

func ParseDatabaseSchemaID

func ParseDatabaseSchemaID(input string) (*DatabaseSchemaId, error)

ParseDatabaseSchemaID parses 'input' into a DatabaseSchemaId

func ParseDatabaseSchemaIDInsensitively

func ParseDatabaseSchemaIDInsensitively(input string) (*DatabaseSchemaId, error)

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

func (DatabaseSchemaId) ID

func (id DatabaseSchemaId) ID() string

ID returns the formatted Database Schema ID

func (DatabaseSchemaId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Database Schema ID

func (DatabaseSchemaId) String

func (id DatabaseSchemaId) String() string

String returns a human-readable description of this Database Schema ID

type GetOperationResponse

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

type ListByDatabaseCompleteResult

type ListByDatabaseCompleteResult struct {
	Items []Resource
}

type ListByDatabaseOperationOptions

type ListByDatabaseOperationOptions struct {
	Filter *string
}

func DefaultListByDatabaseOperationOptions

func DefaultListByDatabaseOperationOptions() ListByDatabaseOperationOptions

func (ListByDatabaseOperationOptions) ToHeaders

func (ListByDatabaseOperationOptions) ToOData

func (ListByDatabaseOperationOptions) ToQuery

type ListByDatabaseOperationResponse

type ListByDatabaseOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Resource
}

type ManagedDatabaseSchemasClient

type ManagedDatabaseSchemasClient struct {
	Client *resourcemanager.Client
}

func NewManagedDatabaseSchemasClientWithBaseURI

func NewManagedDatabaseSchemasClientWithBaseURI(api environments.Api) (*ManagedDatabaseSchemasClient, error)

func (ManagedDatabaseSchemasClient) Get

Get ...

func (ManagedDatabaseSchemasClient) ListByDatabase

ListByDatabase ...

func (ManagedDatabaseSchemasClient) ListByDatabaseComplete

ListByDatabaseComplete retrieves all the results into a single object

func (ManagedDatabaseSchemasClient) ListByDatabaseCompleteMatchingPredicate

ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ManagedInstanceDatabaseId

type ManagedInstanceDatabaseId struct {
	SubscriptionId      string
	ResourceGroupName   string
	ManagedInstanceName string
	DatabaseName        string
}

ManagedInstanceDatabaseId is a struct representing the Resource ID for a Managed Instance Database

func NewManagedInstanceDatabaseID

func NewManagedInstanceDatabaseID(subscriptionId string, resourceGroupName string, managedInstanceName string, databaseName string) ManagedInstanceDatabaseId

NewManagedInstanceDatabaseID returns a new ManagedInstanceDatabaseId struct

func ParseManagedInstanceDatabaseID

func ParseManagedInstanceDatabaseID(input string) (*ManagedInstanceDatabaseId, error)

ParseManagedInstanceDatabaseID parses 'input' into a ManagedInstanceDatabaseId

func ParseManagedInstanceDatabaseIDInsensitively

func ParseManagedInstanceDatabaseIDInsensitively(input string) (*ManagedInstanceDatabaseId, error)

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

func (ManagedInstanceDatabaseId) ID

ID returns the formatted Managed Instance Database ID

func (ManagedInstanceDatabaseId) Segments

Segments returns a slice of Resource ID Segments which comprise this Managed Instance Database ID

func (ManagedInstanceDatabaseId) String

func (id ManagedInstanceDatabaseId) String() string

String returns a human-readable description of this Managed Instance Database ID

type Resource

type Resource struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

type ResourceOperationPredicate

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

func (ResourceOperationPredicate) Matches

func (p ResourceOperationPredicate) Matches(input Resource) bool

Jump to

Keyboard shortcuts

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