dnsprivateviews

package
v0.20240815.1003113 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MPL-2.0 Imports: 14 Imported by: 1

README

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

The dnsprivateviews SDK allows for interaction with the Azure Resource Manager Service 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/dnsprivateviews"

Client Initialization

client := dnsprivateviews.NewDnsPrivateViewsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DnsPrivateViewsClient.Get

ctx := context.TODO()
id := dnsprivateviews.NewDnsPrivateViewID("12345678-1234-9876-4563-123456789012", "locationValue", "dnsPrivateViewValue")

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: DnsPrivateViewsClient.ListByLocation

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

// 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 PossibleValuesForDnsPrivateViewsLifecycleState

func PossibleValuesForDnsPrivateViewsLifecycleState() []string

func PossibleValuesForResourceProvisioningState

func PossibleValuesForResourceProvisioningState() []string

func ValidateDnsPrivateViewID

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

ValidateDnsPrivateViewID checks that 'input' can be parsed as a Dns Private View 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 DnsPrivateView

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

type DnsPrivateViewId

type DnsPrivateViewId struct {
	SubscriptionId     string
	LocationName       string
	DnsPrivateViewName string
}

DnsPrivateViewId is a struct representing the Resource ID for a Dns Private View

func NewDnsPrivateViewID

func NewDnsPrivateViewID(subscriptionId string, locationName string, dnsPrivateViewName string) DnsPrivateViewId

NewDnsPrivateViewID returns a new DnsPrivateViewId struct

func ParseDnsPrivateViewID

func ParseDnsPrivateViewID(input string) (*DnsPrivateViewId, error)

ParseDnsPrivateViewID parses 'input' into a DnsPrivateViewId

func ParseDnsPrivateViewIDInsensitively

func ParseDnsPrivateViewIDInsensitively(input string) (*DnsPrivateViewId, error)

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

func (*DnsPrivateViewId) FromParseResult

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

func (DnsPrivateViewId) ID

func (id DnsPrivateViewId) ID() string

ID returns the formatted Dns Private View ID

func (DnsPrivateViewId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Dns Private View ID

func (DnsPrivateViewId) String

func (id DnsPrivateViewId) String() string

String returns a human-readable description of this Dns Private View ID

type DnsPrivateViewOperationPredicate

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

func (DnsPrivateViewOperationPredicate) Matches

type DnsPrivateViewProperties

type DnsPrivateViewProperties struct {
	DisplayName       *string                        `json:"displayName,omitempty"`
	IsProtected       *bool                          `json:"isProtected,omitempty"`
	LifecycleState    *DnsPrivateViewsLifecycleState `json:"lifecycleState,omitempty"`
	Ocid              *string                        `json:"ocid,omitempty"`
	ProvisioningState *ResourceProvisioningState     `json:"provisioningState,omitempty"`
	Self              *string                        `json:"self,omitempty"`
	TimeCreated       *string                        `json:"timeCreated,omitempty"`
	TimeUpdated       *string                        `json:"timeUpdated,omitempty"`
}

func (*DnsPrivateViewProperties) GetTimeCreatedAsTime

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

func (*DnsPrivateViewProperties) GetTimeUpdatedAsTime

func (o *DnsPrivateViewProperties) GetTimeUpdatedAsTime() (*time.Time, error)

func (*DnsPrivateViewProperties) SetTimeCreatedAsTime

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

func (*DnsPrivateViewProperties) SetTimeUpdatedAsTime

func (o *DnsPrivateViewProperties) SetTimeUpdatedAsTime(input time.Time)

type DnsPrivateViewsClient

type DnsPrivateViewsClient struct {
	Client *resourcemanager.Client
}

func NewDnsPrivateViewsClientWithBaseURI

func NewDnsPrivateViewsClientWithBaseURI(sdkApi sdkEnv.Api) (*DnsPrivateViewsClient, error)

func (DnsPrivateViewsClient) Get

Get ...

func (DnsPrivateViewsClient) ListByLocation

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

ListByLocation ...

func (DnsPrivateViewsClient) ListByLocationComplete

ListByLocationComplete retrieves all the results into a single object

func (DnsPrivateViewsClient) ListByLocationCompleteMatchingPredicate

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

ListByLocationCompleteMatchingPredicate retrieves all the results and then applies the predicate

type DnsPrivateViewsLifecycleState

type DnsPrivateViewsLifecycleState string
const (
	DnsPrivateViewsLifecycleStateActive   DnsPrivateViewsLifecycleState = "Active"
	DnsPrivateViewsLifecycleStateDeleted  DnsPrivateViewsLifecycleState = "Deleted"
	DnsPrivateViewsLifecycleStateDeleting DnsPrivateViewsLifecycleState = "Deleting"
	DnsPrivateViewsLifecycleStateUpdating DnsPrivateViewsLifecycleState = "Updating"
)

func (*DnsPrivateViewsLifecycleState) UnmarshalJSON

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

type GetOperationResponse

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

type ListByLocationCompleteResult

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

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        *[]DnsPrivateView
}

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

type ResourceProvisioningState

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

func (*ResourceProvisioningState) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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