registeredserverresource

package
v0.20230717.1144053 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource Documentation

The registeredserverresource SDK allows for interaction with the Azure Resource Manager Service storagesync (API Version 2020-03-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/storagesync/2020-03-01/registeredserverresource"

Client Initialization

client := registeredserverresource.NewRegisteredServerResourceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: RegisteredServerResourceClient.RegisteredServersCreate

ctx := context.TODO()
id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "serverIdValue")

payload := registeredserverresource.RegisteredServerCreateParameters{
	// ...
}


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

Example Usage: RegisteredServerResourceClient.RegisteredServersDelete

ctx := context.TODO()
id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "serverIdValue")

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

Example Usage: RegisteredServerResourceClient.RegisteredServersGet

ctx := context.TODO()
id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "serverIdValue")

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

Example Usage: RegisteredServerResourceClient.RegisteredServersListByStorageSyncService

ctx := context.TODO()
id := registeredserverresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue")

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

Example Usage: RegisteredServerResourceClient.RegisteredServerstriggerRollover

ctx := context.TODO()
id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "serverIdValue")

payload := registeredserverresource.TriggerRolloverRequest{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForRegisteredServerAgentVersionStatus

func PossibleValuesForRegisteredServerAgentVersionStatus() []string

func ValidateRegisteredServerID

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

ValidateRegisteredServerID checks that 'input' can be parsed as a Registered Server ID

func ValidateStorageSyncServiceID

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

ValidateStorageSyncServiceID checks that 'input' can be parsed as a Storage Sync Service ID

Types

type RegisteredServer

type RegisteredServer struct {
	Id         *string                     `json:"id,omitempty"`
	Name       *string                     `json:"name,omitempty"`
	Properties *RegisteredServerProperties `json:"properties,omitempty"`
	Type       *string                     `json:"type,omitempty"`
}

type RegisteredServerAgentVersionStatus

type RegisteredServerAgentVersionStatus string
const (
	RegisteredServerAgentVersionStatusBlocked    RegisteredServerAgentVersionStatus = "Blocked"
	RegisteredServerAgentVersionStatusExpired    RegisteredServerAgentVersionStatus = "Expired"
	RegisteredServerAgentVersionStatusNearExpiry RegisteredServerAgentVersionStatus = "NearExpiry"
	RegisteredServerAgentVersionStatusOk         RegisteredServerAgentVersionStatus = "Ok"
)

func (*RegisteredServerAgentVersionStatus) UnmarshalJSON added in v0.20230516.1215417

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

type RegisteredServerArray

type RegisteredServerArray struct {
	Value *[]RegisteredServer `json:"value,omitempty"`
}

type RegisteredServerCreateParameters

type RegisteredServerCreateParameters struct {
	Id         *string                                     `json:"id,omitempty"`
	Name       *string                                     `json:"name,omitempty"`
	Properties *RegisteredServerCreateParametersProperties `json:"properties,omitempty"`
	Type       *string                                     `json:"type,omitempty"`
}

type RegisteredServerCreateParametersProperties

type RegisteredServerCreateParametersProperties struct {
	AgentVersion      *string `json:"agentVersion,omitempty"`
	ClusterId         *string `json:"clusterId,omitempty"`
	ClusterName       *string `json:"clusterName,omitempty"`
	FriendlyName      *string `json:"friendlyName,omitempty"`
	LastHeartBeat     *string `json:"lastHeartBeat,omitempty"`
	ServerCertificate *string `json:"serverCertificate,omitempty"`
	ServerId          *string `json:"serverId,omitempty"`
	ServerOSVersion   *string `json:"serverOSVersion,omitempty"`
	ServerRole        *string `json:"serverRole,omitempty"`
}

type RegisteredServerId

type RegisteredServerId struct {
	SubscriptionId         string
	ResourceGroupName      string
	StorageSyncServiceName string
	ServerId               string
}

RegisteredServerId is a struct representing the Resource ID for a Registered Server

func NewRegisteredServerID

func NewRegisteredServerID(subscriptionId string, resourceGroupName string, storageSyncServiceName string, serverId string) RegisteredServerId

NewRegisteredServerID returns a new RegisteredServerId struct

func ParseRegisteredServerID

func ParseRegisteredServerID(input string) (*RegisteredServerId, error)

ParseRegisteredServerID parses 'input' into a RegisteredServerId

func ParseRegisteredServerIDInsensitively

func ParseRegisteredServerIDInsensitively(input string) (*RegisteredServerId, error)

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

func (RegisteredServerId) ID

func (id RegisteredServerId) ID() string

ID returns the formatted Registered Server ID

func (RegisteredServerId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Registered Server ID

func (RegisteredServerId) String

func (id RegisteredServerId) String() string

String returns a human-readable description of this Registered Server ID

type RegisteredServerProperties

type RegisteredServerProperties struct {
	AgentVersion               *string                             `json:"agentVersion,omitempty"`
	AgentVersionExpirationDate *string                             `json:"agentVersionExpirationDate,omitempty"`
	AgentVersionStatus         *RegisteredServerAgentVersionStatus `json:"agentVersionStatus,omitempty"`
	ClusterId                  *string                             `json:"clusterId,omitempty"`
	ClusterName                *string                             `json:"clusterName,omitempty"`
	DiscoveryEndpointUri       *string                             `json:"discoveryEndpointUri,omitempty"`
	FriendlyName               *string                             `json:"friendlyName,omitempty"`
	LastHeartBeat              *string                             `json:"lastHeartBeat,omitempty"`
	LastOperationName          *string                             `json:"lastOperationName,omitempty"`
	LastWorkflowId             *string                             `json:"lastWorkflowId,omitempty"`
	ManagementEndpointUri      *string                             `json:"managementEndpointUri,omitempty"`
	MonitoringConfiguration    *string                             `json:"monitoringConfiguration,omitempty"`
	MonitoringEndpointUri      *string                             `json:"monitoringEndpointUri,omitempty"`
	ProvisioningState          *string                             `json:"provisioningState,omitempty"`
	ResourceLocation           *string                             `json:"resourceLocation,omitempty"`
	ServerCertificate          *string                             `json:"serverCertificate,omitempty"`
	ServerId                   *string                             `json:"serverId,omitempty"`
	ServerManagementErrorCode  *int64                              `json:"serverManagementErrorCode,omitempty"`
	ServerOSVersion            *string                             `json:"serverOSVersion,omitempty"`
	ServerRole                 *string                             `json:"serverRole,omitempty"`
	ServiceLocation            *string                             `json:"serviceLocation,omitempty"`
	StorageSyncServiceUid      *string                             `json:"storageSyncServiceUid,omitempty"`
}

func (*RegisteredServerProperties) GetAgentVersionExpirationDateAsTime

func (o *RegisteredServerProperties) GetAgentVersionExpirationDateAsTime() (*time.Time, error)

func (*RegisteredServerProperties) SetAgentVersionExpirationDateAsTime

func (o *RegisteredServerProperties) SetAgentVersionExpirationDateAsTime(input time.Time)

type RegisteredServerResourceClient

type RegisteredServerResourceClient struct {
	Client *resourcemanager.Client
}

func NewRegisteredServerResourceClientWithBaseURI

func NewRegisteredServerResourceClientWithBaseURI(api environments.Api) (*RegisteredServerResourceClient, error)

func (RegisteredServerResourceClient) RegisteredServersCreate

RegisteredServersCreate ...

func (RegisteredServerResourceClient) RegisteredServersCreateThenPoll

RegisteredServersCreateThenPoll performs RegisteredServersCreate then polls until it's completed

func (RegisteredServerResourceClient) RegisteredServersDelete

RegisteredServersDelete ...

func (RegisteredServerResourceClient) RegisteredServersDeleteThenPoll

func (c RegisteredServerResourceClient) RegisteredServersDeleteThenPoll(ctx context.Context, id RegisteredServerId) error

RegisteredServersDeleteThenPoll performs RegisteredServersDelete then polls until it's completed

func (RegisteredServerResourceClient) RegisteredServersGet

RegisteredServersGet ...

func (RegisteredServerResourceClient) RegisteredServersListByStorageSyncService

RegisteredServersListByStorageSyncService ...

func (RegisteredServerResourceClient) RegisteredServerstriggerRollover

RegisteredServerstriggerRollover ...

func (RegisteredServerResourceClient) RegisteredServerstriggerRolloverThenPoll

func (c RegisteredServerResourceClient) RegisteredServerstriggerRolloverThenPoll(ctx context.Context, id RegisteredServerId, input TriggerRolloverRequest) error

RegisteredServerstriggerRolloverThenPoll performs RegisteredServerstriggerRollover then polls until it's completed

type RegisteredServersCreateOperationResponse

type RegisteredServersCreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type RegisteredServersDeleteOperationResponse

type RegisteredServersDeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type RegisteredServersGetOperationResponse

type RegisteredServersGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RegisteredServer
}

type RegisteredServersListByStorageSyncServiceOperationResponse

type RegisteredServersListByStorageSyncServiceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RegisteredServerArray
}

