deletedservice

package
v0.20230204.1110518 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2021-08-01/deletedservice Documentation

The deletedservice SDK allows for interaction with the Azure Resource Manager Service apimanagement (API Version 2021-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-sdk/resource-manager/apimanagement/2021-08-01/deletedservice"

Client Initialization

client := deletedservice.NewDeletedServiceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DeletedServiceClient.GetByName

ctx := context.TODO()
id := deletedservice.NewDeletedServiceID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedServiceValue")

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

Example Usage: DeletedServiceClient.ListBySubscription

ctx := context.TODO()
id := deletedservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: DeletedServiceClient.Purge

ctx := context.TODO()
id := deletedservice.NewDeletedServiceID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedServiceValue")

if err := client.PurgeThenPoll(ctx, id); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateDeletedServiceID

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

ValidateDeletedServiceID checks that 'input' can be parsed as a Deleted Service ID

Types

type DeletedServiceClient

type DeletedServiceClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewDeletedServiceClientWithBaseURI

func NewDeletedServiceClientWithBaseURI(endpoint string) DeletedServiceClient

func (DeletedServiceClient) GetByName

GetByName ...

func (DeletedServiceClient) ListBySubscription

ListBySubscription ...

func (DeletedServiceClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all of the results into a single object

func (DeletedServiceClient) ListBySubscriptionCompleteMatchingPredicate

func (c DeletedServiceClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DeletedServiceContractOperationPredicate) (resp ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (DeletedServiceClient) Purge

Purge ...

func (DeletedServiceClient) PurgeThenPoll

func (c DeletedServiceClient) PurgeThenPoll(ctx context.Context, id DeletedServiceId) error

PurgeThenPoll performs Purge then polls until it's completed

type DeletedServiceContract

type DeletedServiceContract struct {
	Id         *string                           `json:"id,omitempty"`
	Location   *string                           `json:"location,omitempty"`
	Name       *string                           `json:"name,omitempty"`
	Properties *DeletedServiceContractProperties `json:"properties,omitempty"`
	Type       *string                           `json:"type,omitempty"`
}

type DeletedServiceContractOperationPredicate

type DeletedServiceContractOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (DeletedServiceContractOperationPredicate) Matches

type DeletedServiceContractProperties

type DeletedServiceContractProperties struct {
	DeletionDate       *string `json:"deletionDate,omitempty"`
	ScheduledPurgeDate *string `json:"scheduledPurgeDate,omitempty"`
	ServiceId          *string `json:"serviceId,omitempty"`
}

func (*DeletedServiceContractProperties) GetDeletionDateAsTime

func (o *DeletedServiceContractProperties) GetDeletionDateAsTime() (*time.Time, error)

func (*DeletedServiceContractProperties) GetScheduledPurgeDateAsTime

func (o *DeletedServiceContractProperties) GetScheduledPurgeDateAsTime() (*time.Time, error)

func (*DeletedServiceContractProperties) SetDeletionDateAsTime

func (o *DeletedServiceContractProperties) SetDeletionDateAsTime(input time.Time)

func (*DeletedServiceContractProperties) SetScheduledPurgeDateAsTime

func (o *DeletedServiceContractProperties) SetScheduledPurgeDateAsTime(input time.Time)

type DeletedServiceId

type DeletedServiceId struct {
	SubscriptionId     string
	LocationName       string
	DeletedServiceName string
}

DeletedServiceId is a struct representing the Resource ID for a Deleted Service

func NewDeletedServiceID

func NewDeletedServiceID(subscriptionId string, locationName string, deletedServiceName string) DeletedServiceId

NewDeletedServiceID returns a new DeletedServiceId struct

func ParseDeletedServiceID

func ParseDeletedServiceID(input string) (*DeletedServiceId, error)

ParseDeletedServiceID parses 'input' into a DeletedServiceId

func ParseDeletedServiceIDInsensitively

func ParseDeletedServiceIDInsensitively(input string) (*DeletedServiceId, error)

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

func (DeletedServiceId) ID

func (id DeletedServiceId) ID() string

ID returns the formatted Deleted Service ID

func (DeletedServiceId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Deleted Service ID

func (DeletedServiceId) String

func (id DeletedServiceId) String() string

String returns a human-readable description of this Deleted Service ID

type GetByNameOperationResponse

type GetByNameOperationResponse struct {
	HttpResponse *http.Response
	Model        *DeletedServiceContract
}

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	Items []DeletedServiceContract
}

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]DeletedServiceContract
	// contains filtered or unexported fields
}

func (ListBySubscriptionOperationResponse) HasMore

func (ListBySubscriptionOperationResponse) LoadMore

type PurgeOperationResponse

type PurgeOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

Jump to

Keyboard shortcuts

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