resource

package
v0.20240119.1094410 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-09-06/resource Documentation

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

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/2023-09-06/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"
)

func (*Kind) UnmarshalJSON

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

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

func (*PrivateEndpointConnectionProvisioningState) UnmarshalJSON

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

type PrivateEndpointServiceConnectionStatus

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

func (*PrivateEndpointServiceConnectionStatus) UnmarshalJSON

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

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"
	ProvisioningStateMoving            ProvisioningState = "Moving"
	ProvisioningStateSucceeded         ProvisioningState = "Succeeded"
	ProvisioningStateSuspended         ProvisioningState = "Suspended"
	ProvisioningStateSystemMaintenance ProvisioningState = "SystemMaintenance"
	ProvisioningStateUpdating          ProvisioningState = "Updating"
	ProvisioningStateVerifying         ProvisioningState = "Verifying"
	ProvisioningStateWarned            ProvisioningState = "Warned"
)

func (*ProvisioningState) UnmarshalJSON

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

type PublicNetworkAccess

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

func (*PublicNetworkAccess) UnmarshalJSON

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

type ResourceClient

type ResourceClient struct {
	Client *resourcemanager.Client
}

func NewResourceClientWithBaseURI

func NewResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourceClient, error)

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"`
	OciArtifacts *[]ServiceOciArtifactEntry `json:"ociArtifacts,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 {
	CrossTenantCmkApplicationId *string `json:"crossTenantCmkApplicationId,omitempty"`
	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) FromParseResult added in v0.20231127.1171502

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

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 ServiceImportConfigurationInfo

type ServiceImportConfigurationInfo struct {
	Enabled              *bool   `json:"enabled,omitempty"`
	InitialImportMode    *bool   `json:"initialImportMode,omitempty"`
	IntegrationDataStore *string `json:"integrationDataStore,omitempty"`
}

type ServiceOciArtifactEntry

type ServiceOciArtifactEntry struct {
	Digest      *string `json:"digest,omitempty"`
	ImageName   *string `json:"imageName,omitempty"`
	LoginServer *string `json:"loginServer,omitempty"`
}

type ServicesCreateOrUpdateOperationResponse

type ServicesCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type ServicesDeleteOperationResponse

type ServicesDeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

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
	OData        *odata.OData
	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"`
	ImportConfiguration         *ServiceImportConfigurationInfo         `json:"importConfiguration,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       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

Jump to

Keyboard shortcuts

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