databoundaries

package
v0.20240923.1151247 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/resources/2024-08-01/databoundaries Documentation

The databoundaries SDK allows for interaction with Azure Resource Manager resources (API Version 2024-08-01).

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

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2024-08-01/databoundaries"

Client Initialization

client := databoundaries.NewDataBoundariesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DataBoundariesClient.GetScope

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Example Usage: DataBoundariesClient.GetTenant

ctx := context.TODO()


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

Example Usage: DataBoundariesClient.Put

ctx := context.TODO()

payload := databoundaries.DataBoundaryDefinition{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDataBoundary

func PossibleValuesForDataBoundary() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

Types

type DataBoundariesClient

type DataBoundariesClient struct {
	Client *resourcemanager.Client
}

func NewDataBoundariesClientWithBaseURI

func NewDataBoundariesClientWithBaseURI(sdkApi sdkEnv.Api) (*DataBoundariesClient, error)

func (DataBoundariesClient) GetScope

GetScope ...

func (DataBoundariesClient) GetTenant

func (c DataBoundariesClient) GetTenant(ctx context.Context) (result GetTenantOperationResponse, err error)

GetTenant ...

func (DataBoundariesClient) Put

Put ...

type DataBoundary

type DataBoundary string
const (
	DataBoundaryEU         DataBoundary = "EU"
	DataBoundaryGlobal     DataBoundary = "Global"
	DataBoundaryNotDefined DataBoundary = "NotDefined"
)

func (*DataBoundary) UnmarshalJSON

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

type DataBoundaryDefinition

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

type DataBoundaryProperties

type DataBoundaryProperties struct {
	DataBoundary      *DataBoundary      `json:"dataBoundary,omitempty"`
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
}

type GetScopeOperationResponse

type GetScopeOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DataBoundaryDefinition
}

type GetTenantOperationResponse

type GetTenantOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DataBoundaryDefinition
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted  ProvisioningState = "Accepted"
	ProvisioningStateCanceled  ProvisioningState = "Canceled"
	ProvisioningStateCreating  ProvisioningState = "Creating"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateRunning   ProvisioningState = "Running"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	ProvisioningStateUpdating  ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

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

type PutOperationResponse

type PutOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DataBoundaryDefinition
}

Jump to

Keyboard shortcuts

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