share

package
v0.20240419.1132837 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2021-08-01/share Documentation

The share SDK allows for interaction with the Azure Resource Manager Service datashare (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/datashare/2021-08-01/share"

Client Initialization

client := share.NewShareClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ShareClient.Create

ctx := context.TODO()
id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue")

payload := share.Share{
	// ...
}


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

Example Usage: ShareClient.Delete

ctx := context.TODO()
id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue")

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

Example Usage: ShareClient.Get

ctx := context.TODO()
id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue")

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: ShareClient.ListByAccount

ctx := context.TODO()
id := share.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue")

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

Example Usage: ShareClient.ListSynchronizationDetails

ctx := context.TODO()
id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue")

payload := share.ShareSynchronization{
	// ...
}


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

Example Usage: ShareClient.ListSynchronizations

ctx := context.TODO()
id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue")

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

Example Usage: ShareClient.ProviderShareSubscriptionsAdjust

ctx := context.TODO()
id := share.NewProviderShareSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "providerShareSubscriptionIdValue")

payload := share.ProviderShareSubscription{
	// ...
}


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

Example Usage: ShareClient.ProviderShareSubscriptionsGetByShare

ctx := context.TODO()
id := share.NewProviderShareSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "providerShareSubscriptionIdValue")

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

Example Usage: ShareClient.ProviderShareSubscriptionsListByShare

ctx := context.TODO()
id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue")

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

Example Usage: ShareClient.ProviderShareSubscriptionsReinstate

ctx := context.TODO()
id := share.NewProviderShareSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "providerShareSubscriptionIdValue")

payload := share.ProviderShareSubscription{
	// ...
}


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

Example Usage: ShareClient.ProviderShareSubscriptionsRevoke

ctx := context.TODO()
id := share.NewProviderShareSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "providerShareSubscriptionIdValue")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDataSetType

func PossibleValuesForDataSetType() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForShareKind

func PossibleValuesForShareKind() []string

func PossibleValuesForShareSubscriptionStatus

func PossibleValuesForShareSubscriptionStatus() []string

func PossibleValuesForStatus

func PossibleValuesForStatus() []string

func PossibleValuesForSynchronizationMode

func PossibleValuesForSynchronizationMode() []string

func ValidateAccountID

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

ValidateAccountID checks that 'input' can be parsed as a Account ID

func ValidateProviderShareSubscriptionID

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

ValidateProviderShareSubscriptionID checks that 'input' can be parsed as a Provider Share Subscription ID

func ValidateShareID

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

ValidateShareID checks that 'input' can be parsed as a Share ID

Types

type AccountId

type AccountId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
}

AccountId is a struct representing the Resource ID for a Account

func NewAccountID

func NewAccountID(subscriptionId string, resourceGroupName string, accountName string) AccountId

NewAccountID returns a new AccountId struct

func ParseAccountID

func ParseAccountID(input string) (*AccountId, error)

ParseAccountID parses 'input' into a AccountId

func ParseAccountIDInsensitively

func ParseAccountIDInsensitively(input string) (*AccountId, error)

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

func (*AccountId) FromParseResult

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

func (AccountId) ID

func (id AccountId) ID() string

ID returns the formatted Account ID

func (AccountId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Account ID

func (AccountId) String

func (id AccountId) String() string

String returns a human-readable description of this Account ID

type CreateOperationResponse

type CreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Share
}

type DataSetType

