From 51f9fb8b677ebb6539877e434eab1a1bcecbaa02 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 8 Jan 2020 06:29:47 +0000 Subject: [PATCH] Generated from 14f40d11c3c6df2ef9358debb1c205671f5bc7d0 Change enum to model as string --- .../mgmt/2019-09-16/healthcareapis/client.go | 3 +- .../healthcareapisapi/interfaces.go | 3 ++ .../mgmt/2019-09-16/healthcareapis/models.go | 31 +++++++++++++++++++ .../healthcareapis/operationresults.go | 4 ++- .../2019-09-16/healthcareapis/operations.go | 3 +- .../2019-09-16/healthcareapis/services.go | 3 +- 6 files changed, 43 insertions(+), 4 deletions(-) diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/client.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/client.go index c2bd63627422..2f8fa6b64fda 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/client.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/client.go @@ -41,7 +41,8 @@ func New(subscriptionID string) BaseClient { return NewWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewWithBaseURI creates an instance of the BaseClient client. +// 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). func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return BaseClient{ Client: autorest.NewClientWithUserAgent(UserAgent()), diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/healthcareapisapi/interfaces.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/healthcareapisapi/interfaces.go index 1d06a54548b2..90c05f4b0edc 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/healthcareapisapi/interfaces.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/healthcareapisapi/interfaces.go @@ -29,7 +29,9 @@ type ServicesClientAPI interface { Delete(ctx context.Context, resourceGroupName string, resourceName string) (result healthcareapis.ServicesDeleteFuture, err error) Get(ctx context.Context, resourceGroupName string, resourceName string) (result healthcareapis.ServicesDescription, err error) List(ctx context.Context) (result healthcareapis.ServicesDescriptionListResultPage, err error) + ListComplete(ctx context.Context) (result healthcareapis.ServicesDescriptionListResultIterator, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result healthcareapis.ServicesDescriptionListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result healthcareapis.ServicesDescriptionListResultIterator, err error) Update(ctx context.Context, resourceGroupName string, resourceName string, servicePatchDescription healthcareapis.ServicesPatchDescription) (result healthcareapis.ServicesUpdateFuture, err error) } @@ -38,6 +40,7 @@ var _ ServicesClientAPI = (*healthcareapis.ServicesClient)(nil) // OperationsClientAPI contains the set of methods on the OperationsClient type. type OperationsClientAPI interface { List(ctx context.Context) (result healthcareapis.OperationListResultPage, err error) + ListComplete(ctx context.Context) (result healthcareapis.OperationListResultIterator, err error) } var _ OperationsClientAPI = (*healthcareapis.OperationsClient)(nil) diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/models.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/models.go index 23c268b77377..38d2939b915d 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/models.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/models.go @@ -47,6 +47,21 @@ func PossibleKindValues() []Kind { return []Kind{Fhir, FhirR4, FhirStu3} } +// ManagedServiceIdentityType enumerates the values for managed service identity type. +type ManagedServiceIdentityType string + +const ( + // None ... + None ManagedServiceIdentityType = "None" + // SystemAssigned ... + SystemAssigned ManagedServiceIdentityType = "SystemAssigned" +) + +// PossibleManagedServiceIdentityTypeValues returns an array of possible values for the ManagedServiceIdentityType const type. +func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { + return []ManagedServiceIdentityType{None, SystemAssigned} +} + // OperationResultStatus enumerates the values for operation result status. type OperationResultStatus string @@ -335,6 +350,8 @@ type Resource struct { Tags map[string]*string `json:"tags"` // Etag - An etag associated with the resource, used for optimistic concurrency when editing it. Etag *string `json:"etag,omitempty"` + // Identity - Setting indicating whether the service has a managed identity associated with it. + Identity *ResourceIdentity `json:"identity,omitempty"` } // MarshalJSON is the custom marshaler for Resource. @@ -352,9 +369,18 @@ func (r Resource) MarshalJSON() ([]byte, error) { if r.Etag != nil { objectMap["etag"] = r.Etag } + if r.Identity != nil { + objectMap["identity"] = r.Identity + } return json.Marshal(objectMap) } +// ResourceIdentity setting indicating whether the service has a managed identity associated with it. +type ResourceIdentity struct { + // Type - Type of identity being specified, currently SystemAssigned and None are allowed. Possible values include: 'SystemAssigned', 'None' + Type ManagedServiceIdentityType `json:"type,omitempty"` +} + // ServiceAccessPolicyEntry an access policy entry. type ServiceAccessPolicyEntry struct { // ObjectID - An Azure AD object ID (User or Apps) that is allowed access to the FHIR service. @@ -462,6 +488,8 @@ type ServicesDescription struct { Tags map[string]*string `json:"tags"` // Etag - An etag associated with the resource, used for optimistic concurrency when editing it. Etag *string `json:"etag,omitempty"` + // Identity - Setting indicating whether the service has a managed identity associated with it. + Identity *ResourceIdentity `json:"identity,omitempty"` } // MarshalJSON is the custom marshaler for ServicesDescription. @@ -482,6 +510,9 @@ func (sd ServicesDescription) MarshalJSON() ([]byte, error) { if sd.Etag != nil { objectMap["etag"] = sd.Etag } + if sd.Identity != nil { + objectMap["identity"] = sd.Identity + } return json.Marshal(objectMap) } diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operationresults.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operationresults.go index 10f2174c33df..772cd7fd3b6f 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operationresults.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operationresults.go @@ -35,7 +35,9 @@ func NewOperationResultsClient(subscriptionID string) OperationResultsClient { return NewOperationResultsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewOperationResultsClientWithBaseURI creates an instance of the OperationResultsClient client. +// NewOperationResultsClientWithBaseURI creates an instance of the OperationResultsClient 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 NewOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) OperationResultsClient { return OperationResultsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go index 5acb766ce32c..c8512e997aca 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go @@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient { return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. +// 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 NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go index 347775a60469..15db962f7f97 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go @@ -36,7 +36,8 @@ func NewServicesClient(subscriptionID string) ServicesClient { return NewServicesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewServicesClientWithBaseURI creates an instance of the ServicesClient client. +// NewServicesClientWithBaseURI creates an instance of the ServicesClient 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 NewServicesClientWithBaseURI(baseURI string, subscriptionID string) ServicesClient { return ServicesClient{NewWithBaseURI(baseURI, subscriptionID)} }