azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/communication/mgmt/2020-08-20-preview/communication Index | Files | Directories

package communication

import "github.com/Azure/azure-sdk-for-go/services/preview/communication/mgmt/2020-08-20-preview/communication"

Package communication implements the Azure ARM Communication service API version 2020-08-20-preview.

REST API for Azure Communication Services

Index

Package Files

client.go enums.go models.go operations.go operationstatuses.go service.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Communication
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type AggregationType Uses

type AggregationType string

AggregationType enumerates the values for aggregation type.

const (
    // Average ...
    Average AggregationType = "Average"
    // Count ...
    Count AggregationType = "Count"
    // Maximum ...
    Maximum AggregationType = "Maximum"
    // Minimum ...
    Minimum AggregationType = "Minimum"
    // Total ...
    Total AggregationType = "Total"
)

func PossibleAggregationTypeValues Uses

func PossibleAggregationTypeValues() []AggregationType

PossibleAggregationTypeValues returns an array of possible values for the AggregationType const type.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Communication.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type Dimension Uses

type Dimension struct {
    // Name - The public facing name of the dimension.
    Name *string `json:"name,omitempty"`
    // DisplayName - Localized friendly display name of the dimension.
    DisplayName *string `json:"displayName,omitempty"`
    // InternalName - Name of the dimension as it appears in MDM.
    InternalName *string `json:"internalName,omitempty"`
    // ToBeExportedForShoebox - A Boolean flag indicating whether this dimension should be included for the shoebox export scenario.
    ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"`
}

Dimension specifications of the Dimension of metrics.

type ErrorResponse Uses

type ErrorResponse struct {
    // Error - The error
    Error *ErrorResponseError `json:"error,omitempty"`
}

ErrorResponse error response indicating why the requested operation could not be performed.

type ErrorResponseError Uses

type ErrorResponseError struct {
    // Code - Error code.
    Code *string `json:"code,omitempty"`
    // Message - Error message indicating why the operation failed.
    Message *string `json:"message,omitempty"`
}

ErrorResponseError the error

type KeyType Uses

type KeyType string

KeyType enumerates the values for key type.

const (
    // Primary ...
    Primary KeyType = "Primary"
    // Secondary ...
    Secondary KeyType = "Secondary"
)

func PossibleKeyTypeValues Uses

func PossibleKeyTypeValues() []KeyType

PossibleKeyTypeValues returns an array of possible values for the KeyType const type.

type LinkNotificationHubParameters Uses

type LinkNotificationHubParameters struct {
    // ResourceID - The resource ID of the notification hub
    ResourceID *string `json:"resourceId,omitempty"`
    // ConnectionString - Connection string for the notification hub
    ConnectionString *string `json:"connectionString,omitempty"`
}

LinkNotificationHubParameters description of an Azure Notification Hub to link to the communication service

type LinkedNotificationHub Uses

type LinkedNotificationHub struct {
    autorest.Response `json:"-"`
    // ResourceID - The resource ID of the notification hub
    ResourceID *string `json:"resourceId,omitempty"`
}

LinkedNotificationHub a notification hub that has been linked to the communication service

type LocationResource Uses

type LocationResource struct {
    // Location - The Azure location where the CommunicationService is running.
    Location *string `json:"location,omitempty"`
}

LocationResource an ARM resource with its own location (not a global or an inherited location).

type MetricSpecification Uses

type MetricSpecification struct {
    // Name - Name of the metric.
    Name *string `json:"name,omitempty"`
    // DisplayName - Localized friendly display name of the metric.
    DisplayName *string `json:"displayName,omitempty"`
    // DisplayDescription - Localized friendly description of the metric.
    DisplayDescription *string `json:"displayDescription,omitempty"`
    // Unit - The unit that makes sense for the metric.
    Unit *string `json:"unit,omitempty"`
    // AggregationType - The method for aggregating the metric. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count'
    AggregationType AggregationType `json:"aggregationType,omitempty"`
    // FillGapWithZero - Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published.
    // Ex. a metric that returns the number of times a particular error code was emitted. The error code may not appear
    // often, instead of the RP publishing 0, Shoebox can auto fill in 0s for time periods where nothing was emitted.
    FillGapWithZero *string `json:"fillGapWithZero,omitempty"`
    // Category - The name of the metric category that the metric belongs to. A metric can only belong to a single category.
    Category *string `json:"category,omitempty"`
    // Dimensions - The dimensions of the metrics.
    Dimensions *[]Dimension `json:"dimensions,omitempty"`
}

MetricSpecification specifications of the Metrics for Azure Monitoring.

type NameAvailability Uses

type NameAvailability struct {
    autorest.Response `json:"-"`
    // NameAvailable - Indicates whether the name is available or not.
    NameAvailable *bool `json:"nameAvailable,omitempty"`
    // Reason - The reason of the availability. Required if name is not available.
    Reason *string `json:"reason,omitempty"`
    // Message - The message of the operation.
    Message *string `json:"message,omitempty"`
}

NameAvailability result of the request to check name availability. It contains a flag and possible reason of failure.

type NameAvailabilityParameters Uses

type NameAvailabilityParameters struct {
    // Type - The resource type. Should be always "Microsoft.Communication/CommunicationServices".
    Type *string `json:"type,omitempty"`
    // Name - The CommunicationService name to validate. e.g."my-CommunicationService-name-here"
    Name *string `json:"name,omitempty"`
}

NameAvailabilityParameters data POST-ed to the nameAvailability action

type Operation Uses

type Operation struct {
    // Name - Name of the operation with format: {provider}/{resource}/{operation}
    Name *string `json:"name,omitempty"`
    // Display - The object that describes the operation.
    Display *OperationDisplay `json:"display,omitempty"`
    // Origin - Optional. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX.
    Origin *string `json:"origin,omitempty"`
    // Properties - Extra properties for the operation.
    Properties *OperationProperties `json:"properties,omitempty"`
}

Operation REST API operation supported by CommunicationService resource provider.

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - Friendly name of the resource provider
    Provider *string `json:"provider,omitempty"`
    // Resource - Resource type on which the operation is performed.
    Resource *string `json:"resource,omitempty"`
    // Operation - The localized friendly name for the operation.
    Operation *string `json:"operation,omitempty"`
    // Description - The localized friendly description for the operation
    Description *string `json:"description,omitempty"`
}

OperationDisplay the object that describes a operation.

type OperationList Uses

type OperationList struct {
    autorest.Response `json:"-"`
    // Value - List of operations supported by the resource provider.
    Value *[]Operation `json:"value,omitempty"`
    // NextLink - The URL the client should use to fetch the next page (per server side paging).
    // It's null for now, added for future use.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationList result of the request to list REST API operations. It contains a list of operations.

func (OperationList) IsEmpty Uses

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListIterator Uses

type OperationListIterator struct {
    // contains filtered or unexported fields
}

OperationListIterator provides access to a complete listing of Operation values.

func NewOperationListIterator Uses

func NewOperationListIterator(page OperationListPage) OperationListIterator

Creates a new instance of the OperationListIterator type.

func (*OperationListIterator) Next Uses

func (iter *OperationListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListIterator) NextWithContext Uses

func (iter *OperationListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListIterator) NotDone Uses

func (iter OperationListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListIterator) Response Uses

func (iter OperationListIterator) Response() OperationList

Response returns the raw server response from the last page request.

func (OperationListIterator) Value Uses

func (iter OperationListIterator) Value() Operation

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListPage Uses

type OperationListPage struct {
    // contains filtered or unexported fields
}

OperationListPage contains a page of Operation values.

func NewOperationListPage Uses

func NewOperationListPage(cur OperationList, getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage

Creates a new instance of the OperationListPage type.

func (*OperationListPage) Next Uses

func (page *OperationListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListPage) NextWithContext Uses

func (page *OperationListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListPage) NotDone Uses

func (page OperationListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListPage) Response Uses

func (page OperationListPage) Response() OperationList

Response returns the raw server response from the last page request.

func (OperationListPage) Values Uses

func (page OperationListPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationProperties Uses

type OperationProperties struct {
    // ServiceSpecification - The service specifications.
    ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"`
}

OperationProperties extra Operation properties.

type OperationStatus Uses

type OperationStatus struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Fully qualified ID for the operation status.
    ID  *string `json:"id,omitempty"`
    // Status - READ-ONLY; Provisioning state of the resource. Possible values include: 'StatusSucceeded', 'StatusFailed', 'StatusCanceled', 'StatusCreating', 'StatusDeleting', 'StatusMoving'
    Status Status `json:"status,omitempty"`
    // StartTime - READ-ONLY; The start time of the operation
    StartTime *date.Time `json:"startTime,omitempty"`
    // EndTime - READ-ONLY; The end time of the operation
    EndTime *date.Time `json:"endTime,omitempty"`
    // PercentComplete - READ-ONLY; Percent of the operation that is complete
    PercentComplete *float64 `json:"percentComplete,omitempty"`
    // ErrorResponse - Operation Error message
    *ErrorResponse `json:"error,omitempty"`
}

OperationStatus the current status of an async operation

func (OperationStatus) MarshalJSON Uses

func (osVar OperationStatus) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationStatus.

func (*OperationStatus) UnmarshalJSON Uses

func (osVar *OperationStatus) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for OperationStatus struct.

type OperationStatusesClient Uses

type OperationStatusesClient struct {
    BaseClient
}

OperationStatusesClient is the REST API for Azure Communication Services

func NewOperationStatusesClient Uses

func NewOperationStatusesClient(subscriptionID string) OperationStatusesClient

NewOperationStatusesClient creates an instance of the OperationStatusesClient client.

func NewOperationStatusesClientWithBaseURI Uses

func NewOperationStatusesClientWithBaseURI(baseURI string, subscriptionID string) OperationStatusesClient

NewOperationStatusesClientWithBaseURI creates an instance of the OperationStatusesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationStatusesClient) Get Uses

func (client OperationStatusesClient) Get(ctx context.Context, location string, operationID string) (result OperationStatus, err error)

Get gets the current status of an async operation. Parameters: location - the Azure region operationID - the ID of an ongoing async operation

func (OperationStatusesClient) GetPreparer Uses

func (client OperationStatusesClient) GetPreparer(ctx context.Context, location string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OperationStatusesClient) GetResponder Uses

func (client OperationStatusesClient) GetResponder(resp *http.Response) (result OperationStatus, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (OperationStatusesClient) GetSender Uses

func (client OperationStatusesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the REST API for Azure Communication Services

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationListPage, err error)

List lists all of the available REST API operations of the Microsoft.Communication provider.

func (OperationsClient) ListComplete Uses

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer Uses

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender Uses

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ProvisioningState Uses

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
    // Canceled ...
    Canceled ProvisioningState = "Canceled"
    // Creating ...
    Creating ProvisioningState = "Creating"
    // Deleting ...
    Deleting ProvisioningState = "Deleting"
    // Failed ...
    Failed ProvisioningState = "Failed"
    // Moving ...
    Moving ProvisioningState = "Moving"
    // Running ...
    Running ProvisioningState = "Running"
    // Succeeded ...
    Succeeded ProvisioningState = "Succeeded"
    // Unknown ...
    Unknown ProvisioningState = "Unknown"
    // Updating ...
    Updating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues Uses

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type RegenerateKeyParameters Uses

type RegenerateKeyParameters struct {
    // KeyType - The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). Possible values include: 'Primary', 'Secondary'
    KeyType KeyType `json:"keyType,omitempty"`
}

RegenerateKeyParameters parameters describes the request to regenerate access keys

type Resource Uses

type Resource struct {
    // ID - READ-ONLY; Fully qualified resource ID for the resource.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the service - e.g. "Microsoft.Communication/CommunicationServices"
    Type *string `json:"type,omitempty"`
}

Resource the core properties of ARM resources.

type ServiceClient Uses

type ServiceClient struct {
    BaseClient
}

ServiceClient is the REST API for Azure Communication Services

func NewServiceClient Uses

func NewServiceClient(subscriptionID string) ServiceClient

NewServiceClient creates an instance of the ServiceClient client.

func NewServiceClientWithBaseURI Uses

func NewServiceClientWithBaseURI(baseURI string, subscriptionID string) ServiceClient

NewServiceClientWithBaseURI creates an instance of the ServiceClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ServiceClient) CheckNameAvailability Uses

func (client ServiceClient) CheckNameAvailability(ctx context.Context, nameAvailabilityParameters *NameAvailabilityParameters) (result NameAvailability, err error)

CheckNameAvailability checks that the CommunicationService name is valid and is not already in use. Parameters: nameAvailabilityParameters - parameters supplied to the operation.

func (ServiceClient) CheckNameAvailabilityPreparer Uses

func (client ServiceClient) CheckNameAvailabilityPreparer(ctx context.Context, nameAvailabilityParameters *NameAvailabilityParameters) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (ServiceClient) CheckNameAvailabilityResponder Uses

func (client ServiceClient) CheckNameAvailabilityResponder(resp *http.Response) (result NameAvailability, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (ServiceClient) CheckNameAvailabilitySender Uses

func (client ServiceClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) CreateOrUpdate Uses

func (client ServiceClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, communicationServiceName string, parameters *ServiceResource) (result ServiceCreateOrUpdateFuture, err error)

CreateOrUpdate create a new CommunicationService or update an existing CommunicationService. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. communicationServiceName - the name of the CommunicationService resource. parameters - parameters for the create or update operation

func (ServiceClient) CreateOrUpdatePreparer Uses

func (client ServiceClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, communicationServiceName string, parameters *ServiceResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServiceClient) CreateOrUpdateResponder Uses

func (client ServiceClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServiceClient) CreateOrUpdateSender Uses

func (client ServiceClient) CreateOrUpdateSender(req *http.Request) (future ServiceCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) Delete Uses

func (client ServiceClient) Delete(ctx context.Context, resourceGroupName string, communicationServiceName string) (result ServiceDeleteFuture, err error)

Delete operation to delete a CommunicationService. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. communicationServiceName - the name of the CommunicationService resource.

func (ServiceClient) DeletePreparer Uses

func (client ServiceClient) DeletePreparer(ctx context.Context, resourceGroupName string, communicationServiceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServiceClient) DeleteResponder Uses

func (client ServiceClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServiceClient) DeleteSender Uses

func (client ServiceClient) DeleteSender(req *http.Request) (future ServiceDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) Get Uses

func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, communicationServiceName string) (result ServiceResource, err error)

Get get the CommunicationService and its properties. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. communicationServiceName - the name of the CommunicationService resource.

func (ServiceClient) GetPreparer Uses

func (client ServiceClient) GetPreparer(ctx context.Context, resourceGroupName string, communicationServiceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServiceClient) GetResponder Uses

func (client ServiceClient) GetResponder(resp *http.Response) (result ServiceResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServiceClient) GetSender Uses

func (client ServiceClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) LinkNotificationHub Uses

func (client ServiceClient) LinkNotificationHub(ctx context.Context, resourceGroupName string, communicationServiceName string, linkNotificationHubParameters *LinkNotificationHubParameters) (result LinkedNotificationHub, err error)

LinkNotificationHub links an Azure Notification Hub to this communication service. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. communicationServiceName - the name of the CommunicationService resource. linkNotificationHubParameters - parameters supplied to the operation.

func (ServiceClient) LinkNotificationHubPreparer Uses

func (client ServiceClient) LinkNotificationHubPreparer(ctx context.Context, resourceGroupName string, communicationServiceName string, linkNotificationHubParameters *LinkNotificationHubParameters) (*http.Request, error)

LinkNotificationHubPreparer prepares the LinkNotificationHub request.

func (ServiceClient) LinkNotificationHubResponder Uses

func (client ServiceClient) LinkNotificationHubResponder(resp *http.Response) (result LinkedNotificationHub, err error)

LinkNotificationHubResponder handles the response to the LinkNotificationHub request. The method always closes the http.Response Body.

func (ServiceClient) LinkNotificationHubSender Uses

func (client ServiceClient) LinkNotificationHubSender(req *http.Request) (*http.Response, error)

LinkNotificationHubSender sends the LinkNotificationHub request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) ListByResourceGroup Uses

func (client ServiceClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServiceResourceListPage, err error)

ListByResourceGroup handles requests to list all resources in a resource group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

func (ServiceClient) ListByResourceGroupComplete Uses

func (client ServiceClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServiceResourceListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (ServiceClient) ListByResourceGroupPreparer Uses

func (client ServiceClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ServiceClient) ListByResourceGroupResponder Uses

func (client ServiceClient) ListByResourceGroupResponder(resp *http.Response) (result ServiceResourceList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ServiceClient) ListByResourceGroupSender Uses

func (client ServiceClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) ListBySubscription Uses

func (client ServiceClient) ListBySubscription(ctx context.Context) (result ServiceResourceListPage, err error)

ListBySubscription handles requests to list all resources in a subscription.

func (ServiceClient) ListBySubscriptionComplete Uses

func (client ServiceClient) ListBySubscriptionComplete(ctx context.Context) (result ServiceResourceListIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (ServiceClient) ListBySubscriptionPreparer Uses

func (client ServiceClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (ServiceClient) ListBySubscriptionResponder Uses

func (client ServiceClient) ListBySubscriptionResponder(resp *http.Response) (result ServiceResourceList, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (ServiceClient) ListBySubscriptionSender Uses

func (client ServiceClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) ListKeys Uses

func (client ServiceClient) ListKeys(ctx context.Context, resourceGroupName string, communicationServiceName string) (result ServiceKeys, err error)

ListKeys get the access keys of the CommunicationService resource. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. communicationServiceName - the name of the CommunicationService resource.

func (ServiceClient) ListKeysPreparer Uses

func (client ServiceClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, communicationServiceName string) (*http.Request, error)

ListKeysPreparer prepares the ListKeys request.

func (ServiceClient) ListKeysResponder Uses

func (client ServiceClient) ListKeysResponder(resp *http.Response) (result ServiceKeys, err error)

ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.

func (ServiceClient) ListKeysSender Uses

func (client ServiceClient) ListKeysSender(req *http.Request) (*http.Response, error)

ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) RegenerateKey Uses

func (client ServiceClient) RegenerateKey(ctx context.Context, resourceGroupName string, communicationServiceName string, parameters *RegenerateKeyParameters) (result ServiceKeys, err error)

RegenerateKey regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. communicationServiceName - the name of the CommunicationService resource. parameters - parameter that describes the Regenerate Key Operation.

func (ServiceClient) RegenerateKeyPreparer Uses

func (client ServiceClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, communicationServiceName string, parameters *RegenerateKeyParameters) (*http.Request, error)

RegenerateKeyPreparer prepares the RegenerateKey request.

func (ServiceClient) RegenerateKeyResponder Uses

func (client ServiceClient) RegenerateKeyResponder(resp *http.Response) (result ServiceKeys, err error)

RegenerateKeyResponder handles the response to the RegenerateKey request. The method always closes the http.Response Body.

func (ServiceClient) RegenerateKeySender Uses

func (client ServiceClient) RegenerateKeySender(req *http.Request) (*http.Response, error)

RegenerateKeySender sends the RegenerateKey request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) Update Uses

func (client ServiceClient) Update(ctx context.Context, resourceGroupName string, communicationServiceName string, parameters *TaggedResource) (result ServiceResource, err error)

Update operation to update an existing CommunicationService. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. communicationServiceName - the name of the CommunicationService resource. parameters - parameters for the update operation

func (ServiceClient) UpdatePreparer Uses

func (client ServiceClient) UpdatePreparer(ctx context.Context, resourceGroupName string, communicationServiceName string, parameters *TaggedResource) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ServiceClient) UpdateResponder Uses

func (client ServiceClient) UpdateResponder(resp *http.Response) (result ServiceResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ServiceClient) UpdateSender Uses

func (client ServiceClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ServiceCreateOrUpdateFuture Uses

type ServiceCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServiceClient) (ServiceResource, error)
}

ServiceCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ServiceDeleteFuture Uses

type ServiceDeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ServiceClient) (autorest.Response, error)
}

ServiceDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ServiceKeys Uses

type ServiceKeys struct {
    autorest.Response `json:"-"`
    // PrimaryKey - The primary access key.
    PrimaryKey *string `json:"primaryKey,omitempty"`
    // SecondaryKey - The secondary access key.
    SecondaryKey *string `json:"secondaryKey,omitempty"`
    // PrimaryConnectionString - CommunicationService connection string constructed via the primaryKey
    PrimaryConnectionString *string `json:"primaryConnectionString,omitempty"`
    // SecondaryConnectionString - CommunicationService connection string constructed via the secondaryKey
    SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"`
}

ServiceKeys a class representing the access keys of a CommunicationService.

type ServiceProperties Uses

type ServiceProperties struct {
    // ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // HostName - READ-ONLY; FQDN of the CommunicationService instance.
    HostName *string `json:"hostName,omitempty"`
    // DataLocation - The location where the communication service stores its data at rest.
    DataLocation *string `json:"dataLocation,omitempty"`
    // NotificationHubID - READ-ONLY; Resource ID of an Azure Notification Hub linked to this resource.
    NotificationHubID *string `json:"notificationHubId,omitempty"`
    // Version - READ-ONLY; Version of the CommunicationService resource. Probably you need the same or higher version of client SDKs.
    Version *string `json:"version,omitempty"`
    // ImmutableResourceID - READ-ONLY; The immutable resource Id of the communication service.
    ImmutableResourceID *string `json:"immutableResourceId,omitempty"`
}

ServiceProperties a class that describes the properties of the CommunicationService.

func (ServiceProperties) MarshalJSON Uses

func (sp ServiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceProperties.

type ServiceResource Uses

type ServiceResource struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the service - e.g. "Microsoft.Communication/CommunicationServices"
    Type *string `json:"type,omitempty"`
    // Location - The Azure location where the CommunicationService is running.
    Location *string `json:"location,omitempty"`
    // Tags - Tags of the service which is a list of key value pairs that describe the resource.
    Tags map[string]*string `json:"tags"`
    // ServiceProperties - The properties of the service.
    *ServiceProperties `json:"properties,omitempty"`
}

ServiceResource a class representing a CommunicationService resource.

func (ServiceResource) MarshalJSON Uses

func (sr ServiceResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceResource.

func (*ServiceResource) UnmarshalJSON Uses

func (sr *ServiceResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceResource struct.

type ServiceResourceList Uses

type ServiceResourceList struct {
    autorest.Response `json:"-"`
    // Value - List of CommunicationService
    Value *[]ServiceResource `json:"value,omitempty"`
    // NextLink - The URL the client should use to fetch the next page (per server side paging).
    // It's null for now, added for future use.
    NextLink *string `json:"nextLink,omitempty"`
}

ServiceResourceList object that includes an array of CommunicationServices and a possible link for next set.

func (ServiceResourceList) IsEmpty Uses

func (srl ServiceResourceList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServiceResourceListIterator Uses

type ServiceResourceListIterator struct {
    // contains filtered or unexported fields
}

ServiceResourceListIterator provides access to a complete listing of ServiceResource values.

func NewServiceResourceListIterator Uses

func NewServiceResourceListIterator(page ServiceResourceListPage) ServiceResourceListIterator

Creates a new instance of the ServiceResourceListIterator type.

func (*ServiceResourceListIterator) Next Uses

func (iter *ServiceResourceListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ServiceResourceListIterator) NextWithContext Uses

func (iter *ServiceResourceListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ServiceResourceListIterator) NotDone Uses

func (iter ServiceResourceListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ServiceResourceListIterator) Response Uses

func (iter ServiceResourceListIterator) Response() ServiceResourceList

Response returns the raw server response from the last page request.

func (ServiceResourceListIterator) Value Uses

func (iter ServiceResourceListIterator) Value() ServiceResource

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ServiceResourceListPage Uses

type ServiceResourceListPage struct {
    // contains filtered or unexported fields
}

ServiceResourceListPage contains a page of ServiceResource values.

func NewServiceResourceListPage Uses

func NewServiceResourceListPage(cur ServiceResourceList, getNextPage func(context.Context, ServiceResourceList) (ServiceResourceList, error)) ServiceResourceListPage

Creates a new instance of the ServiceResourceListPage type.

func (*ServiceResourceListPage) Next Uses

func (page *ServiceResourceListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ServiceResourceListPage) NextWithContext Uses

func (page *ServiceResourceListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ServiceResourceListPage) NotDone Uses

func (page ServiceResourceListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ServiceResourceListPage) Response Uses

func (page ServiceResourceListPage) Response() ServiceResourceList

Response returns the raw server response from the last page request.

func (ServiceResourceListPage) Values Uses

func (page ServiceResourceListPage) Values() []ServiceResource

Values returns the slice of values for the current page or nil if there are no values.

type ServiceSpecification Uses

type ServiceSpecification struct {
    // MetricSpecifications - Specifications of the Metrics for Azure Monitoring.
    MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"`
}

ServiceSpecification an object that describes a specification.

type Status Uses

type Status string

Status enumerates the values for status.

const (
    // StatusCanceled ...
    StatusCanceled Status = "Canceled"
    // StatusCreating ...
    StatusCreating Status = "Creating"
    // StatusDeleting ...
    StatusDeleting Status = "Deleting"
    // StatusFailed ...
    StatusFailed Status = "Failed"
    // StatusMoving ...
    StatusMoving Status = "Moving"
    // StatusSucceeded ...
    StatusSucceeded Status = "Succeeded"
)

func PossibleStatusValues Uses

func PossibleStatusValues() []Status

PossibleStatusValues returns an array of possible values for the Status const type.

type TaggedResource Uses

type TaggedResource struct {
    // Tags - Tags of the service which is a list of key value pairs that describe the resource.
    Tags map[string]*string `json:"tags"`
}

TaggedResource an ARM resource with that can accept tags

func (TaggedResource) MarshalJSON Uses

func (tr TaggedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaggedResource.

Directories

PathSynopsis
communicationapi

Package communication imports 10 packages (graph) and is imported by 1 packages. Updated 2021-01-16. Refresh now. Tools for package owners.