From e650122ea9c180935952ab39b8f7d416cf2e918a Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 15 May 2023 07:11:58 +0000 Subject: [PATCH] CodeGen from PR 23910 in Azure/azure-rest-api-specs Merge 5a0382a48aeb1ac9190319d1ae00fba2c3e9644f into 9a20afc353d601769460d42fd13475eecbe61e7d --- .../datafactory/armdatafactory/CHANGELOG.md | 180 +++ .../activityruns_client_example_test.go | 138 --- .../datafactory/armdatafactory/autorest.md | 6 +- .../datafactory/armdatafactory/constants.go | 61 +- ...redentialoperations_client_example_test.go | 149 --- .../armdatafactory/datafactory_live_test.go | 1050 ---------------- ...ataflowdebugsession_client_example_test.go | 265 ----- .../dataflows_client_example_test.go | 460 ------- .../datasets_client_example_test.go | 334 ------ .../exposurecontrol_client_example_test.go | 114 -- .../factories_client_example_test.go | 592 --------- .../globalparameters_client_example_test.go | 209 ---- .../datafactory/armdatafactory/go.mod | 20 +- .../datafactory/armdatafactory/go.sum | 33 - ...grationruntimenodes_client_example_test.go | 144 --- ...ntimeobjectmetadata_client_example_test.go | 577 --------- ...integrationruntimes_client_example_test.go | 638 ---------- .../linkedservices_client_example_test.go | 212 ---- ...gedprivateendpoints_client_example_test.go | 164 --- ...agedvirtualnetworks_client_example_test.go | 118 -- .../datafactory/armdatafactory/models.go | 1056 ++++++++++++----- .../armdatafactory/models_serde.go | 631 ++++++++-- .../operations_client_example_test.go | 1044 ---------------- .../pipelineruns_client_example_test.go | 158 --- .../pipelines_client_example_test.go | 558 --------- ...eendpointconnection_client_example_test.go | 119 -- ...endpointconnections_client_example_test.go | 62 - ...rivatelinkresources_client_example_test.go | 53 - .../triggerruns_client_example_test.go | 103 -- .../triggers_client_example_test.go | 465 -------- 30 files changed, 1492 insertions(+), 8221 deletions(-) delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/datafactory_live_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go diff --git a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md index c520bd4dd7c9..9c2895b016a2 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md @@ -1,5 +1,185 @@ # Release History +## 4.0.0 (2023-05-15) +### Breaking Changes + +- Type of `AmazonMWSLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AmazonRdsForLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AmazonRdsForSQLServerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AmazonRedshiftLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AmazonS3CompatibleLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AmazonS3LinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AsanaLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureBatchLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureBlobFSLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureDataLakeAnalyticsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureDataLakeStoreLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureDatabricksDetltaLakeLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureDatabricksLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureFileStorageLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureFunctionLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureMLLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureMLServiceLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureMariaDBLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureMySQLLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzurePostgreSQLLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureSQLDWLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureSQLDatabaseLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureSQLMILinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `AzureSearchLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `CassandraLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `CommonDataServiceForAppsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ConcurLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `CosmosDbLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `CouchbaseLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `DataworldLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `Db2LinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `DrillLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `DynamicsAXLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `DynamicsCrmLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `DynamicsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `EloquaLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `FileServerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `FtpServerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `GoogleAdWordsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `GoogleBigQueryLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `GoogleCloudStorageLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `GoogleSheetsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `GreenplumLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HBaseLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HDInsightHiveActivityTypeProperties.Variables` has been changed from `[]any` to `map[string]any` +- Type of `HDInsightLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HDInsightOnDemandLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HTTPLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HdfsLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HiveLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `HubspotLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ImpalaLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `InformixLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `JiraLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MagentoLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MariaDBLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MarketoLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MicrosoftAccessLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MongoDbLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `MySQLLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `NetezzaLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ODataLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `OdbcLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `Office365LinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `OracleCloudStorageLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `OracleLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `OracleServiceCloudLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `PaypalLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `PhoenixLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `PostgreSQLLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `PrestoLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `QuickBooksLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `QuickbaseLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ResponsysLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `RestResourceDatasetTypeProperties.AdditionalHeaders` has been changed from `any` to `map[string]any` +- Type of `RestResourceDatasetTypeProperties.PaginationRules` has been changed from `any` to `map[string]any` +- Type of `RestServiceLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SQLServerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SalesforceLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SalesforceMarketingCloudLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SalesforceServiceCloudLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapBWLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapCloudForCustomerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapHanaLinkedServiceProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapOdpLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapOpenHubLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SapTableLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ServiceNowLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SftpServerLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SharePointOnlineListLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ShopifyLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SmartsheetLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SnowflakeLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SparkLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SquareLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `SybaseLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `TeamDeskLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `TeradataLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `VerticaLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `XeroLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ZendeskLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Type of `ZohoLinkedServiceTypeProperties.EncryptedCredential` has been changed from `any` to `*string` +- Enum `CosmosDbServicePrincipalCredentialType` has been removed +- Field `EnablePartitionDiscovery`, `PartitionRootPath` of struct `HTTPReadSettings` has been removed + +### Features Added + +- Type of `AmazonS3CompatibleReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `AmazonS3ReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `AzureBlobFSReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `AzureBlobStorageLinkedServiceTypeProperties.AccountKind` has been changed from `*string` to `any` +- Type of `AzureBlobStorageLinkedServiceTypeProperties.ServiceEndpoint` has been changed from `*string` to `any` +- Type of `AzureBlobStorageReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `AzureDataLakeStoreReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `AzureFileStorageReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `CosmosDbLinkedServiceTypeProperties.ServicePrincipalCredentialType` has been changed from `*CosmosDbServicePrincipalCredentialType` to `any` +- Type of `FileServerReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `FtpReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `FtpReadSettings.UseBinaryTransfer` has been changed from `*bool` to `any` +- Type of `GoogleCloudStorageReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `HdfsReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `OracleCloudStorageReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `SapEccLinkedServiceTypeProperties.URL` has been changed from `*string` to `any` +- Type of `SapEccLinkedServiceTypeProperties.Username` has been changed from `*string` to `any` +- Type of `SftpReadSettings.EnablePartitionDiscovery` has been changed from `*bool` to `any` +- Type of `SynapseNotebookActivityTypeProperties.NumExecutors` has been changed from `*int32` to `any` +- New enum type `ActivityOnInactiveMarkAs` with values `ActivityOnInactiveMarkAsFailed`, `ActivityOnInactiveMarkAsSkipped`, `ActivityOnInactiveMarkAsSucceeded` +- New enum type `ActivityState` with values `ActivityStateActive`, `ActivityStateInactive` +- New struct `IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem` +- New field `OnInactiveMarkAs`, `State` in struct `Activity` +- New field `OnInactiveMarkAs`, `State` in struct `AppendVariableActivity` +- New field `OnInactiveMarkAs`, `State` in struct `AzureDataExplorerCommandActivity` +- New field `OnInactiveMarkAs`, `State` in struct `AzureFunctionActivity` +- New field `OnInactiveMarkAs`, `State` in struct `AzureMLBatchExecutionActivity` +- New field `OnInactiveMarkAs`, `State` in struct `AzureMLExecutePipelineActivity` +- New field `OnInactiveMarkAs`, `State` in struct `AzureMLUpdateResourceActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ControlActivity` +- New field `OnInactiveMarkAs`, `State` in struct `CopyActivity` +- New field `OnInactiveMarkAs`, `State` in struct `CustomActivity` +- New field `OnInactiveMarkAs`, `State` in struct `DataLakeAnalyticsUSQLActivity` +- New field `OnInactiveMarkAs`, `State` in struct `DatabricksNotebookActivity` +- New field `OnInactiveMarkAs`, `State` in struct `DatabricksSparkJarActivity` +- New field `OnInactiveMarkAs`, `State` in struct `DatabricksSparkPythonActivity` +- New field `OnInactiveMarkAs`, `State` in struct `DeleteActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ExecuteDataFlowActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ExecutePipelineActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ExecuteSSISPackageActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ExecuteWranglingDataflowActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ExecutionActivity` +- New field `OnInactiveMarkAs`, `State` in struct `FailActivity` +- New field `OnInactiveMarkAs`, `State` in struct `FilterActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ForEachActivity` +- New field `OnInactiveMarkAs`, `State` in struct `GetMetadataActivity` +- New field `OnInactiveMarkAs`, `State` in struct `HDInsightHiveActivity` +- New field `OnInactiveMarkAs`, `State` in struct `HDInsightMapReduceActivity` +- New field `OnInactiveMarkAs`, `State` in struct `HDInsightPigActivity` +- New field `OnInactiveMarkAs`, `State` in struct `HDInsightSparkActivity` +- New field `OnInactiveMarkAs`, `State` in struct `HDInsightStreamingActivity` +- New field `AdditionalColumns` in struct `HTTPReadSettings` +- New field `OnInactiveMarkAs`, `State` in struct `IfConditionActivity` +- New field `CustomProperties` in struct `IntegrationRuntimeDataFlowProperties` +- New field `OnInactiveMarkAs`, `State` in struct `LookupActivity` +- New field `MongoDbAtlasDriverVersion` in struct `MongoDbAtlasLinkedServiceTypeProperties` +- New field `OnInactiveMarkAs`, `State` in struct `SQLServerStoredProcedureActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ScriptActivity` +- New field `OnInactiveMarkAs`, `State` in struct `SetVariableActivity` +- New field `SetSystemVariable` in struct `SetVariableActivityTypeProperties` +- New field `OnInactiveMarkAs`, `State` in struct `SwitchActivity` +- New field `OnInactiveMarkAs`, `State` in struct `SynapseNotebookActivity` +- New field `OnInactiveMarkAs`, `State` in struct `SynapseSparkJobDefinitionActivity` +- New field `OnInactiveMarkAs`, `State` in struct `UntilActivity` +- New field `OnInactiveMarkAs`, `State` in struct `ValidationActivity` +- New field `OnInactiveMarkAs`, `State` in struct `WaitActivity` +- New field `OnInactiveMarkAs`, `State` in struct `WebActivity` +- New field `OnInactiveMarkAs`, `State` in struct `WebHookActivity` + + ## 3.2.1 (2023-04-14) ### Bug Fixes diff --git a/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go deleted file mode 100644 index 8c896998a728..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go +++ /dev/null @@ -1,138 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -import ( - "context" - "log" - - "time" - - "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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json -func ExampleActivityRunsClient_QueryByPipelineRun() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewActivityRunsClient().QueryByPipelineRun(ctx, "exampleResourceGroup", "exampleFactoryName", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", armdatafactory.RunFilterParameters{ - LastUpdatedAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:36:44.3345758Z"); return t }()), - LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.3686473Z"); return t }()), - }, 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.ActivityRunsQueryResponse = armdatafactory.ActivityRunsQueryResponse{ - // Value: []*armdatafactory.ActivityRun{ - // { - // AdditionalProperties: map[string]any{ - // "retryAttempt": nil, - // "userProperties": map[string]any{ - // }, - // }, - // ActivityName: to.Ptr("ExampleForeachActivity"), - // ActivityRunEnd: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:11.5445431Z"); return t}()), - // ActivityRunID: to.Ptr("f30c5514-fb85-43ed-9fa4-768d42e58680"), - // ActivityRunStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:37:49.4804925Z"); return t}()), - // ActivityType: to.Ptr("ForEach"), - // DurationInMs: to.Ptr[int32](22064), - // Error: map[string]any{ - // "errorCode": "", - // "failureType": "", - // "message": "", - // "target": "ExampleForeachActivity", - // }, - // Input: map[string]any{ - // }, - // LinkedServiceName: to.Ptr(""), - // Output: map[string]any{ - // }, - // PipelineName: to.Ptr("examplePipeline"), - // PipelineRunID: to.Ptr("2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"), - // Status: to.Ptr("Succeeded"), - // }, - // { - // AdditionalProperties: map[string]any{ - // "retryAttempt": nil, - // "userProperties": map[string]any{ - // }, - // }, - // ActivityName: to.Ptr("ExampleCopyActivity"), - // ActivityRunEnd: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:07.4188923Z"); return t}()), - // ActivityRunID: to.Ptr("a96678c8-7167-4f00-b629-afccfbad4e51"), - // ActivityRunStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:37:50.2460952Z"); return t}()), - // ActivityType: to.Ptr("Copy"), - // DurationInMs: to.Ptr[int32](17172), - // Error: map[string]any{ - // "errorCode": "", - // "failureType": "", - // "message": "", - // "target": "ExampleCopyActivity", - // }, - // Input: map[string]any{ - // "dataIntegrationUnits": float64(32), - // "sink":map[string]any{ - // "type": "BlobSink", - // }, - // "source":map[string]any{ - // "type": "BlobSource", - // }, - // }, - // LinkedServiceName: to.Ptr(""), - // Output: map[string]any{ - // "copyDuration": float64(6), - // "dataRead": float64(142000), - // "dataWritten": float64(142000), - // "effectiveIntegrationRuntime": "DefaultIntegrationRuntime (East US)", - // "errors":[]any{ - // }, - // "executionDetails":[]any{ - // map[string]any{ - // "detailedDurations":map[string]any{ - // "queuingDuration": float64(4), - // "transferDuration": float64(2), - // }, - // "duration": float64(6), - // "sink":map[string]any{ - // "type": "AzureBlob", - // }, - // "source":map[string]any{ - // "type": "AzureBlob", - // }, - // "start": "2018-06-16T00:37:50.68834Z", - // "status": "Succeeded", - // "usedCloudDataMovementUnits": float64(4), - // "usedParallelCopies": float64(1), - // }, - // }, - // "filesRead": float64(1), - // "filesWritten": float64(1), - // "throughput": float64(23.112), - // "usedCloudDataMovementUnits": float64(4), - // "usedParallelCopies": float64(1), - // }, - // PipelineName: to.Ptr("examplePipeline"), - // PipelineRunID: to.Ptr("2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"), - // Status: to.Ptr("Succeeded"), - // }}, - // } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/autorest.md b/sdk/resourcemanager/datafactory/armdatafactory/autorest.md index b49391439cbb..85bfdc443a24 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/autorest.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/readme.go.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/datafactory/resource-manager/readme.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/datafactory/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 3.2.1 +module-version: 4.0.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/datafactory/armdatafactory/constants.go b/sdk/resourcemanager/datafactory/armdatafactory/constants.go index e2253f4bf73f..c1bee861d577 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/constants.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/constants.go @@ -11,9 +11,44 @@ package armdatafactory const ( moduleName = "armdatafactory" - moduleVersion = "v3.2.1" + moduleVersion = "v4.0.0" ) +// ActivityOnInactiveMarkAs - Status result of the activity when the state is set to Inactive. This is an optional property +// and if not provided when the activity is inactive, the status will be Succeeded by default. +type ActivityOnInactiveMarkAs string + +const ( + ActivityOnInactiveMarkAsFailed ActivityOnInactiveMarkAs = "Failed" + ActivityOnInactiveMarkAsSkipped ActivityOnInactiveMarkAs = "Skipped" + ActivityOnInactiveMarkAsSucceeded ActivityOnInactiveMarkAs = "Succeeded" +) + +// PossibleActivityOnInactiveMarkAsValues returns the possible values for the ActivityOnInactiveMarkAs const type. +func PossibleActivityOnInactiveMarkAsValues() []ActivityOnInactiveMarkAs { + return []ActivityOnInactiveMarkAs{ + ActivityOnInactiveMarkAsFailed, + ActivityOnInactiveMarkAsSkipped, + ActivityOnInactiveMarkAsSucceeded, + } +} + +// ActivityState - Activity state. This is an optional property and if not provided, the state will be Active by default. +type ActivityState string + +const ( + ActivityStateActive ActivityState = "Active" + ActivityStateInactive ActivityState = "Inactive" +) + +// PossibleActivityStateValues returns the possible values for the ActivityState const type. +func PossibleActivityStateValues() []ActivityState { + return []ActivityState{ + ActivityStateActive, + ActivityStateInactive, + } +} + // AzureFunctionActivityMethod - The list of HTTP methods supported by a AzureFunctionActivity. type AzureFunctionActivityMethod string @@ -160,8 +195,7 @@ func PossibleConfigurationTypeValues() []ConfigurationType { } } -// CosmosDbConnectionMode - The connection mode used to access CosmosDB account. Type: string (or Expression with resultType -// string). +// CosmosDbConnectionMode - The connection mode used to access CosmosDB account. Type: string. type CosmosDbConnectionMode string const ( @@ -177,24 +211,6 @@ func PossibleCosmosDbConnectionModeValues() []CosmosDbConnectionMode { } } -// CosmosDbServicePrincipalCredentialType - The service principal credential type to use in Server-To-Server authentication. -// 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with -// resultType string). -type CosmosDbServicePrincipalCredentialType string - -const ( - CosmosDbServicePrincipalCredentialTypeServicePrincipalCert CosmosDbServicePrincipalCredentialType = "ServicePrincipalCert" - CosmosDbServicePrincipalCredentialTypeServicePrincipalKey CosmosDbServicePrincipalCredentialType = "ServicePrincipalKey" -) - -// PossibleCosmosDbServicePrincipalCredentialTypeValues returns the possible values for the CosmosDbServicePrincipalCredentialType const type. -func PossibleCosmosDbServicePrincipalCredentialTypeValues() []CosmosDbServicePrincipalCredentialType { - return []CosmosDbServicePrincipalCredentialType{ - CosmosDbServicePrincipalCredentialTypeServicePrincipalCert, - CosmosDbServicePrincipalCredentialTypeServicePrincipalKey, - } -} - // CredentialReferenceType - Credential reference type. type CredentialReferenceType string @@ -1225,8 +1241,7 @@ func PossibleRunQueryOrderByFieldValues() []RunQueryOrderByField { } } -// SQLAlwaysEncryptedAkvAuthType - Sql always encrypted AKV authentication type. Type: string (or Expression with resultType -// string). +// SQLAlwaysEncryptedAkvAuthType - Sql always encrypted AKV authentication type. Type: string. type SQLAlwaysEncryptedAkvAuthType string const ( diff --git a/sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client_example_test.go deleted file mode 100644 index 29b3d2208504..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client_example_test.go +++ /dev/null @@ -1,149 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json -func ExampleCredentialOperationsClient_NewListByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCredentialOperationsClient().NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", 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.CredentialListResponse = armdatafactory.CredentialListResponse{ - // Value: []*armdatafactory.ManagedIdentityCredentialResource{ - // { - // Name: to.Ptr("exampleLinkedService"), - // Type: to.Ptr("Microsoft.DataFactory/factories/credentials"), - // Etag: to.Ptr("0a0064d4-0000-0000-0000-5b245bd00000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/credentials/exampleCredential"), - // Properties: &armdatafactory.ManagedIdentityCredential{ - // Type: to.Ptr("ManagedIdentity"), - // Description: to.Ptr("Example description"), - // TypeProperties: &armdatafactory.ManagedIdentityTypeProperties{ - // ResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json -func ExampleCredentialOperationsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCredentialOperationsClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleCredential", armdatafactory.ManagedIdentityCredentialResource{ - Properties: &armdatafactory.ManagedIdentityCredential{ - Type: to.Ptr("ManagedIdentity"), - TypeProperties: &armdatafactory.ManagedIdentityTypeProperties{ - ResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"), - }, - }, - }, &armdatafactory.CredentialOperationsClientCreateOrUpdateOptions{IfMatch: 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.ManagedIdentityCredentialResource = armdatafactory.ManagedIdentityCredentialResource{ - // Name: to.Ptr("exampleCredential"), - // Type: to.Ptr("Microsoft.DataFactory/factories/credentials"), - // Etag: to.Ptr("0a0062d4-0000-0000-0000-5b245bcf0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/credentials/exampleCredential"), - // Properties: &armdatafactory.ManagedIdentityCredential{ - // Type: to.Ptr("ManagedIdentity"), - // TypeProperties: &armdatafactory.ManagedIdentityTypeProperties{ - // ResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json -func ExampleCredentialOperationsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCredentialOperationsClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleCredential", &armdatafactory.CredentialOperationsClientGetOptions{IfNoneMatch: 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.ManagedIdentityCredentialResource = armdatafactory.ManagedIdentityCredentialResource{ - // Name: to.Ptr("exampleLinkedService"), - // Type: to.Ptr("Microsoft.DataFactory/factories/credentials"), - // Etag: to.Ptr("1500474f-0000-0200-0000-5cbe090d0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/credentials/exampleCredential"), - // Properties: &armdatafactory.ManagedIdentityCredential{ - // Type: to.Ptr("ManagedIdentity"), - // Description: to.Ptr("Example description"), - // TypeProperties: &armdatafactory.ManagedIdentityTypeProperties{ - // ResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json -func ExampleCredentialOperationsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCredentialOperationsClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleCredential", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/datafactory_live_test.go b/sdk/resourcemanager/datafactory/armdatafactory/datafactory_live_test.go deleted file mode 100644 index a22511006cca..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/datafactory_live_test.go +++ /dev/null @@ -1,1050 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "fmt" - "testing" - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" - "github.com/stretchr/testify/suite" -) - -type DatafactoryTestSuite struct { - suite.Suite - - ctx context.Context - cred azcore.TokenCredential - options *arm.ClientOptions - credentialName string - dataFlowName string - datasetName string - factoryName string - integrationRuntimeName string - linkedServiceName string - locationId string - managedPrivateEndpointName string - managedVirtualNetworkName string - nodeName string - pipelineName string - runId string - triggerName string - location string - resourceGroupName string - subscriptionId string - - datafactoryId string -} - -func (testsuite *DatafactoryTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/datafactory/armdatafactory/testdata") - - testsuite.ctx = context.Background() - testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) - testsuite.credentialName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "credenti", 8+6, false) - testsuite.dataFlowName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "dataflow", 8+6, false) - testsuite.datasetName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "datasetn", 8+6, false) - testsuite.factoryName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "factoryn", 8+6, false) - testsuite.integrationRuntimeName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "integrat", 8+6, false) - testsuite.linkedServiceName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "linkedse", 8+6, false) - testsuite.locationId, _ = recording.GenerateAlphaNumericID(testsuite.T(), "location", 8+6, false) - testsuite.managedPrivateEndpointName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "managedp", 8+6, false) - testsuite.managedVirtualNetworkName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "managedv", 8+6, false) - testsuite.nodeName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "nodename", 8+6, false) - testsuite.pipelineName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "pipeline", 8+6, false) - testsuite.runId, _ = recording.GenerateAlphaNumericID(testsuite.T(), "runid", 8+6, false) - testsuite.triggerName, _ = recording.GenerateAlphaNumericID(testsuite.T(), "triggern", 8+6, false) - testsuite.location = testutil.GetEnv("LOCATION", "eastus") - testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") - testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) - testsuite.Require().NoError(err) - testsuite.resourceGroupName = *resourceGroup.Name - testsuite.Prepare() -} - -func (testsuite *DatafactoryTestSuite) TearDownSuite() { - testsuite.Cleanup() - _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) - testsuite.Require().NoError(err) - testutil.StopRecording(testsuite.T()) -} - -func TestDatafactoryTestSuite(t *testing.T) { - suite.Run(t, new(DatafactoryTestSuite)) -} - -func (testsuite *DatafactoryTestSuite) Prepare() { - var err error - // From step Factories_CreateOrUpdate - fmt.Println("Call operation: Factories_CreateOrUpdate") - factoriesClient, err := armdatafactory.NewFactoriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - factoriesClientCreateOrUpdateResponse, err := factoriesClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, armdatafactory.Factory{ - Location: to.Ptr(testsuite.location), - }, &armdatafactory.FactoriesClientCreateOrUpdateOptions{IfMatch: nil}) - testsuite.Require().NoError(err) - testsuite.datafactoryId = *factoriesClientCreateOrUpdateResponse.ID - - // From step LinkedServices_CreateOrUpdate - fmt.Println("Call operation: LinkedServices_CreateOrUpdate") - linkedServicesClient, err := armdatafactory.NewLinkedServicesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = linkedServicesClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.linkedServiceName, armdatafactory.LinkedServiceResource{ - Properties: &armdatafactory.AzureStorageLinkedService{ - Type: to.Ptr("AzureStorage"), - TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ - ConnectionString: map[string]any{ - "type": "SecureString", - "value": "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=", - }, - }, - }, - }, &armdatafactory.LinkedServicesClientCreateOrUpdateOptions{IfMatch: nil}) - testsuite.Require().NoError(err) - - // From step Datasets_CreateOrUpdate - fmt.Println("Call operation: Datasets_CreateOrUpdate") - datasetsClient, err := armdatafactory.NewDatasetsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = datasetsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.datasetName, armdatafactory.DatasetResource{ - Properties: &armdatafactory.AzureBlobDataset{ - Type: to.Ptr("AzureBlob"), - LinkedServiceName: &armdatafactory.LinkedServiceReference{ - Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), - ReferenceName: to.Ptr(testsuite.linkedServiceName), - }, - Parameters: map[string]*armdatafactory.ParameterSpecification{ - "MyFileName": { - Type: to.Ptr(armdatafactory.ParameterTypeString), - }, - "MyFolderPath": { - Type: to.Ptr(armdatafactory.ParameterTypeString), - }, - }, - TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ - Format: &armdatafactory.TextFormat{ - Type: to.Ptr("TextFormat"), - }, - FileName: map[string]any{ - "type": "Expression", - "value": "@dataset().MyFileName", - }, - FolderPath: map[string]any{ - "type": "Expression", - "value": "@dataset().MyFolderPath", - }, - }, - }, - }, &armdatafactory.DatasetsClientCreateOrUpdateOptions{IfMatch: nil}) - testsuite.Require().NoError(err) - - // From step Pipelines_CreateOrUpdate - fmt.Println("Call operation: Pipelines_CreateOrUpdate") - pipelinesClient, err := armdatafactory.NewPipelinesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = pipelinesClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.pipelineName, armdatafactory.PipelineResource{ - Properties: &armdatafactory.Pipeline{ - Activities: []armdatafactory.ActivityClassification{ - &armdatafactory.ForEachActivity{ - Name: to.Ptr("ExampleForeachActivity"), - Type: to.Ptr("ForEach"), - TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ - Activities: []armdatafactory.ActivityClassification{ - &armdatafactory.CopyActivity{ - Name: to.Ptr("ExampleCopyActivity"), - Type: to.Ptr("Copy"), - Inputs: []*armdatafactory.DatasetReference{ - { - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - Parameters: map[string]any{ - "MyFileName": "examplecontainer.csv", - "MyFolderPath": "examplecontainer", - }, - ReferenceName: to.Ptr(testsuite.datasetName), - }}, - Outputs: []*armdatafactory.DatasetReference{ - { - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - Parameters: map[string]any{ - "MyFileName": map[string]any{ - "type": "Expression", - "value": "@item()", - }, - "MyFolderPath": "examplecontainer", - }, - ReferenceName: to.Ptr(testsuite.datasetName), - }}, - TypeProperties: &armdatafactory.CopyActivityTypeProperties{ - DataIntegrationUnits: float64(32), - Sink: &armdatafactory.BlobSink{ - Type: to.Ptr("BlobSink"), - }, - Source: &armdatafactory.BlobSource{ - Type: to.Ptr("BlobSource"), - }, - }, - }}, - IsSequential: to.Ptr(true), - Items: &armdatafactory.Expression{ - Type: to.Ptr(armdatafactory.ExpressionTypeExpression), - Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), - }, - }, - }}, - Parameters: map[string]*armdatafactory.ParameterSpecification{ - "JobId": { - Type: to.Ptr(armdatafactory.ParameterTypeString), - }, - "OutputBlobNameList": { - Type: to.Ptr(armdatafactory.ParameterTypeArray), - }, - }, - Policy: &armdatafactory.PipelinePolicy{ - ElapsedTimeMetric: &armdatafactory.PipelineElapsedTimeMetricPolicy{ - Duration: "0.00:10:00", - }, - }, - RunDimensions: map[string]any{ - "JobId": map[string]any{ - "type": "Expression", - "value": "@pipeline().parameters.JobId", - }, - }, - Variables: map[string]*armdatafactory.VariableSpecification{ - "TestVariableArray": { - Type: to.Ptr(armdatafactory.VariableTypeArray), - }, - }, - }, - }, &armdatafactory.PipelinesClientCreateOrUpdateOptions{IfMatch: nil}) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/operations -func (testsuite *DatafactoryTestSuite) TestOperations() { - var err error - // From step Operations_List - fmt.Println("Call operation: Operations_List") - operationsClient, err := armdatafactory.NewOperationsClient(testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - operationsClientNewListPager := operationsClient.NewListPager(nil) - for operationsClientNewListPager.More() { - _, err := operationsClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } -} - -// Microsoft.DataFactory/factories/{factoryName} -func (testsuite *DatafactoryTestSuite) TestFactories() { - var err error - // From step Factories_List - fmt.Println("Call operation: Factories_List") - factoriesClient, err := armdatafactory.NewFactoriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - factoriesClientNewListPager := factoriesClient.NewListPager(nil) - for factoriesClientNewListPager.More() { - _, err := factoriesClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Factories_ListByResourceGroup - fmt.Println("Call operation: Factories_ListByResourceGroup") - factoriesClientNewListByResourceGroupPager := factoriesClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) - for factoriesClientNewListByResourceGroupPager.More() { - _, err := factoriesClientNewListByResourceGroupPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Factories_Get - fmt.Println("Call operation: Factories_Get") - _, err = factoriesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, &armdatafactory.FactoriesClientGetOptions{IfNoneMatch: nil}) - testsuite.Require().NoError(err) - - // From step Factories_Update - fmt.Println("Call operation: Factories_Update") - _, err = factoriesClient.Update(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, armdatafactory.FactoryUpdateParameters{ - Tags: map[string]*string{ - "exampleTag": to.Ptr("exampleValue"), - }, - }, nil) - testsuite.Require().NoError(err) - - // From step Factories_GetDataPlaneAccess - fmt.Println("Call operation: Factories_GetDataPlaneAccess") - _, err = factoriesClient.GetDataPlaneAccess(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, armdatafactory.UserAccessPolicy{ - AccessResourcePath: to.Ptr(""), - Permissions: to.Ptr("r"), - ProfileName: to.Ptr("DefaultProfile"), - }, nil) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/locations/{locationId}/getFeatureValue -func (testsuite *DatafactoryTestSuite) TestExposureControl() { - var err error - // From step ExposureControl_GetFeatureValueByFactory - fmt.Println("Call operation: ExposureControl_GetFeatureValueByFactory") - exposureControlClient, err := armdatafactory.NewExposureControlClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = exposureControlClient.GetFeatureValueByFactory(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, armdatafactory.ExposureControlRequest{ - FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), - FeatureType: to.Ptr("Feature"), - }, nil) - testsuite.Require().NoError(err) - - // From step ExposureControl_QueryFeatureValuesByFactory - fmt.Println("Call operation: ExposureControl_QueryFeatureValuesByFactory") - _, err = exposureControlClient.QueryFeatureValuesByFactory(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, armdatafactory.ExposureControlBatchRequest{ - ExposureControlRequests: []*armdatafactory.ExposureControlRequest{ - { - FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), - FeatureType: to.Ptr("Feature"), - }, - { - FeatureName: to.Ptr("ADFSampleFeature"), - FeatureType: to.Ptr("Feature"), - }}, - }, nil) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName} -func (testsuite *DatafactoryTestSuite) TestIntegrationRuntimes() { - var err error - // From step IntegrationRuntimes_CreateOrUpdate - fmt.Println("Call operation: IntegrationRuntimes_CreateOrUpdate") - integrationRuntimesClient, err := armdatafactory.NewIntegrationRuntimesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = integrationRuntimesClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.integrationRuntimeName, armdatafactory.IntegrationRuntimeResource{ - Properties: &armdatafactory.SelfHostedIntegrationRuntime{ - Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), - Description: to.Ptr("A selfhosted integration runtime"), - }, - }, &armdatafactory.IntegrationRuntimesClientCreateOrUpdateOptions{IfMatch: nil}) - testsuite.Require().NoError(err) - - // From step IntegrationRuntimes_ListByFactory - fmt.Println("Call operation: IntegrationRuntimes_ListByFactory") - integrationRuntimesClientNewListByFactoryPager := integrationRuntimesClient.NewListByFactoryPager(testsuite.resourceGroupName, testsuite.factoryName, nil) - for integrationRuntimesClientNewListByFactoryPager.More() { - _, err := integrationRuntimesClientNewListByFactoryPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step IntegrationRuntimes_Get - fmt.Println("Call operation: IntegrationRuntimes_Get") - _, err = integrationRuntimesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.integrationRuntimeName, &armdatafactory.IntegrationRuntimesClientGetOptions{IfNoneMatch: nil}) - testsuite.Require().NoError(err) - - // From step IntegrationRuntimes_Update - fmt.Println("Call operation: IntegrationRuntimes_Update") - _, err = integrationRuntimesClient.Update(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.integrationRuntimeName, armdatafactory.UpdateIntegrationRuntimeRequest{ - AutoUpdate: to.Ptr(armdatafactory.IntegrationRuntimeAutoUpdateOff), - UpdateDelayOffset: to.Ptr("\"PT3H\""), - }, nil) - testsuite.Require().NoError(err) - - // From step IntegrationRuntimes_GetStatus - fmt.Println("Call operation: IntegrationRuntimes_GetStatus") - _, err = integrationRuntimesClient.GetStatus(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.integrationRuntimeName, nil) - testsuite.Require().NoError(err) - - // From step IntegrationRuntimes_Upgrade - fmt.Println("Call operation: IntegrationRuntimes_Upgrade") - _, err = integrationRuntimesClient.Upgrade(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.integrationRuntimeName, nil) - testsuite.Require().NoError(err) - - // From step IntegrationRuntimes_RemoveLinks - fmt.Println("Call operation: IntegrationRuntimes_RemoveLinks") - _, err = integrationRuntimesClient.RemoveLinks(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.integrationRuntimeName, armdatafactory.LinkedIntegrationRuntimeRequest{ - LinkedFactoryName: to.Ptr(testsuite.factoryName + "-linked"), - }, nil) - testsuite.Require().NoError(err) - - // From step IntegrationRuntimes_SyncCredentials - fmt.Println("Call operation: IntegrationRuntimes_SyncCredentials") - _, err = integrationRuntimesClient.SyncCredentials(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.integrationRuntimeName, nil) - testsuite.Require().NoError(err) - - // From step IntegrationRuntimes_ListAuthKeys - fmt.Println("Call operation: IntegrationRuntimes_ListAuthKeys") - _, err = integrationRuntimesClient.ListAuthKeys(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.integrationRuntimeName, nil) - testsuite.Require().NoError(err) - - // From step IntegrationRuntimes_RegenerateAuthKey - fmt.Println("Call operation: IntegrationRuntimes_RegenerateAuthKey") - _, err = integrationRuntimesClient.RegenerateAuthKey(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.integrationRuntimeName, armdatafactory.IntegrationRuntimeRegenerateKeyParameters{ - KeyName: to.Ptr(armdatafactory.IntegrationRuntimeAuthKeyNameAuthKey2), - }, nil) - testsuite.Require().NoError(err) - - // From step IntegrationRuntimes_GetMonitoringData - fmt.Println("Call operation: IntegrationRuntimes_GetMonitoringData") - _, err = integrationRuntimesClient.GetMonitoringData(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.integrationRuntimeName, nil) - testsuite.Require().NoError(err) - - // From step IntegrationRuntimes_Delete - fmt.Println("Call operation: IntegrationRuntimes_Delete") - _, err = integrationRuntimesClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.integrationRuntimeName, nil) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName} -func (testsuite *DatafactoryTestSuite) TestLinkedServices() { - var err error - // From step LinkedServices_ListByFactory - fmt.Println("Call operation: LinkedServices_ListByFactory") - linkedServicesClient, err := armdatafactory.NewLinkedServicesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - linkedServicesClientNewListByFactoryPager := linkedServicesClient.NewListByFactoryPager(testsuite.resourceGroupName, testsuite.factoryName, nil) - for linkedServicesClientNewListByFactoryPager.More() { - _, err := linkedServicesClientNewListByFactoryPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step LinkedServices_Get - fmt.Println("Call operation: LinkedServices_Get") - _, err = linkedServicesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.linkedServiceName, &armdatafactory.LinkedServicesClientGetOptions{IfNoneMatch: nil}) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName} -func (testsuite *DatafactoryTestSuite) TestDatasets() { - var err error - // From step Datasets_ListByFactory - fmt.Println("Call operation: Datasets_ListByFactory") - datasetsClient, err := armdatafactory.NewDatasetsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - datasetsClientNewListByFactoryPager := datasetsClient.NewListByFactoryPager(testsuite.resourceGroupName, testsuite.factoryName, nil) - for datasetsClientNewListByFactoryPager.More() { - _, err := datasetsClientNewListByFactoryPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Datasets_Get - fmt.Println("Call operation: Datasets_Get") - _, err = datasetsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.datasetName, &armdatafactory.DatasetsClientGetOptions{IfNoneMatch: nil}) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName} -func (testsuite *DatafactoryTestSuite) TestPipelines() { - // runId := testsuite.runId - var err error - // From step Pipelines_ListByFactory - fmt.Println("Call operation: Pipelines_ListByFactory") - pipelinesClient, err := armdatafactory.NewPipelinesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - pipelinesClientNewListByFactoryPager := pipelinesClient.NewListByFactoryPager(testsuite.resourceGroupName, testsuite.factoryName, nil) - for pipelinesClientNewListByFactoryPager.More() { - _, err := pipelinesClientNewListByFactoryPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Pipelines_Get - fmt.Println("Call operation: Pipelines_Get") - _, err = pipelinesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.pipelineName, &armdatafactory.PipelinesClientGetOptions{IfNoneMatch: nil}) - testsuite.Require().NoError(err) - - // From step Pipelines_CreateRun - fmt.Println("Call operation: Pipelines_CreateRun") - pipelinesClientCreateRunResponse, err := pipelinesClient.CreateRun(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.pipelineName, &armdatafactory.PipelinesClientCreateRunOptions{ReferencePipelineRunID: nil, - IsRecovery: nil, - StartActivityName: nil, - StartFromFailure: nil, - Parameters: map[string]any{ - "OutputBlobNameList": []any{ - "exampleoutput.csv", - }, - }, - }) - testsuite.Require().NoError(err) - testsuite.runId = *pipelinesClientCreateRunResponse.RunID - - // From step PipelineRuns_Get - fmt.Println("Call operation: PipelineRuns_Get") - pipelineRunsClient, err := armdatafactory.NewPipelineRunsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = pipelineRunsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.runId, nil) - testsuite.Require().NoError(err) - - // From step ActivityRuns_QueryByPipelineRun - fmt.Println("Call operation: ActivityRuns_QueryByPipelineRun") - activityRunsClient, err := armdatafactory.NewActivityRunsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = activityRunsClient.QueryByPipelineRun(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.runId, armdatafactory.RunFilterParameters{ - LastUpdatedAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:36:44.3345758Z"); return t }()), - LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.3686473Z"); return t }()), - }, nil) - testsuite.Require().NoError(err) - - // From step PipelineRuns_QueryByFactory - fmt.Println("Call operation: PipelineRuns_QueryByFactory") - _, err = pipelineRunsClient.QueryByFactory(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, armdatafactory.RunFilterParameters{ - Filters: []*armdatafactory.RunQueryFilter{ - { - Operand: to.Ptr(armdatafactory.RunQueryFilterOperandPipelineName), - Operator: to.Ptr(armdatafactory.RunQueryFilterOperatorEquals), - Values: []*string{ - to.Ptr("examplePipeline")}, - }}, - LastUpdatedAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:36:44.3345758Z"); return t }()), - LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.3686473Z"); return t }()), - }, nil) - testsuite.Require().NoError(err) - - // From step PipelineRuns_Cancel - fmt.Println("Call operation: PipelineRuns_Cancel") - _, err = pipelineRunsClient.Cancel(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.runId, &armdatafactory.PipelineRunsClientCancelOptions{IsRecursive: nil}) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName} -func (testsuite *DatafactoryTestSuite) TestTriggers() { - var err error - // From step Triggers_CreateOrUpdate - fmt.Println("Call operation: Triggers_CreateOrUpdate") - triggersClient, err := armdatafactory.NewTriggersClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = triggersClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.triggerName, armdatafactory.TriggerResource{ - Properties: &armdatafactory.ScheduleTrigger{ - Type: to.Ptr("ScheduleTrigger"), - Pipelines: []*armdatafactory.TriggerPipelineReference{ - { - Parameters: map[string]any{ - "OutputBlobNameList": []any{ - "exampleoutput.csv", - }, - }, - PipelineReference: &armdatafactory.PipelineReference{ - Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), - ReferenceName: to.Ptr(testsuite.pipelineName), - }, - }}, - TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ - Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ - EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:13.8441801Z"); return t }()), - Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), - Interval: to.Ptr[int32](4), - StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:13.8441801Z"); return t }()), - TimeZone: to.Ptr("UTC"), - }, - }, - }, - }, &armdatafactory.TriggersClientCreateOrUpdateOptions{IfMatch: nil}) - testsuite.Require().NoError(err) - - // From step Triggers_ListByFactory - fmt.Println("Call operation: Triggers_ListByFactory") - triggersClientNewListByFactoryPager := triggersClient.NewListByFactoryPager(testsuite.resourceGroupName, testsuite.factoryName, nil) - for triggersClientNewListByFactoryPager.More() { - _, err := triggersClientNewListByFactoryPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Triggers_Get - fmt.Println("Call operation: Triggers_Get") - _, err = triggersClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.triggerName, &armdatafactory.TriggersClientGetOptions{IfNoneMatch: nil}) - testsuite.Require().NoError(err) - - // From step Triggers_GetEventSubscriptionStatus - fmt.Println("Call operation: Triggers_GetEventSubscriptionStatus") - _, err = triggersClient.GetEventSubscriptionStatus(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.triggerName, nil) - testsuite.Require().NoError(err) - - // From step Triggers_SubscribeToEvents - fmt.Println("Call operation: Triggers_SubscribeToEvents") - triggersClientSubscribeToEventsResponsePoller, err := triggersClient.BeginSubscribeToEvents(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.triggerName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, triggersClientSubscribeToEventsResponsePoller) - testsuite.Require().NoError(err) - - // From step Triggers_Start - fmt.Println("Call operation: Triggers_Start") - triggersClientStartResponsePoller, err := triggersClient.BeginStart(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.triggerName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, triggersClientStartResponsePoller) - testsuite.Require().NoError(err) - - // From step Triggers_QueryByFactory - fmt.Println("Call operation: Triggers_QueryByFactory") - _, err = triggersClient.QueryByFactory(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, armdatafactory.TriggerFilterParameters{ - ParentTriggerName: to.Ptr(testsuite.triggerName), - }, nil) - testsuite.Require().NoError(err) - - // From step Triggers_UnsubscribeFromEvents - fmt.Println("Call operation: Triggers_UnsubscribeFromEvents") - triggersClientUnsubscribeFromEventsResponsePoller, err := triggersClient.BeginUnsubscribeFromEvents(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.triggerName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, triggersClientUnsubscribeFromEventsResponsePoller) - testsuite.Require().NoError(err) - - // From step Triggers_Stop - fmt.Println("Call operation: Triggers_Stop") - triggersClientStopResponsePoller, err := triggersClient.BeginStop(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.triggerName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, triggersClientStopResponsePoller) - testsuite.Require().NoError(err) - - // From step Triggers_Delete - fmt.Println("Call operation: Triggers_Delete") - _, err = triggersClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.triggerName, nil) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName} -func (testsuite *DatafactoryTestSuite) TestDataFlows() { - var err error - // From step DataFlows_CreateOrUpdate - fmt.Println("Call operation: DataFlows_CreateOrUpdate") - dataFlowsClient, err := armdatafactory.NewDataFlowsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = dataFlowsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.dataFlowName, armdatafactory.DataFlowResource{ - Properties: &armdatafactory.MappingDataFlow{ - Type: to.Ptr("MappingDataFlow"), - Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), - TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ - ScriptLines: []*string{ - to.Ptr("source(output("), - to.Ptr("PreviousConversionRate as double,"), - to.Ptr("Country as string,"), - to.Ptr("DateTime1 as string,"), - to.Ptr("CurrentConversionRate as double"), - to.Ptr("),"), - to.Ptr("allowSchemaDrift: false,"), - to.Ptr("validateSchema: false) ~> USDCurrency"), - to.Ptr("source(output("), - to.Ptr("PreviousConversionRate as double,"), - to.Ptr("Country as string,"), - to.Ptr("DateTime1 as string,"), - to.Ptr("CurrentConversionRate as double"), - to.Ptr("),"), - to.Ptr("allowSchemaDrift: true,"), - to.Ptr("validateSchema: false) ~> CADSource"), - to.Ptr("USDCurrency, CADSource union(byName: true)~> Union"), - to.Ptr("Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn"), - to.Ptr("NewCurrencyColumn split(Country == 'USD',"), - to.Ptr("Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)"), - to.Ptr("ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink"), - to.Ptr("ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")}, - Sinks: []*armdatafactory.DataFlowSink{ - { - Name: to.Ptr("USDSink"), - Dataset: &armdatafactory.DatasetReference{ - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - ReferenceName: to.Ptr(testsuite.datasetName), - }, - }}, - }, - }, - }, &armdatafactory.DataFlowsClientCreateOrUpdateOptions{IfMatch: nil}) - testsuite.Require().NoError(err) - - // From step DataFlows_ListByFactory - fmt.Println("Call operation: DataFlows_ListByFactory") - dataFlowsClientNewListByFactoryPager := dataFlowsClient.NewListByFactoryPager(testsuite.resourceGroupName, testsuite.factoryName, nil) - for dataFlowsClientNewListByFactoryPager.More() { - _, err := dataFlowsClientNewListByFactoryPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step DataFlows_Get - fmt.Println("Call operation: DataFlows_Get") - _, err = dataFlowsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.dataFlowName, &armdatafactory.DataFlowsClientGetOptions{IfNoneMatch: nil}) - testsuite.Require().NoError(err) - - // From step DataFlows_Delete - fmt.Println("Call operation: DataFlows_Delete") - _, err = dataFlowsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.dataFlowName, nil) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/factories/{factoryName}/createDataFlowDebugSession -func (testsuite *DatafactoryTestSuite) TestDataFlowDebugSession() { - var err error - // From step DataFlowDebugSession_Create - fmt.Println("Call operation: DataFlowDebugSession_Create") - dataFlowDebugSessionClient, err := armdatafactory.NewDataFlowDebugSessionClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - dataFlowDebugSessionClientCreateResponsePoller, err := dataFlowDebugSessionClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, armdatafactory.CreateDataFlowDebugSessionRequest{ - IntegrationRuntime: &armdatafactory.IntegrationRuntimeDebugResource{ - Name: to.Ptr("ir1"), - Properties: &armdatafactory.ManagedIntegrationRuntime{ - Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeManaged), - TypeProperties: &armdatafactory.ManagedIntegrationRuntimeTypeProperties{ - ComputeProperties: &armdatafactory.IntegrationRuntimeComputeProperties{ - DataFlowProperties: &armdatafactory.IntegrationRuntimeDataFlowProperties{ - ComputeType: to.Ptr(armdatafactory.DataFlowComputeTypeGeneral), - CoreCount: to.Ptr[int32](48), - TimeToLive: to.Ptr[int32](10), - }, - Location: to.Ptr("AutoResolve"), - }, - }, - }, - }, - TimeToLive: to.Ptr[int32](60), - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, dataFlowDebugSessionClientCreateResponsePoller) - testsuite.Require().NoError(err) - - // From step DataFlowDebugSession_QueryByFactory - fmt.Println("Call operation: DataFlowDebugSession_QueryByFactory") - dataFlowDebugSessionClientNewQueryByFactoryPager := dataFlowDebugSessionClient.NewQueryByFactoryPager(testsuite.resourceGroupName, testsuite.factoryName, nil) - for dataFlowDebugSessionClientNewQueryByFactoryPager.More() { - _, err := dataFlowDebugSessionClientNewQueryByFactoryPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step DataFlowDebugSession_Delete - fmt.Println("Call operation: DataFlowDebugSession_Delete") - _, err = dataFlowDebugSessionClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, armdatafactory.DeleteDataFlowDebugSessionRequest{ - SessionID: to.Ptr("91fb57e0-8292-47be-89ff-c8f2d2bb2a7e"), - }, nil) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName} -func (testsuite *DatafactoryTestSuite) TestManagedVirtualNetworks() { - var err error - // From step ManagedVirtualNetworks_CreateOrUpdate - fmt.Println("Call operation: ManagedVirtualNetworks_CreateOrUpdate") - managedVirtualNetworksClient, err := armdatafactory.NewManagedVirtualNetworksClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = managedVirtualNetworksClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.managedVirtualNetworkName, armdatafactory.ManagedVirtualNetworkResource{ - Properties: &armdatafactory.ManagedVirtualNetwork{}, - }, &armdatafactory.ManagedVirtualNetworksClientCreateOrUpdateOptions{IfMatch: nil}) - testsuite.Require().NoError(err) - - // From step ManagedVirtualNetworks_ListByFactory - fmt.Println("Call operation: ManagedVirtualNetworks_ListByFactory") - managedVirtualNetworksClientNewListByFactoryPager := managedVirtualNetworksClient.NewListByFactoryPager(testsuite.resourceGroupName, testsuite.factoryName, nil) - for managedVirtualNetworksClientNewListByFactoryPager.More() { - _, err := managedVirtualNetworksClientNewListByFactoryPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step ManagedVirtualNetworks_Get - fmt.Println("Call operation: ManagedVirtualNetworks_Get") - _, err = managedVirtualNetworksClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.managedVirtualNetworkName, &armdatafactory.ManagedVirtualNetworksClientGetOptions{IfNoneMatch: nil}) - testsuite.Require().NoError(err) - - // From step ManagedPrivateEndpoints_CreateOrUpdate - fmt.Println("Call operation: ManagedPrivateEndpoints_CreateOrUpdate") - managedPrivateEndpointsClient, err := armdatafactory.NewManagedPrivateEndpointsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = managedPrivateEndpointsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.managedVirtualNetworkName, testsuite.managedPrivateEndpointName, armdatafactory.ManagedPrivateEndpointResource{ - Properties: &armdatafactory.ManagedPrivateEndpoint{ - Fqdns: []*string{}, - GroupID: to.Ptr("blob"), - PrivateLinkResourceID: to.Ptr("/subscriptions/" + testsuite.subscriptionId + "/resourceGroups/" + testsuite.resourceGroupName + "/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage"), - }, - }, &armdatafactory.ManagedPrivateEndpointsClientCreateOrUpdateOptions{IfMatch: nil}) - testsuite.Require().NoError(err) - - // From step ManagedPrivateEndpoints_ListByFactory - fmt.Println("Call operation: ManagedPrivateEndpoints_ListByFactory") - managedPrivateEndpointsClientNewListByFactoryPager := managedPrivateEndpointsClient.NewListByFactoryPager(testsuite.resourceGroupName, testsuite.factoryName, testsuite.managedVirtualNetworkName, nil) - for managedPrivateEndpointsClientNewListByFactoryPager.More() { - _, err := managedPrivateEndpointsClientNewListByFactoryPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step ManagedPrivateEndpoints_Get - fmt.Println("Call operation: ManagedPrivateEndpoints_Get") - _, err = managedPrivateEndpointsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.managedVirtualNetworkName, testsuite.managedPrivateEndpointName, &armdatafactory.ManagedPrivateEndpointsClientGetOptions{IfNoneMatch: nil}) - testsuite.Require().NoError(err) - - // From step ManagedPrivateEndpoints_Delete - fmt.Println("Call operation: ManagedPrivateEndpoints_Delete") - _, err = managedPrivateEndpointsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.managedVirtualNetworkName, testsuite.managedPrivateEndpointName, nil) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName} -func (testsuite *DatafactoryTestSuite) TestPrivateEndpointConnection() { - // datafactoryId := testutil.GetEnv("DATAFACTORY_ID", "") - var privateEndpointConnectionName string - var err error - // From step Create_PrivateEndpoint - template := map[string]any{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": map[string]any{ - "datafactoryId": map[string]any{ - "type": "string", - "defaultValue": testsuite.datafactoryId, - }, - "location": map[string]any{ - "type": "string", - "defaultValue": testsuite.location, - }, - "networkInterfaceName": map[string]any{ - "type": "string", - "defaultValue": "endpointdatafactory-nic", - }, - "privateEndpointName": map[string]any{ - "type": "string", - "defaultValue": "endpointdatafactory", - }, - "virtualNetworksName": map[string]any{ - "type": "string", - "defaultValue": "datafactoryvnet", - }, - }, - "resources": []any{ - map[string]any{ - "name": "[parameters('virtualNetworksName')]", - "type": "Microsoft.Network/virtualNetworks", - "apiVersion": "2020-11-01", - "location": "[parameters('location')]", - "properties": map[string]any{ - "addressSpace": map[string]any{ - "addressPrefixes": []any{ - "10.0.0.0/16", - }, - }, - "enableDdosProtection": false, - "subnets": []any{ - map[string]any{ - "name": "default", - "properties": map[string]any{ - "addressPrefix": "10.0.0.0/24", - "delegations": []any{}, - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled", - }, - }, - }, - "virtualNetworkPeerings": []any{}, - }, - }, - map[string]any{ - "name": "[parameters('networkInterfaceName')]", - "type": "Microsoft.Network/networkInterfaces", - "apiVersion": "2020-11-01", - "dependsOn": []any{ - "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworksName'), 'default')]", - }, - "location": "[parameters('location')]", - "properties": map[string]any{ - "dnsSettings": map[string]any{ - "dnsServers": []any{}, - }, - "enableIPForwarding": false, - "ipConfigurations": []any{ - map[string]any{ - "name": "privateEndpointIpConfig.ab24488f-044e-43f0-b9d1-af1f04071719", - "properties": map[string]any{ - "primary": true, - "privateIPAddress": "10.0.0.4", - "privateIPAddressVersion": "IPv4", - "privateIPAllocationMethod": "Dynamic", - "subnet": map[string]any{ - "id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworksName'), 'default')]", - }, - }, - }, - }, - }, - }, - map[string]any{ - "name": "[parameters('privateEndpointName')]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-11-01", - "dependsOn": []any{ - "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworksName'), 'default')]", - }, - "location": "[parameters('location')]", - "properties": map[string]any{ - "customDnsConfigs": []any{}, - "manualPrivateLinkServiceConnections": []any{}, - "privateLinkServiceConnections": []any{ - map[string]any{ - "name": "[parameters('privateEndpointName')]", - "properties": map[string]any{ - "groupIds": []any{ - "dataFactory", - }, - "privateLinkServiceConnectionState": map[string]any{ - "description": "Auto-Approved", - "actionsRequired": "None", - "status": "Approved", - }, - "privateLinkServiceId": "[parameters('datafactoryId')]", - }, - }, - }, - "subnet": map[string]any{ - "id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworksName'), 'default')]", - }, - }, - }, - map[string]any{ - "name": "[concat(parameters('virtualNetworksName'), '/default')]", - "type": "Microsoft.Network/virtualNetworks/subnets", - "apiVersion": "2020-11-01", - "dependsOn": []any{ - "[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworksName'))]", - }, - "properties": map[string]any{ - "addressPrefix": "10.0.0.0/24", - "delegations": []any{}, - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled", - }, - }, - }, - "variables": map[string]any{}, - } - deployment := armresources.Deployment{ - Properties: &armresources.DeploymentProperties{ - Template: template, - Mode: to.Ptr(armresources.DeploymentModeIncremental), - }, - } - _, err = testutil.CreateDeployment(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName, "Create_PrivateEndpoint", &deployment) - testsuite.Require().NoError(err) - - // From step privateEndPointConnections_ListByFactory - fmt.Println("Call operation: privateEndPointConnections_ListByFactory") - privateEndPointConnectionsClient, err := armdatafactory.NewPrivateEndPointConnectionsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - privateEndPointConnectionsClientNewListByFactoryPager := privateEndPointConnectionsClient.NewListByFactoryPager(testsuite.resourceGroupName, testsuite.factoryName, nil) - for privateEndPointConnectionsClientNewListByFactoryPager.More() { - nextResult, err := privateEndPointConnectionsClientNewListByFactoryPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - - privateEndpointConnectionName = *nextResult.Value[0].Name - break - } - - // From step PrivateEndpointConnection_CreateOrUpdate - fmt.Println("Call operation: PrivateEndpointConnection_CreateOrUpdate") - privateEndpointConnectionClient, err := armdatafactory.NewPrivateEndpointConnectionClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = privateEndpointConnectionClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, privateEndpointConnectionName, armdatafactory.PrivateLinkConnectionApprovalRequestResource{ - Properties: &armdatafactory.PrivateLinkConnectionApprovalRequest{ - PrivateLinkServiceConnectionState: &armdatafactory.PrivateLinkConnectionState{ - Description: to.Ptr("Approved by admin."), - ActionsRequired: to.Ptr(""), - Status: to.Ptr("Rejected"), - }, - }, - }, &armdatafactory.PrivateEndpointConnectionClientCreateOrUpdateOptions{IfMatch: nil}) - testsuite.Require().NoError(err) - - // From step PrivateEndpointConnection_Get - fmt.Println("Call operation: PrivateEndpointConnection_Get") - _, err = privateEndpointConnectionClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, privateEndpointConnectionName, &armdatafactory.PrivateEndpointConnectionClientGetOptions{IfNoneMatch: nil}) - testsuite.Require().NoError(err) - - // From step privateLinkResources_Get - fmt.Println("Call operation: privateLinkResources_Get") - privateLinkResourcesClient, err := armdatafactory.NewPrivateLinkResourcesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = privateLinkResourcesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, nil) - testsuite.Require().NoError(err) - - // From step PrivateEndpointConnection_Delete - fmt.Println("Call operation: PrivateEndpointConnection_Delete") - _, err = privateEndpointConnectionClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, privateEndpointConnectionName, nil) - testsuite.Require().NoError(err) -} - -// Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName} -func (testsuite *DatafactoryTestSuite) TestGlobalParameters() { - var err error - // From step GlobalParameters_CreateOrUpdate - fmt.Println("Call operation: GlobalParameters_CreateOrUpdate") - globalParametersClient, err := armdatafactory.NewGlobalParametersClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = globalParametersClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, "default", armdatafactory.GlobalParameterResource{ - Properties: map[string]*armdatafactory.GlobalParameterSpecification{ - "waitTime": { - Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), - Value: float64(5), - }, - }, - }, nil) - testsuite.Require().NoError(err) - - // From step GlobalParameters_ListByFactory - fmt.Println("Call operation: GlobalParameters_ListByFactory") - globalParametersClientNewListByFactoryPager := globalParametersClient.NewListByFactoryPager(testsuite.resourceGroupName, testsuite.factoryName, nil) - for globalParametersClientNewListByFactoryPager.More() { - _, err := globalParametersClientNewListByFactoryPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step GlobalParameters_Get - fmt.Println("Call operation: GlobalParameters_Get") - _, err = globalParametersClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, "default", nil) - testsuite.Require().NoError(err) - - // From step GlobalParameters_Delete - fmt.Println("Call operation: GlobalParameters_Delete") - _, err = globalParametersClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, "default", nil) - testsuite.Require().NoError(err) -} - -func (testsuite *DatafactoryTestSuite) Cleanup() { - var err error - // From step Pipelines_Delete - fmt.Println("Call operation: Pipelines_Delete") - pipelinesClient, err := armdatafactory.NewPipelinesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = pipelinesClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.pipelineName, nil) - testsuite.Require().NoError(err) - - // From step Datasets_Delete - fmt.Println("Call operation: Datasets_Delete") - datasetsClient, err := armdatafactory.NewDatasetsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = datasetsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.datasetName, nil) - testsuite.Require().NoError(err) - - // From step LinkedServices_Delete - fmt.Println("Call operation: LinkedServices_Delete") - linkedServicesClient, err := armdatafactory.NewLinkedServicesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = linkedServicesClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, testsuite.linkedServiceName, nil) - testsuite.Require().NoError(err) - - // From step Factories_Delete - fmt.Println("Call operation: Factories_Delete") - factoriesClient, err := armdatafactory.NewFactoriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = factoriesClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.factoryName, nil) - testsuite.Require().NoError(err) -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go deleted file mode 100644 index 53a6cedb5e99..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go +++ /dev/null @@ -1,265 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json -func ExampleDataFlowDebugSessionClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewDataFlowDebugSessionClient().BeginCreate(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.CreateDataFlowDebugSessionRequest{ - IntegrationRuntime: &armdatafactory.IntegrationRuntimeDebugResource{ - Name: to.Ptr("ir1"), - Properties: &armdatafactory.ManagedIntegrationRuntime{ - Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeManaged), - TypeProperties: &armdatafactory.ManagedIntegrationRuntimeTypeProperties{ - ComputeProperties: &armdatafactory.IntegrationRuntimeComputeProperties{ - DataFlowProperties: &armdatafactory.IntegrationRuntimeDataFlowProperties{ - ComputeType: to.Ptr(armdatafactory.DataFlowComputeTypeGeneral), - CoreCount: to.Ptr[int32](48), - TimeToLive: to.Ptr[int32](10), - }, - Location: to.Ptr("AutoResolve"), - }, - }, - }, - }, - TimeToLive: to.Ptr[int32](60), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %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.CreateDataFlowDebugSessionResponse = armdatafactory.CreateDataFlowDebugSessionResponse{ - // SessionID: to.Ptr("229c688c-944c-44ac-b31a-82d50f347154"), - // Status: to.Ptr("Succeeded"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json -func ExampleDataFlowDebugSessionClient_NewQueryByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDataFlowDebugSessionClient().NewQueryByFactoryPager("exampleResourceGroup", "exampleFactoryName", 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.QueryDataFlowDebugSessionsResponse = armdatafactory.QueryDataFlowDebugSessionsResponse{ - // Value: []*armdatafactory.DataFlowDebugSessionInfo{ - // { - // AdditionalProperties: map[string]any{ - // "dataflowName": "DebugSession-0a7e0d6e-f2b7-48cc-8cd8-618326f5662f", - // "userObjectId": "0a7e0d6e-f2b7-48cc-8cd8-618326f5662f", - // }, - // ComputeType: to.Ptr("General"), - // CoreCount: to.Ptr[int32](48), - // LastActivityTime: to.Ptr("2019-09-05T18:28:00.9459674+00:00"), - // SessionID: to.Ptr("229c688c-944c-44ac-b31a-82d50f347154"), - // StartTime: to.Ptr("2019-09-05T18:23:20.3257799+00:00"), - // TimeToLiveInMinutes: to.Ptr[int32](60), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json -func ExampleDataFlowDebugSessionClient_AddDataFlow() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDataFlowDebugSessionClient().AddDataFlow(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.DataFlowDebugPackage{ - DataFlow: &armdatafactory.DataFlowDebugResource{ - Name: to.Ptr("dataflow1"), - Properties: &armdatafactory.MappingDataFlow{ - Type: to.Ptr("MappingDataFlow"), - TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ - Script: to.Ptr("\n\nsource(output(\n Column_1 as string\n ),\n allowSchemaDrift: true,\n validateSchema: false) ~> source1"), - Sinks: []*armdatafactory.DataFlowSink{}, - Sources: []*armdatafactory.DataFlowSource{ - { - Name: to.Ptr("source1"), - Dataset: &armdatafactory.DatasetReference{ - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - ReferenceName: to.Ptr("DelimitedText2"), - }, - }}, - Transformations: []*armdatafactory.Transformation{}, - }, - }, - }, - Datasets: []*armdatafactory.DatasetDebugResource{ - { - Name: to.Ptr("dataset1"), - Properties: &armdatafactory.DelimitedTextDataset{ - Type: to.Ptr("DelimitedText"), - Schema: []any{ - map[string]any{ - "type": "String", - }, - }, - Annotations: []any{}, - LinkedServiceName: &armdatafactory.LinkedServiceReference{ - Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), - ReferenceName: to.Ptr("linkedService5"), - }, - TypeProperties: &armdatafactory.DelimitedTextDatasetTypeProperties{ - ColumnDelimiter: ",", - EscapeChar: "\\", - FirstRowAsHeader: true, - Location: &armdatafactory.AzureBlobStorageLocation{ - Type: to.Ptr("AzureBlobStorageLocation"), - FileName: "Ansiencoding.csv", - Container: "dataflow-sample-data", - }, - QuoteChar: "\"", - }, - }, - }}, - DebugSettings: &armdatafactory.DataFlowDebugPackageDebugSettings{ - DatasetParameters: map[string]any{ - "Movies": map[string]any{ - "path": "abc", - }, - "Output": map[string]any{ - "time": "def", - }, - }, - Parameters: map[string]any{ - "sourcePath": "Toy", - }, - SourceSettings: []*armdatafactory.DataFlowSourceSetting{ - { - RowLimit: to.Ptr[int32](1000), - SourceName: to.Ptr("source1"), - }, - { - RowLimit: to.Ptr[int32](222), - SourceName: to.Ptr("source2"), - }}, - }, - LinkedServices: []*armdatafactory.LinkedServiceDebugResource{ - { - Name: to.Ptr("linkedService1"), - Properties: &armdatafactory.AzureBlobStorageLinkedService{ - Type: to.Ptr("AzureBlobStorage"), - Annotations: []any{}, - TypeProperties: &armdatafactory.AzureBlobStorageLinkedServiceTypeProperties{ - ConnectionString: "DefaultEndpointsProtocol=https;AccountName=;EndpointSuffix=core.windows.net;", - EncryptedCredential: to.Ptr(""), - }, - }, - }}, - SessionID: to.Ptr("f06ed247-9d07-49b2-b05e-2cb4a2fc871e"), - }, 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.AddDataFlowToDebugSessionResponse = armdatafactory.AddDataFlowToDebugSessionResponse{ - // JobVersion: to.Ptr("e5328ee7-c524-4207-8ba4-b709010db33d"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json -func ExampleDataFlowDebugSessionClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDataFlowDebugSessionClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.DeleteDataFlowDebugSessionRequest{ - SessionID: to.Ptr("91fb57e0-8292-47be-89ff-c8f2d2bb2a7e"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json -func ExampleDataFlowDebugSessionClient_BeginExecuteCommand() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewDataFlowDebugSessionClient().BeginExecuteCommand(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.DataFlowDebugCommandRequest{ - Command: to.Ptr(armdatafactory.DataFlowDebugCommandTypeExecutePreviewQuery), - CommandPayload: &armdatafactory.DataFlowDebugCommandPayload{ - RowLimits: to.Ptr[int32](100), - StreamName: to.Ptr("source1"), - }, - SessionID: to.Ptr("f06ed247-9d07-49b2-b05e-2cb4a2fc871e"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %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.DataFlowDebugCommandResponse = armdatafactory.DataFlowDebugCommandResponse{ - // Data: to.Ptr("some output"), - // Status: to.Ptr("Succeeded"), - // } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go deleted file mode 100644 index c5495bca27a1..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go +++ /dev/null @@ -1,460 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json -func ExampleDataFlowsClient_CreateOrUpdate_dataFlowsCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDataFlowsClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", armdatafactory.DataFlowResource{ - Properties: &armdatafactory.MappingDataFlow{ - Type: to.Ptr("MappingDataFlow"), - Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), - TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ - ScriptLines: []*string{ - to.Ptr("source(output("), - to.Ptr("PreviousConversionRate as double,"), - to.Ptr("Country as string,"), - to.Ptr("DateTime1 as string,"), - to.Ptr("CurrentConversionRate as double"), - to.Ptr("),"), - to.Ptr("allowSchemaDrift: false,"), - to.Ptr("validateSchema: false) ~> USDCurrency"), - to.Ptr("source(output("), - to.Ptr("PreviousConversionRate as double,"), - to.Ptr("Country as string,"), - to.Ptr("DateTime1 as string,"), - to.Ptr("CurrentConversionRate as double"), - to.Ptr("),"), - to.Ptr("allowSchemaDrift: true,"), - to.Ptr("validateSchema: false) ~> CADSource"), - to.Ptr("USDCurrency, CADSource union(byName: true)~> Union"), - to.Ptr("Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn"), - to.Ptr("NewCurrencyColumn split(Country == 'USD',"), - to.Ptr("Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)"), - to.Ptr("ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink"), - to.Ptr("ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")}, - Sinks: []*armdatafactory.DataFlowSink{ - { - Name: to.Ptr("USDSink"), - Dataset: &armdatafactory.DatasetReference{ - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - ReferenceName: to.Ptr("USDOutput"), - }, - }, - { - Name: to.Ptr("CADSink"), - Dataset: &armdatafactory.DatasetReference{ - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - ReferenceName: to.Ptr("CADOutput"), - }, - }}, - Sources: []*armdatafactory.DataFlowSource{ - { - Name: to.Ptr("USDCurrency"), - Dataset: &armdatafactory.DatasetReference{ - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - ReferenceName: to.Ptr("CurrencyDatasetUSD"), - }, - }, - { - Name: to.Ptr("CADSource"), - Dataset: &armdatafactory.DatasetReference{ - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - ReferenceName: to.Ptr("CurrencyDatasetCAD"), - }, - }}, - }, - }, - }, &armdatafactory.DataFlowsClientCreateOrUpdateOptions{IfMatch: 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.DataFlowResource = armdatafactory.DataFlowResource{ - // Name: to.Ptr("exampleDataFlow"), - // Type: to.Ptr("Microsoft.DataFactory/factories/dataflows"), - // Etag: to.Ptr("0a0066d4-0000-0000-0000-5b245bd20000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), - // Properties: &armdatafactory.MappingDataFlow{ - // Type: to.Ptr("MappingDataFlow"), - // Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), - // TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ - // ScriptLines: []*string{ - // to.Ptr("source(output("), - // to.Ptr("PreviousConversionRate as double,"), - // to.Ptr("Country as string,"), - // to.Ptr("DateTime1 as string,"), - // to.Ptr("CurrentConversionRate as double"), - // to.Ptr("),"), - // to.Ptr("allowSchemaDrift: false,"), - // to.Ptr("validateSchema: false) ~> USDCurrency"), - // to.Ptr("source(output("), - // to.Ptr("PreviousConversionRate as double,"), - // to.Ptr("Country as string,"), - // to.Ptr("DateTime1 as string,"), - // to.Ptr("CurrentConversionRate as double"), - // to.Ptr("),"), - // to.Ptr("allowSchemaDrift: true,"), - // to.Ptr("validateSchema: false) ~> CADSource"), - // to.Ptr("USDCurrency, CADSource union(byName: true)~> Union"), - // to.Ptr("Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn"), - // to.Ptr("NewCurrencyColumn split(Country == 'USD',"), - // to.Ptr("Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)"), - // to.Ptr("ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink"), - // to.Ptr("ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")}, - // Sinks: []*armdatafactory.DataFlowSink{ - // { - // Name: to.Ptr("USDSink"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("USDOutput"), - // }, - // }, - // { - // Name: to.Ptr("CADSink"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CADOutput"), - // }, - // }}, - // Sources: []*armdatafactory.DataFlowSource{ - // { - // Name: to.Ptr("USDCurrency"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CurrencyDatasetUSD"), - // }, - // }, - // { - // Name: to.Ptr("CADSource"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CurrencyDatasetCAD"), - // }, - // }}, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json -func ExampleDataFlowsClient_CreateOrUpdate_dataFlowsUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDataFlowsClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", armdatafactory.DataFlowResource{ - Properties: &armdatafactory.MappingDataFlow{ - Type: to.Ptr("MappingDataFlow"), - Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), - TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ - ScriptLines: []*string{ - to.Ptr("source(output("), - to.Ptr("PreviousConversionRate as double,"), - to.Ptr("Country as string,"), - to.Ptr("DateTime1 as string,"), - to.Ptr("CurrentConversionRate as double"), - to.Ptr("),"), - to.Ptr("allowSchemaDrift: false,"), - to.Ptr("validateSchema: false) ~> USDCurrency"), - to.Ptr("source(output("), - to.Ptr("PreviousConversionRate as double,"), - to.Ptr("Country as string,"), - to.Ptr("DateTime1 as string,"), - to.Ptr("CurrentConversionRate as double"), - to.Ptr("),"), - to.Ptr("allowSchemaDrift: true,"), - to.Ptr("validateSchema: false) ~> CADSource"), - to.Ptr("USDCurrency, CADSource union(byName: true)~> Union"), - to.Ptr("Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn"), - to.Ptr("NewCurrencyColumn split(Country == 'USD',"), - to.Ptr("Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)"), - to.Ptr("ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink"), - to.Ptr("ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")}, - Sinks: []*armdatafactory.DataFlowSink{ - { - Name: to.Ptr("USDSink"), - Dataset: &armdatafactory.DatasetReference{ - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - ReferenceName: to.Ptr("USDOutput"), - }, - }, - { - Name: to.Ptr("CADSink"), - Dataset: &armdatafactory.DatasetReference{ - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - ReferenceName: to.Ptr("CADOutput"), - }, - }}, - Sources: []*armdatafactory.DataFlowSource{ - { - Name: to.Ptr("USDCurrency"), - Dataset: &armdatafactory.DatasetReference{ - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - ReferenceName: to.Ptr("CurrencyDatasetUSD"), - }, - }, - { - Name: to.Ptr("CADSource"), - Dataset: &armdatafactory.DatasetReference{ - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - ReferenceName: to.Ptr("CurrencyDatasetCAD"), - }, - }}, - }, - }, - }, &armdatafactory.DataFlowsClientCreateOrUpdateOptions{IfMatch: 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.DataFlowResource = armdatafactory.DataFlowResource{ - // Name: to.Ptr("exampleDataFlow"), - // Type: to.Ptr("Microsoft.DataFactory/factories/dataflows"), - // Etag: to.Ptr("0a0068d4-0000-0000-0000-5b245bd30002"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), - // Properties: &armdatafactory.MappingDataFlow{ - // Type: to.Ptr("MappingDataFlow"), - // Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), - // TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ - // ScriptLines: []*string{ - // to.Ptr("source(output("), - // to.Ptr("PreviousConversionRate as double,"), - // to.Ptr("Country as string,"), - // to.Ptr("DateTime1 as string,"), - // to.Ptr("CurrentConversionRate as double"), - // to.Ptr("),"), - // to.Ptr("allowSchemaDrift: false,"), - // to.Ptr("validateSchema: false) ~> USDCurrency"), - // to.Ptr("source(output("), - // to.Ptr("PreviousConversionRate as double,"), - // to.Ptr("Country as string,"), - // to.Ptr("DateTime1 as string,"), - // to.Ptr("CurrentConversionRate as double"), - // to.Ptr("),"), - // to.Ptr("allowSchemaDrift: true,"), - // to.Ptr("validateSchema: false) ~> CADSource"), - // to.Ptr("USDCurrency, CADSource union(byName: true)~> Union"), - // to.Ptr("Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn"), - // to.Ptr("NewCurrencyColumn split(Country == 'USD',"), - // to.Ptr("Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)"), - // to.Ptr("ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink"), - // to.Ptr("ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")}, - // Sinks: []*armdatafactory.DataFlowSink{ - // { - // Name: to.Ptr("USDSink"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("USDOutput"), - // }, - // }, - // { - // Name: to.Ptr("CADSink"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CADOutput"), - // }, - // }}, - // Sources: []*armdatafactory.DataFlowSource{ - // { - // Name: to.Ptr("USDCurrency"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CurrencyDatasetUSD"), - // }, - // }, - // { - // Name: to.Ptr("CADSource"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CurrencyDatasetCAD"), - // }, - // }}, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json -func ExampleDataFlowsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDataFlowsClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", &armdatafactory.DataFlowsClientGetOptions{IfNoneMatch: 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.DataFlowResource = armdatafactory.DataFlowResource{ - // Name: to.Ptr("exampleDataFlow"), - // Type: to.Ptr("Microsoft.DataFactory/factories/dataflows"), - // Etag: to.Ptr("15004c4f-0000-0200-0000-5cbe090e0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/dataflows/exampleDataFlow"), - // Properties: &armdatafactory.MappingDataFlow{ - // Type: to.Ptr("MappingDataFlow"), - // Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), - // TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ - // Script: to.Ptr("source(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false) ~> USDCurrency\nsource(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false) ~> CADSource\nUSDCurrency, CADSource union(byName: true)~> Union\nUnion derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\nNewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)\nConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\nConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"), - // Sinks: []*armdatafactory.DataFlowSink{ - // { - // Name: to.Ptr("USDSink"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("USDOutput"), - // }, - // }, - // { - // Name: to.Ptr("CADSink"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CADOutput"), - // }, - // }}, - // Sources: []*armdatafactory.DataFlowSource{ - // { - // Name: to.Ptr("USDCurrency"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CurrencyDatasetUSD"), - // }, - // }, - // { - // Name: to.Ptr("CADSource"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CurrencyDatasetCAD"), - // }, - // }}, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json -func ExampleDataFlowsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDataFlowsClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataFlow", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json -func ExampleDataFlowsClient_NewListByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDataFlowsClient().NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", 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.DataFlowListResponse = armdatafactory.DataFlowListResponse{ - // Value: []*armdatafactory.DataFlowResource{ - // { - // Name: to.Ptr("exampleDataFlow"), - // Type: to.Ptr("Microsoft.DataFactory/factories/dataflows"), - // Etag: to.Ptr("0a0068d4-0000-0000-0000-5b245bd30000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/dataflows/exampleDataFlow"), - // Properties: &armdatafactory.MappingDataFlow{ - // Type: to.Ptr("MappingDataFlow"), - // Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), - // TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ - // Script: to.Ptr("source(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false) ~> USDCurrency\nsource(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false) ~> CADSource\nUSDCurrency, CADSource union(byName: true)~> Union\nUnion derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\nNewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)\nConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\nConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"), - // Sinks: []*armdatafactory.DataFlowSink{ - // { - // Name: to.Ptr("USDSink"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("USDOutput"), - // }, - // }, - // { - // Name: to.Ptr("CADSink"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CADOutput"), - // }, - // }}, - // Sources: []*armdatafactory.DataFlowSource{ - // { - // Name: to.Ptr("USDCurrency"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CurrencyDatasetUSD"), - // }, - // }, - // { - // Name: to.Ptr("CADSource"), - // Dataset: &armdatafactory.DatasetReference{ - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // ReferenceName: to.Ptr("CurrencyDatasetCAD"), - // }, - // }}, - // }, - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go deleted file mode 100644 index 43db79e2c529..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go +++ /dev/null @@ -1,334 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json -func ExampleDatasetsClient_NewListByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDatasetsClient().NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", 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.DatasetListResponse = armdatafactory.DatasetListResponse{ - // Value: []*armdatafactory.DatasetResource{ - // { - // Name: to.Ptr("exampleDataset"), - // Type: to.Ptr("Microsoft.DataFactory/factories/datasets"), - // Etag: to.Ptr("0a0068d4-0000-0000-0000-5b245bd30000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), - // Properties: &armdatafactory.AzureBlobDataset{ - // Type: to.Ptr("AzureBlob"), - // Description: to.Ptr("Example description"), - // LinkedServiceName: &armdatafactory.LinkedServiceReference{ - // Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), - // ReferenceName: to.Ptr("exampleLinkedService"), - // }, - // Parameters: map[string]*armdatafactory.ParameterSpecification{ - // "MyFileName": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeString), - // }, - // "MyFolderPath": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeString), - // }, - // }, - // TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ - // Format: &armdatafactory.TextFormat{ - // Type: to.Ptr("TextFormat"), - // }, - // FileName: map[string]any{ - // "type": "Expression", - // "value": "@dataset().MyFileName", - // }, - // FolderPath: map[string]any{ - // "type": "Expression", - // "value": "@dataset().MyFolderPath", - // }, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json -func ExampleDatasetsClient_CreateOrUpdate_datasetsCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDatasetsClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataset", armdatafactory.DatasetResource{ - Properties: &armdatafactory.AzureBlobDataset{ - Type: to.Ptr("AzureBlob"), - LinkedServiceName: &armdatafactory.LinkedServiceReference{ - Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), - ReferenceName: to.Ptr("exampleLinkedService"), - }, - Parameters: map[string]*armdatafactory.ParameterSpecification{ - "MyFileName": { - Type: to.Ptr(armdatafactory.ParameterTypeString), - }, - "MyFolderPath": { - Type: to.Ptr(armdatafactory.ParameterTypeString), - }, - }, - TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ - Format: &armdatafactory.TextFormat{ - Type: to.Ptr("TextFormat"), - }, - FileName: map[string]any{ - "type": "Expression", - "value": "@dataset().MyFileName", - }, - FolderPath: map[string]any{ - "type": "Expression", - "value": "@dataset().MyFolderPath", - }, - }, - }, - }, &armdatafactory.DatasetsClientCreateOrUpdateOptions{IfMatch: 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.DatasetResource = armdatafactory.DatasetResource{ - // Name: to.Ptr("exampleDataset"), - // Type: to.Ptr("Microsoft.DataFactory/factories/datasets"), - // Etag: to.Ptr("0a0066d4-0000-0000-0000-5b245bd20000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), - // Properties: &armdatafactory.AzureBlobDataset{ - // Type: to.Ptr("AzureBlob"), - // Schema: []any{ - // map[string]any{ - // "name": "col1", - // "type": "INT_32", - // }, - // map[string]any{ - // "name": "col2", - // "type": "Decimal", - // "precision": "38", - // "scale": "2", - // }, - // }, - // LinkedServiceName: &armdatafactory.LinkedServiceReference{ - // Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), - // ReferenceName: to.Ptr("exampleLinkedService"), - // }, - // Parameters: map[string]*armdatafactory.ParameterSpecification{ - // "MyFileName": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeString), - // }, - // "MyFolderPath": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeString), - // }, - // }, - // TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ - // Format: &armdatafactory.TextFormat{ - // Type: to.Ptr("TextFormat"), - // }, - // FileName: map[string]any{ - // "type": "Expression", - // "value": "@dataset().MyFileName", - // }, - // FolderPath: map[string]any{ - // "type": "Expression", - // "value": "@dataset().MyFolderPath", - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json -func ExampleDatasetsClient_CreateOrUpdate_datasetsUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDatasetsClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataset", armdatafactory.DatasetResource{ - Properties: &armdatafactory.AzureBlobDataset{ - Type: to.Ptr("AzureBlob"), - Description: to.Ptr("Example description"), - LinkedServiceName: &armdatafactory.LinkedServiceReference{ - Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), - ReferenceName: to.Ptr("exampleLinkedService"), - }, - Parameters: map[string]*armdatafactory.ParameterSpecification{ - "MyFileName": { - Type: to.Ptr(armdatafactory.ParameterTypeString), - }, - "MyFolderPath": { - Type: to.Ptr(armdatafactory.ParameterTypeString), - }, - }, - TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ - Format: &armdatafactory.TextFormat{ - Type: to.Ptr("TextFormat"), - }, - FileName: map[string]any{ - "type": "Expression", - "value": "@dataset().MyFileName", - }, - FolderPath: map[string]any{ - "type": "Expression", - "value": "@dataset().MyFolderPath", - }, - }, - }, - }, &armdatafactory.DatasetsClientCreateOrUpdateOptions{IfMatch: 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.DatasetResource = armdatafactory.DatasetResource{ - // Name: to.Ptr("exampleDataset"), - // Type: to.Ptr("Microsoft.DataFactory/factories/datasets"), - // Etag: to.Ptr("0a0068d4-0000-0000-0000-5b245bd30000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), - // Properties: &armdatafactory.AzureBlobDataset{ - // Type: to.Ptr("AzureBlob"), - // Description: to.Ptr("Example description"), - // LinkedServiceName: &armdatafactory.LinkedServiceReference{ - // Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), - // ReferenceName: to.Ptr("exampleLinkedService"), - // }, - // Parameters: map[string]*armdatafactory.ParameterSpecification{ - // "MyFileName": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeString), - // }, - // "MyFolderPath": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeString), - // }, - // }, - // TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ - // Format: &armdatafactory.TextFormat{ - // Type: to.Ptr("TextFormat"), - // }, - // FileName: map[string]any{ - // "type": "Expression", - // "value": "@dataset().MyFileName", - // }, - // FolderPath: map[string]any{ - // "type": "Expression", - // "value": "@dataset().MyFolderPath", - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json -func ExampleDatasetsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDatasetsClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataset", &armdatafactory.DatasetsClientGetOptions{IfNoneMatch: 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.DatasetResource = armdatafactory.DatasetResource{ - // Name: to.Ptr("exampleDataset"), - // Type: to.Ptr("Microsoft.DataFactory/factories/datasets"), - // Etag: to.Ptr("15004c4f-0000-0200-0000-5cbe090e0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), - // Properties: &armdatafactory.AzureBlobDataset{ - // Type: to.Ptr("AzureBlob"), - // Description: to.Ptr("Example description"), - // LinkedServiceName: &armdatafactory.LinkedServiceReference{ - // Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), - // ReferenceName: to.Ptr("exampleLinkedService"), - // }, - // Parameters: map[string]*armdatafactory.ParameterSpecification{ - // "MyFileName": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeString), - // }, - // "MyFolderPath": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeString), - // }, - // }, - // TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ - // Format: &armdatafactory.TextFormat{ - // Type: to.Ptr("TextFormat"), - // }, - // FileName: map[string]any{ - // "type": "Expression", - // "value": "@dataset().MyFileName", - // }, - // FolderPath: map[string]any{ - // "type": "Expression", - // "value": "@dataset().MyFolderPath", - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json -func ExampleDatasetsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDatasetsClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleDataset", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go deleted file mode 100644 index afe0bf50db8c..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go +++ /dev/null @@ -1,114 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json -func ExampleExposureControlClient_GetFeatureValue() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewExposureControlClient().GetFeatureValue(ctx, "WestEurope", armdatafactory.ExposureControlRequest{ - FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), - FeatureType: to.Ptr("Feature"), - }, 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.ExposureControlResponse = armdatafactory.ExposureControlResponse{ - // FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), - // Value: to.Ptr("False"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json -func ExampleExposureControlClient_GetFeatureValueByFactory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewExposureControlClient().GetFeatureValueByFactory(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.ExposureControlRequest{ - FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), - FeatureType: to.Ptr("Feature"), - }, 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.ExposureControlResponse = armdatafactory.ExposureControlResponse{ - // FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), - // Value: to.Ptr("False"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json -func ExampleExposureControlClient_QueryFeatureValuesByFactory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewExposureControlClient().QueryFeatureValuesByFactory(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.ExposureControlBatchRequest{ - ExposureControlRequests: []*armdatafactory.ExposureControlRequest{ - { - FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), - FeatureType: to.Ptr("Feature"), - }, - { - FeatureName: to.Ptr("ADFSampleFeature"), - FeatureType: to.Ptr("Feature"), - }}, - }, 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.ExposureControlBatchResponse = armdatafactory.ExposureControlBatchResponse{ - // ExposureControlResponses: []*armdatafactory.ExposureControlResponse{ - // { - // FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), - // Value: to.Ptr("False"), - // }, - // { - // FeatureName: to.Ptr("ADFSampleFeature"), - // Value: to.Ptr("True"), - // }}, - // } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go deleted file mode 100644 index d9bf69baaeff..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go +++ /dev/null @@ -1,592 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json -func ExampleFactoriesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewFactoriesClient().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.FactoryListResponse = armdatafactory.FactoryListResponse{ - // Value: []*armdatafactory.Factory{ - // { - // Name: to.Ptr("rpV2OrigDF-72c7d3d4-5e17-4ec6-91de-9ab433f15e79"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"0000aa0d-0000-0000-0000-5b0d58170000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/rg-yanzhang-dfv2/providers/Microsoft.DataFactory/factories/rpv2origdf-72c7d3d4-5e17-4ec6-91de-9ab433f15e79"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // Identity: &armdatafactory.FactoryIdentity{ - // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), - // PrincipalID: to.Ptr("399c3de2-6072-4326-bfa9-4d0c116f1a7b"), - // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-29T13:39:35.615921Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2017-09-01-preview"), - // }, - // }, - // { - // Name: to.Ptr("df-dogfood-yanzhang-we"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"0000f301-0000-0000-0000-5b21b16c0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/rg-yanzhang-dfv2/providers/Microsoft.DataFactory/factories/df-dogfood-yanzhang-we"), - // Location: to.Ptr("West Europe"), - // Tags: map[string]*string{ - // }, - // Identity: &armdatafactory.FactoryIdentity{ - // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), - // PrincipalID: to.Ptr("e8dd6df9-bad5-4dea-8fb8-0d13d1845d9e"), - // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T00:06:04.6667461Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2017-09-01-preview"), - // }, - // }, - // { - // Name: to.Ptr("exampleFactoryName-linked"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00008a02-0000-0000-0000-5b237f270000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName-linked"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // Identity: &armdatafactory.FactoryIdentity{ - // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), - // PrincipalID: to.Ptr("10743799-44d2-42fe-8c4d-5bc5c51c0684"), - // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-15T08:56:07.1828318Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2017-09-01-preview"), - // }, - // }, - // { - // Name: to.Ptr("FactoryToUpgrade"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00003d04-0000-0000-0000-5b28962f0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/factorytoupgrade"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:35:35.7133828Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2018-06-01"), - // }, - // }, - // { - // Name: to.Ptr("exampleFactoryName"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00004004-0000-0000-0000-5b28979e0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // "exampleTag": to.Ptr("exampleValue"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // PurviewConfiguration: &armdatafactory.PurviewConfiguration{ - // PurviewResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Purview/accounts/examplePurview"), - // }, - // RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ - // Type: to.Ptr("FactoryVSTSConfiguration"), - // AccountName: to.Ptr("ADF"), - // CollaborationBranch: to.Ptr("master"), - // LastCommitID: to.Ptr(""), - // RepositoryName: to.Ptr("repo"), - // RootFolder: to.Ptr("/"), - // ProjectName: to.Ptr("project"), - // TenantID: to.Ptr(""), - // }, - // Version: to.Ptr("2018-06-01"), - // }, - // }, - // { - // Name: to.Ptr("rpV2OrigDF-72c7d3d4-5e17-4ec6-91de-9ab433f15e79"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"0000aa0d-0000-0000-0000-5b0d58170000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/rg-yanzhang-dfv2/providers/Microsoft.DataFactory/factories/rpv2origdf-72c7d3d4-5e17-4ec6-91de-9ab433f15e79"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // Identity: &armdatafactory.FactoryIdentity{ - // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), - // PrincipalID: to.Ptr("399c3de2-6072-4326-bfa9-4d0c116f1a7b"), - // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-29T13:39:35.615921Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2017-09-01-preview"), - // }, - // }, - // { - // Name: to.Ptr("df-dogfood-yanzhang-we"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"0000f301-0000-0000-0000-5b21b16c0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/rg-yanzhang-dfv2/providers/Microsoft.DataFactory/factories/df-dogfood-yanzhang-we"), - // Location: to.Ptr("West Europe"), - // Tags: map[string]*string{ - // }, - // Identity: &armdatafactory.FactoryIdentity{ - // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), - // PrincipalID: to.Ptr("e8dd6df9-bad5-4dea-8fb8-0d13d1845d9e"), - // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T00:06:04.6667461Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2017-09-01-preview"), - // }, - // }, - // { - // Name: to.Ptr("exampleFactoryName-linked"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00008a02-0000-0000-0000-5b237f270000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName-linked"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // Identity: &armdatafactory.FactoryIdentity{ - // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), - // PrincipalID: to.Ptr("10743799-44d2-42fe-8c4d-5bc5c51c0684"), - // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-15T08:56:07.1828318Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2017-09-01-preview"), - // }, - // }, - // { - // Name: to.Ptr("FactoryToUpgrade"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00003d04-0000-0000-0000-5b28962f0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/factorytoupgrade"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:35:35.7133828Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2018-06-01"), - // }, - // }, - // { - // Name: to.Ptr("exampleFactoryName"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00004004-0000-0000-0000-5b28979e0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // "exampleTag": to.Ptr("exampleValue"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // PurviewConfiguration: &armdatafactory.PurviewConfiguration{ - // PurviewResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Purview/accounts/examplePurview"), - // }, - // RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ - // Type: to.Ptr("FactoryVSTSConfiguration"), - // AccountName: to.Ptr("ADF"), - // CollaborationBranch: to.Ptr("master"), - // LastCommitID: to.Ptr(""), - // RepositoryName: to.Ptr("repo"), - // RootFolder: to.Ptr("/"), - // ProjectName: to.Ptr("project"), - // TenantID: to.Ptr(""), - // }, - // Version: to.Ptr("2018-06-01"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json -func ExampleFactoriesClient_ConfigureFactoryRepo() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewFactoriesClient().ConfigureFactoryRepo(ctx, "East US", armdatafactory.FactoryRepoUpdate{ - FactoryResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), - RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ - Type: to.Ptr("FactoryVSTSConfiguration"), - AccountName: to.Ptr("ADF"), - CollaborationBranch: to.Ptr("master"), - LastCommitID: to.Ptr(""), - RepositoryName: to.Ptr("repo"), - RootFolder: to.Ptr("/"), - ProjectName: to.Ptr("project"), - TenantID: to.Ptr(""), - }, - }, 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.Factory = armdatafactory.Factory{ - // Name: to.Ptr("exampleFactoryName"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00004004-0000-0000-0000-5b28979e0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // "exampleTag": to.Ptr("exampleValue"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ - // Type: to.Ptr("FactoryVSTSConfiguration"), - // AccountName: to.Ptr("ADF"), - // CollaborationBranch: to.Ptr("master"), - // LastCommitID: to.Ptr(""), - // RepositoryName: to.Ptr("repo"), - // RootFolder: to.Ptr("/"), - // ProjectName: to.Ptr("project"), - // TenantID: to.Ptr(""), - // }, - // Version: to.Ptr("2018-06-01"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json -func ExampleFactoriesClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewFactoriesClient().NewListByResourceGroupPager("exampleResourceGroup", 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.FactoryListResponse = armdatafactory.FactoryListResponse{ - // Value: []*armdatafactory.Factory{ - // { - // Name: to.Ptr("exampleFactoryName-linked"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00008a02-0000-0000-0000-5b237f270000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName-linked"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // Identity: &armdatafactory.FactoryIdentity{ - // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), - // PrincipalID: to.Ptr("10743799-44d2-42fe-8c4d-5bc5c51c0684"), - // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-15T08:56:07.1828318Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2017-09-01-preview"), - // }, - // }, - // { - // Name: to.Ptr("FactoryToUpgrade"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00003d04-0000-0000-0000-5b28962f0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/factorytoupgrade"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:35:35.7133828Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2018-06-01"), - // }, - // }, - // { - // Name: to.Ptr("exampleFactoryName"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00004004-0000-0000-0000-5b28979e0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // "exampleTag": to.Ptr("exampleValue"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ - // Type: to.Ptr("FactoryVSTSConfiguration"), - // AccountName: to.Ptr("ADF"), - // CollaborationBranch: to.Ptr("master"), - // LastCommitID: to.Ptr(""), - // RepositoryName: to.Ptr("repo"), - // RootFolder: to.Ptr("/"), - // ProjectName: to.Ptr("project"), - // TenantID: to.Ptr(""), - // }, - // Version: to.Ptr("2018-06-01"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json -func ExampleFactoriesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewFactoriesClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.Factory{ - Location: to.Ptr("East US"), - }, &armdatafactory.FactoriesClientCreateOrUpdateOptions{IfMatch: 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.Factory = armdatafactory.Factory{ - // Name: to.Ptr("exampleFactoryName"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00003e04-0000-0000-0000-5b28979e0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2018-06-01"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json -func ExampleFactoriesClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewFactoriesClient().Update(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.FactoryUpdateParameters{ - Tags: map[string]*string{ - "exampleTag": to.Ptr("exampleValue"), - }, - }, 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.Factory = armdatafactory.Factory{ - // Name: to.Ptr("exampleFactoryName"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00003f04-0000-0000-0000-5b28979e0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // "exampleTag": to.Ptr("exampleValue"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Version: to.Ptr("2018-06-01"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json -func ExampleFactoriesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewFactoriesClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", &armdatafactory.FactoriesClientGetOptions{IfNoneMatch: 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.Factory = armdatafactory.Factory{ - // Name: to.Ptr("exampleFactoryName"), - // Type: to.Ptr("Microsoft.DataFactory/factories"), - // ETag: to.Ptr("\"00004004-0000-0000-0000-5b28979e0000\""), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // "exampleTag": to.Ptr("exampleValue"), - // }, - // Properties: &armdatafactory.FactoryProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // PurviewConfiguration: &armdatafactory.PurviewConfiguration{ - // PurviewResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Purview/accounts/examplePurview"), - // }, - // RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ - // Type: to.Ptr("FactoryVSTSConfiguration"), - // AccountName: to.Ptr("ADF"), - // CollaborationBranch: to.Ptr("master"), - // LastCommitID: to.Ptr(""), - // RepositoryName: to.Ptr("repo"), - // RootFolder: to.Ptr("/"), - // ProjectName: to.Ptr("project"), - // TenantID: to.Ptr(""), - // }, - // Version: to.Ptr("2018-06-01"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json -func ExampleFactoriesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewFactoriesClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json -func ExampleFactoriesClient_GetGitHubAccessToken() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewFactoriesClient().GetGitHubAccessToken(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.GitHubAccessTokenRequest{ - GitHubAccessCode: to.Ptr("some"), - GitHubAccessTokenBaseURL: to.Ptr("some"), - GitHubClientID: to.Ptr("some"), - }, 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.GitHubAccessTokenResponse = armdatafactory.GitHubAccessTokenResponse{ - // GitHubAccessToken: to.Ptr("myAccessTokenExample"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json -func ExampleFactoriesClient_GetDataPlaneAccess() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewFactoriesClient().GetDataPlaneAccess(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.UserAccessPolicy{ - AccessResourcePath: to.Ptr(""), - ExpireTime: to.Ptr("2018-11-10T09:46:20.2659347Z"), - Permissions: to.Ptr("r"), - ProfileName: to.Ptr("DefaultProfile"), - StartTime: to.Ptr("2018-11-10T02:46:20.2659347Z"), - }, 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.AccessPolicyResponse = armdatafactory.AccessPolicyResponse{ - // AccessToken: to.Ptr("**********"), - // DataPlaneURL: to.Ptr("https://rpeastus.svc.datafactory.azure.com:4433"), - // Policy: &armdatafactory.UserAccessPolicy{ - // AccessResourcePath: to.Ptr(""), - // ExpireTime: to.Ptr("2018-11-10T09:46:20.2659347Z"), - // Permissions: to.Ptr("r"), - // ProfileName: to.Ptr("DefaultProfile"), - // StartTime: to.Ptr("2018-11-10T02:46:20.2659347Z"), - // }, - // } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go deleted file mode 100644 index f13d4e5a6689..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go +++ /dev/null @@ -1,209 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json -func ExampleGlobalParametersClient_NewListByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewGlobalParametersClient().NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", 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.GlobalParameterListResponse = armdatafactory.GlobalParameterListResponse{ - // Value: []*armdatafactory.GlobalParameterResource{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.DataFactory/factories/globalParameters"), - // Etag: to.Ptr("da00a1c3-0000-0400-0000-6241f3290000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/globalParameters/default"), - // Properties: map[string]*armdatafactory.GlobalParameterSpecification{ - // "copyPipelineTest": &armdatafactory.GlobalParameterSpecification{ - // Type: to.Ptr(armdatafactory.GlobalParameterTypeObject), - // Value: map[string]any{ - // "mySinkDatasetFolderPath": "exampleOutput", - // "mySourceDatasetFolderPath": "exampleInput/", - // "testingEmptyContextParams": "", - // }, - // }, - // "mySourceDatasetFolderPath": &armdatafactory.GlobalParameterSpecification{ - // Type: to.Ptr(armdatafactory.GlobalParameterTypeString), - // Value: "input", - // }, - // "url": &armdatafactory.GlobalParameterSpecification{ - // Type: to.Ptr(armdatafactory.GlobalParameterTypeString), - // Value: "https://testuri.test", - // }, - // "validADFOffice365Uris": &armdatafactory.GlobalParameterSpecification{ - // Type: to.Ptr(armdatafactory.GlobalParameterTypeArray), - // Value: []any{ - // "https://testuri.test", - // "https://testuri.test", - // }, - // }, - // "waitTime": &armdatafactory.GlobalParameterSpecification{ - // Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), - // Value: float64(5), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json -func ExampleGlobalParametersClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewGlobalParametersClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "default", 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.GlobalParameterResource = armdatafactory.GlobalParameterResource{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.DataFactory/factories/globalParameters"), - // Etag: to.Ptr("72001a6a-0000-0400-0000-623d058f0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/globalParameters/default"), - // Properties: map[string]*armdatafactory.GlobalParameterSpecification{ - // "waitTime": &armdatafactory.GlobalParameterSpecification{ - // Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), - // Value: float64(10), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json -func ExampleGlobalParametersClient_CreateOrUpdate_globalParametersCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewGlobalParametersClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "default", armdatafactory.GlobalParameterResource{ - Properties: map[string]*armdatafactory.GlobalParameterSpecification{ - "waitTime": { - Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), - Value: float64(5), - }, - }, - }, 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.GlobalParameterResource = armdatafactory.GlobalParameterResource{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.DataFactory/factories/globalParameters"), - // Etag: to.Ptr("0a008ad4-0000-0000-0000-5b245c6e0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/globalParameters/default"), - // Properties: map[string]*armdatafactory.GlobalParameterSpecification{ - // "waitTime": &armdatafactory.GlobalParameterSpecification{ - // Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), - // Value: float64(5), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Update.json -func ExampleGlobalParametersClient_CreateOrUpdate_globalParametersUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewGlobalParametersClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "default", armdatafactory.GlobalParameterResource{ - Properties: map[string]*armdatafactory.GlobalParameterSpecification{ - "waitTime": { - Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), - Value: float64(5), - }, - }, - }, 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.GlobalParameterResource = armdatafactory.GlobalParameterResource{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.DataFactory/factories/globalParameters"), - // Etag: to.Ptr("0a008ad4-0000-0000-0000-5b245c6e0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/globalParameters/default"), - // Properties: map[string]*armdatafactory.GlobalParameterSpecification{ - // "waitTime": &armdatafactory.GlobalParameterSpecification{ - // Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), - // Value: float64(5), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json -func ExampleGlobalParametersClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewGlobalParametersClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "default", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/go.mod b/sdk/resourcemanager/datafactory/armdatafactory/go.mod index 20eae3ddc5e0..bf00f573fb10 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.mod +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.mod @@ -1,29 +1,13 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3 +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v4 go 1.18 -require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 - github.com/stretchr/testify v1.7.0 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt/v4 v4.5.0 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/crypto v0.6.0 // indirect golang.org/x/net v0.7.0 // indirect - golang.org/x/sys v0.5.0 // indirect golang.org/x/text v0.7.0 // indirect - gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/datafactory/armdatafactory/go.sum b/sdk/resourcemanager/datafactory/armdatafactory/go.sum index 6e2c77825a2c..b6bd7eaad1ba 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.sum +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.sum @@ -1,48 +1,15 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 h1:rTnT/Jrcm+figWlYz4Ixzt0SJVR2cMC8lvZcimipiEY= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0/go.mod h1:ON4tFdPTwRcgWEaVDrN3584Ef+b7GgSJaXxe5fW9t4M= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 h1:uqM+VoHjVH6zdlkLF2b6O0ZANcHoj3rO0PoQ3jglUJA= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2/go.mod h1:twTKAa1E6hLmSDjLhaCkbTMQKc7p/rNLU40rLxGEOCI= github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 h1:leh5DwKv6Ihwi+h60uHtn6UWAxBbZ0q8DwQVMzf61zw= github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 h1:UE9n9rkJF62ArLb1F3DEjRt8O3jLwMWdSoypKV4f3MU= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0/go.mod h1:kgDmCTgBzIEPFElEF+FK0SdjAor06dRq2Go927dnQ6o= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= -github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= -github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc= -golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go deleted file mode 100644 index 31af30959a71..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go +++ /dev/null @@ -1,144 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json -func ExampleIntegrationRuntimeNodesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimeNodesClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", 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.SelfHostedIntegrationRuntimeNode = armdatafactory.SelfHostedIntegrationRuntimeNode{ - // Capabilities: map[string]*string{ - // "connectedToResourceManager": to.Ptr("True"), - // "credentialInSync": to.Ptr("True"), - // "httpsPortEnabled": to.Ptr("True"), - // "nodeEnabled": to.Ptr("True"), - // "serviceBusConnected": to.Ptr("True"), - // }, - // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), - // IsActiveDispatcher: to.Ptr(true), - // LastConnectTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T06:30:46.6262976Z"); return t}()), - // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:45:30.8499851Z"); return t}()), - // LastUpdateResult: to.Ptr(armdatafactory.IntegrationRuntimeUpdateResultNone), - // MachineName: to.Ptr("YANZHANG-DT"), - // MaxConcurrentJobs: to.Ptr[int32](20), - // NodeName: to.Ptr("Node_1"), - // RegisterTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:44:55.8012825Z"); return t}()), - // Status: to.Ptr(armdatafactory.SelfHostedIntegrationRuntimeNodeStatusOnline), - // Version: to.Ptr("3.8.6743.6"), - // VersionStatus: to.Ptr("UpToDate"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json -func ExampleIntegrationRuntimeNodesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewIntegrationRuntimeNodesClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json -func ExampleIntegrationRuntimeNodesClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimeNodesClient().Update(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", armdatafactory.UpdateIntegrationRuntimeNodeRequest{ - ConcurrentJobsLimit: to.Ptr[int32](2), - }, 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.SelfHostedIntegrationRuntimeNode = armdatafactory.SelfHostedIntegrationRuntimeNode{ - // Capabilities: map[string]*string{ - // "connectedToResourceManager": to.Ptr("True"), - // "credentialInSync": to.Ptr("True"), - // "httpsPortEnabled": to.Ptr("True"), - // "nodeEnabled": to.Ptr("True"), - // "serviceBusConnected": to.Ptr("True"), - // }, - // ConcurrentJobsLimit: to.Ptr[int32](2), - // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), - // IsActiveDispatcher: to.Ptr(true), - // LastConnectTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T15:00:35.7544322Z"); return t}()), - // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:52:59.8933313Z"); return t}()), - // LastUpdateResult: to.Ptr(armdatafactory.IntegrationRuntimeUpdateResultNone), - // MachineName: to.Ptr("YANZHANG-DT"), - // MaxConcurrentJobs: to.Ptr[int32](56), - // NodeName: to.Ptr("Node_1"), - // RegisterTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:51:44.9237069Z"); return t}()), - // Status: to.Ptr(armdatafactory.SelfHostedIntegrationRuntimeNodeStatusOnline), - // Version: to.Ptr("3.8.6730.2"), - // VersionStatus: to.Ptr("UpToDate"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json -func ExampleIntegrationRuntimeNodesClient_GetIPAddress() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimeNodesClient().GetIPAddress(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", "Node_1", 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.IntegrationRuntimeNodeIPAddress = armdatafactory.IntegrationRuntimeNodeIPAddress{ - // IPAddress: to.Ptr("**********"), - // } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go deleted file mode 100644 index 058c62d25037..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go +++ /dev/null @@ -1,577 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json -func ExampleIntegrationRuntimeObjectMetadataClient_BeginRefresh() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewIntegrationRuntimeObjectMetadataClient().BeginRefresh(ctx, "exampleResourceGroup", "exampleFactoryName", "testactivityv2", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %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.SsisObjectMetadataStatusResponse = armdatafactory.SsisObjectMetadataStatusResponse{ - // Name: to.Ptr("ca63c855b72d44959653ffcc6eb0b96c"), - // Status: to.Ptr("Succeeded"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json -func ExampleIntegrationRuntimeObjectMetadataClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimeObjectMetadataClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "testactivityv2", &armdatafactory.IntegrationRuntimeObjectMetadataClientGetOptions{GetMetadataRequest: &armdatafactory.GetSsisObjectMetadataRequest{ - MetadataPath: to.Ptr("ssisFolders"), - }, - }) - 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.SsisObjectMetadataListResponse = armdatafactory.SsisObjectMetadataListResponse{ - // Value: []armdatafactory.SsisObjectMetadataClassification{ - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("TestFolder"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // Description: to.Ptr(""), - // ID: to.Ptr[int64](1), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("EnvironmentFolder"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // Description: to.Ptr(""), - // ID: to.Ptr[int64](2), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("ActivityTest"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // Description: to.Ptr(""), - // ID: to.Ptr[int64](3), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("这是文件夹"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // Description: to.Ptr(""), - // ID: to.Ptr[int64](4), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("1"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](5), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("2"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](6), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("3"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](7), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("4"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](8), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("5"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](9), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("6"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](10), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("7"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](11), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("8"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](12), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("9"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](13), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("10"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](14), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("11"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](15), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("12"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](16), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("13"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](17), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("14"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](18), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("15"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](19), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("16"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](20), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("17"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](21), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("18"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](22), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("19"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](23), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("20"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](24), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("21"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](25), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("22"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](26), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("23"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](27), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("24"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](28), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("25"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](29), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("26"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](30), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("27"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](31), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("28"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](32), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("29"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](33), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("30"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](34), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("31"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](35), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("32"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](36), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("33"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](37), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("34"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](38), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("35"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](39), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("36"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](40), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("37"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](41), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("38"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](42), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("39"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](43), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("40"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](44), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("41"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](45), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("42"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](46), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("43"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](47), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("44"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](48), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("45"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](49), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("46"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](50), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("47"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](51), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("48"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](52), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("49"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](53), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("50"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](54), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("51"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](55), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("52"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](56), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("53"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](57), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("54"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](58), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("55"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](59), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("56"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](60), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("57"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](61), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("58"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](62), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("59"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](63), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("60"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](64), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("61"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](65), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("62"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](66), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("63"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](67), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("64"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](68), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("65"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](69), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("66"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](70), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("67"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](71), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("68"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](72), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("69"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](73), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("70"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](74), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("71"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](75), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("72"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](76), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("73"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](77), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("74"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](78), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("75"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](79), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("76"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](80), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("77"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](81), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("78"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](82), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("79"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](83), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("80"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](84), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("81"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](85), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("82"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](86), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("83"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](87), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("84"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](88), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("85"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](89), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("86"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](90), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("87"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](91), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("88"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](92), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("89"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](93), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("90"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](94), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("91"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](95), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("92"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](96), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("93"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](97), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("94"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](98), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("95"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](99), - // }, - // &armdatafactory.SsisFolder{ - // Name: to.Ptr("96"), - // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), - // ID: to.Ptr[int64](100), - // }}, - // } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go deleted file mode 100644 index 21721da758ea..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go +++ /dev/null @@ -1,638 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json -func ExampleIntegrationRuntimesClient_NewListByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewIntegrationRuntimesClient().NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", 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.IntegrationRuntimeListResponse = armdatafactory.IntegrationRuntimeListResponse{ - // Value: []*armdatafactory.IntegrationRuntimeResource{ - // { - // Name: to.Ptr("exampleIntegrationRuntime"), - // Type: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes"), - // Etag: to.Ptr("0400f1a1-0000-0000-0000-5b2188640000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationruntimes/exampleIntegrationRuntime"), - // Properties: &armdatafactory.SelfHostedIntegrationRuntime{ - // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), - // Description: to.Ptr("A selfhosted integration runtime"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json -func ExampleIntegrationRuntimesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimesClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", armdatafactory.IntegrationRuntimeResource{ - Properties: &armdatafactory.SelfHostedIntegrationRuntime{ - Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), - Description: to.Ptr("A selfhosted integration runtime"), - }, - }, &armdatafactory.IntegrationRuntimesClientCreateOrUpdateOptions{IfMatch: 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.IntegrationRuntimeResource = armdatafactory.IntegrationRuntimeResource{ - // Name: to.Ptr("exampleIntegrationRuntime"), - // Type: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes"), - // Etag: to.Ptr("000046c4-0000-0000-0000-5b2198bf0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationruntimes/exampleIntegrationRuntime"), - // Properties: &armdatafactory.SelfHostedIntegrationRuntime{ - // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), - // Description: to.Ptr("A selfhosted integration runtime"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json -func ExampleIntegrationRuntimesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimesClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", &armdatafactory.IntegrationRuntimesClientGetOptions{IfNoneMatch: 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.IntegrationRuntimeResource = armdatafactory.IntegrationRuntimeResource{ - // Name: to.Ptr("exampleIntegrationRuntime"), - // Type: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes"), - // Etag: to.Ptr("15003c4f-0000-0200-0000-5cbe090b0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationruntimes/exampleIntegrationRuntime"), - // Properties: &armdatafactory.SelfHostedIntegrationRuntime{ - // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), - // Description: to.Ptr("A selfhosted integration runtime"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json -func ExampleIntegrationRuntimesClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimesClient().Update(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", armdatafactory.UpdateIntegrationRuntimeRequest{ - AutoUpdate: to.Ptr(armdatafactory.IntegrationRuntimeAutoUpdateOff), - UpdateDelayOffset: to.Ptr("\"PT3H\""), - }, 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.IntegrationRuntimeResource = armdatafactory.IntegrationRuntimeResource{ - // Name: to.Ptr("exampleIntegrationRuntime"), - // Type: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes"), - // Etag: to.Ptr("0400f1a1-0000-0000-0000-5b2188640000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationruntimes/exampleIntegrationRuntime"), - // Properties: &armdatafactory.SelfHostedIntegrationRuntime{ - // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), - // Description: to.Ptr("A selfhosted integration runtime"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json -func ExampleIntegrationRuntimesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewIntegrationRuntimesClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json -func ExampleIntegrationRuntimesClient_GetStatus() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimesClient().GetStatus(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", 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.IntegrationRuntimeStatusResponse = armdatafactory.IntegrationRuntimeStatusResponse{ - // Name: to.Ptr("exampleIntegrationRuntime"), - // Properties: &armdatafactory.SelfHostedIntegrationRuntimeStatus{ - // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), - // State: to.Ptr(armdatafactory.IntegrationRuntimeStateOnline), - // TypeProperties: &armdatafactory.SelfHostedIntegrationRuntimeStatusTypeProperties{ - // AutoUpdate: to.Ptr(armdatafactory.IntegrationRuntimeAutoUpdateOff), - // Capabilities: map[string]*string{ - // "connectedToResourceManager": to.Ptr("True"), - // "credentialInSync": to.Ptr("True"), - // "httpsPortEnabled": to.Ptr("True"), - // "nodeEnabled": to.Ptr("True"), - // "serviceBusConnected": to.Ptr("True"), - // }, - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T09:17:45.1839685Z"); return t}()), - // LatestVersion: to.Ptr("3.7.6711.1"), - // LocalTimeZoneOffset: to.Ptr("PT8H"), - // Nodes: []*armdatafactory.SelfHostedIntegrationRuntimeNode{ - // { - // Capabilities: map[string]*string{ - // "connectedToResourceManager": to.Ptr("True"), - // "credentialInSync": to.Ptr("True"), - // "httpsPortEnabled": to.Ptr("True"), - // "nodeEnabled": to.Ptr("True"), - // "serviceBusConnected": to.Ptr("True"), - // }, - // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), - // IsActiveDispatcher: to.Ptr(true), - // LastConnectTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:52:59.8933313Z"); return t}()), - // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:52:59.8933313Z"); return t}()), - // LastUpdateResult: to.Ptr(armdatafactory.IntegrationRuntimeUpdateResultNone), - // MachineName: to.Ptr("YANZHANG-DT"), - // MaxConcurrentJobs: to.Ptr[int32](56), - // NodeName: to.Ptr("Node_1"), - // RegisterTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:51:44.9237069Z"); return t}()), - // Status: to.Ptr(armdatafactory.SelfHostedIntegrationRuntimeNodeStatusOnline), - // Version: to.Ptr("3.8.6730.2"), - // VersionStatus: to.Ptr("UpToDate"), - // }}, - // ServiceUrls: []*string{ - // to.Ptr("wu.frontend.int.clouddatahub-int.net"), - // to.Ptr("*.servicebus.windows.net")}, - // TaskQueueID: to.Ptr("1a6296ab-423c-4346-9bcc-85a78c2c0582"), - // UpdateDelayOffset: to.Ptr("PT3H"), - // Version: to.Ptr("3.8.6730.2"), - // VersionStatus: to.Ptr("UpToDate"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json -func ExampleIntegrationRuntimesClient_ListOutboundNetworkDependenciesEndpoints() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimesClient().ListOutboundNetworkDependenciesEndpoints(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", 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.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse = armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse{ - // Value: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint{ - // { - // Category: to.Ptr("Azure Data Factory (Management)"), - // Endpoints: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ - // { - // DomainName: to.Ptr("wu.frontend.int.clouddatahub-int.net"), - // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ - // { - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("Azure Storage (Management)"), - // Endpoints: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ - // { - // DomainName: to.Ptr("*.blob.core.windows.net"), - // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ - // { - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("*.table.core.windows.net"), - // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ - // { - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("Event Hub (Logging)"), - // Endpoints: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ - // { - // DomainName: to.Ptr("*.servicebus.windows.net"), - // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ - // { - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("Microsoft Logging service (Internal Use)"), - // Endpoints: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ - // { - // DomainName: to.Ptr("gcs.prod.monitoring.core.windows.net"), - // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ - // { - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("prod.warmpath.msftcloudes.com"), - // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ - // { - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("azurewatsonanalysis-prod.core.windows.net"), - // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ - // { - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json -func ExampleIntegrationRuntimesClient_GetConnectionInfo() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimesClient().GetConnectionInfo(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", 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.IntegrationRuntimeConnectionInfo = armdatafactory.IntegrationRuntimeConnectionInfo{ - // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), - // IdentityCertThumbprint: to.Ptr("**********"), - // IsIdentityCertExprired: to.Ptr(false), - // PublicKey: to.Ptr("**********"), - // ServiceToken: to.Ptr("**********"), - // Version: to.Ptr("3.8.6730.2"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json -func ExampleIntegrationRuntimesClient_RegenerateAuthKey() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimesClient().RegenerateAuthKey(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", armdatafactory.IntegrationRuntimeRegenerateKeyParameters{ - KeyName: to.Ptr(armdatafactory.IntegrationRuntimeAuthKeyNameAuthKey2), - }, 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.IntegrationRuntimeAuthKeys = armdatafactory.IntegrationRuntimeAuthKeys{ - // AuthKey2: to.Ptr("**********"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json -func ExampleIntegrationRuntimesClient_ListAuthKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimesClient().ListAuthKeys(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", 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.IntegrationRuntimeAuthKeys = armdatafactory.IntegrationRuntimeAuthKeys{ - // AuthKey1: to.Ptr("**********"), - // AuthKey2: to.Ptr("**********"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json -func ExampleIntegrationRuntimesClient_BeginStart() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewIntegrationRuntimesClient().BeginStart(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %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.IntegrationRuntimeStatusResponse = armdatafactory.IntegrationRuntimeStatusResponse{ - // Name: to.Ptr("exampleManagedIntegrationRuntime"), - // Properties: &armdatafactory.ManagedIntegrationRuntimeStatus{ - // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeManaged), - // DataFactoryName: to.Ptr("exampleFactoryName"), - // State: to.Ptr(armdatafactory.IntegrationRuntimeStateStarted), - // TypeProperties: &armdatafactory.ManagedIntegrationRuntimeStatusTypeProperties{ - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-13T21:11:01.8695494Z"); return t}()), - // Nodes: []*armdatafactory.ManagedIntegrationRuntimeNode{ - // }, - // OtherErrors: []*armdatafactory.ManagedIntegrationRuntimeError{ - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json -func ExampleIntegrationRuntimesClient_BeginStop() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewIntegrationRuntimesClient().BeginStop(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedIntegrationRuntime", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json -func ExampleIntegrationRuntimesClient_SyncCredentials() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewIntegrationRuntimesClient().SyncCredentials(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json -func ExampleIntegrationRuntimesClient_GetMonitoringData() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimesClient().GetMonitoringData(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", 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.IntegrationRuntimeMonitoringData = armdatafactory.IntegrationRuntimeMonitoringData{ - // Name: to.Ptr("exampleIntegrationRuntime"), - // Nodes: []*armdatafactory.IntegrationRuntimeNodeMonitoringData{ - // { - // AvailableMemoryInMB: to.Ptr[int32](16740), - // ConcurrentJobsLimit: to.Ptr[int32](28), - // ConcurrentJobsRunning: to.Ptr[int32](0), - // CPUUtilization: to.Ptr[int32](15), - // NodeName: to.Ptr("Node_1"), - // ReceivedBytes: to.Ptr[float32](6.731423377990723), - // SentBytes: to.Ptr[float32](2.647491693496704), - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json -func ExampleIntegrationRuntimesClient_Upgrade() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewIntegrationRuntimesClient().Upgrade(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json -func ExampleIntegrationRuntimesClient_RemoveLinks() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewIntegrationRuntimesClient().RemoveLinks(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", armdatafactory.LinkedIntegrationRuntimeRequest{ - LinkedFactoryName: to.Ptr("exampleFactoryName-linked"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json -func ExampleIntegrationRuntimesClient_CreateLinkedIntegrationRuntime() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewIntegrationRuntimesClient().CreateLinkedIntegrationRuntime(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleIntegrationRuntime", armdatafactory.CreateLinkedIntegrationRuntimeRequest{ - Name: to.Ptr("bfa92911-9fb6-4fbe-8f23-beae87bc1c83"), - DataFactoryLocation: to.Ptr("West US"), - DataFactoryName: to.Ptr("e9955d6d-56ea-4be3-841c-52a12c1a9981"), - SubscriptionID: to.Ptr("061774c7-4b5a-4159-a55b-365581830283"), - }, 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.IntegrationRuntimeStatusResponse = armdatafactory.IntegrationRuntimeStatusResponse{ - // Name: to.Ptr("exampleIntegrationRuntime"), - // Properties: &armdatafactory.SelfHostedIntegrationRuntimeStatus{ - // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), - // DataFactoryName: to.Ptr("exampleFactoryName"), - // State: to.Ptr(armdatafactory.IntegrationRuntimeStateOnline), - // TypeProperties: &armdatafactory.SelfHostedIntegrationRuntimeStatusTypeProperties{ - // AutoUpdate: to.Ptr(armdatafactory.IntegrationRuntimeAutoUpdateOn), - // AutoUpdateETA: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-20T19:00:00Z"); return t}()), - // Capabilities: map[string]*string{ - // "connectedToResourceManager": to.Ptr("True"), - // "credentialInSync": to.Ptr("True"), - // "httpsPortEnabled": to.Ptr("True"), - // "nodeEnabled": to.Ptr("True"), - // "serviceBusConnected": to.Ptr("True"), - // }, - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:43:25.7055573Z"); return t}()), - // LatestVersion: to.Ptr("3.9.6774.1"), - // Links: []*armdatafactory.LinkedIntegrationRuntime{ - // { - // Name: to.Ptr("bfa92911-9fb6-4fbe-8f23-beae87bc1c83"), - // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T06:31:04.0617928Z"); return t}()), - // DataFactoryLocation: to.Ptr("West US"), - // DataFactoryName: to.Ptr("e9955d6d-56ea-4be3-841c-52a12c1a9981"), - // SubscriptionID: to.Ptr("061774c7-4b5a-4159-a55b-365581830283"), - // }}, - // LocalTimeZoneOffset: to.Ptr("PT8H"), - // Nodes: []*armdatafactory.SelfHostedIntegrationRuntimeNode{ - // { - // Capabilities: map[string]*string{ - // "connectedToResourceManager": to.Ptr("True"), - // "credentialInSync": to.Ptr("True"), - // "httpsPortEnabled": to.Ptr("True"), - // "nodeEnabled": to.Ptr("True"), - // "serviceBusConnected": to.Ptr("True"), - // }, - // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), - // IsActiveDispatcher: to.Ptr(true), - // LastConnectTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T06:30:46.6262976Z"); return t}()), - // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:45:30.8499851Z"); return t}()), - // LastUpdateResult: to.Ptr(armdatafactory.IntegrationRuntimeUpdateResultNone), - // MachineName: to.Ptr("YANZHANG-DT"), - // MaxConcurrentJobs: to.Ptr[int32](20), - // NodeName: to.Ptr("Node_1"), - // RegisterTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:44:55.8012825Z"); return t}()), - // Status: to.Ptr(armdatafactory.SelfHostedIntegrationRuntimeNodeStatusOnline), - // Version: to.Ptr("3.8.6743.6"), - // VersionStatus: to.Ptr("UpToDate"), - // }}, - // PushedVersion: to.Ptr("3.9.6774.1"), - // ScheduledUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-20T00:00:00Z"); return t}()), - // ServiceUrls: []*string{ - // to.Ptr("wu.frontend.int.clouddatahub-int.net"), - // to.Ptr("*.servicebus.windows.net")}, - // TaskQueueID: to.Ptr("823da112-f2d9-426b-a0d8-5f361b94f72a"), - // UpdateDelayOffset: to.Ptr("PT19H"), - // Version: to.Ptr("3.8.6743.6"), - // VersionStatus: to.Ptr("UpdateAvailable"), - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go deleted file mode 100644 index 19160d465624..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go +++ /dev/null @@ -1,212 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json -func ExampleLinkedServicesClient_NewListByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewLinkedServicesClient().NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", 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.LinkedServiceListResponse = armdatafactory.LinkedServiceListResponse{ - // Value: []*armdatafactory.LinkedServiceResource{ - // { - // Name: to.Ptr("exampleLinkedService"), - // Type: to.Ptr("Microsoft.DataFactory/factories/linkedservices"), - // Etag: to.Ptr("0a0064d4-0000-0000-0000-5b245bd00000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/linkedservices/exampleLinkedService"), - // Properties: &armdatafactory.AzureStorageLinkedService{ - // Type: to.Ptr("AzureStorage"), - // Description: to.Ptr("Example description"), - // TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ - // ConnectionString: map[string]any{ - // "type": "SecureString", - // "value": "**********", - // }, - // EncryptedCredential: to.Ptr("ew0KICAiVmVyc2lvbiI6ICIyMDE3LTExLTMwIiwNCiAgIlByb3RlY3Rpb25Nb2RlIjogIktleSIsDQogICJTZWNyZXRDb250ZW50VHlwZSI6ICJQbGFpbnRleHQiLA0KICAiQ3JlZGVudGlhbElkIjogIkRGLURPR0ZPT0QtWUFOWkhBTkctV1VfMGI2M2EyMmYtMGEzNC00NDg2LWIzMDktNzM0NTlkODUyY2Q1Ig0KfQ=="), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json -func ExampleLinkedServicesClient_CreateOrUpdate_linkedServicesCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewLinkedServicesClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", armdatafactory.LinkedServiceResource{ - Properties: &armdatafactory.AzureStorageLinkedService{ - Type: to.Ptr("AzureStorage"), - TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ - ConnectionString: map[string]any{ - "type": "SecureString", - "value": "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=", - }, - }, - }, - }, &armdatafactory.LinkedServicesClientCreateOrUpdateOptions{IfMatch: 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.LinkedServiceResource = armdatafactory.LinkedServiceResource{ - // Name: to.Ptr("exampleLinkedService"), - // Type: to.Ptr("Microsoft.DataFactory/factories/linkedservices"), - // Etag: to.Ptr("0a0062d4-0000-0000-0000-5b245bcf0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/linkedservices/exampleLinkedService"), - // Properties: &armdatafactory.AzureStorageLinkedService{ - // Type: to.Ptr("AzureStorage"), - // TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ - // ConnectionString: map[string]any{ - // "type": "SecureString", - // "value": "**********", - // }, - // EncryptedCredential: to.Ptr("ew0KICAiVmVyc2lvbiI6ICIyMDE3LTExLTMwIiwNCiAgIlByb3RlY3Rpb25Nb2RlIjogIktleSIsDQogICJTZWNyZXRDb250ZW50VHlwZSI6ICJQbGFpbnRleHQiLA0KICAiQ3JlZGVudGlhbElkIjogIkRGLURPR0ZPT0QtWUFOWkhBTkctV1VfM2FiMTk0NjYtNWUxNi00NzU1LWJlNzktMjI2ZTVmZWU3YzY0Ig0KfQ=="), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update.json -func ExampleLinkedServicesClient_CreateOrUpdate_linkedServicesUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewLinkedServicesClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", armdatafactory.LinkedServiceResource{ - Properties: &armdatafactory.AzureStorageLinkedService{ - Type: to.Ptr("AzureStorage"), - Description: to.Ptr("Example description"), - TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ - ConnectionString: map[string]any{ - "type": "SecureString", - "value": "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=", - }, - }, - }, - }, &armdatafactory.LinkedServicesClientCreateOrUpdateOptions{IfMatch: 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.LinkedServiceResource = armdatafactory.LinkedServiceResource{ - // Name: to.Ptr("exampleLinkedService"), - // Type: to.Ptr("Microsoft.DataFactory/factories/linkedservices"), - // Etag: to.Ptr("0a0064d4-0000-0000-0000-5b245bd00000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/linkedservices/exampleLinkedService"), - // Properties: &armdatafactory.AzureStorageLinkedService{ - // Type: to.Ptr("AzureStorage"), - // Description: to.Ptr("Example description"), - // TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ - // ConnectionString: map[string]any{ - // "type": "SecureString", - // "value": "**********", - // }, - // EncryptedCredential: to.Ptr("ew0KICAiVmVyc2lvbiI6ICIyMDE3LTExLTMwIiwNCiAgIlByb3RlY3Rpb25Nb2RlIjogIktleSIsDQogICJTZWNyZXRDb250ZW50VHlwZSI6ICJQbGFpbnRleHQiLA0KICAiQ3JlZGVudGlhbElkIjogIkRGLURPR0ZPT0QtWUFOWkhBTkctV1VfMGI2M2EyMmYtMGEzNC00NDg2LWIzMDktNzM0NTlkODUyY2Q1Ig0KfQ=="), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json -func ExampleLinkedServicesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewLinkedServicesClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", &armdatafactory.LinkedServicesClientGetOptions{IfNoneMatch: 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.LinkedServiceResource = armdatafactory.LinkedServiceResource{ - // Name: to.Ptr("exampleLinkedService"), - // Type: to.Ptr("Microsoft.DataFactory/factories/linkedservices"), - // Etag: to.Ptr("1500474f-0000-0200-0000-5cbe090d0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/linkedservices/exampleLinkedService"), - // Properties: &armdatafactory.AzureStorageLinkedService{ - // Type: to.Ptr("AzureStorage"), - // Description: to.Ptr("Example description"), - // TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ - // ConnectionString: map[string]any{ - // "type": "SecureString", - // "value": "**********", - // }, - // EncryptedCredential: to.Ptr("ew0KICAiVmVyc2lvbiI6ICIyMDE3LTExLTMwIiwNCiAgIlByb3RlY3Rpb25Nb2RlIjogIktleSIsDQogICJTZWNyZXRDb250ZW50VHlwZSI6ICJQbGFpbnRleHQiLA0KICAiQ3JlZGVudGlhbElkIjogIkhWVEVTVEVYQU1QTEVTXzg5MjU1NGY0LTViNGItNDFhOS1hYWYxLTg4ZWI5ZDBjOWIzMyINCn0="), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json -func ExampleLinkedServicesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewLinkedServicesClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleLinkedService", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go deleted file mode 100644 index 500210c3a409..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go +++ /dev/null @@ -1,164 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json -func ExampleManagedPrivateEndpointsClient_NewListByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewManagedPrivateEndpointsClient().NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", 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.ManagedPrivateEndpointListResponse = armdatafactory.ManagedPrivateEndpointListResponse{ - // Value: []*armdatafactory.ManagedPrivateEndpointResource{ - // { - // Name: to.Ptr("exampleManagedPrivateEndpointName"), - // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks/managedPrivateEndpoints"), - // Etag: to.Ptr("000046c4-0000-0000-0000-5b2198bf0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName/managedPrivateEndpoints/exampleManagedPrivateEndpointName"), - // Properties: &armdatafactory.ManagedPrivateEndpoint{ - // ConnectionState: &armdatafactory.ConnectionStateProperties{ - // Description: to.Ptr(""), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Pending"), - // }, - // Fqdns: []*string{ - // }, - // GroupID: to.Ptr("blob"), - // PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage"), - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json -func ExampleManagedPrivateEndpointsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewManagedPrivateEndpointsClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", "exampleManagedPrivateEndpointName", armdatafactory.ManagedPrivateEndpointResource{ - Properties: &armdatafactory.ManagedPrivateEndpoint{ - Fqdns: []*string{}, - GroupID: to.Ptr("blob"), - PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage"), - }, - }, &armdatafactory.ManagedPrivateEndpointsClientCreateOrUpdateOptions{IfMatch: 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.ManagedPrivateEndpointResource = armdatafactory.ManagedPrivateEndpointResource{ - // Name: to.Ptr("exampleManagedPrivateEndpointName"), - // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks/managedPrivateEndpoints"), - // Etag: to.Ptr("000046c4-0000-0000-0000-5b2198bf0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName/managedPrivateEndpoints/exampleManagedPrivateEndpointName"), - // Properties: &armdatafactory.ManagedPrivateEndpoint{ - // ConnectionState: &armdatafactory.ConnectionStateProperties{ - // Description: to.Ptr(""), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Pending"), - // }, - // Fqdns: []*string{ - // }, - // GroupID: to.Ptr("blob"), - // PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage"), - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json -func ExampleManagedPrivateEndpointsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewManagedPrivateEndpointsClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", "exampleManagedPrivateEndpointName", &armdatafactory.ManagedPrivateEndpointsClientGetOptions{IfNoneMatch: 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.ManagedPrivateEndpointResource = armdatafactory.ManagedPrivateEndpointResource{ - // Name: to.Ptr("exampleManagedPrivateEndpointName"), - // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks/managedPrivateEndpoints"), - // Etag: to.Ptr("000046c4-0000-0000-0000-5b2198bf0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName/managedPrivateEndpoints/exampleManagedPrivateEndpointName"), - // Properties: &armdatafactory.ManagedPrivateEndpoint{ - // ConnectionState: &armdatafactory.ConnectionStateProperties{ - // Description: to.Ptr(""), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Pending"), - // }, - // Fqdns: []*string{ - // }, - // GroupID: to.Ptr("blob"), - // PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage"), - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json -func ExampleManagedPrivateEndpointsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewManagedPrivateEndpointsClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", "exampleManagedPrivateEndpointName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go deleted file mode 100644 index b82a66448931..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go +++ /dev/null @@ -1,118 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json -func ExampleManagedVirtualNetworksClient_NewListByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewManagedVirtualNetworksClient().NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", 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.ManagedVirtualNetworkListResponse = armdatafactory.ManagedVirtualNetworkListResponse{ - // Value: []*armdatafactory.ManagedVirtualNetworkResource{ - // { - // Name: to.Ptr("exampleManagedVirtualNetworkName"), - // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks"), - // Etag: to.Ptr("0400f1a1-0000-0000-0000-5b2188640000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName"), - // Properties: &armdatafactory.ManagedVirtualNetwork{ - // Alias: to.Ptr("exampleFactoryName"), - // VNetID: to.Ptr("5a7bd944-87e6-454a-8d4d-9fba446514fd"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json -func ExampleManagedVirtualNetworksClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewManagedVirtualNetworksClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", armdatafactory.ManagedVirtualNetworkResource{ - Properties: &armdatafactory.ManagedVirtualNetwork{}, - }, &armdatafactory.ManagedVirtualNetworksClientCreateOrUpdateOptions{IfMatch: 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.ManagedVirtualNetworkResource = armdatafactory.ManagedVirtualNetworkResource{ - // Name: to.Ptr("exampleManagedVirtualNetworkName"), - // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks"), - // Etag: to.Ptr("000046c4-0000-0000-0000-5b2198bf0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName"), - // Properties: &armdatafactory.ManagedVirtualNetwork{ - // Alias: to.Ptr("exampleFactoryName"), - // VNetID: to.Ptr("12345678-1234-1234-1234-12345678123"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json -func ExampleManagedVirtualNetworksClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewManagedVirtualNetworksClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", &armdatafactory.ManagedVirtualNetworksClientGetOptions{IfNoneMatch: 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.ManagedVirtualNetworkResource = armdatafactory.ManagedVirtualNetworkResource{ - // Name: to.Ptr("exampleManagedVirtualNetworkName"), - // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks"), - // Etag: to.Ptr("15003c4f-0000-0200-0000-5cbe090b0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName"), - // Properties: &armdatafactory.ManagedVirtualNetwork{ - // Alias: to.Ptr("exampleFactoryName"), - // VNetID: to.Ptr("5a7bd944-87e6-454a-8d4d-9fba446514fd"), - // }, - // } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/models.go b/sdk/resourcemanager/datafactory/armdatafactory/models.go index 9da16bb688d3..eac88a87f845 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/models.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/models.go @@ -56,6 +56,13 @@ type Activity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -215,8 +222,8 @@ type AmazonMWSLinkedServiceTypeProperties struct { SellerID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Amazon MWS authentication token. MwsAuthToken SecretBaseClassification @@ -347,8 +354,8 @@ type AmazonRdsForLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Password SecretBaseClassification @@ -561,8 +568,8 @@ type AmazonRdsForSQLServerLinkedServiceTypeProperties struct { AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The on-premises Windows authentication password. Password SecretBaseClassification @@ -748,8 +755,8 @@ type AmazonRedshiftLinkedServiceTypeProperties struct { Server any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The password of the Amazon Redshift source. Password SecretBaseClassification @@ -928,8 +935,8 @@ type AmazonS3CompatibleLinkedServiceTypeProperties struct { AccessKeyID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // If true, use S3 path-style access instead of virtual hosted-style access. Default value is false. Type: boolean (or Expression // with resultType boolean). @@ -990,8 +997,8 @@ type AmazonS3CompatibleReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). @@ -1156,8 +1163,8 @@ type AmazonS3LinkedServiceTypeProperties struct { AuthenticationType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The secret access key of the Amazon S3 Identity and Access Management (IAM) user. SecretAccessKey SecretBaseClassification @@ -1217,8 +1224,8 @@ type AmazonS3ReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). @@ -1304,7 +1311,7 @@ type AppFiguresLinkedServiceTypeProperties struct { // REQUIRED; The password of the AppFigures source. Password SecretBaseClassification - // REQUIRED; The username of the Appfigures source. + // REQUIRED; The username of the Appfigures source. Type: string (or Expression with resultType string). UserName any } @@ -1328,6 +1335,13 @@ type AppendVariableActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -1338,6 +1352,8 @@ func (a *AppendVariableActivity) GetActivity() *Activity { Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -1350,6 +1366,8 @@ func (a *AppendVariableActivity) GetControlActivity() *ControlActivity { Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -1358,7 +1376,8 @@ func (a *AppendVariableActivity) GetControlActivity() *ControlActivity { // AppendVariableActivityTypeProperties - AppendVariable activity properties. type AppendVariableActivityTypeProperties struct { - // Value to be appended. Could be a static value or Expression + // Value to be appended. Type: could be a static value matching type of the variable item or Expression with resultType matching + // type of the variable item Value any // Name of the variable whose value needs to be appended to. @@ -1413,8 +1432,8 @@ type AsanaLinkedServiceTypeProperties struct { APIToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string } // AvroDataset - Avro dataset. @@ -1698,8 +1717,8 @@ type AzureBatchLinkedServiceTypeProperties struct { Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string } // AzureBlobDataset - The Azure Blob storage. @@ -1889,8 +1908,8 @@ type AzureBlobFSLinkedServiceTypeProperties struct { Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of sasToken in sas uri. SasToken SecretBaseClassification @@ -1966,8 +1985,8 @@ type AzureBlobFSReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). @@ -2014,7 +2033,7 @@ type AzureBlobFSSink struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any - // The type of copy behavior for copy sink. + // The type of copy behavior for copy sink. Type: string (or Expression with resultType string). CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). @@ -2172,7 +2191,7 @@ type AzureBlobStorageLinkedServiceTypeProperties struct { // Specify the kind of your storage account. Allowed values are: Storage (general purpose v1), StorageV2 (general purpose // v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with // resultType string). - AccountKind *string + AccountKind any // The type used for authentication. Type: string. AuthenticationType *AzureStorageAuthenticationType @@ -2193,7 +2212,7 @@ type AzureBlobStorageLinkedServiceTypeProperties struct { Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). + // Type: string. EncryptedCredential *string // The Azure key vault secret reference of sasToken in sas uri. @@ -2204,7 +2223,7 @@ type AzureBlobStorageLinkedServiceTypeProperties struct { SasURI any // Blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with connectionString, sasUri property. - ServiceEndpoint *string + ServiceEndpoint any // The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with // resultType string). @@ -2260,8 +2279,8 @@ type AzureBlobStorageReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). @@ -2358,9 +2377,16 @@ type AzureDataExplorerCommandActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -2371,6 +2397,8 @@ func (a *AzureDataExplorerCommandActivity) GetActivity() *Activity { Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -2385,6 +2413,8 @@ func (a *AzureDataExplorerCommandActivity) GetExecutionActivity() *ExecutionActi Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -2661,8 +2691,8 @@ type AzureDataLakeAnalyticsLinkedServiceTypeProperties struct { DataLakeAnalyticsURI any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Data Lake Analytics account resource group name (if different from Data Factory account). Type: string (or Expression with // resultType string). @@ -2797,8 +2827,8 @@ type AzureDataLakeStoreLinkedServiceTypeProperties struct { Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression with // resultType string). @@ -2859,8 +2889,8 @@ type AzureDataLakeStoreReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). @@ -2917,7 +2947,7 @@ type AzureDataLakeStoreSink struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any - // The type of copy behavior for copy sink. + // The type of copy behavior for copy sink. Type: string (or Expression with resultType string). CopyBehavior any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). @@ -3008,8 +3038,8 @@ type AzureDataLakeStoreWriteSettings struct { DisableMetricsCollection any // Specifies the expiry time of the written files. The time is applied to the UTC time zone in the format of "2018-12-01T05:00:00Z". - // Default value is NULL. Type: integer (or Expression with resultType - // integer). + // Default value is NULL. Type: string (or Expression with resultType + // string). ExpiryDateTime any // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). @@ -3272,8 +3302,8 @@ type AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct { Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). WorkspaceResourceID any @@ -3333,8 +3363,8 @@ type AzureDatabricksLinkedServiceTypeProperties struct { Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The id of an existing interactive cluster that will be used for all runs of this activity. Type: string (or Expression // with resultType string). @@ -3439,8 +3469,8 @@ type AzureFileStorageLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The azure file share name. It is required when auth with accountKey/sasToken. Type: string (or Expression with resultType // string). @@ -3506,8 +3536,8 @@ type AzureFileStorageReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). @@ -3601,9 +3631,16 @@ type AzureFunctionActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -3614,6 +3651,8 @@ func (a *AzureFunctionActivity) GetActivity() *Activity { Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -3628,6 +3667,8 @@ func (a *AzureFunctionActivity) GetExecutionActivity() *ExecutionActivity { Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -3702,8 +3743,8 @@ type AzureFunctionLinkedServiceTypeProperties struct { Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Function or Host key for Azure Function App. FunctionKey SecretBaseClassification @@ -3804,9 +3845,16 @@ type AzureMLBatchExecutionActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -3817,6 +3865,8 @@ func (a *AzureMLBatchExecutionActivity) GetActivity() *Activity { Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -3831,6 +3881,8 @@ func (a *AzureMLBatchExecutionActivity) GetExecutionActivity() *ExecutionActivit Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -3878,9 +3930,16 @@ type AzureMLExecutePipelineActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -3891,6 +3950,8 @@ func (a *AzureMLExecutePipelineActivity) GetActivity() *Activity { Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -3905,6 +3966,8 @@ func (a *AzureMLExecutePipelineActivity) GetExecutionActivity() *ExecutionActivi Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -3999,8 +4062,8 @@ type AzureMLLinkedServiceTypeProperties struct { Authentication any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The ID of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio // web service. Type: string (or Expression with resultType string). @@ -4065,8 +4128,8 @@ type AzureMLServiceLinkedServiceTypeProperties struct { SubscriptionID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The ID of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. Type: // string (or Expression with resultType string). @@ -4102,9 +4165,16 @@ type AzureMLUpdateResourceActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -4115,6 +4185,8 @@ func (a *AzureMLUpdateResourceActivity) GetActivity() *Activity { Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -4129,6 +4201,8 @@ func (a *AzureMLUpdateResourceActivity) GetExecutionActivity() *ExecutionActivit Name: a.Name, Type: a.Type, Description: a.Description, + State: a.State, + OnInactiveMarkAs: a.OnInactiveMarkAs, DependsOn: a.DependsOn, UserProperties: a.UserProperties, AdditionalProperties: a.AdditionalProperties, @@ -4201,8 +4275,8 @@ type AzureMariaDBLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference @@ -4356,8 +4430,8 @@ type AzureMySQLLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference @@ -4564,8 +4638,8 @@ type AzurePostgreSQLLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference @@ -4826,8 +4900,8 @@ type AzureSQLDWLinkedServiceTypeProperties struct { Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference @@ -4957,8 +5031,8 @@ type AzureSQLDatabaseLinkedServiceTypeProperties struct { Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference @@ -5027,8 +5101,8 @@ type AzureSQLMILinkedServiceTypeProperties struct { Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference @@ -5450,8 +5524,8 @@ type AzureSearchLinkedServiceTypeProperties struct { URL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Admin Key for Azure Search service Key SecretBaseClassification @@ -5502,7 +5576,7 @@ type AzureStorageLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). + // Type: string. EncryptedCredential *string // The Azure key vault secret reference of sasToken in sas uri. @@ -6217,8 +6291,8 @@ type CassandraLinkedServiceTypeProperties struct { AuthenticationType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password for authentication. Password SecretBaseClassification @@ -6531,8 +6605,8 @@ type CommonDataServiceForAppsLinkedServiceTypeProperties struct { DeploymentType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The host name of the on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed // for online. Type: string (or Expression with resultType string). @@ -6752,8 +6826,8 @@ type ConcurLinkedServiceTypeProperties struct { ConnectionProperties any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The password corresponding to the user name that you provided in the username field. Password SecretBaseClassification @@ -6915,6 +6989,13 @@ type ControlActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -6925,6 +7006,8 @@ func (c *ControlActivity) GetActivity() *Activity { Name: c.Name, Type: c.Type, Description: c.Description, + State: c.State, + OnInactiveMarkAs: c.OnInactiveMarkAs, DependsOn: c.DependsOn, UserProperties: c.UserProperties, AdditionalProperties: c.AdditionalProperties, @@ -6960,12 +7043,19 @@ type CopyActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // List of outputs for the activity. Outputs []*DatasetReference // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -6976,6 +7066,8 @@ func (c *CopyActivity) GetActivity() *Activity { Name: c.Name, Type: c.Type, Description: c.Description, + State: c.State, + OnInactiveMarkAs: c.OnInactiveMarkAs, DependsOn: c.DependsOn, UserProperties: c.UserProperties, AdditionalProperties: c.AdditionalProperties, @@ -6990,6 +7082,8 @@ func (c *CopyActivity) GetExecutionActivity() *ExecutionActivity { Name: c.Name, Type: c.Type, Description: c.Description, + State: c.State, + OnInactiveMarkAs: c.OnInactiveMarkAs, DependsOn: c.DependsOn, UserProperties: c.UserProperties, AdditionalProperties: c.AdditionalProperties, @@ -7207,7 +7301,7 @@ type CosmosDbLinkedServiceTypeProperties struct { // string (or Expression with resultType string). AzureCloudType any - // The connection mode used to access CosmosDB account. Type: string (or Expression with resultType string). + // The connection mode used to access CosmosDB account. Type: string. ConnectionMode *CosmosDbConnectionMode // The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -7220,8 +7314,8 @@ type CosmosDbLinkedServiceTypeProperties struct { Database any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or @@ -7230,9 +7324,8 @@ type CosmosDbLinkedServiceTypeProperties struct { ServicePrincipalCredential SecretBaseClassification // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, - // 'ServicePrincipalCert' for certificate. Type: string (or Expression with - // resultType string). - ServicePrincipalCredentialType *CosmosDbServicePrincipalCredentialType + // 'ServicePrincipalCert' for certificate. Type: string. + ServicePrincipalCredentialType any // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). @@ -7640,8 +7733,8 @@ type CouchbaseLinkedServiceTypeProperties struct { CredString *AzureKeyVaultSecretReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string } // CouchbaseSource - A copy activity Couchbase server source. @@ -7893,9 +7986,16 @@ type CustomActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -7906,6 +8006,8 @@ func (c *CustomActivity) GetActivity() *Activity { Name: c.Name, Type: c.Type, Description: c.Description, + State: c.State, + OnInactiveMarkAs: c.OnInactiveMarkAs, DependsOn: c.DependsOn, UserProperties: c.UserProperties, AdditionalProperties: c.AdditionalProperties, @@ -7920,6 +8022,8 @@ func (c *CustomActivity) GetExecutionActivity() *ExecutionActivity { Name: c.Name, Type: c.Type, Description: c.Description, + State: c.State, + OnInactiveMarkAs: c.OnInactiveMarkAs, DependsOn: c.DependsOn, UserProperties: c.UserProperties, AdditionalProperties: c.AdditionalProperties, @@ -8488,9 +8592,16 @@ type DataLakeAnalyticsUSQLActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -8501,6 +8612,8 @@ func (d *DataLakeAnalyticsUSQLActivity) GetActivity() *Activity { Name: d.Name, Type: d.Type, Description: d.Description, + State: d.State, + OnInactiveMarkAs: d.OnInactiveMarkAs, DependsOn: d.DependsOn, UserProperties: d.UserProperties, AdditionalProperties: d.AdditionalProperties, @@ -8515,6 +8628,8 @@ func (d *DataLakeAnalyticsUSQLActivity) GetExecutionActivity() *ExecutionActivit Name: d.Name, Type: d.Type, Description: d.Description, + State: d.State, + OnInactiveMarkAs: d.OnInactiveMarkAs, DependsOn: d.DependsOn, UserProperties: d.UserProperties, AdditionalProperties: d.AdditionalProperties, @@ -8572,9 +8687,16 @@ type DatabricksNotebookActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -8585,6 +8707,8 @@ func (d *DatabricksNotebookActivity) GetActivity() *Activity { Name: d.Name, Type: d.Type, Description: d.Description, + State: d.State, + OnInactiveMarkAs: d.OnInactiveMarkAs, DependsOn: d.DependsOn, UserProperties: d.UserProperties, AdditionalProperties: d.AdditionalProperties, @@ -8599,6 +8723,8 @@ func (d *DatabricksNotebookActivity) GetExecutionActivity() *ExecutionActivity { Name: d.Name, Type: d.Type, Description: d.Description, + State: d.State, + OnInactiveMarkAs: d.OnInactiveMarkAs, DependsOn: d.DependsOn, UserProperties: d.UserProperties, AdditionalProperties: d.AdditionalProperties, @@ -8642,9 +8768,16 @@ type DatabricksSparkJarActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -8655,6 +8788,8 @@ func (d *DatabricksSparkJarActivity) GetActivity() *Activity { Name: d.Name, Type: d.Type, Description: d.Description, + State: d.State, + OnInactiveMarkAs: d.OnInactiveMarkAs, DependsOn: d.DependsOn, UserProperties: d.UserProperties, AdditionalProperties: d.AdditionalProperties, @@ -8669,6 +8804,8 @@ func (d *DatabricksSparkJarActivity) GetExecutionActivity() *ExecutionActivity { Name: d.Name, Type: d.Type, Description: d.Description, + State: d.State, + OnInactiveMarkAs: d.OnInactiveMarkAs, DependsOn: d.DependsOn, UserProperties: d.UserProperties, AdditionalProperties: d.AdditionalProperties, @@ -8711,9 +8848,16 @@ type DatabricksSparkPythonActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -8724,6 +8868,8 @@ func (d *DatabricksSparkPythonActivity) GetActivity() *Activity { Name: d.Name, Type: d.Type, Description: d.Description, + State: d.State, + OnInactiveMarkAs: d.OnInactiveMarkAs, DependsOn: d.DependsOn, UserProperties: d.UserProperties, AdditionalProperties: d.AdditionalProperties, @@ -8738,6 +8884,8 @@ func (d *DatabricksSparkPythonActivity) GetExecutionActivity() *ExecutionActivit Name: d.Name, Type: d.Type, Description: d.Description, + State: d.State, + OnInactiveMarkAs: d.OnInactiveMarkAs, DependsOn: d.DependsOn, UserProperties: d.UserProperties, AdditionalProperties: d.AdditionalProperties, @@ -9007,8 +9155,8 @@ type DataworldLinkedServiceTypeProperties struct { APIToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string } // Db2LinkedService - Linked service for DB2 data source. @@ -9066,9 +9214,8 @@ type Db2LinkedServiceTypeProperties struct { Database any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // It is mutually exclusive with connectionString property. Type: string (or - // Expression with resultType string). - EncryptedCredential any + // It is mutually exclusive with connectionString property. Type: string. + EncryptedCredential *string // Under where packages are created when querying database. It is mutually exclusive with connectionString property. Type: // string (or Expression with resultType string). @@ -9227,9 +9374,16 @@ type DeleteActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -9240,6 +9394,8 @@ func (d *DeleteActivity) GetActivity() *Activity { Name: d.Name, Type: d.Type, Description: d.Description, + State: d.State, + OnInactiveMarkAs: d.OnInactiveMarkAs, DependsOn: d.DependsOn, UserProperties: d.UserProperties, AdditionalProperties: d.AdditionalProperties, @@ -9254,6 +9410,8 @@ func (d *DeleteActivity) GetExecutionActivity() *ExecutionActivity { Name: d.Name, Type: d.Type, Description: d.Description, + State: d.State, + OnInactiveMarkAs: d.OnInactiveMarkAs, DependsOn: d.DependsOn, UserProperties: d.UserProperties, AdditionalProperties: d.AdditionalProperties, @@ -9756,8 +9914,8 @@ type DrillLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference @@ -9927,8 +10085,8 @@ type DynamicsAXLinkedServiceTypeProperties struct { URL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string } // DynamicsAXResourceDataset - The path of the Dynamics AX OData entity. @@ -10151,8 +10309,8 @@ type DynamicsCrmLinkedServiceTypeProperties struct { DeploymentType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The host name of the on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. // Type: string (or Expression with resultType string). @@ -10392,8 +10550,8 @@ type DynamicsLinkedServiceTypeProperties struct { Credential *CredentialReference // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The host name of the on-premises Dynamics server. The property is required for on-prem and not allowed for online. Type: // string (or Expression with resultType string). @@ -10572,8 +10730,8 @@ type EloquaLinkedServiceTypeProperties struct { Username any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The password corresponding to the user name. Password SecretBaseClassification @@ -10883,9 +11041,16 @@ type ExecuteDataFlowActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -10896,6 +11061,8 @@ func (e *ExecuteDataFlowActivity) GetActivity() *Activity { Name: e.Name, Type: e.Type, Description: e.Description, + State: e.State, + OnInactiveMarkAs: e.OnInactiveMarkAs, DependsOn: e.DependsOn, UserProperties: e.UserProperties, AdditionalProperties: e.AdditionalProperties, @@ -10910,6 +11077,8 @@ func (e *ExecuteDataFlowActivity) GetExecutionActivity() *ExecutionActivity { Name: e.Name, Type: e.Type, Description: e.Description, + State: e.State, + OnInactiveMarkAs: e.OnInactiveMarkAs, DependsOn: e.DependsOn, UserProperties: e.UserProperties, AdditionalProperties: e.AdditionalProperties, @@ -10977,9 +11146,16 @@ type ExecutePipelineActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Execute pipeline activity policy. Policy *ExecutePipelineActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -10990,6 +11166,8 @@ func (e *ExecutePipelineActivity) GetActivity() *Activity { Name: e.Name, Type: e.Type, Description: e.Description, + State: e.State, + OnInactiveMarkAs: e.OnInactiveMarkAs, DependsOn: e.DependsOn, UserProperties: e.UserProperties, AdditionalProperties: e.AdditionalProperties, @@ -11002,6 +11180,8 @@ func (e *ExecutePipelineActivity) GetControlActivity() *ControlActivity { Name: e.Name, Type: e.Type, Description: e.Description, + State: e.State, + OnInactiveMarkAs: e.OnInactiveMarkAs, DependsOn: e.DependsOn, UserProperties: e.UserProperties, AdditionalProperties: e.AdditionalProperties, @@ -11088,9 +11268,16 @@ type ExecuteSSISPackageActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -11101,6 +11288,8 @@ func (e *ExecuteSSISPackageActivity) GetActivity() *Activity { Name: e.Name, Type: e.Type, Description: e.Description, + State: e.State, + OnInactiveMarkAs: e.OnInactiveMarkAs, DependsOn: e.DependsOn, UserProperties: e.UserProperties, AdditionalProperties: e.AdditionalProperties, @@ -11115,6 +11304,8 @@ func (e *ExecuteSSISPackageActivity) GetExecutionActivity() *ExecutionActivity { Name: e.Name, Type: e.Type, Description: e.Description, + State: e.State, + OnInactiveMarkAs: e.OnInactiveMarkAs, DependsOn: e.DependsOn, UserProperties: e.UserProperties, AdditionalProperties: e.AdditionalProperties, @@ -11181,9 +11372,16 @@ type ExecuteWranglingDataflowActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -11194,6 +11392,8 @@ func (e *ExecuteWranglingDataflowActivity) GetActivity() *Activity { Name: e.Name, Type: e.Type, Description: e.Description, + State: e.State, + OnInactiveMarkAs: e.OnInactiveMarkAs, DependsOn: e.DependsOn, UserProperties: e.UserProperties, AdditionalProperties: e.AdditionalProperties, @@ -11235,9 +11435,16 @@ type ExecutionActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -11248,6 +11455,8 @@ func (e *ExecutionActivity) GetActivity() *Activity { Name: e.Name, Type: e.Type, Description: e.Description, + State: e.State, + OnInactiveMarkAs: e.OnInactiveMarkAs, DependsOn: e.DependsOn, UserProperties: e.UserProperties, AdditionalProperties: e.AdditionalProperties, @@ -11643,6 +11852,13 @@ type FailActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -11653,6 +11869,8 @@ func (f *FailActivity) GetActivity() *Activity { Name: f.Name, Type: f.Type, Description: f.Description, + State: f.State, + OnInactiveMarkAs: f.OnInactiveMarkAs, DependsOn: f.DependsOn, UserProperties: f.UserProperties, AdditionalProperties: f.AdditionalProperties, @@ -11665,6 +11883,8 @@ func (f *FailActivity) GetControlActivity() *ControlActivity { Name: f.Name, Type: f.Type, Description: f.Description, + State: f.State, + OnInactiveMarkAs: f.OnInactiveMarkAs, DependsOn: f.DependsOn, UserProperties: f.UserProperties, AdditionalProperties: f.AdditionalProperties, @@ -11725,8 +11945,8 @@ type FileServerLinkedServiceTypeProperties struct { Host any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password to logon the server. Password SecretBaseClassification @@ -11775,8 +11995,8 @@ type FileServerReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression // with resultType string). @@ -12027,6 +12247,13 @@ type FilterActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -12037,6 +12264,8 @@ func (f *FilterActivity) GetActivity() *Activity { Name: f.Name, Type: f.Type, Description: f.Description, + State: f.State, + OnInactiveMarkAs: f.OnInactiveMarkAs, DependsOn: f.DependsOn, UserProperties: f.UserProperties, AdditionalProperties: f.AdditionalProperties, @@ -12049,6 +12278,8 @@ func (f *FilterActivity) GetControlActivity() *ControlActivity { Name: f.Name, Type: f.Type, Description: f.Description, + State: f.State, + OnInactiveMarkAs: f.OnInactiveMarkAs, DependsOn: f.DependsOn, UserProperties: f.UserProperties, AdditionalProperties: f.AdditionalProperties, @@ -12130,6 +12361,13 @@ type ForEachActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -12140,6 +12378,8 @@ func (f *ForEachActivity) GetActivity() *Activity { Name: f.Name, Type: f.Type, Description: f.Description, + State: f.State, + OnInactiveMarkAs: f.OnInactiveMarkAs, DependsOn: f.DependsOn, UserProperties: f.UserProperties, AdditionalProperties: f.AdditionalProperties, @@ -12152,6 +12392,8 @@ func (f *ForEachActivity) GetControlActivity() *ControlActivity { Name: f.Name, Type: f.Type, Description: f.Description, + State: f.State, + OnInactiveMarkAs: f.OnInactiveMarkAs, DependsOn: f.DependsOn, UserProperties: f.UserProperties, AdditionalProperties: f.AdditionalProperties, @@ -12233,8 +12475,8 @@ type FtpReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). @@ -12250,8 +12492,8 @@ type FtpReadSettings struct { // boolean). Recursive any - // Specify whether to use binary transfer mode for FTP stores. - UseBinaryTransfer *bool + // Specify whether to use binary transfer mode for FTP stores. Type: boolean (or Expression with resultType boolean). + UseBinaryTransfer any // Ftp wildcardFileName. Type: string (or Expression with resultType string). WildcardFileName any @@ -12323,8 +12565,8 @@ type FtpServerLinkedServiceTypeProperties struct { EnableServerCertificateValidation any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password to logon the FTP server. Password SecretBaseClassification @@ -12391,9 +12633,16 @@ type GetMetadataActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -12404,6 +12653,8 @@ func (g *GetMetadataActivity) GetActivity() *Activity { Name: g.Name, Type: g.Type, Description: g.Description, + State: g.State, + OnInactiveMarkAs: g.OnInactiveMarkAs, DependsOn: g.DependsOn, UserProperties: g.UserProperties, AdditionalProperties: g.AdditionalProperties, @@ -12418,6 +12669,8 @@ func (g *GetMetadataActivity) GetExecutionActivity() *ExecutionActivity { Name: g.Name, Type: g.Type, Description: g.Description, + State: g.State, + OnInactiveMarkAs: g.OnInactiveMarkAs, DependsOn: g.DependsOn, UserProperties: g.UserProperties, AdditionalProperties: g.AdditionalProperties, @@ -12574,7 +12827,8 @@ type GoogleAdWordsLinkedServiceTypeProperties struct { // The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. AuthenticationType *GoogleAdWordsAuthenticationType - // The Client customer ID of the AdWords account that you want to fetch report data for. + // The Client customer ID of the AdWords account that you want to fetch report data for. Type: string (or Expression with + // resultType string). ClientCustomerID any // The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType @@ -12591,15 +12845,16 @@ type GoogleAdWordsLinkedServiceTypeProperties struct { // The developer token associated with the manager account that you use to grant access to the AdWords API. DeveloperToken SecretBaseClassification - // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. + // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. Type: string + // (or Expression with resultType string). Email any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The full path to the .p12 key file that is used to authenticate the service account email address and can only be used - // on self-hosted IR. + // on self-hosted IR. Type: string (or Expression with resultType string). KeyFilePath any // The refresh token obtained from Google for authorizing access to AdWords for UserAuthentication. @@ -12607,11 +12862,11 @@ type GoogleAdWordsLinkedServiceTypeProperties struct { // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value - // is the cacerts.pem file installed with the IR. + // is the cacerts.pem file installed with the IR. Type: string (or Expression with resultType string). TrustedCertPath any // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is - // false. + // false. Type: boolean (or Expression with resultType boolean). UseSystemTrustStore any } @@ -12775,10 +13030,10 @@ type GoogleBigQueryLinkedServiceTypeProperties struct { // IR. AuthenticationType *GoogleBigQueryAuthenticationType - // REQUIRED; The default BigQuery project to query against. + // REQUIRED; The default BigQuery project to query against. Type: string (or Expression with resultType string). Project any - // A comma-separated list of public BigQuery projects to access. + // A comma-separated list of public BigQuery projects to access. Type: string (or Expression with resultType string). AdditionalProjects any // The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType @@ -12788,31 +13043,33 @@ type GoogleBigQueryLinkedServiceTypeProperties struct { // The client secret of the google application used to acquire the refresh token. ClientSecret SecretBaseClassification - // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. + // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. Type: string + // (or Expression with resultType string). Email any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The full path to the .p12 key file that is used to authenticate the service account email address and can only be used - // on self-hosted IR. + // on self-hosted IR. Type: string (or Expression with resultType string). KeyFilePath any // The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. RefreshToken SecretBaseClassification // Whether to request access to Google Drive. Allowing Google Drive access enables support for federated tables that combine - // BigQuery data with data from Google Drive. The default value is false. + // BigQuery data with data from Google Drive. The default value is false. Type: + // string (or Expression with resultType string). RequestGoogleDriveScope any // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value - // is the cacerts.pem file installed with the IR. + // is the cacerts.pem file installed with the IR. Type: string (or Expression with resultType string). TrustedCertPath any // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is - // false. + // false.Type: boolean (or Expression with resultType boolean). UseSystemTrustStore any } @@ -12965,8 +13222,8 @@ type GoogleCloudStorageLinkedServiceTypeProperties struct { AccessKeyID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user. SecretAccessKey SecretBaseClassification @@ -13023,8 +13280,8 @@ type GoogleCloudStorageReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). @@ -13108,8 +13365,8 @@ type GoogleSheetsLinkedServiceTypeProperties struct { APIToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string } // GreenplumDatasetTypeProperties - Greenplum Dataset Properties @@ -13166,8 +13423,8 @@ type GreenplumLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference @@ -13334,8 +13591,8 @@ type HBaseLinkedServiceTypeProperties struct { EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version) HTTPPath any @@ -13484,9 +13741,16 @@ type HDInsightHiveActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -13497,6 +13761,8 @@ func (h *HDInsightHiveActivity) GetActivity() *Activity { Name: h.Name, Type: h.Type, Description: h.Description, + State: h.State, + OnInactiveMarkAs: h.OnInactiveMarkAs, DependsOn: h.DependsOn, UserProperties: h.UserProperties, AdditionalProperties: h.AdditionalProperties, @@ -13511,6 +13777,8 @@ func (h *HDInsightHiveActivity) GetExecutionActivity() *ExecutionActivity { Name: h.Name, Type: h.Type, Description: h.Description, + State: h.State, + OnInactiveMarkAs: h.OnInactiveMarkAs, DependsOn: h.DependsOn, UserProperties: h.UserProperties, AdditionalProperties: h.AdditionalProperties, @@ -13541,7 +13809,7 @@ type HDInsightHiveActivityTypeProperties struct { StorageLinkedServices []*LinkedServiceReference // User specified arguments under hivevar namespace. - Variables []any + Variables map[string]any } // HDInsightLinkedService - HDInsight linked service. @@ -13586,8 +13854,8 @@ type HDInsightLinkedServiceTypeProperties struct { ClusterURI any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or Expression with resultType // string). @@ -13632,9 +13900,16 @@ type HDInsightMapReduceActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -13645,6 +13920,8 @@ func (h *HDInsightMapReduceActivity) GetActivity() *Activity { Name: h.Name, Type: h.Type, Description: h.Description, + State: h.State, + OnInactiveMarkAs: h.OnInactiveMarkAs, DependsOn: h.DependsOn, UserProperties: h.UserProperties, AdditionalProperties: h.AdditionalProperties, @@ -13659,6 +13936,8 @@ func (h *HDInsightMapReduceActivity) GetExecutionActivity() *ExecutionActivity { Name: h.Name, Type: h.Type, Description: h.Description, + State: h.State, + OnInactiveMarkAs: h.OnInactiveMarkAs, DependsOn: h.DependsOn, UserProperties: h.UserProperties, AdditionalProperties: h.AdditionalProperties, @@ -13786,8 +14065,8 @@ type HDInsightOnDemandLinkedServiceTypeProperties struct { DataNodeSize any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Specifies the HBase configuration parameters (hbase-site.xml) for the HDInsight cluster. HBaseConfiguration any @@ -13865,9 +14144,16 @@ type HDInsightPigActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -13878,6 +14164,8 @@ func (h *HDInsightPigActivity) GetActivity() *Activity { Name: h.Name, Type: h.Type, Description: h.Description, + State: h.State, + OnInactiveMarkAs: h.OnInactiveMarkAs, DependsOn: h.DependsOn, UserProperties: h.UserProperties, AdditionalProperties: h.AdditionalProperties, @@ -13892,6 +14180,8 @@ func (h *HDInsightPigActivity) GetExecutionActivity() *ExecutionActivity { Name: h.Name, Type: h.Type, Description: h.Description, + State: h.State, + OnInactiveMarkAs: h.OnInactiveMarkAs, DependsOn: h.DependsOn, UserProperties: h.UserProperties, AdditionalProperties: h.AdditionalProperties, @@ -13942,9 +14232,16 @@ type HDInsightSparkActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -13955,6 +14252,8 @@ func (h *HDInsightSparkActivity) GetActivity() *Activity { Name: h.Name, Type: h.Type, Description: h.Description, + State: h.State, + OnInactiveMarkAs: h.OnInactiveMarkAs, DependsOn: h.DependsOn, UserProperties: h.UserProperties, AdditionalProperties: h.AdditionalProperties, @@ -13969,6 +14268,8 @@ func (h *HDInsightSparkActivity) GetExecutionActivity() *ExecutionActivity { Name: h.Name, Type: h.Type, Description: h.Description, + State: h.State, + OnInactiveMarkAs: h.OnInactiveMarkAs, DependsOn: h.DependsOn, UserProperties: h.UserProperties, AdditionalProperties: h.AdditionalProperties, @@ -14027,9 +14328,16 @@ type HDInsightStreamingActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -14040,6 +14348,8 @@ func (h *HDInsightStreamingActivity) GetActivity() *Activity { Name: h.Name, Type: h.Type, Description: h.Description, + State: h.State, + OnInactiveMarkAs: h.OnInactiveMarkAs, DependsOn: h.DependsOn, UserProperties: h.UserProperties, AdditionalProperties: h.AdditionalProperties, @@ -14054,6 +14364,8 @@ func (h *HDInsightStreamingActivity) GetExecutionActivity() *ExecutionActivity { Name: h.Name, Type: h.Type, Description: h.Description, + State: h.State, + OnInactiveMarkAs: h.OnInactiveMarkAs, DependsOn: h.DependsOn, UserProperties: h.UserProperties, AdditionalProperties: h.AdditionalProperties, @@ -14235,8 +14547,8 @@ type HTTPLinkedServiceTypeProperties struct { EnableServerCertificateValidation any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. Password SecretBaseClassification @@ -14245,11 +14557,15 @@ type HTTPLinkedServiceTypeProperties struct { UserName any } -// HTTPReadSettings - Sftp read settings. +// HTTPReadSettings - Http read settings. type HTTPReadSettings struct { // REQUIRED; The read setting type. Type *string + // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with + // resultType array of objects). + AdditionalColumns any + // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). AdditionalHeaders any @@ -14259,22 +14575,17 @@ type HTTPReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool - // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections any - // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath any - // The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). RequestBody any // The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). RequestMethod any - // Specifies the timeout for a HTTP client to get HTTP response from HTTP server. + // Specifies the timeout for a HTTP client to get HTTP response from HTTP server. Type: string (or Expression with resultType + // string). RequestTimeout any } @@ -14401,8 +14712,8 @@ type HdfsLinkedServiceTypeProperties struct { AuthenticationType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password for Windows authentication. Password SecretBaseClassification @@ -14454,8 +14765,8 @@ type HdfsReadSettings struct { // Specifies Distcp-related settings. DistcpSettings *DistcpSettings - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). @@ -14602,8 +14913,8 @@ type HiveLinkedServiceTypeProperties struct { EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The partial URL corresponding to the Hive server. HTTPPath any @@ -14796,8 +15107,8 @@ type HubspotLinkedServiceTypeProperties struct { ClientSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The refresh token obtained when initially authenticating your OAuth integration. RefreshToken SecretBaseClassification @@ -14940,6 +15251,13 @@ type IfConditionActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -14950,6 +15268,8 @@ func (i *IfConditionActivity) GetActivity() *Activity { Name: i.Name, Type: i.Type, Description: i.Description, + State: i.State, + OnInactiveMarkAs: i.OnInactiveMarkAs, DependsOn: i.DependsOn, UserProperties: i.UserProperties, AdditionalProperties: i.AdditionalProperties, @@ -14962,6 +15282,8 @@ func (i *IfConditionActivity) GetControlActivity() *ControlActivity { Name: i.Name, Type: i.Type, Description: i.Description, + State: i.State, + OnInactiveMarkAs: i.OnInactiveMarkAs, DependsOn: i.DependsOn, UserProperties: i.UserProperties, AdditionalProperties: i.AdditionalProperties, @@ -15050,8 +15372,8 @@ type ImpalaLinkedServiceTypeProperties struct { EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The password corresponding to the user name when using UsernameAndPassword. Password SecretBaseClassification @@ -15238,7 +15560,8 @@ func (i *InformixLinkedService) GetLinkedService() *LinkedService { // InformixLinkedServiceTypeProperties - Informix linked service properties. type InformixLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: - // string, SecureString or AzureKeyVaultSecretReference. + // string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType + // string. ConnectionString any // Type of authentication used to connect to the Informix as ODBC data store. Possible values are: Anonymous and Basic. Type: @@ -15249,8 +15572,8 @@ type InformixLinkedServiceTypeProperties struct { Credential SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password for Basic authentication. Password SecretBaseClassification @@ -15533,10 +15856,21 @@ type IntegrationRuntimeDataFlowProperties struct { // Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. CoreCount *int32 + // Custom properties are used to tune the data flow runtime performance. + CustomProperties []*IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem + // Time to live (in minutes) setting of the cluster which will execute data flow job. TimeToLive *int32 } +type IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem struct { + // Name of custom property. + Name *string + + // Value of custom property. + Value *string +} + // IntegrationRuntimeDataProxyProperties - Data proxy properties for a managed dedicated integration runtime. type IntegrationRuntimeDataProxyProperties struct { // The self-hosted integration runtime reference. @@ -16217,8 +16551,8 @@ type JiraLinkedServiceTypeProperties struct { Username any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The password corresponding to the user name that you provided in the username field. Password SecretBaseClassification @@ -16625,9 +16959,16 @@ type LookupActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -16638,6 +16979,8 @@ func (l *LookupActivity) GetActivity() *Activity { Name: l.Name, Type: l.Type, Description: l.Description, + State: l.State, + OnInactiveMarkAs: l.OnInactiveMarkAs, DependsOn: l.DependsOn, UserProperties: l.UserProperties, AdditionalProperties: l.AdditionalProperties, @@ -16652,6 +16995,8 @@ func (l *LookupActivity) GetExecutionActivity() *ExecutionActivity { Name: l.Name, Type: l.Type, Description: l.Description, + State: l.State, + OnInactiveMarkAs: l.OnInactiveMarkAs, DependsOn: l.DependsOn, UserProperties: l.UserProperties, AdditionalProperties: l.AdditionalProperties, @@ -16715,8 +17060,8 @@ type MagentoLinkedServiceTypeProperties struct { AccessToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints any @@ -17264,8 +17609,8 @@ type MariaDBLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference @@ -17425,8 +17770,8 @@ type MarketoLinkedServiceTypeProperties struct { ClientSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints any @@ -17593,7 +17938,8 @@ func (m *MicrosoftAccessLinkedService) GetLinkedService() *LinkedService { // MicrosoftAccessLinkedServiceTypeProperties - Microsoft Access linked service properties. type MicrosoftAccessLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: - // string, SecureString or AzureKeyVaultSecretReference. + // string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType + // string. ConnectionString any // Type of authentication used to connect to the Microsoft Access as ODBC data store. Possible values are: Anonymous and Basic. @@ -17604,8 +17950,8 @@ type MicrosoftAccessLinkedServiceTypeProperties struct { Credential SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password for Basic authentication. Password SecretBaseClassification @@ -17852,6 +18198,10 @@ type MongoDbAtlasLinkedServiceTypeProperties struct { // REQUIRED; The name of the MongoDB Atlas database that you want to access. Type: string (or Expression with resultType string). Database any + + // The MongoDB Atlas Driver version that you want to choose. Allowed value are 2.10.4 and 2.19.0. Type: string (or Expression + // with resultType string). + MongoDbAtlasDriverVersion any } // MongoDbAtlasSink - A copy activity MongoDB Atlas sink. @@ -18089,8 +18439,8 @@ type MongoDbLinkedServiceTypeProperties struct { EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password for authentication. Password SecretBaseClassification @@ -18425,12 +18775,12 @@ func (m *MySQLLinkedService) GetLinkedService() *LinkedService { // MySQLLinkedServiceTypeProperties - MySQL linked service properties. type MySQLLinkedServiceTypeProperties struct { - // REQUIRED; The connection string. + // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference @@ -18590,8 +18940,8 @@ type NetezzaLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference @@ -18805,8 +19155,8 @@ type ODataLinkedServiceTypeProperties struct { AzureCloudType any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password of the OData service. Password SecretBaseClassification @@ -18974,7 +19324,8 @@ func (o *OdbcLinkedService) GetLinkedService() *LinkedService { // OdbcLinkedServiceTypeProperties - ODBC linked service properties. type OdbcLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: - // string, SecureString or AzureKeyVaultSecretReference. + // string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType + // string. ConnectionString any // Type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or @@ -18985,8 +19336,8 @@ type OdbcLinkedServiceTypeProperties struct { Credential SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password for Basic authentication. Password SecretBaseClassification @@ -19262,8 +19613,8 @@ type Office365LinkedServiceTypeProperties struct { ServicePrincipalTenantID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string } // Office365Source - A copy activity source for an Office 365 service. @@ -19486,8 +19837,8 @@ type OracleCloudStorageLinkedServiceTypeProperties struct { AccessKeyID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The secret access key of the Oracle Cloud Storage Identity and Access Management (IAM) user. SecretAccessKey SecretBaseClassification @@ -19544,8 +19895,8 @@ type OracleCloudStorageReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). @@ -19629,8 +19980,8 @@ type OracleLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference @@ -19702,8 +20053,8 @@ type OracleServiceCloudLinkedServiceTypeProperties struct { Username any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). @@ -20436,8 +20787,8 @@ type PaypalLinkedServiceTypeProperties struct { ClientSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints any @@ -20623,8 +20974,8 @@ type PhoenixLinkedServiceTypeProperties struct { EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The partial URL corresponding to the Phoenix server. (i.e. /gateway/sandbox/phoenix/version). The default value is hbasephoenix // if using WindowsAzureHDInsightService. @@ -21041,12 +21392,12 @@ func (p *PostgreSQLLinkedService) GetLinkedService() *LinkedService { // PostgreSQLLinkedServiceTypeProperties - PostgreSQL linked service properties. type PostgreSQLLinkedServiceTypeProperties struct { - // REQUIRED; The connection string. + // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference @@ -21315,8 +21666,8 @@ type PrestoLinkedServiceTypeProperties struct { EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The password corresponding to the user name. Password SecretBaseClassification @@ -21661,8 +22012,8 @@ type QuickBooksLinkedServiceTypeProperties struct { ConsumerSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com) Endpoint any @@ -21822,8 +22173,8 @@ type QuickbaseLinkedServiceTypeProperties struct { UserToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string } // RecurrenceSchedule - The recurrence schedule. @@ -22090,8 +22441,8 @@ type ResponsysLinkedServiceTypeProperties struct { ClientSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). @@ -22264,11 +22615,11 @@ func (r *RestResourceDataset) GetDataset() *Dataset { // RestResourceDatasetTypeProperties - Properties specific to this dataset type. type RestResourceDatasetTypeProperties struct { - // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders any + // The additional HTTP headers in the request to the RESTful API. + AdditionalHeaders map[string]any - // The pagination rules to compose next page requests. Type: string (or Expression with resultType string). - PaginationRules any + // The pagination rules to compose next page requests. + PaginationRules map[string]any // The relative URL to the resource that the RESTful API provides. Type: string (or Expression with resultType string). RelativeURL any @@ -22321,10 +22672,10 @@ type RestServiceLinkedServiceTypeProperties struct { // REQUIRED; Type of authentication used to connect to the REST service. AuthenticationType *RestServiceAuthenticationType - // REQUIRED; The base URL of the REST service. + // REQUIRED; The base URL of the REST service. Type: string (or Expression with resultType string). URL any - // The resource you are requesting authorization to use. + // The resource you are requesting authorization to use. Type: string (or Expression with resultType string). AADResourceID any // The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType @@ -22350,8 +22701,8 @@ type RestServiceLinkedServiceTypeProperties struct { EnableServerCertificateValidation any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The password used in Basic authentication type. Password SecretBaseClassification @@ -22363,20 +22714,21 @@ type RestServiceLinkedServiceTypeProperties struct { // resultType string). Scope any - // The application's client ID used in AadServicePrincipal authentication type. + // The application's client ID used in AadServicePrincipal authentication type. Type: string (or Expression with resultType + // string). ServicePrincipalID any // The application's key used in AadServicePrincipal authentication type. ServicePrincipalKey SecretBaseClassification // The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application - // resides. + // resides. Type: string (or Expression with resultType string). Tenant any // The token endpoint of the authorization server to acquire access token. Type: string (or Expression with resultType string). TokenEndpoint any - // The user name used in Basic authentication type. + // The user name used in Basic authentication type. Type: string (or Expression with resultType string). UserName any } @@ -22550,7 +22902,7 @@ type RunQueryOrderBy struct { // SQLAlwaysEncryptedProperties - Sql always encrypted properties. type SQLAlwaysEncryptedProperties struct { - // REQUIRED; Sql always encrypted AKV authentication type. Type: string (or Expression with resultType string). + // REQUIRED; Sql always encrypted AKV authentication type. Type: string. AlwaysEncryptedAkvAuthType *SQLAlwaysEncryptedAkvAuthType // The credential reference containing authentication information. @@ -22921,8 +23273,8 @@ type SQLServerLinkedServiceTypeProperties struct { AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The on-premises Windows authentication password. Password SecretBaseClassification @@ -23097,9 +23449,16 @@ type SQLServerStoredProcedureActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -23110,6 +23469,8 @@ func (s *SQLServerStoredProcedureActivity) GetActivity() *Activity { Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -23124,6 +23485,8 @@ func (s *SQLServerStoredProcedureActivity) GetExecutionActivity() *ExecutionActi Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -23359,13 +23722,13 @@ type SQLUpsertSettings struct { // SSISAccessCredential - SSIS access credential. type SSISAccessCredential struct { - // REQUIRED; Domain for windows authentication. + // REQUIRED; Domain for windows authentication. Type: string (or Expression with resultType string). Domain any // REQUIRED; Password for windows authentication. Password SecretBaseClassification - // REQUIRED; UseName for windows authentication. + // REQUIRED; UseName for windows authentication. Type: string (or Expression with resultType string). UserName any } @@ -23386,13 +23749,13 @@ type SSISChildPackage struct { // SSISExecutionCredential - SSIS package execution credential. type SSISExecutionCredential struct { - // REQUIRED; Domain for windows authentication. + // REQUIRED; Domain for windows authentication. Type: string (or Expression with resultType string). Domain any // REQUIRED; Password for windows authentication. Password *SecureString - // REQUIRED; UseName for windows authentication. + // REQUIRED; UseName for windows authentication. Type: string (or Expression with resultType string). UserName any } @@ -23514,8 +23877,8 @@ type SalesforceLinkedServiceTypeProperties struct { APIVersion any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The URL of Salesforce instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. // To copy data from custom domain, specify, for example, @@ -23582,8 +23945,8 @@ type SalesforceMarketingCloudLinkedServiceTypeProperties struct { ConnectionProperties any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). @@ -23802,8 +24165,8 @@ type SalesforceServiceCloudLinkedServiceTypeProperties struct { APIVersion any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The URL of Salesforce Service Cloud instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify // 'https://test.salesforce.com'. To copy data from custom domain, specify, for @@ -24143,8 +24506,8 @@ type SapBWLinkedServiceTypeProperties struct { SystemNumber any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password to access the SAP BW server. Password SecretBaseClassification @@ -24300,8 +24663,8 @@ type SapCloudForCustomerLinkedServiceTypeProperties struct { // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Either encryptedCredential or username/password must be provided. Type: - // string (or Expression with resultType string). - EncryptedCredential any + // string. + EncryptedCredential *string // The password for Basic authentication. Password SecretBaseClassification @@ -24516,18 +24879,18 @@ func (s *SapEccLinkedService) GetLinkedService() *LinkedService { type SapEccLinkedServiceTypeProperties struct { // REQUIRED; The URL of SAP ECC OData API. For example, '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string // (or Expression with resultType string). - URL *string + URL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Either encryptedCredential or username/password must be provided. Type: - // string (or Expression with resultType string). + // string. EncryptedCredential *string // The password for Basic authentication. Password SecretBaseClassification // The username for Basic authentication. Type: string (or Expression with resultType string). - Username *string + Username any } // SapEccResourceDataset - The path of the SAP ECC OData entity. @@ -24692,8 +25055,8 @@ type SapHanaLinkedServiceProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password to access the SAP HANA server. Password SecretBaseClassification @@ -24880,8 +25243,8 @@ type SapOdpLinkedServiceTypeProperties struct { ClientID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType // string). @@ -25108,8 +25471,8 @@ type SapOpenHubLinkedServiceTypeProperties struct { ClientID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Language of the BW system where the open hub destination is located. The default value is EN. Type: string (or Expression // with resultType string). @@ -25322,8 +25685,8 @@ type SapTableLinkedServiceTypeProperties struct { ClientID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType // string). @@ -25649,9 +26012,16 @@ type ScriptActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -25662,6 +26032,8 @@ func (s *ScriptActivity) GetActivity() *Activity { Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -25676,6 +26048,8 @@ func (s *ScriptActivity) GetExecutionActivity() *ExecutionActivity { Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -25696,7 +26070,7 @@ type ScriptActivityParameter struct { // The type of the parameter. Type *ScriptActivityParameterType - // The value of the parameter. + // The value of the parameter. Type: string (or Expression with resultType string). Value any } @@ -26009,8 +26383,8 @@ type ServiceNowLinkedServiceTypeProperties struct { ClientSecret SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The password corresponding to the user name for Basic and OAuth2 authentication. Password SecretBaseClassification @@ -26195,6 +26569,13 @@ type SetVariableActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -26205,6 +26586,8 @@ func (s *SetVariableActivity) GetActivity() *Activity { Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -26217,6 +26600,8 @@ func (s *SetVariableActivity) GetControlActivity() *ControlActivity { Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -26225,7 +26610,10 @@ func (s *SetVariableActivity) GetControlActivity() *ControlActivity { // SetVariableActivityTypeProperties - SetVariable activity properties. type SetVariableActivityTypeProperties struct { - // Value to be set. Could be a static value or Expression + // If set to true, it sets the pipeline run return value. + SetSystemVariable *bool + + // Value to be set. Could be a static value or Expression. Value any // Name of the variable whose value needs to be set. @@ -26275,8 +26663,8 @@ type SftpReadSettings struct { // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). DisableMetricsCollection any - // Indicates whether to enable partition discovery. - EnablePartitionDiscovery *bool + // Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery any // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). @@ -26360,8 +26748,8 @@ type SftpServerLinkedServiceTypeProperties struct { AuthenticationType *SftpAuthenticationType // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The host key finger-print of the SFTP server. When SkipHostKeyValidation is false, HostKeyFingerprint should be specified. // Type: string (or Expression with resultType string). @@ -26493,8 +26881,8 @@ type SharePointOnlineListLinkedServiceTypeProperties struct { TenantID any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string } // SharePointOnlineListResourceDataset - The sharepoint online list resource dataset. @@ -26633,8 +27021,8 @@ type ShopifyLinkedServiceTypeProperties struct { AccessToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. UseEncryptedEndpoints any @@ -26805,8 +27193,8 @@ type SmartsheetLinkedServiceTypeProperties struct { APIToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string } // SnowflakeDataset - The snowflake dataset. @@ -26963,8 +27351,8 @@ type SnowflakeLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference @@ -27135,8 +27523,8 @@ type SparkLinkedServiceTypeProperties struct { EnableSSL any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The partial URL corresponding to the Spark server. HTTPPath any @@ -27317,8 +27705,8 @@ type SquareLinkedServiceTypeProperties struct { ConnectionProperties any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The URL of the Square instance. (i.e. mystore.mysquare.com) Host any @@ -27799,6 +28187,13 @@ type SwitchActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -27809,6 +28204,8 @@ func (s *SwitchActivity) GetActivity() *Activity { Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -27821,6 +28218,8 @@ func (s *SwitchActivity) GetControlActivity() *ControlActivity { Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -27899,8 +28298,8 @@ type SybaseLinkedServiceTypeProperties struct { AuthenticationType *SybaseAuthenticationType // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password for authentication. Password SecretBaseClassification @@ -28047,9 +28446,16 @@ type SynapseNotebookActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -28060,6 +28466,8 @@ func (s *SynapseNotebookActivity) GetActivity() *Activity { Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -28074,6 +28482,8 @@ func (s *SynapseNotebookActivity) GetExecutionActivity() *ExecutionActivity { Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -28098,8 +28508,9 @@ type SynapseNotebookActivityTypeProperties struct { // provide. Type: string (or Expression with resultType string). ExecutorSize any - // Number of executors to launch for this session, which will override the 'numExecutors' of the notebook you provide. - NumExecutors *int32 + // Number of executors to launch for this session, which will override the 'numExecutors' of the notebook you provide. Type: + // integer (or Expression with resultType integer). + NumExecutors any // Notebook parameters. Parameters map[string]*NotebookParameter @@ -28205,9 +28616,16 @@ type SynapseSparkJobDefinitionActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -28218,6 +28636,8 @@ func (s *SynapseSparkJobDefinitionActivity) GetActivity() *Activity { Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -28232,6 +28652,8 @@ func (s *SynapseSparkJobDefinitionActivity) GetExecutionActivity() *ExecutionAct Name: s.Name, Type: s.Type, Description: s.Description, + State: s.State, + OnInactiveMarkAs: s.OnInactiveMarkAs, DependsOn: s.DependsOn, UserProperties: s.UserProperties, AdditionalProperties: s.AdditionalProperties, @@ -28396,8 +28818,8 @@ type TeamDeskLinkedServiceTypeProperties struct { APIToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The password of the TeamDesk source. Password SecretBaseClassification @@ -28451,8 +28873,8 @@ type TeradataLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // Password for authentication. Password SecretBaseClassification @@ -29070,7 +29492,7 @@ type TwilioLinkedServiceTypeProperties struct { // REQUIRED; The auth token of Twilio service. Password SecretBaseClassification - // REQUIRED; The Account SID of Twilio service. + // REQUIRED; The Account SID of Twilio service. Type: string (or Expression with resultType string). UserName any } @@ -29095,6 +29517,13 @@ type UntilActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -29105,6 +29534,8 @@ func (u *UntilActivity) GetActivity() *Activity { Name: u.Name, Type: u.Type, Description: u.Description, + State: u.State, + OnInactiveMarkAs: u.OnInactiveMarkAs, DependsOn: u.DependsOn, UserProperties: u.UserProperties, AdditionalProperties: u.AdditionalProperties, @@ -29117,6 +29548,8 @@ func (u *UntilActivity) GetControlActivity() *ControlActivity { Name: u.Name, Type: u.Type, Description: u.Description, + State: u.State, + OnInactiveMarkAs: u.OnInactiveMarkAs, DependsOn: u.DependsOn, UserProperties: u.UserProperties, AdditionalProperties: u.AdditionalProperties, @@ -29133,8 +29566,7 @@ type UntilActivityTypeProperties struct { // Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) // which is 1 week as default. Type: string (or Expression with resultType - // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with resultType string), - // pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Timeout any } @@ -29204,6 +29636,13 @@ type ValidationActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -29214,6 +29653,8 @@ func (v *ValidationActivity) GetActivity() *Activity { Name: v.Name, Type: v.Type, Description: v.Description, + State: v.State, + OnInactiveMarkAs: v.OnInactiveMarkAs, DependsOn: v.DependsOn, UserProperties: v.UserProperties, AdditionalProperties: v.AdditionalProperties, @@ -29226,6 +29667,8 @@ func (v *ValidationActivity) GetControlActivity() *ControlActivity { Name: v.Name, Type: v.Type, Description: v.Description, + State: v.State, + OnInactiveMarkAs: v.OnInactiveMarkAs, DependsOn: v.DependsOn, UserProperties: v.UserProperties, AdditionalProperties: v.AdditionalProperties, @@ -29318,8 +29761,8 @@ type VerticaLinkedServiceTypeProperties struct { ConnectionString any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference @@ -29451,6 +29894,13 @@ type WaitActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -29461,6 +29911,8 @@ func (w *WaitActivity) GetActivity() *Activity { Name: w.Name, Type: w.Type, Description: w.Description, + State: w.State, + OnInactiveMarkAs: w.OnInactiveMarkAs, DependsOn: w.DependsOn, UserProperties: w.UserProperties, AdditionalProperties: w.AdditionalProperties, @@ -29473,6 +29925,8 @@ func (w *WaitActivity) GetControlActivity() *ControlActivity { Name: w.Name, Type: w.Type, Description: w.Description, + State: w.State, + OnInactiveMarkAs: w.OnInactiveMarkAs, DependsOn: w.DependsOn, UserProperties: w.UserProperties, AdditionalProperties: w.AdditionalProperties, @@ -29481,7 +29935,7 @@ func (w *WaitActivity) GetControlActivity() *ControlActivity { // WaitActivityTypeProperties - Wait activity properties. type WaitActivityTypeProperties struct { - // REQUIRED; Duration in seconds. + // REQUIRED; Duration in seconds. Type: integer (or Expression with resultType integer). WaitTimeInSeconds any } @@ -29508,9 +29962,16 @@ type WebActivity struct { // Linked service reference. LinkedServiceName *LinkedServiceReference + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + // Activity policy. Policy *ActivityPolicy + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -29521,6 +29982,8 @@ func (w *WebActivity) GetActivity() *Activity { Name: w.Name, Type: w.Type, Description: w.Description, + State: w.State, + OnInactiveMarkAs: w.OnInactiveMarkAs, DependsOn: w.DependsOn, UserProperties: w.UserProperties, AdditionalProperties: w.AdditionalProperties, @@ -29535,6 +29998,8 @@ func (w *WebActivity) GetExecutionActivity() *ExecutionActivity { Name: w.Name, Type: w.Type, Description: w.Description, + State: w.State, + OnInactiveMarkAs: w.OnInactiveMarkAs, DependsOn: w.DependsOn, UserProperties: w.UserProperties, AdditionalProperties: w.AdditionalProperties, @@ -29689,6 +30154,13 @@ type WebHookActivity struct { // Activity description. Description *string + // Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when + // the activity is inactive, the status will be Succeeded by default. + OnInactiveMarkAs *ActivityOnInactiveMarkAs + + // Activity state. This is an optional property and if not provided, the state will be Active by default. + State *ActivityState + // Activity user properties. UserProperties []*UserProperty } @@ -29699,6 +30171,8 @@ func (w *WebHookActivity) GetActivity() *Activity { Name: w.Name, Type: w.Type, Description: w.Description, + State: w.State, + OnInactiveMarkAs: w.OnInactiveMarkAs, DependsOn: w.DependsOn, UserProperties: w.UserProperties, AdditionalProperties: w.AdditionalProperties, @@ -29711,6 +30185,8 @@ func (w *WebHookActivity) GetControlActivity() *ControlActivity { Name: w.Name, Type: w.Type, Description: w.Description, + State: w.State, + OnInactiveMarkAs: w.OnInactiveMarkAs, DependsOn: w.DependsOn, UserProperties: w.UserProperties, AdditionalProperties: w.AdditionalProperties, @@ -30123,8 +30599,8 @@ type XeroLinkedServiceTypeProperties struct { ConsumerKey SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The endpoint of the Xero server. (i.e. api.xero.com) Host any @@ -30298,8 +30774,8 @@ type ZendeskLinkedServiceTypeProperties struct { APIToken SecretBaseClassification // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The password of the Zendesk source. Password SecretBaseClassification @@ -30373,8 +30849,8 @@ type ZohoLinkedServiceTypeProperties struct { ConnectionProperties any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. - // Type: string (or Expression with resultType string). - EncryptedCredential any + // Type: string. + EncryptedCredential *string // The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private) Endpoint any diff --git a/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go b/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go index 4cb5700bf4e6..93c4b58ce83f 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go @@ -57,6 +57,8 @@ func (a Activity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) + populate(objectMap, "state", a.State) objectMap["type"] = a.Type populate(objectMap, "userProperties", a.UserProperties) if a.AdditionalProperties != nil { @@ -85,6 +87,12 @@ func (a *Activity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -427,7 +435,7 @@ func (a *AmazonMWSLinkedService) UnmarshalJSON(data []byte) error { func (a AmazonMWSLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "accessKeyId", a.AccessKeyID) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populateAny(objectMap, "endpoint", a.Endpoint) populateAny(objectMap, "marketplaceID", a.MarketplaceID) populate(objectMap, "mwsAuthToken", a.MwsAuthToken) @@ -634,7 +642,7 @@ func (a *AmazonMWSSource) UnmarshalJSON(data []byte) error { func (a AmazonRdsForLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", a.ConnectionString) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) return json.Marshal(objectMap) } @@ -1016,7 +1024,7 @@ func (a AmazonRdsForSQLServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, objectMap := make(map[string]any) populate(objectMap, "alwaysEncryptedSettings", a.AlwaysEncryptedSettings) populateAny(objectMap, "connectionString", a.ConnectionString) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) populateAny(objectMap, "userName", a.UserName) return json.Marshal(objectMap) @@ -1315,7 +1323,7 @@ func (a *AmazonRedshiftLinkedService) UnmarshalJSON(data []byte) error { func (a AmazonRedshiftLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "database", a.Database) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) populateAny(objectMap, "port", a.Port) populateAny(objectMap, "server", a.Server) @@ -1607,7 +1615,7 @@ func (a *AmazonS3CompatibleLinkedService) UnmarshalJSON(data []byte) error { func (a AmazonS3CompatibleLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "accessKeyId", a.AccessKeyID) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populateAny(objectMap, "forcePathStyle", a.ForcePathStyle) populate(objectMap, "secretAccessKey", a.SecretAccessKey) populateAny(objectMap, "serviceUrl", a.ServiceURL) @@ -1709,7 +1717,7 @@ func (a AmazonS3CompatibleReadSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) populateAny(objectMap, "fileListPath", a.FileListPath) populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) @@ -1990,7 +1998,7 @@ func (a AmazonS3LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "accessKeyId", a.AccessKeyID) populateAny(objectMap, "authenticationType", a.AuthenticationType) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "secretAccessKey", a.SecretAccessKey) populateAny(objectMap, "serviceUrl", a.ServiceURL) populate(objectMap, "sessionToken", a.SessionToken) @@ -2095,7 +2103,7 @@ func (a AmazonS3ReadSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) populateAny(objectMap, "fileListPath", a.FileListPath) populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) @@ -2283,6 +2291,8 @@ func (a AppendVariableActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) + populate(objectMap, "state", a.State) objectMap["type"] = "AppendVariable" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -2312,6 +2322,12 @@ func (a *AppendVariableActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -2463,7 +2479,7 @@ func (a *AsanaLinkedService) UnmarshalJSON(data []byte) error { func (a AsanaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "apiToken", a.APIToken) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) return json.Marshal(objectMap) } @@ -2974,7 +2990,7 @@ func (a AzureBatchLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "accountName", a.AccountName) populateAny(objectMap, "batchUri", a.BatchURI) populate(objectMap, "credential", a.Credential) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "linkedServiceName", a.LinkedServiceName) populateAny(objectMap, "poolName", a.PoolName) return json.Marshal(objectMap) @@ -3324,7 +3340,7 @@ func (a AzureBlobFSLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "accountKey", a.AccountKey) populateAny(objectMap, "azureCloudType", a.AzureCloudType) populate(objectMap, "credential", a.Credential) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "sasToken", a.SasToken) populateAny(objectMap, "sasUri", a.SasURI) populate(objectMap, "servicePrincipalCredential", a.ServicePrincipalCredential) @@ -3448,7 +3464,7 @@ func (a AzureBlobFSReadSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) populateAny(objectMap, "fileListPath", a.FileListPath) populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) @@ -3797,7 +3813,7 @@ func (a *AzureBlobStorageLinkedService) UnmarshalJSON(data []byte) error { func (a AzureBlobStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "accountKey", a.AccountKey) - populate(objectMap, "accountKind", a.AccountKind) + populateAny(objectMap, "accountKind", a.AccountKind) populate(objectMap, "authenticationType", a.AuthenticationType) populateAny(objectMap, "azureCloudType", a.AzureCloudType) populateAny(objectMap, "connectionString", a.ConnectionString) @@ -3806,7 +3822,7 @@ func (a AzureBlobStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, erro populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "sasToken", a.SasToken) populateAny(objectMap, "sasUri", a.SasURI) - populate(objectMap, "serviceEndpoint", a.ServiceEndpoint) + populateAny(objectMap, "serviceEndpoint", a.ServiceEndpoint) populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) populateAny(objectMap, "tenant", a.Tenant) @@ -3931,7 +3947,7 @@ func (a AzureBlobStorageReadSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) populateAny(objectMap, "fileListPath", a.FileListPath) populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) @@ -4081,7 +4097,9 @@ func (a AzureDataExplorerCommandActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) populate(objectMap, "policy", a.Policy) + populate(objectMap, "state", a.State) objectMap["type"] = "AzureDataExplorerCommand" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -4114,9 +4132,15 @@ func (a *AzureDataExplorerCommandActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &a.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -4604,7 +4628,7 @@ func (a AzureDataLakeAnalyticsLinkedServiceTypeProperties) MarshalJSON() ([]byte objectMap := make(map[string]any) populateAny(objectMap, "accountName", a.AccountName) populateAny(objectMap, "dataLakeAnalyticsUri", a.DataLakeAnalyticsURI) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populateAny(objectMap, "resourceGroupName", a.ResourceGroupName) populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) @@ -4836,7 +4860,7 @@ func (a AzureDataLakeStoreLinkedServiceTypeProperties) MarshalJSON() ([]byte, er populateAny(objectMap, "azureCloudType", a.AzureCloudType) populate(objectMap, "credential", a.Credential) populateAny(objectMap, "dataLakeStoreUri", a.DataLakeStoreURI) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populateAny(objectMap, "resourceGroupName", a.ResourceGroupName) populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) @@ -4947,7 +4971,7 @@ func (a AzureDataLakeStoreReadSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) populateAny(objectMap, "fileListPath", a.FileListPath) populateAny(objectMap, "listAfter", a.ListAfter) populateAny(objectMap, "listBefore", a.ListBefore) @@ -5644,7 +5668,7 @@ func (a AzureDatabricksDetltaLakeLinkedServiceTypeProperties) MarshalJSON() ([]b populateAny(objectMap, "clusterId", a.ClusterID) populate(objectMap, "credential", a.Credential) populateAny(objectMap, "domain", a.Domain) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populateAny(objectMap, "workspaceResourceId", a.WorkspaceResourceID) return json.Marshal(objectMap) } @@ -5753,7 +5777,7 @@ func (a AzureDatabricksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error populateAny(objectMap, "authentication", a.Authentication) populate(objectMap, "credential", a.Credential) populateAny(objectMap, "domain", a.Domain) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populateAny(objectMap, "existingClusterId", a.ExistingClusterID) populateAny(objectMap, "instancePoolId", a.InstancePoolID) populate(objectMap, "newClusterCustomTags", a.NewClusterCustomTags) @@ -5912,7 +5936,7 @@ func (a AzureFileStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, erro objectMap := make(map[string]any) populate(objectMap, "accountKey", a.AccountKey) populateAny(objectMap, "connectionString", a.ConnectionString) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populateAny(objectMap, "fileShare", a.FileShare) populateAny(objectMap, "host", a.Host) populate(objectMap, "password", a.Password) @@ -6025,7 +6049,7 @@ func (a AzureFileStorageReadSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "deleteFilesAfterCompletion", a.DeleteFilesAfterCompletion) populateAny(objectMap, "disableMetricsCollection", a.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) populateAny(objectMap, "fileListPath", a.FileListPath) populateAny(objectMap, "maxConcurrentConnections", a.MaxConcurrentConnections) populateAny(objectMap, "modifiedDatetimeEnd", a.ModifiedDatetimeEnd) @@ -6171,7 +6195,9 @@ func (a AzureFunctionActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) populate(objectMap, "policy", a.Policy) + populate(objectMap, "state", a.State) objectMap["type"] = "AzureFunctionActivity" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -6204,9 +6230,15 @@ func (a *AzureFunctionActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &a.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -6340,7 +6372,7 @@ func (a AzureFunctionLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) objectMap := make(map[string]any) populateAny(objectMap, "authentication", a.Authentication) populate(objectMap, "credential", a.Credential) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populateAny(objectMap, "functionAppUrl", a.FunctionAppURL) populate(objectMap, "functionKey", a.FunctionKey) populateAny(objectMap, "resourceId", a.ResourceID) @@ -6521,7 +6553,9 @@ func (a AzureMLBatchExecutionActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) populate(objectMap, "policy", a.Policy) + populate(objectMap, "state", a.State) objectMap["type"] = "AzureMLBatchExecution" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -6554,9 +6588,15 @@ func (a *AzureMLBatchExecutionActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &a.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -6626,7 +6666,9 @@ func (a AzureMLExecutePipelineActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) populate(objectMap, "policy", a.Policy) + populate(objectMap, "state", a.State) objectMap["type"] = "AzureMLExecutePipeline" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -6659,9 +6701,15 @@ func (a *AzureMLExecutePipelineActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &a.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -6811,7 +6859,7 @@ func (a AzureMLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "apiKey", a.APIKey) populateAny(objectMap, "authentication", a.Authentication) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populateAny(objectMap, "mlEndpoint", a.MlEndpoint) populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) @@ -6926,7 +6974,7 @@ func (a *AzureMLServiceLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLServiceLinkedServiceTypeProperties. func (a AzureMLServiceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populateAny(objectMap, "mlWorkspaceName", a.MlWorkspaceName) populateAny(objectMap, "resourceGroupName", a.ResourceGroupName) populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) @@ -6981,7 +7029,9 @@ func (a AzureMLUpdateResourceActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) populate(objectMap, "name", a.Name) + populate(objectMap, "onInactiveMarkAs", a.OnInactiveMarkAs) populate(objectMap, "policy", a.Policy) + populate(objectMap, "state", a.State) objectMap["type"] = "AzureMLUpdateResource" populate(objectMap, "typeProperties", a.TypeProperties) populate(objectMap, "userProperties", a.UserProperties) @@ -7014,9 +7064,15 @@ func (a *AzureMLUpdateResourceActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &a.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &a.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &a.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) @@ -7176,7 +7232,7 @@ func (a *AzureMariaDBLinkedService) UnmarshalJSON(data []byte) error { func (a AzureMariaDBLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", a.ConnectionString) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "pwd", a.Pwd) return json.Marshal(objectMap) } @@ -7417,7 +7473,7 @@ func (a *AzureMySQLLinkedService) UnmarshalJSON(data []byte) error { func (a AzureMySQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", a.ConnectionString) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) return json.Marshal(objectMap) } @@ -7759,7 +7815,7 @@ func (a *AzurePostgreSQLLinkedService) UnmarshalJSON(data []byte) error { func (a AzurePostgreSQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", a.ConnectionString) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) return json.Marshal(objectMap) } @@ -8173,7 +8229,7 @@ func (a AzureSQLDWLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "azureCloudType", a.AzureCloudType) populateAny(objectMap, "connectionString", a.ConnectionString) populate(objectMap, "credential", a.Credential) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) @@ -8400,7 +8456,7 @@ func (a AzureSQLDatabaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, erro populateAny(objectMap, "azureCloudType", a.AzureCloudType) populateAny(objectMap, "connectionString", a.ConnectionString) populate(objectMap, "credential", a.Credential) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) @@ -8521,7 +8577,7 @@ func (a AzureSQLMILinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "azureCloudType", a.AzureCloudType) populateAny(objectMap, "connectionString", a.ConnectionString) populate(objectMap, "credential", a.Credential) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "password", a.Password) populateAny(objectMap, "servicePrincipalId", a.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", a.ServicePrincipalKey) @@ -9219,7 +9275,7 @@ func (a *AzureSearchLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSearchLinkedServiceTypeProperties. func (a AzureSearchLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateAny(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) populate(objectMap, "key", a.Key) populateAny(objectMap, "url", a.URL) return json.Marshal(objectMap) @@ -10541,7 +10597,7 @@ func (c *CassandraLinkedService) UnmarshalJSON(data []byte) error { func (c CassandraLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "authenticationType", c.AuthenticationType) - populateAny(objectMap, "encryptedCredential", c.EncryptedCredential) + populate(objectMap, "encryptedCredential", c.EncryptedCredential) populateAny(objectMap, "host", c.Host) populate(objectMap, "password", c.Password) populateAny(objectMap, "port", c.Port) @@ -11090,7 +11146,7 @@ func (c CommonDataServiceForAppsLinkedServiceTypeProperties) MarshalJSON() ([]by objectMap := make(map[string]any) populateAny(objectMap, "authenticationType", c.AuthenticationType) populateAny(objectMap, "deploymentType", c.DeploymentType) - populateAny(objectMap, "encryptedCredential", c.EncryptedCredential) + populate(objectMap, "encryptedCredential", c.EncryptedCredential) populateAny(objectMap, "hostName", c.HostName) populateAny(objectMap, "organizationName", c.OrganizationName) populate(objectMap, "password", c.Password) @@ -11440,7 +11496,7 @@ func (c ConcurLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "clientId", c.ClientID) populateAny(objectMap, "connectionProperties", c.ConnectionProperties) - populateAny(objectMap, "encryptedCredential", c.EncryptedCredential) + populate(objectMap, "encryptedCredential", c.EncryptedCredential) populate(objectMap, "password", c.Password) populateAny(objectMap, "useEncryptedEndpoints", c.UseEncryptedEndpoints) populateAny(objectMap, "useHostVerification", c.UseHostVerification) @@ -11675,6 +11731,8 @@ func (c ControlActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", c.DependsOn) populate(objectMap, "description", c.Description) populate(objectMap, "name", c.Name) + populate(objectMap, "onInactiveMarkAs", c.OnInactiveMarkAs) + populate(objectMap, "state", c.State) objectMap["type"] = "Container" populate(objectMap, "userProperties", c.UserProperties) if c.AdditionalProperties != nil { @@ -11703,6 +11761,12 @@ func (c *ControlActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &c.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &c.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &c.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) @@ -11735,8 +11799,10 @@ func (c CopyActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "inputs", c.Inputs) populate(objectMap, "linkedServiceName", c.LinkedServiceName) populate(objectMap, "name", c.Name) + populate(objectMap, "onInactiveMarkAs", c.OnInactiveMarkAs) populate(objectMap, "outputs", c.Outputs) populate(objectMap, "policy", c.Policy) + populate(objectMap, "state", c.State) objectMap["type"] = "Copy" populate(objectMap, "typeProperties", c.TypeProperties) populate(objectMap, "userProperties", c.UserProperties) @@ -11772,12 +11838,18 @@ func (c *CopyActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &c.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &c.OnInactiveMarkAs) + delete(rawMsg, key) case "outputs": err = unpopulate(val, "Outputs", &c.Outputs) delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &c.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &c.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) @@ -12161,9 +12233,9 @@ func (c CosmosDbLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "connectionString", c.ConnectionString) populate(objectMap, "credential", c.Credential) populateAny(objectMap, "database", c.Database) - populateAny(objectMap, "encryptedCredential", c.EncryptedCredential) + populate(objectMap, "encryptedCredential", c.EncryptedCredential) populate(objectMap, "servicePrincipalCredential", c.ServicePrincipalCredential) - populate(objectMap, "servicePrincipalCredentialType", c.ServicePrincipalCredentialType) + populateAny(objectMap, "servicePrincipalCredentialType", c.ServicePrincipalCredentialType) populateAny(objectMap, "servicePrincipalId", c.ServicePrincipalID) populateAny(objectMap, "tenant", c.Tenant) return json.Marshal(objectMap) @@ -12884,7 +12956,7 @@ func (c CouchbaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", c.ConnectionString) populate(objectMap, "credString", c.CredString) - populateAny(objectMap, "encryptedCredential", c.EncryptedCredential) + populate(objectMap, "encryptedCredential", c.EncryptedCredential) return json.Marshal(objectMap) } @@ -13328,7 +13400,9 @@ func (c CustomActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", c.Description) populate(objectMap, "linkedServiceName", c.LinkedServiceName) populate(objectMap, "name", c.Name) + populate(objectMap, "onInactiveMarkAs", c.OnInactiveMarkAs) populate(objectMap, "policy", c.Policy) + populate(objectMap, "state", c.State) objectMap["type"] = "Custom" populate(objectMap, "typeProperties", c.TypeProperties) populate(objectMap, "userProperties", c.UserProperties) @@ -13361,9 +13435,15 @@ func (c *CustomActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &c.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &c.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &c.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &c.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) @@ -14486,7 +14566,9 @@ func (d DataLakeAnalyticsUSQLActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "name", d.Name) + populate(objectMap, "onInactiveMarkAs", d.OnInactiveMarkAs) populate(objectMap, "policy", d.Policy) + populate(objectMap, "state", d.State) objectMap["type"] = "DataLakeAnalyticsU-SQL" populate(objectMap, "typeProperties", d.TypeProperties) populate(objectMap, "userProperties", d.UserProperties) @@ -14519,9 +14601,15 @@ func (d *DataLakeAnalyticsUSQLActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &d.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &d.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &d.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) @@ -14607,7 +14695,9 @@ func (d DatabricksNotebookActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "name", d.Name) + populate(objectMap, "onInactiveMarkAs", d.OnInactiveMarkAs) populate(objectMap, "policy", d.Policy) + populate(objectMap, "state", d.State) objectMap["type"] = "DatabricksNotebook" populate(objectMap, "typeProperties", d.TypeProperties) populate(objectMap, "userProperties", d.UserProperties) @@ -14640,9 +14730,15 @@ func (d *DatabricksNotebookActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &d.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &d.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &d.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) @@ -14712,7 +14808,9 @@ func (d DatabricksSparkJarActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "name", d.Name) + populate(objectMap, "onInactiveMarkAs", d.OnInactiveMarkAs) populate(objectMap, "policy", d.Policy) + populate(objectMap, "state", d.State) objectMap["type"] = "DatabricksSparkJar" populate(objectMap, "typeProperties", d.TypeProperties) populate(objectMap, "userProperties", d.UserProperties) @@ -14745,9 +14843,15 @@ func (d *DatabricksSparkJarActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &d.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &d.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &d.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) @@ -14817,7 +14921,9 @@ func (d DatabricksSparkPythonActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "name", d.Name) + populate(objectMap, "onInactiveMarkAs", d.OnInactiveMarkAs) populate(objectMap, "policy", d.Policy) + populate(objectMap, "state", d.State) objectMap["type"] = "DatabricksSparkPython" populate(objectMap, "typeProperties", d.TypeProperties) populate(objectMap, "userProperties", d.UserProperties) @@ -14850,9 +14956,15 @@ func (d *DatabricksSparkPythonActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &d.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &d.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &d.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) @@ -15364,7 +15476,7 @@ func (d *DataworldLinkedService) UnmarshalJSON(data []byte) error { func (d DataworldLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "apiToken", d.APIToken) - populateAny(objectMap, "encryptedCredential", d.EncryptedCredential) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) return json.Marshal(objectMap) } @@ -15460,7 +15572,7 @@ func (d Db2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "certificateCommonName", d.CertificateCommonName) populateAny(objectMap, "connectionString", d.ConnectionString) populateAny(objectMap, "database", d.Database) - populateAny(objectMap, "encryptedCredential", d.EncryptedCredential) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) populateAny(objectMap, "packageCollection", d.PackageCollection) populate(objectMap, "password", d.Password) populateAny(objectMap, "server", d.Server) @@ -15698,7 +15810,9 @@ func (d DeleteActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "name", d.Name) + populate(objectMap, "onInactiveMarkAs", d.OnInactiveMarkAs) populate(objectMap, "policy", d.Policy) + populate(objectMap, "state", d.State) objectMap["type"] = "Delete" populate(objectMap, "typeProperties", d.TypeProperties) populate(objectMap, "userProperties", d.UserProperties) @@ -15731,9 +15845,15 @@ func (d *DeleteActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &d.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &d.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &d.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) @@ -16636,7 +16756,7 @@ func (d *DrillLinkedService) UnmarshalJSON(data []byte) error { func (d DrillLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", d.ConnectionString) - populateAny(objectMap, "encryptedCredential", d.EncryptedCredential) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) populate(objectMap, "pwd", d.Pwd) return json.Marshal(objectMap) } @@ -16877,7 +16997,7 @@ func (d *DynamicsAXLinkedService) UnmarshalJSON(data []byte) error { func (d DynamicsAXLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "aadResourceId", d.AADResourceID) - populateAny(objectMap, "encryptedCredential", d.EncryptedCredential) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) populateAny(objectMap, "servicePrincipalId", d.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", d.ServicePrincipalKey) populateAny(objectMap, "tenant", d.Tenant) @@ -17263,7 +17383,7 @@ func (d DynamicsCrmLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "authenticationType", d.AuthenticationType) populateAny(objectMap, "deploymentType", d.DeploymentType) - populateAny(objectMap, "encryptedCredential", d.EncryptedCredential) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) populateAny(objectMap, "hostName", d.HostName) populateAny(objectMap, "organizationName", d.OrganizationName) populate(objectMap, "password", d.Password) @@ -17642,7 +17762,7 @@ func (d DynamicsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "authenticationType", d.AuthenticationType) populate(objectMap, "credential", d.Credential) populateAny(objectMap, "deploymentType", d.DeploymentType) - populateAny(objectMap, "encryptedCredential", d.EncryptedCredential) + populate(objectMap, "encryptedCredential", d.EncryptedCredential) populateAny(objectMap, "hostName", d.HostName) populateAny(objectMap, "organizationName", d.OrganizationName) populate(objectMap, "password", d.Password) @@ -17920,7 +18040,7 @@ func (e *EloquaLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EloquaLinkedServiceTypeProperties. func (e EloquaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateAny(objectMap, "encryptedCredential", e.EncryptedCredential) + populate(objectMap, "encryptedCredential", e.EncryptedCredential) populateAny(objectMap, "endpoint", e.Endpoint) populate(objectMap, "password", e.Password) populateAny(objectMap, "useEncryptedEndpoints", e.UseEncryptedEndpoints) @@ -18442,7 +18562,9 @@ func (e ExecuteDataFlowActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", e.Description) populate(objectMap, "linkedServiceName", e.LinkedServiceName) populate(objectMap, "name", e.Name) + populate(objectMap, "onInactiveMarkAs", e.OnInactiveMarkAs) populate(objectMap, "policy", e.Policy) + populate(objectMap, "state", e.State) objectMap["type"] = "ExecuteDataFlow" populate(objectMap, "typeProperties", e.TypeProperties) populate(objectMap, "userProperties", e.UserProperties) @@ -18475,9 +18597,15 @@ func (e *ExecuteDataFlowActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &e.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &e.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &e.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &e.Type) delete(rawMsg, key) @@ -18597,7 +18725,9 @@ func (e ExecutePipelineActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", e.DependsOn) populate(objectMap, "description", e.Description) populate(objectMap, "name", e.Name) + populate(objectMap, "onInactiveMarkAs", e.OnInactiveMarkAs) populate(objectMap, "policy", e.Policy) + populate(objectMap, "state", e.State) objectMap["type"] = "ExecutePipeline" populate(objectMap, "typeProperties", e.TypeProperties) populate(objectMap, "userProperties", e.UserProperties) @@ -18627,9 +18757,15 @@ func (e *ExecutePipelineActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &e.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &e.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &e.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &e.Type) delete(rawMsg, key) @@ -18804,7 +18940,9 @@ func (e ExecuteSSISPackageActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", e.Description) populate(objectMap, "linkedServiceName", e.LinkedServiceName) populate(objectMap, "name", e.Name) + populate(objectMap, "onInactiveMarkAs", e.OnInactiveMarkAs) populate(objectMap, "policy", e.Policy) + populate(objectMap, "state", e.State) objectMap["type"] = "ExecuteSSISPackage" populate(objectMap, "typeProperties", e.TypeProperties) populate(objectMap, "userProperties", e.UserProperties) @@ -18837,9 +18975,15 @@ func (e *ExecuteSSISPackageActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &e.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &e.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &e.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &e.Type) delete(rawMsg, key) @@ -18944,7 +19088,9 @@ func (e ExecuteWranglingDataflowActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", e.DependsOn) populate(objectMap, "description", e.Description) populate(objectMap, "name", e.Name) + populate(objectMap, "onInactiveMarkAs", e.OnInactiveMarkAs) populate(objectMap, "policy", e.Policy) + populate(objectMap, "state", e.State) objectMap["type"] = "ExecuteWranglingDataflow" populate(objectMap, "typeProperties", e.TypeProperties) populate(objectMap, "userProperties", e.UserProperties) @@ -18974,9 +19120,15 @@ func (e *ExecuteWranglingDataflowActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &e.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &e.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &e.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &e.Type) delete(rawMsg, key) @@ -19011,7 +19163,9 @@ func (e ExecutionActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", e.Description) populate(objectMap, "linkedServiceName", e.LinkedServiceName) populate(objectMap, "name", e.Name) + populate(objectMap, "onInactiveMarkAs", e.OnInactiveMarkAs) populate(objectMap, "policy", e.Policy) + populate(objectMap, "state", e.State) objectMap["type"] = "Execution" populate(objectMap, "userProperties", e.UserProperties) if e.AdditionalProperties != nil { @@ -19043,9 +19197,15 @@ func (e *ExecutionActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &e.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &e.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &e.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &e.Type) delete(rawMsg, key) @@ -19726,6 +19886,8 @@ func (f FailActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", f.DependsOn) populate(objectMap, "description", f.Description) populate(objectMap, "name", f.Name) + populate(objectMap, "onInactiveMarkAs", f.OnInactiveMarkAs) + populate(objectMap, "state", f.State) objectMap["type"] = "Fail" populate(objectMap, "typeProperties", f.TypeProperties) populate(objectMap, "userProperties", f.UserProperties) @@ -19755,6 +19917,12 @@ func (f *FailActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &f.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &f.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &f.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &f.Type) delete(rawMsg, key) @@ -19878,7 +20046,7 @@ func (f *FileServerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileServerLinkedServiceTypeProperties. func (f FileServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateAny(objectMap, "encryptedCredential", f.EncryptedCredential) + populate(objectMap, "encryptedCredential", f.EncryptedCredential) populateAny(objectMap, "host", f.Host) populate(objectMap, "password", f.Password) populateAny(objectMap, "userId", f.UserID) @@ -19969,7 +20137,7 @@ func (f FileServerReadSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "deleteFilesAfterCompletion", f.DeleteFilesAfterCompletion) populateAny(objectMap, "disableMetricsCollection", f.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", f.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", f.EnablePartitionDiscovery) populateAny(objectMap, "fileFilter", f.FileFilter) populateAny(objectMap, "fileListPath", f.FileListPath) populateAny(objectMap, "maxConcurrentConnections", f.MaxConcurrentConnections) @@ -20375,6 +20543,8 @@ func (f FilterActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", f.DependsOn) populate(objectMap, "description", f.Description) populate(objectMap, "name", f.Name) + populate(objectMap, "onInactiveMarkAs", f.OnInactiveMarkAs) + populate(objectMap, "state", f.State) objectMap["type"] = "Filter" populate(objectMap, "typeProperties", f.TypeProperties) populate(objectMap, "userProperties", f.UserProperties) @@ -20404,6 +20574,12 @@ func (f *FilterActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &f.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &f.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &f.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &f.Type) delete(rawMsg, key) @@ -20554,6 +20730,8 @@ func (f ForEachActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", f.DependsOn) populate(objectMap, "description", f.Description) populate(objectMap, "name", f.Name) + populate(objectMap, "onInactiveMarkAs", f.OnInactiveMarkAs) + populate(objectMap, "state", f.State) objectMap["type"] = "ForEach" populate(objectMap, "typeProperties", f.TypeProperties) populate(objectMap, "userProperties", f.UserProperties) @@ -20583,6 +20761,12 @@ func (f *ForEachActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &f.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &f.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &f.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &f.Type) delete(rawMsg, key) @@ -20739,13 +20923,13 @@ func (f FtpReadSettings) MarshalJSON() ([]byte, error) { populateAny(objectMap, "deleteFilesAfterCompletion", f.DeleteFilesAfterCompletion) populateAny(objectMap, "disableChunking", f.DisableChunking) populateAny(objectMap, "disableMetricsCollection", f.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", f.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", f.EnablePartitionDiscovery) populateAny(objectMap, "fileListPath", f.FileListPath) populateAny(objectMap, "maxConcurrentConnections", f.MaxConcurrentConnections) populateAny(objectMap, "partitionRootPath", f.PartitionRootPath) populateAny(objectMap, "recursive", f.Recursive) objectMap["type"] = "FtpReadSettings" - populate(objectMap, "useBinaryTransfer", f.UseBinaryTransfer) + populateAny(objectMap, "useBinaryTransfer", f.UseBinaryTransfer) populateAny(objectMap, "wildcardFileName", f.WildcardFileName) populateAny(objectMap, "wildcardFolderPath", f.WildcardFolderPath) if f.AdditionalProperties != nil { @@ -20887,7 +21071,7 @@ func (f FtpServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "authenticationType", f.AuthenticationType) populateAny(objectMap, "enableSsl", f.EnableSSL) populateAny(objectMap, "enableServerCertificateValidation", f.EnableServerCertificateValidation) - populateAny(objectMap, "encryptedCredential", f.EncryptedCredential) + populate(objectMap, "encryptedCredential", f.EncryptedCredential) populateAny(objectMap, "host", f.Host) populate(objectMap, "password", f.Password) populateAny(objectMap, "port", f.Port) @@ -21020,7 +21204,9 @@ func (g GetMetadataActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", g.Description) populate(objectMap, "linkedServiceName", g.LinkedServiceName) populate(objectMap, "name", g.Name) + populate(objectMap, "onInactiveMarkAs", g.OnInactiveMarkAs) populate(objectMap, "policy", g.Policy) + populate(objectMap, "state", g.State) objectMap["type"] = "GetMetadata" populate(objectMap, "typeProperties", g.TypeProperties) populate(objectMap, "userProperties", g.UserProperties) @@ -21053,9 +21239,15 @@ func (g *GetMetadataActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &g.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &g.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &g.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &g.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &g.Type) delete(rawMsg, key) @@ -21423,7 +21615,7 @@ func (g GoogleAdWordsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) populateAny(objectMap, "connectionProperties", g.ConnectionProperties) populate(objectMap, "developerToken", g.DeveloperToken) populateAny(objectMap, "email", g.Email) - populateAny(objectMap, "encryptedCredential", g.EncryptedCredential) + populate(objectMap, "encryptedCredential", g.EncryptedCredential) populateAny(objectMap, "keyFilePath", g.KeyFilePath) populate(objectMap, "refreshToken", g.RefreshToken) populateAny(objectMap, "trustedCertPath", g.TrustedCertPath) @@ -21733,7 +21925,7 @@ func (g GoogleBigQueryLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) populateAny(objectMap, "clientId", g.ClientID) populate(objectMap, "clientSecret", g.ClientSecret) populateAny(objectMap, "email", g.Email) - populateAny(objectMap, "encryptedCredential", g.EncryptedCredential) + populate(objectMap, "encryptedCredential", g.EncryptedCredential) populateAny(objectMap, "keyFilePath", g.KeyFilePath) populateAny(objectMap, "project", g.Project) populate(objectMap, "refreshToken", g.RefreshToken) @@ -22006,7 +22198,7 @@ func (g *GoogleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { func (g GoogleCloudStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "accessKeyId", g.AccessKeyID) - populateAny(objectMap, "encryptedCredential", g.EncryptedCredential) + populate(objectMap, "encryptedCredential", g.EncryptedCredential) populate(objectMap, "secretAccessKey", g.SecretAccessKey) populateAny(objectMap, "serviceUrl", g.ServiceURL) return json.Marshal(objectMap) @@ -22104,7 +22296,7 @@ func (g GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "deleteFilesAfterCompletion", g.DeleteFilesAfterCompletion) populateAny(objectMap, "disableMetricsCollection", g.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", g.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", g.EnablePartitionDiscovery) populateAny(objectMap, "fileListPath", g.FileListPath) populateAny(objectMap, "maxConcurrentConnections", g.MaxConcurrentConnections) populateAny(objectMap, "modifiedDatetimeEnd", g.ModifiedDatetimeEnd) @@ -22255,7 +22447,7 @@ func (g *GoogleSheetsLinkedService) UnmarshalJSON(data []byte) error { func (g GoogleSheetsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "apiToken", g.APIToken) - populateAny(objectMap, "encryptedCredential", g.EncryptedCredential) + populate(objectMap, "encryptedCredential", g.EncryptedCredential) return json.Marshal(objectMap) } @@ -22383,7 +22575,7 @@ func (g *GreenplumLinkedService) UnmarshalJSON(data []byte) error { func (g GreenplumLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", g.ConnectionString) - populateAny(objectMap, "encryptedCredential", g.EncryptedCredential) + populate(objectMap, "encryptedCredential", g.EncryptedCredential) populate(objectMap, "pwd", g.Pwd) return json.Marshal(objectMap) } @@ -22627,7 +22819,7 @@ func (h HBaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "allowSelfSignedServerCert", h.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", h.AuthenticationType) populateAny(objectMap, "enableSsl", h.EnableSSL) - populateAny(objectMap, "encryptedCredential", h.EncryptedCredential) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) populateAny(objectMap, "httpPath", h.HTTPPath) populateAny(objectMap, "host", h.Host) populate(objectMap, "password", h.Password) @@ -22838,7 +23030,9 @@ func (h HDInsightHiveActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "name", h.Name) + populate(objectMap, "onInactiveMarkAs", h.OnInactiveMarkAs) populate(objectMap, "policy", h.Policy) + populate(objectMap, "state", h.State) objectMap["type"] = "HDInsightHive" populate(objectMap, "typeProperties", h.TypeProperties) populate(objectMap, "userProperties", h.UserProperties) @@ -22871,9 +23065,15 @@ func (h *HDInsightHiveActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &h.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &h.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &h.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &h.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &h.Type) delete(rawMsg, key) @@ -23022,7 +23222,7 @@ func (h *HDInsightLinkedService) UnmarshalJSON(data []byte) error { func (h HDInsightLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "clusterUri", h.ClusterURI) - populateAny(objectMap, "encryptedCredential", h.EncryptedCredential) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) populateAny(objectMap, "fileSystem", h.FileSystem) populate(objectMap, "hcatalogLinkedServiceName", h.HcatalogLinkedServiceName) populateAny(objectMap, "isEspEnabled", h.IsEspEnabled) @@ -23080,7 +23280,9 @@ func (h HDInsightMapReduceActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "name", h.Name) + populate(objectMap, "onInactiveMarkAs", h.OnInactiveMarkAs) populate(objectMap, "policy", h.Policy) + populate(objectMap, "state", h.State) objectMap["type"] = "HDInsightMapReduce" populate(objectMap, "typeProperties", h.TypeProperties) populate(objectMap, "userProperties", h.UserProperties) @@ -23113,9 +23315,15 @@ func (h *HDInsightMapReduceActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &h.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &h.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &h.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &h.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &h.Type) delete(rawMsg, key) @@ -23275,7 +23483,7 @@ func (h HDInsightOnDemandLinkedServiceTypeProperties) MarshalJSON() ([]byte, err populateAny(objectMap, "coreConfiguration", h.CoreConfiguration) populate(objectMap, "credential", h.Credential) populateAny(objectMap, "dataNodeSize", h.DataNodeSize) - populateAny(objectMap, "encryptedCredential", h.EncryptedCredential) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) populateAny(objectMap, "hBaseConfiguration", h.HBaseConfiguration) populate(objectMap, "hcatalogLinkedServiceName", h.HcatalogLinkedServiceName) populateAny(objectMap, "hdfsConfiguration", h.HdfsConfiguration) @@ -23426,7 +23634,9 @@ func (h HDInsightPigActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "name", h.Name) + populate(objectMap, "onInactiveMarkAs", h.OnInactiveMarkAs) populate(objectMap, "policy", h.Policy) + populate(objectMap, "state", h.State) objectMap["type"] = "HDInsightPig" populate(objectMap, "typeProperties", h.TypeProperties) populate(objectMap, "userProperties", h.UserProperties) @@ -23459,9 +23669,15 @@ func (h *HDInsightPigActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &h.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &h.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &h.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &h.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &h.Type) delete(rawMsg, key) @@ -23543,7 +23759,9 @@ func (h HDInsightSparkActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "name", h.Name) + populate(objectMap, "onInactiveMarkAs", h.OnInactiveMarkAs) populate(objectMap, "policy", h.Policy) + populate(objectMap, "state", h.State) objectMap["type"] = "HDInsightSpark" populate(objectMap, "typeProperties", h.TypeProperties) populate(objectMap, "userProperties", h.UserProperties) @@ -23576,9 +23794,15 @@ func (h *HDInsightSparkActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &h.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &h.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &h.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &h.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &h.Type) delete(rawMsg, key) @@ -23668,7 +23892,9 @@ func (h HDInsightStreamingActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) populate(objectMap, "name", h.Name) + populate(objectMap, "onInactiveMarkAs", h.OnInactiveMarkAs) populate(objectMap, "policy", h.Policy) + populate(objectMap, "state", h.State) objectMap["type"] = "HDInsightStreaming" populate(objectMap, "typeProperties", h.TypeProperties) populate(objectMap, "userProperties", h.UserProperties) @@ -23701,9 +23927,15 @@ func (h *HDInsightStreamingActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &h.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &h.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &h.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &h.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &h.Type) delete(rawMsg, key) @@ -23993,7 +24225,7 @@ func (h HTTPLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "certThumbprint", h.CertThumbprint) populateAny(objectMap, "embeddedCertData", h.EmbeddedCertData) populateAny(objectMap, "enableServerCertificateValidation", h.EnableServerCertificateValidation) - populateAny(objectMap, "encryptedCredential", h.EncryptedCredential) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) populate(objectMap, "password", h.Password) populateAny(objectMap, "url", h.URL) populateAny(objectMap, "userName", h.UserName) @@ -24047,11 +24279,10 @@ func (h *HTTPLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPReadSettings. func (h HTTPReadSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populateAny(objectMap, "additionalColumns", h.AdditionalColumns) populateAny(objectMap, "additionalHeaders", h.AdditionalHeaders) populateAny(objectMap, "disableMetricsCollection", h.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", h.EnablePartitionDiscovery) populateAny(objectMap, "maxConcurrentConnections", h.MaxConcurrentConnections) - populateAny(objectMap, "partitionRootPath", h.PartitionRootPath) populateAny(objectMap, "requestBody", h.RequestBody) populateAny(objectMap, "requestMethod", h.RequestMethod) populateAny(objectMap, "requestTimeout", h.RequestTimeout) @@ -24073,21 +24304,18 @@ func (h *HTTPReadSettings) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &h.AdditionalColumns) + delete(rawMsg, key) case "additionalHeaders": err = unpopulate(val, "AdditionalHeaders", &h.AdditionalHeaders) delete(rawMsg, key) case "disableMetricsCollection": err = unpopulate(val, "DisableMetricsCollection", &h.DisableMetricsCollection) delete(rawMsg, key) - case "enablePartitionDiscovery": - err = unpopulate(val, "EnablePartitionDiscovery", &h.EnablePartitionDiscovery) - delete(rawMsg, key) case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &h.MaxConcurrentConnections) delete(rawMsg, key) - case "partitionRootPath": - err = unpopulate(val, "PartitionRootPath", &h.PartitionRootPath) - delete(rawMsg, key) case "requestBody": err = unpopulate(val, "RequestBody", &h.RequestBody) delete(rawMsg, key) @@ -24300,7 +24528,7 @@ func (h *HdfsLinkedService) UnmarshalJSON(data []byte) error { func (h HdfsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "authenticationType", h.AuthenticationType) - populateAny(objectMap, "encryptedCredential", h.EncryptedCredential) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) populate(objectMap, "password", h.Password) populateAny(objectMap, "url", h.URL) populateAny(objectMap, "userName", h.UserName) @@ -24395,7 +24623,7 @@ func (h HdfsReadSettings) MarshalJSON() ([]byte, error) { populateAny(objectMap, "deleteFilesAfterCompletion", h.DeleteFilesAfterCompletion) populateAny(objectMap, "disableMetricsCollection", h.DisableMetricsCollection) populate(objectMap, "distcpSettings", h.DistcpSettings) - populate(objectMap, "enablePartitionDiscovery", h.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", h.EnablePartitionDiscovery) populateAny(objectMap, "fileListPath", h.FileListPath) populateAny(objectMap, "maxConcurrentConnections", h.MaxConcurrentConnections) populateAny(objectMap, "modifiedDatetimeEnd", h.ModifiedDatetimeEnd) @@ -24649,7 +24877,7 @@ func (h HiveLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "allowSelfSignedServerCert", h.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", h.AuthenticationType) populateAny(objectMap, "enableSsl", h.EnableSSL) - populateAny(objectMap, "encryptedCredential", h.EncryptedCredential) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) populateAny(objectMap, "httpPath", h.HTTPPath) populateAny(objectMap, "host", h.Host) populate(objectMap, "password", h.Password) @@ -24945,7 +25173,7 @@ func (h HubspotLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "accessToken", h.AccessToken) populateAny(objectMap, "clientId", h.ClientID) populate(objectMap, "clientSecret", h.ClientSecret) - populateAny(objectMap, "encryptedCredential", h.EncryptedCredential) + populate(objectMap, "encryptedCredential", h.EncryptedCredential) populate(objectMap, "refreshToken", h.RefreshToken) populateAny(objectMap, "useEncryptedEndpoints", h.UseEncryptedEndpoints) populateAny(objectMap, "useHostVerification", h.UseHostVerification) @@ -25144,6 +25372,8 @@ func (i IfConditionActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", i.DependsOn) populate(objectMap, "description", i.Description) populate(objectMap, "name", i.Name) + populate(objectMap, "onInactiveMarkAs", i.OnInactiveMarkAs) + populate(objectMap, "state", i.State) objectMap["type"] = "IfCondition" populate(objectMap, "typeProperties", i.TypeProperties) populate(objectMap, "userProperties", i.UserProperties) @@ -25173,6 +25403,12 @@ func (i *IfConditionActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &i.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &i.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &i.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &i.Type) delete(rawMsg, key) @@ -25339,7 +25575,7 @@ func (i ImpalaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "allowSelfSignedServerCert", i.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", i.AuthenticationType) populateAny(objectMap, "enableSsl", i.EnableSSL) - populateAny(objectMap, "encryptedCredential", i.EncryptedCredential) + populate(objectMap, "encryptedCredential", i.EncryptedCredential) populateAny(objectMap, "host", i.Host) populate(objectMap, "password", i.Password) populateAny(objectMap, "port", i.Port) @@ -25653,7 +25889,7 @@ func (i InformixLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "authenticationType", i.AuthenticationType) populateAny(objectMap, "connectionString", i.ConnectionString) populate(objectMap, "credential", i.Credential) - populateAny(objectMap, "encryptedCredential", i.EncryptedCredential) + populate(objectMap, "encryptedCredential", i.EncryptedCredential) populate(objectMap, "password", i.Password) populateAny(objectMap, "userName", i.UserName) return json.Marshal(objectMap) @@ -26208,6 +26444,7 @@ func (i IntegrationRuntimeDataFlowProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "cleanup", i.Cleanup) populate(objectMap, "computeType", i.ComputeType) populate(objectMap, "coreCount", i.CoreCount) + populate(objectMap, "customProperties", i.CustomProperties) populate(objectMap, "timeToLive", i.TimeToLive) if i.AdditionalProperties != nil { for key, val := range i.AdditionalProperties { @@ -26235,6 +26472,9 @@ func (i *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(data []byte) error case "coreCount": err = unpopulate(val, "CoreCount", &i.CoreCount) delete(rawMsg, key) + case "customProperties": + err = unpopulate(val, "CustomProperties", &i.CustomProperties) + delete(rawMsg, key) case "timeToLive": err = unpopulate(val, "TimeToLive", &i.TimeToLive) delete(rawMsg, key) @@ -26256,6 +26496,37 @@ func (i *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(data []byte) error return nil } +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem. +func (i IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", i.Name) + populate(objectMap, "value", i.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem. +func (i *IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &i.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataProxyProperties. func (i IntegrationRuntimeDataProxyProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -27445,7 +27716,7 @@ func (j *JiraLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JiraLinkedServiceTypeProperties. func (j JiraLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateAny(objectMap, "encryptedCredential", j.EncryptedCredential) + populate(objectMap, "encryptedCredential", j.EncryptedCredential) populateAny(objectMap, "host", j.Host) populate(objectMap, "password", j.Password) populateAny(objectMap, "port", j.Port) @@ -28160,7 +28431,9 @@ func (l LookupActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", l.Description) populate(objectMap, "linkedServiceName", l.LinkedServiceName) populate(objectMap, "name", l.Name) + populate(objectMap, "onInactiveMarkAs", l.OnInactiveMarkAs) populate(objectMap, "policy", l.Policy) + populate(objectMap, "state", l.State) objectMap["type"] = "Lookup" populate(objectMap, "typeProperties", l.TypeProperties) populate(objectMap, "userProperties", l.UserProperties) @@ -28193,9 +28466,15 @@ func (l *LookupActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &l.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &l.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &l.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &l.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &l.Type) delete(rawMsg, key) @@ -28324,7 +28603,7 @@ func (m *MagentoLinkedService) UnmarshalJSON(data []byte) error { func (m MagentoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "accessToken", m.AccessToken) - populateAny(objectMap, "encryptedCredential", m.EncryptedCredential) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) populateAny(objectMap, "host", m.Host) populateAny(objectMap, "useEncryptedEndpoints", m.UseEncryptedEndpoints) populateAny(objectMap, "useHostVerification", m.UseHostVerification) @@ -29426,7 +29705,7 @@ func (m *MariaDBLinkedService) UnmarshalJSON(data []byte) error { func (m MariaDBLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", m.ConnectionString) - populateAny(objectMap, "encryptedCredential", m.EncryptedCredential) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) populate(objectMap, "pwd", m.Pwd) return json.Marshal(objectMap) } @@ -29668,7 +29947,7 @@ func (m MarketoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "clientId", m.ClientID) populate(objectMap, "clientSecret", m.ClientSecret) - populateAny(objectMap, "encryptedCredential", m.EncryptedCredential) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) populateAny(objectMap, "endpoint", m.Endpoint) populateAny(objectMap, "useEncryptedEndpoints", m.UseEncryptedEndpoints) populateAny(objectMap, "useHostVerification", m.UseHostVerification) @@ -29957,7 +30236,7 @@ func (m MicrosoftAccessLinkedServiceTypeProperties) MarshalJSON() ([]byte, error populateAny(objectMap, "authenticationType", m.AuthenticationType) populateAny(objectMap, "connectionString", m.ConnectionString) populate(objectMap, "credential", m.Credential) - populateAny(objectMap, "encryptedCredential", m.EncryptedCredential) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) populate(objectMap, "password", m.Password) populateAny(objectMap, "userName", m.UserName) return json.Marshal(objectMap) @@ -30403,6 +30682,7 @@ func (m MongoDbAtlasLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", m.ConnectionString) populateAny(objectMap, "database", m.Database) + populateAny(objectMap, "mongoDbAtlasDriverVersion", m.MongoDbAtlasDriverVersion) return json.Marshal(objectMap) } @@ -30421,6 +30701,9 @@ func (m *MongoDbAtlasLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err case "database": err = unpopulate(val, "Database", &m.Database) delete(rawMsg, key) + case "mongoDbAtlasDriverVersion": + err = unpopulate(val, "MongoDbAtlasDriverVersion", &m.MongoDbAtlasDriverVersion) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", m, err) @@ -30802,7 +31085,7 @@ func (m MongoDbLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "authenticationType", m.AuthenticationType) populateAny(objectMap, "databaseName", m.DatabaseName) populateAny(objectMap, "enableSsl", m.EnableSSL) - populateAny(objectMap, "encryptedCredential", m.EncryptedCredential) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) populate(objectMap, "password", m.Password) populateAny(objectMap, "port", m.Port) populateAny(objectMap, "server", m.Server) @@ -31389,7 +31672,7 @@ func (m *MySQLLinkedService) UnmarshalJSON(data []byte) error { func (m MySQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", m.ConnectionString) - populateAny(objectMap, "encryptedCredential", m.EncryptedCredential) + populate(objectMap, "encryptedCredential", m.EncryptedCredential) populate(objectMap, "password", m.Password) return json.Marshal(objectMap) } @@ -31657,7 +31940,7 @@ func (n *NetezzaLinkedService) UnmarshalJSON(data []byte) error { func (n NetezzaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", n.ConnectionString) - populateAny(objectMap, "encryptedCredential", n.EncryptedCredential) + populate(objectMap, "encryptedCredential", n.EncryptedCredential) populate(objectMap, "pwd", n.Pwd) return json.Marshal(objectMap) } @@ -32011,7 +32294,7 @@ func (o ODataLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "authHeaders", o.AuthHeaders) populate(objectMap, "authenticationType", o.AuthenticationType) populateAny(objectMap, "azureCloudType", o.AzureCloudType) - populateAny(objectMap, "encryptedCredential", o.EncryptedCredential) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) populate(objectMap, "password", o.Password) populate(objectMap, "servicePrincipalEmbeddedCert", o.ServicePrincipalEmbeddedCert) populate(objectMap, "servicePrincipalEmbeddedCertPassword", o.ServicePrincipalEmbeddedCertPassword) @@ -32321,7 +32604,7 @@ func (o OdbcLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "authenticationType", o.AuthenticationType) populateAny(objectMap, "connectionString", o.ConnectionString) populate(objectMap, "credential", o.Credential) - populateAny(objectMap, "encryptedCredential", o.EncryptedCredential) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) populate(objectMap, "password", o.Password) populateAny(objectMap, "userName", o.UserName) return json.Marshal(objectMap) @@ -32773,7 +33056,7 @@ func (o *Office365LinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Office365LinkedServiceTypeProperties. func (o Office365LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateAny(objectMap, "encryptedCredential", o.EncryptedCredential) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) populateAny(objectMap, "office365TenantId", o.Office365TenantID) populateAny(objectMap, "servicePrincipalId", o.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", o.ServicePrincipalKey) @@ -33292,7 +33575,7 @@ func (o *OracleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { func (o OracleCloudStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "accessKeyId", o.AccessKeyID) - populateAny(objectMap, "encryptedCredential", o.EncryptedCredential) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) populate(objectMap, "secretAccessKey", o.SecretAccessKey) populateAny(objectMap, "serviceUrl", o.ServiceURL) return json.Marshal(objectMap) @@ -33390,7 +33673,7 @@ func (o OracleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "deleteFilesAfterCompletion", o.DeleteFilesAfterCompletion) populateAny(objectMap, "disableMetricsCollection", o.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", o.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", o.EnablePartitionDiscovery) populateAny(objectMap, "fileListPath", o.FileListPath) populateAny(objectMap, "maxConcurrentConnections", o.MaxConcurrentConnections) populateAny(objectMap, "modifiedDatetimeEnd", o.ModifiedDatetimeEnd) @@ -33541,7 +33824,7 @@ func (o *OracleLinkedService) UnmarshalJSON(data []byte) error { func (o OracleLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", o.ConnectionString) - populateAny(objectMap, "encryptedCredential", o.EncryptedCredential) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) populate(objectMap, "password", o.Password) return json.Marshal(objectMap) } @@ -33676,7 +33959,7 @@ func (o *OracleServiceCloudLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudLinkedServiceTypeProperties. func (o OracleServiceCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateAny(objectMap, "encryptedCredential", o.EncryptedCredential) + populate(objectMap, "encryptedCredential", o.EncryptedCredential) populateAny(objectMap, "host", o.Host) populate(objectMap, "password", o.Password) populateAny(objectMap, "useEncryptedEndpoints", o.UseEncryptedEndpoints) @@ -34944,7 +35227,7 @@ func (p PaypalLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "clientId", p.ClientID) populate(objectMap, "clientSecret", p.ClientSecret) - populateAny(objectMap, "encryptedCredential", p.EncryptedCredential) + populate(objectMap, "encryptedCredential", p.EncryptedCredential) populateAny(objectMap, "host", p.Host) populateAny(objectMap, "useEncryptedEndpoints", p.UseEncryptedEndpoints) populateAny(objectMap, "useHostVerification", p.UseHostVerification) @@ -35238,7 +35521,7 @@ func (p PhoenixLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "allowSelfSignedServerCert", p.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", p.AuthenticationType) populateAny(objectMap, "enableSsl", p.EnableSSL) - populateAny(objectMap, "encryptedCredential", p.EncryptedCredential) + populate(objectMap, "encryptedCredential", p.EncryptedCredential) populateAny(objectMap, "httpPath", p.HTTPPath) populateAny(objectMap, "host", p.Host) populate(objectMap, "password", p.Password) @@ -36036,7 +36319,7 @@ func (p *PostgreSQLLinkedService) UnmarshalJSON(data []byte) error { func (p PostgreSQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", p.ConnectionString) - populateAny(objectMap, "encryptedCredential", p.EncryptedCredential) + populate(objectMap, "encryptedCredential", p.EncryptedCredential) populate(objectMap, "password", p.Password) return json.Marshal(objectMap) } @@ -36523,7 +36806,7 @@ func (p PrestoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "authenticationType", p.AuthenticationType) populateAny(objectMap, "catalog", p.Catalog) populateAny(objectMap, "enableSsl", p.EnableSSL) - populateAny(objectMap, "encryptedCredential", p.EncryptedCredential) + populate(objectMap, "encryptedCredential", p.EncryptedCredential) populateAny(objectMap, "host", p.Host) populate(objectMap, "password", p.Password) populateAny(objectMap, "port", p.Port) @@ -37182,7 +37465,7 @@ func (q QuickBooksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "connectionProperties", q.ConnectionProperties) populateAny(objectMap, "consumerKey", q.ConsumerKey) populate(objectMap, "consumerSecret", q.ConsumerSecret) - populateAny(objectMap, "encryptedCredential", q.EncryptedCredential) + populate(objectMap, "encryptedCredential", q.EncryptedCredential) populateAny(objectMap, "endpoint", q.Endpoint) populateAny(objectMap, "useEncryptedEndpoints", q.UseEncryptedEndpoints) return json.Marshal(objectMap) @@ -37441,7 +37724,7 @@ func (q *QuickbaseLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuickbaseLinkedServiceTypeProperties. func (q QuickbaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateAny(objectMap, "encryptedCredential", q.EncryptedCredential) + populate(objectMap, "encryptedCredential", q.EncryptedCredential) populateAny(objectMap, "url", q.URL) populate(objectMap, "userToken", q.UserToken) return json.Marshal(objectMap) @@ -38020,7 +38303,7 @@ func (r ResponsysLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "clientId", r.ClientID) populate(objectMap, "clientSecret", r.ClientSecret) - populateAny(objectMap, "encryptedCredential", r.EncryptedCredential) + populate(objectMap, "encryptedCredential", r.EncryptedCredential) populateAny(objectMap, "endpoint", r.Endpoint) populateAny(objectMap, "useEncryptedEndpoints", r.UseEncryptedEndpoints) populateAny(objectMap, "useHostVerification", r.UseHostVerification) @@ -38287,8 +38570,8 @@ func (r *RestResourceDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestResourceDatasetTypeProperties. func (r RestResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateAny(objectMap, "additionalHeaders", r.AdditionalHeaders) - populateAny(objectMap, "paginationRules", r.PaginationRules) + populate(objectMap, "additionalHeaders", r.AdditionalHeaders) + populate(objectMap, "paginationRules", r.PaginationRules) populateAny(objectMap, "relativeUrl", r.RelativeURL) populateAny(objectMap, "requestBody", r.RequestBody) populateAny(objectMap, "requestMethod", r.RequestMethod) @@ -38400,7 +38683,7 @@ func (r RestServiceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "clientSecret", r.ClientSecret) populate(objectMap, "credential", r.Credential) populateAny(objectMap, "enableServerCertificateValidation", r.EnableServerCertificateValidation) - populateAny(objectMap, "encryptedCredential", r.EncryptedCredential) + populate(objectMap, "encryptedCredential", r.EncryptedCredential) populate(objectMap, "password", r.Password) populateAny(objectMap, "resource", r.Resource) populateAny(objectMap, "scope", r.Scope) @@ -39348,7 +39631,7 @@ func (s SQLServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "alwaysEncryptedSettings", s.AlwaysEncryptedSettings) populateAny(objectMap, "connectionString", s.ConnectionString) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) populateAny(objectMap, "userName", s.UserName) return json.Marshal(objectMap) @@ -39585,7 +39868,9 @@ func (s SQLServerStoredProcedureActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) populate(objectMap, "policy", s.Policy) + populate(objectMap, "state", s.State) objectMap["type"] = "SqlServerStoredProcedure" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -39618,9 +39903,15 @@ func (s *SQLServerStoredProcedureActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &s.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -40404,7 +40695,7 @@ func (s *SalesforceLinkedService) UnmarshalJSON(data []byte) error { func (s SalesforceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "apiVersion", s.APIVersion) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "environmentUrl", s.EnvironmentURL) populate(objectMap, "password", s.Password) populate(objectMap, "securityToken", s.SecurityToken) @@ -40515,7 +40806,7 @@ func (s SalesforceMarketingCloudLinkedServiceTypeProperties) MarshalJSON() ([]by populateAny(objectMap, "clientId", s.ClientID) populate(objectMap, "clientSecret", s.ClientSecret) populateAny(objectMap, "connectionProperties", s.ConnectionProperties) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "useEncryptedEndpoints", s.UseEncryptedEndpoints) populateAny(objectMap, "useHostVerification", s.UseHostVerification) populateAny(objectMap, "usePeerVerification", s.UsePeerVerification) @@ -40871,7 +41162,7 @@ func (s *SalesforceServiceCloudLinkedService) UnmarshalJSON(data []byte) error { func (s SalesforceServiceCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "apiVersion", s.APIVersion) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "environmentUrl", s.EnvironmentURL) populateAny(objectMap, "extendedProperties", s.ExtendedProperties) populate(objectMap, "password", s.Password) @@ -41385,7 +41676,7 @@ func (s *SapBWLinkedService) UnmarshalJSON(data []byte) error { func (s SapBWLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "clientId", s.ClientID) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) populateAny(objectMap, "server", s.Server) populateAny(objectMap, "systemNumber", s.SystemNumber) @@ -41633,7 +41924,7 @@ func (s *SapCloudForCustomerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerLinkedServiceTypeProperties. func (s SapCloudForCustomerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) populateAny(objectMap, "url", s.URL) populateAny(objectMap, "username", s.Username) @@ -41985,8 +42276,8 @@ func (s SapEccLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) - populate(objectMap, "url", s.URL) - populate(objectMap, "username", s.Username) + populateAny(objectMap, "url", s.URL) + populateAny(objectMap, "username", s.Username) return json.Marshal(objectMap) } @@ -42261,7 +42552,7 @@ func (s SapHanaLinkedServiceProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "authenticationType", s.AuthenticationType) populateAny(objectMap, "connectionString", s.ConnectionString) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) populateAny(objectMap, "server", s.Server) populateAny(objectMap, "userName", s.UserName) @@ -42583,7 +42874,7 @@ func (s *SapOdpLinkedService) UnmarshalJSON(data []byte) error { func (s SapOdpLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "clientId", s.ClientID) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "language", s.Language) populateAny(objectMap, "logonGroup", s.LogonGroup) populateAny(objectMap, "messageServer", s.MessageServer) @@ -42927,7 +43218,7 @@ func (s *SapOpenHubLinkedService) UnmarshalJSON(data []byte) error { func (s SapOpenHubLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "clientId", s.ClientID) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "language", s.Language) populateAny(objectMap, "logonGroup", s.LogonGroup) populateAny(objectMap, "messageServer", s.MessageServer) @@ -43247,7 +43538,7 @@ func (s *SapTableLinkedService) UnmarshalJSON(data []byte) error { func (s SapTableLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "clientId", s.ClientID) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "language", s.Language) populateAny(objectMap, "logonGroup", s.LogonGroup) populateAny(objectMap, "messageServer", s.MessageServer) @@ -43769,7 +44060,9 @@ func (s ScriptActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) populate(objectMap, "policy", s.Policy) + populate(objectMap, "state", s.State) objectMap["type"] = "Script" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -43802,9 +44095,15 @@ func (s *ScriptActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &s.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -44465,7 +44764,7 @@ func (s ServiceNowLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "authenticationType", s.AuthenticationType) populateAny(objectMap, "clientId", s.ClientID) populate(objectMap, "clientSecret", s.ClientSecret) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "endpoint", s.Endpoint) populate(objectMap, "password", s.Password) populateAny(objectMap, "useEncryptedEndpoints", s.UseEncryptedEndpoints) @@ -44761,6 +45060,8 @@ func (s SetVariableActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) + populate(objectMap, "state", s.State) objectMap["type"] = "SetVariable" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -44790,6 +45091,12 @@ func (s *SetVariableActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -44820,6 +45127,7 @@ func (s *SetVariableActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SetVariableActivityTypeProperties. func (s SetVariableActivityTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "setSystemVariable", s.SetSystemVariable) populateAny(objectMap, "value", s.Value) populate(objectMap, "variableName", s.VariableName) return json.Marshal(objectMap) @@ -44834,6 +45142,9 @@ func (s *SetVariableActivityTypeProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "setSystemVariable": + err = unpopulate(val, "SetSystemVariable", &s.SetSystemVariable) + delete(rawMsg, key) case "value": err = unpopulate(val, "Value", &s.Value) delete(rawMsg, key) @@ -44904,7 +45215,7 @@ func (s SftpReadSettings) MarshalJSON() ([]byte, error) { populateAny(objectMap, "deleteFilesAfterCompletion", s.DeleteFilesAfterCompletion) populateAny(objectMap, "disableChunking", s.DisableChunking) populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) - populate(objectMap, "enablePartitionDiscovery", s.EnablePartitionDiscovery) + populateAny(objectMap, "enablePartitionDiscovery", s.EnablePartitionDiscovery) populateAny(objectMap, "fileListPath", s.FileListPath) populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) populateAny(objectMap, "modifiedDatetimeEnd", s.ModifiedDatetimeEnd) @@ -45054,7 +45365,7 @@ func (s *SftpServerLinkedService) UnmarshalJSON(data []byte) error { func (s SftpServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "authenticationType", s.AuthenticationType) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "host", s.Host) populateAny(objectMap, "hostKeyFingerprint", s.HostKeyFingerprint) populate(objectMap, "passPhrase", s.PassPhrase) @@ -45271,7 +45582,7 @@ func (s *SharePointOnlineListLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListLinkedServiceTypeProperties. func (s SharePointOnlineListLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "servicePrincipalId", s.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", s.ServicePrincipalKey) populateAny(objectMap, "siteUrl", s.SiteURL) @@ -45517,7 +45828,7 @@ func (s *ShopifyLinkedService) UnmarshalJSON(data []byte) error { func (s ShopifyLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "accessToken", s.AccessToken) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "host", s.Host) populateAny(objectMap, "useEncryptedEndpoints", s.UseEncryptedEndpoints) populateAny(objectMap, "useHostVerification", s.UseHostVerification) @@ -45801,7 +46112,7 @@ func (s *SmartsheetLinkedService) UnmarshalJSON(data []byte) error { func (s SmartsheetLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "apiToken", s.APIToken) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) return json.Marshal(objectMap) } @@ -46099,7 +46410,7 @@ func (s *SnowflakeLinkedService) UnmarshalJSON(data []byte) error { func (s SnowflakeLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", s.ConnectionString) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) return json.Marshal(objectMap) } @@ -46405,7 +46716,7 @@ func (s SparkLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "allowSelfSignedServerCert", s.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", s.AuthenticationType) populateAny(objectMap, "enableSsl", s.EnableSSL) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "httpPath", s.HTTPPath) populateAny(objectMap, "host", s.Host) populate(objectMap, "password", s.Password) @@ -46689,7 +47000,7 @@ func (s SquareLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "clientId", s.ClientID) populate(objectMap, "clientSecret", s.ClientSecret) populateAny(objectMap, "connectionProperties", s.ConnectionProperties) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populateAny(objectMap, "host", s.Host) populateAny(objectMap, "redirectUri", s.RedirectURI) populateAny(objectMap, "useEncryptedEndpoints", s.UseEncryptedEndpoints) @@ -47512,6 +47823,8 @@ func (s SwitchActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) + populate(objectMap, "state", s.State) objectMap["type"] = "Switch" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -47541,6 +47854,12 @@ func (s *SwitchActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -47701,7 +48020,7 @@ func (s SybaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "authenticationType", s.AuthenticationType) populateAny(objectMap, "database", s.Database) - populateAny(objectMap, "encryptedCredential", s.EncryptedCredential) + populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) populateAny(objectMap, "schema", s.Schema) populateAny(objectMap, "server", s.Server) @@ -47925,7 +48244,9 @@ func (s SynapseNotebookActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) populate(objectMap, "policy", s.Policy) + populate(objectMap, "state", s.State) objectMap["type"] = "SynapseNotebook" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -47958,9 +48279,15 @@ func (s *SynapseNotebookActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &s.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -47995,7 +48322,7 @@ func (s SynapseNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "driverSize", s.DriverSize) populateAny(objectMap, "executorSize", s.ExecutorSize) populate(objectMap, "notebook", s.Notebook) - populate(objectMap, "numExecutors", s.NumExecutors) + populateAny(objectMap, "numExecutors", s.NumExecutors) populate(objectMap, "parameters", s.Parameters) populate(objectMap, "sparkPool", s.SparkPool) return json.Marshal(objectMap) @@ -48164,7 +48491,9 @@ func (s SynapseSparkJobDefinitionActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) populate(objectMap, "name", s.Name) + populate(objectMap, "onInactiveMarkAs", s.OnInactiveMarkAs) populate(objectMap, "policy", s.Policy) + populate(objectMap, "state", s.State) objectMap["type"] = "SparkJob" populate(objectMap, "typeProperties", s.TypeProperties) populate(objectMap, "userProperties", s.UserProperties) @@ -48197,9 +48526,15 @@ func (s *SynapseSparkJobDefinitionActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &s.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &s.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -48483,7 +48818,7 @@ func (t TeamDeskLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "apiToken", t.APIToken) populate(objectMap, "authenticationType", t.AuthenticationType) - populateAny(objectMap, "encryptedCredential", t.EncryptedCredential) + populate(objectMap, "encryptedCredential", t.EncryptedCredential) populate(objectMap, "password", t.Password) populateAny(objectMap, "url", t.URL) populateAny(objectMap, "userName", t.UserName) @@ -48592,7 +48927,7 @@ func (t TeradataLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "authenticationType", t.AuthenticationType) populateAny(objectMap, "connectionString", t.ConnectionString) - populateAny(objectMap, "encryptedCredential", t.EncryptedCredential) + populate(objectMap, "encryptedCredential", t.EncryptedCredential) populate(objectMap, "password", t.Password) populateAny(objectMap, "server", t.Server) populateAny(objectMap, "username", t.Username) @@ -49659,6 +49994,8 @@ func (u UntilActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", u.DependsOn) populate(objectMap, "description", u.Description) populate(objectMap, "name", u.Name) + populate(objectMap, "onInactiveMarkAs", u.OnInactiveMarkAs) + populate(objectMap, "state", u.State) objectMap["type"] = "Until" populate(objectMap, "typeProperties", u.TypeProperties) populate(objectMap, "userProperties", u.UserProperties) @@ -49688,6 +50025,12 @@ func (u *UntilActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &u.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &u.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &u.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &u.Type) delete(rawMsg, key) @@ -49888,6 +50231,8 @@ func (v ValidationActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", v.DependsOn) populate(objectMap, "description", v.Description) populate(objectMap, "name", v.Name) + populate(objectMap, "onInactiveMarkAs", v.OnInactiveMarkAs) + populate(objectMap, "state", v.State) objectMap["type"] = "Validation" populate(objectMap, "typeProperties", v.TypeProperties) populate(objectMap, "userProperties", v.UserProperties) @@ -49917,6 +50262,12 @@ func (v *ValidationActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &v.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &v.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &v.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &v.Type) delete(rawMsg, key) @@ -50119,7 +50470,7 @@ func (v *VerticaLinkedService) UnmarshalJSON(data []byte) error { func (v VerticaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionString", v.ConnectionString) - populateAny(objectMap, "encryptedCredential", v.EncryptedCredential) + populate(objectMap, "encryptedCredential", v.EncryptedCredential) populate(objectMap, "pwd", v.Pwd) return json.Marshal(objectMap) } @@ -50300,6 +50651,8 @@ func (w WaitActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", w.DependsOn) populate(objectMap, "description", w.Description) populate(objectMap, "name", w.Name) + populate(objectMap, "onInactiveMarkAs", w.OnInactiveMarkAs) + populate(objectMap, "state", w.State) objectMap["type"] = "Wait" populate(objectMap, "typeProperties", w.TypeProperties) populate(objectMap, "userProperties", w.UserProperties) @@ -50329,6 +50682,12 @@ func (w *WaitActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &w.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &w.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &w.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &w.Type) delete(rawMsg, key) @@ -50390,7 +50749,9 @@ func (w WebActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "description", w.Description) populate(objectMap, "linkedServiceName", w.LinkedServiceName) populate(objectMap, "name", w.Name) + populate(objectMap, "onInactiveMarkAs", w.OnInactiveMarkAs) populate(objectMap, "policy", w.Policy) + populate(objectMap, "state", w.State) objectMap["type"] = "WebActivity" populate(objectMap, "typeProperties", w.TypeProperties) populate(objectMap, "userProperties", w.UserProperties) @@ -50423,9 +50784,15 @@ func (w *WebActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &w.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &w.OnInactiveMarkAs) + delete(rawMsg, key) case "policy": err = unpopulate(val, "Policy", &w.Policy) delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &w.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &w.Type) delete(rawMsg, key) @@ -50678,6 +51045,8 @@ func (w WebHookActivity) MarshalJSON() ([]byte, error) { populate(objectMap, "dependsOn", w.DependsOn) populate(objectMap, "description", w.Description) populate(objectMap, "name", w.Name) + populate(objectMap, "onInactiveMarkAs", w.OnInactiveMarkAs) + populate(objectMap, "state", w.State) objectMap["type"] = "WebHook" populate(objectMap, "typeProperties", w.TypeProperties) populate(objectMap, "userProperties", w.UserProperties) @@ -50707,6 +51076,12 @@ func (w *WebHookActivity) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &w.Name) delete(rawMsg, key) + case "onInactiveMarkAs": + err = unpopulate(val, "OnInactiveMarkAs", &w.OnInactiveMarkAs) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &w.State) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &w.Type) delete(rawMsg, key) @@ -51400,7 +51775,7 @@ func (x XeroLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populateAny(objectMap, "connectionProperties", x.ConnectionProperties) populate(objectMap, "consumerKey", x.ConsumerKey) - populateAny(objectMap, "encryptedCredential", x.EncryptedCredential) + populate(objectMap, "encryptedCredential", x.EncryptedCredential) populateAny(objectMap, "host", x.Host) populate(objectMap, "privateKey", x.PrivateKey) populateAny(objectMap, "useEncryptedEndpoints", x.UseEncryptedEndpoints) @@ -51661,7 +52036,7 @@ func (z ZendeskLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "apiToken", z.APIToken) populate(objectMap, "authenticationType", z.AuthenticationType) - populateAny(objectMap, "encryptedCredential", z.EncryptedCredential) + populate(objectMap, "encryptedCredential", z.EncryptedCredential) populate(objectMap, "password", z.Password) populateAny(objectMap, "url", z.URL) populateAny(objectMap, "userName", z.UserName) @@ -51816,7 +52191,7 @@ func (z ZohoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "accessToken", z.AccessToken) populateAny(objectMap, "connectionProperties", z.ConnectionProperties) - populateAny(objectMap, "encryptedCredential", z.EncryptedCredential) + populate(objectMap, "encryptedCredential", z.EncryptedCredential) populateAny(objectMap, "endpoint", z.Endpoint) populateAny(objectMap, "useEncryptedEndpoints", z.UseEncryptedEndpoints) populateAny(objectMap, "useHostVerification", z.UseHostVerification) diff --git a/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go deleted file mode 100644 index fe5b40456363..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go +++ /dev/null @@ -1,1044 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json -func ExampleOperationsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", 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.OperationListResponse = armdatafactory.OperationListResponse{ - // Value: []*armdatafactory.Operation{ - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/providers/Microsoft.Insights/metricDefinitions/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Gets the available metrics for datafactories"), - // Operation: to.Ptr("Read datafactories metric definitions"), - // Provider: to.Ptr("Microsoft.DataFactory"), - // Resource: to.Ptr("datafactories"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armdatafactory.OperationProperties{ - // ServiceSpecification: &armdatafactory.OperationServiceSpecification{ - // MetricSpecifications: []*armdatafactory.OperationMetricSpecification{ - // { - // Name: to.Ptr("FailedRuns"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armdatafactory.OperationMetricAvailability{ - // { - // BlobDuration: to.Ptr("P1D"), - // TimeGrain: to.Ptr("PT1H"), - // }}, - // Dimensions: []*armdatafactory.OperationMetricDimension{ - // { - // Name: to.Ptr("pipelineName"), - // DisplayName: to.Ptr("Pipeline"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("activityName"), - // DisplayName: to.Ptr("Activity"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("windowEnd"), - // DisplayName: to.Ptr("Window End"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("windowStart"), - // DisplayName: to.Ptr("Window Start"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayName: to.Ptr("Failed Runs"), - // EnableRegionalMdmAccount: to.Ptr("false"), - // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), - // SourceMdmNamespace: to.Ptr("ADFMetricsV1"), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("SuccessfulRuns"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armdatafactory.OperationMetricAvailability{ - // { - // BlobDuration: to.Ptr("P1D"), - // TimeGrain: to.Ptr("PT1H"), - // }}, - // Dimensions: []*armdatafactory.OperationMetricDimension{ - // { - // Name: to.Ptr("pipelineName"), - // DisplayName: to.Ptr("Pipeline"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("activityName"), - // DisplayName: to.Ptr("Activity"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("windowEnd"), - // DisplayName: to.Ptr("Window End"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("windowStart"), - // DisplayName: to.Ptr("Window Start"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayName: to.Ptr("Successful Runs"), - // EnableRegionalMdmAccount: to.Ptr("false"), - // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), - // SourceMdmNamespace: to.Ptr("ADFMetricsV1"), - // Unit: to.Ptr("Count"), - // }}, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/providers/Microsoft.Insights/diagnosticSettings/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Gets the diagnostic setting for the resource"), - // Operation: to.Ptr("Read diagnostic setting"), - // Provider: to.Ptr("Microsoft.DataFactory"), - // Resource: to.Ptr("datafactories"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/providers/Microsoft.Insights/diagnosticSettings/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), - // Operation: to.Ptr("Write diagnostic setting"), - // Provider: to.Ptr("Microsoft.DataFactory"), - // Resource: to.Ptr("datafactories"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/providers/Microsoft.Insights/logDefinitions/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Gets the available logs for factories"), - // Operation: to.Ptr("Read factories log definitions"), - // Provider: to.Ptr("Microsoft.DataFactory"), - // Resource: to.Ptr("The log definition of factories"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armdatafactory.OperationProperties{ - // ServiceSpecification: &armdatafactory.OperationServiceSpecification{ - // LogSpecifications: []*armdatafactory.OperationLogSpecification{ - // { - // Name: to.Ptr("ActivityRuns"), - // BlobDuration: to.Ptr("PT1H"), - // DisplayName: to.Ptr("Pipeline activity runs log"), - // }, - // { - // Name: to.Ptr("PipelineRuns"), - // BlobDuration: to.Ptr("PT1H"), - // DisplayName: to.Ptr("Pipeline runs log"), - // }, - // { - // Name: to.Ptr("TriggerRuns"), - // BlobDuration: to.Ptr("PT1H"), - // DisplayName: to.Ptr("Trigger runs log"), - // }}, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/providers/Microsoft.Insights/diagnosticSettings/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Gets the diagnostic setting for the resource"), - // Operation: to.Ptr("Read diagnostic setting"), - // Provider: to.Ptr("Microsoft.DataFactory"), - // Resource: to.Ptr("factories"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/providers/Microsoft.Insights/diagnosticSettings/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), - // Operation: to.Ptr("Write diagnostic setting"), - // Provider: to.Ptr("Microsoft.DataFactory"), - // Resource: to.Ptr("factories"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/providers/Microsoft.Insights/metricDefinitions/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Gets the available metrics for factories"), - // Operation: to.Ptr("Read metric definitions"), - // Provider: to.Ptr("Microsoft.DataFactory"), - // Resource: to.Ptr("factories"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armdatafactory.OperationProperties{ - // ServiceSpecification: &armdatafactory.OperationServiceSpecification{ - // MetricSpecifications: []*armdatafactory.OperationMetricSpecification{ - // { - // Name: to.Ptr("PipelineFailedRuns"), - // AggregationType: to.Ptr("Total"), - // Dimensions: []*armdatafactory.OperationMetricDimension{ - // { - // Name: to.Ptr("FailureType"), - // DisplayName: to.Ptr("Failure Type"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("Name"), - // DisplayName: to.Ptr("Pipeline"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayName: to.Ptr("Failed pipeline runs metrics"), - // EnableRegionalMdmAccount: to.Ptr("false"), - // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), - // SourceMdmNamespace: to.Ptr("ADFMetrics"), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("PipelineSucceededRuns"), - // AggregationType: to.Ptr("Total"), - // Dimensions: []*armdatafactory.OperationMetricDimension{ - // { - // Name: to.Ptr("FailureType"), - // DisplayName: to.Ptr("Failure Type"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("Name"), - // DisplayName: to.Ptr("Pipeline"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayName: to.Ptr("Succeeded pipeline runs metrics"), - // EnableRegionalMdmAccount: to.Ptr("false"), - // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), - // SourceMdmNamespace: to.Ptr("ADFMetrics"), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("ActivityFailedRuns"), - // AggregationType: to.Ptr("Total"), - // Dimensions: []*armdatafactory.OperationMetricDimension{ - // { - // Name: to.Ptr("ActivityType"), - // DisplayName: to.Ptr("Activity Type"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("PipelineName"), - // DisplayName: to.Ptr("Pipeline"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("FailureType"), - // DisplayName: to.Ptr("Failure Type"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("Name"), - // DisplayName: to.Ptr("Activity"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayName: to.Ptr("Failed activity runs metrics"), - // EnableRegionalMdmAccount: to.Ptr("false"), - // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), - // SourceMdmNamespace: to.Ptr("ADFMetrics"), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("ActivitySucceededRuns"), - // AggregationType: to.Ptr("Total"), - // Dimensions: []*armdatafactory.OperationMetricDimension{ - // { - // Name: to.Ptr("ActivityType"), - // DisplayName: to.Ptr("Activity Type"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("PipelineName"), - // DisplayName: to.Ptr("Pipeline"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("FailureType"), - // DisplayName: to.Ptr("Failure Type"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("Name"), - // DisplayName: to.Ptr("Activity"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayName: to.Ptr("Succeeded activity runs metrics"), - // EnableRegionalMdmAccount: to.Ptr("false"), - // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), - // SourceMdmNamespace: to.Ptr("ADFMetrics"), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("TriggerFailedRuns"), - // AggregationType: to.Ptr("Total"), - // Dimensions: []*armdatafactory.OperationMetricDimension{ - // { - // Name: to.Ptr("Name"), - // DisplayName: to.Ptr("Trigger"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("FailureType"), - // DisplayName: to.Ptr("Failure Type"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayName: to.Ptr("Failed trigger runs metrics"), - // EnableRegionalMdmAccount: to.Ptr("false"), - // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), - // SourceMdmNamespace: to.Ptr("ADFMetrics"), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("TriggerSucceededRuns"), - // AggregationType: to.Ptr("Total"), - // Dimensions: []*armdatafactory.OperationMetricDimension{ - // { - // Name: to.Ptr("Name"), - // DisplayName: to.Ptr("Trigger"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("FailureType"), - // DisplayName: to.Ptr("Failure Type"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayName: to.Ptr("Succeeded trigger runs metrics"), - // EnableRegionalMdmAccount: to.Ptr("false"), - // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), - // SourceMdmNamespace: to.Ptr("ADFMetrics"), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("IntegrationRuntimeCpuPercentage"), - // AggregationType: to.Ptr("Average"), - // Dimensions: []*armdatafactory.OperationMetricDimension{ - // { - // Name: to.Ptr("IntegrationRuntimeName"), - // DisplayName: to.Ptr("Integration Runtime"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("NodeName"), - // DisplayName: to.Ptr("Integration Runtime Node"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayName: to.Ptr("Integration runtime CPU utilization"), - // EnableRegionalMdmAccount: to.Ptr("false"), - // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), - // SourceMdmNamespace: to.Ptr("ADFMetrics"), - // Unit: to.Ptr("Percent"), - // }, - // { - // Name: to.Ptr("IntegrationRuntimeAvailableMemory"), - // AggregationType: to.Ptr("Average"), - // Dimensions: []*armdatafactory.OperationMetricDimension{ - // { - // Name: to.Ptr("IntegrationRuntimeName"), - // DisplayName: to.Ptr("Integration Runtime"), - // ToBeExportedForShoebox: to.Ptr(true), - // }, - // { - // Name: to.Ptr("NodeName"), - // DisplayName: to.Ptr("Integration Runtime Node"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayName: to.Ptr("Integration runtime available memory"), - // EnableRegionalMdmAccount: to.Ptr("false"), - // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), - // SourceMdmNamespace: to.Ptr("ADFMetrics"), - // Unit: to.Ptr("Bytes"), - // }}, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/register/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Registers the subscription for the Data Factory Resource Provider."), - // Operation: to.Ptr("Register Data Factory Resource Provider"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory Resource Provider"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/unregister/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Unregisters the subscription for the Data Factory Resource Provider."), - // Operation: to.Ptr("Unregister Data Factory Resource Provider"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory Resource Provider"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads the Data Factory."), - // Operation: to.Ptr("Read Data Factory"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates or Updates the Data Factory."), - // Operation: to.Ptr("Create or Update Data Factory"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes the Data Factory."), - // Operation: to.Ptr("Delete Data Factory"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/linkedServices/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads any Linked Service."), - // Operation: to.Ptr("Read Linked Service"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Linked Service"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/linkedServices/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes any Linked Service."), - // Operation: to.Ptr("Delete Linked Service"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Linked Service"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/linkedServices/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates or Updates any Linked Service."), - // Operation: to.Ptr("Create or Update Linked Service"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Linked Service"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads any Pipeline."), - // Operation: to.Ptr("Read Pipeline"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Pipeline"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes any Pipeline."), - // Operation: to.Ptr("Delete Pipeline"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Pipeline"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/pause/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Pauses any Pipeline."), - // Operation: to.Ptr("Pause Pipeline"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Pipeline"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/resume/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Resumes any Pipeline."), - // Operation: to.Ptr("Resume Pipeline"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Pipeline"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/update/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Updates any Pipeline."), - // Operation: to.Ptr("Update Pipeline"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Pipeline"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates or Updates any Pipeline."), - // Operation: to.Ptr("Create or Update Pipeline"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Pipeline"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads any Dataset."), - // Operation: to.Ptr("Read Dataset"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Dataset"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes any Dataset."), - // Operation: to.Ptr("Delete Dataset"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Dataset"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates or Updates any Dataset."), - // Operation: to.Ptr("Create or Update Dataset"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Dataset"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/tables/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads any Dataset."), - // Operation: to.Ptr("Read Dataset"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Dataset"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/tables/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes any Dataset."), - // Operation: to.Ptr("Delete Dataset"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Dataset"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/tables/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates or Updates any Dataset."), - // Operation: to.Ptr("Create or Update Dataset"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Dataset"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/slices/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Gets the Data Slices in the given period."), - // Operation: to.Ptr("Read Data Slices"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Slice"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/slices/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Update the Status of the Data Slice."), - // Operation: to.Ptr("Update Data Slice Status"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Slice"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/sliceruns/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads the Data Slice Run for the given dataset with the given start time."), - // Operation: to.Ptr("Read Data Slice Run"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Slice"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/runs/loginfo/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads a SAS URI to a blob container containing the logs."), - // Operation: to.Ptr("Read Run Log Info"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Run Log"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/activitywindows/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads Activity Windows in the Data Factory with specified parameters."), - // Operation: to.Ptr("Read Activity Windows in any Data Factory"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Activity Windows"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/activitywindows/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads Activity Windows for the Pipeline with specified parameters."), - // Operation: to.Ptr("Read Activity Windows for any Pipeline"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Activity Windows"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/activities/activitywindows/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads Activity Windows for the Pipeline Activity with specified parameters."), - // Operation: to.Ptr("Read Activity Windows for any Pipeline Activity"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Activity Windows"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/activitywindows/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads Activity Windows for the Dataset with specified parameters."), - // Operation: to.Ptr("Read Activity Windows for any Dataset"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Activity Windows"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads any Gateway."), - // Operation: to.Ptr("Read Gateway"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Gateway"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates or Updates any Gateway."), - // Operation: to.Ptr("Create or Update Gateway"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Gateway"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes any Gateway."), - // Operation: to.Ptr("Delete Gateway"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Gateway"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/connectioninfo/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads the Connection Info for any Gateway."), - // Operation: to.Ptr("Read Gateway Connection Info"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Gateway"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/listauthkeys/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Lists the Authentication Keys for any Gateway."), - // Operation: to.Ptr("List Gateway Authentication Keys"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Gateway"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/regenerateauthkey/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Regenerates the Authentication Keys for any Gateway."), - // Operation: to.Ptr("Regenerate Gateway Authentication Keys"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Gateway"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads Data Factory."), - // Operation: to.Ptr("Read Data Factory"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Create or Update Data Factory"), - // Operation: to.Ptr("Create or Update any Data Factory."), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes Data Factory."), - // Operation: to.Ptr("Delete Data Factory"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/linkedServices/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads Linked Service."), - // Operation: to.Ptr("Read Linked Service"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Linked Service"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/linkedServices/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes Linked Service."), - // Operation: to.Ptr("Delete Linked Service"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Linked Service"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/linkedServices/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Create or Update Linked Service"), - // Operation: to.Ptr("Create or Update any Linked Service."), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Linked Service"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/pipelines/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads Pipeline."), - // Operation: to.Ptr("Read Pipeline"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Pipeline"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/pipelines/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes Pipeline."), - // Operation: to.Ptr("Delete Pipeline"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Pipeline"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/pipelines/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Create or Update Pipeline"), - // Operation: to.Ptr("Create or Update any Pipeline."), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Pipeline"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/pipelines/createrun/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates a run for the Pipeline."), - // Operation: to.Ptr("Create Pipeline Run"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Pipeline"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/cancelpipelinerun/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Cancels the pipeline run specified by the run ID."), - // Operation: to.Ptr("Cancel any Pipeline Run"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/pipelineruns/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads the Pipeline Runs."), - // Operation: to.Ptr("Read Pipeline Runs"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/pipelineruns/activityruns/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads the activity runs for the specified pipeline run ID."), - // Operation: to.Ptr("Read Activity Runs"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/datasets/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads any Dataset."), - // Operation: to.Ptr("Read Dataset"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Dataset"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/datasets/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes any Dataset."), - // Operation: to.Ptr("Delete Dataset"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Dataset"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/datasets/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates or Updates any Dataset."), - // Operation: to.Ptr("Create or Update Dataset"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Dataset"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads any Integration Runtime."), - // Operation: to.Ptr("Read Integration Runtime"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates or Updates any Integration Runtime."), - // Operation: to.Ptr("Create or Update Integration Runtime"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes any Integration Runtime."), - // Operation: to.Ptr("Delete Integration Runtime"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/start/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Starts any Integration Runtime."), - // Operation: to.Ptr("Start Integration Runtime"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/stop/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Stops any Integration Runtime."), - // Operation: to.Ptr("Stop Integration Runtime"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/getconnectioninfo/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads Integration Runtime Connection Info."), - // Operation: to.Ptr("Read Integration Runtime Connection Info"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/getstatus/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads Integration Runtime Status."), - // Operation: to.Ptr("Read Integration Runtime Status"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/listauthkeys/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Lists the Authentication Keys for any Integration Runtime."), - // Operation: to.Ptr("List Integration Runtime Authentication Keys"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/monitoringdata/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Gets the Monitoring Data for any Integration Runtime."), - // Operation: to.Ptr("Get Integration Runtime Monitoring Data"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/nodes/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes the Node for the specified Integration Runtime."), - // Operation: to.Ptr("Delete Integration Runtime Node"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/nodes/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Updates a self-hosted Integration Runtime Node."), - // Operation: to.Ptr("Update Integration Runtime Node"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/nodes/ipAddress/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Returns the IP Address for the specified node of the Integration Runtime."), - // Operation: to.Ptr("Read Integration Runtime Node IP Address"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/synccredentials/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Syncs the Credentials for the specified Integration Runtime."), - // Operation: to.Ptr("Sync Credentials for Integration Runtime"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/upgrade/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Upgrades the specified Integration Runtime."), - // Operation: to.Ptr("Upgrade Integration Runtime"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/regenerateauthkey/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Regenerates the Authentication Keys for the specified Integration Runtime."), - // Operation: to.Ptr("Regenerate Integration Runtime Authentication Keys"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Integration Runtime"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads any Trigger."), - // Operation: to.Ptr("Read Trigger"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Trigger"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/write"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Creates or Updates any Trigger."), - // Operation: to.Ptr("Create or Update Trigger"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Trigger"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/delete"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Deletes any Trigger."), - // Operation: to.Ptr("Delete Trigger"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Trigger"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/start/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Starts any Trigger."), - // Operation: to.Ptr("Start Trigger"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Trigger"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/stop/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Stops any Trigger."), - // Operation: to.Ptr("Stop Trigger"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Trigger"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/triggerruns/read"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Reads the Trigger Runs."), - // Operation: to.Ptr("Read Trigger Runs"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DataFactory/locations/configureFactoryRepo/action"), - // Display: &armdatafactory.OperationDisplay{ - // Description: to.Ptr("Configures the repository for the factory."), - // Operation: to.Ptr("Configure Factory Repository"), - // Provider: to.Ptr("Microsoft Data Factory"), - // Resource: to.Ptr("Data Factory"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go deleted file mode 100644 index 33db4884da8c..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go +++ /dev/null @@ -1,158 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -import ( - "context" - "log" - - "time" - - "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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json -func ExamplePipelineRunsClient_QueryByFactory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPipelineRunsClient().QueryByFactory(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.RunFilterParameters{ - Filters: []*armdatafactory.RunQueryFilter{ - { - Operand: to.Ptr(armdatafactory.RunQueryFilterOperandPipelineName), - Operator: to.Ptr(armdatafactory.RunQueryFilterOperatorEquals), - Values: []*string{ - to.Ptr("examplePipeline")}, - }}, - LastUpdatedAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:36:44.3345758Z"); return t }()), - LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.3686473Z"); return t }()), - }, 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.PipelineRunsQueryResponse = armdatafactory.PipelineRunsQueryResponse{ - // Value: []*armdatafactory.PipelineRun{ - // { - // AdditionalProperties: map[string]any{ - // "annotations": []any{ - // }, - // "runDimension": map[string]any{ - // "JobId": "79c1cc52-265f-41a5-9553-be65e736fbd3", - // }, - // }, - // DurationInMs: to.Ptr[int32](28105), - // InvokedBy: &armdatafactory.PipelineRunInvokedBy{ - // Name: to.Ptr("Manual"), - // ID: to.Ptr("80a01654a9d34ad18b3fcac5d5d76b67"), - // }, - // LastUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:12.7314495Z"); return t}()), - // Message: to.Ptr(""), - // Parameters: map[string]*string{ - // "OutputBlobNameList": to.Ptr("[\"exampleoutput.csv\"]"), - // }, - // PipelineName: to.Ptr("examplePipeline"), - // RunEnd: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:12.7314495Z"); return t}()), - // RunID: to.Ptr("2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"), - // RunStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:37:44.6257014Z"); return t}()), - // Status: to.Ptr("Succeeded"), - // }, - // { - // AdditionalProperties: map[string]any{ - // "annotations": []any{ - // }, - // "runDimension": map[string]any{ - // "JobId": "84a3c493-0628-4b44-852f-ef5b3a11bdab", - // }, - // }, - // InvokedBy: &armdatafactory.PipelineRunInvokedBy{ - // Name: to.Ptr("Manual"), - // ID: to.Ptr("7c5fd7ef7e8a464b98b931cf15fcac66"), - // }, - // LastUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:51.216097Z"); return t}()), - // Message: to.Ptr(""), - // Parameters: map[string]*string{ - // "OutputBlobNameList": to.Ptr("[\"exampleoutput.csv\"]"), - // }, - // PipelineName: to.Ptr("examplePipeline"), - // RunID: to.Ptr("16ac5348-ff82-4f95-a80d-638c1d47b721"), - // RunStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:49.2745128Z"); return t}()), - // Status: to.Ptr("Cancelled"), - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json -func ExamplePipelineRunsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPipelineRunsClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", 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.PipelineRun = armdatafactory.PipelineRun{ - // AdditionalProperties: map[string]any{ - // "annotations": []any{ - // }, - // }, - // DurationInMs: to.Ptr[int32](28105), - // InvokedBy: &armdatafactory.PipelineRunInvokedBy{ - // Name: to.Ptr("Manual"), - // ID: to.Ptr("80a01654a9d34ad18b3fcac5d5d76b67"), - // }, - // LastUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:12.7314495Z"); return t}()), - // Message: to.Ptr(""), - // Parameters: map[string]*string{ - // "OutputBlobNameList": to.Ptr("[\"exampleoutput.csv\"]"), - // }, - // PipelineName: to.Ptr("examplePipeline"), - // RunEnd: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:12.7314495Z"); return t}()), - // RunID: to.Ptr("2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"), - // RunStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:37:44.6257014Z"); return t}()), - // Status: to.Ptr("Succeeded"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json -func ExamplePipelineRunsClient_Cancel() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewPipelineRunsClient().Cancel(ctx, "exampleResourceGroup", "exampleFactoryName", "16ac5348-ff82-4f95-a80d-638c1d47b721", &armdatafactory.PipelineRunsClientCancelOptions{IsRecursive: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go deleted file mode 100644 index 3addab4fd615..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go +++ /dev/null @@ -1,558 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json -func ExamplePipelinesClient_NewListByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewPipelinesClient().NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", 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.PipelineListResponse = armdatafactory.PipelineListResponse{ - // Value: []*armdatafactory.PipelineResource{ - // { - // Name: to.Ptr("examplePipeline"), - // Type: to.Ptr("Microsoft.DataFactory/factories/pipelines"), - // Etag: to.Ptr("0a006cd4-0000-0000-0000-5b245bd60000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/pipelines/examplePipeline"), - // Properties: &armdatafactory.Pipeline{ - // Description: to.Ptr("Example description"), - // Activities: []armdatafactory.ActivityClassification{ - // &armdatafactory.ForEachActivity{ - // Name: to.Ptr("ExampleForeachActivity"), - // Type: to.Ptr("ForEach"), - // TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ - // Activities: []armdatafactory.ActivityClassification{ - // &armdatafactory.CopyActivity{ - // Name: to.Ptr("ExampleCopyActivity"), - // Type: to.Ptr("Copy"), - // Inputs: []*armdatafactory.DatasetReference{ - // { - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // Parameters: map[string]any{ - // "MyFileName": "examplecontainer.csv", - // "MyFolderPath": "examplecontainer", - // }, - // ReferenceName: to.Ptr("exampleDataset"), - // }}, - // Outputs: []*armdatafactory.DatasetReference{ - // { - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // Parameters: map[string]any{ - // "MyFileName": map[string]any{ - // "type": "Expression", - // "value": "@item()", - // }, - // "MyFolderPath": "examplecontainer", - // }, - // ReferenceName: to.Ptr("exampleDataset"), - // }}, - // TypeProperties: &armdatafactory.CopyActivityTypeProperties{ - // DataIntegrationUnits: float64(32), - // Sink: &armdatafactory.BlobSink{ - // Type: to.Ptr("BlobSink"), - // }, - // Source: &armdatafactory.BlobSource{ - // Type: to.Ptr("BlobSource"), - // }, - // }, - // }}, - // IsSequential: to.Ptr(true), - // Items: &armdatafactory.Expression{ - // Type: to.Ptr(armdatafactory.ExpressionTypeExpression), - // Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), - // }, - // }, - // }}, - // Parameters: map[string]*armdatafactory.ParameterSpecification{ - // "OutputBlobNameList": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeArray), - // }, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json -func ExamplePipelinesClient_CreateOrUpdate_pipelinesCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPipelinesClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "examplePipeline", armdatafactory.PipelineResource{ - Properties: &armdatafactory.Pipeline{ - Activities: []armdatafactory.ActivityClassification{ - &armdatafactory.ForEachActivity{ - Name: to.Ptr("ExampleForeachActivity"), - Type: to.Ptr("ForEach"), - TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ - Activities: []armdatafactory.ActivityClassification{ - &armdatafactory.CopyActivity{ - Name: to.Ptr("ExampleCopyActivity"), - Type: to.Ptr("Copy"), - Inputs: []*armdatafactory.DatasetReference{ - { - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - Parameters: map[string]any{ - "MyFileName": "examplecontainer.csv", - "MyFolderPath": "examplecontainer", - }, - ReferenceName: to.Ptr("exampleDataset"), - }}, - Outputs: []*armdatafactory.DatasetReference{ - { - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - Parameters: map[string]any{ - "MyFileName": map[string]any{ - "type": "Expression", - "value": "@item()", - }, - "MyFolderPath": "examplecontainer", - }, - ReferenceName: to.Ptr("exampleDataset"), - }}, - TypeProperties: &armdatafactory.CopyActivityTypeProperties{ - DataIntegrationUnits: float64(32), - Sink: &armdatafactory.BlobSink{ - Type: to.Ptr("BlobSink"), - }, - Source: &armdatafactory.BlobSource{ - Type: to.Ptr("BlobSource"), - }, - }, - }}, - IsSequential: to.Ptr(true), - Items: &armdatafactory.Expression{ - Type: to.Ptr(armdatafactory.ExpressionTypeExpression), - Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), - }, - }, - }}, - Parameters: map[string]*armdatafactory.ParameterSpecification{ - "JobId": { - Type: to.Ptr(armdatafactory.ParameterTypeString), - }, - "OutputBlobNameList": { - Type: to.Ptr(armdatafactory.ParameterTypeArray), - }, - }, - Policy: &armdatafactory.PipelinePolicy{ - ElapsedTimeMetric: &armdatafactory.PipelineElapsedTimeMetricPolicy{ - Duration: "0.00:10:00", - }, - }, - RunDimensions: map[string]any{ - "JobId": map[string]any{ - "type": "Expression", - "value": "@pipeline().parameters.JobId", - }, - }, - Variables: map[string]*armdatafactory.VariableSpecification{ - "TestVariableArray": { - Type: to.Ptr(armdatafactory.VariableTypeArray), - }, - }, - }, - }, &armdatafactory.PipelinesClientCreateOrUpdateOptions{IfMatch: 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.PipelineResource = armdatafactory.PipelineResource{ - // Name: to.Ptr("examplePipeline"), - // Type: to.Ptr("Microsoft.DataFactory/factories/pipelines"), - // Etag: to.Ptr("0a0069d4-0000-0000-0000-5b245bd50000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/pipelines/examplePipeline"), - // Properties: &armdatafactory.Pipeline{ - // Activities: []armdatafactory.ActivityClassification{ - // &armdatafactory.ForEachActivity{ - // Name: to.Ptr("ExampleForeachActivity"), - // Type: to.Ptr("ForEach"), - // TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ - // Activities: []armdatafactory.ActivityClassification{ - // &armdatafactory.CopyActivity{ - // Name: to.Ptr("ExampleCopyActivity"), - // Type: to.Ptr("Copy"), - // Inputs: []*armdatafactory.DatasetReference{ - // { - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // Parameters: map[string]any{ - // "MyFileName": "examplecontainer.csv", - // "MyFolderPath": "examplecontainer", - // }, - // ReferenceName: to.Ptr("exampleDataset"), - // }}, - // Outputs: []*armdatafactory.DatasetReference{ - // { - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // Parameters: map[string]any{ - // "MyFileName": map[string]any{ - // "type": "Expression", - // "value": "@item()", - // }, - // "MyFolderPath": "examplecontainer", - // }, - // ReferenceName: to.Ptr("exampleDataset"), - // }}, - // TypeProperties: &armdatafactory.CopyActivityTypeProperties{ - // DataIntegrationUnits: float64(32), - // Sink: &armdatafactory.BlobSink{ - // Type: to.Ptr("BlobSink"), - // }, - // Source: &armdatafactory.BlobSource{ - // Type: to.Ptr("BlobSource"), - // }, - // }, - // }}, - // IsSequential: to.Ptr(true), - // Items: &armdatafactory.Expression{ - // Type: to.Ptr(armdatafactory.ExpressionTypeExpression), - // Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), - // }, - // }, - // }}, - // Parameters: map[string]*armdatafactory.ParameterSpecification{ - // "JobId": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeString), - // }, - // "OutputBlobNameList": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeArray), - // }, - // }, - // RunDimensions: map[string]any{ - // "JobId": map[string]any{ - // "type": "Expression", - // "value": "@pipeline().parameters.JobId", - // }, - // }, - // Variables: map[string]*armdatafactory.VariableSpecification{ - // "TestVariableArray": &armdatafactory.VariableSpecification{ - // Type: to.Ptr(armdatafactory.VariableTypeArray), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json -func ExamplePipelinesClient_CreateOrUpdate_pipelinesUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPipelinesClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "examplePipeline", armdatafactory.PipelineResource{ - Properties: &armdatafactory.Pipeline{ - Description: to.Ptr("Example description"), - Activities: []armdatafactory.ActivityClassification{ - &armdatafactory.ForEachActivity{ - Name: to.Ptr("ExampleForeachActivity"), - Type: to.Ptr("ForEach"), - TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ - Activities: []armdatafactory.ActivityClassification{ - &armdatafactory.CopyActivity{ - Name: to.Ptr("ExampleCopyActivity"), - Type: to.Ptr("Copy"), - Inputs: []*armdatafactory.DatasetReference{ - { - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - Parameters: map[string]any{ - "MyFileName": "examplecontainer.csv", - "MyFolderPath": "examplecontainer", - }, - ReferenceName: to.Ptr("exampleDataset"), - }}, - Outputs: []*armdatafactory.DatasetReference{ - { - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - Parameters: map[string]any{ - "MyFileName": map[string]any{ - "type": "Expression", - "value": "@item()", - }, - "MyFolderPath": "examplecontainer", - }, - ReferenceName: to.Ptr("exampleDataset"), - }}, - TypeProperties: &armdatafactory.CopyActivityTypeProperties{ - DataIntegrationUnits: float64(32), - Sink: &armdatafactory.BlobSink{ - Type: to.Ptr("BlobSink"), - }, - Source: &armdatafactory.BlobSource{ - Type: to.Ptr("BlobSource"), - }, - }, - }}, - IsSequential: to.Ptr(true), - Items: &armdatafactory.Expression{ - Type: to.Ptr(armdatafactory.ExpressionTypeExpression), - Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), - }, - }, - }}, - Parameters: map[string]*armdatafactory.ParameterSpecification{ - "OutputBlobNameList": { - Type: to.Ptr(armdatafactory.ParameterTypeArray), - }, - }, - Policy: &armdatafactory.PipelinePolicy{ - ElapsedTimeMetric: &armdatafactory.PipelineElapsedTimeMetricPolicy{ - Duration: "0.00:10:00", - }, - }, - }, - }, &armdatafactory.PipelinesClientCreateOrUpdateOptions{IfMatch: 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.PipelineResource = armdatafactory.PipelineResource{ - // Name: to.Ptr("examplePipeline"), - // Type: to.Ptr("Microsoft.DataFactory/factories/pipelines"), - // Etag: to.Ptr("0a006cd4-0000-0000-0000-5b245bd60000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/pipelines/examplePipeline"), - // Properties: &armdatafactory.Pipeline{ - // Description: to.Ptr("Example description"), - // Activities: []armdatafactory.ActivityClassification{ - // &armdatafactory.ForEachActivity{ - // Name: to.Ptr("ExampleForeachActivity"), - // Type: to.Ptr("ForEach"), - // TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ - // Activities: []armdatafactory.ActivityClassification{ - // &armdatafactory.CopyActivity{ - // Name: to.Ptr("ExampleCopyActivity"), - // Type: to.Ptr("Copy"), - // Inputs: []*armdatafactory.DatasetReference{ - // { - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // Parameters: map[string]any{ - // "MyFileName": "examplecontainer.csv", - // "MyFolderPath": "examplecontainer", - // }, - // ReferenceName: to.Ptr("exampleDataset"), - // }}, - // Outputs: []*armdatafactory.DatasetReference{ - // { - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // Parameters: map[string]any{ - // "MyFileName": map[string]any{ - // "type": "Expression", - // "value": "@item()", - // }, - // "MyFolderPath": "examplecontainer", - // }, - // ReferenceName: to.Ptr("exampleDataset"), - // }}, - // TypeProperties: &armdatafactory.CopyActivityTypeProperties{ - // DataIntegrationUnits: float64(32), - // Sink: &armdatafactory.BlobSink{ - // Type: to.Ptr("BlobSink"), - // }, - // Source: &armdatafactory.BlobSource{ - // Type: to.Ptr("BlobSource"), - // }, - // }, - // }}, - // IsSequential: to.Ptr(true), - // Items: &armdatafactory.Expression{ - // Type: to.Ptr(armdatafactory.ExpressionTypeExpression), - // Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), - // }, - // }, - // }}, - // Parameters: map[string]*armdatafactory.ParameterSpecification{ - // "OutputBlobNameList": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeArray), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json -func ExamplePipelinesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPipelinesClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "examplePipeline", &armdatafactory.PipelinesClientGetOptions{IfNoneMatch: 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.PipelineResource = armdatafactory.PipelineResource{ - // Name: to.Ptr("examplePipeline"), - // Type: to.Ptr("Microsoft.DataFactory/factories/pipelines"), - // Etag: to.Ptr("1500504f-0000-0200-0000-5cbe090f0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/pipelines/examplePipeline"), - // Properties: &armdatafactory.Pipeline{ - // Description: to.Ptr("Example description"), - // Activities: []armdatafactory.ActivityClassification{ - // &armdatafactory.ForEachActivity{ - // Name: to.Ptr("ExampleForeachActivity"), - // Type: to.Ptr("ForEach"), - // TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ - // Activities: []armdatafactory.ActivityClassification{ - // &armdatafactory.CopyActivity{ - // Name: to.Ptr("ExampleCopyActivity"), - // Type: to.Ptr("Copy"), - // Inputs: []*armdatafactory.DatasetReference{ - // { - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // Parameters: map[string]any{ - // "MyFileName": "examplecontainer.csv", - // "MyFolderPath": "examplecontainer", - // }, - // ReferenceName: to.Ptr("exampleDataset"), - // }}, - // Outputs: []*armdatafactory.DatasetReference{ - // { - // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - // Parameters: map[string]any{ - // "MyFileName": map[string]any{ - // "type": "Expression", - // "value": "@item()", - // }, - // "MyFolderPath": "examplecontainer", - // }, - // ReferenceName: to.Ptr("exampleDataset"), - // }}, - // TypeProperties: &armdatafactory.CopyActivityTypeProperties{ - // DataIntegrationUnits: float64(32), - // Sink: &armdatafactory.BlobSink{ - // Type: to.Ptr("BlobSink"), - // }, - // Source: &armdatafactory.BlobSource{ - // Type: to.Ptr("BlobSource"), - // }, - // }, - // }}, - // IsSequential: to.Ptr(true), - // Items: &armdatafactory.Expression{ - // Type: to.Ptr(armdatafactory.ExpressionTypeExpression), - // Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), - // }, - // }, - // }}, - // Parameters: map[string]*armdatafactory.ParameterSpecification{ - // "OutputBlobNameList": &armdatafactory.ParameterSpecification{ - // Type: to.Ptr(armdatafactory.ParameterTypeArray), - // }, - // }, - // Policy: &armdatafactory.PipelinePolicy{ - // ElapsedTimeMetric: &armdatafactory.PipelineElapsedTimeMetricPolicy{ - // Duration: "0.00:10:00", - // }, - // }, - // Variables: map[string]*armdatafactory.VariableSpecification{ - // "TestVariableArray": &armdatafactory.VariableSpecification{ - // Type: to.Ptr(armdatafactory.VariableTypeArray), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json -func ExamplePipelinesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewPipelinesClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "examplePipeline", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json -func ExamplePipelinesClient_CreateRun() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPipelinesClient().CreateRun(ctx, "exampleResourceGroup", "exampleFactoryName", "examplePipeline", &armdatafactory.PipelinesClientCreateRunOptions{ReferencePipelineRunID: nil, - IsRecovery: nil, - StartActivityName: nil, - StartFromFailure: nil, - Parameters: map[string]any{ - "OutputBlobNameList": []any{ - "exampleoutput.csv", - }, - }, - }) - 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.CreateRunResponse = armdatafactory.CreateRunResponse{ - // RunID: to.Ptr("2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"), - // } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go deleted file mode 100644 index 015e6c3eb725..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go +++ /dev/null @@ -1,119 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json -func ExamplePrivateEndpointConnectionClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPrivateEndpointConnectionClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "connection", armdatafactory.PrivateLinkConnectionApprovalRequestResource{ - Properties: &armdatafactory.PrivateLinkConnectionApprovalRequest{ - PrivateEndpoint: &armdatafactory.PrivateEndpoint{ - ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint"), - }, - PrivateLinkServiceConnectionState: &armdatafactory.PrivateLinkConnectionState{ - Description: to.Ptr("Approved by admin."), - ActionsRequired: to.Ptr(""), - Status: to.Ptr("Approved"), - }, - }, - }, &armdatafactory.PrivateEndpointConnectionClientCreateOrUpdateOptions{IfMatch: 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.PrivateEndpointConnectionResource = armdatafactory.PrivateEndpointConnectionResource{ - // Name: to.Ptr("exampleFactoryName"), - // Type: to.Ptr("Microsoft.DataFactory/factories/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), - // Properties: &armdatafactory.RemotePrivateEndpointConnection{ - // PrivateEndpoint: &armdatafactory.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armdatafactory.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json -func ExamplePrivateEndpointConnectionClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPrivateEndpointConnectionClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "connection", &armdatafactory.PrivateEndpointConnectionClientGetOptions{IfNoneMatch: 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.PrivateEndpointConnectionResource = armdatafactory.PrivateEndpointConnectionResource{ - // Name: to.Ptr("exampleFactoryName"), - // Type: to.Ptr("Microsoft.DataFactory/factories/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), - // Properties: &armdatafactory.RemotePrivateEndpointConnection{ - // PrivateEndpoint: &armdatafactory.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armdatafactory.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json -func ExamplePrivateEndpointConnectionClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewPrivateEndpointConnectionClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "connection", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go deleted file mode 100644 index ae7e9262eeaa..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go +++ /dev/null @@ -1,62 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json -func ExamplePrivateEndPointConnectionsClient_NewListByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewPrivateEndPointConnectionsClient().NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", 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.PrivateEndpointConnectionListResponse = armdatafactory.PrivateEndpointConnectionListResponse{ - // Value: []*armdatafactory.PrivateEndpointConnectionResource{ - // { - // Name: to.Ptr("factories"), - // Type: to.Ptr("Microsoft.DataFactory/factories/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint"), - // Properties: &armdatafactory.RemotePrivateEndpointConnection{ - // PrivateEndpoint: &armdatafactory.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armdatafactory.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr("exampleActionsRequired"), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go deleted file mode 100644 index e0cacfeaad35..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go +++ /dev/null @@ -1,53 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json -func ExamplePrivateLinkResourcesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPrivateLinkResourcesClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", 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.PrivateLinkResourcesWrapper = armdatafactory.PrivateLinkResourcesWrapper{ - // Value: []*armdatafactory.PrivateLinkResource{ - // { - // Name: to.Ptr("exampleFactoryName"), - // Type: to.Ptr("Microsoft.DataFactory/factories/privateLinkResources"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), - // Properties: &armdatafactory.PrivateLinkResourceProperties{ - // GroupID: to.Ptr("dataFactory"), - // RequiredMembers: []*string{ - // to.Ptr("dataFactory")}, - // RequiredZoneNames: []*string{ - // to.Ptr("privatelink.datafactory.azure.net")}, - // }, - // }}, - // } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go deleted file mode 100644 index b563619751d3..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go +++ /dev/null @@ -1,103 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -import ( - "context" - "log" - - "time" - - "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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json -func ExampleTriggerRunsClient_Rerun() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewTriggerRunsClient().Rerun(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json -func ExampleTriggerRunsClient_Cancel() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewTriggerRunsClient().Cancel(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json -func ExampleTriggerRunsClient_QueryByFactory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewTriggerRunsClient().QueryByFactory(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.RunFilterParameters{ - Filters: []*armdatafactory.RunQueryFilter{ - { - Operand: to.Ptr(armdatafactory.RunQueryFilterOperandTriggerName), - Operator: to.Ptr(armdatafactory.RunQueryFilterOperatorEquals), - Values: []*string{ - to.Ptr("exampleTrigger")}, - }}, - LastUpdatedAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:36:44.3345758Z"); return t }()), - LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.3686473Z"); return t }()), - }, 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.TriggerRunsQueryResponse = armdatafactory.TriggerRunsQueryResponse{ - // Value: []*armdatafactory.TriggerRun{ - // { - // Message: to.Ptr(""), - // Properties: map[string]*string{ - // "ScheduleTime": to.Ptr("6/16/2018 12:43:14 AM"), - // "TriggerTime": to.Ptr("6/16/2018 12:43:15 AM"), - // }, - // Status: to.Ptr(armdatafactory.TriggerRunStatusSucceeded), - // TriggerName: to.Ptr("exampleTrigger"), - // TriggerRunID: to.Ptr("08586724970898148904457116912CU27"), - // TriggerRunTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:43:15.660141Z"); return t}()), - // TriggerType: to.Ptr("ScheduleTrigger"), - // TriggeredPipelines: map[string]*string{ - // "examplePipeline": to.Ptr("9f3ce8b3-37d7-43eb-96ac-a656c0476283"), - // }, - // }}, - // } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go deleted file mode 100644 index d4bcade60d49..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go +++ /dev/null @@ -1,465 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdatafactory_test - -import ( - "context" - "log" - - "time" - - "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/datafactory/armdatafactory/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json -func ExampleTriggersClient_NewListByFactoryPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewTriggersClient().NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", 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.TriggerListResponse = armdatafactory.TriggerListResponse{ - // Value: []*armdatafactory.TriggerResource{ - // { - // Name: to.Ptr("exampleTrigger"), - // Type: to.Ptr("Microsoft.DataFactory/factories/triggers"), - // Etag: to.Ptr("0a008ed4-0000-0000-0000-5b245c740000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger"), - // Properties: &armdatafactory.ScheduleTrigger{ - // Type: to.Ptr("ScheduleTrigger"), - // Description: to.Ptr("Example description"), - // RuntimeState: to.Ptr(armdatafactory.TriggerRuntimeStateStarted), - // Pipelines: []*armdatafactory.TriggerPipelineReference{ - // { - // Parameters: map[string]any{ - // "OutputBlobNameList": []any{ - // "exampleoutput.csv", - // }, - // }, - // PipelineReference: &armdatafactory.PipelineReference{ - // Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), - // ReferenceName: to.Ptr("examplePipeline"), - // }, - // }}, - // TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ - // Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:14.905167Z"); return t}()), - // Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), - // Interval: to.Ptr[int32](4), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:14.905167Z"); return t}()), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json -func ExampleTriggersClient_QueryByFactory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewTriggersClient().QueryByFactory(ctx, "exampleResourceGroup", "exampleFactoryName", armdatafactory.TriggerFilterParameters{ - ParentTriggerName: to.Ptr("exampleTrigger"), - }, 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.TriggerQueryResponse = armdatafactory.TriggerQueryResponse{ - // Value: []*armdatafactory.TriggerResource{ - // { - // Name: to.Ptr("exampleRerunTrigger"), - // Type: to.Ptr("Microsoft.DataFactory/factories/triggers"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleRerunTrigger"), - // Properties: &armdatafactory.RerunTumblingWindowTrigger{ - // Type: to.Ptr("RerunTumblingWindowTrigger"), - // Description: to.Ptr("Example description"), - // TypeProperties: &armdatafactory.RerunTumblingWindowTriggerTypeProperties{ - // ParentTrigger: "exampleTrigger", - // RequestedEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:14.905167Z"); return t}()), - // RequestedStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:14.905167Z"); return t}()), - // RerunConcurrency: to.Ptr[int32](4), - // }, - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json -func ExampleTriggersClient_CreateOrUpdate_triggersCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewTriggersClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", armdatafactory.TriggerResource{ - Properties: &armdatafactory.ScheduleTrigger{ - Type: to.Ptr("ScheduleTrigger"), - Pipelines: []*armdatafactory.TriggerPipelineReference{ - { - Parameters: map[string]any{ - "OutputBlobNameList": []any{ - "exampleoutput.csv", - }, - }, - PipelineReference: &armdatafactory.PipelineReference{ - Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), - ReferenceName: to.Ptr("examplePipeline"), - }, - }}, - TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ - Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ - EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:13.8441801Z"); return t }()), - Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), - Interval: to.Ptr[int32](4), - StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:13.8441801Z"); return t }()), - TimeZone: to.Ptr("UTC"), - }, - }, - }, - }, &armdatafactory.TriggersClientCreateOrUpdateOptions{IfMatch: 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.TriggerResource = armdatafactory.TriggerResource{ - // Name: to.Ptr("exampleTrigger"), - // Type: to.Ptr("Microsoft.DataFactory/factories/triggers"), - // Etag: to.Ptr("0a008ad4-0000-0000-0000-5b245c6e0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger"), - // Properties: &armdatafactory.ScheduleTrigger{ - // Type: to.Ptr("ScheduleTrigger"), - // RuntimeState: to.Ptr(armdatafactory.TriggerRuntimeStateStopped), - // Pipelines: []*armdatafactory.TriggerPipelineReference{ - // { - // Parameters: map[string]any{ - // "OutputBlobNameList": []any{ - // "exampleoutput.csv", - // }, - // }, - // PipelineReference: &armdatafactory.PipelineReference{ - // Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), - // ReferenceName: to.Ptr("examplePipeline"), - // }, - // }}, - // TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ - // Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:13.8441801Z"); return t}()), - // Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), - // Interval: to.Ptr[int32](4), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:13.8441801Z"); return t}()), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json -func ExampleTriggersClient_CreateOrUpdate_triggersUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewTriggersClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", armdatafactory.TriggerResource{ - Properties: &armdatafactory.ScheduleTrigger{ - Type: to.Ptr("ScheduleTrigger"), - Description: to.Ptr("Example description"), - Pipelines: []*armdatafactory.TriggerPipelineReference{ - { - Parameters: map[string]any{ - "OutputBlobNameList": []any{ - "exampleoutput.csv", - }, - }, - PipelineReference: &armdatafactory.PipelineReference{ - Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), - ReferenceName: to.Ptr("examplePipeline"), - }, - }}, - TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ - Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ - EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:14.905167Z"); return t }()), - Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), - Interval: to.Ptr[int32](4), - StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:14.905167Z"); return t }()), - TimeZone: to.Ptr("UTC"), - }, - }, - }, - }, &armdatafactory.TriggersClientCreateOrUpdateOptions{IfMatch: 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.TriggerResource = armdatafactory.TriggerResource{ - // Name: to.Ptr("exampleTrigger"), - // Type: to.Ptr("Microsoft.DataFactory/factories/triggers"), - // Etag: to.Ptr("0a008dd4-0000-0000-0000-5b245c6f0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger"), - // Properties: &armdatafactory.ScheduleTrigger{ - // Type: to.Ptr("ScheduleTrigger"), - // Description: to.Ptr("Example description"), - // RuntimeState: to.Ptr(armdatafactory.TriggerRuntimeStateStopped), - // Pipelines: []*armdatafactory.TriggerPipelineReference{ - // { - // Parameters: map[string]any{ - // "OutputBlobNameList": []any{ - // "exampleoutput.csv", - // }, - // }, - // PipelineReference: &armdatafactory.PipelineReference{ - // Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), - // ReferenceName: to.Ptr("examplePipeline"), - // }, - // }}, - // TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ - // Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:14.905167Z"); return t}()), - // Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), - // Interval: to.Ptr[int32](4), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:14.905167Z"); return t}()), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json -func ExampleTriggersClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewTriggersClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", &armdatafactory.TriggersClientGetOptions{IfNoneMatch: 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.TriggerResource = armdatafactory.TriggerResource{ - // Name: to.Ptr("exampleTrigger"), - // Type: to.Ptr("Microsoft.DataFactory/factories/triggers"), - // Etag: to.Ptr("1500544f-0000-0200-0000-5cbe09100000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger"), - // Properties: &armdatafactory.ScheduleTrigger{ - // Type: to.Ptr("ScheduleTrigger"), - // RuntimeState: to.Ptr(armdatafactory.TriggerRuntimeStateStopped), - // Pipelines: []*armdatafactory.TriggerPipelineReference{ - // { - // Parameters: map[string]any{ - // "OutputBlobNameList": []any{ - // "exampleoutput.csv", - // }, - // }, - // PipelineReference: &armdatafactory.PipelineReference{ - // Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), - // ReferenceName: to.Ptr("examplePipeline"), - // }, - // }}, - // TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ - // Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-22T18:48:52.5281747Z"); return t}()), - // Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), - // Interval: to.Ptr[int32](4), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-22T18:32:52.527912Z"); return t}()), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json -func ExampleTriggersClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewTriggersClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json -func ExampleTriggersClient_BeginSubscribeToEvents() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewTriggersClient().BeginSubscribeToEvents(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %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.TriggerSubscriptionOperationStatus = armdatafactory.TriggerSubscriptionOperationStatus{ - // Status: to.Ptr(armdatafactory.EventSubscriptionStatusEnabled), - // TriggerName: to.Ptr("exampleTrigger"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json -func ExampleTriggersClient_GetEventSubscriptionStatus() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewTriggersClient().GetEventSubscriptionStatus(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", 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.TriggerSubscriptionOperationStatus = armdatafactory.TriggerSubscriptionOperationStatus{ - // Status: to.Ptr(armdatafactory.EventSubscriptionStatusEnabled), - // TriggerName: to.Ptr("exampleTrigger"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json -func ExampleTriggersClient_BeginUnsubscribeFromEvents() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewTriggersClient().BeginUnsubscribeFromEvents(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %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.TriggerSubscriptionOperationStatus = armdatafactory.TriggerSubscriptionOperationStatus{ - // Status: to.Ptr(armdatafactory.EventSubscriptionStatusDisabled), - // TriggerName: to.Ptr("exampleTrigger"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json -func ExampleTriggersClient_BeginStart() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewTriggersClient().BeginStart(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5c9459305484e0456b4a922e3d31a61e2ddd3c99/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json -func ExampleTriggersClient_BeginStop() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armdatafactory.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewTriggersClient().BeginStop(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleTrigger", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -}