communicationservice

package
v0.20230323.1182043 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/communication/2020-08-20/communicationservice Documentation

The communicationservice SDK allows for interaction with the Azure Resource Manager Service communication (API Version 2020-08-20).

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/communication/2020-08-20/communicationservice"

Client Initialization

client := communicationservice.NewCommunicationServiceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CommunicationServiceClient.CheckNameAvailability

ctx := context.TODO()
id := communicationservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

payload := communicationservice.NameAvailabilityParameters{
	// ...
}


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

Example Usage: CommunicationServiceClient.CreateOrUpdate

ctx := context.TODO()
id := communicationservice.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue")

payload := communicationservice.CommunicationServiceResource{
	// ...
}


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

Example Usage: CommunicationServiceClient.Delete

ctx := context.TODO()
id := communicationservice.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue")

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

Example Usage: CommunicationServiceClient.Get

ctx := context.TODO()
id := communicationservice.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue")

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: CommunicationServiceClient.LinkNotificationHub

ctx := context.TODO()
id := communicationservice.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue")

payload := communicationservice.LinkNotificationHubParameters{
	// ...
}


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

Example Usage: CommunicationServiceClient.ListByResourceGroup

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

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

Example Usage: CommunicationServiceClient.ListBySubscription

ctx := context.TODO()
id := communicationservice.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: CommunicationServiceClient.ListKeys

ctx := context.TODO()
id := communicationservice.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue")

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

Example Usage: CommunicationServiceClient.RegenerateKey

ctx := context.TODO()
id := communicationservice.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue")

payload := communicationservice.RegenerateKeyParameters{
	// ...
}


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

Example Usage: CommunicationServiceClient.Update

ctx := context.TODO()
id := communicationservice.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue")

payload := communicationservice.CommunicationServiceResource{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForKeyType

func PossibleValuesForKeyType() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateCommunicationServiceID

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

ValidateCommunicationServiceID checks that 'input' can be parsed as a Communication Service ID

Types

type CheckNameAvailabilityOperationResponse

type CheckNameAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	Model        *NameAvailability
}

type CommunicationServiceClient

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

func NewCommunicationServiceClientWithBaseURI

func NewCommunicationServiceClientWithBaseURI(endpoint string) CommunicationServiceClient

func (CommunicationServiceClient) CheckNameAvailability

CheckNameAvailability ...

func (CommunicationServiceClient) CreateOrUpdate

CreateOrUpdate ...

func (CommunicationServiceClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (CommunicationServiceClient) Delete

Delete ...

func (CommunicationServiceClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (CommunicationServiceClient) Get

Get ...

func (CommunicationServiceClient) LinkNotificationHub

LinkNotificationHub ...

func (CommunicationServiceClient) ListByResourceGroup

ListByResourceGroup ...

func (CommunicationServiceClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all of the results into a single object

func (CommunicationServiceClient) ListByResourceGroupCompleteMatchingPredicate

ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (CommunicationServiceClient) ListBySubscription

ListBySubscription ...

func (CommunicationServiceClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all of the results into a single object

func (CommunicationServiceClient) ListBySubscriptionCompleteMatchingPredicate

ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (CommunicationServiceClient) ListKeys

ListKeys ...

func (CommunicationServiceClient) RegenerateKey

RegenerateKey ...

func (CommunicationServiceClient) Update

Update ...

type CommunicationServiceId

type CommunicationServiceId struct {
	SubscriptionId           string
	ResourceGroupName        string
	CommunicationServiceName string
}

CommunicationServiceId is a struct representing the Resource ID for a Communication Service

func NewCommunicationServiceID

func NewCommunicationServiceID(subscriptionId string, resourceGroupName string, communicationServiceName string) CommunicationServiceId

NewCommunicationServiceID returns a new CommunicationServiceId struct

func ParseCommunicationServiceID

func ParseCommunicationServiceID(input string) (*CommunicationServiceId, error)

ParseCommunicationServiceID parses 'input' into a CommunicationServiceId

func ParseCommunicationServiceIDInsensitively

func ParseCommunicationServiceIDInsensitively(input string) (*CommunicationServiceId, error)

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

func (CommunicationServiceId) ID

ID returns the formatted Communication Service ID

func (CommunicationServiceId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Communication Service ID

func (CommunicationServiceId) String

func (id CommunicationServiceId) String() string

String returns a human-readable description of this Communication Service ID

type CommunicationServiceKeys

type CommunicationServiceKeys struct {
	PrimaryConnectionString   *string `json:"primaryConnectionString,omitempty"`
	PrimaryKey                *string `json:"primaryKey,omitempty"`
	SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"`
	SecondaryKey              *string `json:"secondaryKey,omitempty"`
}

type CommunicationServiceProperties

type CommunicationServiceProperties struct {
	DataLocation        string             `json:"dataLocation"`
	HostName            *string            `json:"hostName,omitempty"`
	ImmutableResourceId *string            `json:"immutableResourceId,omitempty"`
	NotificationHubId   *string            `json:"notificationHubId,omitempty"`
	ProvisioningState   *ProvisioningState `json:"provisioningState,omitempty"`
	Version             *string            `json:"version,omitempty"`
}

type CommunicationServiceResource

type CommunicationServiceResource struct {
	Id         *string                         `json:"id,omitempty"`
	Location   *string                         `json:"location,omitempty"`
	Name       *string                         `json:"name,omitempty"`
	Properties *CommunicationServiceProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData          `json:"systemData,omitempty"`
	Tags       *map[string]string              `json:"tags,omitempty"`
	Type       *string                         `json:"type,omitempty"`
}

type CommunicationServiceResourceOperationPredicate

type CommunicationServiceResourceOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (CommunicationServiceResourceOperationPredicate) Matches

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

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

type KeyType

type KeyType string
const (
	KeyTypePrimary   KeyType = "Primary"
	KeyTypeSecondary KeyType = "Secondary"
)

type LinkNotificationHubOperationResponse

type LinkNotificationHubOperationResponse struct {
	HttpResponse *http.Response
	Model        *LinkedNotificationHub
}

type LinkNotificationHubParameters

type LinkNotificationHubParameters struct {
	ConnectionString string `json:"connectionString"`
	ResourceId       string `json:"resourceId"`
}

type LinkedNotificationHub

type LinkedNotificationHub struct {
	ResourceId *string `json:"resourceId,omitempty"`
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []CommunicationServiceResource
}

type ListByResourceGroupOperationResponse

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

func (ListByResourceGroupOperationResponse) HasMore

func (ListByResourceGroupOperationResponse) LoadMore

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	Items []CommunicationServiceResource
}

type ListBySubscriptionOperationResponse

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

func (ListBySubscriptionOperationResponse) HasMore

func (ListBySubscriptionOperationResponse) LoadMore

type ListKeysOperationResponse

type ListKeysOperationResponse struct {
	HttpResponse *http.Response
	Model        *CommunicationServiceKeys
}

type NameAvailability

type NameAvailability struct {
	Message       *string `json:"message,omitempty"`
	NameAvailable *bool   `json:"nameAvailable,omitempty"`
	Reason        *string `json:"reason,omitempty"`
}

type NameAvailabilityParameters

type NameAvailabilityParameters struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled  ProvisioningState = "Canceled"
	ProvisioningStateCreating  ProvisioningState = "Creating"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateMoving    ProvisioningState = "Moving"
	ProvisioningStateRunning   ProvisioningState = "Running"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	ProvisioningStateUnknown   ProvisioningState = "Unknown"
	ProvisioningStateUpdating  ProvisioningState = "Updating"
)

type RegenerateKeyOperationResponse

type RegenerateKeyOperationResponse struct {
	HttpResponse *http.Response
	Model        *CommunicationServiceKeys
}

type RegenerateKeyParameters

type RegenerateKeyParameters struct {
	KeyType *KeyType `json:"keyType,omitempty"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *CommunicationServiceResource
}

Jump to

Keyboard shortcuts

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