Documentation ¶
Index ¶
- type ActionType
- type Application
- type ApplicationListResult
- type ApplicationProperties
- type ApplicationResource
- type ApplicationResourceListResult
- type ApplicationResourceProperties
- type ApplicationResourceUpdate
- type ApplicationResourceUpdateProperties
- type ApplicationResourcesClient
- func (client *ApplicationResourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationResourcesClientCreateOrUpdateResponse, error)
- func (client *ApplicationResourcesClient) Delete(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationResourcesClientDeleteResponse, error)
- func (client *ApplicationResourcesClient) Get(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationResourcesClientGetResponse, error)
- func (client *ApplicationResourcesClient) NewListByApplicationPager(resourceGroupName string, spaceName string, applicationName string, ...) *runtime.Pager[ApplicationResourcesClientListByApplicationResponse]
- func (client *ApplicationResourcesClient) Patch(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationResourcesClientPatchResponse, error)
- type ApplicationResourcesClientCreateOrUpdateOptions
- type ApplicationResourcesClientCreateOrUpdateResponse
- type ApplicationResourcesClientDeleteOptions
- type ApplicationResourcesClientDeleteResponse
- type ApplicationResourcesClientGetOptions
- type ApplicationResourcesClientGetResponse
- type ApplicationResourcesClientListByApplicationOptions
- type ApplicationResourcesClientListByApplicationResponse
- type ApplicationResourcesClientPatchOptions
- type ApplicationResourcesClientPatchResponse
- type ApplicationUpdate
- type ApplicationUpdateProperties
- type ApplicationsClient
- func (client *ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationsClientCreateOrUpdateResponse, error)
- func (client *ApplicationsClient) Delete(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationsClientDeleteResponse, error)
- func (client *ApplicationsClient) DeleteBusinessProcessDevelopmentArtifact(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationsClientDeleteBusinessProcessDevelopmentArtifactResponse, error)
- func (client *ApplicationsClient) Get(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationsClientGetResponse, error)
- func (client *ApplicationsClient) GetBusinessProcessDevelopmentArtifact(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationsClientGetBusinessProcessDevelopmentArtifactResponse, error)
- func (client *ApplicationsClient) ListBusinessProcessDevelopmentArtifacts(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationsClientListBusinessProcessDevelopmentArtifactsResponse, error)
- func (client *ApplicationsClient) NewListBySpacePager(resourceGroupName string, spaceName string, ...) *runtime.Pager[ApplicationsClientListBySpaceResponse]
- func (client *ApplicationsClient) Patch(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationsClientPatchResponse, error)
- func (client *ApplicationsClient) SaveBusinessProcessDevelopmentArtifact(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationsClientSaveBusinessProcessDevelopmentArtifactResponse, error)
- func (client *ApplicationsClient) ValidateBusinessProcessDevelopmentArtifact(ctx context.Context, resourceGroupName string, spaceName string, ...) (ApplicationsClientValidateBusinessProcessDevelopmentArtifactResponse, error)
- type ApplicationsClientCreateOrUpdateOptions
- type ApplicationsClientCreateOrUpdateResponse
- type ApplicationsClientDeleteBusinessProcessDevelopmentArtifactOptions
- type ApplicationsClientDeleteBusinessProcessDevelopmentArtifactResponse
- type ApplicationsClientDeleteOptions
- type ApplicationsClientDeleteResponse
- type ApplicationsClientGetBusinessProcessDevelopmentArtifactOptions
- type ApplicationsClientGetBusinessProcessDevelopmentArtifactResponse
- type ApplicationsClientGetOptions
- type ApplicationsClientGetResponse
- type ApplicationsClientListBusinessProcessDevelopmentArtifactsOptions
- type ApplicationsClientListBusinessProcessDevelopmentArtifactsResponse
- type ApplicationsClientListBySpaceOptions
- type ApplicationsClientListBySpaceResponse
- type ApplicationsClientPatchOptions
- type ApplicationsClientPatchResponse
- type ApplicationsClientSaveBusinessProcessDevelopmentArtifactOptions
- type ApplicationsClientSaveBusinessProcessDevelopmentArtifactResponse
- type ApplicationsClientValidateBusinessProcessDevelopmentArtifactOptions
- type ApplicationsClientValidateBusinessProcessDevelopmentArtifactResponse
- type BusinessProcess
- type BusinessProcessDevelopmentArtifactProperties
- type BusinessProcessIdentifier
- type BusinessProcessListResult
- type BusinessProcessMappingItem
- type BusinessProcessProperties
- type BusinessProcessReference
- type BusinessProcessStage
- type BusinessProcessUpdate
- type BusinessProcessUpdateProperties
- type BusinessProcessVersion
- type BusinessProcessVersionListResult
- type BusinessProcessVersionsClient
- func (client *BusinessProcessVersionsClient) Get(ctx context.Context, resourceGroupName string, spaceName string, ...) (BusinessProcessVersionsClientGetResponse, error)
- func (client *BusinessProcessVersionsClient) NewListByBusinessProcessPager(resourceGroupName string, spaceName string, applicationName string, ...) *runtime.Pager[BusinessProcessVersionsClientListByBusinessProcessResponse]
- type BusinessProcessVersionsClientGetOptions
- type BusinessProcessVersionsClientGetResponse
- type BusinessProcessVersionsClientListByBusinessProcessOptions
- type BusinessProcessVersionsClientListByBusinessProcessResponse
- type BusinessProcessesClient
- func (client *BusinessProcessesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, spaceName string, ...) (BusinessProcessesClientCreateOrUpdateResponse, error)
- func (client *BusinessProcessesClient) Delete(ctx context.Context, resourceGroupName string, spaceName string, ...) (BusinessProcessesClientDeleteResponse, error)
- func (client *BusinessProcessesClient) Get(ctx context.Context, resourceGroupName string, spaceName string, ...) (BusinessProcessesClientGetResponse, error)
- func (client *BusinessProcessesClient) NewListByApplicationPager(resourceGroupName string, spaceName string, applicationName string, ...) *runtime.Pager[BusinessProcessesClientListByApplicationResponse]
- func (client *BusinessProcessesClient) Patch(ctx context.Context, resourceGroupName string, spaceName string, ...) (BusinessProcessesClientPatchResponse, error)
- type BusinessProcessesClientCreateOrUpdateOptions
- type BusinessProcessesClientCreateOrUpdateResponse
- type BusinessProcessesClientDeleteOptions
- type BusinessProcessesClientDeleteResponse
- type BusinessProcessesClientGetOptions
- type BusinessProcessesClientGetResponse
- type BusinessProcessesClientListByApplicationOptions
- type BusinessProcessesClientListByApplicationResponse
- type BusinessProcessesClientPatchOptions
- type BusinessProcessesClientPatchResponse
- type ClientFactory
- func (c *ClientFactory) NewApplicationResourcesClient() *ApplicationResourcesClient
- func (c *ClientFactory) NewApplicationsClient() *ApplicationsClient
- func (c *ClientFactory) NewBusinessProcessVersionsClient() *BusinessProcessVersionsClient
- func (c *ClientFactory) NewBusinessProcessesClient() *BusinessProcessesClient
- func (c *ClientFactory) NewInfrastructureResourcesClient() *InfrastructureResourcesClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewSpacesClient() *SpacesClient
- type CreatedByType
- type FlowTrackingDefinition
- type GetOrDeleteBusinessProcessDevelopmentArtifactRequest
- type InfrastructureResource
- type InfrastructureResourceListResult
- type InfrastructureResourceProperties
- type InfrastructureResourceUpdate
- type InfrastructureResourceUpdateProperties
- type InfrastructureResourcesClient
- func (client *InfrastructureResourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, spaceName string, ...) (InfrastructureResourcesClientCreateOrUpdateResponse, error)
- func (client *InfrastructureResourcesClient) Delete(ctx context.Context, resourceGroupName string, spaceName string, ...) (InfrastructureResourcesClientDeleteResponse, error)
- func (client *InfrastructureResourcesClient) Get(ctx context.Context, resourceGroupName string, spaceName string, ...) (InfrastructureResourcesClientGetResponse, error)
- func (client *InfrastructureResourcesClient) NewListBySpacePager(resourceGroupName string, spaceName string, ...) *runtime.Pager[InfrastructureResourcesClientListBySpaceResponse]
- func (client *InfrastructureResourcesClient) Patch(ctx context.Context, resourceGroupName string, spaceName string, ...) (InfrastructureResourcesClientPatchResponse, error)
- type InfrastructureResourcesClientCreateOrUpdateOptions
- type InfrastructureResourcesClientCreateOrUpdateResponse
- type InfrastructureResourcesClientDeleteOptions
- type InfrastructureResourcesClientDeleteResponse
- type InfrastructureResourcesClientGetOptions
- type InfrastructureResourcesClientGetResponse
- type InfrastructureResourcesClientListBySpaceOptions
- type InfrastructureResourcesClientListBySpaceResponse
- type InfrastructureResourcesClientPatchOptions
- type InfrastructureResourcesClientPatchResponse
- type ListBusinessProcessDevelopmentArtifactsResponse
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type ProvisioningState
- type SaveOrGetBusinessProcessDevelopmentArtifactResponse
- type SaveOrValidateBusinessProcessDevelopmentArtifactRequest
- type Space
- type SpaceListResult
- type SpaceResourceProperties
- type SpaceUpdate
- type SpaceUpdateProperties
- type SpacesClient
- func (client *SpacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, spaceName string, ...) (SpacesClientCreateOrUpdateResponse, error)
- func (client *SpacesClient) Delete(ctx context.Context, resourceGroupName string, spaceName string, ...) (SpacesClientDeleteResponse, error)
- func (client *SpacesClient) Get(ctx context.Context, resourceGroupName string, spaceName string, ...) (SpacesClientGetResponse, error)
- func (client *SpacesClient) NewListByResourceGroupPager(resourceGroupName string, options *SpacesClientListByResourceGroupOptions) *runtime.Pager[SpacesClientListByResourceGroupResponse]
- func (client *SpacesClient) NewListBySubscriptionPager(options *SpacesClientListBySubscriptionOptions) *runtime.Pager[SpacesClientListBySubscriptionResponse]
- func (client *SpacesClient) Patch(ctx context.Context, resourceGroupName string, spaceName string, ...) (SpacesClientPatchResponse, error)
- type SpacesClientCreateOrUpdateOptions
- type SpacesClientCreateOrUpdateResponse
- type SpacesClientDeleteOptions
- type SpacesClientDeleteResponse
- type SpacesClientGetOptions
- type SpacesClientGetResponse
- type SpacesClientListByResourceGroupOptions
- type SpacesClientListByResourceGroupResponse
- type SpacesClientListBySubscriptionOptions
- type SpacesClientListBySubscriptionResponse
- type SpacesClientPatchOptions
- type SpacesClientPatchResponse
- type SystemData
- type TrackingCorrelationContext
- type TrackingDataStore
- type TrackingEventDefinition
- type TrackingProfileDefinition
Examples ¶
- ApplicationResourcesClient.CreateOrUpdate
- ApplicationResourcesClient.Delete
- ApplicationResourcesClient.Get
- ApplicationResourcesClient.NewListByApplicationPager
- ApplicationResourcesClient.Patch
- ApplicationsClient.CreateOrUpdate
- ApplicationsClient.Delete
- ApplicationsClient.DeleteBusinessProcessDevelopmentArtifact
- ApplicationsClient.Get
- ApplicationsClient.GetBusinessProcessDevelopmentArtifact
- ApplicationsClient.ListBusinessProcessDevelopmentArtifacts
- ApplicationsClient.NewListBySpacePager
- ApplicationsClient.Patch
- ApplicationsClient.SaveBusinessProcessDevelopmentArtifact
- ApplicationsClient.ValidateBusinessProcessDevelopmentArtifact
- BusinessProcessVersionsClient.Get
- BusinessProcessVersionsClient.NewListByBusinessProcessPager
- BusinessProcessesClient.CreateOrUpdate
- BusinessProcessesClient.Delete
- BusinessProcessesClient.Get
- BusinessProcessesClient.NewListByApplicationPager
- BusinessProcessesClient.Patch
- InfrastructureResourcesClient.CreateOrUpdate
- InfrastructureResourcesClient.Delete
- InfrastructureResourcesClient.Get
- InfrastructureResourcesClient.NewListBySpacePager
- InfrastructureResourcesClient.Patch
- OperationsClient.NewListPager
- SpacesClient.CreateOrUpdate
- SpacesClient.Delete
- SpacesClient.Get
- SpacesClient.NewListByResourceGroupPager
- SpacesClient.NewListBySubscriptionPager
- SpacesClient.Patch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType string
ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const (
ActionTypeInternal ActionType = "Internal"
)
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
type Application ¶
type Application struct { // REQUIRED; The geo-location where the resource lives Location *string // The resource-specific properties for this resource. Properties *ApplicationProperties // Resource tags. Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Application - An integration application under space.
func (Application) MarshalJSON ¶
func (a Application) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Application.
func (*Application) UnmarshalJSON ¶
func (a *Application) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Application.
type ApplicationListResult ¶
type ApplicationListResult struct { // REQUIRED; The Application items on this page Value []*Application // The link to the next page of items NextLink *string }
ApplicationListResult - The response of a Application list operation.
func (ApplicationListResult) MarshalJSON ¶
func (a ApplicationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationListResult.
func (*ApplicationListResult) UnmarshalJSON ¶
func (a *ApplicationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationListResult.
type ApplicationProperties ¶
type ApplicationProperties struct { // REQUIRED; The tracking data stores. TrackingDataStores map[string]*TrackingDataStore // The description of the resource. Description *string // READ-ONLY; The status of the last operation. ProvisioningState *ProvisioningState }
ApplicationProperties - The properties of application.
func (ApplicationProperties) MarshalJSON ¶
func (a ApplicationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationProperties.
func (*ApplicationProperties) UnmarshalJSON ¶
func (a *ApplicationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationProperties.
type ApplicationResource ¶
type ApplicationResource struct { // The resource-specific properties for this resource. Properties *ApplicationResourceProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
ApplicationResource - A resource under application.
func (ApplicationResource) MarshalJSON ¶
func (a ApplicationResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationResource.
func (*ApplicationResource) UnmarshalJSON ¶
func (a *ApplicationResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationResource.
type ApplicationResourceListResult ¶
type ApplicationResourceListResult struct { // REQUIRED; The ApplicationResource items on this page Value []*ApplicationResource // The link to the next page of items NextLink *string }
ApplicationResourceListResult - The response of a ApplicationResource list operation.
func (ApplicationResourceListResult) MarshalJSON ¶
func (a ApplicationResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationResourceListResult.
func (*ApplicationResourceListResult) UnmarshalJSON ¶
func (a *ApplicationResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationResourceListResult.
type ApplicationResourceProperties ¶
type ApplicationResourceProperties struct { // REQUIRED; The Arm id of the application resource. ResourceID *string // REQUIRED; The type of the application resource. ResourceType *string // The kind of the application resource. ResourceKind *string // READ-ONLY; The status of the last operation. ProvisioningState *ProvisioningState }
ApplicationResourceProperties - The properties of application resource.
func (ApplicationResourceProperties) MarshalJSON ¶
func (a ApplicationResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationResourceProperties.
func (*ApplicationResourceProperties) UnmarshalJSON ¶
func (a *ApplicationResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationResourceProperties.
type ApplicationResourceUpdate ¶
type ApplicationResourceUpdate struct { // The updatable properties of the ApplicationResource. Properties *ApplicationResourceUpdateProperties }
ApplicationResourceUpdate - The type used for update operations of the ApplicationResource.
func (ApplicationResourceUpdate) MarshalJSON ¶
func (a ApplicationResourceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationResourceUpdate.
func (*ApplicationResourceUpdate) UnmarshalJSON ¶
func (a *ApplicationResourceUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationResourceUpdate.
type ApplicationResourceUpdateProperties ¶
type ApplicationResourceUpdateProperties struct { // The Arm id of the application resource. ResourceID *string // The kind of the application resource. ResourceKind *string // The type of the application resource. ResourceType *string }
ApplicationResourceUpdateProperties - The updatable properties of the ApplicationResource.
func (ApplicationResourceUpdateProperties) MarshalJSON ¶
func (a ApplicationResourceUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationResourceUpdateProperties.
func (*ApplicationResourceUpdateProperties) UnmarshalJSON ¶
func (a *ApplicationResourceUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationResourceUpdateProperties.
type ApplicationResourcesClient ¶
type ApplicationResourcesClient struct {
// contains filtered or unexported fields
}
ApplicationResourcesClient contains the methods for the ApplicationResources group. Don't use this type directly, use NewApplicationResourcesClient() instead.
func NewApplicationResourcesClient ¶
func NewApplicationResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationResourcesClient, error)
NewApplicationResourcesClient creates a new instance of ApplicationResourcesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ApplicationResourcesClient) CreateOrUpdate ¶
func (client *ApplicationResourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, resourceName string, resource ApplicationResource, options *ApplicationResourcesClientCreateOrUpdateOptions) (ApplicationResourcesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create a ApplicationResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- resourceName - The name of the application resource.
- resource - Resource create parameters.
- options - ApplicationResourcesClientCreateOrUpdateOptions contains the optional parameters for the ApplicationResourcesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/ApplicationResources_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationResourcesClient().CreateOrUpdate(ctx, "testrg", "Space1", "Application1", "Resource1", armintegrationspaces.ApplicationResource{ Properties: &armintegrationspaces.ApplicationResourceProperties{ ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Web/sites/LogicApp1"), ResourceKind: to.Ptr("LogicApp"), ResourceType: to.Ptr("Microsoft.Web/sites"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ApplicationResource = armintegrationspaces.ApplicationResource{ // Name: to.Ptr("Resource1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications/resources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1/resources/Resource1"), // Properties: &armintegrationspaces.ApplicationResourceProperties{ // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Web/sites/LogicApp1"), // ResourceKind: to.Ptr("LogicApp"), // ResourceType: to.Ptr("Microsoft.Web/sites"), // }, // } }
Output:
func (*ApplicationResourcesClient) Delete ¶
func (client *ApplicationResourcesClient) Delete(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, resourceName string, options *ApplicationResourcesClientDeleteOptions) (ApplicationResourcesClientDeleteResponse, error)
Delete - Delete a ApplicationResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- resourceName - The name of the application resource.
- options - ApplicationResourcesClientDeleteOptions contains the optional parameters for the ApplicationResourcesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/ApplicationResources_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewApplicationResourcesClient().Delete(ctx, "testrg", "Space1", "Application1", "Resource1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*ApplicationResourcesClient) Get ¶
func (client *ApplicationResourcesClient) Get(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, resourceName string, options *ApplicationResourcesClientGetOptions) (ApplicationResourcesClientGetResponse, error)
Get - Get a ApplicationResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- resourceName - The name of the application resource.
- options - ApplicationResourcesClientGetOptions contains the optional parameters for the ApplicationResourcesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/ApplicationResources_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationResourcesClient().Get(ctx, "testrg", "Space1", "Application1", "Resource1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ApplicationResource = armintegrationspaces.ApplicationResource{ // Name: to.Ptr("Resource1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications/resources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1/resources/Resource1"), // Properties: &armintegrationspaces.ApplicationResourceProperties{ // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Web/sites/LogicApp1"), // ResourceKind: to.Ptr("LogicApp"), // ResourceType: to.Ptr("Microsoft.Web/sites"), // }, // } }
Output:
func (*ApplicationResourcesClient) NewListByApplicationPager ¶
func (client *ApplicationResourcesClient) NewListByApplicationPager(resourceGroupName string, spaceName string, applicationName string, options *ApplicationResourcesClientListByApplicationOptions) *runtime.Pager[ApplicationResourcesClientListByApplicationResponse]
NewListByApplicationPager - List ApplicationResource resources by Application
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- options - ApplicationResourcesClientListByApplicationOptions contains the optional parameters for the ApplicationResourcesClient.NewListByApplicationPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/ApplicationResources_ListByApplication.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewApplicationResourcesClient().NewListByApplicationPager("testrg", "Space1", "Application1", &armintegrationspaces.ApplicationResourcesClientListByApplicationOptions{Top: nil, Skip: nil, Maxpagesize: nil, Filter: nil, Select: []string{}, Expand: []string{}, Orderby: []string{}, }) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ApplicationResourceListResult = armintegrationspaces.ApplicationResourceListResult{ // Value: []*armintegrationspaces.ApplicationResource{ // { // Name: to.Ptr("Resource1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications/resources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1/resources/Resource1"), // Properties: &armintegrationspaces.ApplicationResourceProperties{ // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Web/sites/LogicApp1"), // ResourceKind: to.Ptr("LogicApp"), // ResourceType: to.Ptr("Microsoft.Web/sites"), // }, // }}, // } } }
Output:
func (*ApplicationResourcesClient) Patch ¶
func (client *ApplicationResourcesClient) Patch(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, resourceName string, properties ApplicationResourceUpdate, options *ApplicationResourcesClientPatchOptions) (ApplicationResourcesClientPatchResponse, error)
Patch - Update a ApplicationResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- resourceName - The name of the application resource.
- properties - The resource properties to be updated.
- options - ApplicationResourcesClientPatchOptions contains the optional parameters for the ApplicationResourcesClient.Patch method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/ApplicationResources_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationResourcesClient().Patch(ctx, "testrg", "Space1", "Application1", "Resource1", armintegrationspaces.ApplicationResourceUpdate{ Properties: &armintegrationspaces.ApplicationResourceUpdateProperties{ ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Web/sites/LogicApp1"), ResourceKind: to.Ptr("LogicApp"), ResourceType: to.Ptr("Microsoft.Web/sites"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ApplicationResource = armintegrationspaces.ApplicationResource{ // Name: to.Ptr("Resource1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications/resources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1/resources/Resource1"), // Properties: &armintegrationspaces.ApplicationResourceProperties{ // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Web/sites/LogicApp1"), // ResourceKind: to.Ptr("LogicApp"), // ResourceType: to.Ptr("Microsoft.Web/sites"), // }, // } }
Output:
type ApplicationResourcesClientCreateOrUpdateOptions ¶
type ApplicationResourcesClientCreateOrUpdateOptions struct { }
ApplicationResourcesClientCreateOrUpdateOptions contains the optional parameters for the ApplicationResourcesClient.CreateOrUpdate method.
type ApplicationResourcesClientCreateOrUpdateResponse ¶
type ApplicationResourcesClientCreateOrUpdateResponse struct { // A resource under application. ApplicationResource }
ApplicationResourcesClientCreateOrUpdateResponse contains the response from method ApplicationResourcesClient.CreateOrUpdate.
type ApplicationResourcesClientDeleteOptions ¶
type ApplicationResourcesClientDeleteOptions struct { }
ApplicationResourcesClientDeleteOptions contains the optional parameters for the ApplicationResourcesClient.Delete method.
type ApplicationResourcesClientDeleteResponse ¶
type ApplicationResourcesClientDeleteResponse struct { }
ApplicationResourcesClientDeleteResponse contains the response from method ApplicationResourcesClient.Delete.
type ApplicationResourcesClientGetOptions ¶
type ApplicationResourcesClientGetOptions struct { }
ApplicationResourcesClientGetOptions contains the optional parameters for the ApplicationResourcesClient.Get method.
type ApplicationResourcesClientGetResponse ¶
type ApplicationResourcesClientGetResponse struct { // A resource under application. ApplicationResource }
ApplicationResourcesClientGetResponse contains the response from method ApplicationResourcesClient.Get.
type ApplicationResourcesClientListByApplicationOptions ¶
type ApplicationResourcesClientListByApplicationOptions struct { // Expand the indicated resources into the response. Expand []string // Filter the result list using the given expression. Filter *string // The maximum number of result items per page. Maxpagesize *int32 // Expressions that specify the order of returned results. Orderby []string // Select the specified fields to be included in the response. Select []string // The number of result items to skip. Skip *int32 // The number of result items to return. Top *int32 }
ApplicationResourcesClientListByApplicationOptions contains the optional parameters for the ApplicationResourcesClient.NewListByApplicationPager method.
type ApplicationResourcesClientListByApplicationResponse ¶
type ApplicationResourcesClientListByApplicationResponse struct { // The response of a ApplicationResource list operation. ApplicationResourceListResult }
ApplicationResourcesClientListByApplicationResponse contains the response from method ApplicationResourcesClient.NewListByApplicationPager.
type ApplicationResourcesClientPatchOptions ¶
type ApplicationResourcesClientPatchOptions struct { }
ApplicationResourcesClientPatchOptions contains the optional parameters for the ApplicationResourcesClient.Patch method.
type ApplicationResourcesClientPatchResponse ¶
type ApplicationResourcesClientPatchResponse struct { // A resource under application. ApplicationResource }
ApplicationResourcesClientPatchResponse contains the response from method ApplicationResourcesClient.Patch.
type ApplicationUpdate ¶
type ApplicationUpdate struct { // The updatable properties of the Application. Properties *ApplicationUpdateProperties // Resource tags. Tags map[string]*string }
ApplicationUpdate - The type used for update operations of the Application.
func (ApplicationUpdate) MarshalJSON ¶
func (a ApplicationUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationUpdate.
func (*ApplicationUpdate) UnmarshalJSON ¶
func (a *ApplicationUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationUpdate.
type ApplicationUpdateProperties ¶
type ApplicationUpdateProperties struct { // The description of the resource. Description *string // The tracking data stores. TrackingDataStores map[string]*TrackingDataStore }
ApplicationUpdateProperties - The updatable properties of the Application.
func (ApplicationUpdateProperties) MarshalJSON ¶
func (a ApplicationUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ApplicationUpdateProperties.
func (*ApplicationUpdateProperties) UnmarshalJSON ¶
func (a *ApplicationUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationUpdateProperties.
type ApplicationsClient ¶
type ApplicationsClient struct {
// contains filtered or unexported fields
}
ApplicationsClient contains the methods for the Applications group. Don't use this type directly, use NewApplicationsClient() instead.
func NewApplicationsClient ¶
func NewApplicationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationsClient, error)
NewApplicationsClient creates a new instance of ApplicationsClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ApplicationsClient) CreateOrUpdate ¶
func (client *ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, resource Application, options *ApplicationsClientCreateOrUpdateOptions) (ApplicationsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create a Application If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- resource - Resource create parameters.
- options - ApplicationsClientCreateOrUpdateOptions contains the optional parameters for the ApplicationsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Applications_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationsClient().CreateOrUpdate(ctx, "testrg", "Space1", "Application1", armintegrationspaces.Application{ Location: to.Ptr("CentralUS"), Tags: map[string]*string{ "key1": to.Ptr("Value1"), }, Properties: &armintegrationspaces.ApplicationProperties{ Description: to.Ptr("This is the user provided description of the application."), TrackingDataStores: map[string]*armintegrationspaces.TrackingDataStore{ "dataStoreName1": { DataStoreIngestionURI: to.Ptr("https://ingest-someClusterName.someRegionName.kusto.windows.net"), DataStoreResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Kusto/Clusters/cluster1"), DataStoreURI: to.Ptr("https://someClusterName.someRegionName.kusto.windows.net"), DatabaseName: to.Ptr("testDatabase1"), }, "dataStoreName2": { DataStoreIngestionURI: to.Ptr("https://ingest-someClusterName.someRegionName.kusto.windows.net"), DataStoreResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Kusto/Clusters/cluster1"), DataStoreURI: to.Ptr("https://someClusterName.someRegionName.kusto.windows.net"), DatabaseName: to.Ptr("testDatabase1"), }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Application = armintegrationspaces.Application{ // Name: to.Ptr("Application1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1"), // Location: to.Ptr("CentralUS"), // Tags: map[string]*string{ // "key1": to.Ptr("Value1"), // }, // Properties: &armintegrationspaces.ApplicationProperties{ // Description: to.Ptr("This is the user provided description of the application."), // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // TrackingDataStores: map[string]*armintegrationspaces.TrackingDataStore{ // "dataStoreName1": &armintegrationspaces.TrackingDataStore{ // DataStoreIngestionURI: to.Ptr("https://ingest-someClusterName.someRegionName.kusto.windows.net"), // DataStoreResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Kusto/Clusters/cluster1"), // DataStoreURI: to.Ptr("https://someClusterName.someRegionName.kusto.windows.net"), // DatabaseName: to.Ptr("testDatabase1"), // }, // "dataStoreName2": &armintegrationspaces.TrackingDataStore{ // DataStoreIngestionURI: to.Ptr("https://ingest-someClusterName.someRegionName.kusto.windows.net"), // DataStoreResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Kusto/Clusters/cluster1"), // DataStoreURI: to.Ptr("https://someClusterName.someRegionName.kusto.windows.net"), // DatabaseName: to.Ptr("testDatabase1"), // }, // }, // }, // } }
Output:
func (*ApplicationsClient) Delete ¶
func (client *ApplicationsClient) Delete(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, options *ApplicationsClientDeleteOptions) (ApplicationsClientDeleteResponse, error)
Delete - Delete a Application If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- options - ApplicationsClientDeleteOptions contains the optional parameters for the ApplicationsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Applications_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewApplicationsClient().Delete(ctx, "testrg", "Space1", "Application1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*ApplicationsClient) DeleteBusinessProcessDevelopmentArtifact ¶
func (client *ApplicationsClient) DeleteBusinessProcessDevelopmentArtifact(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, body GetOrDeleteBusinessProcessDevelopmentArtifactRequest, options *ApplicationsClientDeleteBusinessProcessDevelopmentArtifactOptions) (ApplicationsClientDeleteBusinessProcessDevelopmentArtifactResponse, error)
DeleteBusinessProcessDevelopmentArtifact - The delete business process development artifact action. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- body - The content of the action request
- options - ApplicationsClientDeleteBusinessProcessDevelopmentArtifactOptions contains the optional parameters for the ApplicationsClient.DeleteBusinessProcessDevelopmentArtifact method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Applications_DeleteBusinessProcessDevelopmentArtifact.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewApplicationsClient().DeleteBusinessProcessDevelopmentArtifact(ctx, "testrg", "Space1", "Application1", armintegrationspaces.GetOrDeleteBusinessProcessDevelopmentArtifactRequest{ Name: to.Ptr("BusinessProcess1"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*ApplicationsClient) Get ¶
func (client *ApplicationsClient) Get(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, options *ApplicationsClientGetOptions) (ApplicationsClientGetResponse, error)
Get - Get a Application If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- options - ApplicationsClientGetOptions contains the optional parameters for the ApplicationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Applications_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationsClient().Get(ctx, "testrg", "Space1", "Application1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Application = armintegrationspaces.Application{ // Name: to.Ptr("Application1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1"), // Location: to.Ptr("CentralUS"), // Tags: map[string]*string{ // "key1": to.Ptr("Value1"), // }, // Properties: &armintegrationspaces.ApplicationProperties{ // Description: to.Ptr("This is the user provided description of the application."), // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // TrackingDataStores: map[string]*armintegrationspaces.TrackingDataStore{ // "dataStoreName1": &armintegrationspaces.TrackingDataStore{ // DataStoreIngestionURI: to.Ptr("https://ingest-someClusterName.someRegionName.kusto.windows.net"), // DataStoreResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Kusto/Clusters/cluster1"), // DataStoreURI: to.Ptr("https://someClusterName.someRegionName.kusto.windows.net"), // DatabaseName: to.Ptr("testDatabase1"), // }, // }, // }, // } }
Output:
func (*ApplicationsClient) GetBusinessProcessDevelopmentArtifact ¶
func (client *ApplicationsClient) GetBusinessProcessDevelopmentArtifact(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, body GetOrDeleteBusinessProcessDevelopmentArtifactRequest, options *ApplicationsClientGetBusinessProcessDevelopmentArtifactOptions) (ApplicationsClientGetBusinessProcessDevelopmentArtifactResponse, error)
GetBusinessProcessDevelopmentArtifact - The get business process development artifact action. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- body - The content of the action request
- options - ApplicationsClientGetBusinessProcessDevelopmentArtifactOptions contains the optional parameters for the ApplicationsClient.GetBusinessProcessDevelopmentArtifact method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Applications_GetBusinessProcessDevelopmentArtifact.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationsClient().GetBusinessProcessDevelopmentArtifact(ctx, "testrg", "Space1", "Application1", armintegrationspaces.GetOrDeleteBusinessProcessDevelopmentArtifactRequest{ Name: to.Ptr("BusinessProcess1"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.SaveOrGetBusinessProcessDevelopmentArtifactResponse = armintegrationspaces.SaveOrGetBusinessProcessDevelopmentArtifactResponse{ // Name: to.Ptr("BusinessProcess1"), // Properties: &armintegrationspaces.BusinessProcessDevelopmentArtifactProperties{ // Description: to.Ptr("First Business Process"), // BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ // "Completed": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Denied": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Processing": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Received": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Shipped": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // }, // BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ // "Completed": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Completed"), // StagesBefore: []*string{ // to.Ptr("Shipped")}, // }, // "Denied": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Denied"), // StagesBefore: []*string{ // to.Ptr("Processing")}, // }, // "Processing": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Processing"), // Properties: map[string]*string{ // "ApprovalState": to.Ptr("String"), // "ApproverName": to.Ptr("String"), // "POAmount": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Received")}, // }, // "Received": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("received"), // Properties: map[string]*string{ // "City": to.Ptr("String"), // "Product": to.Ptr("String"), // "Quantity": to.Ptr("Integer"), // "State": to.Ptr("String"), // }, // }, // "Shipped": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Shipped"), // Properties: map[string]*string{ // "ShipPriority": to.Ptr("Integer"), // "TrackingID": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Denied")}, // }, // }, // Identifier: &armintegrationspaces.BusinessProcessIdentifier{ // PropertyName: to.Ptr("businessIdentifier-1"), // PropertyType: to.Ptr("String"), // }, // TrackingProfiles: map[string]*armintegrationspaces.TrackingProfileDefinition{ // "subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1": &armintegrationspaces.TrackingProfileDefinition{ // Schema: to.Ptr("https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2023-01-01/trackingdefinitionschema.json#"), // BusinessProcess: &armintegrationspaces.BusinessProcessReference{ // Name: to.Ptr("businessProcess1"), // Version: to.Ptr("d52c9c91-6e10-4a90-9c1f-08ee5d01c656"), // }, // TrackingDefinitions: map[string]*armintegrationspaces.FlowTrackingDefinition{ // "Fulfillment": &armintegrationspaces.FlowTrackingDefinition{ // CorrelationContext: &armintegrationspaces.TrackingCorrelationContext{ // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // PropertyName: to.Ptr("OrderNumber"), // Value: to.Ptr("@trigger().outputs.body.OrderNumber"), // }, // Events: map[string]*armintegrationspaces.TrackingEventDefinition{ // "Completed": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // }, // }, // "Denied": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // }, // }, // "Shipped": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // "ShipPriority": "@action().inputs.shipPriority", // "TrackingID": "@action().inputs.trackingID", // }, // }, // }, // }, // "PurchaseOrder": &armintegrationspaces.FlowTrackingDefinition{ // CorrelationContext: &armintegrationspaces.TrackingCorrelationContext{ // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // PropertyName: to.Ptr("OrderNumber"), // Value: to.Ptr("@trigger().outputs.body.OrderNumber"), // }, // Events: map[string]*armintegrationspaces.TrackingEventDefinition{ // "Processing": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // "ApprovalStatus": "@action().inputs.ApprovalStatus", // "ApproverName": "@action().inputs.ApproverName", // "POAmount": "@action().inputs.POamount", // }, // }, // "Received": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // Properties: map[string]any{ // "City": "@trigger().outputs.body.Address.City", // "Product": "@trigger().outputs.body.Product", // "Quantity": "@trigger().outputs.body.Quantity", // "State": "@trigger().outputs.body.Address.State", // }, // }, // }, // }, // }, // }, // }, // }, // SystemData: &armintegrationspaces.SystemData{ // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-06T22:53:01.849Z"); return t}()), // }, // } }
Output:
func (*ApplicationsClient) ListBusinessProcessDevelopmentArtifacts ¶
func (client *ApplicationsClient) ListBusinessProcessDevelopmentArtifacts(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, options *ApplicationsClientListBusinessProcessDevelopmentArtifactsOptions) (ApplicationsClientListBusinessProcessDevelopmentArtifactsResponse, error)
ListBusinessProcessDevelopmentArtifacts - The list business process development artifacts action. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- options - ApplicationsClientListBusinessProcessDevelopmentArtifactsOptions contains the optional parameters for the ApplicationsClient.ListBusinessProcessDevelopmentArtifacts method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Applications_ListBusinessProcessDevelopmentArtifacts.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationsClient().ListBusinessProcessDevelopmentArtifacts(ctx, "testrg", "Space1", "Application1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ListBusinessProcessDevelopmentArtifactsResponse = armintegrationspaces.ListBusinessProcessDevelopmentArtifactsResponse{ // Value: []*armintegrationspaces.SaveOrGetBusinessProcessDevelopmentArtifactResponse{ // { // Name: to.Ptr("BusinessProcess1"), // Properties: &armintegrationspaces.BusinessProcessDevelopmentArtifactProperties{ // Description: to.Ptr("First Business Process"), // BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ // "Completed": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Denied": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Processing": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Received": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Shipped": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // }, // BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ // "Completed": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Completed"), // StagesBefore: []*string{ // to.Ptr("Shipped")}, // }, // "Denied": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Denied"), // StagesBefore: []*string{ // to.Ptr("Processing")}, // }, // "Processing": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Processing"), // Properties: map[string]*string{ // "ApprovalState": to.Ptr("String"), // "ApproverName": to.Ptr("String"), // "POAmount": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Received")}, // }, // "Received": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("received"), // Properties: map[string]*string{ // "City": to.Ptr("String"), // "Product": to.Ptr("String"), // "Quantity": to.Ptr("Integer"), // "State": to.Ptr("String"), // }, // }, // "Shipped": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Shipped"), // Properties: map[string]*string{ // "ShipPriority": to.Ptr("Integer"), // "TrackingID": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Denied")}, // }, // }, // Identifier: &armintegrationspaces.BusinessProcessIdentifier{ // PropertyName: to.Ptr("businessIdentifier-1"), // PropertyType: to.Ptr("String"), // }, // TrackingProfiles: map[string]*armintegrationspaces.TrackingProfileDefinition{ // "subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1": &armintegrationspaces.TrackingProfileDefinition{ // Schema: to.Ptr("https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2023-01-01/trackingdefinitionschema.json#"), // BusinessProcess: &armintegrationspaces.BusinessProcessReference{ // Name: to.Ptr("businessProcess1"), // Version: to.Ptr("d52c9c91-6e10-4a90-9c1f-08ee5d01c656"), // }, // TrackingDefinitions: map[string]*armintegrationspaces.FlowTrackingDefinition{ // "Fulfillment": &armintegrationspaces.FlowTrackingDefinition{ // CorrelationContext: &armintegrationspaces.TrackingCorrelationContext{ // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // PropertyName: to.Ptr("OrderNumber"), // Value: to.Ptr("@trigger().outputs.body.OrderNumber"), // }, // Events: map[string]*armintegrationspaces.TrackingEventDefinition{ // "Completed": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // }, // }, // "Denied": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // }, // }, // "Shipped": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // "ShipPriority": "@action().inputs.shipPriority", // "TrackingID": "@action().inputs.trackingID", // }, // }, // }, // }, // "PurchaseOrder": &armintegrationspaces.FlowTrackingDefinition{ // CorrelationContext: &armintegrationspaces.TrackingCorrelationContext{ // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // PropertyName: to.Ptr("OrderNumber"), // Value: to.Ptr("@trigger().outputs.body.OrderNumber"), // }, // Events: map[string]*armintegrationspaces.TrackingEventDefinition{ // "Processing": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // "ApprovalStatus": "@action().inputs.ApprovalStatus", // "ApproverName": "@action().inputs.ApproverName", // "POAmount": "@action().inputs.POamount", // }, // }, // "Received": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // Properties: map[string]any{ // "City": "@trigger().outputs.body.Address.City", // "Product": "@trigger().outputs.body.Product", // "Quantity": "@trigger().outputs.body.Quantity", // "State": "@trigger().outputs.body.Address.State", // }, // }, // }, // }, // }, // }, // }, // }, // SystemData: &armintegrationspaces.SystemData{ // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-06T22:53:01.849Z"); return t}()), // }, // }}, // } }
Output:
func (*ApplicationsClient) NewListBySpacePager ¶
func (client *ApplicationsClient) NewListBySpacePager(resourceGroupName string, spaceName string, options *ApplicationsClientListBySpaceOptions) *runtime.Pager[ApplicationsClientListBySpaceResponse]
NewListBySpacePager - List Application resources by Space
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- options - ApplicationsClientListBySpaceOptions contains the optional parameters for the ApplicationsClient.NewListBySpacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Applications_ListBySpace.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewApplicationsClient().NewListBySpacePager("testrg", "Space1", &armintegrationspaces.ApplicationsClientListBySpaceOptions{Top: nil, Skip: nil, Maxpagesize: nil, Filter: nil, Select: []string{}, Expand: []string{}, Orderby: []string{}, }) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ApplicationListResult = armintegrationspaces.ApplicationListResult{ // Value: []*armintegrationspaces.Application{ // { // Name: to.Ptr("Application1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1"), // Location: to.Ptr("CentralUS"), // Tags: map[string]*string{ // "key1": to.Ptr("Value1"), // }, // Properties: &armintegrationspaces.ApplicationProperties{ // Description: to.Ptr("This is the user provided description of the application."), // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // TrackingDataStores: map[string]*armintegrationspaces.TrackingDataStore{ // "dataStoreName1": &armintegrationspaces.TrackingDataStore{ // DataStoreIngestionURI: to.Ptr("https://ingest-someClusterName.someRegionName.kusto.windows.net"), // DataStoreResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Kusto/Clusters/cluster1"), // DataStoreURI: to.Ptr("https://someClusterName.someRegionName.kusto.windows.net"), // DatabaseName: to.Ptr("testDatabase1"), // }, // }, // }, // }}, // } } }
Output:
func (*ApplicationsClient) Patch ¶
func (client *ApplicationsClient) Patch(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, properties ApplicationUpdate, options *ApplicationsClientPatchOptions) (ApplicationsClientPatchResponse, error)
Patch - Update a Application If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- properties - The resource properties to be updated.
- options - ApplicationsClientPatchOptions contains the optional parameters for the ApplicationsClient.Patch method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Applications_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationsClient().Patch(ctx, "testrg", "Space1", "Application1", armintegrationspaces.ApplicationUpdate{ Properties: &armintegrationspaces.ApplicationUpdateProperties{ Description: to.Ptr("This is the user provided PATCHED description of the application."), }, Tags: map[string]*string{ "key1": to.Ptr("Value1"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Application = armintegrationspaces.Application{ // Name: to.Ptr("Application1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1"), // Location: to.Ptr("CentralUS"), // Tags: map[string]*string{ // "key1": to.Ptr("Value1"), // }, // Properties: &armintegrationspaces.ApplicationProperties{ // Description: to.Ptr("This is the user provided PATCHED description of the application."), // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // TrackingDataStores: map[string]*armintegrationspaces.TrackingDataStore{ // "dataStoreName1": &armintegrationspaces.TrackingDataStore{ // DataStoreIngestionURI: to.Ptr("https://ingest-someClusterName.someRegionName.kusto.windows.net"), // DataStoreResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Kusto/Clusters/cluster1"), // DataStoreURI: to.Ptr("https://someClusterName.someRegionName.kusto.windows.net"), // DatabaseName: to.Ptr("testDatabase1"), // }, // }, // }, // } }
Output:
func (*ApplicationsClient) SaveBusinessProcessDevelopmentArtifact ¶
func (client *ApplicationsClient) SaveBusinessProcessDevelopmentArtifact(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, body SaveOrValidateBusinessProcessDevelopmentArtifactRequest, options *ApplicationsClientSaveBusinessProcessDevelopmentArtifactOptions) (ApplicationsClientSaveBusinessProcessDevelopmentArtifactResponse, error)
SaveBusinessProcessDevelopmentArtifact - The save business process development artifact action. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- body - The content of the action request
- options - ApplicationsClientSaveBusinessProcessDevelopmentArtifactOptions contains the optional parameters for the ApplicationsClient.SaveBusinessProcessDevelopmentArtifact method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Applications_SaveBusinessProcessDevelopmentArtifact.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewApplicationsClient().SaveBusinessProcessDevelopmentArtifact(ctx, "testrg", "Space1", "Application1", armintegrationspaces.SaveOrValidateBusinessProcessDevelopmentArtifactRequest{ Name: to.Ptr("BusinessProcess1"), Properties: &armintegrationspaces.BusinessProcessDevelopmentArtifactProperties{ Description: to.Ptr("First Business Process"), BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ "Completed": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("CompletedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("Fulfillment"), }, "Denied": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("DeniedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("Fulfillment"), }, "Processing": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("ApprovedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("PurchaseOrder"), }, "Received": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("manual"), OperationType: to.Ptr("Trigger"), WorkflowName: to.Ptr("PurchaseOrder"), }, "Shipped": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("ShippedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("Fulfillment"), }, }, BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ "Completed": { Description: to.Ptr("Completed"), StagesBefore: []*string{ to.Ptr("Shipped")}, }, "Denied": { Description: to.Ptr("Denied"), StagesBefore: []*string{ to.Ptr("Processing")}, }, "Processing": { Description: to.Ptr("Processing"), Properties: map[string]*string{ "ApprovalState": to.Ptr("String"), "ApproverName": to.Ptr("String"), "POAmount": to.Ptr("Integer"), }, StagesBefore: []*string{ to.Ptr("Received")}, }, "Received": { Description: to.Ptr("received"), Properties: map[string]*string{ "City": to.Ptr("String"), "Product": to.Ptr("String"), "Quantity": to.Ptr("Integer"), "State": to.Ptr("String"), }, }, "Shipped": { Description: to.Ptr("Shipped"), Properties: map[string]*string{ "ShipPriority": to.Ptr("Integer"), "TrackingID": to.Ptr("Integer"), }, StagesBefore: []*string{ to.Ptr("Denied")}, }, }, Identifier: &armintegrationspaces.BusinessProcessIdentifier{ PropertyName: to.Ptr("businessIdentifier-1"), PropertyType: to.Ptr("String"), }, TrackingProfiles: map[string]*armintegrationspaces.TrackingProfileDefinition{ "subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1": { Schema: to.Ptr("https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2023-01-01/trackingdefinitionschema.json#"), BusinessProcess: &armintegrationspaces.BusinessProcessReference{ Name: to.Ptr("businessProcess1"), Version: to.Ptr("d52c9c91-6e10-4a90-9c1f-08ee5d01c656"), }, TrackingDefinitions: map[string]*armintegrationspaces.FlowTrackingDefinition{ "Fulfillment": { CorrelationContext: &armintegrationspaces.TrackingCorrelationContext{ OperationName: to.Ptr("manual"), OperationType: to.Ptr("Trigger"), PropertyName: to.Ptr("OrderNumber"), Value: to.Ptr("@trigger().outputs.body.OrderNumber"), }, Events: map[string]*armintegrationspaces.TrackingEventDefinition{ "Completed": { OperationName: to.Ptr("CompletedPO"), OperationType: to.Ptr("Action"), Properties: map[string]any{}, }, "Denied": { OperationName: to.Ptr("DeniedPO"), OperationType: to.Ptr("Action"), Properties: map[string]any{}, }, "Shipped": { OperationName: to.Ptr("ShippedPO"), OperationType: to.Ptr("Action"), Properties: map[string]any{ "ShipPriority": "@action().inputs.shipPriority", "TrackingID": "@action().inputs.trackingID", }, }, }, }, "PurchaseOrder": { CorrelationContext: &armintegrationspaces.TrackingCorrelationContext{ OperationName: to.Ptr("manual"), OperationType: to.Ptr("Trigger"), PropertyName: to.Ptr("OrderNumber"), Value: to.Ptr("@trigger().outputs.body.OrderNumber"), }, Events: map[string]*armintegrationspaces.TrackingEventDefinition{ "Processing": { OperationName: to.Ptr("ApprovedPO"), OperationType: to.Ptr("Action"), Properties: map[string]any{ "ApprovalStatus": "@action().inputs.ApprovalStatus", "ApproverName": "@action().inputs.ApproverName", "POAmount": "@action().inputs.POamount", }, }, "Received": { OperationName: to.Ptr("manual"), OperationType: to.Ptr("Trigger"), Properties: map[string]any{ "City": "@trigger().outputs.body.Address.City", "Product": "@trigger().outputs.body.Product", "Quantity": "@trigger().outputs.body.Quantity", "State": "@trigger().outputs.body.Address.State", }, }, }, }, }, }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.SaveOrGetBusinessProcessDevelopmentArtifactResponse = armintegrationspaces.SaveOrGetBusinessProcessDevelopmentArtifactResponse{ // Name: to.Ptr("BusinessProcess1"), // Properties: &armintegrationspaces.BusinessProcessDevelopmentArtifactProperties{ // Description: to.Ptr("First Business Process"), // BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ // "Completed": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Denied": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Processing": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Received": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Shipped": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // }, // BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ // "Completed": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Completed"), // StagesBefore: []*string{ // to.Ptr("Shipped")}, // }, // "Denied": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Denied"), // StagesBefore: []*string{ // to.Ptr("Processing")}, // }, // "Processing": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Processing"), // Properties: map[string]*string{ // "ApprovalState": to.Ptr("String"), // "ApproverName": to.Ptr("String"), // "POAmount": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Received")}, // }, // "Received": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("received"), // Properties: map[string]*string{ // "City": to.Ptr("String"), // "Product": to.Ptr("String"), // "Quantity": to.Ptr("Integer"), // "State": to.Ptr("String"), // }, // }, // "Shipped": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Shipped"), // Properties: map[string]*string{ // "ShipPriority": to.Ptr("Integer"), // "TrackingID": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Denied")}, // }, // }, // Identifier: &armintegrationspaces.BusinessProcessIdentifier{ // PropertyName: to.Ptr("businessIdentifier-1"), // PropertyType: to.Ptr("String"), // }, // TrackingProfiles: map[string]*armintegrationspaces.TrackingProfileDefinition{ // "subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1": &armintegrationspaces.TrackingProfileDefinition{ // Schema: to.Ptr("https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2023-01-01/trackingdefinitionschema.json#"), // BusinessProcess: &armintegrationspaces.BusinessProcessReference{ // Name: to.Ptr("businessProcess1"), // Version: to.Ptr("d52c9c91-6e10-4a90-9c1f-08ee5d01c656"), // }, // TrackingDefinitions: map[string]*armintegrationspaces.FlowTrackingDefinition{ // "Fulfillment": &armintegrationspaces.FlowTrackingDefinition{ // CorrelationContext: &armintegrationspaces.TrackingCorrelationContext{ // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // PropertyName: to.Ptr("OrderNumber"), // Value: to.Ptr("@trigger().outputs.body.OrderNumber"), // }, // Events: map[string]*armintegrationspaces.TrackingEventDefinition{ // "Completed": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // }, // }, // "Denied": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // }, // }, // "Shipped": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // "ShipPriority": "@action().inputs.shipPriority", // "TrackingID": "@action().inputs.trackingID", // }, // }, // }, // }, // "PurchaseOrder": &armintegrationspaces.FlowTrackingDefinition{ // CorrelationContext: &armintegrationspaces.TrackingCorrelationContext{ // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // PropertyName: to.Ptr("OrderNumber"), // Value: to.Ptr("@trigger().outputs.body.OrderNumber"), // }, // Events: map[string]*armintegrationspaces.TrackingEventDefinition{ // "Processing": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // Properties: map[string]any{ // "ApprovalStatus": "@action().inputs.ApprovalStatus", // "ApproverName": "@action().inputs.ApproverName", // "POAmount": "@action().inputs.POamount", // }, // }, // "Received": &armintegrationspaces.TrackingEventDefinition{ // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // Properties: map[string]any{ // "City": "@trigger().outputs.body.Address.City", // "Product": "@trigger().outputs.body.Product", // "Quantity": "@trigger().outputs.body.Quantity", // "State": "@trigger().outputs.body.Address.State", // }, // }, // }, // }, // }, // }, // }, // }, // SystemData: &armintegrationspaces.SystemData{ // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-06T22:53:01.849Z"); return t}()), // }, // } }
Output:
func (*ApplicationsClient) ValidateBusinessProcessDevelopmentArtifact ¶
func (client *ApplicationsClient) ValidateBusinessProcessDevelopmentArtifact(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, body SaveOrValidateBusinessProcessDevelopmentArtifactRequest, options *ApplicationsClientValidateBusinessProcessDevelopmentArtifactOptions) (ApplicationsClientValidateBusinessProcessDevelopmentArtifactResponse, error)
ValidateBusinessProcessDevelopmentArtifact - The validate business process development artifact action. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- body - The content of the action request
- options - ApplicationsClientValidateBusinessProcessDevelopmentArtifactOptions contains the optional parameters for the ApplicationsClient.ValidateBusinessProcessDevelopmentArtifact method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Applications_ValidateBusinessProcessDevelopmentArtifact.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewApplicationsClient().ValidateBusinessProcessDevelopmentArtifact(ctx, "testrg", "Space1", "Application1", armintegrationspaces.SaveOrValidateBusinessProcessDevelopmentArtifactRequest{ Name: to.Ptr("BusinessProcess1"), Properties: &armintegrationspaces.BusinessProcessDevelopmentArtifactProperties{ Description: to.Ptr("First Business Process"), BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ "Completed": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("CompletedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("Fulfillment"), }, "Denied": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("DeniedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("Fulfillment"), }, "Processing": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("ApprovedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("PurchaseOrder"), }, "Received": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("manual"), OperationType: to.Ptr("Trigger"), WorkflowName: to.Ptr("PurchaseOrder"), }, "Shipped": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("ShippedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("Fulfillment"), }, }, BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ "Completed": { Description: to.Ptr("Completed"), StagesBefore: []*string{ to.Ptr("Shipped")}, }, "Denied": { Description: to.Ptr("Denied"), StagesBefore: []*string{ to.Ptr("Processing")}, }, "Processing": { Description: to.Ptr("Processing"), Properties: map[string]*string{ "ApprovalState": to.Ptr("String"), "ApproverName": to.Ptr("String"), "POAmount": to.Ptr("Integer"), }, StagesBefore: []*string{ to.Ptr("Received")}, }, "Received@": { Description: to.Ptr("received"), Properties: map[string]*string{ "City": to.Ptr("String"), "Product": to.Ptr("String"), "Quantity": to.Ptr("Integer"), "State": to.Ptr("String"), }, }, "Shipped": { Description: to.Ptr("Shipped"), Properties: map[string]*string{ "ShipPriority": to.Ptr("Integer"), "TrackingID": to.Ptr("Integer"), }, StagesBefore: []*string{ to.Ptr("Denied")}, }, }, Identifier: &armintegrationspaces.BusinessProcessIdentifier{ PropertyName: to.Ptr("businessIdentifier-1"), PropertyType: to.Ptr("String"), }, TrackingProfiles: map[string]*armintegrationspaces.TrackingProfileDefinition{ "subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1": { Schema: to.Ptr("https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2023-01-01/trackingdefinitionschema.json#"), BusinessProcess: &armintegrationspaces.BusinessProcessReference{ Name: to.Ptr("businessProcess1"), Version: to.Ptr("d52c9c91-6e10-4a90-9c1f-08ee5d01c656"), }, TrackingDefinitions: map[string]*armintegrationspaces.FlowTrackingDefinition{ "Fulfillment": { CorrelationContext: &armintegrationspaces.TrackingCorrelationContext{ OperationName: to.Ptr("manual"), OperationType: to.Ptr("Trigger"), PropertyName: to.Ptr("OrderNumber"), Value: to.Ptr("@trigger().outputs.body.OrderNumber"), }, Events: map[string]*armintegrationspaces.TrackingEventDefinition{ "Completed": { OperationName: to.Ptr("CompletedPO"), OperationType: to.Ptr("Action"), Properties: map[string]any{}, }, "Denied": { OperationName: to.Ptr("DeniedPO"), OperationType: to.Ptr("Action"), Properties: map[string]any{}, }, "Shipped": { OperationName: to.Ptr("ShippedPO"), OperationType: to.Ptr("Action"), Properties: map[string]any{ "ShipPriority": "@action().inputs.shipPriority", "TrackingID": "@action().inputs.trackingID", }, }, }, }, "PurchaseOrder": { CorrelationContext: &armintegrationspaces.TrackingCorrelationContext{ OperationName: to.Ptr("manual"), OperationType: to.Ptr("Trigger"), PropertyName: to.Ptr("OrderNumber"), Value: to.Ptr("@trigger().outputs.body.OrderNumber"), }, Events: map[string]*armintegrationspaces.TrackingEventDefinition{ "Processing": { OperationName: to.Ptr("ApprovedPO"), OperationType: to.Ptr("Action"), Properties: map[string]any{ "ApprovalStatus": "@action().inputs.ApprovalStatus", "ApproverName": "@action().inputs.ApproverName", "POAmount": "@action().inputs.POamount", }, }, "Received": { OperationName: to.Ptr("manual"), OperationType: to.Ptr("Trigger"), Properties: map[string]any{ "City": "@trigger().outputs.body.Address.City", "Product": "@trigger().outputs.body.Product", "Quantity": "@trigger().outputs.body.Quantity", "State": "@trigger().outputs.body.Address.State", }, }, }, }, }, }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
type ApplicationsClientCreateOrUpdateOptions ¶
type ApplicationsClientCreateOrUpdateOptions struct { }
ApplicationsClientCreateOrUpdateOptions contains the optional parameters for the ApplicationsClient.CreateOrUpdate method.
type ApplicationsClientCreateOrUpdateResponse ¶
type ApplicationsClientCreateOrUpdateResponse struct { // An integration application under space. Application }
ApplicationsClientCreateOrUpdateResponse contains the response from method ApplicationsClient.CreateOrUpdate.
type ApplicationsClientDeleteBusinessProcessDevelopmentArtifactOptions ¶
type ApplicationsClientDeleteBusinessProcessDevelopmentArtifactOptions struct { }
ApplicationsClientDeleteBusinessProcessDevelopmentArtifactOptions contains the optional parameters for the ApplicationsClient.DeleteBusinessProcessDevelopmentArtifact method.
type ApplicationsClientDeleteBusinessProcessDevelopmentArtifactResponse ¶
type ApplicationsClientDeleteBusinessProcessDevelopmentArtifactResponse struct { }
ApplicationsClientDeleteBusinessProcessDevelopmentArtifactResponse contains the response from method ApplicationsClient.DeleteBusinessProcessDevelopmentArtifact.
type ApplicationsClientDeleteOptions ¶
type ApplicationsClientDeleteOptions struct { }
ApplicationsClientDeleteOptions contains the optional parameters for the ApplicationsClient.Delete method.
type ApplicationsClientDeleteResponse ¶
type ApplicationsClientDeleteResponse struct { }
ApplicationsClientDeleteResponse contains the response from method ApplicationsClient.Delete.
type ApplicationsClientGetBusinessProcessDevelopmentArtifactOptions ¶
type ApplicationsClientGetBusinessProcessDevelopmentArtifactOptions struct { }
ApplicationsClientGetBusinessProcessDevelopmentArtifactOptions contains the optional parameters for the ApplicationsClient.GetBusinessProcessDevelopmentArtifact method.
type ApplicationsClientGetBusinessProcessDevelopmentArtifactResponse ¶
type ApplicationsClientGetBusinessProcessDevelopmentArtifactResponse struct { // The business process development artifact save or get response. SaveOrGetBusinessProcessDevelopmentArtifactResponse }
ApplicationsClientGetBusinessProcessDevelopmentArtifactResponse contains the response from method ApplicationsClient.GetBusinessProcessDevelopmentArtifact.
type ApplicationsClientGetOptions ¶
type ApplicationsClientGetOptions struct { }
ApplicationsClientGetOptions contains the optional parameters for the ApplicationsClient.Get method.
type ApplicationsClientGetResponse ¶
type ApplicationsClientGetResponse struct { // An integration application under space. Application }
ApplicationsClientGetResponse contains the response from method ApplicationsClient.Get.
type ApplicationsClientListBusinessProcessDevelopmentArtifactsOptions ¶
type ApplicationsClientListBusinessProcessDevelopmentArtifactsOptions struct { }
ApplicationsClientListBusinessProcessDevelopmentArtifactsOptions contains the optional parameters for the ApplicationsClient.ListBusinessProcessDevelopmentArtifacts method.
type ApplicationsClientListBusinessProcessDevelopmentArtifactsResponse ¶
type ApplicationsClientListBusinessProcessDevelopmentArtifactsResponse struct { // The business process development artifact get collection response. ListBusinessProcessDevelopmentArtifactsResponse }
ApplicationsClientListBusinessProcessDevelopmentArtifactsResponse contains the response from method ApplicationsClient.ListBusinessProcessDevelopmentArtifacts.
type ApplicationsClientListBySpaceOptions ¶
type ApplicationsClientListBySpaceOptions struct { // Expand the indicated resources into the response. Expand []string // Filter the result list using the given expression. Filter *string // The maximum number of result items per page. Maxpagesize *int32 // Expressions that specify the order of returned results. Orderby []string // Select the specified fields to be included in the response. Select []string // The number of result items to skip. Skip *int32 // The number of result items to return. Top *int32 }
ApplicationsClientListBySpaceOptions contains the optional parameters for the ApplicationsClient.NewListBySpacePager method.
type ApplicationsClientListBySpaceResponse ¶
type ApplicationsClientListBySpaceResponse struct { // The response of a Application list operation. ApplicationListResult }
ApplicationsClientListBySpaceResponse contains the response from method ApplicationsClient.NewListBySpacePager.
type ApplicationsClientPatchOptions ¶
type ApplicationsClientPatchOptions struct { }
ApplicationsClientPatchOptions contains the optional parameters for the ApplicationsClient.Patch method.
type ApplicationsClientPatchResponse ¶
type ApplicationsClientPatchResponse struct { // An integration application under space. Application }
ApplicationsClientPatchResponse contains the response from method ApplicationsClient.Patch.
type ApplicationsClientSaveBusinessProcessDevelopmentArtifactOptions ¶
type ApplicationsClientSaveBusinessProcessDevelopmentArtifactOptions struct { }
ApplicationsClientSaveBusinessProcessDevelopmentArtifactOptions contains the optional parameters for the ApplicationsClient.SaveBusinessProcessDevelopmentArtifact method.
type ApplicationsClientSaveBusinessProcessDevelopmentArtifactResponse ¶
type ApplicationsClientSaveBusinessProcessDevelopmentArtifactResponse struct { // The business process development artifact save or get response. SaveOrGetBusinessProcessDevelopmentArtifactResponse }
ApplicationsClientSaveBusinessProcessDevelopmentArtifactResponse contains the response from method ApplicationsClient.SaveBusinessProcessDevelopmentArtifact.
type ApplicationsClientValidateBusinessProcessDevelopmentArtifactOptions ¶
type ApplicationsClientValidateBusinessProcessDevelopmentArtifactOptions struct { }
ApplicationsClientValidateBusinessProcessDevelopmentArtifactOptions contains the optional parameters for the ApplicationsClient.ValidateBusinessProcessDevelopmentArtifact method.
type ApplicationsClientValidateBusinessProcessDevelopmentArtifactResponse ¶
type ApplicationsClientValidateBusinessProcessDevelopmentArtifactResponse struct { }
ApplicationsClientValidateBusinessProcessDevelopmentArtifactResponse contains the response from method ApplicationsClient.ValidateBusinessProcessDevelopmentArtifact.
type BusinessProcess ¶
type BusinessProcess struct { // The resource-specific properties for this resource. Properties *BusinessProcessProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
BusinessProcess - A business process under application.
func (BusinessProcess) MarshalJSON ¶
func (b BusinessProcess) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcess.
func (*BusinessProcess) UnmarshalJSON ¶
func (b *BusinessProcess) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcess.
type BusinessProcessDevelopmentArtifactProperties ¶
type BusinessProcessDevelopmentArtifactProperties struct { // The business process mapping. BusinessProcessMapping map[string]*BusinessProcessMappingItem // The business process stages. BusinessProcessStages map[string]*BusinessProcessStage // The description of the business process. Description *string // The business process identifier. Identifier *BusinessProcessIdentifier // The tracking profile for the business process. TrackingProfiles map[string]*TrackingProfileDefinition }
BusinessProcessDevelopmentArtifactProperties - The properties of business process development artifact.
func (BusinessProcessDevelopmentArtifactProperties) MarshalJSON ¶
func (b BusinessProcessDevelopmentArtifactProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcessDevelopmentArtifactProperties.
func (*BusinessProcessDevelopmentArtifactProperties) UnmarshalJSON ¶
func (b *BusinessProcessDevelopmentArtifactProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcessDevelopmentArtifactProperties.
type BusinessProcessIdentifier ¶
type BusinessProcessIdentifier struct { // The property name of the business process identifier. PropertyName *string // The property type of the business process identifier. PropertyType *string }
BusinessProcessIdentifier - The properties of business process identifier.
func (BusinessProcessIdentifier) MarshalJSON ¶
func (b BusinessProcessIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcessIdentifier.
func (*BusinessProcessIdentifier) UnmarshalJSON ¶
func (b *BusinessProcessIdentifier) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcessIdentifier.
type BusinessProcessListResult ¶
type BusinessProcessListResult struct { // REQUIRED; The BusinessProcess items on this page Value []*BusinessProcess // The link to the next page of items NextLink *string }
BusinessProcessListResult - The response of a BusinessProcess list operation.
func (BusinessProcessListResult) MarshalJSON ¶
func (b BusinessProcessListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcessListResult.
func (*BusinessProcessListResult) UnmarshalJSON ¶
func (b *BusinessProcessListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcessListResult.
type BusinessProcessMappingItem ¶
type BusinessProcessMappingItem struct { // The logic app resource id. LogicAppResourceID *string // The operation name. OperationName *string // The mapping item operation type of the business process. OperationType *string // The workflow name within the logic app. WorkflowName *string }
BusinessProcessMappingItem - The properties of business process mapping.
func (BusinessProcessMappingItem) MarshalJSON ¶
func (b BusinessProcessMappingItem) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcessMappingItem.
func (*BusinessProcessMappingItem) UnmarshalJSON ¶
func (b *BusinessProcessMappingItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcessMappingItem.
type BusinessProcessProperties ¶
type BusinessProcessProperties struct { // The business process mapping. BusinessProcessMapping map[string]*BusinessProcessMappingItem // The business process stages. BusinessProcessStages map[string]*BusinessProcessStage // The description of the business process. Description *string // The business process identifier. Identifier *BusinessProcessIdentifier // The table name of the business process. TableName *string // The tracking data store reference name. TrackingDataStoreReferenceName *string // READ-ONLY; The status of the last operation. ProvisioningState *ProvisioningState // READ-ONLY; The version of the business process. Version *string }
BusinessProcessProperties - The properties of business process.
func (BusinessProcessProperties) MarshalJSON ¶
func (b BusinessProcessProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcessProperties.
func (*BusinessProcessProperties) UnmarshalJSON ¶
func (b *BusinessProcessProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcessProperties.
type BusinessProcessReference ¶
type BusinessProcessReference struct { // The business process name. Name *string // The business process version. Version *string }
BusinessProcessReference - The business process reference.
func (BusinessProcessReference) MarshalJSON ¶
func (b BusinessProcessReference) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcessReference.
func (*BusinessProcessReference) UnmarshalJSON ¶
func (b *BusinessProcessReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcessReference.
type BusinessProcessStage ¶
type BusinessProcessStage struct { // The description of the business stage. Description *string // The properties within the properties of the business process stage. Properties map[string]*string // The property to keep track of stages before current in the business process stage. StagesBefore []*string }
BusinessProcessStage - The properties of business process stage.
func (BusinessProcessStage) MarshalJSON ¶
func (b BusinessProcessStage) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcessStage.
func (*BusinessProcessStage) UnmarshalJSON ¶
func (b *BusinessProcessStage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcessStage.
type BusinessProcessUpdate ¶
type BusinessProcessUpdate struct { // The updatable properties of the BusinessProcess. Properties *BusinessProcessUpdateProperties }
BusinessProcessUpdate - The type used for update operations of the BusinessProcess.
func (BusinessProcessUpdate) MarshalJSON ¶
func (b BusinessProcessUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcessUpdate.
func (*BusinessProcessUpdate) UnmarshalJSON ¶
func (b *BusinessProcessUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcessUpdate.
type BusinessProcessUpdateProperties ¶
type BusinessProcessUpdateProperties struct { // The business process mapping. BusinessProcessMapping map[string]*BusinessProcessMappingItem // The business process stages. BusinessProcessStages map[string]*BusinessProcessStage // The description of the business process. Description *string // The business process identifier. Identifier *BusinessProcessIdentifier // The table name of the business process. TableName *string // The tracking data store reference name. TrackingDataStoreReferenceName *string }
BusinessProcessUpdateProperties - The updatable properties of the BusinessProcess.
func (BusinessProcessUpdateProperties) MarshalJSON ¶
func (b BusinessProcessUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcessUpdateProperties.
func (*BusinessProcessUpdateProperties) UnmarshalJSON ¶
func (b *BusinessProcessUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcessUpdateProperties.
type BusinessProcessVersion ¶
type BusinessProcessVersion struct { // The resource-specific properties for this resource. Properties *BusinessProcessProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
BusinessProcessVersion - A business process version.
func (BusinessProcessVersion) MarshalJSON ¶
func (b BusinessProcessVersion) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcessVersion.
func (*BusinessProcessVersion) UnmarshalJSON ¶
func (b *BusinessProcessVersion) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcessVersion.
type BusinessProcessVersionListResult ¶
type BusinessProcessVersionListResult struct { // REQUIRED; The BusinessProcessVersion items on this page Value []*BusinessProcessVersion // The link to the next page of items NextLink *string }
BusinessProcessVersionListResult - The response of a BusinessProcessVersion list operation.
func (BusinessProcessVersionListResult) MarshalJSON ¶
func (b BusinessProcessVersionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BusinessProcessVersionListResult.
func (*BusinessProcessVersionListResult) UnmarshalJSON ¶
func (b *BusinessProcessVersionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BusinessProcessVersionListResult.
type BusinessProcessVersionsClient ¶
type BusinessProcessVersionsClient struct {
// contains filtered or unexported fields
}
BusinessProcessVersionsClient contains the methods for the BusinessProcessVersions group. Don't use this type directly, use NewBusinessProcessVersionsClient() instead.
func NewBusinessProcessVersionsClient ¶
func NewBusinessProcessVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BusinessProcessVersionsClient, error)
NewBusinessProcessVersionsClient creates a new instance of BusinessProcessVersionsClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BusinessProcessVersionsClient) Get ¶
func (client *BusinessProcessVersionsClient) Get(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, businessProcessName string, businessProcessVersion string, options *BusinessProcessVersionsClientGetOptions) (BusinessProcessVersionsClientGetResponse, error)
Get - Get a BusinessProcessVersion If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- businessProcessName - The name of the business process
- businessProcessVersion - The version of the business process
- options - BusinessProcessVersionsClientGetOptions contains the optional parameters for the BusinessProcessVersionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/BusinessProcessVersions_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBusinessProcessVersionsClient().Get(ctx, "testrg", "Space1", "Application1", "BusinessProcess1", "08585074782265427079", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BusinessProcessVersion = armintegrationspaces.BusinessProcessVersion{ // Name: to.Ptr("08585074782265427079"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications/businessProcesses/versions"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1/businessProcesses/BusinessProcess1/versions/08585074782265427079"), // Properties: &armintegrationspaces.BusinessProcessProperties{ // Description: to.Ptr("Sample Business Process"), // BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ // "Completed": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Denied": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Processing": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Received": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Shipped": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // }, // BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ // "Completed": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Completed"), // StagesBefore: []*string{ // to.Ptr("Shipped")}, // }, // "Denied": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Denied"), // StagesBefore: []*string{ // to.Ptr("Processing")}, // }, // "Processing": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Processing"), // Properties: map[string]*string{ // "ApprovalState": to.Ptr("String"), // "ApproverName": to.Ptr("String"), // "POAmount": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Received")}, // }, // "Received": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("received"), // Properties: map[string]*string{ // "City": to.Ptr("String"), // "Product": to.Ptr("String"), // "Quantity": to.Ptr("Integer"), // "State": to.Ptr("String"), // }, // }, // "Shipped": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Shipped"), // Properties: map[string]*string{ // "ShipPriority": to.Ptr("Integer"), // "TrackingID": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Denied")}, // }, // }, // Identifier: &armintegrationspaces.BusinessProcessIdentifier{ // PropertyName: to.Ptr("businessIdentifier-1"), // PropertyType: to.Ptr("String"), // }, // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // TableName: to.Ptr("table1"), // TrackingDataStoreReferenceName: to.Ptr("trackingDataStoreReferenceName1"), // Version: to.Ptr("08585074782265427079"), // }, // } }
Output:
func (*BusinessProcessVersionsClient) NewListByBusinessProcessPager ¶
func (client *BusinessProcessVersionsClient) NewListByBusinessProcessPager(resourceGroupName string, spaceName string, applicationName string, businessProcessName string, options *BusinessProcessVersionsClientListByBusinessProcessOptions) *runtime.Pager[BusinessProcessVersionsClientListByBusinessProcessResponse]
NewListByBusinessProcessPager - List BusinessProcessVersion resources by BusinessProcess
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- businessProcessName - The name of the business process
- options - BusinessProcessVersionsClientListByBusinessProcessOptions contains the optional parameters for the BusinessProcessVersionsClient.NewListByBusinessProcessPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/BusinessProcessVersions_ListByBusinessProcess.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBusinessProcessVersionsClient().NewListByBusinessProcessPager("testrg", "Space1", "Application1", "BusinessProcess1", &armintegrationspaces.BusinessProcessVersionsClientListByBusinessProcessOptions{Top: nil, Skip: nil, Maxpagesize: nil, Filter: nil, Select: []string{}, Expand: []string{}, Orderby: []string{}, }) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.BusinessProcessVersionListResult = armintegrationspaces.BusinessProcessVersionListResult{ // Value: []*armintegrationspaces.BusinessProcessVersion{ // { // Name: to.Ptr("08585074782265427079"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications/BusinessProcesses/versions"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1/businessProcesses/BusinessProcess1/versions/08585074782265427079"), // Properties: &armintegrationspaces.BusinessProcessProperties{ // Description: to.Ptr("First Business Process"), // BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ // "Completed": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Denied": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Processing": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Received": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Shipped": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // }, // BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ // "Completed": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Completed"), // StagesBefore: []*string{ // to.Ptr("Shipped")}, // }, // "Denied": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Denied"), // StagesBefore: []*string{ // to.Ptr("Processing")}, // }, // "Processing": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Processing"), // Properties: map[string]*string{ // "ApprovalState": to.Ptr("String"), // "ApproverName": to.Ptr("String"), // "POAmount": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Received")}, // }, // "Received": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("received"), // Properties: map[string]*string{ // "City": to.Ptr("String"), // "Product": to.Ptr("String"), // "Quantity": to.Ptr("Integer"), // "State": to.Ptr("String"), // }, // }, // "Shipped": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Shipped"), // Properties: map[string]*string{ // "ShipPriority": to.Ptr("Integer"), // "TrackingID": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Denied")}, // }, // }, // Identifier: &armintegrationspaces.BusinessProcessIdentifier{ // PropertyName: to.Ptr("businessIdentifier-1"), // PropertyType: to.Ptr("String"), // }, // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // TableName: to.Ptr("table1"), // TrackingDataStoreReferenceName: to.Ptr("trackingDataStoreReferenceName1"), // Version: to.Ptr("08585074782265427079"), // }, // }}, // } } }
Output:
type BusinessProcessVersionsClientGetOptions ¶
type BusinessProcessVersionsClientGetOptions struct { }
BusinessProcessVersionsClientGetOptions contains the optional parameters for the BusinessProcessVersionsClient.Get method.
type BusinessProcessVersionsClientGetResponse ¶
type BusinessProcessVersionsClientGetResponse struct { // A business process version. BusinessProcessVersion }
BusinessProcessVersionsClientGetResponse contains the response from method BusinessProcessVersionsClient.Get.
type BusinessProcessVersionsClientListByBusinessProcessOptions ¶
type BusinessProcessVersionsClientListByBusinessProcessOptions struct { // Expand the indicated resources into the response. Expand []string // Filter the result list using the given expression. Filter *string // The maximum number of result items per page. Maxpagesize *int32 // Expressions that specify the order of returned results. Orderby []string // Select the specified fields to be included in the response. Select []string // The number of result items to skip. Skip *int32 // The number of result items to return. Top *int32 }
BusinessProcessVersionsClientListByBusinessProcessOptions contains the optional parameters for the BusinessProcessVersionsClient.NewListByBusinessProcessPager method.
type BusinessProcessVersionsClientListByBusinessProcessResponse ¶
type BusinessProcessVersionsClientListByBusinessProcessResponse struct { // The response of a BusinessProcessVersion list operation. BusinessProcessVersionListResult }
BusinessProcessVersionsClientListByBusinessProcessResponse contains the response from method BusinessProcessVersionsClient.NewListByBusinessProcessPager.
type BusinessProcessesClient ¶
type BusinessProcessesClient struct {
// contains filtered or unexported fields
}
BusinessProcessesClient contains the methods for the BusinessProcesses group. Don't use this type directly, use NewBusinessProcessesClient() instead.
func NewBusinessProcessesClient ¶
func NewBusinessProcessesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BusinessProcessesClient, error)
NewBusinessProcessesClient creates a new instance of BusinessProcessesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BusinessProcessesClient) CreateOrUpdate ¶
func (client *BusinessProcessesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, businessProcessName string, resource BusinessProcess, options *BusinessProcessesClientCreateOrUpdateOptions) (BusinessProcessesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create a BusinessProcess If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- businessProcessName - The name of the business process
- resource - Resource create parameters.
- options - BusinessProcessesClientCreateOrUpdateOptions contains the optional parameters for the BusinessProcessesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/BusinessProcesses_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBusinessProcessesClient().CreateOrUpdate(ctx, "testrg", "Space1", "Application1", "BusinessProcess1", armintegrationspaces.BusinessProcess{ Properties: &armintegrationspaces.BusinessProcessProperties{ Description: to.Ptr("First Business Process"), BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ "Completed": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("CompletedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("Fulfillment"), }, "Denied": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("DeniedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("Fulfillment"), }, "Processing": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("ApprovedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("PurchaseOrder"), }, "Received": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("manual"), OperationType: to.Ptr("Trigger"), WorkflowName: to.Ptr("PurchaseOrder"), }, "Shipped": { LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), OperationName: to.Ptr("ShippedPO"), OperationType: to.Ptr("Action"), WorkflowName: to.Ptr("Fulfillment"), }, }, BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ "Completed": { Description: to.Ptr("Completed"), StagesBefore: []*string{ to.Ptr("Shipped")}, }, "Denied": { Description: to.Ptr("Denied"), StagesBefore: []*string{ to.Ptr("Processing")}, }, "Processing": { Description: to.Ptr("Processing"), Properties: map[string]*string{ "ApprovalState": to.Ptr("String"), "ApproverName": to.Ptr("String"), "POAmount": to.Ptr("Integer"), }, StagesBefore: []*string{ to.Ptr("Received")}, }, "Received": { Description: to.Ptr("received"), Properties: map[string]*string{ "City": to.Ptr("String"), "Product": to.Ptr("String"), "Quantity": to.Ptr("Integer"), "State": to.Ptr("String"), }, }, "Shipped": { Description: to.Ptr("Shipped"), Properties: map[string]*string{ "ShipPriority": to.Ptr("Integer"), "TrackingID": to.Ptr("Integer"), }, StagesBefore: []*string{ to.Ptr("Denied")}, }, }, Identifier: &armintegrationspaces.BusinessProcessIdentifier{ PropertyName: to.Ptr("businessIdentifier-1"), PropertyType: to.Ptr("String"), }, TableName: to.Ptr("table1"), TrackingDataStoreReferenceName: to.Ptr("trackingDataStoreReferenceName1"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BusinessProcess = armintegrationspaces.BusinessProcess{ // Name: to.Ptr("BusinessProcess1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications/businessProcesses"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1/BusinessProcesses/BusinessProcess1"), // Properties: &armintegrationspaces.BusinessProcessProperties{ // Description: to.Ptr("First Business Process"), // BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ // "Completed": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Denied": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Processing": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Received": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Shipped": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // }, // BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ // "Completed": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Completed"), // StagesBefore: []*string{ // to.Ptr("Shipped")}, // }, // "Denied": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Denied"), // StagesBefore: []*string{ // to.Ptr("Processing")}, // }, // "Processing": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Processing"), // Properties: map[string]*string{ // "ApprovalState": to.Ptr("String"), // "ApproverName": to.Ptr("String"), // "POAmount": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Received")}, // }, // "Received": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("received"), // Properties: map[string]*string{ // "City": to.Ptr("String"), // "Product": to.Ptr("String"), // "Quantity": to.Ptr("Integer"), // "State": to.Ptr("String"), // }, // }, // "Shipped": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Shipped"), // Properties: map[string]*string{ // "ShipPriority": to.Ptr("Integer"), // "TrackingID": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Denied")}, // }, // }, // Identifier: &armintegrationspaces.BusinessProcessIdentifier{ // PropertyName: to.Ptr("businessIdentifier-1"), // PropertyType: to.Ptr("String"), // }, // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // TableName: to.Ptr("table1"), // TrackingDataStoreReferenceName: to.Ptr("trackingDataStoreReferenceName1"), // Version: to.Ptr("08585074782265427079"), // }, // } }
Output:
func (*BusinessProcessesClient) Delete ¶
func (client *BusinessProcessesClient) Delete(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, businessProcessName string, options *BusinessProcessesClientDeleteOptions) (BusinessProcessesClientDeleteResponse, error)
Delete - Delete a BusinessProcess If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- businessProcessName - The name of the business process
- options - BusinessProcessesClientDeleteOptions contains the optional parameters for the BusinessProcessesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/BusinessProcesses_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewBusinessProcessesClient().Delete(ctx, "testrg", "Space1", "Application1", "BusinessProcess1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*BusinessProcessesClient) Get ¶
func (client *BusinessProcessesClient) Get(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, businessProcessName string, options *BusinessProcessesClientGetOptions) (BusinessProcessesClientGetResponse, error)
Get - Get a BusinessProcess If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- businessProcessName - The name of the business process
- options - BusinessProcessesClientGetOptions contains the optional parameters for the BusinessProcessesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/BusinessProcesses_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBusinessProcessesClient().Get(ctx, "testrg", "Space1", "Application1", "BusinessProcess1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BusinessProcess = armintegrationspaces.BusinessProcess{ // Name: to.Ptr("BusinessProcess1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications/businessProcesses"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1/businessProcesses/BusinessProcess1"), // Properties: &armintegrationspaces.BusinessProcessProperties{ // Description: to.Ptr("Sample Business Process"), // BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ // "Completed": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Denied": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Processing": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Received": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Shipped": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // }, // BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ // "Completed": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Completed"), // StagesBefore: []*string{ // to.Ptr("Shipped")}, // }, // "Denied": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Denied"), // StagesBefore: []*string{ // to.Ptr("Processing")}, // }, // "Processing": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Processing"), // Properties: map[string]*string{ // "ApprovalState": to.Ptr("String"), // "ApproverName": to.Ptr("String"), // "POAmount": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Received")}, // }, // "Received": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("received"), // Properties: map[string]*string{ // "City": to.Ptr("String"), // "Product": to.Ptr("String"), // "Quantity": to.Ptr("Integer"), // "State": to.Ptr("String"), // }, // }, // "Shipped": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Shipped"), // Properties: map[string]*string{ // "ShipPriority": to.Ptr("Integer"), // "TrackingID": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Denied")}, // }, // }, // Identifier: &armintegrationspaces.BusinessProcessIdentifier{ // PropertyName: to.Ptr("businessIdentifier-1"), // PropertyType: to.Ptr("String"), // }, // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // TableName: to.Ptr("table1"), // TrackingDataStoreReferenceName: to.Ptr("trackingDataStoreReferenceName1"), // Version: to.Ptr("08585074782265427079"), // }, // } }
Output:
func (*BusinessProcessesClient) NewListByApplicationPager ¶
func (client *BusinessProcessesClient) NewListByApplicationPager(resourceGroupName string, spaceName string, applicationName string, options *BusinessProcessesClientListByApplicationOptions) *runtime.Pager[BusinessProcessesClientListByApplicationResponse]
NewListByApplicationPager - List BusinessProcess resources by Application
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- options - BusinessProcessesClientListByApplicationOptions contains the optional parameters for the BusinessProcessesClient.NewListByApplicationPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/BusinessProcesses_ListByApplication.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBusinessProcessesClient().NewListByApplicationPager("testrg", "Space1", "Application1", &armintegrationspaces.BusinessProcessesClientListByApplicationOptions{Top: nil, Skip: nil, Maxpagesize: nil, Filter: nil, Select: []string{}, Expand: []string{}, Orderby: []string{}, }) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.BusinessProcessListResult = armintegrationspaces.BusinessProcessListResult{ // Value: []*armintegrationspaces.BusinessProcess{ // { // Name: to.Ptr("BusinessProcess1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications/BusinessProcesses"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1/businessProcesses/BusinessProcess1"), // Properties: &armintegrationspaces.BusinessProcessProperties{ // Description: to.Ptr("First Business Process"), // BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ // "Completed": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Denied": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Processing": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Received": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Shipped": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // }, // BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ // "Completed": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Completed"), // StagesBefore: []*string{ // to.Ptr("Shipped")}, // }, // "Denied": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Denied"), // StagesBefore: []*string{ // to.Ptr("Processing")}, // }, // "Processing": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Processing"), // Properties: map[string]*string{ // "ApprovalState": to.Ptr("String"), // "ApproverName": to.Ptr("String"), // "POAmount": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Received")}, // }, // "Received": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("received"), // Properties: map[string]*string{ // "City": to.Ptr("String"), // "Product": to.Ptr("String"), // "Quantity": to.Ptr("Integer"), // "State": to.Ptr("String"), // }, // }, // "Shipped": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Shipped"), // Properties: map[string]*string{ // "ShipPriority": to.Ptr("Integer"), // "TrackingID": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Denied")}, // }, // }, // Identifier: &armintegrationspaces.BusinessProcessIdentifier{ // PropertyName: to.Ptr("businessIdentifier-1"), // PropertyType: to.Ptr("String"), // }, // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // TableName: to.Ptr("table1"), // TrackingDataStoreReferenceName: to.Ptr("trackingDataStoreReferenceName1"), // Version: to.Ptr("08585074782265427079"), // }, // }}, // } } }
Output:
func (*BusinessProcessesClient) Patch ¶
func (client *BusinessProcessesClient) Patch(ctx context.Context, resourceGroupName string, spaceName string, applicationName string, businessProcessName string, properties BusinessProcessUpdate, options *BusinessProcessesClientPatchOptions) (BusinessProcessesClientPatchResponse, error)
Patch - Update a BusinessProcess If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- applicationName - The name of the Application
- businessProcessName - The name of the business process
- properties - The resource properties to be updated.
- options - BusinessProcessesClientPatchOptions contains the optional parameters for the BusinessProcessesClient.Patch method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/BusinessProcesses_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBusinessProcessesClient().Patch(ctx, "testrg", "Space1", "Application1", "BusinessProcess1", armintegrationspaces.BusinessProcessUpdate{ Properties: &armintegrationspaces.BusinessProcessUpdateProperties{ Description: to.Ptr("First updated business process."), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.BusinessProcess = armintegrationspaces.BusinessProcess{ // Name: to.Ptr("BusinessProcess1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/applications/businessProcesses"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/applications/Application1/businessProcesses/BusinessProcess1"), // Properties: &armintegrationspaces.BusinessProcessProperties{ // Description: to.Ptr("First updated business process."), // BusinessProcessMapping: map[string]*armintegrationspaces.BusinessProcessMappingItem{ // "Completed": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("CompletedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Denied": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("DeniedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // "Processing": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ApprovedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Received": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("manual"), // OperationType: to.Ptr("Trigger"), // WorkflowName: to.Ptr("PurchaseOrder"), // }, // "Shipped": &armintegrationspaces.BusinessProcessMappingItem{ // LogicAppResourceID: to.Ptr("subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"), // OperationName: to.Ptr("ShippedPO"), // OperationType: to.Ptr("Action"), // WorkflowName: to.Ptr("Fulfillment"), // }, // }, // BusinessProcessStages: map[string]*armintegrationspaces.BusinessProcessStage{ // "Completed": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Completed"), // StagesBefore: []*string{ // to.Ptr("Shipped")}, // }, // "Denied": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Denied"), // StagesBefore: []*string{ // to.Ptr("Processing")}, // }, // "Processing": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Processing"), // Properties: map[string]*string{ // "ApprovalState": to.Ptr("String"), // "ApproverName": to.Ptr("String"), // "POAmount": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Received")}, // }, // "Received": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("received"), // Properties: map[string]*string{ // "City": to.Ptr("String"), // "Product": to.Ptr("String"), // "Quantity": to.Ptr("Integer"), // "State": to.Ptr("String"), // }, // }, // "Shipped": &armintegrationspaces.BusinessProcessStage{ // Description: to.Ptr("Shipped"), // Properties: map[string]*string{ // "ShipPriority": to.Ptr("Integer"), // "TrackingID": to.Ptr("Integer"), // }, // StagesBefore: []*string{ // to.Ptr("Denied")}, // }, // }, // Identifier: &armintegrationspaces.BusinessProcessIdentifier{ // PropertyName: to.Ptr("businessIdentifier-1"), // PropertyType: to.Ptr("String"), // }, // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // TableName: to.Ptr("table1"), // TrackingDataStoreReferenceName: to.Ptr("trackingDataStoreReferenceName1"), // Version: to.Ptr("08585074782265427080"), // }, // } }
Output:
type BusinessProcessesClientCreateOrUpdateOptions ¶
type BusinessProcessesClientCreateOrUpdateOptions struct { }
BusinessProcessesClientCreateOrUpdateOptions contains the optional parameters for the BusinessProcessesClient.CreateOrUpdate method.
type BusinessProcessesClientCreateOrUpdateResponse ¶
type BusinessProcessesClientCreateOrUpdateResponse struct { // A business process under application. BusinessProcess }
BusinessProcessesClientCreateOrUpdateResponse contains the response from method BusinessProcessesClient.CreateOrUpdate.
type BusinessProcessesClientDeleteOptions ¶
type BusinessProcessesClientDeleteOptions struct { }
BusinessProcessesClientDeleteOptions contains the optional parameters for the BusinessProcessesClient.Delete method.
type BusinessProcessesClientDeleteResponse ¶
type BusinessProcessesClientDeleteResponse struct { }
BusinessProcessesClientDeleteResponse contains the response from method BusinessProcessesClient.Delete.
type BusinessProcessesClientGetOptions ¶
type BusinessProcessesClientGetOptions struct { }
BusinessProcessesClientGetOptions contains the optional parameters for the BusinessProcessesClient.Get method.
type BusinessProcessesClientGetResponse ¶
type BusinessProcessesClientGetResponse struct { // A business process under application. BusinessProcess }
BusinessProcessesClientGetResponse contains the response from method BusinessProcessesClient.Get.
type BusinessProcessesClientListByApplicationOptions ¶
type BusinessProcessesClientListByApplicationOptions struct { // Expand the indicated resources into the response. Expand []string // Filter the result list using the given expression. Filter *string // The maximum number of result items per page. Maxpagesize *int32 // Expressions that specify the order of returned results. Orderby []string // Select the specified fields to be included in the response. Select []string // The number of result items to skip. Skip *int32 // The number of result items to return. Top *int32 }
BusinessProcessesClientListByApplicationOptions contains the optional parameters for the BusinessProcessesClient.NewListByApplicationPager method.
type BusinessProcessesClientListByApplicationResponse ¶
type BusinessProcessesClientListByApplicationResponse struct { // The response of a BusinessProcess list operation. BusinessProcessListResult }
BusinessProcessesClientListByApplicationResponse contains the response from method BusinessProcessesClient.NewListByApplicationPager.
type BusinessProcessesClientPatchOptions ¶
type BusinessProcessesClientPatchOptions struct { }
BusinessProcessesClientPatchOptions contains the optional parameters for the BusinessProcessesClient.Patch method.
type BusinessProcessesClientPatchResponse ¶
type BusinessProcessesClientPatchResponse struct { // A business process under application. BusinessProcess }
BusinessProcessesClientPatchResponse contains the response from method BusinessProcessesClient.Patch.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewApplicationResourcesClient ¶
func (c *ClientFactory) NewApplicationResourcesClient() *ApplicationResourcesClient
NewApplicationResourcesClient creates a new instance of ApplicationResourcesClient.
func (*ClientFactory) NewApplicationsClient ¶
func (c *ClientFactory) NewApplicationsClient() *ApplicationsClient
NewApplicationsClient creates a new instance of ApplicationsClient.
func (*ClientFactory) NewBusinessProcessVersionsClient ¶
func (c *ClientFactory) NewBusinessProcessVersionsClient() *BusinessProcessVersionsClient
NewBusinessProcessVersionsClient creates a new instance of BusinessProcessVersionsClient.
func (*ClientFactory) NewBusinessProcessesClient ¶
func (c *ClientFactory) NewBusinessProcessesClient() *BusinessProcessesClient
NewBusinessProcessesClient creates a new instance of BusinessProcessesClient.
func (*ClientFactory) NewInfrastructureResourcesClient ¶
func (c *ClientFactory) NewInfrastructureResourcesClient() *InfrastructureResourcesClient
NewInfrastructureResourcesClient creates a new instance of InfrastructureResourcesClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewSpacesClient ¶
func (c *ClientFactory) NewSpacesClient() *SpacesClient
NewSpacesClient creates a new instance of SpacesClient.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type FlowTrackingDefinition ¶
type FlowTrackingDefinition struct { // The tracking correlation context. CorrelationContext *TrackingCorrelationContext // The tracking events. Events map[string]*TrackingEventDefinition }
FlowTrackingDefinition - The workflow tracking definition.
func (FlowTrackingDefinition) MarshalJSON ¶
func (f FlowTrackingDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FlowTrackingDefinition.
func (*FlowTrackingDefinition) UnmarshalJSON ¶
func (f *FlowTrackingDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FlowTrackingDefinition.
type GetOrDeleteBusinessProcessDevelopmentArtifactRequest ¶
type GetOrDeleteBusinessProcessDevelopmentArtifactRequest struct { // REQUIRED; The name of the business process development artifact. Name *string }
GetOrDeleteBusinessProcessDevelopmentArtifactRequest - The business process development artifact get or delete request.
func (GetOrDeleteBusinessProcessDevelopmentArtifactRequest) MarshalJSON ¶
func (g GetOrDeleteBusinessProcessDevelopmentArtifactRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GetOrDeleteBusinessProcessDevelopmentArtifactRequest.
func (*GetOrDeleteBusinessProcessDevelopmentArtifactRequest) UnmarshalJSON ¶
func (g *GetOrDeleteBusinessProcessDevelopmentArtifactRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GetOrDeleteBusinessProcessDevelopmentArtifactRequest.
type InfrastructureResource ¶
type InfrastructureResource struct { // The resource-specific properties for this resource. Properties *InfrastructureResourceProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
InfrastructureResource - An infrastructure resource under Space.
func (InfrastructureResource) MarshalJSON ¶
func (i InfrastructureResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InfrastructureResource.
func (*InfrastructureResource) UnmarshalJSON ¶
func (i *InfrastructureResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InfrastructureResource.
type InfrastructureResourceListResult ¶
type InfrastructureResourceListResult struct { // REQUIRED; The InfrastructureResource items on this page Value []*InfrastructureResource // The link to the next page of items NextLink *string }
InfrastructureResourceListResult - The response of a InfrastructureResource list operation.
func (InfrastructureResourceListResult) MarshalJSON ¶
func (i InfrastructureResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InfrastructureResourceListResult.
func (*InfrastructureResourceListResult) UnmarshalJSON ¶
func (i *InfrastructureResourceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InfrastructureResourceListResult.
type InfrastructureResourceProperties ¶
type InfrastructureResourceProperties struct { // REQUIRED; The id of the infrastructure resource. ResourceID *string // REQUIRED; The type of the infrastructure resource. ResourceType *string // READ-ONLY; The status of the last operation. ProvisioningState *ProvisioningState }
InfrastructureResourceProperties - The properties of infrastructure resource.
func (InfrastructureResourceProperties) MarshalJSON ¶
func (i InfrastructureResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InfrastructureResourceProperties.
func (*InfrastructureResourceProperties) UnmarshalJSON ¶
func (i *InfrastructureResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InfrastructureResourceProperties.
type InfrastructureResourceUpdate ¶
type InfrastructureResourceUpdate struct { // The updatable properties of the InfrastructureResource. Properties *InfrastructureResourceUpdateProperties }
InfrastructureResourceUpdate - The type used for update operations of the InfrastructureResource.
func (InfrastructureResourceUpdate) MarshalJSON ¶
func (i InfrastructureResourceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InfrastructureResourceUpdate.
func (*InfrastructureResourceUpdate) UnmarshalJSON ¶
func (i *InfrastructureResourceUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InfrastructureResourceUpdate.
type InfrastructureResourceUpdateProperties ¶
type InfrastructureResourceUpdateProperties struct { // The id of the infrastructure resource. ResourceID *string // The type of the infrastructure resource. ResourceType *string }
InfrastructureResourceUpdateProperties - The updatable properties of the InfrastructureResource.
func (InfrastructureResourceUpdateProperties) MarshalJSON ¶
func (i InfrastructureResourceUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InfrastructureResourceUpdateProperties.
func (*InfrastructureResourceUpdateProperties) UnmarshalJSON ¶
func (i *InfrastructureResourceUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InfrastructureResourceUpdateProperties.
type InfrastructureResourcesClient ¶
type InfrastructureResourcesClient struct {
// contains filtered or unexported fields
}
InfrastructureResourcesClient contains the methods for the InfrastructureResources group. Don't use this type directly, use NewInfrastructureResourcesClient() instead.
func NewInfrastructureResourcesClient ¶
func NewInfrastructureResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*InfrastructureResourcesClient, error)
NewInfrastructureResourcesClient creates a new instance of InfrastructureResourcesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*InfrastructureResourcesClient) CreateOrUpdate ¶
func (client *InfrastructureResourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, spaceName string, infrastructureResourceName string, resource InfrastructureResource, options *InfrastructureResourcesClientCreateOrUpdateOptions) (InfrastructureResourcesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create a InfrastructureResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- infrastructureResourceName - The name of the infrastructure resource in the space.
- resource - Resource create parameters.
- options - InfrastructureResourcesClientCreateOrUpdateOptions contains the optional parameters for the InfrastructureResourcesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/InfrastructureResources_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewInfrastructureResourcesClient().CreateOrUpdate(ctx, "testrg", "Space1", "InfrastructureResource1", armintegrationspaces.InfrastructureResource{ Properties: &armintegrationspaces.InfrastructureResourceProperties{ ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1"), ResourceType: to.Ptr("Microsoft.ApiManagement/service"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.InfrastructureResource = armintegrationspaces.InfrastructureResource{ // Name: to.Ptr("InfrastructureResource1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/infrastructureresources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/infrastructureResources/InfrastructureResource1"), // Properties: &armintegrationspaces.InfrastructureResourceProperties{ // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1"), // ResourceType: to.Ptr("Microsoft.ApiManagement/service"), // }, // } }
Output:
func (*InfrastructureResourcesClient) Delete ¶
func (client *InfrastructureResourcesClient) Delete(ctx context.Context, resourceGroupName string, spaceName string, infrastructureResourceName string, options *InfrastructureResourcesClientDeleteOptions) (InfrastructureResourcesClientDeleteResponse, error)
Delete - Delete a InfrastructureResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- infrastructureResourceName - The name of the infrastructure resource in the space.
- options - InfrastructureResourcesClientDeleteOptions contains the optional parameters for the InfrastructureResourcesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/InfrastructureResources_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewInfrastructureResourcesClient().Delete(ctx, "testrg", "Space1", "InfrastructureResource1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*InfrastructureResourcesClient) Get ¶
func (client *InfrastructureResourcesClient) Get(ctx context.Context, resourceGroupName string, spaceName string, infrastructureResourceName string, options *InfrastructureResourcesClientGetOptions) (InfrastructureResourcesClientGetResponse, error)
Get - Get a InfrastructureResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- infrastructureResourceName - The name of the infrastructure resource in the space.
- options - InfrastructureResourcesClientGetOptions contains the optional parameters for the InfrastructureResourcesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/InfrastructureResources_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewInfrastructureResourcesClient().Get(ctx, "testrg", "Space1", "InfrastructureResource1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.InfrastructureResource = armintegrationspaces.InfrastructureResource{ // Name: to.Ptr("InfrastructureResource1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/infrastructureresources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/infrastructureResources/InfrastructureResource1"), // Properties: &armintegrationspaces.InfrastructureResourceProperties{ // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1"), // ResourceType: to.Ptr("Microsoft.ApiManagement/service"), // }, // } }
Output:
func (*InfrastructureResourcesClient) NewListBySpacePager ¶
func (client *InfrastructureResourcesClient) NewListBySpacePager(resourceGroupName string, spaceName string, options *InfrastructureResourcesClientListBySpaceOptions) *runtime.Pager[InfrastructureResourcesClientListBySpaceResponse]
NewListBySpacePager - List InfrastructureResource resources by Space
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- options - InfrastructureResourcesClientListBySpaceOptions contains the optional parameters for the InfrastructureResourcesClient.NewListBySpacePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/InfrastructureResources_ListBySpace.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewInfrastructureResourcesClient().NewListBySpacePager("testrg", "Space1", &armintegrationspaces.InfrastructureResourcesClientListBySpaceOptions{Top: nil, Skip: nil, Maxpagesize: nil, Filter: nil, Select: []string{}, Expand: []string{}, Orderby: []string{}, }) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.InfrastructureResourceListResult = armintegrationspaces.InfrastructureResourceListResult{ // Value: []*armintegrationspaces.InfrastructureResource{ // { // Name: to.Ptr("InfrastructureResource1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/infrastructureresources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/infrastructureResources/InfrastructureResource1"), // Properties: &armintegrationspaces.InfrastructureResourceProperties{ // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1"), // ResourceType: to.Ptr("Microsoft.ApiManagement/service"), // }, // }}, // } } }
Output:
func (*InfrastructureResourcesClient) Patch ¶
func (client *InfrastructureResourcesClient) Patch(ctx context.Context, resourceGroupName string, spaceName string, infrastructureResourceName string, properties InfrastructureResourceUpdate, options *InfrastructureResourcesClientPatchOptions) (InfrastructureResourcesClientPatchResponse, error)
Patch - Update a InfrastructureResource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- infrastructureResourceName - The name of the infrastructure resource in the space.
- properties - The resource properties to be updated.
- options - InfrastructureResourcesClientPatchOptions contains the optional parameters for the InfrastructureResourcesClient.Patch method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/InfrastructureResources_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewInfrastructureResourcesClient().Patch(ctx, "testrg", "Space1", "InfrastructureResource1", armintegrationspaces.InfrastructureResourceUpdate{ Properties: &armintegrationspaces.InfrastructureResourceUpdateProperties{ ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1"), ResourceType: to.Ptr("Microsoft.ApiManagement/service"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.InfrastructureResource = armintegrationspaces.InfrastructureResource{ // Name: to.Ptr("InfrastructureResource1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces/infrastructureresources"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1/infrastructureResources/InfrastructureResource1"), // Properties: &armintegrationspaces.InfrastructureResourceProperties{ // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // ResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1"), // ResourceType: to.Ptr("Microsoft.ApiManagement/service"), // }, // } }
Output:
type InfrastructureResourcesClientCreateOrUpdateOptions ¶
type InfrastructureResourcesClientCreateOrUpdateOptions struct { }
InfrastructureResourcesClientCreateOrUpdateOptions contains the optional parameters for the InfrastructureResourcesClient.CreateOrUpdate method.
type InfrastructureResourcesClientCreateOrUpdateResponse ¶
type InfrastructureResourcesClientCreateOrUpdateResponse struct { // An infrastructure resource under Space. InfrastructureResource }
InfrastructureResourcesClientCreateOrUpdateResponse contains the response from method InfrastructureResourcesClient.CreateOrUpdate.
type InfrastructureResourcesClientDeleteOptions ¶
type InfrastructureResourcesClientDeleteOptions struct { }
InfrastructureResourcesClientDeleteOptions contains the optional parameters for the InfrastructureResourcesClient.Delete method.
type InfrastructureResourcesClientDeleteResponse ¶
type InfrastructureResourcesClientDeleteResponse struct { }
InfrastructureResourcesClientDeleteResponse contains the response from method InfrastructureResourcesClient.Delete.
type InfrastructureResourcesClientGetOptions ¶
type InfrastructureResourcesClientGetOptions struct { }
InfrastructureResourcesClientGetOptions contains the optional parameters for the InfrastructureResourcesClient.Get method.
type InfrastructureResourcesClientGetResponse ¶
type InfrastructureResourcesClientGetResponse struct { // An infrastructure resource under Space. InfrastructureResource }
InfrastructureResourcesClientGetResponse contains the response from method InfrastructureResourcesClient.Get.
type InfrastructureResourcesClientListBySpaceOptions ¶
type InfrastructureResourcesClientListBySpaceOptions struct { // Expand the indicated resources into the response. Expand []string // Filter the result list using the given expression. Filter *string // The maximum number of result items per page. Maxpagesize *int32 // Expressions that specify the order of returned results. Orderby []string // Select the specified fields to be included in the response. Select []string // The number of result items to skip. Skip *int32 // The number of result items to return. Top *int32 }
InfrastructureResourcesClientListBySpaceOptions contains the optional parameters for the InfrastructureResourcesClient.NewListBySpacePager method.
type InfrastructureResourcesClientListBySpaceResponse ¶
type InfrastructureResourcesClientListBySpaceResponse struct { // The response of a InfrastructureResource list operation. InfrastructureResourceListResult }
InfrastructureResourcesClientListBySpaceResponse contains the response from method InfrastructureResourcesClient.NewListBySpacePager.
type InfrastructureResourcesClientPatchOptions ¶
type InfrastructureResourcesClientPatchOptions struct { }
InfrastructureResourcesClientPatchOptions contains the optional parameters for the InfrastructureResourcesClient.Patch method.
type InfrastructureResourcesClientPatchResponse ¶
type InfrastructureResourcesClientPatchResponse struct { // An infrastructure resource under Space. InfrastructureResource }
InfrastructureResourcesClientPatchResponse contains the response from method InfrastructureResourcesClient.Patch.
type ListBusinessProcessDevelopmentArtifactsResponse ¶
type ListBusinessProcessDevelopmentArtifactsResponse struct { // REQUIRED; The list of the business process development artifact. Value []*SaveOrGetBusinessProcessDevelopmentArtifactResponse }
ListBusinessProcessDevelopmentArtifactsResponse - The business process development artifact get collection response.
func (ListBusinessProcessDevelopmentArtifactsResponse) MarshalJSON ¶
func (l ListBusinessProcessDevelopmentArtifactsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListBusinessProcessDevelopmentArtifactsResponse.
func (*ListBusinessProcessDevelopmentArtifactsResponse) UnmarshalJSON ¶
func (l *ListBusinessProcessDevelopmentArtifactsResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ListBusinessProcessDevelopmentArtifactsResponse.
type Operation ¶
type Operation struct { // Localized display information for this particular operation. Display *OperationDisplay // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. ActionType *ActionType // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane // operations. IsDataAction *bool // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", // "Microsoft.Compute/virtualMachines/capture/action" Name *string // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" Origin *Origin }
Operation - Details of a REST API operation, returned from the Resource Provider Operations API
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. Description *string // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual // Machine", "Restart Virtual Machine". Operation *string // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft // Compute". Provider *string // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job // Schedule Collections". Resource *string }
OperationDisplay - Localized display information for this particular operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results (if there are any). NextLink *string // READ-ONLY; List of operations supported by the resource provider Value []*Operation }
OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - List the operations for the provider
Generated from API version 2023-11-14-preview
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Operations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewOperationsClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.OperationListResult = armintegrationspaces.OperationListResult{ // Value: []*armintegrationspaces.Operation{ // { // Name: to.Ptr("Microsoft.IntegrationSpaces/spaces/read"), // Display: &armintegrationspaces.OperationDisplay{ // Description: to.Ptr("Read space"), // Operation: to.Ptr("Read space"), // Provider: to.Ptr("Microsoft Azure Integration Spaces"), // Resource: to.Ptr("space"), // }, // }, // { // Name: to.Ptr("Microsoft.IntegrationSpaces/spaces/write"), // Display: &armintegrationspaces.OperationDisplay{ // Description: to.Ptr("Update space"), // Operation: to.Ptr("Update space"), // Provider: to.Ptr("Microsoft Azure Integration Spaces"), // Resource: to.Ptr("space"), // }, // }, // { // Name: to.Ptr("Microsoft.IntegrationSpaces/spaces/delete"), // Display: &armintegrationspaces.OperationDisplay{ // Description: to.Ptr("Delete space"), // Operation: to.Ptr("Delete space"), // Provider: to.Ptr("Microsoft Azure Integration Spaces"), // Resource: to.Ptr("space"), // }, // }}, // } } }
Output:
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct { // A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. OperationListResult }
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type Origin ¶
type Origin string
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - The status of the current operation.
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" // ProvisioningStateCanceled - Resource creation was canceled. ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed - Resource creation failed. ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateProvisioning ProvisioningState = "Provisioning" // ProvisioningStateSucceeded - Resource has been created. ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type SaveOrGetBusinessProcessDevelopmentArtifactResponse ¶
type SaveOrGetBusinessProcessDevelopmentArtifactResponse struct { // REQUIRED; The name of the business process development artifact. Name *string // The properties of the business process development artifact. Properties *BusinessProcessDevelopmentArtifactProperties // READ-ONLY; The system data of the business process development artifact. SystemData *SystemData }
SaveOrGetBusinessProcessDevelopmentArtifactResponse - The business process development artifact save or get response.
func (SaveOrGetBusinessProcessDevelopmentArtifactResponse) MarshalJSON ¶
func (s SaveOrGetBusinessProcessDevelopmentArtifactResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SaveOrGetBusinessProcessDevelopmentArtifactResponse.
func (*SaveOrGetBusinessProcessDevelopmentArtifactResponse) UnmarshalJSON ¶
func (s *SaveOrGetBusinessProcessDevelopmentArtifactResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SaveOrGetBusinessProcessDevelopmentArtifactResponse.
type SaveOrValidateBusinessProcessDevelopmentArtifactRequest ¶
type SaveOrValidateBusinessProcessDevelopmentArtifactRequest struct { // REQUIRED; The name of the business process development artifact. Name *string // The properties of the business process development artifact. Properties *BusinessProcessDevelopmentArtifactProperties }
SaveOrValidateBusinessProcessDevelopmentArtifactRequest - The business process development artifact save or validate request.
func (SaveOrValidateBusinessProcessDevelopmentArtifactRequest) MarshalJSON ¶
func (s SaveOrValidateBusinessProcessDevelopmentArtifactRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SaveOrValidateBusinessProcessDevelopmentArtifactRequest.
func (*SaveOrValidateBusinessProcessDevelopmentArtifactRequest) UnmarshalJSON ¶
func (s *SaveOrValidateBusinessProcessDevelopmentArtifactRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SaveOrValidateBusinessProcessDevelopmentArtifactRequest.
type Space ¶
type Space struct { // REQUIRED; The geo-location where the resource lives Location *string // The resource-specific properties for this resource. Properties *SpaceResourceProperties // Resource tags. Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Space - An integration space.
func (Space) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Space.
func (*Space) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Space.
type SpaceListResult ¶
type SpaceListResult struct { // REQUIRED; The Space items on this page Value []*Space // The link to the next page of items NextLink *string }
SpaceListResult - The response of a Space list operation.
func (SpaceListResult) MarshalJSON ¶
func (s SpaceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SpaceListResult.
func (*SpaceListResult) UnmarshalJSON ¶
func (s *SpaceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SpaceListResult.
type SpaceResourceProperties ¶
type SpaceResourceProperties struct { // The description of the resource. Description *string // READ-ONLY; The status of the last operation. ProvisioningState *ProvisioningState }
SpaceResourceProperties - The properties of space.
func (SpaceResourceProperties) MarshalJSON ¶
func (s SpaceResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SpaceResourceProperties.
func (*SpaceResourceProperties) UnmarshalJSON ¶
func (s *SpaceResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SpaceResourceProperties.
type SpaceUpdate ¶
type SpaceUpdate struct { // The updatable properties of the Space. Properties *SpaceUpdateProperties // Resource tags. Tags map[string]*string }
SpaceUpdate - The type used for update operations of the Space.
func (SpaceUpdate) MarshalJSON ¶
func (s SpaceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SpaceUpdate.
func (*SpaceUpdate) UnmarshalJSON ¶
func (s *SpaceUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SpaceUpdate.
type SpaceUpdateProperties ¶
type SpaceUpdateProperties struct { // The description of the resource. Description *string }
SpaceUpdateProperties - The updatable properties of the Space.
func (SpaceUpdateProperties) MarshalJSON ¶
func (s SpaceUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SpaceUpdateProperties.
func (*SpaceUpdateProperties) UnmarshalJSON ¶
func (s *SpaceUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SpaceUpdateProperties.
type SpacesClient ¶
type SpacesClient struct {
// contains filtered or unexported fields
}
SpacesClient contains the methods for the Spaces group. Don't use this type directly, use NewSpacesClient() instead.
func NewSpacesClient ¶
func NewSpacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SpacesClient, error)
NewSpacesClient creates a new instance of SpacesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*SpacesClient) CreateOrUpdate ¶
func (client *SpacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, spaceName string, resource Space, options *SpacesClientCreateOrUpdateOptions) (SpacesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create a Space If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- resource - Resource create parameters.
- options - SpacesClientCreateOrUpdateOptions contains the optional parameters for the SpacesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Spaces_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewSpacesClient().CreateOrUpdate(ctx, "testrg", "Space1", armintegrationspaces.Space{ Location: to.Ptr("CentralUS"), Tags: map[string]*string{ "key1": to.Ptr("Value1"), }, Properties: &armintegrationspaces.SpaceResourceProperties{ Description: to.Ptr("This is the user provided description of the space resource."), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Space = armintegrationspaces.Space{ // Name: to.Ptr("Space1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1"), // Location: to.Ptr("CentralUS"), // Tags: map[string]*string{ // "key1": to.Ptr("Value1"), // }, // Properties: &armintegrationspaces.SpaceResourceProperties{ // Description: to.Ptr("This is the user provided description of the space resource."), // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // }, // } }
Output:
func (*SpacesClient) Delete ¶
func (client *SpacesClient) Delete(ctx context.Context, resourceGroupName string, spaceName string, options *SpacesClientDeleteOptions) (SpacesClientDeleteResponse, error)
Delete - Delete a Space If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- options - SpacesClientDeleteOptions contains the optional parameters for the SpacesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Spaces_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = clientFactory.NewSpacesClient().Delete(ctx, "testrg", "Space1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*SpacesClient) Get ¶
func (client *SpacesClient) Get(ctx context.Context, resourceGroupName string, spaceName string, options *SpacesClientGetOptions) (SpacesClientGetResponse, error)
Get - Get a Space If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- options - SpacesClientGetOptions contains the optional parameters for the SpacesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Spaces_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewSpacesClient().Get(ctx, "testrg", "Space1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Space = armintegrationspaces.Space{ // Name: to.Ptr("Space1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1"), // Location: to.Ptr("CentralUS"), // Tags: map[string]*string{ // "key1": to.Ptr("Value1"), // }, // Properties: &armintegrationspaces.SpaceResourceProperties{ // Description: to.Ptr("This is the user provided description of the space resource."), // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // }, // } }
Output:
func (*SpacesClient) NewListByResourceGroupPager ¶
func (client *SpacesClient) NewListByResourceGroupPager(resourceGroupName string, options *SpacesClientListByResourceGroupOptions) *runtime.Pager[SpacesClientListByResourceGroupResponse]
NewListByResourceGroupPager - List Space resources by resource group
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - SpacesClientListByResourceGroupOptions contains the optional parameters for the SpacesClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Spaces_ListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewSpacesClient().NewListByResourceGroupPager("testrg", &armintegrationspaces.SpacesClientListByResourceGroupOptions{Top: nil, Skip: nil, Maxpagesize: nil, Filter: nil, Select: []string{}, Expand: []string{}, Orderby: []string{}, }) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.SpaceListResult = armintegrationspaces.SpaceListResult{ // Value: []*armintegrationspaces.Space{ // { // Name: to.Ptr("Space1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1"), // Location: to.Ptr("CentralUS"), // Tags: map[string]*string{ // "key1": to.Ptr("Value1"), // }, // Properties: &armintegrationspaces.SpaceResourceProperties{ // Description: to.Ptr("This is the user provided description of the space resource."), // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // }, // }}, // } } }
Output:
func (*SpacesClient) NewListBySubscriptionPager ¶
func (client *SpacesClient) NewListBySubscriptionPager(options *SpacesClientListBySubscriptionOptions) *runtime.Pager[SpacesClientListBySubscriptionResponse]
NewListBySubscriptionPager - List Space resources by subscription ID
Generated from API version 2023-11-14-preview
- options - SpacesClientListBySubscriptionOptions contains the optional parameters for the SpacesClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Spaces_ListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewSpacesClient().NewListBySubscriptionPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.SpaceListResult = armintegrationspaces.SpaceListResult{ // Value: []*armintegrationspaces.Space{ // { // Name: to.Ptr("Space1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1"), // Location: to.Ptr("CentralUS"), // Tags: map[string]*string{ // "key1": to.Ptr("Value1"), // }, // Properties: &armintegrationspaces.SpaceResourceProperties{ // Description: to.Ptr("This is the user provided description of the space resource."), // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // }, // }}, // } } }
Output:
func (*SpacesClient) Patch ¶
func (client *SpacesClient) Patch(ctx context.Context, resourceGroupName string, spaceName string, properties SpaceUpdate, options *SpacesClientPatchOptions) (SpacesClientPatchResponse, error)
Patch - Update a Space If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-11-14-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- spaceName - The name of the space
- properties - The resource properties to be updated.
- options - SpacesClientPatchOptions contains the optional parameters for the SpacesClient.Patch method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3/specification/azureintegrationspaces/resource-manager/Microsoft.IntegrationSpaces/preview/2023-11-14-preview/examples/Spaces_Patch.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armintegrationspaces.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewSpacesClient().Patch(ctx, "testrg", "Space1", armintegrationspaces.SpaceUpdate{ Properties: &armintegrationspaces.SpaceUpdateProperties{ Description: to.Ptr("This is the user provided description of the space resource."), }, Tags: map[string]*string{ "key1": to.Ptr("Value1"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Space = armintegrationspaces.Space{ // Name: to.Ptr("Space1"), // Type: to.Ptr("Microsoft.IntegrationSpaces/spaces"), // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.IntegrationSpaces/spaces/Space1"), // Location: to.Ptr("CentralUS"), // Tags: map[string]*string{ // "key1": to.Ptr("Value1"), // }, // Properties: &armintegrationspaces.SpaceResourceProperties{ // Description: to.Ptr("This is the user provided description of the space resource."), // ProvisioningState: to.Ptr(armintegrationspaces.ProvisioningStateSucceeded), // }, // } }
Output:
type SpacesClientCreateOrUpdateOptions ¶
type SpacesClientCreateOrUpdateOptions struct { }
SpacesClientCreateOrUpdateOptions contains the optional parameters for the SpacesClient.CreateOrUpdate method.
type SpacesClientCreateOrUpdateResponse ¶
type SpacesClientCreateOrUpdateResponse struct { // An integration space. Space }
SpacesClientCreateOrUpdateResponse contains the response from method SpacesClient.CreateOrUpdate.
type SpacesClientDeleteOptions ¶
type SpacesClientDeleteOptions struct { }
SpacesClientDeleteOptions contains the optional parameters for the SpacesClient.Delete method.
type SpacesClientDeleteResponse ¶
type SpacesClientDeleteResponse struct { }
SpacesClientDeleteResponse contains the response from method SpacesClient.Delete.
type SpacesClientGetOptions ¶
type SpacesClientGetOptions struct { }
SpacesClientGetOptions contains the optional parameters for the SpacesClient.Get method.
type SpacesClientGetResponse ¶
type SpacesClientGetResponse struct { // An integration space. Space }
SpacesClientGetResponse contains the response from method SpacesClient.Get.
type SpacesClientListByResourceGroupOptions ¶
type SpacesClientListByResourceGroupOptions struct { // Expand the indicated resources into the response. Expand []string // Filter the result list using the given expression. Filter *string // The maximum number of result items per page. Maxpagesize *int32 // Expressions that specify the order of returned results. Orderby []string // Select the specified fields to be included in the response. Select []string // The number of result items to skip. Skip *int32 // The number of result items to return. Top *int32 }
SpacesClientListByResourceGroupOptions contains the optional parameters for the SpacesClient.NewListByResourceGroupPager method.
type SpacesClientListByResourceGroupResponse ¶
type SpacesClientListByResourceGroupResponse struct { // The response of a Space list operation. SpaceListResult }
SpacesClientListByResourceGroupResponse contains the response from method SpacesClient.NewListByResourceGroupPager.
type SpacesClientListBySubscriptionOptions ¶
type SpacesClientListBySubscriptionOptions struct { }
SpacesClientListBySubscriptionOptions contains the optional parameters for the SpacesClient.NewListBySubscriptionPager method.
type SpacesClientListBySubscriptionResponse ¶
type SpacesClientListBySubscriptionResponse struct { // The response of a Space list operation. SpaceListResult }
SpacesClientListBySubscriptionResponse contains the response from method SpacesClient.NewListBySubscriptionPager.
type SpacesClientPatchOptions ¶
type SpacesClientPatchOptions struct { }
SpacesClientPatchOptions contains the optional parameters for the SpacesClient.Patch method.
type SpacesClientPatchResponse ¶
type SpacesClientPatchResponse struct { // An integration space. Space }
SpacesClientPatchResponse contains the response from method SpacesClient.Patch.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. CreatedBy *string // The type of identity that created the resource. CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time // The identity that last modified the resource. LastModifiedBy *string // The type of identity that last modified the resource. LastModifiedByType *CreatedByType }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type TrackingCorrelationContext ¶
type TrackingCorrelationContext struct { // The operation name for correlation context. OperationName *string // The operation type for correlation context. OperationType *string // The name of the correlation property. PropertyName *string // The template expression for correlation context property value. Value *string }
TrackingCorrelationContext - The tracking correlation context.
func (TrackingCorrelationContext) MarshalJSON ¶
func (t TrackingCorrelationContext) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackingCorrelationContext.
func (*TrackingCorrelationContext) UnmarshalJSON ¶
func (t *TrackingCorrelationContext) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrackingCorrelationContext.
type TrackingDataStore ¶
type TrackingDataStore struct { // REQUIRED; The data store ingestion URI. DataStoreIngestionURI *string // REQUIRED; The data store resource id. DataStoreResourceID *string // REQUIRED; The data store URI. DataStoreURI *string // REQUIRED; The database name. DatabaseName *string }
TrackingDataStore - The properties of tracking data store.
func (TrackingDataStore) MarshalJSON ¶
func (t TrackingDataStore) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackingDataStore.
func (*TrackingDataStore) UnmarshalJSON ¶
func (t *TrackingDataStore) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrackingDataStore.
type TrackingEventDefinition ¶
type TrackingEventDefinition struct { // The operation name. OperationName *string // The operation type. OperationType *string // The properties to be collected for event. Properties map[string]any }
TrackingEventDefinition - The tracking event definition.
func (TrackingEventDefinition) MarshalJSON ¶
func (t TrackingEventDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackingEventDefinition.
func (*TrackingEventDefinition) UnmarshalJSON ¶
func (t *TrackingEventDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrackingEventDefinition.
type TrackingProfileDefinition ¶
type TrackingProfileDefinition struct { // The business process reference. BusinessProcess *BusinessProcessReference // The tracking definition schema uri. Schema *string // The tracking definitions. TrackingDefinitions map[string]*FlowTrackingDefinition }
TrackingProfileDefinition - The tracking profile for the business process
func (TrackingProfileDefinition) MarshalJSON ¶
func (t TrackingProfileDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackingProfileDefinition.
func (*TrackingProfileDefinition) UnmarshalJSON ¶
func (t *TrackingProfileDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrackingProfileDefinition.