share

package
v0.20230607.1075732 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

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

The share 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/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.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")

read, err := client.ProviderShareSubscriptionsReinstate(ctx, id)
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) 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
	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"
	DataSetTypeSqlDBTable           DataSetType = "SqlDBTable"
	DataSetTypeSqlDWTable           DataSetType = "SqlDWTable"
)

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       polling.LongRunningPoller
	HttpResponse *http.Response
}

type GetOperationResponse

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

type ListByAccountCompleteResult

type ListByAccountCompleteResult struct {
	Items []Share
}

type ListByAccountOperationOptions

type ListByAccountOperationOptions struct {
	Filter  *string
	Orderby *string
}

func DefaultListByAccountOperationOptions

func DefaultListByAccountOperationOptions() ListByAccountOperationOptions

type ListByAccountOperationResponse

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

func (ListByAccountOperationResponse) HasMore

func (ListByAccountOperationResponse) LoadMore

type ListSynchronizationDetailsCompleteResult

type ListSynchronizationDetailsCompleteResult struct {
	Items []SynchronizationDetails
}

type ListSynchronizationDetailsOperationOptions

type ListSynchronizationDetailsOperationOptions struct {
	Filter  *string
	Orderby *string
}

func DefaultListSynchronizationDetailsOperationOptions

func DefaultListSynchronizationDetailsOperationOptions() ListSynchronizationDetailsOperationOptions

type ListSynchronizationDetailsOperationResponse

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

func (ListSynchronizationDetailsOperationResponse) HasMore

func (ListSynchronizationDetailsOperationResponse) LoadMore

type ListSynchronizationsCompleteResult

type ListSynchronizationsCompleteResult struct {
	Items []ShareSynchronization
}

type ListSynchronizationsOperationOptions

type ListSynchronizationsOperationOptions struct {
	Filter  *string
	Orderby *string
}

func DefaultListSynchronizationsOperationOptions

func DefaultListSynchronizationsOperationOptions() ListSynchronizationsOperationOptions

type ListSynchronizationsOperationResponse

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

func (ListSynchronizationsOperationResponse) HasMore

func (ListSynchronizationsOperationResponse) LoadMore

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"`
	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) 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"`
	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) GetSharedAtAsTime

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

func (*ProviderShareSubscriptionProperties) SetCreatedAtAsTime

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

func (*ProviderShareSubscriptionProperties) SetSharedAtAsTime

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

type ProviderShareSubscriptionsGetByShareOperationResponse

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

type ProviderShareSubscriptionsListByShareCompleteResult

type ProviderShareSubscriptionsListByShareCompleteResult struct {
	Items []ProviderShareSubscription
}

type ProviderShareSubscriptionsListByShareOperationResponse

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

func (ProviderShareSubscriptionsListByShareOperationResponse) HasMore

func (ProviderShareSubscriptionsListByShareOperationResponse) LoadMore

type ProviderShareSubscriptionsReinstateOperationResponse

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

type ProviderShareSubscriptionsRevokeOperationResponse

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

type ProvisioningState

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

type Share

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

type ShareClient

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

func NewShareClientWithBaseURI

func NewShareClientWithBaseURI(endpoint string) ShareClient

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 of the results into a single object

func (ShareClient) ListByAccountCompleteMatchingPredicate

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

ListByAccountCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ShareClient) ListSynchronizationDetails

ListSynchronizationDetails ...

func (ShareClient) ListSynchronizationDetailsComplete

ListSynchronizationDetailsComplete retrieves all of the results into a single object

func (ShareClient) ListSynchronizationDetailsCompleteMatchingPredicate

ListSynchronizationDetailsCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ShareClient) ListSynchronizations

ListSynchronizations ...

func (ShareClient) ListSynchronizationsComplete

ListSynchronizationsComplete retrieves all of the results into a single object

func (ShareClient) ListSynchronizationsCompleteMatchingPredicate

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

ListSynchronizationsCompleteMatchingPredicate retrieves all of the results and then applied the predicate

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) (resp ProviderShareSubscriptionsListByShareOperationResponse, err error)

ProviderShareSubscriptionsListByShare ...

func (ShareClient) ProviderShareSubscriptionsListByShareComplete

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

ProviderShareSubscriptionsListByShareComplete retrieves all of the results into a single object

func (ShareClient) ProviderShareSubscriptionsListByShareCompleteMatchingPredicate

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

ProviderShareSubscriptionsListByShareCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ShareClient) ProviderShareSubscriptionsReinstate

func (c ShareClient) ProviderShareSubscriptionsReinstate(ctx context.Context, id ProviderShareSubscriptionId) (result ProviderShareSubscriptionsReinstateOperationResponse, err error)

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) 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"
)

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"
)

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"
)

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"
)

Jump to

Keyboard shortcuts

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