sharesubscription

package
v0.20240529.1094411 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/sharesubscription Documentation

The sharesubscription SDK allows for interaction with the Azure Resource Manager Service datashare (API Version 2019-11-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/2019-11-01/sharesubscription"

Client Initialization

client := sharesubscription.NewShareSubscriptionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ShareSubscriptionClient.CancelSynchronization

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

payload := sharesubscription.ShareSubscriptionSynchronization{
	// ...
}


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

Example Usage: ShareSubscriptionClient.ConsumerSourceDataSetsListByShareSubscription

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

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

Example Usage: ShareSubscriptionClient.Create

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

payload := sharesubscription.ShareSubscription{
	// ...
}


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: ShareSubscriptionClient.Delete

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

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

Example Usage: ShareSubscriptionClient.Get

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

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

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

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

Example Usage: ShareSubscriptionClient.ListSourceShareSynchronizationSettings

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

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

Example Usage: ShareSubscriptionClient.ListSynchronizationDetails

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

payload := sharesubscription.ShareSubscriptionSynchronization{
	// ...
}


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

Example Usage: ShareSubscriptionClient.ListSynchronizations

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

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

Example Usage: ShareSubscriptionClient.Synchronize

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

payload := sharesubscription.Synchronize{
	// ...
}


if err := client.SynchronizeThenPoll(ctx, id, payload); 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 PossibleValuesForRecurrenceInterval

func PossibleValuesForRecurrenceInterval() []string

func PossibleValuesForShareKind

func PossibleValuesForShareKind() []string

func PossibleValuesForShareSubscriptionStatus

func PossibleValuesForShareSubscriptionStatus() []string

func PossibleValuesForSourceShareSynchronizationSettingKind

func PossibleValuesForSourceShareSynchronizationSettingKind() []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 ValidateShareSubscriptionID

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

ValidateShareSubscriptionID checks that 'input' can be parsed as a Share Subscription 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 CancelSynchronizationOperationResponse

type CancelSynchronizationOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ShareSubscriptionSynchronization
}

type ConsumerSourceDataSet

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

type ConsumerSourceDataSetOperationPredicate

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

func (ConsumerSourceDataSetOperationPredicate) Matches

type ConsumerSourceDataSetProperties

type ConsumerSourceDataSetProperties struct {
	DataSetId       *string      `json:"dataSetId,omitempty"`
	DataSetLocation *string      `json:"dataSetLocation,omitempty"`
	DataSetName     *string      `json:"dataSetName,omitempty"`
	DataSetPath     *string      `json:"dataSetPath,omitempty"`
	DataSetType     *DataSetType `json:"dataSetType,omitempty"`
}

type ConsumerSourceDataSetsListByShareSubscriptionCompleteResult

type ConsumerSourceDataSetsListByShareSubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ConsumerSourceDataSet
}

type ConsumerSourceDataSetsListByShareSubscriptionOperationResponse

type ConsumerSourceDataSetsListByShareSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ConsumerSourceDataSet
}

type CreateOperationResponse

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

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"
	DataSetTypeSqlDBTable           DataSetType = "SqlDBTable"
	DataSetTypeSqlDWTable           DataSetType = "SqlDWTable"
)

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        *ShareSubscription
}

type ListByAccountCompleteResult

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

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

type ListSourceShareSynchronizationSettingsCompleteResult

type ListSourceShareSynchronizationSettingsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SourceShareSynchronizationSetting
}

type ListSourceShareSynchronizationSettingsOperationResponse

type ListSourceShareSynchronizationSettingsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SourceShareSynchronizationSetting
}

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              []ShareSubscriptionSynchronization
}

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

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 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 RawSourceShareSynchronizationSettingImpl

type RawSourceShareSynchronizationSettingImpl struct {
	Type   string
	Values map[string]interface{}
}

RawSourceShareSynchronizationSettingImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RecurrenceInterval

type RecurrenceInterval string
const (
	RecurrenceIntervalDay  RecurrenceInterval = "Day"
	RecurrenceIntervalHour RecurrenceInterval = "Hour"
)

func (*RecurrenceInterval) UnmarshalJSON

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

type ScheduledSourceShareSynchronizationSettingProperties

type ScheduledSourceShareSynchronizationSettingProperties struct {
	RecurrenceInterval  *RecurrenceInterval `json:"recurrenceInterval,omitempty"`
	SynchronizationTime *string             `json:"synchronizationTime,omitempty"`
}

func (*ScheduledSourceShareSynchronizationSettingProperties) GetSynchronizationTimeAsTime

func (o *ScheduledSourceShareSynchronizationSettingProperties) GetSynchronizationTimeAsTime() (*time.Time, error)

func (*ScheduledSourceShareSynchronizationSettingProperties) SetSynchronizationTimeAsTime

func (o *ScheduledSourceShareSynchronizationSettingProperties) SetSynchronizationTimeAsTime(input time.Time)

type ScheduledSourceSynchronizationSetting

type ScheduledSourceSynchronizationSetting struct {
	Properties *ScheduledSourceShareSynchronizationSettingProperties `json:"properties,omitempty"`
}

func (ScheduledSourceSynchronizationSetting) MarshalJSON

func (s ScheduledSourceSynchronizationSetting) MarshalJSON() ([]byte, error)

type ShareKind

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

func (*ShareKind) UnmarshalJSON

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

type ShareSubscription

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

type ShareSubscriptionClient

type ShareSubscriptionClient struct {
	Client *resourcemanager.Client
}

func NewShareSubscriptionClientWithBaseURI

func NewShareSubscriptionClientWithBaseURI(sdkApi sdkEnv.Api) (*ShareSubscriptionClient, error)

func (ShareSubscriptionClient) CancelSynchronization

CancelSynchronization ...

func (ShareSubscriptionClient) CancelSynchronizationThenPoll

func (c ShareSubscriptionClient) CancelSynchronizationThenPoll(ctx context.Context, id ShareSubscriptionId, input ShareSubscriptionSynchronization) error

CancelSynchronizationThenPoll performs CancelSynchronization then polls until it's completed

func (ShareSubscriptionClient) ConsumerSourceDataSetsListByShareSubscription

func (c ShareSubscriptionClient) ConsumerSourceDataSetsListByShareSubscription(ctx context.Context, id ShareSubscriptionId) (result ConsumerSourceDataSetsListByShareSubscriptionOperationResponse, err error)

ConsumerSourceDataSetsListByShareSubscription ...

func (ShareSubscriptionClient) ConsumerSourceDataSetsListByShareSubscriptionComplete

func (c ShareSubscriptionClient) ConsumerSourceDataSetsListByShareSubscriptionComplete(ctx context.Context, id ShareSubscriptionId) (ConsumerSourceDataSetsListByShareSubscriptionCompleteResult, error)

ConsumerSourceDataSetsListByShareSubscriptionComplete retrieves all the results into a single object

func (ShareSubscriptionClient) ConsumerSourceDataSetsListByShareSubscriptionCompleteMatchingPredicate

func (c ShareSubscriptionClient) ConsumerSourceDataSetsListByShareSubscriptionCompleteMatchingPredicate(ctx context.Context, id ShareSubscriptionId, predicate ConsumerSourceDataSetOperationPredicate) (result ConsumerSourceDataSetsListByShareSubscriptionCompleteResult, err error)

ConsumerSourceDataSetsListByShareSubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ShareSubscriptionClient) Create

Create ...

func (ShareSubscriptionClient) Delete

Delete ...

func (ShareSubscriptionClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (ShareSubscriptionClient) Get

Get ...

func (ShareSubscriptionClient) ListByAccount

ListByAccount ...

func (ShareSubscriptionClient) ListByAccountComplete

ListByAccountComplete retrieves all the results into a single object

func (ShareSubscriptionClient) ListByAccountCompleteMatchingPredicate

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

ListByAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ShareSubscriptionClient) ListSourceShareSynchronizationSettings

func (c ShareSubscriptionClient) ListSourceShareSynchronizationSettings(ctx context.Context, id ShareSubscriptionId) (result ListSourceShareSynchronizationSettingsOperationResponse, err error)

ListSourceShareSynchronizationSettings ...

func (ShareSubscriptionClient) ListSourceShareSynchronizationSettingsComplete

ListSourceShareSynchronizationSettingsComplete retrieves all the results into a single object

func (ShareSubscriptionClient) ListSourceShareSynchronizationSettingsCompleteMatchingPredicate

func (c ShareSubscriptionClient) ListSourceShareSynchronizationSettingsCompleteMatchingPredicate(ctx context.Context, id ShareSubscriptionId, predicate SourceShareSynchronizationSettingOperationPredicate) (result ListSourceShareSynchronizationSettingsCompleteResult, err error)

ListSourceShareSynchronizationSettingsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ShareSubscriptionClient) ListSynchronizationDetails

ListSynchronizationDetails ...

func (ShareSubscriptionClient) ListSynchronizationDetailsComplete

ListSynchronizationDetailsComplete retrieves all the results into a single object

func (ShareSubscriptionClient) ListSynchronizationDetailsCompleteMatchingPredicate

ListSynchronizationDetailsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ShareSubscriptionClient) ListSynchronizations

ListSynchronizations ...

func (ShareSubscriptionClient) ListSynchronizationsComplete

ListSynchronizationsComplete retrieves all the results into a single object

func (ShareSubscriptionClient) ListSynchronizationsCompleteMatchingPredicate

ListSynchronizationsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ShareSubscriptionClient) Synchronize

Synchronize ...

func (ShareSubscriptionClient) SynchronizeThenPoll

func (c ShareSubscriptionClient) SynchronizeThenPoll(ctx context.Context, id ShareSubscriptionId, input Synchronize) error

SynchronizeThenPoll performs Synchronize then polls until it's completed

type ShareSubscriptionId

type ShareSubscriptionId struct {
	SubscriptionId        string
	ResourceGroupName     string
	AccountName           string
	ShareSubscriptionName string
}

ShareSubscriptionId is a struct representing the Resource ID for a Share Subscription

func NewShareSubscriptionID

func NewShareSubscriptionID(subscriptionId string, resourceGroupName string, accountName string, shareSubscriptionName string) ShareSubscriptionId

NewShareSubscriptionID returns a new ShareSubscriptionId struct

func ParseShareSubscriptionID

func ParseShareSubscriptionID(input string) (*ShareSubscriptionId, error)

ParseShareSubscriptionID parses 'input' into a ShareSubscriptionId

func ParseShareSubscriptionIDInsensitively

func ParseShareSubscriptionIDInsensitively(input string) (*ShareSubscriptionId, error)

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

func (*ShareSubscriptionId) FromParseResult

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

func (ShareSubscriptionId) ID

func (id ShareSubscriptionId) ID() string

ID returns the formatted Share Subscription ID

func (ShareSubscriptionId) Segments

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

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

func (ShareSubscriptionId) String

func (id ShareSubscriptionId) String() string

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

type ShareSubscriptionOperationPredicate

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

func (ShareSubscriptionOperationPredicate) Matches

type ShareSubscriptionProperties

type ShareSubscriptionProperties struct {
	CreatedAt               *string                  `json:"createdAt,omitempty"`
	InvitationId            string                   `json:"invitationId"`
	ProviderEmail           *string                  `json:"providerEmail,omitempty"`
	ProviderName            *string                  `json:"providerName,omitempty"`
	ProviderTenantName      *string                  `json:"providerTenantName,omitempty"`
	ProvisioningState       *ProvisioningState       `json:"provisioningState,omitempty"`
	ShareDescription        *string                  `json:"shareDescription,omitempty"`
	ShareKind               *ShareKind               `json:"shareKind,omitempty"`
	ShareName               *string                  `json:"shareName,omitempty"`
	ShareSubscriptionStatus *ShareSubscriptionStatus `json:"shareSubscriptionStatus,omitempty"`
	ShareTerms              *string                  `json:"shareTerms,omitempty"`
	SourceShareLocation     string                   `json:"sourceShareLocation"`
	UserEmail               *string                  `json:"userEmail,omitempty"`
	UserName                *string                  `json:"userName,omitempty"`
}

func (*ShareSubscriptionProperties) GetCreatedAtAsTime

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

func (*ShareSubscriptionProperties) SetCreatedAtAsTime

func (o *ShareSubscriptionProperties) 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 ShareSubscriptionSynchronization

type ShareSubscriptionSynchronization struct {
	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"`
	SynchronizationMode *SynchronizationMode `json:"synchronizationMode,omitempty"`
}

func (*ShareSubscriptionSynchronization) GetEndTimeAsTime

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

func (*ShareSubscriptionSynchronization) GetStartTimeAsTime

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

func (*ShareSubscriptionSynchronization) SetEndTimeAsTime

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

func (*ShareSubscriptionSynchronization) SetStartTimeAsTime

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

type ShareSubscriptionSynchronizationOperationPredicate

type ShareSubscriptionSynchronizationOperationPredicate struct {
	DurationMs        *int64
	EndTime           *string
	Message           *string
	StartTime         *string
	Status            *string
	SynchronizationId *string
}

func (ShareSubscriptionSynchronizationOperationPredicate) Matches

type SourceShareSynchronizationSetting

type SourceShareSynchronizationSetting interface {
}

type SourceShareSynchronizationSettingKind

type SourceShareSynchronizationSettingKind string
const (
	SourceShareSynchronizationSettingKindScheduleBased SourceShareSynchronizationSettingKind = "ScheduleBased"
)

func (*SourceShareSynchronizationSettingKind) UnmarshalJSON

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

type SourceShareSynchronizationSettingOperationPredicate

type SourceShareSynchronizationSettingOperationPredicate struct {
}

func (SourceShareSynchronizationSettingOperationPredicate) 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

type Synchronize

type Synchronize struct {
	SynchronizationMode *SynchronizationMode `json:"synchronizationMode,omitempty"`
}

type SynchronizeOperationResponse

type SynchronizeOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ShareSubscriptionSynchronization
}

Jump to

Keyboard shortcuts

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