type DataSetType string
const (
	DataSetTypeAdlsGenOneFile               DataSetType = "AdlsGen1File"
	DataSetTypeAdlsGenOneFolder             DataSetType = "AdlsGen1Folder"
	DataSetTypeAdlsGenTwoFile               DataSetType = "AdlsGen2File"
	DataSetTypeAdlsGenTwoFileSystem         DataSetType = "AdlsGen2FileSystem"
	DataSetTypeAdlsGenTwoFolder             DataSetType = "AdlsGen2Folder"
	DataSetTypeBlob                         DataSetType = "Blob"
	DataSetTypeBlobFolder                   DataSetType = "BlobFolder"
	DataSetTypeContainer                    DataSetType = "Container"
	DataSetTypeKustoCluster                 DataSetType = "KustoCluster"
	DataSetTypeKustoDatabase                DataSetType = "KustoDatabase"
	DataSetTypeKustoTable                   DataSetType = "KustoTable"
	DataSetTypeSqlDBTable                   DataSetType = "SqlDBTable"
	DataSetTypeSqlDWTable                   DataSetType = "SqlDWTable"
	DataSetTypeSynapseWorkspaceSqlPoolTable DataSetType = "SynapseWorkspaceSqlPoolTable"
)

func (*DataSetType) UnmarshalJSON

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

type DataShareErrorInfo

type DataShareErrorInfo struct {
	Code    string                `json:"code"`
	Details *[]DataShareErrorInfo `json:"details,omitempty"`
	Message string                `json:"message"`
	Target  *string               `json:"target,omitempty"`
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *OperationResponse
}

type GetOperationResponse

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

type ListByAccountCompleteResult

type ListByAccountCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Share
}

type ListByAccountOperationOptions

type ListByAccountOperationOptions struct {
	Filter  *string
	Orderby *string
}

func DefaultListByAccountOperationOptions

func DefaultListByAccountOperationOptions() ListByAccountOperationOptions

func (ListByAccountOperationOptions) ToHeaders

func (ListByAccountOperationOptions) ToOData

func (ListByAccountOperationOptions) ToQuery

type ListByAccountOperationResponse

type ListByAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Share
}

type ListSynchronizationDetailsCompleteResult

type ListSynchronizationDetailsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SynchronizationDetails
}

type ListSynchronizationDetailsOperationOptions

type ListSynchronizationDetailsOperationOptions struct {
	Filter  *string
	Orderby *string
}

func DefaultListSynchronizationDetailsOperationOptions

func DefaultListSynchronizationDetailsOperationOptions() ListSynchronizationDetailsOperationOptions

func (ListSynchronizationDetailsOperationOptions) ToHeaders

func (ListSynchronizationDetailsOperationOptions) ToOData

func (ListSynchronizationDetailsOperationOptions) ToQuery

type ListSynchronizationDetailsOperationResponse

type ListSynchronizationDetailsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SynchronizationDetails
}

type ListSynchronizationsCompleteResult

type ListSynchronizationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ShareSynchronization
}

type ListSynchronizationsOperationOptions

type ListSynchronizationsOperationOptions struct {
	Filter  *string
	Orderby *string
}

func DefaultListSynchronizationsOperationOptions

func DefaultListSynchronizationsOperationOptions() ListSynchronizationsOperationOptions

func (ListSynchronizationsOperationOptions) ToHeaders

func (ListSynchronizationsOperationOptions) ToOData

func (ListSynchronizationsOperationOptions) ToQuery

type ListSynchronizationsOperationResponse

type ListSynchronizationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ShareSynchronization
}

type OperationResponse

type OperationResponse struct {
	EndTime   *string             `json:"endTime,omitempty"`
	Error     *DataShareErrorInfo `json:"error,omitempty"`
	StartTime *string             `json:"startTime,omitempty"`
	Status    Status              `json:"status"`
}

func (*OperationResponse) GetEndTimeAsTime

func (o *OperationResponse) GetEndTimeAsTime() (*time.Time, error)

func (*OperationResponse) GetStartTimeAsTime

func (o *OperationResponse) GetStartTimeAsTime() (*time.Time, error)

func (*OperationResponse) SetEndTimeAsTime

func (o *OperationResponse) SetEndTimeAsTime(input time.Time)

func (*OperationResponse) SetStartTimeAsTime

func (o *OperationResponse) SetStartTimeAsTime(input time.Time)

type ProviderShareSubscription

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

type ProviderShareSubscriptionId

type ProviderShareSubscriptionId struct {
	SubscriptionId              string
	ResourceGroupName           string
	AccountName                 string
	ShareName                   string
	ProviderShareSubscriptionId string
}

ProviderShareSubscriptionId is a struct representing the Resource ID for a Provider Share Subscription

func NewProviderShareSubscriptionID

func NewProviderShareSubscriptionID(subscriptionId string, resourceGroupName string, accountName string, shareName string, providerShareSubscriptionId string) ProviderShareSubscriptionId

NewProviderShareSubscriptionID returns a new ProviderShareSubscriptionId struct

func ParseProviderShareSubscriptionID

func ParseProviderShareSubscriptionID(input string) (*ProviderShareSubscriptionId, error)

ParseProviderShareSubscriptionID parses 'input' into a ProviderShareSubscriptionId

func ParseProviderShareSubscriptionIDInsensitively

func ParseProviderShareSubscriptionIDInsensitively(input string) (*ProviderShareSubscriptionId, error)

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

func (*ProviderShareSubscriptionId) FromParseResult

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

func (ProviderShareSubscriptionId) ID

ID returns the formatted Provider Share Subscription ID

func (ProviderShareSubscriptionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Provider Share Subscription ID

func (ProviderShareSubscriptionId) String

func (id ProviderShareSubscriptionId) String() string

String returns a human-readable description of this Provider Share Subscription ID

type ProviderShareSubscriptionOperationPredicate

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

func (ProviderShareSubscriptionOperationPredicate) Matches

type ProviderShareSubscriptionProperties

type ProviderShareSubscriptionProperties struct {
	ConsumerEmail             *string                  `json:"consumerEmail,omitempty"`
	ConsumerName              *string                  `json:"consumerName,omitempty"`
	ConsumerTenantName        *string                  `json:"consumerTenantName,omitempty"`
	CreatedAt                 *string                  `json:"createdAt,omitempty"`
	ExpirationDate            *string                  `json:"expirationDate,omitempty"`
	ProviderEmail             *string                  `json:"providerEmail,omitempty"`
	ProviderName              *string                  `json:"providerName,omitempty"`
	ShareSubscriptionObjectId *string                  `json:"shareSubscriptionObjectId,omitempty"`
	ShareSubscriptionStatus   *ShareSubscriptionStatus `json:"shareSubscriptionStatus,omitempty"`
	SharedAt                  *string                  `json:"sharedAt,omitempty"`
}

func (*ProviderShareSubscriptionProperties) GetCreatedAtAsTime

func (o *ProviderShareSubscriptionProperties) GetCreatedAtAsTime() (*time.Time, error)

func (*ProviderShareSubscriptionProperties) GetExpirationDateAsTime

func (o *ProviderShareSubscriptionProperties) GetExpirationDateAsTime() (*time.Time, error)

func (*ProviderShareSubscriptionProperties) GetSharedAtAsTime

func (o *ProviderShareSubscriptionProperties) GetSharedAtAsTime() (*time.Time, error)

func (*ProviderShareSubscriptionProperties) SetCreatedAtAsTime

func (o *ProviderShareSubscriptionProperties) SetCreatedAtAsTime(input time.Time)

func (*ProviderShareSubscriptionProperties) SetExpirationDateAsTime

func (o *ProviderShareSubscriptionProperties) SetExpirationDateAsTime(input time.Time)

func (*ProviderShareSubscriptionProperties) SetSharedAtAsTime

func (o *ProviderShareSubscriptionProperties) SetSharedAtAsTime(input time.Time)

type ProviderShareSubscriptionsAdjustOperationResponse

type ProviderShareSubscriptionsAdjustOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ProviderShareSubscription
}

type ProviderShareSubscriptionsGetByShareOperationResponse

type ProviderShareSubscriptionsGetByShareOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ProviderShareSubscription
}

type ProviderShareSubscriptionsListByShareCompleteResult

type ProviderShareSubscriptionsListByShareCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ProviderShareSubscription
}

type ProviderShareSubscriptionsListByShareOperationResponse

type ProviderShareSubscriptionsListByShareOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ProviderShareSubscription
}

type ProviderShareSubscriptionsReinstateOperationResponse

type ProviderShareSubscriptionsReinstateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ProviderShareSubscription
}

type ProviderShareSubscriptionsRevokeOperationResponse

type ProviderShareSubscriptionsRevokeOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ProviderShareSubscription
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCreating  ProvisioningState = "Creating"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateMoving    ProvisioningState = "Moving"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

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

type Share

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

type ShareClient

type ShareClient struct {
	Client *resourcemanager.Client
}

func NewShareClientWithBaseURI

func NewShareClientWithBaseURI(sdkApi sdkEnv.Api) (*ShareClient, error)

func (ShareClient) Create

func (c ShareClient) Create(ctx context.Context, id ShareId, input Share) (result CreateOperationResponse, err error)

Create ...

func (ShareClient) Delete

func (c ShareClient) Delete(ctx context.Context, id ShareId) (result DeleteOperationResponse, err error)

Delete ...

func (ShareClient) DeleteThenPoll

func (c ShareClient) DeleteThenPoll(ctx context.Context, id ShareId) error

DeleteThenPoll performs Delete then polls until it's completed

func (ShareClient) Get

func (c ShareClient) Get(ctx context.Context, id ShareId) (result GetOperationResponse, err error)

Get ...

func (ShareClient) ListByAccount

ListByAccount ...

func (ShareClient) ListByAccountComplete

ListByAccountComplete retrieves all the results into a single object

func (ShareClient) ListByAccountCompleteMatchingPredicate

func (c ShareClient) ListByAccountCompleteMatchingPredicate(ctx context.Context, id AccountId, options ListByAccountOperationOptions, predicate ShareOperationPredicate) (result ListByAccountCompleteResult, err error)

ListByAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ShareClient) ListSynchronizationDetails

ListSynchronizationDetails ...

func (ShareClient) ListSynchronizationDetailsComplete

ListSynchronizationDetailsComplete retrieves all the results into a single object

func (ShareClient) ListSynchronizationDetailsCompleteMatchingPredicate

func (c ShareClient) ListSynchronizationDetailsCompleteMatchingPredicate(ctx context.Context, id ShareId, input ShareSynchronization, options ListSynchronizationDetailsOperationOptions, predicate SynchronizationDetailsOperationPredicate) (result ListSynchronizationDetailsCompleteResult, err error)

ListSynchronizationDetailsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ShareClient) ListSynchronizations

ListSynchronizations ...

func (ShareClient) ListSynchronizationsComplete

ListSynchronizationsComplete retrieves all the results into a single object

func (ShareClient) ListSynchronizationsCompleteMatchingPredicate

func (c ShareClient) ListSynchronizationsCompleteMatchingPredicate(ctx context.Context, id ShareId, options ListSynchronizationsOperationOptions, predicate ShareSynchronizationOperationPredicate) (result ListSynchronizationsCompleteResult, err error)

ListSynchronizationsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ShareClient) ProviderShareSubscriptionsAdjust

ProviderShareSubscriptionsAdjust ...

func (ShareClient) ProviderShareSubscriptionsGetByShare

func (c ShareClient) ProviderShareSubscriptionsGetByShare(ctx context.Context, id ProviderShareSubscriptionId) (result ProviderShareSubscriptionsGetByShareOperationResponse, err error)

ProviderShareSubscriptionsGetByShare ...

func (ShareClient) ProviderShareSubscriptionsListByShare

func (c ShareClient) ProviderShareSubscriptionsListByShare(ctx context.Context, id ShareId) (result ProviderShareSubscriptionsListByShareOperationResponse, err error)

ProviderShareSubscriptionsListByShare ...

func (ShareClient) ProviderShareSubscriptionsListByShareComplete

func (c ShareClient) ProviderShareSubscriptionsListByShareComplete(ctx context.Context, id ShareId) (ProviderShareSubscriptionsListByShareCompleteResult, error)

ProviderShareSubscriptionsListByShareComplete retrieves all the results into a single object

func (ShareClient) ProviderShareSubscriptionsListByShareCompleteMatchingPredicate

func (c ShareClient) ProviderShareSubscriptionsListByShareCompleteMatchingPredicate(ctx context.Context, id ShareId, predicate ProviderShareSubscriptionOperationPredicate) (result ProviderShareSubscriptionsListByShareCompleteResult, err error)

ProviderShareSubscriptionsListByShareCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ShareClient) ProviderShareSubscriptionsReinstate

ProviderShareSubscriptionsReinstate ...

func (ShareClient) ProviderShareSubscriptionsRevoke

func (c ShareClient) ProviderShareSubscriptionsRevoke(ctx context.Context, id ProviderShareSubscriptionId) (result ProviderShareSubscriptionsRevokeOperationResponse, err error)

ProviderShareSubscriptionsRevoke ...

func (ShareClient) ProviderShareSubscriptionsRevokeThenPoll

func (c ShareClient) ProviderShareSubscriptionsRevokeThenPoll(ctx context.Context, id ProviderShareSubscriptionId) error

ProviderShareSubscriptionsRevokeThenPoll performs ProviderShareSubscriptionsRevoke then polls until it's completed

type ShareId

type ShareId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
	ShareName         string
}

ShareId is a struct representing the Resource ID for a Share

func NewShareID

func NewShareID(subscriptionId string, resourceGroupName string, accountName string, shareName string) ShareId

NewShareID returns a new ShareId struct

func ParseShareID

func ParseShareID(input string) (*ShareId, error)

ParseShareID parses 'input' into a ShareId

func ParseShareIDInsensitively

func ParseShareIDInsensitively(input string) (*ShareId, error)

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

func (*ShareId) FromParseResult

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

func (ShareId) ID

func (id ShareId) ID() string

ID returns the formatted Share ID

func (ShareId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Share ID

func (ShareId) String

func (id ShareId) String() string

String returns a human-readable description of this Share ID

type ShareKind

type ShareKind string
const (
	ShareKindCopyBased ShareKind = "CopyBased"
	ShareKindInPlace   ShareKind = "InPlace"
)

func (*ShareKind) UnmarshalJSON

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

type ShareOperationPredicate

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

func (ShareOperationPredicate) Matches

func (p ShareOperationPredicate) Matches(input Share) bool

type ShareProperties

type ShareProperties struct {
	CreatedAt         *string            `json:"createdAt,omitempty"`
	Description       *string            `json:"description,omitempty"`
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
	ShareKind         *ShareKind         `json:"shareKind,omitempty"`
	Terms             *string            `json:"terms,omitempty"`
	UserEmail         *string            `json:"userEmail,omitempty"`
	UserName          *string            `json:"userName,omitempty"`
}

func (*ShareProperties) GetCreatedAtAsTime

func (o *ShareProperties) GetCreatedAtAsTime() (*time.Time, error)

func (*ShareProperties) SetCreatedAtAsTime

func (o *ShareProperties) SetCreatedAtAsTime(input time.Time)

type ShareSubscriptionStatus

type ShareSubscriptionStatus string
const (
	ShareSubscriptionStatusActive        ShareSubscriptionStatus = "Active"
	ShareSubscriptionStatusRevoked       ShareSubscriptionStatus = "Revoked"
	ShareSubscriptionStatusRevoking      ShareSubscriptionStatus = "Revoking"
	ShareSubscriptionStatusSourceDeleted ShareSubscriptionStatus = "SourceDeleted"
)

func (*ShareSubscriptionStatus) UnmarshalJSON

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

type ShareSynchronization

type ShareSynchronization struct {
	ConsumerEmail       *string              `json:"consumerEmail,omitempty"`
	ConsumerName        *string              `json:"consumerName,omitempty"`
	ConsumerTenantName  *string              `json:"consumerTenantName,omitempty"`
	DurationMs          *int64               `json:"durationMs,omitempty"`
	EndTime             *string              `json:"endTime,omitempty"`
	Message             *string              `json:"message,omitempty"`
	StartTime           *string              `json:"startTime,omitempty"`
	Status              *string              `json:"status,omitempty"`
	SynchronizationId   *string              `json:"synchronizationId,omitempty"`
	SynchronizationMode *SynchronizationMode `json:"synchronizationMode,omitempty"`
}

func (*ShareSynchronization) GetEndTimeAsTime

func (o *ShareSynchronization) GetEndTimeAsTime() (*time.Time, error)

func (*ShareSynchronization) GetStartTimeAsTime

func (o *ShareSynchronization) GetStartTimeAsTime() (*time.Time, error)

func (*ShareSynchronization) SetEndTimeAsTime

func (o *ShareSynchronization) SetEndTimeAsTime(input time.Time)

func (*ShareSynchronization) SetStartTimeAsTime

func (o *ShareSynchronization) SetStartTimeAsTime(input time.Time)

type ShareSynchronizationOperationPredicate

type ShareSynchronizationOperationPredicate struct {
	ConsumerEmail      *string
	ConsumerName       *string
	ConsumerTenantName *string
	DurationMs         *int64
	EndTime            *string
	Message            *string
	StartTime          *string
	Status             *string
	SynchronizationId  *string
}

func (ShareSynchronizationOperationPredicate) Matches

type Status

type Status string
const (
	StatusAccepted         Status = "Accepted"
	StatusCanceled         Status = "Canceled"
	StatusFailed           Status = "Failed"
	StatusInProgress       Status = "InProgress"
	StatusSucceeded        Status = "Succeeded"
	StatusTransientFailure Status = "TransientFailure"
)

func (*Status) UnmarshalJSON

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

type SynchronizationDetails

type SynchronizationDetails struct {
	DataSetId    *string      `json:"dataSetId,omitempty"`
	DataSetType  *DataSetType `json:"dataSetType,omitempty"`
	DurationMs   *int64       `json:"durationMs,omitempty"`
	EndTime      *string      `json:"endTime,omitempty"`
	FilesRead    *int64       `json:"filesRead,omitempty"`
	FilesWritten *int64       `json:"filesWritten,omitempty"`
	Message      *string      `json:"message,omitempty"`
	Name         *string      `json:"name,omitempty"`
	RowsCopied   *int64       `json:"rowsCopied,omitempty"`
	RowsRead     *int64       `json:"rowsRead,omitempty"`
	SizeRead     *int64       `json:"sizeRead,omitempty"`
	SizeWritten  *int64       `json:"sizeWritten,omitempty"`
	StartTime    *string      `json:"startTime,omitempty"`
	Status       *string      `json:"status,omitempty"`
	VCore        *int64       `json:"vCore,omitempty"`
}

func (*SynchronizationDetails) GetEndTimeAsTime

func (o *SynchronizationDetails) GetEndTimeAsTime() (*time.Time, error)

func (*SynchronizationDetails) GetStartTimeAsTime

func (o *SynchronizationDetails) GetStartTimeAsTime() (*time.Time, error)

func (*SynchronizationDetails) SetEndTimeAsTime

func (o *SynchronizationDetails) SetEndTimeAsTime(input time.Time)

func (*SynchronizationDetails) SetStartTimeAsTime

func (o *SynchronizationDetails) SetStartTimeAsTime(input time.Time)

type SynchronizationDetailsOperationPredicate

type SynchronizationDetailsOperationPredicate struct {
	DataSetId    *string
	DurationMs   *int64
	EndTime      *string
	FilesRead    *int64
	FilesWritten *int64
	Message      *string
	Name         *string
	RowsCopied   *int64
	RowsRead     *int64
	SizeRead     *int64
	SizeWritten  *int64
	StartTime    *string
	Status       *string
	VCore        *int64
}

func (SynchronizationDetailsOperationPredicate) Matches

type SynchronizationMode

type SynchronizationMode string
const (
	SynchronizationModeFullSync    SynchronizationMode = "FullSync"
	SynchronizationModeIncremental SynchronizationMode = "Incremental"
)

func (*SynchronizationMode) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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