dicomservices

package
v0.20230711.1145438 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-06-01/dicomservices Documentation

The dicomservices SDK allows for interaction with the Azure Resource Manager Service healthcareapis (API Version 2022-06-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/healthcareapis/2022-06-01/dicomservices"

Client Initialization

client := dicomservices.NewDicomServicesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DicomServicesClient.CreateOrUpdate

ctx := context.TODO()
id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dicomServiceValue")

payload := dicomservices.DicomService{
	// ...
}


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

Example Usage: DicomServicesClient.Delete

ctx := context.TODO()
id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dicomServiceValue")

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

Example Usage: DicomServicesClient.Get

ctx := context.TODO()
id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dicomServiceValue")

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: DicomServicesClient.ListByWorkspace

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

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

Example Usage: DicomServicesClient.Update

ctx := context.TODO()
id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dicomServiceValue")

payload := dicomservices.DicomServicePatchResource{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForPrivateEndpointConnectionProvisioningState

func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string

func PossibleValuesForPrivateEndpointServiceConnectionStatus

func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForPublicNetworkAccess

func PossibleValuesForPublicNetworkAccess() []string

func ValidateDicomServiceID

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

ValidateDicomServiceID checks that 'input' can be parsed as a Dicom Service ID

func ValidateWorkspaceID

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

ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID

Types

type CorsConfiguration

type CorsConfiguration 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 CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type DicomService

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

type DicomServiceAuthenticationConfiguration

type DicomServiceAuthenticationConfiguration struct {
	Audiences *[]string `json:"audiences,omitempty"`
	Authority *string   `json:"authority,omitempty"`
}

type DicomServiceId

type DicomServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	DicomServiceName  string
}

DicomServiceId is a struct representing the Resource ID for a Dicom Service

func NewDicomServiceID

func NewDicomServiceID(subscriptionId string, resourceGroupName string, workspaceName string, dicomServiceName string) DicomServiceId

NewDicomServiceID returns a new DicomServiceId struct

func ParseDicomServiceID

func ParseDicomServiceID(input string) (*DicomServiceId, error)

ParseDicomServiceID parses 'input' into a DicomServiceId

func ParseDicomServiceIDInsensitively

func ParseDicomServiceIDInsensitively(input string) (*DicomServiceId, error)

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

func (DicomServiceId) ID

func (id DicomServiceId) ID() string

ID returns the formatted Dicom Service ID

func (DicomServiceId) Segments

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

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

func (DicomServiceId) String

func (id DicomServiceId) String() string

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

type DicomServiceOperationPredicate

type DicomServiceOperationPredicate struct {
	Etag     *string
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (DicomServiceOperationPredicate) Matches

type DicomServicePatchResource

type DicomServicePatchResource struct {
	Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"`
	Tags     *map[string]string                       `json:"tags,omitempty"`
}

type DicomServiceProperties

type DicomServiceProperties struct {
	AuthenticationConfiguration *DicomServiceAuthenticationConfiguration `json:"authenticationConfiguration,omitempty"`
	CorsConfiguration           *CorsConfiguration                       `json:"corsConfiguration,omitempty"`
	PrivateEndpointConnections  *[]PrivateEndpointConnection             `json:"privateEndpointConnections,omitempty"`
	ProvisioningState           *ProvisioningState                       `json:"provisioningState,omitempty"`
	PublicNetworkAccess         *PublicNetworkAccess                     `json:"publicNetworkAccess,omitempty"`
	ServiceUrl                  *string                                  `json:"serviceUrl,omitempty"`
}

type DicomServicesClient

type DicomServicesClient struct {
	Client *resourcemanager.Client
}

func NewDicomServicesClientWithBaseURI

func NewDicomServicesClientWithBaseURI(api environments.Api) (*DicomServicesClient, error)

func (DicomServicesClient) CreateOrUpdate

CreateOrUpdate ...

func (DicomServicesClient) CreateOrUpdateThenPoll

func (c DicomServicesClient) CreateOrUpdateThenPoll(ctx context.Context, id DicomServiceId, input DicomService) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (DicomServicesClient) Delete

Delete ...

func (DicomServicesClient) DeleteThenPoll

func (c DicomServicesClient) DeleteThenPoll(ctx context.Context, id DicomServiceId) error

DeleteThenPoll performs Delete then polls until it's completed

func (DicomServicesClient) Get

Get ...

func (DicomServicesClient) ListByWorkspace

func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error)

ListByWorkspace ...

func (DicomServicesClient) ListByWorkspaceComplete

func (c DicomServicesClient) ListByWorkspaceComplete(ctx context.Context, id WorkspaceId) (ListByWorkspaceCompleteResult, error)

ListByWorkspaceComplete retrieves all the results into a single object

func (DicomServicesClient) ListByWorkspaceCompleteMatchingPredicate

func (c DicomServicesClient) ListByWorkspaceCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, predicate DicomServiceOperationPredicate) (result ListByWorkspaceCompleteResult, err error)

ListByWorkspaceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DicomServicesClient) Update

Update ...

func (DicomServicesClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DicomService
}

type ListByWorkspaceCompleteResult

type ListByWorkspaceCompleteResult struct {
	Items []DicomService
}

type ListByWorkspaceOperationResponse

type ListByWorkspaceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DicomService
}

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 added in v0.20230508.1101604

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 added in v0.20230508.1101604

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 added in v0.20230508.1101604

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

type PublicNetworkAccess

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

func (*PublicNetworkAccess) UnmarshalJSON added in v0.20230508.1101604

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

type UpdateOperationResponse

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

type WorkspaceId

type WorkspaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
}

WorkspaceId is a struct representing the Resource ID for a Workspace

func NewWorkspaceID

func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId

NewWorkspaceID returns a new WorkspaceId struct

func ParseWorkspaceID

func ParseWorkspaceID(input string) (*WorkspaceId, error)

ParseWorkspaceID parses 'input' into a WorkspaceId

func ParseWorkspaceIDInsensitively

func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)

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

func (WorkspaceId) ID

func (id WorkspaceId) ID() string

ID returns the formatted Workspace ID

func (WorkspaceId) Segments

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

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

func (WorkspaceId) String

func (id WorkspaceId) String() string

String returns a human-readable description of this Workspace ID

Jump to

Keyboard shortcuts

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