resource

package
v0.20230204.1200350 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2021-06-01-preview/resource Documentation

The resource SDK allows for interaction with the Azure Resource Manager Service healthcareapis (API Version 2021-06-01-preview).

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/healthcareapis/2021-06-01-preview/resource"

Client Initialization

client := resource.NewResourceClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ResourceClient.ServicesCreateOrUpdate

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

payload := resource.ServicesDescription{
	// ...
}


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

Example Usage: ResourceClient.ServicesDelete

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

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

Example Usage: ResourceClient.ServicesGet

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

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

Example Usage: ResourceClient.ServicesUpdate

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

payload := resource.ServicesPatchDescription{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForKind

func PossibleValuesForKind() []string

func PossibleValuesForPrivateEndpointConnectionProvisioningState

func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string

func PossibleValuesForPrivateEndpointServiceConnectionStatus

func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForPublicNetworkAccess

func PossibleValuesForPublicNetworkAccess() []string

func ValidateServiceID

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

ValidateServiceID checks that 'input' can be parsed as a Service ID

Types

type Kind

type Kind string
const (
	KindFhir                 Kind = "fhir"
	KindFhirNegativeRFour    Kind = "fhir-R4"
	KindFhirNegativeStuThree Kind = "fhir-Stu3"
)

type PrivateEndpoint

type PrivateEndpoint struct {
	Id *string `json:"id,omitempty"`
}

type PrivateEndpointConnection

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

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	PrivateEndpoint                   *PrivateEndpoint                            `json:"privateEndpoint,omitempty"`
	PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState           `json:"privateLinkServiceConnectionState"`
	ProvisioningState                 *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}

type PrivateEndpointConnectionProvisioningState

type PrivateEndpointConnectionProvisioningState string
const (
	PrivateEndpointConnectionProvisioningStateCreating  PrivateEndpointConnectionProvisioningState = "Creating"
	PrivateEndpointConnectionProvisioningStateDeleting  PrivateEndpointConnectionProvisioningState = "Deleting"
	PrivateEndpointConnectionProvisioningStateFailed    PrivateEndpointConnectionProvisioningState = "Failed"
	PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
)

type PrivateEndpointServiceConnectionStatus

type PrivateEndpointServiceConnectionStatus string
const (
	PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved"
	PrivateEndpointServiceConnectionStatusPending  PrivateEndpointServiceConnectionStatus = "Pending"
	PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected"
)

type PrivateLinkServiceConnectionState

type PrivateLinkServiceConnectionState struct {
	ActionsRequired *string                                 `json:"actionsRequired,omitempty"`
	Description     *string                                 `json:"description,omitempty"`
	Status          *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted      ProvisioningState = "Accepted"
	ProvisioningStateCanceled      ProvisioningState = "Canceled"
	ProvisioningStateCreating      ProvisioningState = "Creating"
	ProvisioningStateDeleting      ProvisioningState = "Deleting"
	ProvisioningStateDeprovisioned ProvisioningState = "Deprovisioned"
	ProvisioningStateFailed        ProvisioningState = "Failed"
	ProvisioningStateSucceeded     ProvisioningState = "Succeeded"
	ProvisioningStateUpdating      ProvisioningState = "Updating"
	ProvisioningStateVerifying     ProvisioningState = "Verifying"
)

type PublicNetworkAccess

type PublicNetworkAccess string
const (
	PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
	PublicNetworkAccessEnabled  PublicNetworkAccess = "Enabled"
)

type ResourceClient

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

func NewResourceClientWithBaseURI

func NewResourceClientWithBaseURI(endpoint string) ResourceClient

func (ResourceClient) ServicesCreateOrUpdate

func (c ResourceClient) ServicesCreateOrUpdate(ctx context.Context, id ServiceId, input ServicesDescription) (result ServicesCreateOrUpdateOperationResponse, err error)

ServicesCreateOrUpdate ...

func (ResourceClient) ServicesCreateOrUpdateThenPoll

func (c ResourceClient) ServicesCreateOrUpdateThenPoll(ctx context.Context, id ServiceId, input ServicesDescription) error

ServicesCreateOrUpdateThenPoll performs ServicesCreateOrUpdate then polls until it's completed

func (ResourceClient) ServicesDelete

func (c ResourceClient) ServicesDelete(ctx context.Context, id ServiceId) (result ServicesDeleteOperationResponse, err error)

ServicesDelete ...

func (ResourceClient) ServicesDeleteThenPoll

func (c ResourceClient) ServicesDeleteThenPoll(ctx context.Context, id ServiceId) error

ServicesDeleteThenPoll performs ServicesDelete then polls until it's completed

func (ResourceClient) ServicesGet

func (c ResourceClient) ServicesGet(ctx context.Context, id ServiceId) (result ServicesGetOperationResponse, err error)

ServicesGet ...

func (ResourceClient) ServicesUpdate