type RegisteredServerstriggerRolloverOperationResponse

type RegisteredServerstriggerRolloverOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type StorageSyncServiceId

type StorageSyncServiceId struct {
	SubscriptionId         string
	ResourceGroupName      string
	StorageSyncServiceName string
}

StorageSyncServiceId is a struct representing the Resource ID for a Storage Sync Service

func NewStorageSyncServiceID

func NewStorageSyncServiceID(subscriptionId string, resourceGroupName string, storageSyncServiceName string) StorageSyncServiceId

NewStorageSyncServiceID returns a new StorageSyncServiceId struct

func ParseStorageSyncServiceID

func ParseStorageSyncServiceID(input string) (*StorageSyncServiceId, error)

ParseStorageSyncServiceID parses 'input' into a StorageSyncServiceId

func ParseStorageSyncServiceIDInsensitively

func ParseStorageSyncServiceIDInsensitively(input string) (*StorageSyncServiceId, error)

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

func (StorageSyncServiceId) ID

func (id StorageSyncServiceId) ID() string

ID returns the formatted Storage Sync Service ID

func (StorageSyncServiceId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Storage Sync Service ID

func (StorageSyncServiceId) String

func (id StorageSyncServiceId) String() string

String returns a human-readable description of this Storage Sync Service ID

type TriggerRolloverRequest

type TriggerRolloverRequest struct {
	ServerCertificate *string `json:"serverCertificate,omitempty"`
}

Jump to

Keyboard shortcuts

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