diff --git a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md index 3165f19e5288..300fcc7e202a 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md @@ -1,5 +1,38 @@ # Release History +## 10.0.0 (2024-10-23) +### Breaking Changes + +- Function `*ClientFactory.NewOperationsClient` has been removed +- Function `*FactoriesClient.NewListPager` has been removed +- Function `NewOperationsClient` has been removed +- Function `*OperationsClient.NewListPager` has been removed +- Struct `Operation` has been removed +- Struct `OperationDisplay` has been removed +- Struct `OperationListResponse` has been removed +- Struct `OperationLogSpecification` has been removed +- Struct `OperationMetricAvailability` has been removed +- Struct `OperationMetricDimension` has been removed +- Struct `OperationMetricSpecification` has been removed +- Struct `OperationProperties` has been removed +- Struct `OperationServiceSpecification` has been removed + +### Features Added + +- New function `*IcebergDataset.GetDataset() *Dataset` +- New function `*IcebergSink.GetCopySink() *CopySink` +- New function `*IcebergWriteSettings.GetFormatWriteSettings() *FormatWriteSettings` +- New struct `IcebergDataset` +- New struct `IcebergDatasetTypeProperties` +- New struct `IcebergSink` +- New struct `IcebergWriteSettings` +- New field `SSLMode`, `UseSystemTrustStore` in struct `MariaDBLinkedServiceTypeProperties` +- New field `AuthenticationType` in struct `PostgreSQLV2LinkedServiceTypeProperties` +- New field `PageSize` in struct `SalesforceV2Source` +- New field `PageSize` in struct `ServiceNowV2Source` +- New field `Host` in struct `SnowflakeLinkedV2ServiceTypeProperties` + + ## 8.0.0 (2024-06-05) ### Breaking Changes diff --git a/sdk/resourcemanager/datafactory/armdatafactory/README.md b/sdk/resourcemanager/datafactory/armdatafactory/README.md index 0a84394293f2..85c8e5f6e3a8 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/README.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/README.md @@ -1,6 +1,6 @@ # Azure Data Factory Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10) The `armdatafactory` module provides operations for working with Azure Data Factory. @@ -20,7 +20,7 @@ This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for ve Install the Azure Data Factory module: ```sh -go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8 +go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10 ``` ## Authorization 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 1db28e560fe8..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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.334Z"); return t }()), - LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.368Z"); 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.544Z"); 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.480Z"); 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.418Z"); 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.246Z"); 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 2f6bc78b150c..57e728d86f76 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/autorest.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/autorest.md @@ -5,9 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/specification/datafactory/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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: 8.0.0 -tag: package-2018-06 +module-version: 10.0.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/datafactory/armdatafactory/changedatacapture_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/changedatacapture_client_example_test.go deleted file mode 100644 index 47475a5ad117..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/changedatacapture_client_example_test.go +++ /dev/null @@ -1,232 +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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_ListByFactory.json -func ExampleChangeDataCaptureClient_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.NewChangeDataCaptureClient().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.ChangeDataCaptureListResponse = armdatafactory.ChangeDataCaptureListResponse{ - // Value: []*armdatafactory.ChangeDataCaptureResource{ - // { - // Name: to.Ptr("exampleChangeDataCapture"), - // Type: to.Ptr("Microsoft.DataFactory/factories/adfcdcs"), - // Etag: to.Ptr("4200eefe-0000-0100-0000-641aa97a0000"), - // ID: to.Ptr("/subscriptions/d3bb3b2e-9a7e-4194-9960-5171bd192117/resourceGroups/amja-rg-03/providers/Microsoft.DataFactory/factories/amja-adf-04/adfcdcs/exampleChangeDataCapture"), - // Properties: &armdatafactory.ChangeDataCapture{ - // Description: to.Ptr("Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database with automapped and non-automapped mappings."), - // AllowVNetOverride: to.Ptr(false), - // Status: to.Ptr("Stopped"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Create.json -func ExampleChangeDataCaptureClient_CreateOrUpdate_changeDataCaptureCreate() { - 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.NewChangeDataCaptureClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", armdatafactory.ChangeDataCaptureResource{ - Properties: &armdatafactory.ChangeDataCapture{ - Description: to.Ptr("Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database with automapped and non-automapped mappings."), - AllowVNetOverride: to.Ptr(false), - }, - }, &armdatafactory.ChangeDataCaptureClientCreateOrUpdateOptions{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.ChangeDataCaptureResource = armdatafactory.ChangeDataCaptureResource{ - // Name: to.Ptr("exampleChangeDataCapture"), - // Type: to.Ptr("Microsoft.DataFactory/factories/adfcdcs"), - // Etag: to.Ptr("4300f91d-0000-0100-0000-641ab34d0000"), - // ID: to.Ptr("/subscriptions/d3bb3b2e-9a7e-4194-9960-5171bd192117/resourceGroups/amja-rg-03/providers/Microsoft.DataFactory/factories/amja-adf-04/adfcdcs/exampleChangeDataCapture"), - // Properties: &armdatafactory.ChangeDataCapture{ - // Description: to.Ptr("Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating table mappings."), - // AllowVNetOverride: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Update.json -func ExampleChangeDataCaptureClient_CreateOrUpdate_changeDataCaptureUpdate() { - 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.NewChangeDataCaptureClient().CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", armdatafactory.ChangeDataCaptureResource{ - Properties: &armdatafactory.ChangeDataCapture{ - Description: to.Ptr("Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating table mappings."), - AllowVNetOverride: to.Ptr(false), - Status: to.Ptr("Stopped"), - }, - }, &armdatafactory.ChangeDataCaptureClientCreateOrUpdateOptions{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.ChangeDataCaptureResource = armdatafactory.ChangeDataCaptureResource{ - // Name: to.Ptr("exampleChangeDataCapture"), - // Type: to.Ptr("Microsoft.DataFactory/factories/adfcdcs"), - // Etag: to.Ptr("43008e18-0000-0100-0000-641aafca0000"), - // ID: to.Ptr("/subscriptions/d3bb3b2e-9a7e-4194-9960-5171bd192117/resourceGroups/amja-rg-03/providers/Microsoft.DataFactory/factories/amja-adf-04/adfcdcs/exampleChangeDataCapture"), - // Properties: &armdatafactory.ChangeDataCapture{ - // Description: to.Ptr("Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating table mappings."), - // AllowVNetOverride: to.Ptr(false), - // Status: to.Ptr("Stopped"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get.json -func ExampleChangeDataCaptureClient_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.NewChangeDataCaptureClient().Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", &armdatafactory.ChangeDataCaptureClientGetOptions{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.ChangeDataCaptureResource = armdatafactory.ChangeDataCaptureResource{ - // Name: to.Ptr("exampleChangeDataCapture"), - // Type: to.Ptr("Microsoft.DataFactory/factories/adfcdcs"), - // Etag: to.Ptr("4300f91d-0000-0100-0000-641ab34d0000"), - // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/adfcdcs/exampleChangeDataCapture"), - // Properties: &armdatafactory.ChangeDataCapture{ - // Description: to.Ptr("Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating table mappings."), - // AllowVNetOverride: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Delete.json -func ExampleChangeDataCaptureClient_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.NewChangeDataCaptureClient().Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", 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/f6f50c6388fd5836fa142384641b8353a99874ef/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Start.json -func ExampleChangeDataCaptureClient_Start() { - 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.NewChangeDataCaptureClient().Start(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", 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/f6f50c6388fd5836fa142384641b8353a99874ef/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Stop.json -func ExampleChangeDataCaptureClient_Stop() { - 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.NewChangeDataCaptureClient().Stop(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", 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/f6f50c6388fd5836fa142384641b8353a99874ef/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Status.json -func ExampleChangeDataCaptureClient_Status() { - 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.NewChangeDataCaptureClient().Status(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleChangeDataCapture", 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.Value = "Stopped" -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/client_factory.go b/sdk/resourcemanager/datafactory/armdatafactory/client_factory.go index fc59af30e800..b65edd104b18 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/client_factory.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/client_factory.go @@ -156,13 +156,6 @@ func (c *ClientFactory) NewManagedVirtualNetworksClient() *ManagedVirtualNetwork } } -// NewOperationsClient creates a new instance of OperationsClient. -func (c *ClientFactory) NewOperationsClient() *OperationsClient { - return &OperationsClient{ - internal: c.internal, - } -} - // NewPipelineRunsClient creates a new instance of PipelineRunsClient. func (c *ClientFactory) NewPipelineRunsClient() *PipelineRunsClient { return &PipelineRunsClient{ diff --git a/sdk/resourcemanager/datafactory/armdatafactory/constants.go b/sdk/resourcemanager/datafactory/armdatafactory/constants.go index 76bc85c3a1e9..672153ded9de 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/constants.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/constants.go @@ -10,7 +10,7 @@ package armdatafactory const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" - moduleVersion = "v8.0.0" + moduleVersion = "v10.0.0" ) // ActivityOnInactiveMarkAs - Status result of the activity when the state is set to Inactive. This is an optional property @@ -1426,14 +1426,16 @@ func PossibleSQLAlwaysEncryptedAkvAuthTypeValues() []SQLAlwaysEncryptedAkvAuthTy type SQLServerAuthenticationType string const ( - SQLServerAuthenticationTypeSQL SQLServerAuthenticationType = "SQL" - SQLServerAuthenticationTypeWindows SQLServerAuthenticationType = "Windows" + SQLServerAuthenticationTypeSQL SQLServerAuthenticationType = "SQL" + SQLServerAuthenticationTypeUserAssignedManagedIdentity SQLServerAuthenticationType = "UserAssignedManagedIdentity" + SQLServerAuthenticationTypeWindows SQLServerAuthenticationType = "Windows" ) // PossibleSQLServerAuthenticationTypeValues returns the possible values for the SQLServerAuthenticationType const type. func PossibleSQLServerAuthenticationTypeValues() []SQLServerAuthenticationType { return []SQLServerAuthenticationType{ SQLServerAuthenticationTypeSQL, + SQLServerAuthenticationTypeUserAssignedManagedIdentity, SQLServerAuthenticationTypeWindows, } } 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 602f5f71c9aa..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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.CredentialResource{ - // { - // 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/f6f50c6388fd5836fa142384641b8353a99874ef/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.CredentialResource{ - 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.CredentialResource = armdatafactory.CredentialResource{ - // 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/f6f50c6388fd5836fa142384641b8353a99874ef/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.CredentialResource = armdatafactory.CredentialResource{ - // 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/f6f50c6388fd5836fa142384641b8353a99874ef/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 index cbe5a9514c58..4ed51a7675ce 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/datafactory_live_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/datafactory_live_test.go @@ -16,7 +16,7 @@ import ( "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/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/suite" 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 c60723ddf9e9..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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 9a37032f6d06..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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 c8094932372b..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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 edcaff1f53d9..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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.go b/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go index 6ad2c3e12eb9..7f7c84e2ac79 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go @@ -438,60 +438,6 @@ func (client *FactoriesClient) getGitHubAccessTokenHandleResponse(resp *http.Res return result, nil } -// NewListPager - Lists factories under the specified subscription. -// -// Generated from API version 2018-06-01 -// - options - FactoriesClientListOptions contains the optional parameters for the FactoriesClient.NewListPager method. -func (client *FactoriesClient) NewListPager(options *FactoriesClientListOptions) *runtime.Pager[FactoriesClientListResponse] { - return runtime.NewPager(runtime.PagingHandler[FactoriesClientListResponse]{ - More: func(page FactoriesClientListResponse) bool { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *FactoriesClientListResponse) (FactoriesClientListResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "FactoriesClient.NewListPager") - nextLink := "" - if page != nil { - nextLink = *page.NextLink - } - resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) - }, nil) - if err != nil { - return FactoriesClientListResponse{}, err - } - return client.listHandleResponse(resp) - }, - Tracer: client.internal.Tracer(), - }) -} - -// listCreateRequest creates the List request. -func (client *FactoriesClient) listCreateRequest(ctx context.Context, options *FactoriesClientListOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listHandleResponse handles the List response. -func (client *FactoriesClient) listHandleResponse(resp *http.Response) (FactoriesClientListResponse, error) { - result := FactoriesClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.FactoryListResponse); err != nil { - return FactoriesClientListResponse{}, err - } - return result, nil -} - // NewListByResourceGroupPager - Lists factories. // // Generated from API version 2018-06-01 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 909f7aaebd08..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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.615Z"); 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.666Z"); 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.182Z"); 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.713Z"); 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.004Z"); 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.615Z"); 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.666Z"); 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.182Z"); 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.713Z"); 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.004Z"); 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/f6f50c6388fd5836fa142384641b8353a99874ef/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.004Z"); 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/f6f50c6388fd5836fa142384641b8353a99874ef/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.182Z"); 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.713Z"); 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.004Z"); 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/f6f50c6388fd5836fa142384641b8353a99874ef/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.004Z"); 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/f6f50c6388fd5836fa142384641b8353a99874ef/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.004Z"); 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/f6f50c6388fd5836fa142384641b8353a99874ef/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.004Z"); 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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/fake/activityruns_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/activityruns_server.go index c2706101e59a..df6fe0e440f4 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/activityruns_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/activityruns_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/changedatacapture_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/changedatacapture_server.go index 9d844a52438c..28a4118c1073 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/changedatacapture_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/changedatacapture_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/credentialoperations_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/credentialoperations_server.go index 142870658689..332232f6b07c 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/credentialoperations_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/credentialoperations_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/dataflowdebugsession_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/dataflowdebugsession_server.go index f51d4f9d850a..2079b6fd3bff 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/dataflowdebugsession_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/dataflowdebugsession_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/dataflows_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/dataflows_server.go index 311233506227..db41db93b04c 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/dataflows_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/dataflows_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/datasets_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/datasets_server.go index 7f2d90171862..6aadfc6f56cb 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/datasets_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/datasets_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/exposurecontrol_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/exposurecontrol_server.go index 403f5a119ceb..57de83d5ac05 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/exposurecontrol_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/exposurecontrol_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/factories_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/factories_server.go index a4da3612a68b..788052e359bc 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/factories_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/factories_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" @@ -48,10 +48,6 @@ type FactoriesServer struct { // HTTP status codes to indicate success: http.StatusOK GetGitHubAccessToken func(ctx context.Context, resourceGroupName string, factoryName string, gitHubAccessTokenRequest armdatafactory.GitHubAccessTokenRequest, options *armdatafactory.FactoriesClientGetGitHubAccessTokenOptions) (resp azfake.Responder[armdatafactory.FactoriesClientGetGitHubAccessTokenResponse], errResp azfake.ErrorResponder) - // NewListPager is the fake for method FactoriesClient.NewListPager - // HTTP status codes to indicate success: http.StatusOK - NewListPager func(options *armdatafactory.FactoriesClientListOptions) (resp azfake.PagerResponder[armdatafactory.FactoriesClientListResponse]) - // NewListByResourceGroupPager is the fake for method FactoriesClient.NewListByResourceGroupPager // HTTP status codes to indicate success: http.StatusOK NewListByResourceGroupPager func(resourceGroupName string, options *armdatafactory.FactoriesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armdatafactory.FactoriesClientListByResourceGroupResponse]) @@ -67,7 +63,6 @@ type FactoriesServer struct { func NewFactoriesServerTransport(srv *FactoriesServer) *FactoriesServerTransport { return &FactoriesServerTransport{ srv: srv, - newListPager: newTracker[azfake.PagerResponder[armdatafactory.FactoriesClientListResponse]](), newListByResourceGroupPager: newTracker[azfake.PagerResponder[armdatafactory.FactoriesClientListByResourceGroupResponse]](), } } @@ -76,7 +71,6 @@ func NewFactoriesServerTransport(srv *FactoriesServer) *FactoriesServerTransport // Don't use this type directly, use NewFactoriesServerTransport instead. type FactoriesServerTransport struct { srv *FactoriesServer - newListPager *tracker[azfake.PagerResponder[armdatafactory.FactoriesClientListResponse]] newListByResourceGroupPager *tracker[azfake.PagerResponder[armdatafactory.FactoriesClientListByResourceGroupResponse]] } @@ -104,8 +98,6 @@ func (f *FactoriesServerTransport) Do(req *http.Request) (*http.Response, error) resp, err = f.dispatchGetDataPlaneAccess(req) case "FactoriesClient.GetGitHubAccessToken": resp, err = f.dispatchGetGitHubAccessToken(req) - case "FactoriesClient.NewListPager": - resp, err = f.dispatchNewListPager(req) case "FactoriesClient.NewListByResourceGroupPager": resp, err = f.dispatchNewListByResourceGroupPager(req) case "FactoriesClient.Update": @@ -345,39 +337,6 @@ func (f *FactoriesServerTransport) dispatchGetGitHubAccessToken(req *http.Reques return resp, nil } -func (f *FactoriesServerTransport) dispatchNewListPager(req *http.Request) (*http.Response, error) { - if f.srv.NewListPager == nil { - return nil, &nonRetriableError{errors.New("fake for method NewListPager not implemented")} - } - newListPager := f.newListPager.get(req) - if newListPager == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DataFactory/factories` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - resp := f.srv.NewListPager(nil) - newListPager = &resp - f.newListPager.add(req, newListPager) - server.PagerResponderInjectNextLinks(newListPager, req, func(page *armdatafactory.FactoriesClientListResponse, createLink func() string) { - page.NextLink = to.Ptr(createLink()) - }) - } - resp, err := server.PagerResponderNext(newListPager, req) - if err != nil { - return nil, err - } - if !contains([]int{http.StatusOK}, resp.StatusCode) { - f.newListPager.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} - } - if !server.PagerResponderMore(newListPager) { - f.newListPager.remove(req) - } - return resp, nil -} - func (f *FactoriesServerTransport) dispatchNewListByResourceGroupPager(req *http.Request) (*http.Response, error) { if f.srv.NewListByResourceGroupPager == nil { return nil, &nonRetriableError{errors.New("fake for method NewListByResourceGroupPager not implemented")} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/globalparameters_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/globalparameters_server.go index bc3da2b84b1c..08bdb18b90bd 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/globalparameters_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/globalparameters_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimenodes_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimenodes_server.go index ffb2e2b3b14a..c544defbf385 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimenodes_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimenodes_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimeobjectmetadata_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimeobjectmetadata_server.go index 32f40efa40cb..c559fc62522e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimeobjectmetadata_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimeobjectmetadata_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "reflect" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimes_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimes_server.go index 126921aefe9a..16f20e1b7b1a 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimes_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/integrationruntimes_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/linkedservices_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/linkedservices_server.go index 5ed178105661..119899c5c6f2 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/linkedservices_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/linkedservices_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/managedprivateendpoints_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/managedprivateendpoints_server.go index 3b7a55be0fd7..c7d240e78d56 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/managedprivateendpoints_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/managedprivateendpoints_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/managedvirtualnetworks_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/managedvirtualnetworks_server.go index 13835f69d5b1..0ff5b5e848b6 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/managedvirtualnetworks_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/managedvirtualnetworks_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/operations_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/operations_server.go deleted file mode 100644 index a4cfcffe224d..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/operations_server.go +++ /dev/null @@ -1,96 +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. DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package fake - -import ( - "errors" - "fmt" - azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" - "net/http" -) - -// OperationsServer is a fake server for instances of the armdatafactory.OperationsClient type. -type OperationsServer struct { - // NewListPager is the fake for method OperationsClient.NewListPager - // HTTP status codes to indicate success: http.StatusOK - NewListPager func(options *armdatafactory.OperationsClientListOptions) (resp azfake.PagerResponder[armdatafactory.OperationsClientListResponse]) -} - -// NewOperationsServerTransport creates a new instance of OperationsServerTransport with the provided implementation. -// The returned OperationsServerTransport instance is connected to an instance of armdatafactory.OperationsClient via the -// azcore.ClientOptions.Transporter field in the client's constructor parameters. -func NewOperationsServerTransport(srv *OperationsServer) *OperationsServerTransport { - return &OperationsServerTransport{ - srv: srv, - newListPager: newTracker[azfake.PagerResponder[armdatafactory.OperationsClientListResponse]](), - } -} - -// OperationsServerTransport connects instances of armdatafactory.OperationsClient to instances of OperationsServer. -// Don't use this type directly, use NewOperationsServerTransport instead. -type OperationsServerTransport struct { - srv *OperationsServer - newListPager *tracker[azfake.PagerResponder[armdatafactory.OperationsClientListResponse]] -} - -// Do implements the policy.Transporter interface for OperationsServerTransport. -func (o *OperationsServerTransport) Do(req *http.Request) (*http.Response, error) { - rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) - method, ok := rawMethod.(string) - if !ok { - return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} - } - - var resp *http.Response - var err error - - switch method { - case "OperationsClient.NewListPager": - resp, err = o.dispatchNewListPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } - - if err != nil { - return nil, err - } - - return resp, nil -} - -func (o *OperationsServerTransport) dispatchNewListPager(req *http.Request) (*http.Response, error) { - if o.srv.NewListPager == nil { - return nil, &nonRetriableError{errors.New("fake for method NewListPager not implemented")} - } - newListPager := o.newListPager.get(req) - if newListPager == nil { - resp := o.srv.NewListPager(nil) - newListPager = &resp - o.newListPager.add(req, newListPager) - server.PagerResponderInjectNextLinks(newListPager, req, func(page *armdatafactory.OperationsClientListResponse, createLink func() string) { - page.NextLink = to.Ptr(createLink()) - }) - } - resp, err := server.PagerResponderNext(newListPager, req) - if err != nil { - return nil, err - } - if !contains([]int{http.StatusOK}, resp.StatusCode) { - o.newListPager.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} - } - if !server.PagerResponderMore(newListPager) { - o.newListPager.remove(req) - } - return resp, nil -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/pipelineruns_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/pipelineruns_server.go index c6493d51472a..e1635274aefd 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/pipelineruns_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/pipelineruns_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/pipelines_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/pipelines_server.go index 9ad491469bb7..0be9c394fdfe 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/pipelines_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/pipelines_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "reflect" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/privateendpointconnection_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/privateendpointconnection_server.go index 60a56d45e683..5ff90f9380bf 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/privateendpointconnection_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/privateendpointconnection_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/privateendpointconnections_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/privateendpointconnections_server.go index 910171f8ddab..215dd039011e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/privateendpointconnections_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/privateendpointconnections_server.go @@ -15,7 +15,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/privatelinkresources_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/privatelinkresources_server.go index f49f8359f78a..63ffa9a05792 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/privatelinkresources_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/privatelinkresources_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/server_factory.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/server_factory.go index 190440b935c3..770974b6e360 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/server_factory.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/server_factory.go @@ -34,7 +34,6 @@ type ServerFactory struct { LinkedServicesServer LinkedServicesServer ManagedPrivateEndpointsServer ManagedPrivateEndpointsServer ManagedVirtualNetworksServer ManagedVirtualNetworksServer - OperationsServer OperationsServer PipelineRunsServer PipelineRunsServer PipelinesServer PipelinesServer PrivateEndPointConnectionsServer PrivateEndPointConnectionsServer @@ -73,7 +72,6 @@ type ServerFactoryTransport struct { trLinkedServicesServer *LinkedServicesServerTransport trManagedPrivateEndpointsServer *ManagedPrivateEndpointsServerTransport trManagedVirtualNetworksServer *ManagedVirtualNetworksServerTransport - trOperationsServer *OperationsServerTransport trPipelineRunsServer *PipelineRunsServerTransport trPipelinesServer *PipelinesServerTransport trPrivateEndPointConnectionsServer *PrivateEndPointConnectionsServerTransport @@ -163,9 +161,6 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { return NewManagedVirtualNetworksServerTransport(&s.srv.ManagedVirtualNetworksServer) }) resp, err = s.trManagedVirtualNetworksServer.Do(req) - case "OperationsClient": - initServer(s, &s.trOperationsServer, func() *OperationsServerTransport { return NewOperationsServerTransport(&s.srv.OperationsServer) }) - resp, err = s.trOperationsServer.Do(req) case "PipelineRunsClient": initServer(s, &s.trPipelineRunsServer, func() *PipelineRunsServerTransport { return NewPipelineRunsServerTransport(&s.srv.PipelineRunsServer) }) resp, err = s.trPipelineRunsServer.Do(req) diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/triggerruns_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/triggerruns_server.go index 36560c0616ae..7bcd2c9146e5 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/triggerruns_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/triggerruns_server.go @@ -15,7 +15,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" diff --git a/sdk/resourcemanager/datafactory/armdatafactory/fake/triggers_server.go b/sdk/resourcemanager/datafactory/armdatafactory/fake/triggers_server.go index 029262342d48..19ee8049b209 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/fake/triggers_server.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/fake/triggers_server.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10" "net/http" "net/url" "regexp" 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 43fdfd68ec4b..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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 6754f0fa4410..992a62026f29 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.mod +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.mod @@ -1,10 +1,9 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v8 +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v10 go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.13.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.1.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 @@ -12,6 +11,7 @@ require ( ) require ( + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect 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 f75ba73b2d7e..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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.626Z"); return t}()), - // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:45:30.849Z"); 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.801Z"); 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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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.754Z"); return t}()), - // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:52:59.893Z"); 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.923Z"); 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/f6f50c6388fd5836fa142384641b8353a99874ef/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 b749fd95b7c9..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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 4c8c77dc920b..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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.183Z"); 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.893Z"); return t}()), - // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:52:59.893Z"); 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.923Z"); 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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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.869Z"); return t}()), - // Nodes: []*armdatafactory.ManagedIntegrationRuntimeNode{ - // }, - // OtherErrors: []*armdatafactory.ManagedIntegrationRuntimeError{ - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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:00.000Z"); 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.705Z"); 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.061Z"); 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.626Z"); return t}()), - // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:45:30.849Z"); 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.801Z"); 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:00.000Z"); 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/interfaces.go b/sdk/resourcemanager/datafactory/armdatafactory/interfaces.go index 504b9b6b74c7..a1e8df530460 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/interfaces.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/interfaces.go @@ -50,7 +50,7 @@ type ControlActivityClassification interface { // - *AvroSink, *AzureBlobFSSink, *AzureDataExplorerSink, *AzureDataLakeStoreSink, *AzureDatabricksDeltaLakeSink, *AzureMySQLSink, // - *AzurePostgreSQLSink, *AzureQueueSink, *AzureSQLSink, *AzureSearchIndexSink, *AzureTableSink, *BinarySink, *BlobSink, // - *CommonDataServiceForAppsSink, *CopySink, *CosmosDbMongoDbAPISink, *CosmosDbSQLAPISink, *DelimitedTextSink, *DocumentDbCollectionSink, -// - *DynamicsCrmSink, *DynamicsSink, *FileSystemSink, *InformixSink, *JSONSink, *LakeHouseTableSink, *MicrosoftAccessSink, +// - *DynamicsCrmSink, *DynamicsSink, *FileSystemSink, *IcebergSink, *InformixSink, *JSONSink, *LakeHouseTableSink, *MicrosoftAccessSink, // - *MongoDbAtlasSink, *MongoDbV2Sink, *OdbcSink, *OracleSink, *OrcSink, *ParquetSink, *RestSink, *SQLDWSink, *SQLMISink, // - *SQLServerSink, *SQLSink, *SalesforceServiceCloudSink, *SalesforceServiceCloudV2Sink, *SalesforceSink, *SalesforceV2Sink, // - *SapCloudForCustomerSink, *SnowflakeSink, *SnowflakeV2Sink, *WarehouseSink @@ -121,18 +121,19 @@ type DataFlowClassification interface { // - *CouchbaseTableDataset, *CustomDataset, *Dataset, *Db2TableDataset, *DelimitedTextDataset, *DocumentDbCollectionDataset, // - *DrillTableDataset, *DynamicsAXResourceDataset, *DynamicsCrmEntityDataset, *DynamicsEntityDataset, *EloquaObjectDataset, // - *ExcelDataset, *FileShareDataset, *GoogleAdWordsObjectDataset, *GoogleBigQueryObjectDataset, *GoogleBigQueryV2ObjectDataset, -// - *GreenplumTableDataset, *HBaseObjectDataset, *HTTPDataset, *HiveObjectDataset, *HubspotObjectDataset, *ImpalaObjectDataset, -// - *InformixTableDataset, *JSONDataset, *JiraObjectDataset, *LakeHouseTableDataset, *MagentoObjectDataset, *MariaDBTableDataset, -// - *MarketoObjectDataset, *MicrosoftAccessTableDataset, *MongoDbAtlasCollectionDataset, *MongoDbCollectionDataset, *MongoDbV2CollectionDataset, -// - *MySQLTableDataset, *NetezzaTableDataset, *ODataResourceDataset, *OdbcTableDataset, *Office365Dataset, *OracleServiceCloudObjectDataset, -// - *OracleTableDataset, *OrcDataset, *ParquetDataset, *PaypalObjectDataset, *PhoenixObjectDataset, *PostgreSQLTableDataset, -// - *PostgreSQLV2TableDataset, *PrestoObjectDataset, *QuickBooksObjectDataset, *RelationalTableDataset, *ResponsysObjectDataset, -// - *RestResourceDataset, *SQLServerTableDataset, *SalesforceMarketingCloudObjectDataset, *SalesforceObjectDataset, *SalesforceServiceCloudObjectDataset, -// - *SalesforceServiceCloudV2ObjectDataset, *SalesforceV2ObjectDataset, *SapBwCubeDataset, *SapCloudForCustomerResourceDataset, -// - *SapEccResourceDataset, *SapHanaTableDataset, *SapOdpResourceDataset, *SapOpenHubTableDataset, *SapTableResourceDataset, -// - *ServiceNowObjectDataset, *ServiceNowV2ObjectDataset, *SharePointOnlineListResourceDataset, *ShopifyObjectDataset, *SnowflakeDataset, -// - *SnowflakeV2Dataset, *SparkObjectDataset, *SquareObjectDataset, *SybaseTableDataset, *TeradataTableDataset, *VerticaTableDataset, -// - *WarehouseTableDataset, *WebTableDataset, *XMLDataset, *XeroObjectDataset, *ZohoObjectDataset +// - *GreenplumTableDataset, *HBaseObjectDataset, *HTTPDataset, *HiveObjectDataset, *HubspotObjectDataset, *IcebergDataset, +// - *ImpalaObjectDataset, *InformixTableDataset, *JSONDataset, *JiraObjectDataset, *LakeHouseTableDataset, *MagentoObjectDataset, +// - *MariaDBTableDataset, *MarketoObjectDataset, *MicrosoftAccessTableDataset, *MongoDbAtlasCollectionDataset, *MongoDbCollectionDataset, +// - *MongoDbV2CollectionDataset, *MySQLTableDataset, *NetezzaTableDataset, *ODataResourceDataset, *OdbcTableDataset, *Office365Dataset, +// - *OracleServiceCloudObjectDataset, *OracleTableDataset, *OrcDataset, *ParquetDataset, *PaypalObjectDataset, *PhoenixObjectDataset, +// - *PostgreSQLTableDataset, *PostgreSQLV2TableDataset, *PrestoObjectDataset, *QuickBooksObjectDataset, *RelationalTableDataset, +// - *ResponsysObjectDataset, *RestResourceDataset, *SQLServerTableDataset, *SalesforceMarketingCloudObjectDataset, *SalesforceObjectDataset, +// - *SalesforceServiceCloudObjectDataset, *SalesforceServiceCloudV2ObjectDataset, *SalesforceV2ObjectDataset, *SapBwCubeDataset, +// - *SapCloudForCustomerResourceDataset, *SapEccResourceDataset, *SapHanaTableDataset, *SapOdpResourceDataset, *SapOpenHubTableDataset, +// - *SapTableResourceDataset, *ServiceNowObjectDataset, *ServiceNowV2ObjectDataset, *SharePointOnlineListResourceDataset, +// - *ShopifyObjectDataset, *SnowflakeDataset, *SnowflakeV2Dataset, *SparkObjectDataset, *SquareObjectDataset, *SybaseTableDataset, +// - *TeradataTableDataset, *VerticaTableDataset, *WarehouseTableDataset, *WebTableDataset, *XMLDataset, *XeroObjectDataset, +// - *ZohoObjectDataset type DatasetClassification interface { // GetDataset returns the Dataset content of the underlying type. GetDataset() *Dataset @@ -212,7 +213,8 @@ type FormatReadSettingsClassification interface { // FormatWriteSettingsClassification provides polymorphic access to related types. // Call the interface's GetFormatWriteSettings() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: -// - *AvroWriteSettings, *DelimitedTextWriteSettings, *FormatWriteSettings, *JSONWriteSettings, *OrcWriteSettings, *ParquetWriteSettings +// - *AvroWriteSettings, *DelimitedTextWriteSettings, *FormatWriteSettings, *IcebergWriteSettings, *JSONWriteSettings, *OrcWriteSettings, +// - *ParquetWriteSettings type FormatWriteSettingsClassification interface { // GetFormatWriteSettings returns the FormatWriteSettings content of the underlying type. GetFormatWriteSettings() *FormatWriteSettings 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 1a5f17ff3626..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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 d7a38a5ef588..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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 e74a2a236929..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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 10c4e4800616..8cbcb5f3dcb8 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/models.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/models.go @@ -169,6 +169,9 @@ type AmazonMWSLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonMWSLinkedService. @@ -180,6 +183,7 @@ func (a *AmazonMWSLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -360,6 +364,9 @@ type AmazonRdsForOracleLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonRdsForOracleLinkedService. @@ -371,6 +378,7 @@ func (a *AmazonRdsForOracleLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -522,6 +530,9 @@ type AmazonRdsForSQLServerLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonRdsForSQLServerLinkedService. @@ -533,6 +544,7 @@ func (a *AmazonRdsForSQLServerLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -800,6 +812,9 @@ type AmazonRedshiftLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonRedshiftLinkedService. @@ -811,6 +826,7 @@ func (a *AmazonRedshiftLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -982,6 +998,9 @@ type AmazonS3CompatibleLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonS3CompatibleLinkedService. @@ -993,6 +1012,7 @@ func (a *AmazonS3CompatibleLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -1206,6 +1226,9 @@ type AmazonS3LinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AmazonS3LinkedService. @@ -1217,6 +1240,7 @@ func (a *AmazonS3LinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -1357,6 +1381,9 @@ type AppFiguresLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AppFiguresLinkedService. @@ -1368,6 +1395,7 @@ func (a *AppFiguresLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -1480,6 +1508,9 @@ type AsanaLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AsanaLinkedService. @@ -1491,6 +1522,7 @@ func (a *AsanaLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -1750,6 +1782,9 @@ type AzureBatchLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureBatchLinkedService. @@ -1761,6 +1796,7 @@ func (a *AzureBatchLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -1948,6 +1984,9 @@ type AzureBlobFSLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureBlobFSLinkedService. @@ -1959,6 +1998,7 @@ func (a *AzureBlobFSLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -2241,6 +2281,9 @@ type AzureBlobStorageLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureBlobStorageLinkedService. @@ -2252,6 +2295,7 @@ func (a *AzureBlobStorageLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -2535,6 +2579,9 @@ type AzureDataExplorerLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureDataExplorerLinkedService. @@ -2546,6 +2593,7 @@ func (a *AzureDataExplorerLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -2740,6 +2788,9 @@ type AzureDataLakeAnalyticsLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureDataLakeAnalyticsLinkedService. @@ -2751,6 +2802,7 @@ func (a *AzureDataLakeAnalyticsLinkedService) GetLinkedService() *LinkedService Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -2872,6 +2924,9 @@ type AzureDataLakeStoreLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureDataLakeStoreLinkedService. @@ -2883,6 +2938,7 @@ func (a *AzureDataLakeStoreLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -3264,6 +3320,9 @@ type AzureDatabricksDeltaLakeLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureDatabricksDeltaLakeLinkedService. @@ -3275,6 +3334,7 @@ func (a *AzureDatabricksDeltaLakeLinkedService) GetLinkedService() *LinkedServic Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -3411,6 +3471,9 @@ type AzureDatabricksLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureDatabricksLinkedService. @@ -3422,6 +3485,7 @@ func (a *AzureDatabricksLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -3526,6 +3590,9 @@ type AzureFileStorageLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureFileStorageLinkedService. @@ -3537,6 +3604,7 @@ func (a *AzureFileStorageLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -3548,6 +3616,9 @@ type AzureFileStorageLinkedServiceTypeProperties struct { // The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString any + // The credential reference containing authentication information. + Credential *CredentialReference + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string. EncryptedCredential *string @@ -3569,6 +3640,9 @@ type AzureFileStorageLinkedServiceTypeProperties struct { // or AzureKeyVaultSecretReference. SasURI any + // File service endpoint of the Azure File Storage resource. It is mutually exclusive with connectionString, sasUri property. + ServiceEndpoint any + // The azure file share snapshot version. Type: string (or Expression with resultType string). Snapshot any @@ -3800,6 +3874,9 @@ type AzureFunctionLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureFunctionLinkedService. @@ -3811,6 +3888,7 @@ func (a *AzureFunctionLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -3860,6 +3938,9 @@ type AzureKeyVaultLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureKeyVaultLinkedService. @@ -3871,6 +3952,7 @@ func (a *AzureKeyVaultLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -4119,6 +4201,9 @@ type AzureMLLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureMLLinkedService. @@ -4130,6 +4215,7 @@ func (a *AzureMLLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -4187,6 +4273,9 @@ type AzureMLServiceLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureMLServiceLinkedService. @@ -4198,6 +4287,7 @@ func (a *AzureMLServiceLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -4344,6 +4434,9 @@ type AzureMariaDBLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureMariaDBLinkedService. @@ -4355,6 +4448,7 @@ func (a *AzureMariaDBLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -4499,6 +4593,9 @@ type AzureMySQLLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureMySQLLinkedService. @@ -4510,6 +4607,7 @@ func (a *AzureMySQLLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -4707,6 +4805,9 @@ type AzurePostgreSQLLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzurePostgreSQLLinkedService. @@ -4718,6 +4819,7 @@ func (a *AzurePostgreSQLLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -4960,6 +5062,9 @@ type AzureSQLDWLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureSQLDWLinkedService. @@ -4971,6 +5076,7 @@ func (a *AzureSQLDWLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -5188,6 +5294,9 @@ type AzureSQLDatabaseLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureSQLDatabaseLinkedService. @@ -5199,6 +5308,7 @@ func (a *AzureSQLDatabaseLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -5358,6 +5468,9 @@ type AzureSQLMILinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureSQLMILinkedService. @@ -5369,6 +5482,7 @@ func (a *AzureSQLMILinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -5897,6 +6011,9 @@ type AzureSearchLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureSearchLinkedService. @@ -5908,6 +6025,7 @@ func (a *AzureSearchLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -5946,6 +6064,9 @@ type AzureStorageLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureStorageLinkedService. @@ -5957,6 +6078,7 @@ func (a *AzureStorageLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -6002,6 +6124,9 @@ type AzureSynapseArtifactsLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureSynapseArtifactsLinkedService. @@ -6013,6 +6138,7 @@ func (a *AzureSynapseArtifactsLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } @@ -6206,7 +6332,7 @@ type AzureTableStorageLinkedService struct { Type *string // REQUIRED; Azure Table Storage linked service properties. - TypeProperties *AzureStorageLinkedServiceTypeProperties + TypeProperties *AzureTableStorageLinkedServiceTypeProperties // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any @@ -6222,6 +6348,9 @@ type AzureTableStorageLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type AzureTableStorageLinkedService. @@ -6233,9 +6362,36 @@ func (a *AzureTableStorageLinkedService) GetLinkedService() *LinkedService { Description: a.Description, Parameters: a.Parameters, Type: a.Type, + Version: a.Version, } } +// AzureTableStorageLinkedServiceTypeProperties - Azure Table Storage linked service properties. +type AzureTableStorageLinkedServiceTypeProperties struct { + // The Azure key vault secret reference of accountKey in connection string. + AccountKey *AzureKeyVaultSecretReference + + // The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString any + + // The credential reference containing authentication information. + Credential *CredentialReference + + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. + // Type: string. + EncryptedCredential *string + + // The Azure key vault secret reference of sasToken in sas uri. + SasToken *AzureKeyVaultSecretReference + + // SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString + // or AzureKeyVaultSecretReference. + SasURI any + + // Table service endpoint of the Azure Table Storage resource. It is mutually exclusive with connectionString, sasUri property. + ServiceEndpoint any +} + // BigDataPoolParametrizationReference - Big data pool reference type. type BigDataPoolParametrizationReference struct { // REQUIRED; Reference big data pool name. Type: string (or Expression with resultType string). @@ -6661,6 +6817,9 @@ type CassandraLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type CassandraLinkedService. @@ -6672,6 +6831,7 @@ func (c *CassandraLinkedService) GetLinkedService() *LinkedService { Description: c.Description, Parameters: c.Parameters, Type: c.Type, + Version: c.Version, } } @@ -7032,6 +7192,9 @@ type CommonDataServiceForAppsLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type CommonDataServiceForAppsLinkedService. @@ -7043,6 +7206,7 @@ func (c *CommonDataServiceForAppsLinkedService) GetLinkedService() *LinkedServic Description: c.Description, Parameters: c.Parameters, Type: c.Type, + Version: c.Version, } } @@ -7050,7 +7214,8 @@ func (c *CommonDataServiceForAppsLinkedService) GetLinkedService() *LinkedServic type CommonDataServiceForAppsLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' // for on-premises with Ifd scenario. 'AADServicePrincipal' for Server-To-Server - // authentication in online scenario. Type: string (or Expression with resultType string). + // authentication in online scenario, 'Active Directory' for Dynamics on-premises with IFD. Type: string (or Expression with + // resultType string). AuthenticationType any // REQUIRED; The deployment type of the Common Data Service for Apps instance. 'Online' for Common Data Service for Apps Online @@ -7058,6 +7223,9 @@ type CommonDataServiceForAppsLinkedServiceTypeProperties struct { // string (or Expression with resultType string). DeploymentType any + // The Active Directory domain that will verify user credentials. Type: string (or Expression with resultType string). + Domain any + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string. EncryptedCredential *string @@ -7245,6 +7413,9 @@ type ConcurLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type ConcurLinkedService. @@ -7256,6 +7427,7 @@ func (c *ConcurLinkedService) GetLinkedService() *LinkedService { Description: c.Description, Parameters: c.Parameters, Type: c.Type, + Version: c.Version, } } @@ -7406,6 +7578,18 @@ type ConnectionStateProperties struct { Status *string } +// ContinuationSettingsReference - Continuation settings for execute data flow activity. +type ContinuationSettingsReference struct { + // Continuation TTL in minutes. + ContinuationTTLInMinutes any + + // Customized checkpoint key. + CustomizedCheckpointKey any + + // Idle condition. + IdleCondition any +} + // ControlActivity - Base class for all control activities like IfCondition, ForEach , Until. type ControlActivity struct { // REQUIRED; Activity name. @@ -7672,6 +7856,9 @@ type CosmosDbLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type CosmosDbLinkedService. @@ -7683,6 +7870,7 @@ func (c *CosmosDbLinkedService) GetLinkedService() *LinkedService { Description: c.Description, Parameters: c.Parameters, Type: c.Type, + Version: c.Version, } } @@ -7810,6 +7998,9 @@ type CosmosDbMongoDbAPILinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type CosmosDbMongoDbAPILinkedService. @@ -7821,6 +8012,7 @@ func (c *CosmosDbMongoDbAPILinkedService) GetLinkedService() *LinkedService { Description: c.Description, Parameters: c.Parameters, Type: c.Type, + Version: c.Version, } } @@ -8108,6 +8300,9 @@ type CouchbaseLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type CouchbaseLinkedService. @@ -8119,6 +8314,7 @@ func (c *CouchbaseLinkedService) GetLinkedService() *LinkedService { Description: c.Description, Parameters: c.Parameters, Type: c.Type, + Version: c.Version, } } @@ -8467,6 +8663,9 @@ type CustomDataSourceLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type CustomDataSourceLinkedService. @@ -8478,6 +8677,7 @@ func (c *CustomDataSourceLinkedService) GetLinkedService() *LinkedService { Description: c.Description, Parameters: c.Parameters, Type: c.Type, + Version: c.Version, } } @@ -9390,6 +9590,9 @@ type DataworldLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type DataworldLinkedService. @@ -9401,6 +9604,7 @@ func (d *DataworldLinkedService) GetLinkedService() *LinkedService { Description: d.Description, Parameters: d.Parameters, Type: d.Type, + Version: d.Version, } } @@ -9436,6 +9640,9 @@ type Db2LinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type Db2LinkedService. @@ -9447,6 +9654,7 @@ func (d *Db2LinkedService) GetLinkedService() *LinkedService { Description: d.Description, Parameters: d.Parameters, Type: d.Type, + Version: d.Version, } } @@ -10140,6 +10348,9 @@ type DrillLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type DrillLinkedService. @@ -10151,6 +10362,7 @@ func (d *DrillLinkedService) GetLinkedService() *LinkedService { Description: d.Description, Parameters: d.Parameters, Type: d.Type, + Version: d.Version, } } @@ -10295,6 +10507,9 @@ type DynamicsAXLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type DynamicsAXLinkedService. @@ -10306,6 +10521,7 @@ func (d *DynamicsAXLinkedService) GetLinkedService() *LinkedService { Description: d.Description, Parameters: d.Parameters, Type: d.Type, + Version: d.Version, } } @@ -10529,6 +10745,9 @@ type DynamicsCrmLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type DynamicsCrmLinkedService. @@ -10540,6 +10759,7 @@ func (d *DynamicsCrmLinkedService) GetLinkedService() *LinkedService { Description: d.Description, Parameters: d.Parameters, Type: d.Type, + Version: d.Version, } } @@ -10547,7 +10767,7 @@ func (d *DynamicsCrmLinkedService) GetLinkedService() *LinkedService { type DynamicsCrmLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises // with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online - // scenario. Type: string (or Expression with resultType string). + // scenario, 'Active Directory' for Dynamics on-premises with IFD. Type: string (or Expression with resultType string). AuthenticationType any // REQUIRED; The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for @@ -10557,6 +10777,9 @@ type DynamicsCrmLinkedServiceTypeProperties struct { // The credential reference containing authentication information. Credential *CredentialReference + // The Active Directory domain that will verify user credentials. Type: string (or Expression with resultType string). + Domain any + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string. EncryptedCredential *string @@ -10770,6 +10993,9 @@ type DynamicsLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type DynamicsLinkedService. @@ -10781,6 +11007,7 @@ func (d *DynamicsLinkedService) GetLinkedService() *LinkedService { Description: d.Description, Parameters: d.Parameters, Type: d.Type, + Version: d.Version, } } @@ -10788,7 +11015,7 @@ func (d *DynamicsLinkedService) GetLinkedService() *LinkedService { type DynamicsLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Dynamics server. 'Office365' for online scenario, 'Ifd' for on-premises // with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online - // scenario. Type: string (or Expression with resultType string). + // scenario, 'Active Directory' for Dynamics on-premises with IFD. Type: string (or Expression with resultType string). AuthenticationType any // REQUIRED; The deployment type of the Dynamics instance. 'Online' for Dynamics Online and 'OnPremisesWithIfd' for Dynamics @@ -10798,6 +11025,9 @@ type DynamicsLinkedServiceTypeProperties struct { // The credential reference containing authentication information. Credential *CredentialReference + // The Active Directory domain that will verify user credentials. Type: string (or Expression with resultType string). + Domain any + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string. EncryptedCredential *string @@ -10956,6 +11186,9 @@ type EloquaLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type EloquaLinkedService. @@ -10967,6 +11200,7 @@ func (e *EloquaLinkedService) GetLinkedService() *LinkedService { Description: e.Description, Parameters: e.Parameters, Type: e.Type, + Version: e.Version, } } @@ -11342,6 +11576,9 @@ type ExecuteDataFlowActivityTypeProperties struct { // Compute properties for data flow activity. Compute *ExecuteDataFlowActivityTypePropertiesCompute + // Continuation settings for execute data flow activity. + ContinuationSettings *ContinuationSettingsReference + // Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or // Expression with resultType boolean) ContinueOnError any @@ -11466,6 +11703,9 @@ type ExecutePowerQueryActivityTypeProperties struct { // Compute properties for data flow activity. Compute *ExecuteDataFlowActivityTypePropertiesCompute + // Continuation settings for execute data flow activity. + ContinuationSettings *ContinuationSettingsReference + // Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or // Expression with resultType boolean) ContinueOnError any @@ -12086,6 +12326,9 @@ type FileServerLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type FileServerLinkedService. @@ -12097,6 +12340,7 @@ func (f *FileServerLinkedService) GetLinkedService() *LinkedService { Description: f.Description, Parameters: f.Parameters, Type: f.Type, + Version: f.Version, } } @@ -12681,6 +12925,9 @@ type FtpServerLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type FtpServerLinkedService. @@ -12692,6 +12939,7 @@ func (f *FtpServerLinkedService) GetLinkedService() *LinkedService { Description: f.Description, Parameters: f.Parameters, Type: f.Type, + Version: f.Version, } } @@ -12933,6 +13181,9 @@ type GoogleAdWordsLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type GoogleAdWordsLinkedService. @@ -12944,6 +13195,7 @@ func (g *GoogleAdWordsLinkedService) GetLinkedService() *LinkedService { Description: g.Description, Parameters: g.Parameters, Type: g.Type, + Version: g.Version, } } @@ -13153,6 +13405,9 @@ type GoogleBigQueryLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type GoogleBigQueryLinkedService. @@ -13164,6 +13419,7 @@ func (g *GoogleBigQueryLinkedService) GetLinkedService() *LinkedService { Description: g.Description, Parameters: g.Parameters, Type: g.Type, + Version: g.Version, } } @@ -13353,6 +13609,9 @@ type GoogleBigQueryV2LinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type GoogleBigQueryV2LinkedService. @@ -13364,6 +13623,7 @@ func (g *GoogleBigQueryV2LinkedService) GetLinkedService() *LinkedService { Description: g.Description, Parameters: g.Parameters, Type: g.Type, + Version: g.Version, } } @@ -13522,6 +13782,9 @@ type GoogleCloudStorageLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type GoogleCloudStorageLinkedService. @@ -13533,6 +13796,7 @@ func (g *GoogleCloudStorageLinkedService) GetLinkedService() *LinkedService { Description: g.Description, Parameters: g.Parameters, Type: g.Type, + Version: g.Version, } } @@ -13666,6 +13930,9 @@ type GoogleSheetsLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type GoogleSheetsLinkedService. @@ -13677,6 +13944,7 @@ func (g *GoogleSheetsLinkedService) GetLinkedService() *LinkedService { Description: g.Description, Parameters: g.Parameters, Type: g.Type, + Version: g.Version, } } @@ -13724,6 +13992,9 @@ type GreenplumLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type GreenplumLinkedService. @@ -13735,6 +14006,7 @@ func (g *GreenplumLinkedService) GetLinkedService() *LinkedService { Description: g.Description, Parameters: g.Parameters, Type: g.Type, + Version: g.Version, } } @@ -13879,6 +14151,9 @@ type HBaseLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type HBaseLinkedService. @@ -13890,6 +14165,7 @@ func (h *HBaseLinkedService) GetLinkedService() *LinkedService { Description: h.Description, Parameters: h.Parameters, Type: h.Type, + Version: h.Version, } } @@ -14155,6 +14431,9 @@ type HDInsightLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type HDInsightLinkedService. @@ -14166,6 +14445,7 @@ func (h *HDInsightLinkedService) GetLinkedService() *LinkedService { Description: h.Description, Parameters: h.Parameters, Type: h.Type, + Version: h.Version, } } @@ -14314,6 +14594,9 @@ type HDInsightOnDemandLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type HDInsightOnDemandLinkedService. @@ -14325,6 +14608,7 @@ func (h *HDInsightOnDemandLinkedService) GetLinkedService() *LinkedService { Description: h.Description, Parameters: h.Parameters, Type: h.Type, + Version: h.Version, } } @@ -14825,6 +15109,9 @@ type HTTPLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type HTTPLinkedService. @@ -14836,6 +15123,7 @@ func (h *HTTPLinkedService) GetLinkedService() *LinkedService { Description: h.Description, Parameters: h.Parameters, Type: h.Type, + Version: h.Version, } } @@ -15007,6 +15295,9 @@ type HdfsLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type HdfsLinkedService. @@ -15018,6 +15309,7 @@ func (h *HdfsLinkedService) GetLinkedService() *LinkedService { Description: h.Description, Parameters: h.Parameters, Type: h.Type, + Version: h.Version, } } @@ -15199,6 +15491,9 @@ type HiveLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type HiveLinkedService. @@ -15210,6 +15505,7 @@ func (h *HiveLinkedService) GetLinkedService() *LinkedService { Description: h.Description, Parameters: h.Parameters, Type: h.Type, + Version: h.Version, } } @@ -15401,6 +15697,9 @@ type HubspotLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type HubspotLinkedService. @@ -15412,6 +15711,7 @@ func (h *HubspotLinkedService) GetLinkedService() *LinkedService { Description: h.Description, Parameters: h.Parameters, Type: h.Type, + Version: h.Version, } } @@ -15550,6 +15850,125 @@ func (h *HubspotSource) GetTabularSource() *TabularSource { } } +// IcebergDataset - Iceberg dataset. +type IcebergDataset struct { + // REQUIRED; Linked service reference. + LinkedServiceName *LinkedServiceReference + + // REQUIRED; Type of dataset. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Dataset. + Annotations []any + + // Dataset description. + Description *string + + // The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder + + // Parameters for dataset. + Parameters map[string]*ParameterSpecification + + // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: + // DatasetSchemaDataElement. + Schema any + + // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure any + + // Iceberg dataset properties. + TypeProperties *IcebergDatasetTypeProperties +} + +// GetDataset implements the DatasetClassification interface for type IcebergDataset. +func (i *IcebergDataset) GetDataset() *Dataset { + return &Dataset{ + AdditionalProperties: i.AdditionalProperties, + Annotations: i.Annotations, + Description: i.Description, + Folder: i.Folder, + LinkedServiceName: i.LinkedServiceName, + Parameters: i.Parameters, + Schema: i.Schema, + Structure: i.Structure, + Type: i.Type, + } +} + +// IcebergDatasetTypeProperties - Iceberg dataset properties. +type IcebergDatasetTypeProperties struct { + // REQUIRED; The location of the iceberg storage. Setting a file name is not allowed for iceberg format. + Location DatasetLocationClassification +} + +// IcebergSink - A copy activity Iceberg sink. +type IcebergSink struct { + // REQUIRED; Copy sink type. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection any + + // Iceberg format settings. + FormatSettings *IcebergWriteSettings + + // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections any + + // Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount any + + // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + SinkRetryWait any + + // Iceberg store settings. + StoreSettings StoreWriteSettingsClassification + + // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize any + + // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + WriteBatchTimeout any +} + +// GetCopySink implements the CopySinkClassification interface for type IcebergSink. +func (i *IcebergSink) GetCopySink() *CopySink { + return &CopySink{ + AdditionalProperties: i.AdditionalProperties, + DisableMetricsCollection: i.DisableMetricsCollection, + MaxConcurrentConnections: i.MaxConcurrentConnections, + SinkRetryCount: i.SinkRetryCount, + SinkRetryWait: i.SinkRetryWait, + Type: i.Type, + WriteBatchSize: i.WriteBatchSize, + WriteBatchTimeout: i.WriteBatchTimeout, + } +} + +// IcebergWriteSettings - Iceberg write settings. +type IcebergWriteSettings struct { + // REQUIRED; The write setting type. + Type *string + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any +} + +// GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type IcebergWriteSettings. +func (i *IcebergWriteSettings) GetFormatWriteSettings() *FormatWriteSettings { + return &FormatWriteSettings{ + AdditionalProperties: i.AdditionalProperties, + Type: i.Type, + } +} + // IfConditionActivity - This activity evaluates a boolean expression and executes either the activities under the ifTrueActivities // property or the ifFalseActivities property depending on the result of the expression. type IfConditionActivity struct { @@ -15659,6 +16078,9 @@ type ImpalaLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type ImpalaLinkedService. @@ -15670,6 +16092,7 @@ func (i *ImpalaLinkedService) GetLinkedService() *LinkedService { Description: i.Description, Parameters: i.Parameters, Type: i.Type, + Version: i.Version, } } @@ -15854,6 +16277,9 @@ type InformixLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type InformixLinkedService. @@ -15865,6 +16291,7 @@ func (i *InformixLinkedService) GetLinkedService() *LinkedService { Description: i.Description, Parameters: i.Parameters, Type: i.Type, + Version: i.Version, } } @@ -16680,6 +17107,9 @@ type JiraLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type JiraLinkedService. @@ -16691,6 +17121,7 @@ func (j *JiraLinkedService) GetLinkedService() *LinkedService { Description: j.Description, Parameters: j.Parameters, Type: j.Type, + Version: j.Version, } } @@ -16852,6 +17283,9 @@ type LakeHouseLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type LakeHouseLinkedService. @@ -16863,6 +17297,7 @@ func (l *LakeHouseLinkedService) GetLinkedService() *LinkedService { Description: l.Description, Parameters: l.Parameters, Type: l.Type, + Version: l.Version, } } @@ -17264,6 +17699,9 @@ type LinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type LinkedService. @@ -17457,6 +17895,9 @@ type MagentoLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type MagentoLinkedService. @@ -17468,6 +17909,7 @@ func (m *MagentoLinkedService) GetLinkedService() *LinkedService { Description: m.Description, Parameters: m.Parameters, Type: m.Type, + Version: m.Version, } } @@ -18087,6 +18529,9 @@ type MariaDBLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type MariaDBLinkedService. @@ -18098,6 +18543,7 @@ func (m *MariaDBLinkedService) GetLinkedService() *LinkedService { Description: m.Description, Parameters: m.Parameters, Type: m.Type, + Version: m.Version, } } @@ -18110,7 +18556,8 @@ type MariaDBLinkedServiceTypeProperties struct { Database any // The version of the MariaDB driver. Type: string. V1 or empty for legacy driver, V2 for new driver. V1 can support connection - // string and property bag, V2 can only support connection string. + // string and property bag, V2 can only support connection string. The legacy + // driver is scheduled for deprecation by October 2024. DriverVersion any // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. @@ -18123,9 +18570,18 @@ type MariaDBLinkedServiceTypeProperties struct { // The port for the connection. Type: integer. Port any + // This option specifies whether the driver uses TLS encryption and verification when connecting to MariaDB. E.g., SSLMode=. + // Options: DISABLED (0) / PREFERRED (1) (Default) / REQUIRED (2) / VERIFYCA (3) + // / VERIFYIDENTITY (4), REQUIRED (2) is recommended to only allow connections encrypted with SSL/TLS. + SSLMode any + // Server name for connection. Type: string. Server any + // This option specifies whether to use a CA certificate from the system trust store, or from a specified PEM file. E.g. UseSystemTrustStore=; + // Options: Enabled (1) / Disabled (0) (Default) + UseSystemTrustStore any + // Username for authentication. Type: string. Username any } @@ -18258,6 +18714,9 @@ type MarketoLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type MarketoLinkedService. @@ -18269,6 +18728,7 @@ func (m *MarketoLinkedService) GetLinkedService() *LinkedService { Description: m.Description, Parameters: m.Parameters, Type: m.Type, + Version: m.Version, } } @@ -18435,6 +18895,9 @@ type MicrosoftAccessLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type MicrosoftAccessLinkedService. @@ -18446,6 +18909,7 @@ func (m *MicrosoftAccessLinkedService) GetLinkedService() *LinkedService { Description: m.Description, Parameters: m.Parameters, Type: m.Type, + Version: m.Version, } } @@ -18690,6 +19154,9 @@ type MongoDbAtlasLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type MongoDbAtlasLinkedService. @@ -18701,6 +19168,7 @@ func (m *MongoDbAtlasLinkedService) GetLinkedService() *LinkedService { Description: m.Description, Parameters: m.Parameters, Type: m.Type, + Version: m.Version, } } @@ -18915,6 +19383,9 @@ type MongoDbLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type MongoDbLinkedService. @@ -18926,6 +19397,7 @@ func (m *MongoDbLinkedService) GetLinkedService() *LinkedService { Description: m.Description, Parameters: m.Parameters, Type: m.Type, + Version: m.Version, } } @@ -19083,6 +19555,9 @@ type MongoDbV2LinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type MongoDbV2LinkedService. @@ -19094,6 +19569,7 @@ func (m *MongoDbV2LinkedService) GetLinkedService() *LinkedService { Description: m.Description, Parameters: m.Parameters, Type: m.Type, + Version: m.Version, } } @@ -19262,6 +19738,9 @@ type MySQLLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type MySQLLinkedService. @@ -19273,6 +19752,7 @@ func (m *MySQLLinkedService) GetLinkedService() *LinkedService { Description: m.Description, Parameters: m.Parameters, Type: m.Type, + Version: m.Version, } } @@ -19445,6 +19925,9 @@ type NetezzaLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type NetezzaLinkedService. @@ -19456,6 +19939,7 @@ func (n *NetezzaLinkedService) GetLinkedService() *LinkedService { Description: n.Description, Parameters: n.Parameters, Type: n.Type, + Version: n.Version, } } @@ -19642,6 +20126,9 @@ type ODataLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type ODataLinkedService. @@ -19653,6 +20140,7 @@ func (o *ODataLinkedService) GetLinkedService() *LinkedService { Description: o.Description, Parameters: o.Parameters, Type: o.Type, + Version: o.Version, } } @@ -19832,6 +20320,9 @@ type OdbcLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type OdbcLinkedService. @@ -19843,6 +20334,7 @@ func (o *OdbcLinkedService) GetLinkedService() *LinkedService { Description: o.Description, Parameters: o.Parameters, Type: o.Type, + Version: o.Version, } } @@ -20108,6 +20600,9 @@ type Office365LinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type Office365LinkedService. @@ -20119,6 +20614,7 @@ func (o *Office365LinkedService) GetLinkedService() *LinkedService { Description: o.Description, Parameters: o.Parameters, Type: o.Type, + Version: o.Version, } } @@ -20195,126 +20691,6 @@ func (o *Office365Source) GetCopySource() *CopySource { } } -// Operation - Azure Data Factory API operation definition. -type Operation struct { - // Metadata associated with the operation. - Display *OperationDisplay - - // Operation name: {provider}/{resource}/{operation} - Name *string - - // The intended executor of the operation. - Origin *string - - // Additional details about the operation. - Properties *OperationProperties -} - -// OperationDisplay - Metadata associated with the operation. -type OperationDisplay struct { - // The description of the operation. - Description *string - - // The type of operation: get, read, delete, etc. - Operation *string - - // The name of the provider. - Provider *string - - // The name of the resource type on which the operation is performed. - Resource *string -} - -// OperationListResponse - A list of operations that can be performed by the Data Factory service. -type OperationListResponse struct { - // The link to the next page of results, if any remaining results exist. - NextLink *string - - // List of Data Factory operations supported by the Data Factory resource provider. - Value []*Operation -} - -// OperationLogSpecification - Details about an operation related to logs. -type OperationLogSpecification struct { - // Blobs created in the customer storage account, per hour. - BlobDuration *string - - // Localized display name. - DisplayName *string - - // The name of the log category. - Name *string -} - -// OperationMetricAvailability - Defines how often data for a metric becomes available. -type OperationMetricAvailability struct { - // Blob created in the customer storage account, per hour. - BlobDuration *string - - // The granularity for the metric. - TimeGrain *string -} - -// OperationMetricDimension - Defines the metric dimension. -type OperationMetricDimension struct { - // The display name of the metric dimension. - DisplayName *string - - // The name of the dimension for the metric. - Name *string - - // Whether the dimension should be exported to Azure Monitor. - ToBeExportedForShoebox *bool -} - -// OperationMetricSpecification - Details about an operation related to metrics. -type OperationMetricSpecification struct { - // The type of metric aggregation. - AggregationType *string - - // Defines how often data for metrics becomes available. - Availabilities []*OperationMetricAvailability - - // Defines the metric dimension. - Dimensions []*OperationMetricDimension - - // The description of the metric. - DisplayDescription *string - - // Localized display name of the metric. - DisplayName *string - - // Whether or not the service is using regional MDM accounts. - EnableRegionalMdmAccount *string - - // The name of the metric. - Name *string - - // The name of the MDM account. - SourceMdmAccount *string - - // The name of the MDM namespace. - SourceMdmNamespace *string - - // The unit that the metric is measured in. - Unit *string -} - -// OperationProperties - Additional details about an operation. -type OperationProperties struct { - // Details about a service operation. - ServiceSpecification *OperationServiceSpecification -} - -// OperationServiceSpecification - Details about a service operation. -type OperationServiceSpecification struct { - // Details about operations related to logs. - LogSpecifications []*OperationLogSpecification - - // Details about operations related to metrics. - MetricSpecifications []*OperationMetricSpecification -} - // OracleCloudStorageLinkedService - Linked service for Oracle Cloud Storage. type OracleCloudStorageLinkedService struct { // REQUIRED; Type of linked service. @@ -20337,6 +20713,9 @@ type OracleCloudStorageLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type OracleCloudStorageLinkedService. @@ -20348,6 +20727,7 @@ func (o *OracleCloudStorageLinkedService) GetLinkedService() *LinkedService { Description: o.Description, Parameters: o.Parameters, Type: o.Type, + Version: o.Version, } } @@ -20481,6 +20861,9 @@ type OracleLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type OracleLinkedService. @@ -20492,6 +20875,7 @@ func (o *OracleLinkedService) GetLinkedService() *LinkedService { Description: o.Description, Parameters: o.Parameters, Type: o.Type, + Version: o.Version, } } @@ -20548,6 +20932,9 @@ type OracleServiceCloudLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type OracleServiceCloudLinkedService. @@ -20559,6 +20946,7 @@ func (o *OracleServiceCloudLinkedService) GetLinkedService() *LinkedService { Description: o.Description, Parameters: o.Parameters, Type: o.Type, + Version: o.Version, } } @@ -21305,6 +21693,9 @@ type PaypalLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type PaypalLinkedService. @@ -21316,6 +21707,7 @@ func (p *PaypalLinkedService) GetLinkedService() *LinkedService { Description: p.Description, Parameters: p.Parameters, Type: p.Type, + Version: p.Version, } } @@ -21485,6 +21877,9 @@ type PhoenixLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type PhoenixLinkedService. @@ -21496,6 +21891,7 @@ func (p *PhoenixLinkedService) GetLinkedService() *LinkedService { Description: p.Description, Parameters: p.Parameters, Type: p.Type, + Version: p.Version, } } @@ -21870,6 +22266,9 @@ type PostgreSQLLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type PostgreSQLLinkedService. @@ -21881,6 +22280,7 @@ func (p *PostgreSQLLinkedService) GetLinkedService() *LinkedService { Description: p.Description, Parameters: p.Parameters, Type: p.Type, + Version: p.Version, } } @@ -22037,6 +22437,9 @@ type PostgreSQLV2LinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type PostgreSQLV2LinkedService. @@ -22048,11 +22451,15 @@ func (p *PostgreSQLV2LinkedService) GetLinkedService() *LinkedService { Description: p.Description, Parameters: p.Parameters, Type: p.Type, + Version: p.Version, } } // PostgreSQLV2LinkedServiceTypeProperties - PostgreSqlV2 linked service properties. type PostgreSQLV2LinkedServiceTypeProperties struct { + // REQUIRED; The authentication type to use. Type: string. + AuthenticationType any + // REQUIRED; Database name for connection. Type: string. Database any @@ -22337,6 +22744,9 @@ type PrestoLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type PrestoLinkedService. @@ -22348,6 +22758,7 @@ func (p *PrestoLinkedService) GetLinkedService() *LinkedService { Description: p.Description, Parameters: p.Parameters, Type: p.Type, + Version: p.Version, } } @@ -22653,6 +23064,9 @@ type QuickBooksLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type QuickBooksLinkedService. @@ -22664,6 +23078,7 @@ func (q *QuickBooksLinkedService) GetLinkedService() *LinkedService { Description: q.Description, Parameters: q.Parameters, Type: q.Type, + Version: q.Version, } } @@ -22827,6 +23242,9 @@ type QuickbaseLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type QuickbaseLinkedService. @@ -22838,6 +23256,7 @@ func (q *QuickbaseLinkedService) GetLinkedService() *LinkedService { Description: q.Description, Parameters: q.Parameters, Type: q.Type, + Version: q.Version, } } @@ -23092,6 +23511,9 @@ type ResponsysLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type ResponsysLinkedService. @@ -23103,6 +23525,7 @@ func (r *ResponsysLinkedService) GetLinkedService() *LinkedService { Description: r.Description, Parameters: r.Parameters, Type: r.Type, + Version: r.Version, } } @@ -23330,6 +23753,9 @@ type RestServiceLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type RestServiceLinkedService. @@ -23341,6 +23767,7 @@ func (r *RestServiceLinkedService) GetLinkedService() *LinkedService { Description: r.Description, Parameters: r.Parameters, Type: r.Type, + Version: r.Version, } } @@ -23391,6 +23818,19 @@ type RestServiceLinkedServiceTypeProperties struct { // resultType string). Scope any + // 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 any + + // Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression + // with resultType string). + ServicePrincipalEmbeddedCert SecretBaseClassification + + // Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. + // Type: string (or Expression with resultType string). + ServicePrincipalEmbeddedCertPassword SecretBaseClassification + // The application's client ID used in AadServicePrincipal authentication type. Type: string (or Expression with resultType // string). ServicePrincipalID any @@ -23936,6 +24376,9 @@ type SQLServerLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SQLServerLinkedService. @@ -23947,6 +24390,7 @@ func (s *SQLServerLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -23984,6 +24428,9 @@ type SQLServerLinkedServiceTypeProperties struct { // The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString any + // The credential reference containing authentication information. + Credential *CredentialReference + // The name of the database, used by recommended version. Type: string (or Expression with resultType string). Database any @@ -24634,6 +25081,9 @@ type SalesforceLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SalesforceLinkedService. @@ -24645,6 +25095,7 @@ func (s *SalesforceLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -24694,6 +25145,9 @@ type SalesforceMarketingCloudLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SalesforceMarketingCloudLinkedService. @@ -24705,6 +25159,7 @@ func (s *SalesforceMarketingCloudLinkedService) GetLinkedService() *LinkedServic Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -24922,6 +25377,9 @@ type SalesforceServiceCloudLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SalesforceServiceCloudLinkedService. @@ -24933,6 +25391,7 @@ func (s *SalesforceServiceCloudLinkedService) GetLinkedService() *LinkedService Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -25140,6 +25599,9 @@ type SalesforceServiceCloudV2LinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SalesforceServiceCloudV2LinkedService. @@ -25151,6 +25613,7 @@ func (s *SalesforceServiceCloudV2LinkedService) GetLinkedService() *LinkedServic Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -25484,6 +25947,9 @@ type SalesforceV2LinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SalesforceV2LinkedService. @@ -25495,6 +25961,7 @@ func (s *SalesforceV2LinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -25660,6 +26127,10 @@ type SalesforceV2Source struct { // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections any + // Page size for each http request, too large pageSize will caused timeout, default 300,000. Type: integer (or Expression + // with resultType integer). + PageSize any + // You can only use Salesforce Object Query Language (SOQL) query with limitations. For SOQL limitations, see this article: // https://developer.salesforce.com/docs/atlas.en-us.apiasynch.meta/api // asynch/queries.htm#SOQL%20Considerations. If query is not specified, all the data of the Salesforce object specified in @@ -25728,6 +26199,9 @@ type SapBWLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SapBWLinkedService. @@ -25739,6 +26213,7 @@ func (s *SapBWLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -25891,6 +26366,9 @@ type SapCloudForCustomerLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SapCloudForCustomerLinkedService. @@ -25902,6 +26380,7 @@ func (s *SapCloudForCustomerLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -26111,6 +26590,9 @@ type SapEccLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SapEccLinkedService. @@ -26122,6 +26604,7 @@ func (s *SapEccLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -26282,6 +26765,9 @@ type SapHanaLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SapHanaLinkedService. @@ -26293,6 +26779,7 @@ func (s *SapHanaLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -26472,6 +26959,9 @@ type SapOdpLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SapOdpLinkedService. @@ -26483,6 +26973,7 @@ func (s *SapOdpLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -26699,6 +27190,9 @@ type SapOpenHubLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SapOpenHubLinkedService. @@ -26710,6 +27204,7 @@ func (s *SapOpenHubLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -26914,6 +27409,9 @@ type SapTableLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SapTableLinkedService. @@ -26925,6 +27423,7 @@ func (s *SapTableLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -27613,6 +28112,9 @@ type ServiceNowLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type ServiceNowLinkedService. @@ -27624,6 +28126,7 @@ func (s *ServiceNowLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -27790,6 +28293,9 @@ type ServiceNowV2LinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type ServiceNowV2LinkedService. @@ -27801,6 +28307,7 @@ func (s *ServiceNowV2LinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -27902,6 +28409,9 @@ type ServiceNowV2Source struct { // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). MaxConcurrentConnections any + // Page size of the result. Type: integer (or Expression with resultType integer). + PageSize any + // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). QueryTimeout any @@ -28157,6 +28667,9 @@ type SftpServerLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SftpServerLinkedService. @@ -28168,6 +28681,7 @@ func (s *SftpServerLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -28283,6 +28797,9 @@ type SharePointOnlineListLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SharePointOnlineListLinkedService. @@ -28294,6 +28811,7 @@ func (s *SharePointOnlineListLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -28304,10 +28822,6 @@ type SharePointOnlineListLinkedServiceTypeProperties struct { // string). ServicePrincipalID any - // REQUIRED; The client secret of your application registered in Azure Active Directory. Type: string (or Expression with - // resultType string). - ServicePrincipalKey SecretBaseClassification - // REQUIRED; The URL of the SharePoint Online site. For example, https://contoso.sharepoint.com/sites/siteName. Type: string // (or Expression with resultType string). SiteURL any @@ -28319,6 +28833,23 @@ type SharePointOnlineListLinkedServiceTypeProperties struct { // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string. EncryptedCredential *string + + // 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 any + + // Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression + // with resultType string). + ServicePrincipalEmbeddedCert SecretBaseClassification + + // Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. + // Type: string (or Expression with resultType string). + ServicePrincipalEmbeddedCertPassword SecretBaseClassification + + // The client secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType + // string). + ServicePrincipalKey SecretBaseClassification } // SharePointOnlineListResourceDataset - The sharepoint online list resource dataset. @@ -28434,6 +28965,9 @@ type ShopifyLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type ShopifyLinkedService. @@ -28445,6 +28979,7 @@ func (s *ShopifyLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -28609,6 +29144,9 @@ type SmartsheetLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SmartsheetLinkedService. @@ -28620,6 +29158,7 @@ func (s *SmartsheetLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -28708,6 +29247,10 @@ type SnowflakeExportCopyCommand struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any + + // The name of the snowflake storage integration to use for the copy operation. Type: string (or Expression with resultType + // string). + StorageIntegration any } // GetExportSettings implements the ExportSettingsClassification interface for type SnowflakeExportCopyCommand. @@ -28735,6 +29278,10 @@ type SnowflakeImportCopyCommand struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]any + + // The name of the snowflake storage integration to use for the copy operation. Type: string (or Expression with resultType + // string). + StorageIntegration any } // GetImportSettings implements the ImportSettingsClassification interface for type SnowflakeImportCopyCommand. @@ -28767,6 +29314,9 @@ type SnowflakeLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SnowflakeLinkedService. @@ -28778,6 +29328,7 @@ func (s *SnowflakeLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -28818,6 +29369,9 @@ type SnowflakeLinkedV2ServiceTypeProperties struct { // Type: string. EncryptedCredential *string + // The host name of the Snowflake account. + Host any + // The Azure key vault secret reference of password in connection string. Password SecretBaseClassification @@ -28994,6 +29548,9 @@ type SnowflakeV2LinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SnowflakeV2LinkedService. @@ -29005,6 +29562,7 @@ func (s *SnowflakeV2LinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -29137,6 +29695,9 @@ type SparkLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SparkLinkedService. @@ -29148,6 +29709,7 @@ func (s *SparkLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -29329,6 +29891,9 @@ type SquareLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SquareLinkedService. @@ -29340,6 +29905,7 @@ func (s *SquareLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -29895,6 +30461,9 @@ type SybaseLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type SybaseLinkedService. @@ -29906,6 +30475,7 @@ func (s *SybaseLinkedService) GetLinkedService() *LinkedService { Description: s.Description, Parameters: s.Parameters, Type: s.Type, + Version: s.Version, } } @@ -30406,6 +30976,9 @@ type TeamDeskLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type TeamDeskLinkedService. @@ -30417,6 +30990,7 @@ func (t *TeamDeskLinkedService) GetLinkedService() *LinkedService { Description: t.Description, Parameters: t.Parameters, Type: t.Type, + Version: t.Version, } } @@ -30464,6 +31038,9 @@ type TeradataLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type TeradataLinkedService. @@ -30475,6 +31052,7 @@ func (t *TeradataLinkedService) GetLinkedService() *LinkedService { Description: t.Description, Parameters: t.Parameters, Type: t.Type, + Version: t.Version, } } @@ -30991,6 +31569,9 @@ type TwilioLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type TwilioLinkedService. @@ -31002,6 +31583,7 @@ func (t *TwilioLinkedService) GetLinkedService() *LinkedService { Description: t.Description, Parameters: t.Parameters, Type: t.Type, + Version: t.Version, } } @@ -31259,6 +31841,9 @@ type VerticaLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type VerticaLinkedService. @@ -31270,6 +31855,7 @@ func (v *VerticaLinkedService) GetLinkedService() *LinkedService { Description: v.Description, Parameters: v.Parameters, Type: v.Type, + Version: v.Version, } } @@ -31278,12 +31864,24 @@ type VerticaLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. ConnectionString any + // Database name for connection. Type: string. + Database any + // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string. EncryptedCredential *string + // The port for the connection. Type: integer. + Port any + // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference + + // Server name for connection. Type: string. + Server any + + // Username for authentication. Type: string. + UID any } // VerticaSource - A copy activity Vertica source. @@ -31479,6 +32077,9 @@ type WarehouseLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type WarehouseLinkedService. @@ -31490,6 +32091,7 @@ func (w *WarehouseLinkedService) GetLinkedService() *LinkedService { Description: w.Description, Parameters: w.Parameters, Type: w.Type, + Version: w.Version, } } @@ -32042,6 +32644,9 @@ type WebLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type WebLinkedService. @@ -32053,6 +32658,7 @@ func (w *WebLinkedService) GetLinkedService() *LinkedService { Description: w.Description, Parameters: w.Parameters, Type: w.Type, + Version: w.Version, } } @@ -32364,6 +32970,9 @@ type XeroLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type XeroLinkedService. @@ -32375,6 +32984,7 @@ func (x *XeroLinkedService) GetLinkedService() *LinkedService { Description: x.Description, Parameters: x.Parameters, Type: x.Type, + Version: x.Version, } } @@ -32536,6 +33146,9 @@ type ZendeskLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type ZendeskLinkedService. @@ -32547,6 +33160,7 @@ func (z *ZendeskLinkedService) GetLinkedService() *LinkedService { Description: z.Description, Parameters: z.Parameters, Type: z.Type, + Version: z.Version, } } @@ -32614,6 +33228,9 @@ type ZohoLinkedService struct { // Parameters for linked service. Parameters map[string]*ParameterSpecification + + // Version of the linked service. + Version *string } // GetLinkedService implements the LinkedServiceClassification interface for type ZohoLinkedService. @@ -32625,6 +33242,7 @@ func (z *ZohoLinkedService) GetLinkedService() *LinkedService { Description: z.Description, Parameters: z.Parameters, Type: z.Type, + Version: z.Version, } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go b/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go index 55d499f991e1..8a20481e0924 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go @@ -377,6 +377,7 @@ func (a AmazonMWSLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AmazonMWS" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -412,6 +413,9 @@ func (a *AmazonMWSLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -681,6 +685,7 @@ func (a AmazonRdsForOracleLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AmazonRdsForOracle" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -716,6 +721,9 @@ func (a *AmazonRdsForOracleLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -965,6 +973,7 @@ func (a AmazonRdsForSQLServerLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AmazonRdsForSqlServer" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -1000,6 +1009,9 @@ func (a *AmazonRdsForSQLServerLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -1349,6 +1361,7 @@ func (a AmazonRedshiftLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AmazonRedshift" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -1384,6 +1397,9 @@ func (a *AmazonRedshiftLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -1641,6 +1657,7 @@ func (a AmazonS3CompatibleLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AmazonS3Compatible" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -1676,6 +1693,9 @@ func (a *AmazonS3CompatibleLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -2023,6 +2043,7 @@ func (a AmazonS3LinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AmazonS3" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -2058,6 +2079,9 @@ func (a *AmazonS3LinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -2280,6 +2304,7 @@ func (a AppFiguresLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AppFigures" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -2315,6 +2340,9 @@ func (a *AppFiguresLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -2505,6 +2533,7 @@ func (a AsanaLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "Asana" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -2540,6 +2569,9 @@ func (a *AsanaLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -3013,6 +3045,7 @@ func (a AzureBatchLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureBatch" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -3048,6 +3081,9 @@ func (a *AzureBatchLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -3364,6 +3400,7 @@ func (a AzureBlobFSLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureBlobFS" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -3399,6 +3436,9 @@ func (a *AzureBlobFSLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -3843,6 +3883,7 @@ func (a AzureBlobStorageLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureBlobStorage" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -3878,6 +3919,9 @@ func (a *AzureBlobStorageLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -4326,6 +4370,7 @@ func (a AzureDataExplorerLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureDataExplorer" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -4361,6 +4406,9 @@ func (a *AzureDataExplorerLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -4661,6 +4709,7 @@ func (a AzureDataLakeAnalyticsLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureDataLakeAnalytics" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -4696,6 +4745,9 @@ func (a *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -4891,6 +4943,7 @@ func (a AzureDataLakeStoreLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureDataLakeStore" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -4926,6 +4979,9 @@ func (a *AzureDataLakeStoreLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -5563,6 +5619,7 @@ func (a AzureDatabricksDeltaLakeLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureDatabricksDeltaLake" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -5598,6 +5655,9 @@ func (a *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(data []byte) error case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -5812,6 +5872,7 @@ func (a AzureDatabricksLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureDatabricks" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -5847,6 +5908,9 @@ func (a *AzureDatabricksLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -5973,6 +6037,7 @@ func (a AzureFileStorageLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureFileStorage" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -6008,6 +6073,9 @@ func (a *AzureFileStorageLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -6031,12 +6099,14 @@ func (a AzureFileStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, erro objectMap := make(map[string]any) populate(objectMap, "accountKey", a.AccountKey) populateAny(objectMap, "connectionString", a.ConnectionString) + populate(objectMap, "credential", a.Credential) populate(objectMap, "encryptedCredential", a.EncryptedCredential) populateAny(objectMap, "fileShare", a.FileShare) populateAny(objectMap, "host", a.Host) populate(objectMap, "password", a.Password) populate(objectMap, "sasToken", a.SasToken) populateAny(objectMap, "sasUri", a.SasURI) + populateAny(objectMap, "serviceEndpoint", a.ServiceEndpoint) populateAny(objectMap, "snapshot", a.Snapshot) populateAny(objectMap, "userId", a.UserID) return json.Marshal(objectMap) @@ -6057,6 +6127,9 @@ func (a *AzureFileStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) case "connectionString": err = unpopulate(val, "ConnectionString", &a.ConnectionString) delete(rawMsg, key) + case "credential": + err = unpopulate(val, "Credential", &a.Credential) + delete(rawMsg, key) case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &a.EncryptedCredential) delete(rawMsg, key) @@ -6075,6 +6148,9 @@ func (a *AzureFileStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) case "sasUri": err = unpopulate(val, "SasURI", &a.SasURI) delete(rawMsg, key) + case "serviceEndpoint": + err = unpopulate(val, "ServiceEndpoint", &a.ServiceEndpoint) + delete(rawMsg, key) case "snapshot": err = unpopulate(val, "Snapshot", &a.Snapshot) delete(rawMsg, key) @@ -6413,6 +6489,7 @@ func (a AzureFunctionLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureFunction" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -6448,6 +6525,9 @@ func (a *AzureFunctionLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -6522,6 +6602,7 @@ func (a AzureKeyVaultLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureKeyVault" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -6557,6 +6638,9 @@ func (a *AzureKeyVaultLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -6900,6 +6984,7 @@ func (a AzureMLLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureML" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -6935,6 +7020,9 @@ func (a *AzureMLLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -7017,6 +7105,7 @@ func (a AzureMLServiceLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureMLService" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -7052,6 +7141,9 @@ func (a *AzureMLServiceLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -7278,6 +7370,7 @@ func (a AzureMariaDBLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureMariaDB" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -7313,6 +7406,9 @@ func (a *AzureMariaDBLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -7519,6 +7615,7 @@ func (a AzureMySQLLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureMySql" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -7554,6 +7651,9 @@ func (a *AzureMySQLLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -7861,6 +7961,7 @@ func (a AzurePostgreSQLLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzurePostgreSql" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -7896,6 +7997,9 @@ func (a *AzurePostgreSQLLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -8273,6 +8377,7 @@ func (a AzureSQLDWLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureSqlDW" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -8308,6 +8413,9 @@ func (a *AzureSQLDWLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -8591,6 +8699,7 @@ func (a AzureSQLDatabaseLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureSqlDatabase" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -8626,6 +8735,9 @@ func (a *AzureSQLDatabaseLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -8804,6 +8916,7 @@ func (a AzureSQLMILinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureSqlMI" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -8839,6 +8952,9 @@ func (a *AzureSQLMILinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -9602,6 +9718,7 @@ func (a AzureSearchLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureSearch" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -9637,6 +9754,9 @@ func (a *AzureSearchLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -9699,6 +9819,7 @@ func (a AzureStorageLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureStorage" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -9734,6 +9855,9 @@ func (a *AzureStorageLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -9804,6 +9928,7 @@ func (a AzureSynapseArtifactsLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureSynapseArtifacts" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -9839,6 +9964,9 @@ func (a *AzureSynapseArtifactsLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -10158,6 +10286,7 @@ func (a AzureTableStorageLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", a.Parameters) objectMap["type"] = "AzureTableStorage" populate(objectMap, "typeProperties", a.TypeProperties) + populate(objectMap, "version", a.Version) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { objectMap[key] = val @@ -10193,6 +10322,9 @@ func (a *AzureTableStorageLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &a.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + delete(rawMsg, key) default: if a.AdditionalProperties == nil { a.AdditionalProperties = map[string]any{} @@ -10211,6 +10343,57 @@ func (a *AzureTableStorageLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureTableStorageLinkedServiceTypeProperties. +func (a AzureTableStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "accountKey", a.AccountKey) + populateAny(objectMap, "connectionString", a.ConnectionString) + populate(objectMap, "credential", a.Credential) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "sasToken", a.SasToken) + populateAny(objectMap, "sasUri", a.SasURI) + populateAny(objectMap, "serviceEndpoint", a.ServiceEndpoint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureTableStorageLinkedServiceTypeProperties. +func (a *AzureTableStorageLinkedServiceTypeProperties) 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", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "accountKey": + err = unpopulate(val, "AccountKey", &a.AccountKey) + delete(rawMsg, key) + case "connectionString": + err = unpopulate(val, "ConnectionString", &a.ConnectionString) + delete(rawMsg, key) + case "credential": + err = unpopulate(val, "Credential", &a.Credential) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &a.EncryptedCredential) + delete(rawMsg, key) + case "sasToken": + err = unpopulate(val, "SasToken", &a.SasToken) + delete(rawMsg, key) + case "sasUri": + err = unpopulate(val, "SasURI", &a.SasURI) + delete(rawMsg, key) + case "serviceEndpoint": + err = unpopulate(val, "ServiceEndpoint", &a.ServiceEndpoint) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type BigDataPoolParametrizationReference. func (b BigDataPoolParametrizationReference) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -10923,6 +11106,7 @@ func (c CassandraLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", c.Parameters) objectMap["type"] = "Cassandra" populate(objectMap, "typeProperties", c.TypeProperties) + populate(objectMap, "version", c.Version) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -10958,6 +11142,9 @@ func (c *CassandraLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &c.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &c.Version) + delete(rawMsg, key) default: if c.AdditionalProperties == nil { c.AdditionalProperties = map[string]any{} @@ -11638,6 +11825,7 @@ func (c CommonDataServiceForAppsLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", c.Parameters) objectMap["type"] = "CommonDataServiceForApps" populate(objectMap, "typeProperties", c.TypeProperties) + populate(objectMap, "version", c.Version) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -11673,6 +11861,9 @@ func (c *CommonDataServiceForAppsLinkedService) UnmarshalJSON(data []byte) error case "typeProperties": err = unpopulate(val, "TypeProperties", &c.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &c.Version) + delete(rawMsg, key) default: if c.AdditionalProperties == nil { c.AdditionalProperties = map[string]any{} @@ -11696,6 +11887,7 @@ func (c CommonDataServiceForAppsLinkedServiceTypeProperties) MarshalJSON() ([]by objectMap := make(map[string]any) populateAny(objectMap, "authenticationType", c.AuthenticationType) populateAny(objectMap, "deploymentType", c.DeploymentType) + populateAny(objectMap, "domain", c.Domain) populate(objectMap, "encryptedCredential", c.EncryptedCredential) populateAny(objectMap, "hostName", c.HostName) populateAny(objectMap, "organizationName", c.OrganizationName) @@ -11724,6 +11916,9 @@ func (c *CommonDataServiceForAppsLinkedServiceTypeProperties) UnmarshalJSON(data case "deploymentType": err = unpopulate(val, "DeploymentType", &c.DeploymentType) delete(rawMsg, key) + case "domain": + err = unpopulate(val, "Domain", &c.Domain) + delete(rawMsg, key) case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &c.EncryptedCredential) delete(rawMsg, key) @@ -11988,6 +12183,7 @@ func (c ConcurLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", c.Parameters) objectMap["type"] = "Concur" populate(objectMap, "typeProperties", c.TypeProperties) + populate(objectMap, "version", c.Version) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -12023,6 +12219,9 @@ func (c *ConcurLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &c.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &c.Version) + delete(rawMsg, key) default: if c.AdditionalProperties == nil { c.AdditionalProperties = map[string]any{} @@ -12275,6 +12474,41 @@ func (c *ConnectionStateProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ContinuationSettingsReference. +func (c ContinuationSettingsReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "continuationTtlInMinutes", c.ContinuationTTLInMinutes) + populateAny(objectMap, "customizedCheckpointKey", c.CustomizedCheckpointKey) + populateAny(objectMap, "idleCondition", c.IdleCondition) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContinuationSettingsReference. +func (c *ContinuationSettingsReference) 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", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "continuationTtlInMinutes": + err = unpopulate(val, "ContinuationTTLInMinutes", &c.ContinuationTTLInMinutes) + delete(rawMsg, key) + case "customizedCheckpointKey": + err = unpopulate(val, "CustomizedCheckpointKey", &c.CustomizedCheckpointKey) + delete(rawMsg, key) + case "idleCondition": + err = unpopulate(val, "IdleCondition", &c.IdleCondition) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ControlActivity. func (c ControlActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -12720,6 +12954,7 @@ func (c CosmosDbLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", c.Parameters) objectMap["type"] = "CosmosDb" populate(objectMap, "typeProperties", c.TypeProperties) + populate(objectMap, "version", c.Version) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -12755,6 +12990,9 @@ func (c *CosmosDbLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &c.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &c.Version) + delete(rawMsg, key) default: if c.AdditionalProperties == nil { c.AdditionalProperties = map[string]any{} @@ -12954,6 +13192,7 @@ func (c CosmosDbMongoDbAPILinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", c.Parameters) objectMap["type"] = "CosmosDbMongoDbApi" populate(objectMap, "typeProperties", c.TypeProperties) + populate(objectMap, "version", c.Version) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -12989,6 +13228,9 @@ func (c *CosmosDbMongoDbAPILinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &c.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &c.Version) + delete(rawMsg, key) default: if c.AdditionalProperties == nil { c.AdditionalProperties = map[string]any{} @@ -13448,6 +13690,7 @@ func (c CouchbaseLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", c.Parameters) objectMap["type"] = "Couchbase" populate(objectMap, "typeProperties", c.TypeProperties) + populate(objectMap, "version", c.Version) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -13483,6 +13726,9 @@ func (c *CouchbaseLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &c.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &c.Version) + delete(rawMsg, key) default: if c.AdditionalProperties == nil { c.AdditionalProperties = map[string]any{} @@ -14155,6 +14401,7 @@ func (c CustomDataSourceLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", c.Parameters) objectMap["type"] = "CustomDataSource" populateAny(objectMap, "typeProperties", c.TypeProperties) + populate(objectMap, "version", c.Version) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -14190,6 +14437,9 @@ func (c *CustomDataSourceLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &c.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &c.Version) + delete(rawMsg, key) default: if c.AdditionalProperties == nil { c.AdditionalProperties = map[string]any{} @@ -16055,6 +16305,7 @@ func (d DataworldLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", d.Parameters) objectMap["type"] = "Dataworld" populate(objectMap, "typeProperties", d.TypeProperties) + populate(objectMap, "version", d.Version) if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { objectMap[key] = val @@ -16090,6 +16341,9 @@ func (d *DataworldLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &d.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &d.Version) + delete(rawMsg, key) default: if d.AdditionalProperties == nil { d.AdditionalProperties = map[string]any{} @@ -16148,6 +16402,7 @@ func (d Db2LinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", d.Parameters) objectMap["type"] = "Db2" populate(objectMap, "typeProperties", d.TypeProperties) + populate(objectMap, "version", d.Version) if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { objectMap[key] = val @@ -16183,6 +16438,9 @@ func (d *Db2LinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &d.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &d.Version) + delete(rawMsg, key) default: if d.AdditionalProperties == nil { d.AdditionalProperties = map[string]any{} @@ -17335,6 +17593,7 @@ func (d DrillLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", d.Parameters) objectMap["type"] = "Drill" populate(objectMap, "typeProperties", d.TypeProperties) + populate(objectMap, "version", d.Version) if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { objectMap[key] = val @@ -17370,6 +17629,9 @@ func (d *DrillLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &d.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &d.Version) + delete(rawMsg, key) default: if d.AdditionalProperties == nil { d.AdditionalProperties = map[string]any{} @@ -17576,6 +17838,7 @@ func (d DynamicsAXLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", d.Parameters) objectMap["type"] = "DynamicsAX" populate(objectMap, "typeProperties", d.TypeProperties) + populate(objectMap, "version", d.Version) if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { objectMap[key] = val @@ -17611,6 +17874,9 @@ func (d *DynamicsAXLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &d.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &d.Version) + delete(rawMsg, key) default: if d.AdditionalProperties == nil { d.AdditionalProperties = map[string]any{} @@ -17961,6 +18227,7 @@ func (d DynamicsCrmLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", d.Parameters) objectMap["type"] = "DynamicsCrm" populate(objectMap, "typeProperties", d.TypeProperties) + populate(objectMap, "version", d.Version) if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { objectMap[key] = val @@ -17996,6 +18263,9 @@ func (d *DynamicsCrmLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &d.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &d.Version) + delete(rawMsg, key) default: if d.AdditionalProperties == nil { d.AdditionalProperties = map[string]any{} @@ -18020,6 +18290,7 @@ func (d DynamicsCrmLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "authenticationType", d.AuthenticationType) populate(objectMap, "credential", d.Credential) populateAny(objectMap, "deploymentType", d.DeploymentType) + populateAny(objectMap, "domain", d.Domain) populate(objectMap, "encryptedCredential", d.EncryptedCredential) populateAny(objectMap, "hostName", d.HostName) populateAny(objectMap, "organizationName", d.OrganizationName) @@ -18051,6 +18322,9 @@ func (d *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(data []byte) erro case "deploymentType": err = unpopulate(val, "DeploymentType", &d.DeploymentType) delete(rawMsg, key) + case "domain": + err = unpopulate(val, "Domain", &d.Domain) + delete(rawMsg, key) case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &d.EncryptedCredential) delete(rawMsg, key) @@ -18343,6 +18617,7 @@ func (d DynamicsLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", d.Parameters) objectMap["type"] = "Dynamics" populate(objectMap, "typeProperties", d.TypeProperties) + populate(objectMap, "version", d.Version) if d.AdditionalProperties != nil { for key, val := range d.AdditionalProperties { objectMap[key] = val @@ -18378,6 +18653,9 @@ func (d *DynamicsLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &d.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &d.Version) + delete(rawMsg, key) default: if d.AdditionalProperties == nil { d.AdditionalProperties = map[string]any{} @@ -18402,6 +18680,7 @@ func (d DynamicsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "authenticationType", d.AuthenticationType) populate(objectMap, "credential", d.Credential) populateAny(objectMap, "deploymentType", d.DeploymentType) + populateAny(objectMap, "domain", d.Domain) populate(objectMap, "encryptedCredential", d.EncryptedCredential) populateAny(objectMap, "hostName", d.HostName) populateAny(objectMap, "organizationName", d.OrganizationName) @@ -18433,6 +18712,9 @@ func (d *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { case "deploymentType": err = unpopulate(val, "DeploymentType", &d.DeploymentType) delete(rawMsg, key) + case "domain": + err = unpopulate(val, "Domain", &d.Domain) + delete(rawMsg, key) case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &d.EncryptedCredential) delete(rawMsg, key) @@ -18624,6 +18906,7 @@ func (e EloquaLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", e.Parameters) objectMap["type"] = "Eloqua" populate(objectMap, "typeProperties", e.TypeProperties) + populate(objectMap, "version", e.Version) if e.AdditionalProperties != nil { for key, val := range e.AdditionalProperties { objectMap[key] = val @@ -18659,6 +18942,9 @@ func (e *EloquaLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &e.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &e.Version) + delete(rawMsg, key) default: if e.AdditionalProperties == nil { e.AdditionalProperties = map[string]any{} @@ -19277,6 +19563,7 @@ func (e *ExecuteDataFlowActivity) UnmarshalJSON(data []byte) error { func (e ExecuteDataFlowActivityTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "compute", e.Compute) + populate(objectMap, "continuationSettings", e.ContinuationSettings) populateAny(objectMap, "continueOnError", e.ContinueOnError) populate(objectMap, "dataFlow", e.DataFlow) populate(objectMap, "integrationRuntime", e.IntegrationRuntime) @@ -19299,6 +19586,9 @@ func (e *ExecuteDataFlowActivityTypeProperties) UnmarshalJSON(data []byte) error case "compute": err = unpopulate(val, "Compute", &e.Compute) delete(rawMsg, key) + case "continuationSettings": + err = unpopulate(val, "ContinuationSettings", &e.ContinuationSettings) + delete(rawMsg, key) case "continueOnError": err = unpopulate(val, "ContinueOnError", &e.ContinueOnError) delete(rawMsg, key) @@ -19514,6 +19804,7 @@ func (e *ExecutePipelineActivityTypeProperties) UnmarshalJSON(data []byte) error func (e ExecutePowerQueryActivityTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "compute", e.Compute) + populate(objectMap, "continuationSettings", e.ContinuationSettings) populateAny(objectMap, "continueOnError", e.ContinueOnError) populate(objectMap, "dataFlow", e.DataFlow) populate(objectMap, "integrationRuntime", e.IntegrationRuntime) @@ -19538,6 +19829,9 @@ func (e *ExecutePowerQueryActivityTypeProperties) UnmarshalJSON(data []byte) err case "compute": err = unpopulate(val, "Compute", &e.Compute) delete(rawMsg, key) + case "continuationSettings": + err = unpopulate(val, "ContinuationSettings", &e.ContinuationSettings) + delete(rawMsg, key) case "continueOnError": err = unpopulate(val, "ContinueOnError", &e.ContinueOnError) delete(rawMsg, key) @@ -20669,6 +20963,7 @@ func (f FileServerLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", f.Parameters) objectMap["type"] = "FileServer" populate(objectMap, "typeProperties", f.TypeProperties) + populate(objectMap, "version", f.Version) if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { objectMap[key] = val @@ -20704,6 +20999,9 @@ func (f *FileServerLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &f.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &f.Version) + delete(rawMsg, key) default: if f.AdditionalProperties == nil { f.AdditionalProperties = map[string]any{} @@ -21695,6 +21993,7 @@ func (f FtpServerLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", f.Parameters) objectMap["type"] = "FtpServer" populate(objectMap, "typeProperties", f.TypeProperties) + populate(objectMap, "version", f.Version) if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { objectMap[key] = val @@ -21730,6 +22029,9 @@ func (f *FtpServerLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &f.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &f.Version) + delete(rawMsg, key) default: if f.AdditionalProperties == nil { f.AdditionalProperties = map[string]any{} @@ -22235,6 +22537,7 @@ func (g GoogleAdWordsLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", g.Parameters) objectMap["type"] = "GoogleAdWords" populate(objectMap, "typeProperties", g.TypeProperties) + populate(objectMap, "version", g.Version) if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { objectMap[key] = val @@ -22270,6 +22573,9 @@ func (g *GoogleAdWordsLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &g.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &g.Version) + delete(rawMsg, key) default: if g.AdditionalProperties == nil { g.AdditionalProperties = map[string]any{} @@ -22563,6 +22869,7 @@ func (g GoogleBigQueryLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", g.Parameters) objectMap["type"] = "GoogleBigQuery" populate(objectMap, "typeProperties", g.TypeProperties) + populate(objectMap, "version", g.Version) if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { objectMap[key] = val @@ -22598,6 +22905,9 @@ func (g *GoogleBigQueryLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &g.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &g.Version) + delete(rawMsg, key) default: if g.AdditionalProperties == nil { g.AdditionalProperties = map[string]any{} @@ -22871,6 +23181,7 @@ func (g GoogleBigQueryV2LinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", g.Parameters) objectMap["type"] = "GoogleBigQueryV2" populate(objectMap, "typeProperties", g.TypeProperties) + populate(objectMap, "version", g.Version) if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { objectMap[key] = val @@ -22906,6 +23217,9 @@ func (g *GoogleBigQueryV2LinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &g.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &g.Version) + delete(rawMsg, key) default: if g.AdditionalProperties == nil { g.AdditionalProperties = map[string]any{} @@ -23128,6 +23442,7 @@ func (g GoogleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", g.Parameters) objectMap["type"] = "GoogleCloudStorage" populate(objectMap, "typeProperties", g.TypeProperties) + populate(objectMap, "version", g.Version) if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { objectMap[key] = val @@ -23163,6 +23478,9 @@ func (g *GoogleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &g.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &g.Version) + delete(rawMsg, key) default: if g.AdditionalProperties == nil { g.AdditionalProperties = map[string]any{} @@ -23377,6 +23695,7 @@ func (g GoogleSheetsLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", g.Parameters) objectMap["type"] = "GoogleSheets" populate(objectMap, "typeProperties", g.TypeProperties) + populate(objectMap, "version", g.Version) if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { objectMap[key] = val @@ -23412,6 +23731,9 @@ func (g *GoogleSheetsLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &g.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &g.Version) + delete(rawMsg, key) default: if g.AdditionalProperties == nil { g.AdditionalProperties = map[string]any{} @@ -23505,6 +23827,7 @@ func (g GreenplumLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", g.Parameters) objectMap["type"] = "Greenplum" populate(objectMap, "typeProperties", g.TypeProperties) + populate(objectMap, "version", g.Version) if g.AdditionalProperties != nil { for key, val := range g.AdditionalProperties { objectMap[key] = val @@ -23540,6 +23863,9 @@ func (g *GreenplumLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &g.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &g.Version) + delete(rawMsg, key) default: if g.AdditionalProperties == nil { g.AdditionalProperties = map[string]any{} @@ -23746,6 +24072,7 @@ func (h HBaseLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", h.Parameters) objectMap["type"] = "HBase" populate(objectMap, "typeProperties", h.TypeProperties) + populate(objectMap, "version", h.Version) if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { objectMap[key] = val @@ -23781,6 +24108,9 @@ func (h *HBaseLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &h.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &h.Version) + delete(rawMsg, key) default: if h.AdditionalProperties == nil { h.AdditionalProperties = map[string]any{} @@ -24152,6 +24482,7 @@ func (h HDInsightLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", h.Parameters) objectMap["type"] = "HDInsight" populate(objectMap, "typeProperties", h.TypeProperties) + populate(objectMap, "version", h.Version) if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { objectMap[key] = val @@ -24187,6 +24518,9 @@ func (h *HDInsightLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &h.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &h.Version) + delete(rawMsg, key) default: if h.AdditionalProperties == nil { h.AdditionalProperties = map[string]any{} @@ -24402,6 +24736,7 @@ func (h HDInsightOnDemandLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", h.Parameters) objectMap["type"] = "HDInsightOnDemand" populate(objectMap, "typeProperties", h.TypeProperties) + populate(objectMap, "version", h.Version) if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { objectMap[key] = val @@ -24437,6 +24772,9 @@ func (h *HDInsightOnDemandLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &h.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &h.Version) + delete(rawMsg, key) default: if h.AdditionalProperties == nil { h.AdditionalProperties = map[string]any{} @@ -25151,6 +25489,7 @@ func (h HTTPLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", h.Parameters) objectMap["type"] = "HttpServer" populate(objectMap, "typeProperties", h.TypeProperties) + populate(objectMap, "version", h.Version) if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { objectMap[key] = val @@ -25186,6 +25525,9 @@ func (h *HTTPLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &h.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &h.Version) + delete(rawMsg, key) default: if h.AdditionalProperties == nil { h.AdditionalProperties = map[string]any{} @@ -25458,6 +25800,7 @@ func (h HdfsLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", h.Parameters) objectMap["type"] = "Hdfs" populate(objectMap, "typeProperties", h.TypeProperties) + populate(objectMap, "version", h.Version) if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { objectMap[key] = val @@ -25493,6 +25836,9 @@ func (h *HdfsLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &h.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &h.Version) + delete(rawMsg, key) default: if h.AdditionalProperties == nil { h.AdditionalProperties = map[string]any{} @@ -25804,6 +26150,7 @@ func (h HiveLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", h.Parameters) objectMap["type"] = "Hive" populate(objectMap, "typeProperties", h.TypeProperties) + populate(objectMap, "version", h.Version) if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { objectMap[key] = val @@ -25839,6 +26186,9 @@ func (h *HiveLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &h.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &h.Version) + delete(rawMsg, key) default: if h.AdditionalProperties == nil { h.AdditionalProperties = map[string]any{} @@ -26101,6 +26451,7 @@ func (h HubspotLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", h.Parameters) objectMap["type"] = "Hubspot" populate(objectMap, "typeProperties", h.TypeProperties) + populate(objectMap, "version", h.Version) if h.AdditionalProperties != nil { for key, val := range h.AdditionalProperties { objectMap[key] = val @@ -26136,6 +26487,9 @@ func (h *HubspotLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &h.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &h.Version) + delete(rawMsg, key) default: if h.AdditionalProperties == nil { h.AdditionalProperties = map[string]any{} @@ -26353,6 +26707,223 @@ func (h *HubspotSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type IcebergDataset. +func (i IcebergDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", i.Annotations) + populate(objectMap, "description", i.Description) + populate(objectMap, "folder", i.Folder) + populate(objectMap, "linkedServiceName", i.LinkedServiceName) + populate(objectMap, "parameters", i.Parameters) + populateAny(objectMap, "schema", i.Schema) + populateAny(objectMap, "structure", i.Structure) + objectMap["type"] = "Iceberg" + populate(objectMap, "typeProperties", i.TypeProperties) + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IcebergDataset. +func (i *IcebergDataset) 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 "annotations": + err = unpopulate(val, "Annotations", &i.Annotations) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &i.Description) + delete(rawMsg, key) + case "folder": + err = unpopulate(val, "Folder", &i.Folder) + delete(rawMsg, key) + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &i.LinkedServiceName) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &i.Parameters) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &i.Schema) + delete(rawMsg, key) + case "structure": + err = unpopulate(val, "Structure", &i.Structure) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &i.TypeProperties) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + 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 IcebergDatasetTypeProperties. +func (i IcebergDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "location", i.Location) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IcebergDatasetTypeProperties. +func (i *IcebergDatasetTypeProperties) 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 "location": + i.Location, err = unmarshalDatasetLocationClassification(val) + 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 IcebergSink. +func (i IcebergSink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateAny(objectMap, "disableMetricsCollection", i.DisableMetricsCollection) + populate(objectMap, "formatSettings", i.FormatSettings) + populateAny(objectMap, "maxConcurrentConnections", i.MaxConcurrentConnections) + populateAny(objectMap, "sinkRetryCount", i.SinkRetryCount) + populateAny(objectMap, "sinkRetryWait", i.SinkRetryWait) + populate(objectMap, "storeSettings", i.StoreSettings) + objectMap["type"] = "IcebergSink" + populateAny(objectMap, "writeBatchSize", i.WriteBatchSize) + populateAny(objectMap, "writeBatchTimeout", i.WriteBatchTimeout) + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IcebergSink. +func (i *IcebergSink) 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 "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &i.DisableMetricsCollection) + delete(rawMsg, key) + case "formatSettings": + err = unpopulate(val, "FormatSettings", &i.FormatSettings) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &i.MaxConcurrentConnections) + delete(rawMsg, key) + case "sinkRetryCount": + err = unpopulate(val, "SinkRetryCount", &i.SinkRetryCount) + delete(rawMsg, key) + case "sinkRetryWait": + err = unpopulate(val, "SinkRetryWait", &i.SinkRetryWait) + delete(rawMsg, key) + case "storeSettings": + i.StoreSettings, err = unmarshalStoreWriteSettingsClassification(val) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + case "writeBatchSize": + err = unpopulate(val, "WriteBatchSize", &i.WriteBatchSize) + delete(rawMsg, key) + case "writeBatchTimeout": + err = unpopulate(val, "WriteBatchTimeout", &i.WriteBatchTimeout) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + 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 IcebergWriteSettings. +func (i IcebergWriteSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["type"] = "IcebergWriteSettings" + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IcebergWriteSettings. +func (i *IcebergWriteSettings) 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 "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + 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 IfConditionActivity. func (i IfConditionActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -26502,6 +27073,7 @@ func (i ImpalaLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", i.Parameters) objectMap["type"] = "Impala" populate(objectMap, "typeProperties", i.TypeProperties) + populate(objectMap, "version", i.Version) if i.AdditionalProperties != nil { for key, val := range i.AdditionalProperties { objectMap[key] = val @@ -26537,6 +27109,9 @@ func (i *ImpalaLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &i.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &i.Version) + delete(rawMsg, key) default: if i.AdditionalProperties == nil { i.AdditionalProperties = map[string]any{} @@ -26817,6 +27392,7 @@ func (i InformixLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", i.Parameters) objectMap["type"] = "Informix" populate(objectMap, "typeProperties", i.TypeProperties) + populate(objectMap, "version", i.Version) if i.AdditionalProperties != nil { for key, val := range i.AdditionalProperties { objectMap[key] = val @@ -26852,6 +27428,9 @@ func (i *InformixLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &i.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &i.Version) + delete(rawMsg, key) default: if i.AdditionalProperties == nil { i.AdditionalProperties = map[string]any{} @@ -28647,6 +29226,7 @@ func (j JiraLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", j.Parameters) objectMap["type"] = "Jira" populate(objectMap, "typeProperties", j.TypeProperties) + populate(objectMap, "version", j.Version) if j.AdditionalProperties != nil { for key, val := range j.AdditionalProperties { objectMap[key] = val @@ -28682,6 +29262,9 @@ func (j *JiraLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &j.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &j.Version) + delete(rawMsg, key) default: if j.AdditionalProperties == nil { j.AdditionalProperties = map[string]any{} @@ -28908,6 +29491,7 @@ func (l LakeHouseLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", l.Parameters) objectMap["type"] = "LakeHouse" populate(objectMap, "typeProperties", l.TypeProperties) + populate(objectMap, "version", l.Version) if l.AdditionalProperties != nil { for key, val := range l.AdditionalProperties { objectMap[key] = val @@ -28943,6 +29527,9 @@ func (l *LakeHouseLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &l.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &l.Version) + delete(rawMsg, key) default: if l.AdditionalProperties == nil { l.AdditionalProperties = map[string]any{} @@ -29665,6 +30252,7 @@ func (l LinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "description", l.Description) populate(objectMap, "parameters", l.Parameters) objectMap["type"] = l.Type + populate(objectMap, "version", l.Version) if l.AdditionalProperties != nil { for key, val := range l.AdditionalProperties { objectMap[key] = val @@ -29697,6 +30285,9 @@ func (l *LinkedService) UnmarshalJSON(data []byte) error { case "type": err = unpopulate(val, "Type", &l.Type) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &l.Version) + delete(rawMsg, key) default: if l.AdditionalProperties == nil { l.AdditionalProperties = map[string]any{} @@ -30097,6 +30688,7 @@ func (m MagentoLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", m.Parameters) objectMap["type"] = "Magento" populate(objectMap, "typeProperties", m.TypeProperties) + populate(objectMap, "version", m.Version) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -30132,6 +30724,9 @@ func (m *MagentoLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &m.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &m.Version) + delete(rawMsg, key) default: if m.AdditionalProperties == nil { m.AdditionalProperties = map[string]any{} @@ -31595,6 +32190,7 @@ func (m MariaDBLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", m.Parameters) objectMap["type"] = "MariaDB" populate(objectMap, "typeProperties", m.TypeProperties) + populate(objectMap, "version", m.Version) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -31630,6 +32226,9 @@ func (m *MariaDBLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &m.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &m.Version) + delete(rawMsg, key) default: if m.AdditionalProperties == nil { m.AdditionalProperties = map[string]any{} @@ -31657,7 +32256,9 @@ func (m MariaDBLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "encryptedCredential", m.EncryptedCredential) populate(objectMap, "password", m.Password) populateAny(objectMap, "port", m.Port) + populateAny(objectMap, "sslMode", m.SSLMode) populateAny(objectMap, "server", m.Server) + populateAny(objectMap, "useSystemTrustStore", m.UseSystemTrustStore) populateAny(objectMap, "username", m.Username) return json.Marshal(objectMap) } @@ -31689,9 +32290,15 @@ func (m *MariaDBLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { case "port": err = unpopulate(val, "Port", &m.Port) delete(rawMsg, key) + case "sslMode": + err = unpopulate(val, "SSLMode", &m.SSLMode) + delete(rawMsg, key) case "server": err = unpopulate(val, "Server", &m.Server) delete(rawMsg, key) + case "useSystemTrustStore": + err = unpopulate(val, "UseSystemTrustStore", &m.UseSystemTrustStore) + delete(rawMsg, key) case "username": err = unpopulate(val, "Username", &m.Username) delete(rawMsg, key) @@ -31856,6 +32463,7 @@ func (m MarketoLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", m.Parameters) objectMap["type"] = "Marketo" populate(objectMap, "typeProperties", m.TypeProperties) + populate(objectMap, "version", m.Version) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -31891,6 +32499,9 @@ func (m *MarketoLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &m.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &m.Version) + delete(rawMsg, key) default: if m.AdditionalProperties == nil { m.AdditionalProperties = map[string]any{} @@ -32144,6 +32755,7 @@ func (m MicrosoftAccessLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", m.Parameters) objectMap["type"] = "MicrosoftAccess" populate(objectMap, "typeProperties", m.TypeProperties) + populate(objectMap, "version", m.Version) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -32179,6 +32791,9 @@ func (m *MicrosoftAccessLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &m.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &m.Version) + delete(rawMsg, key) default: if m.AdditionalProperties == nil { m.AdditionalProperties = map[string]any{} @@ -32591,6 +33206,7 @@ func (m MongoDbAtlasLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", m.Parameters) objectMap["type"] = "MongoDbAtlas" populate(objectMap, "typeProperties", m.TypeProperties) + populate(objectMap, "version", m.Version) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -32626,6 +33242,9 @@ func (m *MongoDbAtlasLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &m.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &m.Version) + delete(rawMsg, key) default: if m.AdditionalProperties == nil { m.AdditionalProperties = map[string]any{} @@ -32991,6 +33610,7 @@ func (m MongoDbLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", m.Parameters) objectMap["type"] = "MongoDb" populate(objectMap, "typeProperties", m.TypeProperties) + populate(objectMap, "version", m.Version) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -33026,6 +33646,9 @@ func (m *MongoDbLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &m.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &m.Version) + delete(rawMsg, key) default: if m.AdditionalProperties == nil { m.AdditionalProperties = map[string]any{} @@ -33283,6 +33906,7 @@ func (m MongoDbV2LinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", m.Parameters) objectMap["type"] = "MongoDbV2" populate(objectMap, "typeProperties", m.TypeProperties) + populate(objectMap, "version", m.Version) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -33318,6 +33942,9 @@ func (m *MongoDbV2LinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &m.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &m.Version) + delete(rawMsg, key) default: if m.AdditionalProperties == nil { m.AdditionalProperties = map[string]any{} @@ -33582,6 +34209,7 @@ func (m MySQLLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", m.Parameters) objectMap["type"] = "MySql" populate(objectMap, "typeProperties", m.TypeProperties) + populate(objectMap, "version", m.Version) if m.AdditionalProperties != nil { for key, val := range m.AdditionalProperties { objectMap[key] = val @@ -33617,6 +34245,9 @@ func (m *MySQLLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &m.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &m.Version) + delete(rawMsg, key) default: if m.AdditionalProperties == nil { m.AdditionalProperties = map[string]any{} @@ -33878,6 +34509,7 @@ func (n NetezzaLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", n.Parameters) objectMap["type"] = "Netezza" populate(objectMap, "typeProperties", n.TypeProperties) + populate(objectMap, "version", n.Version) if n.AdditionalProperties != nil { for key, val := range n.AdditionalProperties { objectMap[key] = val @@ -33913,6 +34545,9 @@ func (n *NetezzaLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &n.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &n.Version) + delete(rawMsg, key) default: if n.AdditionalProperties == nil { n.AdditionalProperties = map[string]any{} @@ -34228,6 +34863,7 @@ func (o ODataLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", o.Parameters) objectMap["type"] = "OData" populate(objectMap, "typeProperties", o.TypeProperties) + populate(objectMap, "version", o.Version) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -34263,6 +34899,9 @@ func (o *ODataLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &o.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &o.Version) + delete(rawMsg, key) default: if o.AdditionalProperties == nil { o.AdditionalProperties = map[string]any{} @@ -34540,6 +35179,7 @@ func (o OdbcLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", o.Parameters) objectMap["type"] = "Odbc" populate(objectMap, "typeProperties", o.TypeProperties) + populate(objectMap, "version", o.Version) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -34575,6 +35215,9 @@ func (o *OdbcLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &o.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &o.Version) + delete(rawMsg, key) default: if o.AdditionalProperties == nil { o.AdditionalProperties = map[string]any{} @@ -34995,6 +35638,7 @@ func (o Office365LinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", o.Parameters) objectMap["type"] = "Office365" populate(objectMap, "typeProperties", o.TypeProperties) + populate(objectMap, "version", o.Version) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -35030,6 +35674,9 @@ func (o *Office365LinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &o.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &o.Version) + delete(rawMsg, key) default: if o.AdditionalProperties == nil { o.AdditionalProperties = map[string]any{} @@ -35173,337 +35820,6 @@ func (o *Office365Source) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Operation. -func (o Operation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "display", o.Display) - populate(objectMap, "name", o.Name) - populate(objectMap, "origin", o.Origin) - populate(objectMap, "properties", o.Properties) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Operation. -func (o *Operation) 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", o, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "display": - err = unpopulate(val, "Display", &o.Display) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &o.Name) - delete(rawMsg, key) - case "origin": - err = unpopulate(val, "Origin", &o.Origin) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &o.Properties) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type OperationDisplay. -func (o OperationDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "description", o.Description) - populate(objectMap, "operation", o.Operation) - populate(objectMap, "provider", o.Provider) - populate(objectMap, "resource", o.Resource) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay. -func (o *OperationDisplay) 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", o, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "description": - err = unpopulate(val, "Description", &o.Description) - delete(rawMsg, key) - case "operation": - err = unpopulate(val, "Operation", &o.Operation) - delete(rawMsg, key) - case "provider": - err = unpopulate(val, "Provider", &o.Provider) - delete(rawMsg, key) - case "resource": - err = unpopulate(val, "Resource", &o.Resource) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type OperationListResponse. -func (o OperationListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "nextLink", o.NextLink) - populate(objectMap, "value", o.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResponse. -func (o *OperationListResponse) 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", o, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &o.NextLink) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &o.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type OperationLogSpecification. -func (o OperationLogSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "blobDuration", o.BlobDuration) - populate(objectMap, "displayName", o.DisplayName) - populate(objectMap, "name", o.Name) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type OperationLogSpecification. -func (o *OperationLogSpecification) 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", o, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "blobDuration": - err = unpopulate(val, "BlobDuration", &o.BlobDuration) - delete(rawMsg, key) - case "displayName": - err = unpopulate(val, "DisplayName", &o.DisplayName) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &o.Name) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type OperationMetricAvailability. -func (o OperationMetricAvailability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "blobDuration", o.BlobDuration) - populate(objectMap, "timeGrain", o.TimeGrain) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetricAvailability. -func (o *OperationMetricAvailability) 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", o, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "blobDuration": - err = unpopulate(val, "BlobDuration", &o.BlobDuration) - delete(rawMsg, key) - case "timeGrain": - err = unpopulate(val, "TimeGrain", &o.TimeGrain) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type OperationMetricDimension. -func (o OperationMetricDimension) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "displayName", o.DisplayName) - populate(objectMap, "name", o.Name) - populate(objectMap, "toBeExportedForShoebox", o.ToBeExportedForShoebox) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetricDimension. -func (o *OperationMetricDimension) 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", o, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "displayName": - err = unpopulate(val, "DisplayName", &o.DisplayName) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &o.Name) - delete(rawMsg, key) - case "toBeExportedForShoebox": - err = unpopulate(val, "ToBeExportedForShoebox", &o.ToBeExportedForShoebox) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type OperationMetricSpecification. -func (o OperationMetricSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "aggregationType", o.AggregationType) - populate(objectMap, "availabilities", o.Availabilities) - populate(objectMap, "dimensions", o.Dimensions) - populate(objectMap, "displayDescription", o.DisplayDescription) - populate(objectMap, "displayName", o.DisplayName) - populate(objectMap, "enableRegionalMdmAccount", o.EnableRegionalMdmAccount) - populate(objectMap, "name", o.Name) - populate(objectMap, "sourceMdmAccount", o.SourceMdmAccount) - populate(objectMap, "sourceMdmNamespace", o.SourceMdmNamespace) - populate(objectMap, "unit", o.Unit) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetricSpecification. -func (o *OperationMetricSpecification) 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", o, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "aggregationType": - err = unpopulate(val, "AggregationType", &o.AggregationType) - delete(rawMsg, key) - case "availabilities": - err = unpopulate(val, "Availabilities", &o.Availabilities) - delete(rawMsg, key) - case "dimensions": - err = unpopulate(val, "Dimensions", &o.Dimensions) - delete(rawMsg, key) - case "displayDescription": - err = unpopulate(val, "DisplayDescription", &o.DisplayDescription) - delete(rawMsg, key) - case "displayName": - err = unpopulate(val, "DisplayName", &o.DisplayName) - delete(rawMsg, key) - case "enableRegionalMdmAccount": - err = unpopulate(val, "EnableRegionalMdmAccount", &o.EnableRegionalMdmAccount) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &o.Name) - delete(rawMsg, key) - case "sourceMdmAccount": - err = unpopulate(val, "SourceMdmAccount", &o.SourceMdmAccount) - delete(rawMsg, key) - case "sourceMdmNamespace": - err = unpopulate(val, "SourceMdmNamespace", &o.SourceMdmNamespace) - delete(rawMsg, key) - case "unit": - err = unpopulate(val, "Unit", &o.Unit) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type OperationProperties. -func (o OperationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "serviceSpecification", o.ServiceSpecification) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type OperationProperties. -func (o *OperationProperties) 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", o, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "serviceSpecification": - err = unpopulate(val, "ServiceSpecification", &o.ServiceSpecification) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type OperationServiceSpecification. -func (o OperationServiceSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "logSpecifications", o.LogSpecifications) - populate(objectMap, "metricSpecifications", o.MetricSpecifications) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type OperationServiceSpecification. -func (o *OperationServiceSpecification) 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", o, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "logSpecifications": - err = unpopulate(val, "LogSpecifications", &o.LogSpecifications) - delete(rawMsg, key) - case "metricSpecifications": - err = unpopulate(val, "MetricSpecifications", &o.MetricSpecifications) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageLinkedService. func (o OracleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -35513,6 +35829,7 @@ func (o OracleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", o.Parameters) objectMap["type"] = "OracleCloudStorage" populate(objectMap, "typeProperties", o.TypeProperties) + populate(objectMap, "version", o.Version) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -35548,6 +35865,9 @@ func (o *OracleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &o.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &o.Version) + delete(rawMsg, key) default: if o.AdditionalProperties == nil { o.AdditionalProperties = map[string]any{} @@ -35762,6 +36082,7 @@ func (o OracleLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", o.Parameters) objectMap["type"] = "Oracle" populate(objectMap, "typeProperties", o.TypeProperties) + populate(objectMap, "version", o.Version) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -35797,6 +36118,9 @@ func (o *OracleLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &o.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &o.Version) + delete(rawMsg, key) default: if o.AdditionalProperties == nil { o.AdditionalProperties = map[string]any{} @@ -35898,6 +36222,7 @@ func (o OracleServiceCloudLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", o.Parameters) objectMap["type"] = "OracleServiceCloud" populate(objectMap, "typeProperties", o.TypeProperties) + populate(objectMap, "version", o.Version) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { objectMap[key] = val @@ -35933,6 +36258,9 @@ func (o *OracleServiceCloudLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &o.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &o.Version) + delete(rawMsg, key) default: if o.AdditionalProperties == nil { o.AdditionalProperties = map[string]any{} @@ -37214,6 +37542,7 @@ func (p PaypalLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", p.Parameters) objectMap["type"] = "Paypal" populate(objectMap, "typeProperties", p.TypeProperties) + populate(objectMap, "version", p.Version) if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { objectMap[key] = val @@ -37249,6 +37578,9 @@ func (p *PaypalLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &p.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &p.Version) + delete(rawMsg, key) default: if p.AdditionalProperties == nil { p.AdditionalProperties = map[string]any{} @@ -37506,6 +37838,7 @@ func (p PhoenixLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", p.Parameters) objectMap["type"] = "Phoenix" populate(objectMap, "typeProperties", p.TypeProperties) + populate(objectMap, "version", p.Version) if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { objectMap[key] = val @@ -37541,6 +37874,9 @@ func (p *PhoenixLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &p.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &p.Version) + delete(rawMsg, key) default: if p.AdditionalProperties == nil { p.AdditionalProperties = map[string]any{} @@ -38315,6 +38651,7 @@ func (p PostgreSQLLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", p.Parameters) objectMap["type"] = "PostgreSql" populate(objectMap, "typeProperties", p.TypeProperties) + populate(objectMap, "version", p.Version) if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { objectMap[key] = val @@ -38350,6 +38687,9 @@ func (p *PostgreSQLLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &p.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &p.Version) + delete(rawMsg, key) default: if p.AdditionalProperties == nil { p.AdditionalProperties = map[string]any{} @@ -38591,6 +38931,7 @@ func (p PostgreSQLV2LinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", p.Parameters) objectMap["type"] = "PostgreSqlV2" populate(objectMap, "typeProperties", p.TypeProperties) + populate(objectMap, "version", p.Version) if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { objectMap[key] = val @@ -38626,6 +38967,9 @@ func (p *PostgreSQLV2LinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &p.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &p.Version) + delete(rawMsg, key) default: if p.AdditionalProperties == nil { p.AdditionalProperties = map[string]any{} @@ -38647,6 +38991,7 @@ func (p *PostgreSQLV2LinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PostgreSQLV2LinkedServiceTypeProperties. func (p PostgreSQLV2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populateAny(objectMap, "authenticationType", p.AuthenticationType) populateAny(objectMap, "commandTimeout", p.CommandTimeout) populateAny(objectMap, "connectionTimeout", p.ConnectionTimeout) populateAny(objectMap, "database", p.Database) @@ -38678,6 +39023,9 @@ func (p *PostgreSQLV2LinkedServiceTypeProperties) UnmarshalJSON(data []byte) err for key, val := range rawMsg { var err error switch key { + case "authenticationType": + err = unpopulate(val, "AuthenticationType", &p.AuthenticationType) + delete(rawMsg, key) case "commandTimeout": err = unpopulate(val, "CommandTimeout", &p.CommandTimeout) delete(rawMsg, key) @@ -39134,6 +39482,7 @@ func (p PrestoLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", p.Parameters) objectMap["type"] = "Presto" populate(objectMap, "typeProperties", p.TypeProperties) + populate(objectMap, "version", p.Version) if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { objectMap[key] = val @@ -39169,6 +39518,9 @@ func (p *PrestoLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &p.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &p.Version) + delete(rawMsg, key) default: if p.AdditionalProperties == nil { p.AdditionalProperties = map[string]any{} @@ -39792,6 +40144,7 @@ func (q QuickBooksLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", q.Parameters) objectMap["type"] = "QuickBooks" populate(objectMap, "typeProperties", q.TypeProperties) + populate(objectMap, "version", q.Version) if q.AdditionalProperties != nil { for key, val := range q.AdditionalProperties { objectMap[key] = val @@ -39827,6 +40180,9 @@ func (q *QuickBooksLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &q.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &q.Version) + delete(rawMsg, key) default: if q.AdditionalProperties == nil { q.AdditionalProperties = map[string]any{} @@ -40057,6 +40413,7 @@ func (q QuickbaseLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", q.Parameters) objectMap["type"] = "Quickbase" populate(objectMap, "typeProperties", q.TypeProperties) + populate(objectMap, "version", q.Version) if q.AdditionalProperties != nil { for key, val := range q.AdditionalProperties { objectMap[key] = val @@ -40092,6 +40449,9 @@ func (q *QuickbaseLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &q.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &q.Version) + delete(rawMsg, key) default: if q.AdditionalProperties == nil { q.AdditionalProperties = map[string]any{} @@ -40634,6 +40994,7 @@ func (r ResponsysLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", r.Parameters) objectMap["type"] = "Responsys" populate(objectMap, "typeProperties", r.TypeProperties) + populate(objectMap, "version", r.Version) if r.AdditionalProperties != nil { for key, val := range r.AdditionalProperties { objectMap[key] = val @@ -40669,6 +41030,9 @@ func (r *ResponsysLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &r.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &r.Version) + delete(rawMsg, key) default: if r.AdditionalProperties == nil { r.AdditionalProperties = map[string]any{} @@ -41008,6 +41372,7 @@ func (r RestServiceLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", r.Parameters) objectMap["type"] = "RestService" populate(objectMap, "typeProperties", r.TypeProperties) + populate(objectMap, "version", r.Version) if r.AdditionalProperties != nil { for key, val := range r.AdditionalProperties { objectMap[key] = val @@ -41043,6 +41408,9 @@ func (r *RestServiceLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &r.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &r.Version) + delete(rawMsg, key) default: if r.AdditionalProperties == nil { r.AdditionalProperties = map[string]any{} @@ -41076,6 +41444,9 @@ func (r RestServiceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "password", r.Password) populateAny(objectMap, "resource", r.Resource) populateAny(objectMap, "scope", r.Scope) + populateAny(objectMap, "servicePrincipalCredentialType", r.ServicePrincipalCredentialType) + populate(objectMap, "servicePrincipalEmbeddedCert", r.ServicePrincipalEmbeddedCert) + populate(objectMap, "servicePrincipalEmbeddedCertPassword", r.ServicePrincipalEmbeddedCertPassword) populateAny(objectMap, "servicePrincipalId", r.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", r.ServicePrincipalKey) populateAny(objectMap, "tenant", r.Tenant) @@ -41130,6 +41501,15 @@ func (r *RestServiceLinkedServiceTypeProperties) UnmarshalJSON(data []byte) erro case "scope": err = unpopulate(val, "Scope", &r.Scope) delete(rawMsg, key) + case "servicePrincipalCredentialType": + err = unpopulate(val, "ServicePrincipalCredentialType", &r.ServicePrincipalCredentialType) + delete(rawMsg, key) + case "servicePrincipalEmbeddedCert": + r.ServicePrincipalEmbeddedCert, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "servicePrincipalEmbeddedCertPassword": + r.ServicePrincipalEmbeddedCertPassword, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) case "servicePrincipalId": err = unpopulate(val, "ServicePrincipalID", &r.ServicePrincipalID) delete(rawMsg, key) @@ -41970,6 +42350,7 @@ func (s SQLServerLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SqlServer" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -42005,6 +42386,9 @@ func (s *SQLServerLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -42034,6 +42418,7 @@ func (s SQLServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { populateAny(objectMap, "connectRetryInterval", s.ConnectRetryInterval) populateAny(objectMap, "connectTimeout", s.ConnectTimeout) populateAny(objectMap, "connectionString", s.ConnectionString) + populate(objectMap, "credential", s.Credential) populateAny(objectMap, "database", s.Database) populateAny(objectMap, "encrypt", s.Encrypt) populate(objectMap, "encryptedCredential", s.EncryptedCredential) @@ -42087,6 +42472,9 @@ func (s *SQLServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error case "connectionString": err = unpopulate(val, "ConnectionString", &s.ConnectionString) delete(rawMsg, key) + case "credential": + err = unpopulate(val, "Credential", &s.Credential) + delete(rawMsg, key) case "database": err = unpopulate(val, "Database", &s.Database) delete(rawMsg, key) @@ -43119,6 +43507,7 @@ func (s SalesforceLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "Salesforce" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -43154,6 +43543,9 @@ func (s *SalesforceLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -43228,6 +43620,7 @@ func (s SalesforceMarketingCloudLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SalesforceMarketingCloud" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -43263,6 +43656,9 @@ func (s *SalesforceMarketingCloudLinkedService) UnmarshalJSON(data []byte) error case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -43586,6 +43982,7 @@ func (s SalesforceServiceCloudLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SalesforceServiceCloud" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -43621,6 +44018,9 @@ func (s *SalesforceServiceCloudLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -43948,6 +44348,7 @@ func (s SalesforceServiceCloudV2LinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SalesforceServiceCloudV2" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -43983,6 +44384,9 @@ func (s *SalesforceServiceCloudV2LinkedService) UnmarshalJSON(data []byte) error case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -44466,6 +44870,7 @@ func (s SalesforceV2LinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SalesforceV2" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -44501,6 +44906,9 @@ func (s *SalesforceV2LinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -44756,6 +45164,7 @@ func (s SalesforceV2Source) MarshalJSON() ([]byte, error) { populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) populateAny(objectMap, "includeDeletedObjects", s.IncludeDeletedObjects) populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "pageSize", s.PageSize) populateAny(objectMap, "query", s.Query) populateAny(objectMap, "queryTimeout", s.QueryTimeout) populateAny(objectMap, "SOQLQuery", s.SOQLQuery) @@ -44791,6 +45200,9 @@ func (s *SalesforceV2Source) UnmarshalJSON(data []byte) error { case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) delete(rawMsg, key) + case "pageSize": + err = unpopulate(val, "PageSize", &s.PageSize) + delete(rawMsg, key) case "query": err = unpopulate(val, "Query", &s.Query) delete(rawMsg, key) @@ -44836,6 +45248,7 @@ func (s SapBWLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SapBW" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -44871,6 +45284,9 @@ func (s *SapBWLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -45085,6 +45501,7 @@ func (s SapCloudForCustomerLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SapCloudForCustomer" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -45120,6 +45537,9 @@ func (s *SapCloudForCustomerLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -45435,6 +45855,7 @@ func (s SapEccLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SapEcc" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -45470,6 +45891,9 @@ func (s *SapEccLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -45711,6 +46135,7 @@ func (s SapHanaLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SapHana" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -45746,6 +46171,9 @@ func (s *SapHanaLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -46034,6 +46462,7 @@ func (s SapOdpLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SapOdp" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -46069,6 +46498,9 @@ func (s *SapOdpLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -46378,6 +46810,7 @@ func (s SapOpenHubLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SapOpenHub" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -46413,6 +46846,9 @@ func (s *SapOpenHubLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -46698,6 +47134,7 @@ func (s SapTableLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SapTable" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -46733,6 +47170,9 @@ func (s *SapTableLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -47961,6 +48401,7 @@ func (s ServiceNowLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "ServiceNow" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -47996,6 +48437,9 @@ func (s *ServiceNowLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -48230,6 +48674,7 @@ func (s ServiceNowV2LinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "ServiceNowV2" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -48265,6 +48710,9 @@ func (s *ServiceNowV2LinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -48419,6 +48867,7 @@ func (s ServiceNowV2Source) MarshalJSON() ([]byte, error) { populateAny(objectMap, "disableMetricsCollection", s.DisableMetricsCollection) populate(objectMap, "expression", s.Expression) populateAny(objectMap, "maxConcurrentConnections", s.MaxConcurrentConnections) + populateAny(objectMap, "pageSize", s.PageSize) populateAny(objectMap, "queryTimeout", s.QueryTimeout) populateAny(objectMap, "sourceRetryCount", s.SourceRetryCount) populateAny(objectMap, "sourceRetryWait", s.SourceRetryWait) @@ -48452,6 +48901,9 @@ func (s *ServiceNowV2Source) UnmarshalJSON(data []byte) error { case "maxConcurrentConnections": err = unpopulate(val, "MaxConcurrentConnections", &s.MaxConcurrentConnections) delete(rawMsg, key) + case "pageSize": + err = unpopulate(val, "PageSize", &s.PageSize) + delete(rawMsg, key) case "queryTimeout": err = unpopulate(val, "QueryTimeout", &s.QueryTimeout) delete(rawMsg, key) @@ -48829,6 +49281,7 @@ func (s SftpServerLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "Sftp" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -48864,6 +49317,9 @@ func (s *SftpServerLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -49051,6 +49507,7 @@ func (s SharePointOnlineListLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SharePointOnlineList" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -49086,6 +49543,9 @@ func (s *SharePointOnlineListLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -49108,6 +49568,9 @@ func (s *SharePointOnlineListLinkedService) UnmarshalJSON(data []byte) error { func (s SharePointOnlineListLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "servicePrincipalCredentialType", s.ServicePrincipalCredentialType) + populate(objectMap, "servicePrincipalEmbeddedCert", s.ServicePrincipalEmbeddedCert) + populate(objectMap, "servicePrincipalEmbeddedCertPassword", s.ServicePrincipalEmbeddedCertPassword) populateAny(objectMap, "servicePrincipalId", s.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", s.ServicePrincipalKey) populateAny(objectMap, "siteUrl", s.SiteURL) @@ -49127,6 +49590,15 @@ func (s *SharePointOnlineListLinkedServiceTypeProperties) UnmarshalJSON(data []b case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &s.EncryptedCredential) delete(rawMsg, key) + case "servicePrincipalCredentialType": + err = unpopulate(val, "ServicePrincipalCredentialType", &s.ServicePrincipalCredentialType) + delete(rawMsg, key) + case "servicePrincipalEmbeddedCert": + s.ServicePrincipalEmbeddedCert, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "servicePrincipalEmbeddedCertPassword": + s.ServicePrincipalEmbeddedCertPassword, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) case "servicePrincipalId": err = unpopulate(val, "ServicePrincipalID", &s.ServicePrincipalID) delete(rawMsg, key) @@ -49296,6 +49768,7 @@ func (s ShopifyLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "Shopify" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -49331,6 +49804,9 @@ func (s *ShopifyLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -49580,6 +50056,7 @@ func (s SmartsheetLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "Smartsheet" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -49615,6 +50092,9 @@ func (s *SmartsheetLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -49774,6 +50254,7 @@ func (s SnowflakeExportCopyCommand) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "additionalCopyOptions", s.AdditionalCopyOptions) populate(objectMap, "additionalFormatOptions", s.AdditionalFormatOptions) + populateAny(objectMap, "storageIntegration", s.StorageIntegration) objectMap["type"] = "SnowflakeExportCopyCommand" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -49798,6 +50279,9 @@ func (s *SnowflakeExportCopyCommand) UnmarshalJSON(data []byte) error { case "additionalFormatOptions": err = unpopulate(val, "AdditionalFormatOptions", &s.AdditionalFormatOptions) delete(rawMsg, key) + case "storageIntegration": + err = unpopulate(val, "StorageIntegration", &s.StorageIntegration) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -49824,6 +50308,7 @@ func (s SnowflakeImportCopyCommand) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "additionalCopyOptions", s.AdditionalCopyOptions) populate(objectMap, "additionalFormatOptions", s.AdditionalFormatOptions) + populateAny(objectMap, "storageIntegration", s.StorageIntegration) objectMap["type"] = "SnowflakeImportCopyCommand" if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { @@ -49848,6 +50333,9 @@ func (s *SnowflakeImportCopyCommand) UnmarshalJSON(data []byte) error { case "additionalFormatOptions": err = unpopulate(val, "AdditionalFormatOptions", &s.AdditionalFormatOptions) delete(rawMsg, key) + case "storageIntegration": + err = unpopulate(val, "StorageIntegration", &s.StorageIntegration) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) @@ -49878,6 +50366,7 @@ func (s SnowflakeLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "Snowflake" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -49913,6 +50402,9 @@ func (s *SnowflakeLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -49975,6 +50467,7 @@ func (s SnowflakeLinkedV2ServiceTypeProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "clientSecret", s.ClientSecret) populateAny(objectMap, "database", s.Database) populate(objectMap, "encryptedCredential", s.EncryptedCredential) + populateAny(objectMap, "host", s.Host) populate(objectMap, "password", s.Password) populate(objectMap, "privateKey", s.PrivateKey) populate(objectMap, "privateKeyPassphrase", s.PrivateKeyPassphrase) @@ -50012,6 +50505,9 @@ func (s *SnowflakeLinkedV2ServiceTypeProperties) UnmarshalJSON(data []byte) erro case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &s.EncryptedCredential) delete(rawMsg, key) + case "host": + err = unpopulate(val, "Host", &s.Host) + delete(rawMsg, key) case "password": s.Password, err = unmarshalSecretBaseClassification(val) delete(rawMsg, key) @@ -50264,6 +50760,7 @@ func (s SnowflakeV2LinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "SnowflakeV2" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -50299,6 +50796,9 @@ func (s *SnowflakeV2LinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -50532,6 +51032,7 @@ func (s SparkLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "Spark" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -50567,6 +51068,9 @@ func (s *SparkLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -50817,6 +51321,7 @@ func (s SquareLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "Square" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -50852,6 +51357,9 @@ func (s *SquareLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -51842,6 +52350,7 @@ func (s SybaseLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", s.Parameters) objectMap["type"] = "Sybase" populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "version", s.Version) if s.AdditionalProperties != nil { for key, val := range s.AdditionalProperties { objectMap[key] = val @@ -51877,6 +52386,9 @@ func (s *SybaseLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &s.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) default: if s.AdditionalProperties == nil { s.AdditionalProperties = map[string]any{} @@ -52652,6 +53164,7 @@ func (t TeamDeskLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", t.Parameters) objectMap["type"] = "TeamDesk" populate(objectMap, "typeProperties", t.TypeProperties) + populate(objectMap, "version", t.Version) if t.AdditionalProperties != nil { for key, val := range t.AdditionalProperties { objectMap[key] = val @@ -52687,6 +53200,9 @@ func (t *TeamDeskLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &t.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &t.Version) + delete(rawMsg, key) default: if t.AdditionalProperties == nil { t.AdditionalProperties = map[string]any{} @@ -52761,6 +53277,7 @@ func (t TeradataLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", t.Parameters) objectMap["type"] = "Teradata" populate(objectMap, "typeProperties", t.TypeProperties) + populate(objectMap, "version", t.Version) if t.AdditionalProperties != nil { for key, val := range t.AdditionalProperties { objectMap[key] = val @@ -52796,6 +53313,9 @@ func (t *TeradataLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &t.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &t.Version) + delete(rawMsg, key) default: if t.AdditionalProperties == nil { t.AdditionalProperties = map[string]any{} @@ -53796,6 +54316,7 @@ func (t TwilioLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", t.Parameters) objectMap["type"] = "Twilio" populate(objectMap, "typeProperties", t.TypeProperties) + populate(objectMap, "version", t.Version) if t.AdditionalProperties != nil { for key, val := range t.AdditionalProperties { objectMap[key] = val @@ -53831,6 +54352,9 @@ func (t *TwilioLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &t.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &t.Version) + delete(rawMsg, key) default: if t.AdditionalProperties == nil { t.AdditionalProperties = map[string]any{} @@ -54305,6 +54829,7 @@ func (v VerticaLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", v.Parameters) objectMap["type"] = "Vertica" populate(objectMap, "typeProperties", v.TypeProperties) + populate(objectMap, "version", v.Version) if v.AdditionalProperties != nil { for key, val := range v.AdditionalProperties { objectMap[key] = val @@ -54340,6 +54865,9 @@ func (v *VerticaLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &v.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &v.Version) + delete(rawMsg, key) default: if v.AdditionalProperties == nil { v.AdditionalProperties = map[string]any{} @@ -54362,8 +54890,12 @@ 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, "database", v.Database) populate(objectMap, "encryptedCredential", v.EncryptedCredential) + populateAny(objectMap, "port", v.Port) populate(objectMap, "pwd", v.Pwd) + populateAny(objectMap, "server", v.Server) + populateAny(objectMap, "uid", v.UID) return json.Marshal(objectMap) } @@ -54379,12 +54911,24 @@ func (v *VerticaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { case "connectionString": err = unpopulate(val, "ConnectionString", &v.ConnectionString) delete(rawMsg, key) + case "database": + err = unpopulate(val, "Database", &v.Database) + delete(rawMsg, key) case "encryptedCredential": err = unpopulate(val, "EncryptedCredential", &v.EncryptedCredential) delete(rawMsg, key) + case "port": + err = unpopulate(val, "Port", &v.Port) + delete(rawMsg, key) case "pwd": err = unpopulate(val, "Pwd", &v.Pwd) delete(rawMsg, key) + case "server": + err = unpopulate(val, "Server", &v.Server) + delete(rawMsg, key) + case "uid": + err = unpopulate(val, "UID", &v.UID) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", v, err) @@ -54643,6 +55187,7 @@ func (w WarehouseLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", w.Parameters) objectMap["type"] = "Warehouse" populate(objectMap, "typeProperties", w.TypeProperties) + populate(objectMap, "version", w.Version) if w.AdditionalProperties != nil { for key, val := range w.AdditionalProperties { objectMap[key] = val @@ -54678,6 +55223,9 @@ func (w *WarehouseLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &w.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &w.Version) + delete(rawMsg, key) default: if w.AdditionalProperties == nil { w.AdditionalProperties = map[string]any{} @@ -55475,6 +56023,7 @@ func (w WebLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", w.Parameters) objectMap["type"] = "Web" populate(objectMap, "typeProperties", w.TypeProperties) + populate(objectMap, "version", w.Version) if w.AdditionalProperties != nil { for key, val := range w.AdditionalProperties { objectMap[key] = val @@ -55510,6 +56059,9 @@ func (w *WebLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": w.TypeProperties, err = unmarshalWebLinkedServiceTypePropertiesClassification(val) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &w.Version) + delete(rawMsg, key) default: if w.AdditionalProperties == nil { w.AdditionalProperties = map[string]any{} @@ -56023,6 +56575,7 @@ func (x XeroLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", x.Parameters) objectMap["type"] = "Xero" populate(objectMap, "typeProperties", x.TypeProperties) + populate(objectMap, "version", x.Version) if x.AdditionalProperties != nil { for key, val := range x.AdditionalProperties { objectMap[key] = val @@ -56058,6 +56611,9 @@ func (x *XeroLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &x.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &x.Version) + delete(rawMsg, key) default: if x.AdditionalProperties == nil { x.AdditionalProperties = map[string]any{} @@ -56284,6 +56840,7 @@ func (z ZendeskLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", z.Parameters) objectMap["type"] = "Zendesk" populate(objectMap, "typeProperties", z.TypeProperties) + populate(objectMap, "version", z.Version) if z.AdditionalProperties != nil { for key, val := range z.AdditionalProperties { objectMap[key] = val @@ -56319,6 +56876,9 @@ func (z *ZendeskLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &z.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &z.Version) + delete(rawMsg, key) default: if z.AdditionalProperties == nil { z.AdditionalProperties = map[string]any{} @@ -56439,6 +56999,7 @@ func (z ZohoLinkedService) MarshalJSON() ([]byte, error) { populate(objectMap, "parameters", z.Parameters) objectMap["type"] = "Zoho" populate(objectMap, "typeProperties", z.TypeProperties) + populate(objectMap, "version", z.Version) if z.AdditionalProperties != nil { for key, val := range z.AdditionalProperties { objectMap[key] = val @@ -56474,6 +57035,9 @@ func (z *ZohoLinkedService) UnmarshalJSON(data []byte) error { case "typeProperties": err = unpopulate(val, "TypeProperties", &z.TypeProperties) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &z.Version) + delete(rawMsg, key) default: if z.AdditionalProperties == nil { z.AdditionalProperties = map[string]any{} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go b/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go deleted file mode 100644 index 37450c1e9f65..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go +++ /dev/null @@ -1,88 +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. DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory - -import ( - "context" - "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/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" -) - -// OperationsClient contains the methods for the Operations group. -// Don't use this type directly, use NewOperationsClient() instead. -type OperationsClient struct { - internal *arm.Client -} - -// NewOperationsClient creates a new instance of OperationsClient with the specified values. -// - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. -func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { - cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) - if err != nil { - return nil, err - } - client := &OperationsClient{ - internal: cl, - } - return client, nil -} - -// NewListPager - Lists the available Azure Data Factory API operations. -// -// Generated from API version 2018-06-01 -// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. -func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { - return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ - More: func(page OperationsClientListResponse) bool { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "OperationsClient.NewListPager") - nextLink := "" - if page != nil { - nextLink = *page.NextLink - } - resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) - }, nil) - if err != nil { - return OperationsClientListResponse{}, err - } - return client.listHandleResponse(resp) - }, - Tracer: client.internal.Tracer(), - }) -} - -// listCreateRequest creates the List request. -func (client *OperationsClient) listCreateRequest(ctx context.Context, options *OperationsClientListOptions) (*policy.Request, error) { - urlPath := "/providers/Microsoft.DataFactory/operations" - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2018-06-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listHandleResponse handles the List response. -func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { - result := OperationsClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResponse); err != nil { - return OperationsClientListResponse{}, err - } - return result, nil -} 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 83fe581663b2..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/options.go b/sdk/resourcemanager/datafactory/armdatafactory/options.go index 19b4d1c6d0ba..488f7a80fa25 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/options.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/options.go @@ -220,11 +220,6 @@ type FactoriesClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// FactoriesClientListOptions contains the optional parameters for the FactoriesClient.NewListPager method. -type FactoriesClientListOptions struct { - // placeholder for future optional parameters -} - // FactoriesClientUpdateOptions contains the optional parameters for the FactoriesClient.Update method. type FactoriesClientUpdateOptions struct { // placeholder for future optional parameters @@ -467,11 +462,6 @@ type ManagedVirtualNetworksClientListByFactoryOptions struct { // placeholder for future optional parameters } -// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. -type OperationsClientListOptions struct { - // placeholder for future optional parameters -} - // PipelineRunsClientCancelOptions contains the optional parameters for the PipelineRunsClient.Cancel method. type PipelineRunsClientCancelOptions struct { // If true, cancel all the Child pipelines that are triggered by the current pipeline. 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 66292f323ed7..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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.334Z"); return t }()), - LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.368Z"); 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.731Z"); 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.731Z"); 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.625Z"); 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.216Z"); 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.274Z"); return t}()), - // Status: to.Ptr("Cancelled"), - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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.731Z"); 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.731Z"); 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.625Z"); return t}()), - // Status: to.Ptr("Succeeded"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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 bedf917ee7b1..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/polymorphic_helpers.go b/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go index b433700e7197..ab2ff3790a9d 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go @@ -207,6 +207,8 @@ func unmarshalCopySinkClassification(rawMsg json.RawMessage) (CopySinkClassifica b = &DynamicsSink{} case "FileSystemSink": b = &FileSystemSink{} + case "IcebergSink": + b = &IcebergSink{} case "InformixSink": b = &InformixSink{} case "JsonSink": @@ -683,6 +685,8 @@ func unmarshalDatasetClassification(rawMsg json.RawMessage) (DatasetClassificati b = &HTTPDataset{} case "HubspotObject": b = &HubspotObjectDataset{} + case "Iceberg": + b = &IcebergDataset{} case "ImpalaObject": b = &ImpalaObjectDataset{} case "InformixTable": 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 10a6fa53fd7c..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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 1b951579a479..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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 65ba702ff0f3..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/responses.go b/sdk/resourcemanager/datafactory/armdatafactory/responses.go index 090f1eb34004..5377484a9723 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/responses.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/responses.go @@ -210,12 +210,6 @@ type FactoriesClientListByResourceGroupResponse struct { FactoryListResponse } -// FactoriesClientListResponse contains the response from method FactoriesClient.NewListPager. -type FactoriesClientListResponse struct { - // A list of factory resources. - FactoryListResponse -} - // FactoriesClientUpdateResponse contains the response from method FactoriesClient.Update. type FactoriesClientUpdateResponse struct { // Factory resource type. @@ -441,12 +435,6 @@ type ManagedVirtualNetworksClientListByFactoryResponse struct { ManagedVirtualNetworkListResponse } -// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. -type OperationsClientListResponse struct { - // A list of operations that can be performed by the Data Factory service. - OperationListResponse -} - // PipelineRunsClientCancelResponse contains the response from method PipelineRunsClient.Cancel. type PipelineRunsClientCancelResponse struct { // placeholder for future response values 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 490e47c6fcad..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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.334Z"); return t }()), - LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.368Z"); 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.660Z"); 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 4b1f53c8f0e7..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/v8" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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.905Z"); 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.905Z"); return t}()), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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.905Z"); return t}()), - // RequestedStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:14.905Z"); return t}()), - // RerunConcurrency: to.Ptr[int32](4), - // }, - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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.844Z"); 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.844Z"); 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.844Z"); 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.844Z"); return t}()), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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.905Z"); 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.905Z"); 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.905Z"); 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.905Z"); return t}()), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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.528Z"); 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.527Z"); return t}()), - // TimeZone: to.Ptr("UTC"), - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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/f6f50c6388fd5836fa142384641b8353a99874ef/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) - } -} diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/CHANGELOG.md b/sdk/resourcemanager/mongocluster/armmongocluster/CHANGELOG.md index ef7b9daa3a52..73b7207247e4 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/CHANGELOG.md +++ b/sdk/resourcemanager/mongocluster/armmongocluster/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 1.0.2 (2024-10-23) +### Other Changes + + ## 0.1.0 (2024-07-05) ### Other Changes diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/client_factory.go b/sdk/resourcemanager/mongocluster/armmongocluster/client_factory.go index e11c5b4349ff..c7773e0f4cb9 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/client_factory.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/client_factory.go @@ -70,3 +70,11 @@ func (c *ClientFactory) NewPrivateLinksClient() *PrivateLinksClient { internal: c.internal, } } + +// NewReplicasClient creates a new instance of ReplicasClient. +func (c *ClientFactory) NewReplicasClient() *ReplicasClient { + return &ReplicasClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/constants.go b/sdk/resourcemanager/mongocluster/armmongocluster/constants.go index f208f7874a40..e2bfad7caeb9 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/constants.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/constants.go @@ -6,7 +6,7 @@ package armmongocluster const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mongocluster/armmongocluster" - moduleVersion = "v0.1.0" + moduleVersion = "v1.0.2" ) // ActionType - Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. @@ -48,15 +48,21 @@ type CreateMode string const ( // CreateModeDefault - Create a new mongo cluster. CreateModeDefault CreateMode = "Default" + // CreateModeGeoReplica - Create a replica cluster in distinct geographic region from the source cluster. + CreateModeGeoReplica CreateMode = "GeoReplica" // CreateModePointInTimeRestore - Create a mongo cluster from a restore point-in-time. CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" + // CreateModeReplica - Create a replica cluster in the same geographic region as the source cluster. + CreateModeReplica CreateMode = "Replica" ) // PossibleCreateModeValues returns the possible values for the CreateMode const type. func PossibleCreateModeValues() []CreateMode { return []CreateMode{ CreateModeDefault, + CreateModeGeoReplica, CreateModePointInTimeRestore, + CreateModeReplica, } } @@ -84,51 +90,27 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -// MongoClusterStatus - The status of the Mongo cluster resource. -type MongoClusterStatus string +// HighAvailabilityMode - The high availability modes for a cluster. +type HighAvailabilityMode string const ( - // MongoClusterStatusDropping - The mongo cluster resource is being dropped. - MongoClusterStatusDropping MongoClusterStatus = "Dropping" - // MongoClusterStatusProvisioning - The mongo cluster resource is being provisioned. - MongoClusterStatusProvisioning MongoClusterStatus = "Provisioning" - // MongoClusterStatusReady - The mongo cluster resource is ready for use. - MongoClusterStatusReady MongoClusterStatus = "Ready" - // MongoClusterStatusStarting - The mongo cluster resource is being started. - MongoClusterStatusStarting MongoClusterStatus = "Starting" - // MongoClusterStatusStopped - The mongo cluster resource is stopped. - MongoClusterStatusStopped MongoClusterStatus = "Stopped" - // MongoClusterStatusStopping - The mongo cluster resource is being stopped. - MongoClusterStatusStopping MongoClusterStatus = "Stopping" - // MongoClusterStatusUpdating - The mongo cluster resource is being updated. - MongoClusterStatusUpdating MongoClusterStatus = "Updating" + // HighAvailabilityModeDisabled - High availability mode is disabled. This mode is can see availability impact during faults + // or maintenance and is not recommended for production. + HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" + // HighAvailabilityModeSameZone - High availability mode is enabled, where each server in a shard is placed in the same availability + // zone. + HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" + // HighAvailabilityModeZoneRedundantPreferred - High availability mode is enabled and preferences ZoneRedundant if availability + // zones capacity is available in the region, otherwise falls-back to provisioning with SameZone. + HighAvailabilityModeZoneRedundantPreferred HighAvailabilityMode = "ZoneRedundantPreferred" ) -// PossibleMongoClusterStatusValues returns the possible values for the MongoClusterStatus const type. -func PossibleMongoClusterStatusValues() []MongoClusterStatus { - return []MongoClusterStatus{ - MongoClusterStatusDropping, - MongoClusterStatusProvisioning, - MongoClusterStatusReady, - MongoClusterStatusStarting, - MongoClusterStatusStopped, - MongoClusterStatusStopping, - MongoClusterStatusUpdating, - } -} - -// NodeKind - The kind of the node on the cluster. -type NodeKind string - -const ( - // NodeKindShard - The node is a shard kind. - NodeKindShard NodeKind = "Shard" -) - -// PossibleNodeKindValues returns the possible values for the NodeKind const type. -func PossibleNodeKindValues() []NodeKind { - return []NodeKind{ - NodeKindShard, +// PossibleHighAvailabilityModeValues returns the possible values for the HighAvailabilityMode const type. +func PossibleHighAvailabilityModeValues() []HighAvailabilityMode { + return []HighAvailabilityMode{ + HighAvailabilityModeDisabled, + HighAvailabilityModeSameZone, + HighAvailabilityModeZoneRedundantPreferred, } } @@ -154,6 +136,22 @@ func PossibleOriginValues() []Origin { } } +// PreviewFeature - Preview features that can be enabled on a mongo cluster. +type PreviewFeature string + +const ( + // PreviewFeatureGeoReplicas - Enables geo replicas preview feature. The feature must be set at create-time on new cluster + // to enable linking a geo-replica cluster to it. + PreviewFeatureGeoReplicas PreviewFeature = "GeoReplicas" +) + +// PossiblePreviewFeatureValues returns the possible values for the PreviewFeature const type. +func PossiblePreviewFeatureValues() []PreviewFeature { + return []PreviewFeature{ + PreviewFeatureGeoReplicas, + } +} + // PrivateEndpointConnectionProvisioningState - The current provisioning state. type PrivateEndpointConnectionProvisioningState string @@ -199,6 +197,38 @@ func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointSer } } +// PromoteMode - The mode to apply to a promote operation. +type PromoteMode string + +const ( + // PromoteModeSwitchover - Promotion will switch the current replica cluster to the primary role and the original primary + // will be switched to a replica role, maintaining the replication link. + PromoteModeSwitchover PromoteMode = "Switchover" +) + +// PossiblePromoteModeValues returns the possible values for the PromoteMode const type. +func PossiblePromoteModeValues() []PromoteMode { + return []PromoteMode{ + PromoteModeSwitchover, + } +} + +// PromoteOption - The option to apply to a promote operation. +type PromoteOption string + +const ( + // PromoteOptionForced - Promote option forces the promotion without waiting for the replica to be caught up to the primary. + // This can result in data-loss so should only be used during disaster recovery scenarios. + PromoteOptionForced PromoteOption = "Forced" +) + +// PossiblePromoteOptionValues returns the possible values for the PromoteOption const type. +func PossiblePromoteOptionValues() []PromoteOption { + return []PromoteOption{ + PromoteOptionForced, + } +} + // ProvisioningState - The provisioning state of the last accepted operation. type ProvisioningState string @@ -247,3 +277,88 @@ func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { PublicNetworkAccessEnabled, } } + +// ReplicationRole - Replication role of the mongo cluster. +type ReplicationRole string + +const ( + // ReplicationRoleAsyncReplica - The cluster is a local asynchronous replica. + ReplicationRoleAsyncReplica ReplicationRole = "AsyncReplica" + // ReplicationRoleGeoAsyncReplica - The cluster is a geo-asynchronous replica. + ReplicationRoleGeoAsyncReplica ReplicationRole = "GeoAsyncReplica" + // ReplicationRolePrimary - The cluster is a primary replica. + ReplicationRolePrimary ReplicationRole = "Primary" +) + +// PossibleReplicationRoleValues returns the possible values for the ReplicationRole const type. +func PossibleReplicationRoleValues() []ReplicationRole { + return []ReplicationRole{ + ReplicationRoleAsyncReplica, + ReplicationRoleGeoAsyncReplica, + ReplicationRolePrimary, + } +} + +// ReplicationState - The state of the replication link between the replica and source cluster. +type ReplicationState string + +const ( + // ReplicationStateActive - Replication link is active. + ReplicationStateActive ReplicationState = "Active" + // ReplicationStateBroken - Replication link is broken and the replica may need to be recreated. + ReplicationStateBroken ReplicationState = "Broken" + // ReplicationStateCatchup - Replica is catching-up with the primary. This can occur after the replica is created or after + // a promotion is triggered. + ReplicationStateCatchup ReplicationState = "Catchup" + // ReplicationStateProvisioning - Replica and replication link to the primary is being created. + ReplicationStateProvisioning ReplicationState = "Provisioning" + // ReplicationStateReconfiguring - Replication link is re-configuring due to a promotion event. + ReplicationStateReconfiguring ReplicationState = "Reconfiguring" + // ReplicationStateUpdating - Replication link is being updated due to a change on the replica or an upgrade. + ReplicationStateUpdating ReplicationState = "Updating" +) + +// PossibleReplicationStateValues returns the possible values for the ReplicationState const type. +func PossibleReplicationStateValues() []ReplicationState { + return []ReplicationState{ + ReplicationStateActive, + ReplicationStateBroken, + ReplicationStateCatchup, + ReplicationStateProvisioning, + ReplicationStateReconfiguring, + ReplicationStateUpdating, + } +} + +// Status - The status of the Mongo cluster resource. +type Status string + +const ( + // StatusDropping - The mongo cluster resource is being dropped. + StatusDropping Status = "Dropping" + // StatusProvisioning - The mongo cluster resource is being provisioned. + StatusProvisioning Status = "Provisioning" + // StatusReady - The mongo cluster resource is ready for use. + StatusReady Status = "Ready" + // StatusStarting - The mongo cluster resource is being started. + StatusStarting Status = "Starting" + // StatusStopped - The mongo cluster resource is stopped. + StatusStopped Status = "Stopped" + // StatusStopping - The mongo cluster resource is being stopped. + StatusStopping Status = "Stopping" + // StatusUpdating - The mongo cluster resource is being updated. + StatusUpdating Status = "Updating" +) + +// PossibleStatusValues returns the possible values for the Status const type. +func PossibleStatusValues() []Status { + return []Status{ + StatusDropping, + StatusProvisioning, + StatusReady, + StatusStarting, + StatusStopped, + StatusStopping, + StatusUpdating, + } +} diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/fake/mongoclusters_server.go b/sdk/resourcemanager/mongocluster/armmongocluster/fake/mongoclusters_server.go index fa323bea32ef..282e05f31b53 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/fake/mongoclusters_server.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/fake/mongoclusters_server.go @@ -48,6 +48,10 @@ type MongoClustersServer struct { // HTTP status codes to indicate success: http.StatusOK ListConnectionStrings func(ctx context.Context, resourceGroupName string, mongoClusterName string, options *armmongocluster.MongoClustersClientListConnectionStringsOptions) (resp azfake.Responder[armmongocluster.MongoClustersClientListConnectionStringsResponse], errResp azfake.ErrorResponder) + // BeginPromote is the fake for method MongoClustersClient.BeginPromote + // HTTP status codes to indicate success: http.StatusAccepted + BeginPromote func(ctx context.Context, resourceGroupName string, mongoClusterName string, body armmongocluster.PromoteReplicaRequest, options *armmongocluster.MongoClustersClientBeginPromoteOptions) (resp azfake.PollerResponder[armmongocluster.MongoClustersClientPromoteResponse], errResp azfake.ErrorResponder) + // BeginUpdate is the fake for method MongoClustersClient.BeginUpdate // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginUpdate func(ctx context.Context, resourceGroupName string, mongoClusterName string, properties armmongocluster.Update, options *armmongocluster.MongoClustersClientBeginUpdateOptions) (resp azfake.PollerResponder[armmongocluster.MongoClustersClientUpdateResponse], errResp azfake.ErrorResponder) @@ -63,6 +67,7 @@ func NewMongoClustersServerTransport(srv *MongoClustersServer) *MongoClustersSer beginDelete: newTracker[azfake.PollerResponder[armmongocluster.MongoClustersClientDeleteResponse]](), newListPager: newTracker[azfake.PagerResponder[armmongocluster.MongoClustersClientListResponse]](), newListByResourceGroupPager: newTracker[azfake.PagerResponder[armmongocluster.MongoClustersClientListByResourceGroupResponse]](), + beginPromote: newTracker[azfake.PollerResponder[armmongocluster.MongoClustersClientPromoteResponse]](), beginUpdate: newTracker[azfake.PollerResponder[armmongocluster.MongoClustersClientUpdateResponse]](), } } @@ -75,6 +80,7 @@ type MongoClustersServerTransport struct { beginDelete *tracker[azfake.PollerResponder[armmongocluster.MongoClustersClientDeleteResponse]] newListPager *tracker[azfake.PagerResponder[armmongocluster.MongoClustersClientListResponse]] newListByResourceGroupPager *tracker[azfake.PagerResponder[armmongocluster.MongoClustersClientListByResourceGroupResponse]] + beginPromote *tracker[azfake.PollerResponder[armmongocluster.MongoClustersClientPromoteResponse]] beginUpdate *tracker[azfake.PollerResponder[armmongocluster.MongoClustersClientUpdateResponse]] } @@ -108,6 +114,8 @@ func (m *MongoClustersServerTransport) dispatchToMethodFake(req *http.Request, m resp, err = m.dispatchNewListByResourceGroupPager(req) case "MongoClustersClient.ListConnectionStrings": resp, err = m.dispatchListConnectionStrings(req) + case "MongoClustersClient.BeginPromote": + resp, err = m.dispatchBeginPromote(req) case "MongoClustersClient.BeginUpdate": resp, err = m.dispatchBeginUpdate(req) default: @@ -378,6 +386,54 @@ func (m *MongoClustersServerTransport) dispatchListConnectionStrings(req *http.R return resp, nil } +func (m *MongoClustersServerTransport) dispatchBeginPromote(req *http.Request) (*http.Response, error) { + if m.srv.BeginPromote == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginPromote not implemented")} + } + beginPromote := m.beginPromote.get(req) + if beginPromote == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DocumentDB/mongoClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/promote` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armmongocluster.PromoteReplicaRequest](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + mongoClusterNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("mongoClusterName")]) + if err != nil { + return nil, err + } + respr, errRespr := m.srv.BeginPromote(req.Context(), resourceGroupNameParam, mongoClusterNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginPromote = &respr + m.beginPromote.add(req, beginPromote) + } + + resp, err := server.PollerResponderNext(beginPromote, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusAccepted}, resp.StatusCode) { + m.beginPromote.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted", resp.StatusCode)} + } + if !server.PollerResponderMore(beginPromote) { + m.beginPromote.remove(req) + } + + return resp, nil +} + func (m *MongoClustersServerTransport) dispatchBeginUpdate(req *http.Request) (*http.Response, error) { if m.srv.BeginUpdate == nil { return nil, &nonRetriableError{errors.New("fake for method BeginUpdate not implemented")} diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/fake/replicas_server.go b/sdk/resourcemanager/mongocluster/armmongocluster/fake/replicas_server.go new file mode 100644 index 000000000000..380cc5823b3d --- /dev/null +++ b/sdk/resourcemanager/mongocluster/armmongocluster/fake/replicas_server.go @@ -0,0 +1,108 @@ +// 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) Go Code Generator. DO NOT EDIT. + +package fake + +import ( + "errors" + "fmt" + azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mongocluster/armmongocluster" + "net/http" + "net/url" + "regexp" +) + +// ReplicasServer is a fake server for instances of the armmongocluster.ReplicasClient type. +type ReplicasServer struct { + // NewListByParentPager is the fake for method ReplicasClient.NewListByParentPager + // HTTP status codes to indicate success: http.StatusOK + NewListByParentPager func(resourceGroupName string, mongoClusterName string, options *armmongocluster.ReplicasClientListByParentOptions) (resp azfake.PagerResponder[armmongocluster.ReplicasClientListByParentResponse]) +} + +// NewReplicasServerTransport creates a new instance of ReplicasServerTransport with the provided implementation. +// The returned ReplicasServerTransport instance is connected to an instance of armmongocluster.ReplicasClient via the +// azcore.ClientOptions.Transporter field in the client's constructor parameters. +func NewReplicasServerTransport(srv *ReplicasServer) *ReplicasServerTransport { + return &ReplicasServerTransport{ + srv: srv, + newListByParentPager: newTracker[azfake.PagerResponder[armmongocluster.ReplicasClientListByParentResponse]](), + } +} + +// ReplicasServerTransport connects instances of armmongocluster.ReplicasClient to instances of ReplicasServer. +// Don't use this type directly, use NewReplicasServerTransport instead. +type ReplicasServerTransport struct { + srv *ReplicasServer + newListByParentPager *tracker[azfake.PagerResponder[armmongocluster.ReplicasClientListByParentResponse]] +} + +// Do implements the policy.Transporter interface for ReplicasServerTransport. +func (r *ReplicasServerTransport) Do(req *http.Request) (*http.Response, error) { + rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) + method, ok := rawMethod.(string) + if !ok { + return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} + } + + return r.dispatchToMethodFake(req, method) +} + +func (r *ReplicasServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + var resp *http.Response + var err error + + switch method { + case "ReplicasClient.NewListByParentPager": + resp, err = r.dispatchNewListByParentPager(req) + default: + err = fmt.Errorf("unhandled API %s", method) + } + + return resp, err +} + +func (r *ReplicasServerTransport) dispatchNewListByParentPager(req *http.Request) (*http.Response, error) { + if r.srv.NewListByParentPager == nil { + return nil, &nonRetriableError{errors.New("fake for method NewListByParentPager not implemented")} + } + newListByParentPager := r.newListByParentPager.get(req) + if newListByParentPager == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DocumentDB/mongoClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/replicas` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + mongoClusterNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("mongoClusterName")]) + if err != nil { + return nil, err + } + resp := r.srv.NewListByParentPager(resourceGroupNameParam, mongoClusterNameParam, nil) + newListByParentPager = &resp + r.newListByParentPager.add(req, newListByParentPager) + server.PagerResponderInjectNextLinks(newListByParentPager, req, func(page *armmongocluster.ReplicasClientListByParentResponse, createLink func() string) { + page.NextLink = to.Ptr(createLink()) + }) + } + resp, err := server.PagerResponderNext(newListByParentPager, req) + if err != nil { + return nil, err + } + if !contains([]int{http.StatusOK}, resp.StatusCode) { + r.newListByParentPager.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} + } + if !server.PagerResponderMore(newListByParentPager) { + r.newListByParentPager.remove(req) + } + return resp, nil +} diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/fake/server_factory.go b/sdk/resourcemanager/mongocluster/armmongocluster/fake/server_factory.go index 45e92750d801..b812f1fc24df 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/fake/server_factory.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/fake/server_factory.go @@ -29,6 +29,9 @@ type ServerFactory struct { // PrivateLinksServer contains the fakes for client PrivateLinksClient PrivateLinksServer PrivateLinksServer + + // ReplicasServer contains the fakes for client ReplicasClient + ReplicasServer ReplicasServer } // NewServerFactoryTransport creates a new instance of ServerFactoryTransport with the provided implementation. @@ -50,6 +53,7 @@ type ServerFactoryTransport struct { trOperationsServer *OperationsServerTransport trPrivateEndpointConnectionsServer *PrivateEndpointConnectionsServerTransport trPrivateLinksServer *PrivateLinksServerTransport + trReplicasServer *ReplicasServerTransport } // Do implements the policy.Transporter interface for ServerFactoryTransport. @@ -86,6 +90,9 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { case "PrivateLinksClient": initServer(s, &s.trPrivateLinksServer, func() *PrivateLinksServerTransport { return NewPrivateLinksServerTransport(&s.srv.PrivateLinksServer) }) resp, err = s.trPrivateLinksServer.Do(req) + case "ReplicasClient": + initServer(s, &s.trReplicasServer, func() *ReplicasServerTransport { return NewReplicasServerTransport(&s.srv.ReplicasServer) }) + resp, err = s.trReplicasServer.Do(req) default: err = fmt.Errorf("unhandled client %s", client) } diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/firewallrules_client.go b/sdk/resourcemanager/mongocluster/armmongocluster/firewallrules_client.go index a3c21eb28284..6796ca9e9b9c 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/firewallrules_client.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/firewallrules_client.go @@ -42,7 +42,7 @@ func NewFirewallRulesClient(subscriptionID string, credential azcore.TokenCreden // BeginCreateOrUpdate - Creates a new firewall rule or updates an existing firewall rule on a mongo cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - firewallRuleName - The name of the mongo cluster firewall rule. @@ -70,7 +70,7 @@ func (client *FirewallRulesClient) BeginCreateOrUpdate(ctx context.Context, reso // CreateOrUpdate - Creates a new firewall rule or updates an existing firewall rule on a mongo cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 func (client *FirewallRulesClient) createOrUpdate(ctx context.Context, resourceGroupName string, mongoClusterName string, firewallRuleName string, resource FirewallRule, options *FirewallRulesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "FirewallRulesClient.BeginCreateOrUpdate" @@ -116,7 +116,7 @@ func (client *FirewallRulesClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} req.Raw().Header["Content-Type"] = []string{"application/json"} @@ -129,7 +129,7 @@ func (client *FirewallRulesClient) createOrUpdateCreateRequest(ctx context.Conte // BeginDelete - Deletes a mongo cluster firewall rule. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - firewallRuleName - The name of the mongo cluster firewall rule. @@ -155,7 +155,7 @@ func (client *FirewallRulesClient) BeginDelete(ctx context.Context, resourceGrou // Delete - Deletes a mongo cluster firewall rule. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 func (client *FirewallRulesClient) deleteOperation(ctx context.Context, resourceGroupName string, mongoClusterName string, firewallRuleName string, options *FirewallRulesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "FirewallRulesClient.BeginDelete" @@ -201,7 +201,7 @@ func (client *FirewallRulesClient) deleteCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -210,7 +210,7 @@ func (client *FirewallRulesClient) deleteCreateRequest(ctx context.Context, reso // Get - Gets information about a mongo cluster firewall rule. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - firewallRuleName - The name of the mongo cluster firewall rule. @@ -261,7 +261,7 @@ func (client *FirewallRulesClient) getCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -278,7 +278,7 @@ func (client *FirewallRulesClient) getHandleResponse(resp *http.Response) (Firew // NewListByMongoClusterPager - List all the firewall rules in a given mongo cluster. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - options - FirewallRulesClientListByMongoClusterOptions contains the optional parameters for the FirewallRulesClient.NewListByMongoClusterPager @@ -326,7 +326,7 @@ func (client *FirewallRulesClient) listByMongoClusterCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/models.go b/sdk/resourcemanager/mongocluster/armmongocluster/models.go index 2e4009b03995..9494835cd5da 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/models.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/models.go @@ -6,6 +6,21 @@ package armmongocluster import "time" +// AdministratorProperties - The local administrator login properties. +type AdministratorProperties struct { + // The administrator password. + Password *string + + // The administrator user name. + UserName *string +} + +// BackupProperties - The backup properties of the cluster. This includes the earliest restore time and retention settings. +type BackupProperties struct { + // READ-ONLY; Earliest restore timestamp in UTC ISO8601 format. + EarliestRestoreTime *string +} + // CheckNameAvailabilityRequest - The check availability request body. type CheckNameAvailabilityRequest struct { // The name of the resource for which availability needs to be checked. @@ -27,6 +42,14 @@ type CheckNameAvailabilityResponse struct { Reason *CheckNameAvailabilityReason } +// ComputeProperties - The compute properties of the cluster. This includes the virtual-cores/memory and scaling options applied +// to servers in the cluster. +type ComputeProperties struct { + // The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', + // 'M40'. + Tier *string +} + // ConnectionString - Connection string for the mongo cluster type ConnectionString struct { // READ-ONLY; Value of the connection string @@ -34,6 +57,9 @@ type ConnectionString struct { // READ-ONLY; Description of the connection string Description *string + + // READ-ONLY; Name of the connection string. + Name *string } // FirewallRule - Represents a mongo cluster firewall rule. @@ -75,6 +101,12 @@ type FirewallRuleProperties struct { ProvisioningState *ProvisioningState } +// HighAvailabilityProperties - The high availability properties of the cluster. +type HighAvailabilityProperties struct { + // The target high availability mode requested for the cluster. + TargetMode *HighAvailabilityMode +} + // ListConnectionStringsResult - The connection strings for the given mongo cluster. type ListConnectionStringsResult struct { // READ-ONLY; An array that contains the connection strings for a mongo cluster. @@ -114,31 +146,12 @@ type MongoCluster struct { Type *string } -// NodeGroupSpec - Specification for a node group. -type NodeGroupSpec struct { - // The disk storage size for the node group in GB. Example values: 128, 256, 512, 1024. - DiskSizeGB *int64 - - // Whether high availability is enabled on the node group. - EnableHa *bool - - // The node type deployed in the node group. - Kind *NodeKind - - // The number of nodes in the node group. - NodeCount *int32 - - // The resource sku for the node group. This defines the size of CPU and memory that is provisioned for each node. Example - // values: 'M30', 'M40'. - SKU *string -} - // Operation - Details of a REST API operation, returned from the Resource Provider Operations API type Operation struct { // Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. ActionType *ActionType - // Localized display information for this particular operation. + // READ-ONLY; Localized display information for this particular operation. Display *OperationDisplay // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure @@ -156,17 +169,19 @@ type Operation struct { // OperationDisplay - Localized display information for and operation. type OperationDisplay struct { - // The short, localized friendly description of the operation; suitable for tool tips and detailed views. + // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. Description *string - // The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", - // "Restart Virtual Machine". + // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual + // Machine", "Restart Virtual Machine". Operation *string - // The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft + // Compute". Provider *string - // The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job + // Schedule Collections". Resource *string } @@ -299,43 +314,118 @@ type PrivateLinkServiceConnectionState struct { Status *PrivateEndpointServiceConnectionStatus } +// PromoteReplicaRequest - Promote replica request properties. +type PromoteReplicaRequest struct { + // REQUIRED; The promote option to apply to the operation. + PromoteOption *PromoteOption + + // The mode to apply to the promote operation. Value is optional and default value is 'Switchover'. + Mode *PromoteMode +} + // Properties - The properties of a mongo cluster. type Properties struct { - // The administrator's login for the mongo cluster. - AdministratorLogin *string + // The local administrator properties for the mongo cluster. + Administrator *AdministratorProperties + + // The backup properties of the mongo cluster. + Backup *BackupProperties - // The password of the administrator login. - AdministratorLoginPassword *string + // The compute properties of the mongo cluster. + Compute *ComputeProperties // The mode to create a mongo cluster. CreateMode *CreateMode - // The list of node group specs in the cluster. - NodeGroupSpecs []*NodeGroupSpec + // The high availability properties of the mongo cluster. + HighAvailability *HighAvailabilityProperties + + // List of private endpoint connections. + PreviewFeatures []*PreviewFeature // Whether or not public endpoint access is allowed for this mongo cluster. PublicNetworkAccess *PublicNetworkAccess + // The parameters to create a replica mongo cluster. + ReplicaParameters *ReplicaParameters + // The parameters to create a point-in-time restore mongo cluster. RestoreParameters *RestoreParameters // The Mongo DB server version. Defaults to the latest available version if not specified. ServerVersion *string + // The sharding properties of the mongo cluster. + Sharding *ShardingProperties + + // The storage properties of the mongo cluster. + Storage *StorageProperties + // READ-ONLY; The status of the mongo cluster. - ClusterStatus *MongoClusterStatus + ClusterStatus *Status // READ-ONLY; The default mongo connection string for the cluster. ConnectionString *string - // READ-ONLY; Earliest restore timestamp in UTC ISO8601 format. - EarliestRestoreTime *string + // READ-ONLY; The infrastructure version the cluster is provisioned on. + InfrastructureVersion *string // READ-ONLY; List of private endpoint connections. PrivateEndpointConnections []*PrivateEndpointConnection // READ-ONLY; The provisioning state of the mongo cluster. ProvisioningState *ProvisioningState + + // READ-ONLY; The replication properties for the mongo cluster + Replica *ReplicationProperties +} + +// Replica - Represents a mongo cluster replica. +type Replica struct { + // The resource-specific properties for this resource. + Properties *Properties + + // READ-ONLY; The name of the mongo cluster firewall rule. + Name *string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// ReplicaListResult - The response of a Replica list operation. +type ReplicaListResult struct { + // REQUIRED; The Replica items on this page + Value []*Replica + + // The link to the next page of items + NextLink *string +} + +// ReplicaParameters - Parameters used for replica operations. +type ReplicaParameters struct { + // REQUIRED; The location of the source cluster + SourceLocation *string + + // REQUIRED; The id of the replication source cluster. + SourceResourceID *string +} + +// ReplicationProperties - Replica properties of the mongo cluster. +type ReplicationProperties struct { + // READ-ONLY; The replication link state of the replica cluster. + ReplicationState *ReplicationState + + // READ-ONLY; The replication role of the cluster + Role *ReplicationRole + + // READ-ONLY; The resource id the source cluster for the replica cluster. + SourceResourceID *string } // RestoreParameters - Parameters used for restore operations @@ -347,6 +437,20 @@ type RestoreParameters struct { SourceResourceID *string } +// ShardingProperties - The sharding properties of the cluster. This includes the shard count and scaling options for the +// cluster. +type ShardingProperties struct { + // Number of shards to provision on the cluster. + ShardCount *int32 +} + +// StorageProperties - The storage properties of the cluster. This includes the data storage size and scaling applied to servers +// in the cluster. +type StorageProperties struct { + // The size of the data disk assigned to each server. + SizeGb *int64 +} + // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). @@ -370,7 +474,7 @@ type SystemData struct { // Update - The type used for update operations of the MongoCluster. type Update struct { - // The updatable properties of the MongoCluster. + // The resource-specific properties for this resource. Properties *UpdateProperties // Resource tags. @@ -379,18 +483,30 @@ type Update struct { // UpdateProperties - The updatable properties of the MongoCluster. type UpdateProperties struct { - // The administrator's login for the mongo cluster. - AdministratorLogin *string + // The local administrator properties for the mongo cluster. + Administrator *AdministratorProperties - // The password of the administrator login. - AdministratorLoginPassword *string + // The backup properties of the mongo cluster. + Backup *BackupProperties - // The list of node group specs in the cluster. - NodeGroupSpecs []*NodeGroupSpec + // The compute properties of the mongo cluster. + Compute *ComputeProperties + + // The high availability properties of the mongo cluster. + HighAvailability *HighAvailabilityProperties + + // List of private endpoint connections. + PreviewFeatures []*PreviewFeature // Whether or not public endpoint access is allowed for this mongo cluster. PublicNetworkAccess *PublicNetworkAccess // The Mongo DB server version. Defaults to the latest available version if not specified. ServerVersion *string + + // The sharding properties of the mongo cluster. + Sharding *ShardingProperties + + // The storage properties of the mongo cluster. + Storage *StorageProperties } diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/models_serde.go b/sdk/resourcemanager/mongocluster/armmongocluster/models_serde.go index ab32587130b2..fba590971cba 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/models_serde.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/models_serde.go @@ -11,6 +11,64 @@ import ( "reflect" ) +// MarshalJSON implements the json.Marshaller interface for type AdministratorProperties. +func (a AdministratorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "password", a.Password) + populate(objectMap, "userName", a.UserName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AdministratorProperties. +func (a *AdministratorProperties) 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", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "password": + err = unpopulate(val, "Password", &a.Password) + delete(rawMsg, key) + case "userName": + err = unpopulate(val, "UserName", &a.UserName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type BackupProperties. +func (b BackupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "earliestRestoreTime", b.EarliestRestoreTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BackupProperties. +func (b *BackupProperties) 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", b, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "earliestRestoreTime": + err = unpopulate(val, "EarliestRestoreTime", &b.EarliestRestoreTime) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", b, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityRequest. func (c CheckNameAvailabilityRequest) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -77,11 +135,39 @@ func (c *CheckNameAvailabilityResponse) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ComputeProperties. +func (c ComputeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tier", c.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ComputeProperties. +func (c *ComputeProperties) 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", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "tier": + err = unpopulate(val, "Tier", &c.Tier) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ConnectionString. func (c ConnectionString) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "connectionString", c.ConnectionString) populate(objectMap, "description", c.Description) + populate(objectMap, "name", c.Name) return json.Marshal(objectMap) } @@ -100,6 +186,9 @@ func (c *ConnectionString) UnmarshalJSON(data []byte) error { case "description": err = unpopulate(val, "Description", &c.Description) delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -217,6 +306,33 @@ func (f *FirewallRuleProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type HighAvailabilityProperties. +func (h HighAvailabilityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "targetMode", h.TargetMode) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HighAvailabilityProperties. +func (h *HighAvailabilityProperties) 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", h, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "targetMode": + err = unpopulate(val, "TargetMode", &h.TargetMode) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", h, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ListConnectionStringsResult. func (l ListConnectionStringsResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -326,49 +442,6 @@ func (m *MongoCluster) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type NodeGroupSpec. -func (n NodeGroupSpec) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "diskSizeGB", n.DiskSizeGB) - populate(objectMap, "enableHa", n.EnableHa) - populate(objectMap, "kind", n.Kind) - populate(objectMap, "nodeCount", n.NodeCount) - populate(objectMap, "sku", n.SKU) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type NodeGroupSpec. -func (n *NodeGroupSpec) 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", n, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "diskSizeGB": - err = unpopulate(val, "DiskSizeGB", &n.DiskSizeGB) - delete(rawMsg, key) - case "enableHa": - err = unpopulate(val, "EnableHa", &n.EnableHa) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &n.Kind) - delete(rawMsg, key) - case "nodeCount": - err = unpopulate(val, "NodeCount", &n.NodeCount) - delete(rawMsg, key) - case "sku": - err = unpopulate(val, "SKU", &n.SKU) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", n, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type Operation. func (o Operation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -809,21 +882,58 @@ func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type PromoteReplicaRequest. +func (p PromoteReplicaRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "mode", p.Mode) + populate(objectMap, "promoteOption", p.PromoteOption) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PromoteReplicaRequest. +func (p *PromoteReplicaRequest) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "mode": + err = unpopulate(val, "Mode", &p.Mode) + delete(rawMsg, key) + case "promoteOption": + err = unpopulate(val, "PromoteOption", &p.PromoteOption) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Properties. func (p Properties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "administratorLogin", p.AdministratorLogin) - populate(objectMap, "administratorLoginPassword", p.AdministratorLoginPassword) + populate(objectMap, "administrator", p.Administrator) + populate(objectMap, "backup", p.Backup) populate(objectMap, "clusterStatus", p.ClusterStatus) + populate(objectMap, "compute", p.Compute) populate(objectMap, "connectionString", p.ConnectionString) populate(objectMap, "createMode", p.CreateMode) - populate(objectMap, "earliestRestoreTime", p.EarliestRestoreTime) - populate(objectMap, "nodeGroupSpecs", p.NodeGroupSpecs) + populate(objectMap, "highAvailability", p.HighAvailability) + populate(objectMap, "infrastructureVersion", p.InfrastructureVersion) + populate(objectMap, "previewFeatures", p.PreviewFeatures) populate(objectMap, "privateEndpointConnections", p.PrivateEndpointConnections) populate(objectMap, "provisioningState", p.ProvisioningState) populate(objectMap, "publicNetworkAccess", p.PublicNetworkAccess) + populate(objectMap, "replica", p.Replica) + populate(objectMap, "replicaParameters", p.ReplicaParameters) populate(objectMap, "restoreParameters", p.RestoreParameters) populate(objectMap, "serverVersion", p.ServerVersion) + populate(objectMap, "sharding", p.Sharding) + populate(objectMap, "storage", p.Storage) return json.Marshal(objectMap) } @@ -836,26 +946,32 @@ func (p *Properties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "administratorLogin": - err = unpopulate(val, "AdministratorLogin", &p.AdministratorLogin) + case "administrator": + err = unpopulate(val, "Administrator", &p.Administrator) delete(rawMsg, key) - case "administratorLoginPassword": - err = unpopulate(val, "AdministratorLoginPassword", &p.AdministratorLoginPassword) + case "backup": + err = unpopulate(val, "Backup", &p.Backup) delete(rawMsg, key) case "clusterStatus": err = unpopulate(val, "ClusterStatus", &p.ClusterStatus) delete(rawMsg, key) + case "compute": + err = unpopulate(val, "Compute", &p.Compute) + delete(rawMsg, key) case "connectionString": err = unpopulate(val, "ConnectionString", &p.ConnectionString) delete(rawMsg, key) case "createMode": err = unpopulate(val, "CreateMode", &p.CreateMode) delete(rawMsg, key) - case "earliestRestoreTime": - err = unpopulate(val, "EarliestRestoreTime", &p.EarliestRestoreTime) + case "highAvailability": + err = unpopulate(val, "HighAvailability", &p.HighAvailability) + delete(rawMsg, key) + case "infrastructureVersion": + err = unpopulate(val, "InfrastructureVersion", &p.InfrastructureVersion) delete(rawMsg, key) - case "nodeGroupSpecs": - err = unpopulate(val, "NodeGroupSpecs", &p.NodeGroupSpecs) + case "previewFeatures": + err = unpopulate(val, "PreviewFeatures", &p.PreviewFeatures) delete(rawMsg, key) case "privateEndpointConnections": err = unpopulate(val, "PrivateEndpointConnections", &p.PrivateEndpointConnections) @@ -866,12 +982,24 @@ func (p *Properties) UnmarshalJSON(data []byte) error { case "publicNetworkAccess": err = unpopulate(val, "PublicNetworkAccess", &p.PublicNetworkAccess) delete(rawMsg, key) + case "replica": + err = unpopulate(val, "Replica", &p.Replica) + delete(rawMsg, key) + case "replicaParameters": + err = unpopulate(val, "ReplicaParameters", &p.ReplicaParameters) + delete(rawMsg, key) case "restoreParameters": err = unpopulate(val, "RestoreParameters", &p.RestoreParameters) delete(rawMsg, key) case "serverVersion": err = unpopulate(val, "ServerVersion", &p.ServerVersion) delete(rawMsg, key) + case "sharding": + err = unpopulate(val, "Sharding", &p.Sharding) + delete(rawMsg, key) + case "storage": + err = unpopulate(val, "Storage", &p.Storage) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", p, err) @@ -880,6 +1008,146 @@ func (p *Properties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type Replica. +func (r Replica) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "systemData", r.SystemData) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Replica. +func (r *Replica) 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", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &r.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ReplicaListResult. +func (r ReplicaListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicaListResult. +func (r *ReplicaListResult) 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", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ReplicaParameters. +func (r ReplicaParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sourceLocation", r.SourceLocation) + populate(objectMap, "sourceResourceId", r.SourceResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicaParameters. +func (r *ReplicaParameters) 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", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "sourceLocation": + err = unpopulate(val, "SourceLocation", &r.SourceLocation) + delete(rawMsg, key) + case "sourceResourceId": + err = unpopulate(val, "SourceResourceID", &r.SourceResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ReplicationProperties. +func (r ReplicationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "replicationState", r.ReplicationState) + populate(objectMap, "role", r.Role) + populate(objectMap, "sourceResourceId", r.SourceResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProperties. +func (r *ReplicationProperties) 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", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "replicationState": + err = unpopulate(val, "ReplicationState", &r.ReplicationState) + delete(rawMsg, key) + case "role": + err = unpopulate(val, "Role", &r.Role) + delete(rawMsg, key) + case "sourceResourceId": + err = unpopulate(val, "SourceResourceID", &r.SourceResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type RestoreParameters. func (r RestoreParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -911,6 +1179,60 @@ func (r *RestoreParameters) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ShardingProperties. +func (s ShardingProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "shardCount", s.ShardCount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ShardingProperties. +func (s *ShardingProperties) 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", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "shardCount": + err = unpopulate(val, "ShardCount", &s.ShardCount) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type StorageProperties. +func (s StorageProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sizeGb", s.SizeGb) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StorageProperties. +func (s *StorageProperties) 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", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "sizeGb": + err = unpopulate(val, "SizeGb", &s.SizeGb) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -992,11 +1314,15 @@ func (u *Update) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UpdateProperties. func (u UpdateProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "administratorLogin", u.AdministratorLogin) - populate(objectMap, "administratorLoginPassword", u.AdministratorLoginPassword) - populate(objectMap, "nodeGroupSpecs", u.NodeGroupSpecs) + populate(objectMap, "administrator", u.Administrator) + populate(objectMap, "backup", u.Backup) + populate(objectMap, "compute", u.Compute) + populate(objectMap, "highAvailability", u.HighAvailability) + populate(objectMap, "previewFeatures", u.PreviewFeatures) populate(objectMap, "publicNetworkAccess", u.PublicNetworkAccess) populate(objectMap, "serverVersion", u.ServerVersion) + populate(objectMap, "sharding", u.Sharding) + populate(objectMap, "storage", u.Storage) return json.Marshal(objectMap) } @@ -1009,14 +1335,20 @@ func (u *UpdateProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "administratorLogin": - err = unpopulate(val, "AdministratorLogin", &u.AdministratorLogin) + case "administrator": + err = unpopulate(val, "Administrator", &u.Administrator) delete(rawMsg, key) - case "administratorLoginPassword": - err = unpopulate(val, "AdministratorLoginPassword", &u.AdministratorLoginPassword) + case "backup": + err = unpopulate(val, "Backup", &u.Backup) delete(rawMsg, key) - case "nodeGroupSpecs": - err = unpopulate(val, "NodeGroupSpecs", &u.NodeGroupSpecs) + case "compute": + err = unpopulate(val, "Compute", &u.Compute) + delete(rawMsg, key) + case "highAvailability": + err = unpopulate(val, "HighAvailability", &u.HighAvailability) + delete(rawMsg, key) + case "previewFeatures": + err = unpopulate(val, "PreviewFeatures", &u.PreviewFeatures) delete(rawMsg, key) case "publicNetworkAccess": err = unpopulate(val, "PublicNetworkAccess", &u.PublicNetworkAccess) @@ -1024,6 +1356,12 @@ func (u *UpdateProperties) UnmarshalJSON(data []byte) error { case "serverVersion": err = unpopulate(val, "ServerVersion", &u.ServerVersion) delete(rawMsg, key) + case "sharding": + err = unpopulate(val, "Sharding", &u.Sharding) + delete(rawMsg, key) + case "storage": + err = unpopulate(val, "Storage", &u.Storage) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", u, err) diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/mongoclusters_client.go b/sdk/resourcemanager/mongocluster/armmongocluster/mongoclusters_client.go index 91ecf8f59bc3..14410d6a7eab 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/mongoclusters_client.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/mongoclusters_client.go @@ -42,7 +42,7 @@ func NewMongoClustersClient(subscriptionID string, credential azcore.TokenCreden // CheckNameAvailability - Check if mongo cluster name is available for use. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - location - The location name. // - body - The CheckAvailability request // - options - MongoClustersClientCheckNameAvailabilityOptions contains the optional parameters for the MongoClustersClient.CheckNameAvailability @@ -85,7 +85,7 @@ func (client *MongoClustersClient) checkNameAvailabilityCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} req.Raw().Header["Content-Type"] = []string{"application/json"} @@ -108,7 +108,7 @@ func (client *MongoClustersClient) checkNameAvailabilityHandleResponse(resp *htt // some of the properties, use PATCH. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - resource - Resource create parameters. @@ -136,7 +136,7 @@ func (client *MongoClustersClient) BeginCreateOrUpdate(ctx context.Context, reso // of the properties, use PATCH. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 func (client *MongoClustersClient) createOrUpdate(ctx context.Context, resourceGroupName string, mongoClusterName string, resource MongoCluster, options *MongoClustersClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "MongoClustersClient.BeginCreateOrUpdate" @@ -178,7 +178,7 @@ func (client *MongoClustersClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} req.Raw().Header["Content-Type"] = []string{"application/json"} @@ -191,7 +191,7 @@ func (client *MongoClustersClient) createOrUpdateCreateRequest(ctx context.Conte // BeginDelete - Deletes a mongo cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - options - MongoClustersClientBeginDeleteOptions contains the optional parameters for the MongoClustersClient.BeginDelete @@ -216,7 +216,7 @@ func (client *MongoClustersClient) BeginDelete(ctx context.Context, resourceGrou // Delete - Deletes a mongo cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 func (client *MongoClustersClient) deleteOperation(ctx context.Context, resourceGroupName string, mongoClusterName string, options *MongoClustersClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "MongoClustersClient.BeginDelete" @@ -258,7 +258,7 @@ func (client *MongoClustersClient) deleteCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -267,7 +267,7 @@ func (client *MongoClustersClient) deleteCreateRequest(ctx context.Context, reso // Get - Gets information about a mongo cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - options - MongoClustersClientGetOptions contains the optional parameters for the MongoClustersClient.Get method. @@ -313,7 +313,7 @@ func (client *MongoClustersClient) getCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -330,7 +330,7 @@ func (client *MongoClustersClient) getHandleResponse(resp *http.Response) (Mongo // NewListPager - List all the mongo clusters in a given subscription. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - options - MongoClustersClientListOptions contains the optional parameters for the MongoClustersClient.NewListPager method. func (client *MongoClustersClient) NewListPager(options *MongoClustersClientListOptions) *runtime.Pager[MongoClustersClientListResponse] { return runtime.NewPager(runtime.PagingHandler[MongoClustersClientListResponse]{ @@ -367,7 +367,7 @@ func (client *MongoClustersClient) listCreateRequest(ctx context.Context, _ *Mon return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -384,7 +384,7 @@ func (client *MongoClustersClient) listHandleResponse(resp *http.Response) (Mong // NewListByResourceGroupPager - List all the mongo clusters in a given resource group. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - MongoClustersClientListByResourceGroupOptions contains the optional parameters for the MongoClustersClient.NewListByResourceGroupPager // method. @@ -427,7 +427,7 @@ func (client *MongoClustersClient) listByResourceGroupCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -446,7 +446,7 @@ func (client *MongoClustersClient) listByResourceGroupHandleResponse(resp *http. // as well as other connection strings supported by the cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - options - MongoClustersClientListConnectionStringsOptions contains the optional parameters for the MongoClustersClient.ListConnectionStrings @@ -493,7 +493,7 @@ func (client *MongoClustersClient) listConnectionStringsCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -508,11 +508,92 @@ func (client *MongoClustersClient) listConnectionStringsHandleResponse(resp *htt return result, nil } +// BeginPromote - Promotes a replica mongo cluster to a primary role. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - mongoClusterName - The name of the mongo cluster. +// - body - The content of the action request +// - options - MongoClustersClientBeginPromoteOptions contains the optional parameters for the MongoClustersClient.BeginPromote +// method. +func (client *MongoClustersClient) BeginPromote(ctx context.Context, resourceGroupName string, mongoClusterName string, body PromoteReplicaRequest, options *MongoClustersClientBeginPromoteOptions) (*runtime.Poller[MongoClustersClientPromoteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.promote(ctx, resourceGroupName, mongoClusterName, body, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[MongoClustersClientPromoteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[MongoClustersClientPromoteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Promote - Promotes a replica mongo cluster to a primary role. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-01 +func (client *MongoClustersClient) promote(ctx context.Context, resourceGroupName string, mongoClusterName string, body PromoteReplicaRequest, options *MongoClustersClientBeginPromoteOptions) (*http.Response, error) { + var err error + const operationName = "MongoClustersClient.BeginPromote" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.promoteCreateRequest(ctx, resourceGroupName, mongoClusterName, body, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// promoteCreateRequest creates the Promote request. +func (client *MongoClustersClient) promoteCreateRequest(ctx context.Context, resourceGroupName string, mongoClusterName string, body PromoteReplicaRequest, _ *MongoClustersClientBeginPromoteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}/promote" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if mongoClusterName == "" { + return nil, errors.New("parameter mongoClusterName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{mongoClusterName}", url.PathEscape(mongoClusterName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + req.Raw().Header["Content-Type"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, body); err != nil { + return nil, err + } + return req, nil +} + // BeginUpdate - Updates an existing mongo cluster. The request body can contain one to many of the properties present in // the normal mongo cluster definition. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - properties - The resource properties to be updated. @@ -539,7 +620,7 @@ func (client *MongoClustersClient) BeginUpdate(ctx context.Context, resourceGrou // mongo cluster definition. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 func (client *MongoClustersClient) update(ctx context.Context, resourceGroupName string, mongoClusterName string, properties Update, options *MongoClustersClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "MongoClustersClient.BeginUpdate" @@ -581,7 +662,7 @@ func (client *MongoClustersClient) updateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} req.Raw().Header["Content-Type"] = []string{"application/json"} diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/operations_client.go b/sdk/resourcemanager/mongocluster/armmongocluster/operations_client.go index e63291b6e416..92c1aa08839c 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/operations_client.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/operations_client.go @@ -35,7 +35,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - List the operations for the provider // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -68,7 +68,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, _ *Operat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/options.go b/sdk/resourcemanager/mongocluster/armmongocluster/options.go index 4a8aa0f4497a..8f6ec748f68b 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/options.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/options.go @@ -41,6 +41,12 @@ type MongoClustersClientBeginDeleteOptions struct { ResumeToken string } +// MongoClustersClientBeginPromoteOptions contains the optional parameters for the MongoClustersClient.BeginPromote method. +type MongoClustersClientBeginPromoteOptions struct { + // Resumes the long-running operation from the provided token. + ResumeToken string +} + // MongoClustersClientBeginUpdateOptions contains the optional parameters for the MongoClustersClient.BeginUpdate method. type MongoClustersClientBeginUpdateOptions struct { // Resumes the long-running operation from the provided token. @@ -111,3 +117,8 @@ type PrivateEndpointConnectionsClientListByMongoClusterOptions struct { type PrivateLinksClientListByMongoClusterOptions struct { // placeholder for future optional parameters } + +// ReplicasClientListByParentOptions contains the optional parameters for the ReplicasClient.NewListByParentPager method. +type ReplicasClientListByParentOptions struct { + // placeholder for future optional parameters +} diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/privateendpointconnections_client.go b/sdk/resourcemanager/mongocluster/armmongocluster/privateendpointconnections_client.go index bf7b76fb5418..4a4bce2e5469 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/privateendpointconnections_client.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/privateendpointconnections_client.go @@ -42,7 +42,7 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // BeginCreate - Create a Private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource. @@ -70,7 +70,7 @@ func (client *PrivateEndpointConnectionsClient) BeginCreate(ctx context.Context, // Create - Create a Private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 func (client *PrivateEndpointConnectionsClient) create(ctx context.Context, resourceGroupName string, mongoClusterName string, privateEndpointConnectionName string, resource PrivateEndpointConnectionResource, options *PrivateEndpointConnectionsClientBeginCreateOptions) (*http.Response, error) { var err error const operationName = "PrivateEndpointConnectionsClient.BeginCreate" @@ -116,7 +116,7 @@ func (client *PrivateEndpointConnectionsClient) createCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} req.Raw().Header["Content-Type"] = []string{"application/json"} @@ -129,7 +129,7 @@ func (client *PrivateEndpointConnectionsClient) createCreateRequest(ctx context. // BeginDelete - Delete the private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource. @@ -155,7 +155,7 @@ func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, // Delete - Delete the private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 func (client *PrivateEndpointConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, mongoClusterName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "PrivateEndpointConnectionsClient.BeginDelete" @@ -201,7 +201,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -210,7 +210,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. // Get - Get a specific private connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - privateEndpointConnectionName - The name of the private endpoint connection associated with the Azure resource. @@ -262,7 +262,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -279,7 +279,7 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res // NewListByMongoClusterPager - List existing private connections // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - options - PrivateEndpointConnectionsClientListByMongoClusterOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByMongoClusterPager @@ -327,7 +327,7 @@ func (client *PrivateEndpointConnectionsClient) listByMongoClusterCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/privatelinks_client.go b/sdk/resourcemanager/mongocluster/armmongocluster/privatelinks_client.go index 20bc16490481..840e98926789 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/privatelinks_client.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/privatelinks_client.go @@ -41,7 +41,7 @@ func NewPrivateLinksClient(subscriptionID string, credential azcore.TokenCredent // NewListByMongoClusterPager - list private links on the given resource // -// Generated from API version 2024-03-01-preview +// Generated from API version 2024-07-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - mongoClusterName - The name of the mongo cluster. // - options - PrivateLinksClientListByMongoClusterOptions contains the optional parameters for the PrivateLinksClient.NewListByMongoClusterPager @@ -89,7 +89,7 @@ func (client *PrivateLinksClient) listByMongoClusterCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-03-01-preview") + reqQP.Set("api-version", "2024-07-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/replicas_client.go b/sdk/resourcemanager/mongocluster/armmongocluster/replicas_client.go new file mode 100644 index 000000000000..61edf522a6f5 --- /dev/null +++ b/sdk/resourcemanager/mongocluster/armmongocluster/replicas_client.go @@ -0,0 +1,105 @@ +// 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) Go Code Generator. DO NOT EDIT. + +package armmongocluster + +import ( + "context" + "errors" + "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/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ReplicasClient contains the methods for the Replicas group. +// Don't use this type directly, use NewReplicasClient() instead. +type ReplicasClient struct { + internal *arm.Client + subscriptionID string +} + +// NewReplicasClient creates a new instance of ReplicasClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewReplicasClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicasClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &ReplicasClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// NewListByParentPager - List all the replicas for the mongo cluster. +// +// Generated from API version 2024-07-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - mongoClusterName - The name of the mongo cluster. +// - options - ReplicasClientListByParentOptions contains the optional parameters for the ReplicasClient.NewListByParentPager +// method. +func (client *ReplicasClient) NewListByParentPager(resourceGroupName string, mongoClusterName string, options *ReplicasClientListByParentOptions) *runtime.Pager[ReplicasClientListByParentResponse] { + return runtime.NewPager(runtime.PagingHandler[ReplicasClientListByParentResponse]{ + More: func(page ReplicasClientListByParentResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ReplicasClientListByParentResponse) (ReplicasClientListByParentResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ReplicasClient.NewListByParentPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByParentCreateRequest(ctx, resourceGroupName, mongoClusterName, options) + }, nil) + if err != nil { + return ReplicasClientListByParentResponse{}, err + } + return client.listByParentHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByParentCreateRequest creates the ListByParent request. +func (client *ReplicasClient) listByParentCreateRequest(ctx context.Context, resourceGroupName string, mongoClusterName string, _ *ReplicasClientListByParentOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}/replicas" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if mongoClusterName == "" { + return nil, errors.New("parameter mongoClusterName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{mongoClusterName}", url.PathEscape(mongoClusterName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByParentHandleResponse handles the ListByParent response. +func (client *ReplicasClient) listByParentHandleResponse(resp *http.Response) (ReplicasClientListByParentResponse, error) { + result := ReplicasClientListByParentResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ReplicaListResult); err != nil { + return ReplicasClientListByParentResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/responses.go b/sdk/resourcemanager/mongocluster/armmongocluster/responses.go index 52e99042319e..eaf38c9726cb 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/responses.go +++ b/sdk/resourcemanager/mongocluster/armmongocluster/responses.go @@ -68,6 +68,11 @@ type MongoClustersClientListResponse struct { ListResult } +// MongoClustersClientPromoteResponse contains the response from method MongoClustersClient.BeginPromote. +type MongoClustersClientPromoteResponse struct { + // placeholder for future response values +} + // MongoClustersClientUpdateResponse contains the response from method MongoClustersClient.BeginUpdate. type MongoClustersClientUpdateResponse struct { // Represents a mongo cluster resource. @@ -108,3 +113,9 @@ type PrivateLinksClientListByMongoClusterResponse struct { // The response of a PrivateLinkResource list operation. PrivateLinkResourceListResult } + +// ReplicasClientListByParentResponse contains the response from method ReplicasClient.NewListByParentPager. +type ReplicasClientListByParentResponse struct { + // The response of a Replica list operation. + ReplicaListResult +} diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/tsp-location.yaml b/sdk/resourcemanager/mongocluster/armmongocluster/tsp-location.yaml index 6f51513426e4..15984802f5f6 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/tsp-location.yaml +++ b/sdk/resourcemanager/mongocluster/armmongocluster/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/mongocluster/DocumentDB.MongoCluster.Management -commit: 87a08b955c257c773a3bd42553c718d4b1092955 -repo: https://github.com/Azure/azure-rest-api-specs -additionalDirectories: +commit: 988d78cda7f7f3af632cdb4ca1c46ec25d4da018 +repo: test-repo-billy/azure-rest-api-specs +additionalDirectories: \ No newline at end of file