ServicesUpdate ...

func (ResourceClient) ServicesUpdateThenPoll

func (c ResourceClient) ServicesUpdateThenPoll(ctx context.Context, id ServiceId, input ServicesPatchDescription) error

ServicesUpdateThenPoll performs ServicesUpdate then polls until it's completed

type ServiceAccessPolicyEntry

type ServiceAccessPolicyEntry struct {
	ObjectId string `json:"objectId"`
}

type ServiceAcrConfigurationInfo

type ServiceAcrConfigurationInfo struct {
	LoginServers *[]string `json:"loginServers,omitempty"`
}

type ServiceAuthenticationConfigurationInfo

type ServiceAuthenticationConfigurationInfo struct {
	Audience          *string `json:"audience,omitempty"`
	Authority         *string `json:"authority,omitempty"`
	SmartProxyEnabled *bool   `json:"smartProxyEnabled,omitempty"`
}

type ServiceCorsConfigurationInfo

type ServiceCorsConfigurationInfo struct {
	AllowCredentials *bool     `json:"allowCredentials,omitempty"`
	Headers          *[]string `json:"headers,omitempty"`
	MaxAge           *int64    `json:"maxAge,omitempty"`
	Methods          *[]string `json:"methods,omitempty"`
	Origins          *[]string `json:"origins,omitempty"`
}

type ServiceCosmosDbConfigurationInfo

type ServiceCosmosDbConfigurationInfo struct {
	KeyVaultKeyUri  *string `json:"keyVaultKeyUri,omitempty"`
	OfferThroughput *int64  `json:"offerThroughput,omitempty"`
}

type ServiceExportConfigurationInfo

type ServiceExportConfigurationInfo struct {
	StorageAccountName *string `json:"storageAccountName,omitempty"`
}

type ServiceId

type ServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
}

ServiceId is a struct representing the Resource ID for a Service

func NewServiceID

func NewServiceID(subscriptionId string, resourceGroupName string, serviceName string) ServiceId

NewServiceID returns a new ServiceId struct

func ParseServiceID

func ParseServiceID(input string) (*ServiceId, error)

ParseServiceID parses 'input' into a ServiceId

func ParseServiceIDInsensitively

func ParseServiceIDInsensitively(input string) (*ServiceId, error)

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

func (ServiceId) ID

func (id ServiceId) ID() string

ID returns the formatted Service ID

func (ServiceId) Segments

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

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

func (ServiceId) String

func (id ServiceId) String() string

String returns a human-readable description of this Service ID

type ServicesCreateOrUpdateOperationResponse

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

type ServicesDeleteOperationResponse

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

type ServicesDescription

type ServicesDescription struct {
	Etag       *string                  `json:"etag,omitempty"`
	Id         *string                  `json:"id,omitempty"`
	Identity   *identity.SystemAssigned `json:"identity,omitempty"`
	Kind       Kind                     `json:"kind"`
	Location   string                   `json:"location"`
	Name       *string                  `json:"name,omitempty"`
	Properties *ServicesProperties      `json:"properties,omitempty"`
	SystemData *systemdata.SystemData   `json:"systemData,omitempty"`
	Tags       *map[string]string       `json:"tags,omitempty"`
	Type       *string                  `json:"type,omitempty"`
}

type ServicesGetOperationResponse

type ServicesGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *ServicesDescription
}

type ServicesPatchDescription

type ServicesPatchDescription struct {
	Properties *ServicesPropertiesUpdateParameters `json:"properties,omitempty"`
	Tags       *map[string]string                  `json:"tags,omitempty"`
}

type ServicesProperties

type ServicesProperties struct {
	AccessPolicies              *[]ServiceAccessPolicyEntry             `json:"accessPolicies,omitempty"`
	AcrConfiguration            *ServiceAcrConfigurationInfo            `json:"acrConfiguration,omitempty"`
	AuthenticationConfiguration *ServiceAuthenticationConfigurationInfo `json:"authenticationConfiguration,omitempty"`
	CorsConfiguration           *ServiceCorsConfigurationInfo           `json:"corsConfiguration,omitempty"`
	CosmosDbConfiguration       *ServiceCosmosDbConfigurationInfo       `json:"cosmosDbConfiguration,omitempty"`
	ExportConfiguration         *ServiceExportConfigurationInfo         `json:"exportConfiguration,omitempty"`
	PrivateEndpointConnections  *[]PrivateEndpointConnection            `json:"privateEndpointConnections,omitempty"`
	ProvisioningState           *ProvisioningState                      `json:"provisioningState,omitempty"`
	PublicNetworkAccess         *PublicNetworkAccess                    `json:"publicNetworkAccess,omitempty"`
}

type ServicesPropertiesUpdateParameters

type ServicesPropertiesUpdateParameters struct {
	PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
}

type ServicesUpdateOperationResponse

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

Jump to

Keyboard shortcuts

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