From 106a6e0b63a0a988256111348578085a73a23e31 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 14 Jul 2022 05:52:39 +0000 Subject: [PATCH] CodeGen from PR 19769 in Azure/azure-rest-api-specs Merge eea5dd2657072068055a84bb77a51d86e59b3e09 into 1ba198d96e2c1dbd4dd392a5d2a5a53d5160d55f --- .../datafactory/armdatafactory/CHANGELOG.md | 39 + .../armdatafactory/activityruns_client.go | 1 + .../activityruns_client_example_test.go | 47 - .../datafactory/armdatafactory/autorest.md | 6 +- .../datafactory/armdatafactory/constants.go | 93 +- .../dataflowdebugsession_client.go | 1 + ...ataflowdebugsession_client_example_test.go | 252 - .../armdatafactory/dataflows_client.go | 1 + .../dataflows_client_example_test.go | 150 - .../armdatafactory/datasets_client.go | 1 + .../datasets_client_example_test.go | 141 - .../armdatafactory/exposurecontrol_client.go | 1 + .../exposurecontrol_client_example_test.go | 102 - .../armdatafactory/factories_client.go | 1 + .../factories_client_example_test.go | 251 - .../armdatafactory/globalparameters_client.go | 1 + .../globalparameters_client_example_test.go | 119 - .../datafactory/armdatafactory/go.mod | 16 +- .../datafactory/armdatafactory/go.sum | 24 +- .../integrationruntimenodes_client.go | 1 + ...grationruntimenodes_client_example_test.go | 91 - ...integrationruntimeobjectmetadata_client.go | 1 + ...ntimeobjectmetadata_client_example_test.go | 71 - .../integrationruntimes_client.go | 1 + ...integrationruntimes_client_example_test.go | 432 - .../armdatafactory/linkedservices_client.go | 1 + .../linkedservices_client_example_test.go | 122 - .../managedprivateendpoints_client.go | 1 + ...gedprivateendpoints_client_example_test.go | 122 - .../managedvirtualnetworks_client.go | 1 + ...agedvirtualnetworks_client_example_test.go | 92 - .../datafactory/armdatafactory/models.go | 322 +- .../armdatafactory/models_serde.go | 12200 ++++++++++++++-- .../armdatafactory/operations_client.go | 1 + .../operations_client_example_test.go | 41 - .../armdatafactory/pipelineruns_client.go | 1 + .../pipelineruns_client_example_test.go | 97 - .../armdatafactory/pipelines_client.go | 1 + .../pipelines_client_example_test.go | 218 - .../armdatafactory/polymorphic_helpers.go | 7 + .../privateendpointconnection_client.go | 1 + ...eendpointconnection_client_example_test.go | 97 - .../privateendpointconnections_client.go | 1 + ...endpointconnections_client_example_test.go | 43 - .../privatelinkresources_client.go | 1 + ...rivatelinkresources_client_example_test.go | 39 - .../armdatafactory/response_types.go | 1 + .../armdatafactory/time_rfc3339.go | 1 + .../armdatafactory/triggerruns_client.go | 1 + .../triggerruns_client_example_test.go | 97 - .../armdatafactory/triggers_client.go | 1 + .../triggers_client_example_test.go | 291 - 52 files changed, 11642 insertions(+), 4003 deletions(-) delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go diff --git a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md index 7432db33a7af..b2f009bc4d09 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md @@ -1,5 +1,44 @@ # Release History +## 2.0.0 (2022-07-14) +### Breaking Changes + +- Type of `LinkedServiceReference.Type` has been changed from `*LinkedServiceReferenceType` to `*Type` +- Const `LinkedServiceReferenceTypeLinkedServiceReference` has been removed +- Function `PossibleLinkedServiceReferenceTypeValues` has been removed + +### Features Added + +- New const `NotebookParameterTypeBool` +- New const `BigDataPoolReferenceTypeBigDataPoolReference` +- New const `NotebookParameterTypeString` +- New const `NotebookReferenceTypeNotebookReference` +- New const `SparkJobReferenceTypeSparkJobDefinitionReference` +- New const `NotebookParameterTypeFloat` +- New const `NotebookParameterTypeInt` +- New const `TypeLinkedServiceReference` +- New function `PossibleSparkJobReferenceTypeValues() []SparkJobReferenceType` +- New function `*SynapseNotebookActivity.GetExecutionActivity() *ExecutionActivity` +- New function `*SynapseSparkJobDefinitionActivity.GetExecutionActivity() *ExecutionActivity` +- New function `*SynapseNotebookActivity.GetActivity() *Activity` +- New function `*AzureSynapseArtifactsLinkedService.GetLinkedService() *LinkedService` +- New function `PossibleNotebookReferenceTypeValues() []NotebookReferenceType` +- New function `PossibleTypeValues() []Type` +- New function `PossibleBigDataPoolReferenceTypeValues() []BigDataPoolReferenceType` +- New function `PossibleNotebookParameterTypeValues() []NotebookParameterType` +- New function `*SynapseSparkJobDefinitionActivity.GetActivity() *Activity` +- New struct `AzureSynapseArtifactsLinkedService` +- New struct `AzureSynapseArtifactsLinkedServiceTypeProperties` +- New struct `BigDataPoolParametrizationReference` +- New struct `NotebookParameter` +- New struct `SynapseNotebookActivity` +- New struct `SynapseNotebookActivityTypeProperties` +- New struct `SynapseNotebookReference` +- New struct `SynapseSparkJobActivityTypeProperties` +- New struct `SynapseSparkJobDefinitionActivity` +- New struct `SynapseSparkJobReference` + + ## 1.2.0 (2022-06-15) ### Features Added diff --git a/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go b/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go index 56018a437729..8ccfd801dee4 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go @@ -5,6 +5,7 @@ // 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 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 b10c3aeee038..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go +++ /dev/null @@ -1,47 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewActivityRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.QueryByPipelineRun(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", - armdatafactory.RunFilterParameters{ - LastUpdatedAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:36:44.3345758Z"); return t }()), - LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.3686473Z"); return t }()), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/autorest.md b/sdk/resourcemanager/datafactory/armdatafactory/autorest.md index bfc12b0e577c..c3a81f198f1a 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/autorest.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/6dc6ded9bad45a876f4a6e96df2d4f4eb5c26b12/specification/datafactory/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/6dc6ded9bad45a876f4a6e96df2d4f4eb5c26b12/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: 1.2.0 +module-version: 2.0.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/datafactory/armdatafactory/constants.go b/sdk/resourcemanager/datafactory/armdatafactory/constants.go index 22d8527e534d..66f78e99c384 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/constants.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/constants.go @@ -5,12 +5,13 @@ // 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 const ( moduleName = "armdatafactory" - moduleVersion = "v1.2.0" + moduleVersion = "v2.0.0" ) type AmazonRdsForOraclePartitionOption string @@ -93,6 +94,20 @@ func PossibleAzureSearchIndexWriteBehaviorTypeValues() []AzureSearchIndexWriteBe } } +// BigDataPoolReferenceType - Big data pool reference type. +type BigDataPoolReferenceType string + +const ( + BigDataPoolReferenceTypeBigDataPoolReference BigDataPoolReferenceType = "BigDataPoolReference" +) + +// PossibleBigDataPoolReferenceTypeValues returns the possible values for the BigDataPoolReferenceType const type. +func PossibleBigDataPoolReferenceTypeValues() []BigDataPoolReferenceType { + return []BigDataPoolReferenceType{ + BigDataPoolReferenceTypeBigDataPoolReference, + } +} + type BlobEventTypes string const ( @@ -962,20 +977,6 @@ func PossibleJSONWriteFilePatternValues() []JSONWriteFilePattern { } } -// LinkedServiceReferenceType - Linked service reference type. -type LinkedServiceReferenceType string - -const ( - LinkedServiceReferenceTypeLinkedServiceReference LinkedServiceReferenceType = "LinkedServiceReference" -) - -// PossibleLinkedServiceReferenceTypeValues returns the possible values for the LinkedServiceReferenceType const type. -func PossibleLinkedServiceReferenceTypeValues() []LinkedServiceReferenceType { - return []LinkedServiceReferenceType{ - LinkedServiceReferenceTypeLinkedServiceReference, - } -} - // ManagedIntegrationRuntimeNodeStatus - The managed integration runtime node status. type ManagedIntegrationRuntimeNodeStatus string @@ -1044,6 +1045,40 @@ func PossibleNetezzaPartitionOptionValues() []NetezzaPartitionOption { } } +// NotebookParameterType - Notebook parameter type. +type NotebookParameterType string + +const ( + NotebookParameterTypeBool NotebookParameterType = "bool" + NotebookParameterTypeFloat NotebookParameterType = "float" + NotebookParameterTypeInt NotebookParameterType = "int" + NotebookParameterTypeString NotebookParameterType = "string" +) + +// PossibleNotebookParameterTypeValues returns the possible values for the NotebookParameterType const type. +func PossibleNotebookParameterTypeValues() []NotebookParameterType { + return []NotebookParameterType{ + NotebookParameterTypeBool, + NotebookParameterTypeFloat, + NotebookParameterTypeInt, + NotebookParameterTypeString, + } +} + +// NotebookReferenceType - Synapse notebook reference type. +type NotebookReferenceType string + +const ( + NotebookReferenceTypeNotebookReference NotebookReferenceType = "NotebookReference" +) + +// PossibleNotebookReferenceTypeValues returns the possible values for the NotebookReferenceType const type. +func PossibleNotebookReferenceTypeValues() []NotebookReferenceType { + return []NotebookReferenceType{ + NotebookReferenceTypeNotebookReference, + } +} + // ODataAADServicePrincipalCredentialType - Specify the credential type (key or cert) is used for service principal. type ODataAADServicePrincipalCredentialType string @@ -1738,6 +1773,20 @@ func PossibleSparkAuthenticationTypeValues() []SparkAuthenticationType { } } +// SparkJobReferenceType - Synapse spark job reference type. +type SparkJobReferenceType string + +const ( + SparkJobReferenceTypeSparkJobDefinitionReference SparkJobReferenceType = "SparkJobDefinitionReference" +) + +// PossibleSparkJobReferenceTypeValues returns the possible values for the SparkJobReferenceType const type. +func PossibleSparkJobReferenceTypeValues() []SparkJobReferenceType { + return []SparkJobReferenceType{ + SparkJobReferenceTypeSparkJobDefinitionReference, + } +} + // SparkServerType - The type of Spark server. type SparkServerType string @@ -1988,6 +2037,20 @@ func PossibleTumblingWindowFrequencyValues() []TumblingWindowFrequency { } } +// Type - Linked service reference type. +type Type string + +const ( + TypeLinkedServiceReference Type = "LinkedServiceReference" +) + +// PossibleTypeValues returns the possible values for the Type const type. +func PossibleTypeValues() []Type { + return []Type{ + TypeLinkedServiceReference, + } +} + // VariableType - Variable type. type VariableType string diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go index cc9ff35a8d37..26dca937676e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go @@ -5,6 +5,7 @@ // 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 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 9ebcead07c5a..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go +++ /dev/null @@ -1,252 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewDataFlowDebugSessionClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewDataFlowDebugSessionClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewQueryByFactoryPager("exampleResourceGroup", - "exampleFactoryName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewDataFlowDebugSessionClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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: []interface{}{ - map[string]interface{}{ - "type": "String", - }, - }, - Annotations: []interface{}{}, - 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]interface{}{ - "Movies": map[string]interface{}{ - "path": "abc", - }, - "Output": map[string]interface{}{ - "time": "def", - }, - }, - Parameters: map[string]interface{}{ - "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: []interface{}{}, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewDataFlowDebugSessionClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewDataFlowDebugSessionClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go index a603e7b9b35b..4e9d69ee0df2 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go @@ -5,6 +5,7 @@ // 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 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 a8fbbfe950f0..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go +++ /dev/null @@ -1,150 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json -func ExampleDataFlowsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdatafactory.NewDataFlowsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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{ - 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"), - }, - }}, - }, - }, - }, - &armdatafactory.DataFlowsClientCreateOrUpdateOptions{IfMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewDataFlowsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleDataFlow", - &armdatafactory.DataFlowsClientGetOptions{IfNoneMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewDataFlowsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewDataFlowsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByFactoryPager("exampleResourceGroup", - "exampleFactoryName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go b/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go index f68cf16eaa75..48540d6347d0 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go @@ -5,6 +5,7 @@ // 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 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 419d4aa87726..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go +++ /dev/null @@ -1,141 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewDatasetsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByFactoryPager("exampleResourceGroup", - "exampleFactoryName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json -func ExampleDatasetsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdatafactory.NewDatasetsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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]interface{}{ - "type": "Expression", - "value": "@dataset().MyFileName", - }, - FolderPath: map[string]interface{}{ - "type": "Expression", - "value": "@dataset().MyFolderPath", - }, - }, - }, - }, - &armdatafactory.DatasetsClientCreateOrUpdateOptions{IfMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewDatasetsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleDataset", - &armdatafactory.DatasetsClientGetOptions{IfNoneMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewDatasetsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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.go b/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go index 6b20799696e6..ac85b4c5374c 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go @@ -5,6 +5,7 @@ // 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 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 9b9839d3e7f3..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go +++ /dev/null @@ -1,102 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewExposureControlClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewExposureControlClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewExposureControlClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go b/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go index adebef86c4d9..f31442b0c39e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go @@ -5,6 +5,7 @@ // 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 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 a56e42bfd9bd..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go +++ /dev/null @@ -1,251 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("exampleResourceGroup", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - &armdatafactory.FactoriesClientGetOptions{IfNoneMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewFactoriesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go b/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go index b0e16553bc20..33286baad5b6 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go @@ -5,6 +5,7 @@ // 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 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 596e2f0da102..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_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. - -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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewGlobalParametersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByFactoryPager("exampleResourceGroup", - "exampleFactoryName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewGlobalParametersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "default", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json -func ExampleGlobalParametersClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdatafactory.NewGlobalParametersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewGlobalParametersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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 ec11752241e9..f57e82dbc6cb 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.mod +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.mod @@ -1,21 +1,13 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v2 go 1.18 -require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect - github.com/google/uuid v1.1.1 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect - golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect - golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect golang.org/x/text v0.3.7 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/datafactory/armdatafactory/go.sum b/sdk/resourcemanager/datafactory/armdatafactory/go.sum index 8828b17b1853..3afb578030a5 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.sum +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.sum @@ -1,33 +1,15 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 h1:sVPhtT2qjO86rTUaWMr4WoES4TkjGnzcioXcnHV9s5k= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 h1:jp0dGvZ7ZK0mgqnTSClMxa5xuRL7NZgHameVYF6BurY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= -github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= -github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= -github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= -github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI= -github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4WwuI12DUd2to3nCYe2eayMIw= -golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 h1:HVyaeDAYux4pnY+D/SiwmLOR36ewZ4iGQIIrtnuCjFA= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go index e0b97b1ca2a3..e62c5b8f7e31 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go @@ -5,6 +5,7 @@ // 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 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 54f1d06f5c62..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go +++ /dev/null @@ -1,91 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - "Node_1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go index 980d206c5ee1..9c46d5bbc8c6 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go @@ -5,6 +5,7 @@ // 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 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 5e9f2d008f96..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go +++ /dev/null @@ -1,71 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimeObjectMetadataClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimeObjectMetadataClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go index 12337a1f1cf6..1974c879f5cd 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go @@ -5,6 +5,7 @@ // 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 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 3a37e4b1c100..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go +++ /dev/null @@ -1,432 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByFactoryPager("exampleResourceGroup", - "exampleFactoryName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - &armdatafactory.IntegrationRuntimesClientGetOptions{IfNoneMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetStatus(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("7ad7c73b-38b8-4df3-84ee-52ff91092f61", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListOutboundNetworkDependenciesEndpoints(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetConnectionInfo(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListAuthKeys(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.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/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetMonitoringData(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go b/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go index e5e0a0ff3997..b50a07008e3a 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go @@ -5,6 +5,7 @@ // 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 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 5447d06cb62e..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go +++ /dev/null @@ -1,122 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewLinkedServicesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByFactoryPager("exampleResourceGroup", - "exampleFactoryName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json -func ExampleLinkedServicesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdatafactory.NewLinkedServicesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleLinkedService", - armdatafactory.LinkedServiceResource{ - Properties: &armdatafactory.AzureStorageLinkedService{ - Type: to.Ptr("AzureStorage"), - TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ - ConnectionString: map[string]interface{}{ - "type": "SecureString", - "value": "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=", - }, - }, - }, - }, - &armdatafactory.LinkedServicesClientCreateOrUpdateOptions{IfMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewLinkedServicesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleLinkedService", - &armdatafactory.LinkedServicesClientGetOptions{IfNoneMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewLinkedServicesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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.go b/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go index 3b7c365f8ddf..a716fde9eb4d 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go @@ -5,6 +5,7 @@ // 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 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 6a0593d6adf1..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go +++ /dev/null @@ -1,122 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewManagedPrivateEndpointsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByFactoryPager("exampleResourceGroup", - "exampleFactoryName", - "exampleManagedVirtualNetworkName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewManagedPrivateEndpointsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewManagedPrivateEndpointsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleManagedVirtualNetworkName", - "exampleManagedPrivateEndpointName", - &armdatafactory.ManagedPrivateEndpointsClientGetOptions{IfNoneMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewManagedPrivateEndpointsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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.go b/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go index 980e78f76a92..fcd3edf413a6 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go @@ -5,6 +5,7 @@ // 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 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 144f72d1289c..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go +++ /dev/null @@ -1,92 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewManagedVirtualNetworksClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByFactoryPager("exampleResourceGroup", - "exampleFactoryName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewManagedVirtualNetworksClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewManagedVirtualNetworksClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleManagedVirtualNetworkName", - &armdatafactory.ManagedVirtualNetworksClientGetOptions{IfNoneMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/models.go b/sdk/resourcemanager/datafactory/armdatafactory/models.go index 69773deb394a..a43d33c3f301 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/models.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/models.go @@ -5,6 +5,7 @@ // 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 @@ -31,8 +32,8 @@ type AccessPolicyResponse struct { // - *ExecutePipelineActivity, *ExecuteSSISPackageActivity, *ExecuteWranglingDataflowActivity, *ExecutionActivity, *FailActivity, // - *FilterActivity, *ForEachActivity, *GetMetadataActivity, *HDInsightHiveActivity, *HDInsightMapReduceActivity, *HDInsightPigActivity, // - *HDInsightSparkActivity, *HDInsightStreamingActivity, *IfConditionActivity, *LookupActivity, *SQLServerStoredProcedureActivity, -// - *ScriptActivity, *SetVariableActivity, *SwitchActivity, *UntilActivity, *ValidationActivity, *WaitActivity, *WebActivity, -// - *WebHookActivity +// - *ScriptActivity, *SetVariableActivity, *SwitchActivity, *SynapseNotebookActivity, *SynapseSparkJobDefinitionActivity, +// - *UntilActivity, *ValidationActivity, *WaitActivity, *WebActivity, *WebHookActivity type ActivityClassification interface { // GetActivity returns the Activity content of the underlying type. GetActivity() *Activity @@ -5508,6 +5509,53 @@ type AzureStorageLinkedServiceTypeProperties struct { SasURI interface{} `json:"sasUri,omitempty"` } +// AzureSynapseArtifactsLinkedService - Azure Synapse Analytics (Artifacts) linked service. +type AzureSynapseArtifactsLinkedService struct { + // REQUIRED; Type of linked service. + Type *string `json:"type,omitempty"` + + // REQUIRED; Azure Synapse Analytics (Artifacts) linked service properties. + TypeProperties *AzureSynapseArtifactsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]interface{} + + // List of tags that can be used for describing the linked service. + Annotations []interface{} `json:"annotations,omitempty"` + + // The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + + // Linked service description. + Description *string `json:"description,omitempty"` + + // Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters,omitempty"` +} + +// GetLinkedService implements the LinkedServiceClassification interface for type AzureSynapseArtifactsLinkedService. +func (a *AzureSynapseArtifactsLinkedService) GetLinkedService() *LinkedService { + return &LinkedService{ + Type: a.Type, + ConnectVia: a.ConnectVia, + Description: a.Description, + Parameters: a.Parameters, + Annotations: a.Annotations, + AdditionalProperties: a.AdditionalProperties, + } +} + +// AzureSynapseArtifactsLinkedServiceTypeProperties - Azure Synapse Analytics (Artifacts) linked service properties. +type AzureSynapseArtifactsLinkedServiceTypeProperties struct { + // REQUIRED; https://.dev.azuresynapse.net, Azure Synapse Analytics workspace URL. Type: string (or Expression with resultType + // string). + Endpoint interface{} `json:"endpoint,omitempty"` + + // Required to specify MSI, if using system assigned managed identity as authentication method. Type: string (or Expression + // with resultType string). + Authentication interface{} `json:"authentication,omitempty"` +} + // AzureTableDataset - The Azure Table storage dataset. type AzureTableDataset struct { // REQUIRED; Linked service reference. @@ -5712,6 +5760,15 @@ func (a *AzureTableStorageLinkedService) GetLinkedService() *LinkedService { } } +// BigDataPoolParametrizationReference - Big data pool reference type. +type BigDataPoolParametrizationReference struct { + // REQUIRED; Reference big data pool name. Type: string (or Expression with resultType string). + ReferenceName interface{} `json:"referenceName,omitempty"` + + // REQUIRED; Big data pool reference type. + Type *BigDataPoolReferenceType `json:"type,omitempty"` +} + // BinaryDataset - Binary dataset. type BinaryDataset struct { // REQUIRED; Linked service reference. @@ -11176,7 +11233,7 @@ func (e *ExecuteWranglingDataflowActivity) GetActivity() *Activity { // - *DatabricksSparkJarActivity, *DatabricksSparkPythonActivity, *DeleteActivity, *ExecuteDataFlowActivity, *ExecuteSSISPackageActivity, // - *ExecutionActivity, *GetMetadataActivity, *HDInsightHiveActivity, *HDInsightMapReduceActivity, *HDInsightPigActivity, // - *HDInsightSparkActivity, *HDInsightStreamingActivity, *LookupActivity, *SQLServerStoredProcedureActivity, *ScriptActivity, -// - *WebActivity +// - *SynapseNotebookActivity, *SynapseSparkJobDefinitionActivity, *WebActivity type ExecutionActivityClassification interface { ActivityClassification // GetExecutionActivity returns the ExecutionActivity content of the underlying type. @@ -14129,7 +14186,7 @@ func (h *HTTPLinkedService) GetLinkedService() *LinkedService { // HTTPLinkedServiceTypeProperties - Properties specific to this linked service type. type HTTPLinkedServiceTypeProperties struct { - // REQUIRED; The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or Expression with resultType + // REQUIRED; The base URL of the HTTP endpoint, e.g. https://www.microsoft.com. Type: string (or Expression with resultType // string). URL interface{} `json:"url,omitempty"` @@ -16364,30 +16421,30 @@ func (l *LinkedIntegrationRuntimeType) GetLinkedIntegrationRuntimeType() *Linked // - *AzureDataLakeStoreLinkedService, *AzureDatabricksDeltaLakeLinkedService, *AzureDatabricksLinkedService, *AzureFileStorageLinkedService, // - *AzureFunctionLinkedService, *AzureKeyVaultLinkedService, *AzureMLLinkedService, *AzureMLServiceLinkedService, *AzureMariaDBLinkedService, // - *AzureMySQLLinkedService, *AzurePostgreSQLLinkedService, *AzureSQLDWLinkedService, *AzureSQLDatabaseLinkedService, *AzureSQLMILinkedService, -// - *AzureSearchLinkedService, *AzureStorageLinkedService, *AzureTableStorageLinkedService, *CassandraLinkedService, *CommonDataServiceForAppsLinkedService, -// - *ConcurLinkedService, *CosmosDbLinkedService, *CosmosDbMongoDbAPILinkedService, *CouchbaseLinkedService, *CustomDataSourceLinkedService, -// - *DataworldLinkedService, *Db2LinkedService, *DrillLinkedService, *DynamicsAXLinkedService, *DynamicsCrmLinkedService, -// - *DynamicsLinkedService, *EloquaLinkedService, *FileServerLinkedService, *FtpServerLinkedService, *GoogleAdWordsLinkedService, -// - *GoogleBigQueryLinkedService, *GoogleCloudStorageLinkedService, *GreenplumLinkedService, *HBaseLinkedService, *HDInsightLinkedService, -// - *HDInsightOnDemandLinkedService, *HTTPLinkedService, *HdfsLinkedService, *HiveLinkedService, *HubspotLinkedService, *ImpalaLinkedService, -// - *InformixLinkedService, *JiraLinkedService, *LinkedService, *MagentoLinkedService, *MariaDBLinkedService, *MarketoLinkedService, -// - *MicrosoftAccessLinkedService, *MongoDbAtlasLinkedService, *MongoDbLinkedService, *MongoDbV2LinkedService, *MySQLLinkedService, -// - *NetezzaLinkedService, *ODataLinkedService, *OdbcLinkedService, *Office365LinkedService, *OracleCloudStorageLinkedService, -// - *OracleLinkedService, *OracleServiceCloudLinkedService, *PaypalLinkedService, *PhoenixLinkedService, *PostgreSQLLinkedService, -// - *PrestoLinkedService, *QuickBooksLinkedService, *QuickbaseLinkedService, *ResponsysLinkedService, *RestServiceLinkedService, -// - *SQLServerLinkedService, *SalesforceLinkedService, *SalesforceMarketingCloudLinkedService, *SalesforceServiceCloudLinkedService, -// - *SapBWLinkedService, *SapCloudForCustomerLinkedService, *SapEccLinkedService, *SapHanaLinkedService, *SapOdpLinkedService, -// - *SapOpenHubLinkedService, *SapTableLinkedService, *ServiceNowLinkedService, *SftpServerLinkedService, *SharePointOnlineListLinkedService, -// - *ShopifyLinkedService, *SmartsheetLinkedService, *SnowflakeLinkedService, *SparkLinkedService, *SquareLinkedService, -// - *SybaseLinkedService, *TeamDeskLinkedService, *TeradataLinkedService, *TwilioLinkedService, *VerticaLinkedService, *WebLinkedService, -// - *XeroLinkedService, *ZendeskLinkedService, *ZohoLinkedService +// - *AzureSearchLinkedService, *AzureStorageLinkedService, *AzureSynapseArtifactsLinkedService, *AzureTableStorageLinkedService, +// - *CassandraLinkedService, *CommonDataServiceForAppsLinkedService, *ConcurLinkedService, *CosmosDbLinkedService, *CosmosDbMongoDbAPILinkedService, +// - *CouchbaseLinkedService, *CustomDataSourceLinkedService, *DataworldLinkedService, *Db2LinkedService, *DrillLinkedService, +// - *DynamicsAXLinkedService, *DynamicsCrmLinkedService, *DynamicsLinkedService, *EloquaLinkedService, *FileServerLinkedService, +// - *FtpServerLinkedService, *GoogleAdWordsLinkedService, *GoogleBigQueryLinkedService, *GoogleCloudStorageLinkedService, +// - *GreenplumLinkedService, *HBaseLinkedService, *HDInsightLinkedService, *HDInsightOnDemandLinkedService, *HTTPLinkedService, +// - *HdfsLinkedService, *HiveLinkedService, *HubspotLinkedService, *ImpalaLinkedService, *InformixLinkedService, *JiraLinkedService, +// - *LinkedService, *MagentoLinkedService, *MariaDBLinkedService, *MarketoLinkedService, *MicrosoftAccessLinkedService, *MongoDbAtlasLinkedService, +// - *MongoDbLinkedService, *MongoDbV2LinkedService, *MySQLLinkedService, *NetezzaLinkedService, *ODataLinkedService, *OdbcLinkedService, +// - *Office365LinkedService, *OracleCloudStorageLinkedService, *OracleLinkedService, *OracleServiceCloudLinkedService, *PaypalLinkedService, +// - *PhoenixLinkedService, *PostgreSQLLinkedService, *PrestoLinkedService, *QuickBooksLinkedService, *QuickbaseLinkedService, +// - *ResponsysLinkedService, *RestServiceLinkedService, *SQLServerLinkedService, *SalesforceLinkedService, *SalesforceMarketingCloudLinkedService, +// - *SalesforceServiceCloudLinkedService, *SapBWLinkedService, *SapCloudForCustomerLinkedService, *SapEccLinkedService, *SapHanaLinkedService, +// - *SapOdpLinkedService, *SapOpenHubLinkedService, *SapTableLinkedService, *ServiceNowLinkedService, *SftpServerLinkedService, +// - *SharePointOnlineListLinkedService, *ShopifyLinkedService, *SmartsheetLinkedService, *SnowflakeLinkedService, *SparkLinkedService, +// - *SquareLinkedService, *SybaseLinkedService, *TeamDeskLinkedService, *TeradataLinkedService, *TwilioLinkedService, *VerticaLinkedService, +// - *WebLinkedService, *XeroLinkedService, *ZendeskLinkedService, *ZohoLinkedService type LinkedServiceClassification interface { // GetLinkedService returns the LinkedService content of the underlying type. GetLinkedService() *LinkedService } -// LinkedService - The Azure Data Factory nested object which contains the information and credential which can be used to -// connect with related store or compute resource. +// LinkedService - The nested object which contains the information and credential which can be used to connect with related +// store or compute resource. type LinkedService struct { // REQUIRED; Type of linked service. Type *string `json:"type,omitempty"` @@ -16435,7 +16492,7 @@ type LinkedServiceReference struct { ReferenceName *string `json:"referenceName,omitempty"` // REQUIRED; Linked service reference type. - Type *LinkedServiceReferenceType `json:"type,omitempty"` + Type *Type `json:"type,omitempty"` // Arguments for LinkedService. Parameters map[string]interface{} `json:"parameters,omitempty"` @@ -18639,6 +18696,15 @@ type NetezzaTableDatasetTypeProperties struct { TableName interface{} `json:"tableName,omitempty"` } +// NotebookParameter - Notebook parameter. +type NotebookParameter struct { + // Notebook parameter type. + Type *NotebookParameterType `json:"type,omitempty"` + + // Notebook parameter value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` +} + // ODataLinkedService - Open Data Protocol (OData) linked service. type ODataLinkedService struct { // REQUIRED; Type of linked service. @@ -27948,6 +28014,206 @@ type SybaseTableDatasetTypeProperties struct { TableName interface{} `json:"tableName,omitempty"` } +// SynapseNotebookActivity - Execute Synapse notebook activity. +type SynapseNotebookActivity struct { + // REQUIRED; Activity name. + Name *string `json:"name,omitempty"` + + // REQUIRED; Type of activity. + Type *string `json:"type,omitempty"` + + // REQUIRED; Execute Synapse notebook activity properties. + TypeProperties *SynapseNotebookActivityTypeProperties `json:"typeProperties,omitempty"` + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]interface{} + + // Activity depends on condition. + DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + + // Activity description. + Description *string `json:"description,omitempty"` + + // Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + + // Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + + // Activity user properties. + UserProperties []*UserProperty `json:"userProperties,omitempty"` +} + +// GetActivity implements the ActivityClassification interface for type SynapseNotebookActivity. +func (s *SynapseNotebookActivity) GetActivity() *Activity { + return &Activity{ + Name: s.Name, + Type: s.Type, + Description: s.Description, + DependsOn: s.DependsOn, + UserProperties: s.UserProperties, + AdditionalProperties: s.AdditionalProperties, + } +} + +// GetExecutionActivity implements the ExecutionActivityClassification interface for type SynapseNotebookActivity. +func (s *SynapseNotebookActivity) GetExecutionActivity() *ExecutionActivity { + return &ExecutionActivity{ + LinkedServiceName: s.LinkedServiceName, + Policy: s.Policy, + Name: s.Name, + Type: s.Type, + Description: s.Description, + DependsOn: s.DependsOn, + UserProperties: s.UserProperties, + AdditionalProperties: s.AdditionalProperties, + } +} + +// SynapseNotebookActivityTypeProperties - Execute Synapse notebook activity properties. +type SynapseNotebookActivityTypeProperties struct { + // REQUIRED; Synapse notebook reference. + Notebook *SynapseNotebookReference `json:"notebook,omitempty"` + + // Spark configuration properties, which will override the 'conf' of the notebook you provide. + Conf interface{} `json:"conf,omitempty"` + + // Number of core and memory to be used for driver allocated in the specified Spark pool for the session, which will be used + // for overriding 'driverCores' and 'driverMemory' of the notebook you provide. + // Type: string (or Expression with resultType string). + DriverSize interface{} `json:"driverSize,omitempty"` + + // Number of core and memory to be used for executors allocated in the specified Spark pool for the session, which will be + // used for overriding 'executorCores' and 'executorMemory' of the notebook you + // provide. Type: string (or Expression with resultType string). + ExecutorSize interface{} `json:"executorSize,omitempty"` + + // Number of executors to launch for this session, which will override the 'numExecutors' of the notebook you provide. + NumExecutors *int32 `json:"numExecutors,omitempty"` + + // Notebook parameters. + Parameters map[string]*NotebookParameter `json:"parameters,omitempty"` + + // The name of the big data pool which will be used to execute the notebook. + SparkPool *BigDataPoolParametrizationReference `json:"sparkPool,omitempty"` +} + +// SynapseNotebookReference - Synapse notebook reference type. +type SynapseNotebookReference struct { + // REQUIRED; Reference notebook name. Type: string (or Expression with resultType string). + ReferenceName interface{} `json:"referenceName,omitempty"` + + // REQUIRED; Synapse notebook reference type. + Type *NotebookReferenceType `json:"type,omitempty"` +} + +// SynapseSparkJobActivityTypeProperties - Execute spark job activity properties. +type SynapseSparkJobActivityTypeProperties struct { + // REQUIRED; Synapse spark job reference. + SparkJob *SynapseSparkJobReference `json:"sparkJob,omitempty"` + + // User specified arguments to SynapseSparkJobDefinitionActivity. + Arguments []interface{} `json:"args,omitempty"` + + // The fully-qualified identifier or the main class that is in the main definition file, which will override the 'className' + // of the spark job definition you provide. Type: string (or Expression with + // resultType string). + ClassName interface{} `json:"className,omitempty"` + + // Spark configuration properties, which will override the 'conf' of the spark job definition you provide. + Conf interface{} `json:"conf,omitempty"` + + // Number of core and memory to be used for driver allocated in the specified Spark pool for the job, which will be used for + // overriding 'driverCores' and 'driverMemory' of the spark job definition you + // provide. Type: string (or Expression with resultType string). + DriverSize interface{} `json:"driverSize,omitempty"` + + // Number of core and memory to be used for executors allocated in the specified Spark pool for the job, which will be used + // for overriding 'executorCores' and 'executorMemory' of the spark job definition + // you provide. Type: string (or Expression with resultType string). + ExecutorSize interface{} `json:"executorSize,omitempty"` + + // The main file used for the job, which will override the 'file' of the spark job definition you provide. Type: string (or + // Expression with resultType string). + File interface{} `json:"file,omitempty"` + + // Additional files used for reference in the main definition file, which will override the 'files' of the spark job definition + // you provide. + Files []interface{} `json:"files,omitempty"` + + // Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide. + NumExecutors *int32 `json:"numExecutors,omitempty"` + + // The name of the big data pool which will be used to execute the spark batch job, which will override the 'targetBigDataPool' + // of the spark job definition you provide. + TargetBigDataPool *BigDataPoolParametrizationReference `json:"targetBigDataPool,omitempty"` +} + +// SynapseSparkJobDefinitionActivity - Execute spark job activity. +type SynapseSparkJobDefinitionActivity struct { + // REQUIRED; Activity name. + Name *string `json:"name,omitempty"` + + // REQUIRED; Type of activity. + Type *string `json:"type,omitempty"` + + // REQUIRED; Execute spark job activity properties. + TypeProperties *SynapseSparkJobActivityTypeProperties `json:"typeProperties,omitempty"` + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]interface{} + + // Activity depends on condition. + DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` + + // Activity description. + Description *string `json:"description,omitempty"` + + // Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + + // Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + + // Activity user properties. + UserProperties []*UserProperty `json:"userProperties,omitempty"` +} + +// GetActivity implements the ActivityClassification interface for type SynapseSparkJobDefinitionActivity. +func (s *SynapseSparkJobDefinitionActivity) GetActivity() *Activity { + return &Activity{ + Name: s.Name, + Type: s.Type, + Description: s.Description, + DependsOn: s.DependsOn, + UserProperties: s.UserProperties, + AdditionalProperties: s.AdditionalProperties, + } +} + +// GetExecutionActivity implements the ExecutionActivityClassification interface for type SynapseSparkJobDefinitionActivity. +func (s *SynapseSparkJobDefinitionActivity) GetExecutionActivity() *ExecutionActivity { + return &ExecutionActivity{ + LinkedServiceName: s.LinkedServiceName, + Policy: s.Policy, + Name: s.Name, + Type: s.Type, + Description: s.Description, + DependsOn: s.DependsOn, + UserProperties: s.UserProperties, + AdditionalProperties: s.AdditionalProperties, + } +} + +// SynapseSparkJobReference - Synapse spark job reference type. +type SynapseSparkJobReference struct { + // REQUIRED; Reference spark job name. + ReferenceName *string `json:"referenceName,omitempty"` + + // REQUIRED; Synapse spark job reference type. + Type *SparkJobReferenceType `json:"type,omitempty"` +} + // TabularSourceClassification provides polymorphic access to related types. // Call the interface's GetTabularSource() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: @@ -29375,7 +29641,7 @@ type WebAnonymousAuthentication struct { // REQUIRED; Type of authentication used to connect to the web table source. AuthenticationType *WebAuthenticationType `json:"authenticationType,omitempty"` - // REQUIRED; The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType + // REQUIRED; The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType // string). URL interface{} `json:"url,omitempty"` } @@ -29396,7 +29662,7 @@ type WebBasicAuthentication struct { // REQUIRED; The password for Basic authentication. Password SecretBaseClassification `json:"password,omitempty"` - // REQUIRED; The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType + // REQUIRED; The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType // string). URL interface{} `json:"url,omitempty"` @@ -29425,7 +29691,7 @@ type WebClientCertificateAuthentication struct { // REQUIRED; Base64-encoded contents of a PFX file. Pfx SecretBaseClassification `json:"pfx,omitempty"` - // REQUIRED; The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType + // REQUIRED; The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType // string). URL interface{} `json:"url,omitempty"` } @@ -29567,7 +29833,7 @@ type WebLinkedServiceTypeProperties struct { // REQUIRED; Type of authentication used to connect to the web table source. AuthenticationType *WebAuthenticationType `json:"authenticationType,omitempty"` - // REQUIRED; The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType + // REQUIRED; The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType // string). URL interface{} `json:"url,omitempty"` } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go b/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go index 6bb63a939cc5..a974d9abe85f 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go @@ -5,6 +5,7 @@ // 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 @@ -15,6 +16,41 @@ import ( "reflect" ) +// MarshalJSON implements the json.Marshaller interface for type AccessPolicyResponse. +func (a AccessPolicyResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "accessToken", a.AccessToken) + populate(objectMap, "dataPlaneUrl", a.DataPlaneURL) + populate(objectMap, "policy", a.Policy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AccessPolicyResponse. +func (a *AccessPolicyResponse) 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 "accessToken": + err = unpopulate(val, "AccessToken", &a.AccessToken) + delete(rawMsg, key) + case "dataPlaneUrl": + err = unpopulate(val, "DataPlaneURL", &a.DataPlaneURL) + delete(rawMsg, key) + case "policy": + err = unpopulate(val, "Policy", &a.Policy) + 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 Activity. func (a Activity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -177,6 +213,30 @@ func (a *ActivityPolicy) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ActivityRun. +func (a ActivityRun) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "activityName", a.ActivityName) + populateTimeRFC3339(objectMap, "activityRunEnd", a.ActivityRunEnd) + populate(objectMap, "activityRunId", a.ActivityRunID) + populateTimeRFC3339(objectMap, "activityRunStart", a.ActivityRunStart) + populate(objectMap, "activityType", a.ActivityType) + populate(objectMap, "durationInMs", a.DurationInMs) + populate(objectMap, "error", &a.Error) + populate(objectMap, "input", &a.Input) + populate(objectMap, "linkedServiceName", a.LinkedServiceName) + populate(objectMap, "output", &a.Output) + populate(objectMap, "pipelineName", a.PipelineName) + populate(objectMap, "pipelineRunId", a.PipelineRunID) + populate(objectMap, "status", a.Status) + if a.AdditionalProperties != nil { + for key, val := range a.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type ActivityRun. func (a *ActivityRun) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -243,6 +303,95 @@ func (a *ActivityRun) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ActivityRunsQueryResponse. +func (a ActivityRunsQueryResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "continuationToken", a.ContinuationToken) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ActivityRunsQueryResponse. +func (a *ActivityRunsQueryResponse) 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 "continuationToken": + err = unpopulate(val, "ContinuationToken", &a.ContinuationToken) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &a.Value) + 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 AddDataFlowToDebugSessionResponse. +func (a AddDataFlowToDebugSessionResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "jobVersion", a.JobVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AddDataFlowToDebugSessionResponse. +func (a *AddDataFlowToDebugSessionResponse) 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 "jobVersion": + err = unpopulate(val, "JobVersion", &a.JobVersion) + 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 AdditionalColumns. +func (a AdditionalColumns) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", &a.Name) + populate(objectMap, "value", &a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AdditionalColumns. +func (a *AdditionalColumns) 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 "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &a.Value) + 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 AmazonMWSLinkedService. func (a AmazonMWSLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -609,6 +758,45 @@ func (a *AmazonRdsForOracleLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOraclePartitionSettings. +func (a AmazonRdsForOraclePartitionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "partitionColumnName", &a.PartitionColumnName) + populate(objectMap, "partitionLowerBound", &a.PartitionLowerBound) + populate(objectMap, "partitionNames", &a.PartitionNames) + populate(objectMap, "partitionUpperBound", &a.PartitionUpperBound) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForOraclePartitionSettings. +func (a *AmazonRdsForOraclePartitionSettings) 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 "partitionColumnName": + err = unpopulate(val, "PartitionColumnName", &a.PartitionColumnName) + delete(rawMsg, key) + case "partitionLowerBound": + err = unpopulate(val, "PartitionLowerBound", &a.PartitionLowerBound) + delete(rawMsg, key) + case "partitionNames": + err = unpopulate(val, "PartitionNames", &a.PartitionNames) + delete(rawMsg, key) + case "partitionUpperBound": + err = unpopulate(val, "PartitionUpperBound", &a.PartitionUpperBound) + 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 AmazonRdsForOracleSource. func (a AmazonRdsForOracleSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -761,6 +949,37 @@ func (a *AmazonRdsForOracleTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleTableDatasetTypeProperties. +func (a AmazonRdsForOracleTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &a.Schema) + populate(objectMap, "table", &a.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForOracleTableDatasetTypeProperties. +func (a *AmazonRdsForOracleTableDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &a.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &a.Table) + 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 AmazonRdsForSQLServerLinkedService. func (a AmazonRdsForSQLServerLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -1030,6 +1249,37 @@ func (a *AmazonRdsForSQLServerTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerTableDatasetTypeProperties. +func (a AmazonRdsForSQLServerTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &a.Schema) + populate(objectMap, "table", &a.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRdsForSQLServerTableDatasetTypeProperties. +func (a *AmazonRdsForSQLServerTableDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &a.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &a.Table) + 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 AmazonRedshiftLinkedService. func (a AmazonRedshiftLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -1287,6 +1537,41 @@ func (a *AmazonRedshiftTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftTableDatasetTypeProperties. +func (a AmazonRedshiftTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &a.Schema) + populate(objectMap, "table", &a.Table) + populate(objectMap, "tableName", &a.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AmazonRedshiftTableDatasetTypeProperties. +func (a *AmazonRedshiftTableDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &a.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &a.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &a.TableName) + 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 AmazonS3CompatibleLinkedService. func (a AmazonS3CompatibleLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -2085,6 +2370,64 @@ func (a *AppendVariableActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AppendVariableActivityTypeProperties. +func (a AppendVariableActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", &a.Value) + populate(objectMap, "variableName", a.VariableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AppendVariableActivityTypeProperties. +func (a *AppendVariableActivityTypeProperties) 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 "value": + err = unpopulate(val, "Value", &a.Value) + delete(rawMsg, key) + case "variableName": + err = unpopulate(val, "VariableName", &a.VariableName) + 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 ArmIDWrapper. +func (a ArmIDWrapper) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", a.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ArmIDWrapper. +func (a *ArmIDWrapper) 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 "id": + err = unpopulate(val, "ID", &a.ID) + 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 AsanaLinkedService. func (a AsanaLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -2566,6 +2909,33 @@ func (a *AzPowerShellSetup) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzPowerShellSetupTypeProperties. +func (a AzPowerShellSetupTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "version", a.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzPowerShellSetupTypeProperties. +func (a *AzPowerShellSetupTypeProperties) 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 "version": + err = unpopulate(val, "Version", &a.Version) + 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 AzureBatchLinkedService. func (a AzureBatchLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -3789,6 +4159,64 @@ func (a *AzureDataExplorerCommandActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerCommandActivityTypeProperties. +func (a AzureDataExplorerCommandActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "command", &a.Command) + populate(objectMap, "commandTimeout", &a.CommandTimeout) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerCommandActivityTypeProperties. +func (a *AzureDataExplorerCommandActivityTypeProperties) 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 "command": + err = unpopulate(val, "Command", &a.Command) + delete(rawMsg, key) + case "commandTimeout": + err = unpopulate(val, "CommandTimeout", &a.CommandTimeout) + 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 AzureDataExplorerDatasetTypeProperties. +func (a AzureDataExplorerDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "table", &a.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerDatasetTypeProperties. +func (a *AzureDataExplorerDatasetTypeProperties) 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 "table": + err = unpopulate(val, "Table", &a.Table) + 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 AzureDataExplorerLinkedService. func (a AzureDataExplorerLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -4891,6 +5319,37 @@ func (a *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeDatasetTypeProperties. +func (a AzureDatabricksDeltaLakeDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "database", &a.Database) + populate(objectMap, "table", &a.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureDatabricksDeltaLakeDatasetTypeProperties. +func (a *AzureDatabricksDeltaLakeDatasetTypeProperties) 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 "database": + err = unpopulate(val, "Database", &a.Database) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &a.Table) + 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 AzureDatabricksDeltaLakeExportCommand. func (a AzureDatabricksDeltaLakeExportCommand) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -5790,6 +6249,45 @@ func (a *AzureFunctionActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureFunctionActivityTypeProperties. +func (a AzureFunctionActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "body", &a.Body) + populate(objectMap, "functionName", &a.FunctionName) + populate(objectMap, "headers", &a.Headers) + populate(objectMap, "method", a.Method) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureFunctionActivityTypeProperties. +func (a *AzureFunctionActivityTypeProperties) 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 "body": + err = unpopulate(val, "Body", &a.Body) + delete(rawMsg, key) + case "functionName": + err = unpopulate(val, "FunctionName", &a.FunctionName) + delete(rawMsg, key) + case "headers": + err = unpopulate(val, "Headers", &a.Headers) + delete(rawMsg, key) + case "method": + err = unpopulate(val, "Method", &a.Method) + 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 AzureFunctionLinkedService. func (a AzureFunctionLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -5961,6 +6459,37 @@ func (a *AzureKeyVaultLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureKeyVaultLinkedServiceTypeProperties. +func (a AzureKeyVaultLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "baseUrl", &a.BaseURL) + populate(objectMap, "credential", a.Credential) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureKeyVaultLinkedServiceTypeProperties. +func (a *AzureKeyVaultLinkedServiceTypeProperties) 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 "baseUrl": + err = unpopulate(val, "BaseURL", &a.BaseURL) + delete(rawMsg, key) + case "credential": + err = unpopulate(val, "Credential", &a.Credential) + 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 AzureKeyVaultSecretReference. func (a AzureKeyVaultSecretReference) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6079,6 +6608,32 @@ func (a AzureMLBatchExecutionActivityTypeProperties) MarshalJSON() ([]byte, erro return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLBatchExecutionActivityTypeProperties. +func (a *AzureMLBatchExecutionActivityTypeProperties) 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 "globalParameters": + err = unpopulate(val, "GlobalParameters", &a.GlobalParameters) + delete(rawMsg, key) + case "webServiceInputs": + err = unpopulate(val, "WebServiceInputs", &a.WebServiceInputs) + delete(rawMsg, key) + case "webServiceOutputs": + err = unpopulate(val, "WebServiceOutputs", &a.WebServiceOutputs) + 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 AzureMLExecutePipelineActivity. func (a AzureMLExecutePipelineActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6149,6 +6704,61 @@ func (a *AzureMLExecutePipelineActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureMLExecutePipelineActivityTypeProperties. +func (a AzureMLExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "continueOnStepFailure", &a.ContinueOnStepFailure) + populate(objectMap, "dataPathAssignments", &a.DataPathAssignments) + populate(objectMap, "experimentName", &a.ExperimentName) + populate(objectMap, "mlParentRunId", &a.MlParentRunID) + populate(objectMap, "mlPipelineEndpointId", &a.MlPipelineEndpointID) + populate(objectMap, "mlPipelineId", &a.MlPipelineID) + populate(objectMap, "mlPipelineParameters", &a.MlPipelineParameters) + populate(objectMap, "version", &a.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLExecutePipelineActivityTypeProperties. +func (a *AzureMLExecutePipelineActivityTypeProperties) 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 "continueOnStepFailure": + err = unpopulate(val, "ContinueOnStepFailure", &a.ContinueOnStepFailure) + delete(rawMsg, key) + case "dataPathAssignments": + err = unpopulate(val, "DataPathAssignments", &a.DataPathAssignments) + delete(rawMsg, key) + case "experimentName": + err = unpopulate(val, "ExperimentName", &a.ExperimentName) + delete(rawMsg, key) + case "mlParentRunId": + err = unpopulate(val, "MlParentRunID", &a.MlParentRunID) + delete(rawMsg, key) + case "mlPipelineEndpointId": + err = unpopulate(val, "MlPipelineEndpointID", &a.MlPipelineEndpointID) + delete(rawMsg, key) + case "mlPipelineId": + err = unpopulate(val, "MlPipelineID", &a.MlPipelineID) + delete(rawMsg, key) + case "mlPipelineParameters": + err = unpopulate(val, "MlPipelineParameters", &a.MlPipelineParameters) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &a.Version) + 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 AzureMLLinkedService. func (a AzureMLLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6449,6 +7059,72 @@ func (a *AzureMLUpdateResourceActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureMLUpdateResourceActivityTypeProperties. +func (a AzureMLUpdateResourceActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "trainedModelFilePath", &a.TrainedModelFilePath) + populate(objectMap, "trainedModelLinkedServiceName", a.TrainedModelLinkedServiceName) + populate(objectMap, "trainedModelName", &a.TrainedModelName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLUpdateResourceActivityTypeProperties. +func (a *AzureMLUpdateResourceActivityTypeProperties) 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 "trainedModelFilePath": + err = unpopulate(val, "TrainedModelFilePath", &a.TrainedModelFilePath) + delete(rawMsg, key) + case "trainedModelLinkedServiceName": + err = unpopulate(val, "TrainedModelLinkedServiceName", &a.TrainedModelLinkedServiceName) + delete(rawMsg, key) + case "trainedModelName": + err = unpopulate(val, "TrainedModelName", &a.TrainedModelName) + 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 AzureMLWebServiceFile. +func (a AzureMLWebServiceFile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "filePath", &a.FilePath) + populate(objectMap, "linkedServiceName", a.LinkedServiceName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureMLWebServiceFile. +func (a *AzureMLWebServiceFile) 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 "filePath": + err = unpopulate(val, "FilePath", &a.FilePath) + delete(rawMsg, key) + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &a.LinkedServiceName) + 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 AzureMariaDBLinkedService. func (a AzureMariaDBLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6511,6 +7187,41 @@ func (a *AzureMariaDBLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureMariaDBLinkedServiceTypeProperties. +func (a AzureMariaDBLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &a.ConnectionString) + populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + populate(objectMap, "pwd", a.Pwd) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureMariaDBLinkedServiceTypeProperties. +func (a *AzureMariaDBLinkedServiceTypeProperties) 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 "connectionString": + err = unpopulate(val, "ConnectionString", &a.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &a.EncryptedCredential) + delete(rawMsg, key) + case "pwd": + err = unpopulate(val, "Pwd", &a.Pwd) + 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 AzureMariaDBSource. func (a AzureMariaDBSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6717,6 +7428,41 @@ func (a *AzureMySQLLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureMySQLLinkedServiceTypeProperties. +func (a AzureMySQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &a.ConnectionString) + populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + populate(objectMap, "password", a.Password) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureMySQLLinkedServiceTypeProperties. +func (a *AzureMySQLLinkedServiceTypeProperties) 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 "connectionString": + err = unpopulate(val, "ConnectionString", &a.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &a.EncryptedCredential) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &a.Password) + 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 AzureMySQLSink. func (a AzureMySQLSink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6931,6 +7677,37 @@ func (a *AzureMySQLTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureMySQLTableDatasetTypeProperties. +func (a AzureMySQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "table", &a.Table) + populate(objectMap, "tableName", &a.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureMySQLTableDatasetTypeProperties. +func (a *AzureMySQLTableDatasetTypeProperties) 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 "table": + err = unpopulate(val, "Table", &a.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &a.TableName) + 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 AzurePostgreSQLLinkedService. func (a AzurePostgreSQLLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6993,6 +7770,41 @@ func (a *AzurePostgreSQLLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLLinkedServiceTypeProperties. +func (a AzurePostgreSQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &a.ConnectionString) + populate(objectMap, "encryptedCredential", &a.EncryptedCredential) + populate(objectMap, "password", a.Password) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzurePostgreSQLLinkedServiceTypeProperties. +func (a *AzurePostgreSQLLinkedServiceTypeProperties) 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 "connectionString": + err = unpopulate(val, "ConnectionString", &a.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &a.EncryptedCredential) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &a.Password) + 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 AzurePostgreSQLSink. func (a AzurePostgreSQLSink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -7207,6 +8019,41 @@ func (a *AzurePostgreSQLTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLTableDatasetTypeProperties. +func (a AzurePostgreSQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &a.Schema) + populate(objectMap, "table", &a.Table) + populate(objectMap, "tableName", &a.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzurePostgreSQLTableDatasetTypeProperties. +func (a *AzurePostgreSQLTableDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &a.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &a.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &a.TableName) + 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 AzureQueueSink. func (a AzureQueueSink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -7464,6 +8311,41 @@ func (a *AzureSQLDWTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureSQLDWTableDatasetTypeProperties. +func (a AzureSQLDWTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &a.Schema) + populate(objectMap, "table", &a.Table) + populate(objectMap, "tableName", &a.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLDWTableDatasetTypeProperties. +func (a *AzureSQLDWTableDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &a.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &a.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &a.TableName) + 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 AzureSQLDatabaseLinkedService. func (a AzureSQLDatabaseLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -7780,6 +8662,41 @@ func (a *AzureSQLMITableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureSQLMITableDatasetTypeProperties. +func (a AzureSQLMITableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &a.Schema) + populate(objectMap, "table", &a.Table) + populate(objectMap, "tableName", &a.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLMITableDatasetTypeProperties. +func (a *AzureSQLMITableDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &a.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &a.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &a.TableName) + 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 AzureSQLSink. func (a AzureSQLSink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -8046,28 +8963,17 @@ func (a *AzureSQLTableDataset) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type AzureSearchIndexDataset. -func (a AzureSearchIndexDataset) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type AzureSQLTableDatasetTypeProperties. +func (a AzureSQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", a.Annotations) - populate(objectMap, "description", a.Description) - populate(objectMap, "folder", a.Folder) - populate(objectMap, "linkedServiceName", a.LinkedServiceName) - populate(objectMap, "parameters", a.Parameters) populate(objectMap, "schema", &a.Schema) - populate(objectMap, "structure", &a.Structure) - objectMap["type"] = "AzureSearchIndex" - populate(objectMap, "typeProperties", a.TypeProperties) - if a.AdditionalProperties != nil { - for key, val := range a.AdditionalProperties { - objectMap[key] = val - } - } + populate(objectMap, "table", &a.Table) + populate(objectMap, "tableName", &a.TableName) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchIndexDataset. -func (a *AzureSearchIndexDataset) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLTableDatasetTypeProperties. +func (a *AzureSQLTableDatasetTypeProperties) 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) @@ -8075,112 +8981,14 @@ func (a *AzureSearchIndexDataset) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "annotations": - err = unpopulate(val, "Annotations", &a.Annotations) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &a.Description) - delete(rawMsg, key) - case "folder": - err = unpopulate(val, "Folder", &a.Folder) - delete(rawMsg, key) - case "linkedServiceName": - err = unpopulate(val, "LinkedServiceName", &a.LinkedServiceName) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &a.Parameters) - delete(rawMsg, key) case "schema": err = unpopulate(val, "Schema", &a.Schema) delete(rawMsg, key) - case "structure": - err = unpopulate(val, "Structure", &a.Structure) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &a.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &a.TypeProperties) - delete(rawMsg, key) - default: - if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - a.AdditionalProperties[key] = aux - } - 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 AzureSearchIndexSink. -func (a AzureSearchIndexSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) - populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) - populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) - objectMap["type"] = "AzureSearchIndexSink" - populate(objectMap, "writeBatchSize", &a.WriteBatchSize) - populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) - populate(objectMap, "writeBehavior", a.WriteBehavior) - if a.AdditionalProperties != nil { - for key, val := range a.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchIndexSink. -func (a *AzureSearchIndexSink) 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 "disableMetricsCollection": - err = unpopulate(val, "DisableMetricsCollection", &a.DisableMetricsCollection) - delete(rawMsg, key) - case "maxConcurrentConnections": - err = unpopulate(val, "MaxConcurrentConnections", &a.MaxConcurrentConnections) + case "table": + err = unpopulate(val, "Table", &a.Table) delete(rawMsg, key) - case "sinkRetryCount": - err = unpopulate(val, "SinkRetryCount", &a.SinkRetryCount) - delete(rawMsg, key) - case "sinkRetryWait": - err = unpopulate(val, "SinkRetryWait", &a.SinkRetryWait) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &a.Type) - delete(rawMsg, key) - case "writeBatchSize": - err = unpopulate(val, "WriteBatchSize", &a.WriteBatchSize) - delete(rawMsg, key) - case "writeBatchTimeout": - err = unpopulate(val, "WriteBatchTimeout", &a.WriteBatchTimeout) - delete(rawMsg, key) - case "writeBehavior": - err = unpopulate(val, "WriteBehavior", &a.WriteBehavior) - delete(rawMsg, key) - default: - if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - a.AdditionalProperties[key] = aux - } + case "tableName": + err = unpopulate(val, "TableName", &a.TableName) delete(rawMsg, key) } if err != nil { @@ -8190,14 +8998,17 @@ func (a *AzureSearchIndexSink) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type AzureSearchLinkedService. -func (a AzureSearchLinkedService) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type AzureSearchIndexDataset. +func (a AzureSearchIndexDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "annotations", a.Annotations) - populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) + populate(objectMap, "folder", a.Folder) + populate(objectMap, "linkedServiceName", a.LinkedServiceName) populate(objectMap, "parameters", a.Parameters) - objectMap["type"] = "AzureSearch" + populate(objectMap, "schema", &a.Schema) + populate(objectMap, "structure", &a.Structure) + objectMap["type"] = "AzureSearchIndex" populate(objectMap, "typeProperties", a.TypeProperties) if a.AdditionalProperties != nil { for key, val := range a.AdditionalProperties { @@ -8207,8 +9018,8 @@ func (a AzureSearchLinkedService) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchLinkedService. -func (a *AzureSearchLinkedService) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchIndexDataset. +func (a *AzureSearchIndexDataset) 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) @@ -8219,9 +9030,177 @@ func (a *AzureSearchLinkedService) UnmarshalJSON(data []byte) error { case "annotations": err = unpopulate(val, "Annotations", &a.Annotations) delete(rawMsg, key) - case "connectVia": - err = unpopulate(val, "ConnectVia", &a.ConnectVia) - delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &a.Description) + delete(rawMsg, key) + case "folder": + err = unpopulate(val, "Folder", &a.Folder) + delete(rawMsg, key) + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &a.LinkedServiceName) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &a.Parameters) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &a.Schema) + delete(rawMsg, key) + case "structure": + err = unpopulate(val, "Structure", &a.Structure) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &a.TypeProperties) + delete(rawMsg, key) + default: + if a.AdditionalProperties == nil { + a.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + a.AdditionalProperties[key] = aux + } + 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 AzureSearchIndexDatasetTypeProperties. +func (a AzureSearchIndexDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "indexName", &a.IndexName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchIndexDatasetTypeProperties. +func (a *AzureSearchIndexDatasetTypeProperties) 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 "indexName": + err = unpopulate(val, "IndexName", &a.IndexName) + 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 AzureSearchIndexSink. +func (a AzureSearchIndexSink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) + populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) + populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) + populate(objectMap, "sinkRetryWait", &a.SinkRetryWait) + objectMap["type"] = "AzureSearchIndexSink" + populate(objectMap, "writeBatchSize", &a.WriteBatchSize) + populate(objectMap, "writeBatchTimeout", &a.WriteBatchTimeout) + populate(objectMap, "writeBehavior", a.WriteBehavior) + if a.AdditionalProperties != nil { + for key, val := range a.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchIndexSink. +func (a *AzureSearchIndexSink) 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 "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &a.DisableMetricsCollection) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &a.MaxConcurrentConnections) + delete(rawMsg, key) + case "sinkRetryCount": + err = unpopulate(val, "SinkRetryCount", &a.SinkRetryCount) + delete(rawMsg, key) + case "sinkRetryWait": + err = unpopulate(val, "SinkRetryWait", &a.SinkRetryWait) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + delete(rawMsg, key) + case "writeBatchSize": + err = unpopulate(val, "WriteBatchSize", &a.WriteBatchSize) + delete(rawMsg, key) + case "writeBatchTimeout": + err = unpopulate(val, "WriteBatchTimeout", &a.WriteBatchTimeout) + delete(rawMsg, key) + case "writeBehavior": + err = unpopulate(val, "WriteBehavior", &a.WriteBehavior) + delete(rawMsg, key) + default: + if a.AdditionalProperties == nil { + a.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + a.AdditionalProperties[key] = aux + } + 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 AzureSearchLinkedService. +func (a AzureSearchLinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "annotations", a.Annotations) + populate(objectMap, "connectVia", a.ConnectVia) + populate(objectMap, "description", a.Description) + populate(objectMap, "parameters", a.Parameters) + objectMap["type"] = "AzureSearch" + populate(objectMap, "typeProperties", a.TypeProperties) + if a.AdditionalProperties != nil { + for key, val := range a.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSearchLinkedService. +func (a *AzureSearchLinkedService) 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 "annotations": + err = unpopulate(val, "Annotations", &a.Annotations) + delete(rawMsg, key) + case "connectVia": + err = unpopulate(val, "ConnectVia", &a.ConnectVia) + delete(rawMsg, key) case "description": err = unpopulate(val, "Description", &a.Description) delete(rawMsg, key) @@ -8349,6 +9328,142 @@ func (a *AzureStorageLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureStorageLinkedServiceTypeProperties. +func (a AzureStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "accountKey", a.AccountKey) + populate(objectMap, "connectionString", &a.ConnectionString) + populate(objectMap, "encryptedCredential", a.EncryptedCredential) + populate(objectMap, "sasToken", a.SasToken) + populate(objectMap, "sasUri", &a.SasURI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureStorageLinkedServiceTypeProperties. +func (a *AzureStorageLinkedServiceTypeProperties) 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 "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) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzureSynapseArtifactsLinkedService. +func (a AzureSynapseArtifactsLinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "annotations", a.Annotations) + populate(objectMap, "connectVia", a.ConnectVia) + populate(objectMap, "description", a.Description) + populate(objectMap, "parameters", a.Parameters) + objectMap["type"] = "AzureSynapseArtifacts" + populate(objectMap, "typeProperties", a.TypeProperties) + if a.AdditionalProperties != nil { + for key, val := range a.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSynapseArtifactsLinkedService. +func (a *AzureSynapseArtifactsLinkedService) 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 "annotations": + err = unpopulate(val, "Annotations", &a.Annotations) + delete(rawMsg, key) + case "connectVia": + err = unpopulate(val, "ConnectVia", &a.ConnectVia) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &a.Description) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &a.Parameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &a.TypeProperties) + delete(rawMsg, key) + default: + if a.AdditionalProperties == nil { + a.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + a.AdditionalProperties[key] = aux + } + 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 AzureSynapseArtifactsLinkedServiceTypeProperties. +func (a AzureSynapseArtifactsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "authentication", &a.Authentication) + populate(objectMap, "endpoint", &a.Endpoint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSynapseArtifactsLinkedServiceTypeProperties. +func (a *AzureSynapseArtifactsLinkedServiceTypeProperties) 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 "authentication": + err = unpopulate(val, "Authentication", &a.Authentication) + delete(rawMsg, key) + case "endpoint": + err = unpopulate(val, "Endpoint", &a.Endpoint) + 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 AzureTableDataset. func (a AzureTableDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -8423,6 +9538,33 @@ func (a *AzureTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AzureTableDatasetTypeProperties. +func (a AzureTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "tableName", &a.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureTableDatasetTypeProperties. +func (a *AzureTableDatasetTypeProperties) 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 "tableName": + err = unpopulate(val, "TableName", &a.TableName) + 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 AzureTableSink. func (a AzureTableSink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -8641,6 +9783,37 @@ func (a *AzureTableStorageLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type BigDataPoolParametrizationReference. +func (b BigDataPoolParametrizationReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "referenceName", &b.ReferenceName) + populate(objectMap, "type", b.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BigDataPoolParametrizationReference. +func (b *BigDataPoolParametrizationReference) 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 "referenceName": + err = unpopulate(val, "ReferenceName", &b.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &b.Type) + 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 BinaryDataset. func (b BinaryDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -9001,6 +10174,38 @@ func (b BlobEventsTriggerTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type BlobEventsTriggerTypeProperties. +func (b *BlobEventsTriggerTypeProperties) 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 "blobPathBeginsWith": + err = unpopulate(val, "BlobPathBeginsWith", &b.BlobPathBeginsWith) + delete(rawMsg, key) + case "blobPathEndsWith": + err = unpopulate(val, "BlobPathEndsWith", &b.BlobPathEndsWith) + delete(rawMsg, key) + case "events": + err = unpopulate(val, "Events", &b.Events) + delete(rawMsg, key) + case "ignoreEmptyBlobs": + err = unpopulate(val, "IgnoreEmptyBlobs", &b.IgnoreEmptyBlobs) + delete(rawMsg, key) + case "scope": + err = unpopulate(val, "Scope", &b.Scope) + 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 BlobSink. func (b BlobSink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -9219,6 +10424,68 @@ func (b *BlobTrigger) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type BlobTriggerTypeProperties. +func (b BlobTriggerTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "folderPath", b.FolderPath) + populate(objectMap, "linkedService", b.LinkedService) + populate(objectMap, "maxConcurrency", b.MaxConcurrency) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BlobTriggerTypeProperties. +func (b *BlobTriggerTypeProperties) 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 "folderPath": + err = unpopulate(val, "FolderPath", &b.FolderPath) + delete(rawMsg, key) + case "linkedService": + err = unpopulate(val, "LinkedService", &b.LinkedService) + delete(rawMsg, key) + case "maxConcurrency": + err = unpopulate(val, "MaxConcurrency", &b.MaxConcurrency) + 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 CMKIdentityDefinition. +func (c CMKIdentityDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "userAssignedIdentity", c.UserAssignedIdentity) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CMKIdentityDefinition. +func (c *CMKIdentityDefinition) 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 "userAssignedIdentity": + err = unpopulate(val, "UserAssignedIdentity", &c.UserAssignedIdentity) + 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 CassandraLinkedService. func (c CassandraLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -9476,6 +10743,37 @@ func (c *CassandraTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CassandraTableDatasetTypeProperties. +func (c CassandraTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "keyspace", &c.Keyspace) + populate(objectMap, "tableName", &c.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CassandraTableDatasetTypeProperties. +func (c *CassandraTableDatasetTypeProperties) 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 "keyspace": + err = unpopulate(val, "Keyspace", &c.Keyspace) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &c.TableName) + 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 ChainingTrigger. func (c ChainingTrigger) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -9546,6 +10844,95 @@ func (c ChainingTriggerTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type ChainingTriggerTypeProperties. +func (c *ChainingTriggerTypeProperties) 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 "dependsOn": + err = unpopulate(val, "DependsOn", &c.DependsOn) + delete(rawMsg, key) + case "runDimension": + err = unpopulate(val, "RunDimension", &c.RunDimension) + 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 CloudError. +func (c CloudError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "error", c.Error) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudError. +func (c *CloudError) 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 "error": + err = unpopulate(val, "Error", &c.Error) + 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 CloudErrorBody. +func (c CloudErrorBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "code", c.Code) + populate(objectMap, "details", c.Details) + populate(objectMap, "message", c.Message) + populate(objectMap, "target", c.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CloudErrorBody. +func (c *CloudErrorBody) 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 "code": + err = unpopulate(val, "Code", &c.Code) + delete(rawMsg, key) + case "details": + err = unpopulate(val, "Details", &c.Details) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &c.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &c.Target) + 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 CmdkeySetup. func (c CmdkeySetup) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -9686,6 +11073,33 @@ func (c *CommonDataServiceForAppsEntityDataset) UnmarshalJSON(data []byte) error return nil } +// MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsEntityDatasetTypeProperties. +func (c CommonDataServiceForAppsEntityDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "entityName", &c.EntityName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommonDataServiceForAppsEntityDatasetTypeProperties. +func (c *CommonDataServiceForAppsEntityDatasetTypeProperties) 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 "entityName": + err = unpopulate(val, "EntityName", &c.EntityName) + 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 CommonDataServiceForAppsLinkedService. func (c CommonDataServiceForAppsLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -10297,6 +11711,41 @@ func (c *ConcurSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ConnectionStateProperties. +func (c ConnectionStateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "actionsRequired", c.ActionsRequired) + populate(objectMap, "description", c.Description) + populate(objectMap, "status", c.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionStateProperties. +func (c *ConnectionStateProperties) 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 "actionsRequired": + err = unpopulate(val, "ActionsRequired", &c.ActionsRequired) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &c.Description) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &c.Status) + 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]interface{}) @@ -10433,6 +11882,37 @@ func (c *CopyActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CopyActivityLogSettings. +func (c CopyActivityLogSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "enableReliableLogging", &c.EnableReliableLogging) + populate(objectMap, "logLevel", &c.LogLevel) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CopyActivityLogSettings. +func (c *CopyActivityLogSettings) 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 "enableReliableLogging": + err = unpopulate(val, "EnableReliableLogging", &c.EnableReliableLogging) + delete(rawMsg, key) + case "logLevel": + err = unpopulate(val, "LogLevel", &c.LogLevel) + 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 CopyActivityTypeProperties. func (c CopyActivityTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -10640,6 +12120,18 @@ func (c *CopySource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CopyTranslator. +func (c CopyTranslator) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["type"] = c.Type + if c.AdditionalProperties != nil { + for key, val := range c.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type CopyTranslator. func (c *CopyTranslator) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -10877,6 +12369,33 @@ func (c *CosmosDbMongoDbAPICollectionDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPICollectionDatasetTypeProperties. +func (c CosmosDbMongoDbAPICollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "collection", &c.Collection) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbMongoDbAPICollectionDatasetTypeProperties. +func (c *CosmosDbMongoDbAPICollectionDatasetTypeProperties) 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 "collection": + err = unpopulate(val, "Collection", &c.Collection) + 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 CosmosDbMongoDbAPILinkedService. func (c CosmosDbMongoDbAPILinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -10939,6 +12458,41 @@ func (c *CosmosDbMongoDbAPILinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPILinkedServiceTypeProperties. +func (c CosmosDbMongoDbAPILinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &c.ConnectionString) + populate(objectMap, "database", &c.Database) + populate(objectMap, "isServerVersionAbove32", &c.IsServerVersionAbove32) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbMongoDbAPILinkedServiceTypeProperties. +func (c *CosmosDbMongoDbAPILinkedServiceTypeProperties) 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 "connectionString": + err = unpopulate(val, "ConnectionString", &c.ConnectionString) + delete(rawMsg, key) + case "database": + err = unpopulate(val, "Database", &c.Database) + delete(rawMsg, key) + case "isServerVersionAbove32": + err = unpopulate(val, "IsServerVersionAbove32", &c.IsServerVersionAbove32) + 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 CosmosDbMongoDbAPISink. func (c CosmosDbMongoDbAPISink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -11161,6 +12715,33 @@ func (c *CosmosDbSQLAPICollectionDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPICollectionDatasetTypeProperties. +func (c CosmosDbSQLAPICollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "collectionName", &c.CollectionName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbSQLAPICollectionDatasetTypeProperties. +func (c *CosmosDbSQLAPICollectionDatasetTypeProperties) 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 "collectionName": + err = unpopulate(val, "CollectionName", &c.CollectionName) + 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 CosmosDbSQLAPISink. func (c CosmosDbSQLAPISink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -11371,6 +12952,41 @@ func (c *CouchbaseLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CouchbaseLinkedServiceTypeProperties. +func (c CouchbaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &c.ConnectionString) + populate(objectMap, "credString", c.CredString) + populate(objectMap, "encryptedCredential", &c.EncryptedCredential) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CouchbaseLinkedServiceTypeProperties. +func (c *CouchbaseLinkedServiceTypeProperties) 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 "connectionString": + err = unpopulate(val, "ConnectionString", &c.ConnectionString) + delete(rawMsg, key) + case "credString": + err = unpopulate(val, "CredString", &c.CredString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &c.EncryptedCredential) + 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 CouchbaseSource. func (c CouchbaseSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -11515,6 +13131,142 @@ func (c *CouchbaseTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CreateDataFlowDebugSessionRequest. +func (c CreateDataFlowDebugSessionRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "computeType", c.ComputeType) + populate(objectMap, "coreCount", c.CoreCount) + populate(objectMap, "integrationRuntime", c.IntegrationRuntime) + populate(objectMap, "timeToLive", c.TimeToLive) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateDataFlowDebugSessionRequest. +func (c *CreateDataFlowDebugSessionRequest) 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 "computeType": + err = unpopulate(val, "ComputeType", &c.ComputeType) + delete(rawMsg, key) + case "coreCount": + err = unpopulate(val, "CoreCount", &c.CoreCount) + delete(rawMsg, key) + case "integrationRuntime": + err = unpopulate(val, "IntegrationRuntime", &c.IntegrationRuntime) + delete(rawMsg, key) + case "timeToLive": + err = unpopulate(val, "TimeToLive", &c.TimeToLive) + 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 CreateDataFlowDebugSessionResponse. +func (c CreateDataFlowDebugSessionResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "sessionId", c.SessionID) + populate(objectMap, "status", c.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateDataFlowDebugSessionResponse. +func (c *CreateDataFlowDebugSessionResponse) 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 "sessionId": + err = unpopulate(val, "SessionID", &c.SessionID) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &c.Status) + 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 CreateLinkedIntegrationRuntimeRequest. +func (c CreateLinkedIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataFactoryLocation", c.DataFactoryLocation) + populate(objectMap, "dataFactoryName", c.DataFactoryName) + populate(objectMap, "name", c.Name) + populate(objectMap, "subscriptionId", c.SubscriptionID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateLinkedIntegrationRuntimeRequest. +func (c *CreateLinkedIntegrationRuntimeRequest) 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 "dataFactoryLocation": + err = unpopulate(val, "DataFactoryLocation", &c.DataFactoryLocation) + delete(rawMsg, key) + case "dataFactoryName": + err = unpopulate(val, "DataFactoryName", &c.DataFactoryName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "subscriptionId": + err = unpopulate(val, "SubscriptionID", &c.SubscriptionID) + 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 CreateRunResponse. +func (c CreateRunResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "runId", c.RunID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateRunResponse. +func (c *CreateRunResponse) 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 "runId": + err = unpopulate(val, "RunID", &c.RunID) + 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 Credential. func (c Credential) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -11732,38 +13484,8 @@ func (c CustomActivityReferenceObject) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// MarshalJSON implements the json.Marshaller interface for type CustomActivityTypeProperties. -func (c CustomActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoUserSpecification", &c.AutoUserSpecification) - populate(objectMap, "command", &c.Command) - populate(objectMap, "extendedProperties", c.ExtendedProperties) - populate(objectMap, "folderPath", &c.FolderPath) - populate(objectMap, "referenceObjects", c.ReferenceObjects) - populate(objectMap, "resourceLinkedService", c.ResourceLinkedService) - populate(objectMap, "retentionTimeInDays", &c.RetentionTimeInDays) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type CustomDataSourceLinkedService. -func (c CustomDataSourceLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", c.Annotations) - populate(objectMap, "connectVia", c.ConnectVia) - populate(objectMap, "description", c.Description) - populate(objectMap, "parameters", c.Parameters) - objectMap["type"] = "CustomDataSource" - populate(objectMap, "typeProperties", &c.TypeProperties) - if c.AdditionalProperties != nil { - for key, val := range c.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CustomDataSourceLinkedService. -func (c *CustomDataSourceLinkedService) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomActivityReferenceObject. +func (c *CustomActivityReferenceObject) 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) @@ -11771,33 +13493,11 @@ func (c *CustomDataSourceLinkedService) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "annotations": - err = unpopulate(val, "Annotations", &c.Annotations) - delete(rawMsg, key) - case "connectVia": - err = unpopulate(val, "ConnectVia", &c.ConnectVia) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &c.Description) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &c.Parameters) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &c.TypeProperties) + case "datasets": + err = unpopulate(val, "Datasets", &c.Datasets) delete(rawMsg, key) - default: - if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - c.AdditionalProperties[key] = aux - } + case "linkedServices": + err = unpopulate(val, "LinkedServices", &c.LinkedServices) delete(rawMsg, key) } if err != nil { @@ -11807,28 +13507,21 @@ func (c *CustomDataSourceLinkedService) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CustomDataset. -func (c CustomDataset) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type CustomActivityTypeProperties. +func (c CustomActivityTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", c.Annotations) - populate(objectMap, "description", c.Description) - populate(objectMap, "folder", c.Folder) - populate(objectMap, "linkedServiceName", c.LinkedServiceName) - populate(objectMap, "parameters", c.Parameters) - populate(objectMap, "schema", &c.Schema) - populate(objectMap, "structure", &c.Structure) - objectMap["type"] = "CustomDataset" - populate(objectMap, "typeProperties", &c.TypeProperties) - if c.AdditionalProperties != nil { - for key, val := range c.AdditionalProperties { - objectMap[key] = val - } - } + populate(objectMap, "autoUserSpecification", &c.AutoUserSpecification) + populate(objectMap, "command", &c.Command) + populate(objectMap, "extendedProperties", c.ExtendedProperties) + populate(objectMap, "folderPath", &c.FolderPath) + populate(objectMap, "referenceObjects", c.ReferenceObjects) + populate(objectMap, "resourceLinkedService", c.ResourceLinkedService) + populate(objectMap, "retentionTimeInDays", &c.RetentionTimeInDays) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CustomDataset. -func (c *CustomDataset) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomActivityTypeProperties. +func (c *CustomActivityTypeProperties) 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) @@ -11836,42 +13529,26 @@ func (c *CustomDataset) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "annotations": - err = unpopulate(val, "Annotations", &c.Annotations) + case "autoUserSpecification": + err = unpopulate(val, "AutoUserSpecification", &c.AutoUserSpecification) delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &c.Description) + case "command": + err = unpopulate(val, "Command", &c.Command) delete(rawMsg, key) - case "folder": - err = unpopulate(val, "Folder", &c.Folder) - delete(rawMsg, key) - case "linkedServiceName": - err = unpopulate(val, "LinkedServiceName", &c.LinkedServiceName) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &c.Parameters) + case "extendedProperties": + err = unpopulate(val, "ExtendedProperties", &c.ExtendedProperties) delete(rawMsg, key) - case "schema": - err = unpopulate(val, "Schema", &c.Schema) + case "folderPath": + err = unpopulate(val, "FolderPath", &c.FolderPath) delete(rawMsg, key) - case "structure": - err = unpopulate(val, "Structure", &c.Structure) + case "referenceObjects": + err = unpopulate(val, "ReferenceObjects", &c.ReferenceObjects) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) + case "resourceLinkedService": + err = unpopulate(val, "ResourceLinkedService", &c.ResourceLinkedService) delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &c.TypeProperties) - delete(rawMsg, key) - default: - if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - c.AdditionalProperties[key] = aux - } + case "retentionTimeInDays": + err = unpopulate(val, "RetentionTimeInDays", &c.RetentionTimeInDays) delete(rawMsg, key) } if err != nil { @@ -11881,15 +13558,15 @@ func (c *CustomDataset) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CustomEventsTrigger. -func (c CustomEventsTrigger) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type CustomDataSourceLinkedService. +func (c CustomDataSourceLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "annotations", c.Annotations) + populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) - populate(objectMap, "pipelines", c.Pipelines) - populate(objectMap, "runtimeState", c.RuntimeState) - objectMap["type"] = "CustomEventsTrigger" - populate(objectMap, "typeProperties", c.TypeProperties) + populate(objectMap, "parameters", c.Parameters) + objectMap["type"] = "CustomDataSource" + populate(objectMap, "typeProperties", &c.TypeProperties) if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { objectMap[key] = val @@ -11898,8 +13575,8 @@ func (c CustomEventsTrigger) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CustomEventsTrigger. -func (c *CustomEventsTrigger) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomDataSourceLinkedService. +func (c *CustomDataSourceLinkedService) 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) @@ -11910,14 +13587,150 @@ func (c *CustomEventsTrigger) UnmarshalJSON(data []byte) error { case "annotations": err = unpopulate(val, "Annotations", &c.Annotations) delete(rawMsg, key) + case "connectVia": + err = unpopulate(val, "ConnectVia", &c.ConnectVia) + delete(rawMsg, key) case "description": err = unpopulate(val, "Description", &c.Description) delete(rawMsg, key) - case "pipelines": - err = unpopulate(val, "Pipelines", &c.Pipelines) - delete(rawMsg, key) - case "runtimeState": - err = unpopulate(val, "RuntimeState", &c.RuntimeState) + case "parameters": + err = unpopulate(val, "Parameters", &c.Parameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &c.TypeProperties) + delete(rawMsg, key) + default: + if c.AdditionalProperties == nil { + c.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + c.AdditionalProperties[key] = aux + } + 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 CustomDataset. +func (c CustomDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "annotations", c.Annotations) + populate(objectMap, "description", c.Description) + populate(objectMap, "folder", c.Folder) + populate(objectMap, "linkedServiceName", c.LinkedServiceName) + populate(objectMap, "parameters", c.Parameters) + populate(objectMap, "schema", &c.Schema) + populate(objectMap, "structure", &c.Structure) + objectMap["type"] = "CustomDataset" + populate(objectMap, "typeProperties", &c.TypeProperties) + if c.AdditionalProperties != nil { + for key, val := range c.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomDataset. +func (c *CustomDataset) 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 "annotations": + err = unpopulate(val, "Annotations", &c.Annotations) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &c.Description) + delete(rawMsg, key) + case "folder": + err = unpopulate(val, "Folder", &c.Folder) + delete(rawMsg, key) + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &c.LinkedServiceName) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &c.Parameters) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &c.Schema) + delete(rawMsg, key) + case "structure": + err = unpopulate(val, "Structure", &c.Structure) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &c.TypeProperties) + delete(rawMsg, key) + default: + if c.AdditionalProperties == nil { + c.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + c.AdditionalProperties[key] = aux + } + 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 CustomEventsTrigger. +func (c CustomEventsTrigger) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "annotations", c.Annotations) + populate(objectMap, "description", c.Description) + populate(objectMap, "pipelines", c.Pipelines) + populate(objectMap, "runtimeState", c.RuntimeState) + objectMap["type"] = "CustomEventsTrigger" + populate(objectMap, "typeProperties", c.TypeProperties) + if c.AdditionalProperties != nil { + for key, val := range c.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomEventsTrigger. +func (c *CustomEventsTrigger) 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 "annotations": + err = unpopulate(val, "Annotations", &c.Annotations) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &c.Description) + delete(rawMsg, key) + case "pipelines": + err = unpopulate(val, "Pipelines", &c.Pipelines) + delete(rawMsg, key) + case "runtimeState": + err = unpopulate(val, "RuntimeState", &c.RuntimeState) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) @@ -11953,6 +13766,93 @@ func (c CustomEventsTriggerTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomEventsTriggerTypeProperties. +func (c *CustomEventsTriggerTypeProperties) 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 "events": + err = unpopulate(val, "Events", &c.Events) + delete(rawMsg, key) + case "scope": + err = unpopulate(val, "Scope", &c.Scope) + delete(rawMsg, key) + case "subjectBeginsWith": + err = unpopulate(val, "SubjectBeginsWith", &c.SubjectBeginsWith) + delete(rawMsg, key) + case "subjectEndsWith": + err = unpopulate(val, "SubjectEndsWith", &c.SubjectEndsWith) + 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 CustomSetupBase. +func (c CustomSetupBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["type"] = c.Type + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomSetupBase. +func (c *CustomSetupBase) 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 "type": + err = unpopulate(val, "Type", &c.Type) + 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 DWCopyCommandDefaultValue. +func (d DWCopyCommandDefaultValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "columnName", &d.ColumnName) + populate(objectMap, "defaultValue", &d.DefaultValue) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DWCopyCommandDefaultValue. +func (d *DWCopyCommandDefaultValue) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "columnName": + err = unpopulate(val, "ColumnName", &d.ColumnName) + delete(rawMsg, key) + case "defaultValue": + err = unpopulate(val, "DefaultValue", &d.DefaultValue) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DWCopyCommandSettings. func (d DWCopyCommandSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -11961,6 +13861,29 @@ func (d DWCopyCommandSettings) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type DWCopyCommandSettings. +func (d *DWCopyCommandSettings) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "additionalOptions": + err = unpopulate(val, "AdditionalOptions", &d.AdditionalOptions) + delete(rawMsg, key) + case "defaultValues": + err = unpopulate(val, "DefaultValues", &d.DefaultValues) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DataFlow. func (d DataFlow) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -11971,6 +13894,35 @@ func (d DataFlow) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type DataFlow. +func (d *DataFlow) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "annotations": + err = unpopulate(val, "Annotations", &d.Annotations) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &d.Description) + delete(rawMsg, key) + case "folder": + err = unpopulate(val, "Folder", &d.Folder) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandPayload. func (d DataFlowDebugCommandPayload) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -11981,6 +13933,101 @@ func (d DataFlowDebugCommandPayload) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugCommandPayload. +func (d *DataFlowDebugCommandPayload) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "columns": + err = unpopulate(val, "Columns", &d.Columns) + delete(rawMsg, key) + case "expression": + err = unpopulate(val, "Expression", &d.Expression) + delete(rawMsg, key) + case "rowLimits": + err = unpopulate(val, "RowLimits", &d.RowLimits) + delete(rawMsg, key) + case "streamName": + err = unpopulate(val, "StreamName", &d.StreamName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandRequest. +func (d DataFlowDebugCommandRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "command", d.Command) + populate(objectMap, "commandPayload", d.CommandPayload) + populate(objectMap, "sessionId", d.SessionID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugCommandRequest. +func (d *DataFlowDebugCommandRequest) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "command": + err = unpopulate(val, "Command", &d.Command) + delete(rawMsg, key) + case "commandPayload": + err = unpopulate(val, "CommandPayload", &d.CommandPayload) + delete(rawMsg, key) + case "sessionId": + err = unpopulate(val, "SessionID", &d.SessionID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandResponse. +func (d DataFlowDebugCommandResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "data", d.Data) + populate(objectMap, "status", d.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugCommandResponse. +func (d *DataFlowDebugCommandResponse) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "data": + err = unpopulate(val, "Data", &d.Data) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &d.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugPackage. func (d DataFlowDebugPackage) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12056,6 +14103,32 @@ func (d DataFlowDebugPackageDebugSettings) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugPackageDebugSettings. +func (d *DataFlowDebugPackageDebugSettings) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "datasetParameters": + err = unpopulate(val, "DatasetParameters", &d.DatasetParameters) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &d.Parameters) + delete(rawMsg, key) + case "sourceSettings": + err = unpopulate(val, "SourceSettings", &d.SourceSettings) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugResource. func (d DataFlowDebugResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12087,6 +14160,26 @@ func (d *DataFlowDebugResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DataFlowDebugSessionInfo. +func (d DataFlowDebugSessionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "computeType", d.ComputeType) + populate(objectMap, "coreCount", d.CoreCount) + populate(objectMap, "dataFlowName", d.DataFlowName) + populate(objectMap, "integrationRuntimeName", d.IntegrationRuntimeName) + populate(objectMap, "lastActivityTime", d.LastActivityTime) + populate(objectMap, "nodeCount", d.NodeCount) + populate(objectMap, "sessionId", d.SessionID) + populate(objectMap, "startTime", d.StartTime) + populate(objectMap, "timeToLiveInMinutes", d.TimeToLiveInMinutes) + if d.AdditionalProperties != nil { + for key, val := range d.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowDebugSessionInfo. func (d *DataFlowDebugSessionInfo) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -12141,6 +14234,64 @@ func (d *DataFlowDebugSessionInfo) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DataFlowFolder. +func (d DataFlowFolder) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", d.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowFolder. +func (d *DataFlowFolder) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataFlowListResponse. +func (d DataFlowListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowListResponse. +func (d *DataFlowListResponse) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &d.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &d.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DataFlowReference. func (d DataFlowReference) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12238,6 +14389,104 @@ func (d *DataFlowResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DataFlowSink. +func (d DataFlowSink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataset", d.Dataset) + populate(objectMap, "description", d.Description) + populate(objectMap, "flowlet", d.Flowlet) + populate(objectMap, "linkedService", d.LinkedService) + populate(objectMap, "name", d.Name) + populate(objectMap, "rejectedDataLinkedService", d.RejectedDataLinkedService) + populate(objectMap, "schemaLinkedService", d.SchemaLinkedService) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowSink. +func (d *DataFlowSink) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "dataset": + err = unpopulate(val, "Dataset", &d.Dataset) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &d.Description) + delete(rawMsg, key) + case "flowlet": + err = unpopulate(val, "Flowlet", &d.Flowlet) + delete(rawMsg, key) + case "linkedService": + err = unpopulate(val, "LinkedService", &d.LinkedService) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "rejectedDataLinkedService": + err = unpopulate(val, "RejectedDataLinkedService", &d.RejectedDataLinkedService) + delete(rawMsg, key) + case "schemaLinkedService": + err = unpopulate(val, "SchemaLinkedService", &d.SchemaLinkedService) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataFlowSource. +func (d DataFlowSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataset", d.Dataset) + populate(objectMap, "description", d.Description) + populate(objectMap, "flowlet", d.Flowlet) + populate(objectMap, "linkedService", d.LinkedService) + populate(objectMap, "name", d.Name) + populate(objectMap, "schemaLinkedService", d.SchemaLinkedService) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowSource. +func (d *DataFlowSource) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "dataset": + err = unpopulate(val, "Dataset", &d.Dataset) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &d.Description) + delete(rawMsg, key) + case "flowlet": + err = unpopulate(val, "Flowlet", &d.Flowlet) + delete(rawMsg, key) + case "linkedService": + err = unpopulate(val, "LinkedService", &d.LinkedService) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "schemaLinkedService": + err = unpopulate(val, "SchemaLinkedService", &d.SchemaLinkedService) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DataFlowSourceSetting. func (d DataFlowSourceSetting) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12284,6 +14533,37 @@ func (d *DataFlowSourceSetting) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DataFlowStagingInfo. +func (d DataFlowStagingInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "folderPath", &d.FolderPath) + populate(objectMap, "linkedService", d.LinkedService) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataFlowStagingInfo. +func (d *DataFlowStagingInfo) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "folderPath": + err = unpopulate(val, "FolderPath", &d.FolderPath) + delete(rawMsg, key) + case "linkedService": + err = unpopulate(val, "LinkedService", &d.LinkedService) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DataLakeAnalyticsUSQLActivity. func (d DataLakeAnalyticsUSQLActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12367,6 +14647,44 @@ func (d DataLakeAnalyticsUSQLActivityTypeProperties) MarshalJSON() ([]byte, erro return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type DataLakeAnalyticsUSQLActivityTypeProperties. +func (d *DataLakeAnalyticsUSQLActivityTypeProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "compilationMode": + err = unpopulate(val, "CompilationMode", &d.CompilationMode) + delete(rawMsg, key) + case "degreeOfParallelism": + err = unpopulate(val, "DegreeOfParallelism", &d.DegreeOfParallelism) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &d.Parameters) + delete(rawMsg, key) + case "priority": + err = unpopulate(val, "Priority", &d.Priority) + delete(rawMsg, key) + case "runtimeVersion": + err = unpopulate(val, "RuntimeVersion", &d.RuntimeVersion) + delete(rawMsg, key) + case "scriptLinkedService": + err = unpopulate(val, "ScriptLinkedService", &d.ScriptLinkedService) + delete(rawMsg, key) + case "scriptPath": + err = unpopulate(val, "ScriptPath", &d.ScriptPath) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DatabricksNotebookActivity. func (d DatabricksNotebookActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12446,12 +14764,38 @@ func (d DatabricksNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) return json.Marshal(objectMap) } -// MarshalJSON implements the json.Marshaller interface for type DatabricksSparkJarActivity. -func (d DatabricksSparkJarActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dependsOn", d.DependsOn) - populate(objectMap, "description", d.Description) - populate(objectMap, "linkedServiceName", d.LinkedServiceName) +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabricksNotebookActivityTypeProperties. +func (d *DatabricksNotebookActivityTypeProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "baseParameters": + err = unpopulate(val, "BaseParameters", &d.BaseParameters) + delete(rawMsg, key) + case "libraries": + err = unpopulate(val, "Libraries", &d.Libraries) + delete(rawMsg, key) + case "notebookPath": + err = unpopulate(val, "NotebookPath", &d.NotebookPath) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabricksSparkJarActivity. +func (d DatabricksSparkJarActivity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dependsOn", d.DependsOn) + populate(objectMap, "description", d.Description) + populate(objectMap, "linkedServiceName", d.LinkedServiceName) populate(objectMap, "name", d.Name) populate(objectMap, "policy", d.Policy) objectMap["type"] = "DatabricksSparkJar" @@ -12525,6 +14869,32 @@ func (d DatabricksSparkJarActivityTypeProperties) MarshalJSON() ([]byte, error) return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabricksSparkJarActivityTypeProperties. +func (d *DatabricksSparkJarActivityTypeProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "libraries": + err = unpopulate(val, "Libraries", &d.Libraries) + delete(rawMsg, key) + case "mainClassName": + err = unpopulate(val, "MainClassName", &d.MainClassName) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &d.Parameters) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DatabricksSparkPythonActivity. func (d DatabricksSparkPythonActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12604,6 +14974,32 @@ func (d DatabricksSparkPythonActivityTypeProperties) MarshalJSON() ([]byte, erro return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabricksSparkPythonActivityTypeProperties. +func (d *DatabricksSparkPythonActivityTypeProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "libraries": + err = unpopulate(val, "Libraries", &d.Libraries) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &d.Parameters) + delete(rawMsg, key) + case "pythonFile": + err = unpopulate(val, "PythonFile", &d.PythonFile) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Dataset. func (d Dataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12720,6 +15116,37 @@ func (d *DatasetCompression) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DatasetDataElement. +func (d DatasetDataElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", &d.Name) + populate(objectMap, "type", &d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatasetDataElement. +func (d *DatasetDataElement) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DatasetDebugResource. func (d DatasetDebugResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12751,6 +15178,64 @@ func (d *DatasetDebugResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DatasetFolder. +func (d DatasetFolder) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", d.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatasetFolder. +func (d *DatasetFolder) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatasetListResponse. +func (d DatasetListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatasetListResponse. +func (d *DatasetListResponse) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &d.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &d.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DatasetLocation. func (d DatasetLocation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12810,6 +15295,32 @@ func (d DatasetReference) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type DatasetReference. +func (d *DatasetReference) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "parameters": + err = unpopulate(val, "Parameters", &d.Parameters) + delete(rawMsg, key) + case "referenceName": + err = unpopulate(val, "ReferenceName", &d.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DatasetResource. func (d DatasetResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12853,6 +15364,19 @@ func (d *DatasetResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DatasetSchemaDataElement. +func (d DatasetSchemaDataElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", &d.Name) + populate(objectMap, "type", &d.Type) + if d.AdditionalProperties != nil { + for key, val := range d.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type DatasetSchemaDataElement. func (d *DatasetSchemaDataElement) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -13294,6 +15818,41 @@ func (d *Db2TableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type Db2TableDatasetTypeProperties. +func (d Db2TableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &d.Schema) + populate(objectMap, "table", &d.Table) + populate(objectMap, "tableName", &d.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Db2TableDatasetTypeProperties. +func (d *Db2TableDatasetTypeProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "schema": + err = unpopulate(val, "Schema", &d.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &d.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &d.TableName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DeleteActivity. func (d DeleteActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -13411,6 +15970,33 @@ func (d *DeleteActivityTypeProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DeleteDataFlowDebugSessionRequest. +func (d DeleteDataFlowDebugSessionRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "sessionId", d.SessionID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DeleteDataFlowDebugSessionRequest. +func (d *DeleteDataFlowDebugSessionRequest) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "sessionId": + err = unpopulate(val, "SessionID", &d.SessionID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DelimitedTextDataset. func (d DelimitedTextDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -13800,6 +16386,68 @@ func (d *DelimitedTextWriteSettings) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DependencyReference. +func (d DependencyReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["type"] = d.Type + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DependencyReference. +func (d *DependencyReference) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DistcpSettings. +func (d DistcpSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "distcpOptions", &d.DistcpOptions) + populate(objectMap, "resourceManagerEndpoint", &d.ResourceManagerEndpoint) + populate(objectMap, "tempScriptPath", &d.TempScriptPath) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DistcpSettings. +func (d *DistcpSettings) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "distcpOptions": + err = unpopulate(val, "DistcpOptions", &d.DistcpOptions) + delete(rawMsg, key) + case "resourceManagerEndpoint": + err = unpopulate(val, "ResourceManagerEndpoint", &d.ResourceManagerEndpoint) + delete(rawMsg, key) + case "tempScriptPath": + err = unpopulate(val, "TempScriptPath", &d.TempScriptPath) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionDataset. func (d DocumentDbCollectionDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -13874,6 +16522,33 @@ func (d *DocumentDbCollectionDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionDatasetTypeProperties. +func (d DocumentDbCollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "collectionName", &d.CollectionName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DocumentDbCollectionDatasetTypeProperties. +func (d *DocumentDbCollectionDatasetTypeProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "collectionName": + err = unpopulate(val, "CollectionName", &d.CollectionName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionSink. func (d DocumentDbCollectionSink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -14022,6 +16697,41 @@ func (d *DocumentDbCollectionSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DrillDatasetTypeProperties. +func (d DrillDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &d.Schema) + populate(objectMap, "table", &d.Table) + populate(objectMap, "tableName", &d.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DrillDatasetTypeProperties. +func (d *DrillDatasetTypeProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "schema": + err = unpopulate(val, "Schema", &d.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &d.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &d.TableName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DrillLinkedService. func (d DrillLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -14084,6 +16794,41 @@ func (d *DrillLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DrillLinkedServiceTypeProperties. +func (d DrillLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &d.ConnectionString) + populate(objectMap, "encryptedCredential", &d.EncryptedCredential) + populate(objectMap, "pwd", d.Pwd) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DrillLinkedServiceTypeProperties. +func (d *DrillLinkedServiceTypeProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "connectionString": + err = unpopulate(val, "ConnectionString", &d.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &d.EncryptedCredential) + delete(rawMsg, key) + case "pwd": + err = unpopulate(val, "Pwd", &d.Pwd) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DrillSource. func (d DrillSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -14411,6 +17156,33 @@ func (d *DynamicsAXResourceDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DynamicsAXResourceDatasetTypeProperties. +func (d DynamicsAXResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "path", &d.Path) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsAXResourceDatasetTypeProperties. +func (d *DynamicsAXResourceDatasetTypeProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "path": + err = unpopulate(val, "Path", &d.Path) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DynamicsAXSource. func (d DynamicsAXSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -14559,6 +17331,33 @@ func (d *DynamicsCrmEntityDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DynamicsCrmEntityDatasetTypeProperties. +func (d DynamicsCrmEntityDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "entityName", &d.EntityName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsCrmEntityDatasetTypeProperties. +func (d *DynamicsCrmEntityDatasetTypeProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "entityName": + err = unpopulate(val, "EntityName", &d.EntityName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmLinkedService. func (d DynamicsCrmLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -14910,6 +17709,33 @@ func (d *DynamicsEntityDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DynamicsEntityDatasetTypeProperties. +func (d DynamicsEntityDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "entityName", &d.EntityName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DynamicsEntityDatasetTypeProperties. +func (d *DynamicsEntityDatasetTypeProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "entityName": + err = unpopulate(val, "EntityName", &d.EntityName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DynamicsLinkedService. func (d DynamicsLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -15448,6 +18274,76 @@ func (e *EloquaSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type EncryptionConfiguration. +func (e EncryptionConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "identity", e.Identity) + populate(objectMap, "keyName", e.KeyName) + populate(objectMap, "keyVersion", e.KeyVersion) + populate(objectMap, "vaultBaseUrl", e.VaultBaseURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionConfiguration. +func (e *EncryptionConfiguration) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "identity": + err = unpopulate(val, "Identity", &e.Identity) + delete(rawMsg, key) + case "keyName": + err = unpopulate(val, "KeyName", &e.KeyName) + delete(rawMsg, key) + case "keyVersion": + err = unpopulate(val, "KeyVersion", &e.KeyVersion) + delete(rawMsg, key) + case "vaultBaseUrl": + err = unpopulate(val, "VaultBaseURL", &e.VaultBaseURL) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type EntityReference. +func (e EntityReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "referenceName", e.ReferenceName) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EntityReference. +func (e *EntityReference) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "referenceName": + err = unpopulate(val, "ReferenceName", &e.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type EnvironmentVariableSetup. func (e EnvironmentVariableSetup) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -15479,6 +18375,37 @@ func (e *EnvironmentVariableSetup) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type EnvironmentVariableSetupTypeProperties. +func (e EnvironmentVariableSetupTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "variableName", e.VariableName) + populate(objectMap, "variableValue", e.VariableValue) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentVariableSetupTypeProperties. +func (e *EnvironmentVariableSetupTypeProperties) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "variableName": + err = unpopulate(val, "VariableName", &e.VariableName) + delete(rawMsg, key) + case "variableValue": + err = unpopulate(val, "VariableValue", &e.VariableValue) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ExcelDataset. func (e ExcelDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -15740,6 +18667,92 @@ func (e *ExecuteDataFlowActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ExecuteDataFlowActivityTypeProperties. +func (e ExecuteDataFlowActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "compute", e.Compute) + populate(objectMap, "continueOnError", &e.ContinueOnError) + populate(objectMap, "dataFlow", e.DataFlow) + populate(objectMap, "integrationRuntime", e.IntegrationRuntime) + populate(objectMap, "runConcurrently", &e.RunConcurrently) + populate(objectMap, "sourceStagingConcurrency", &e.SourceStagingConcurrency) + populate(objectMap, "staging", e.Staging) + populate(objectMap, "traceLevel", &e.TraceLevel) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExecuteDataFlowActivityTypeProperties. +func (e *ExecuteDataFlowActivityTypeProperties) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "compute": + err = unpopulate(val, "Compute", &e.Compute) + delete(rawMsg, key) + case "continueOnError": + err = unpopulate(val, "ContinueOnError", &e.ContinueOnError) + delete(rawMsg, key) + case "dataFlow": + err = unpopulate(val, "DataFlow", &e.DataFlow) + delete(rawMsg, key) + case "integrationRuntime": + err = unpopulate(val, "IntegrationRuntime", &e.IntegrationRuntime) + delete(rawMsg, key) + case "runConcurrently": + err = unpopulate(val, "RunConcurrently", &e.RunConcurrently) + delete(rawMsg, key) + case "sourceStagingConcurrency": + err = unpopulate(val, "SourceStagingConcurrency", &e.SourceStagingConcurrency) + delete(rawMsg, key) + case "staging": + err = unpopulate(val, "Staging", &e.Staging) + delete(rawMsg, key) + case "traceLevel": + err = unpopulate(val, "TraceLevel", &e.TraceLevel) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ExecuteDataFlowActivityTypePropertiesCompute. +func (e ExecuteDataFlowActivityTypePropertiesCompute) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "computeType", &e.ComputeType) + populate(objectMap, "coreCount", &e.CoreCount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExecuteDataFlowActivityTypePropertiesCompute. +func (e *ExecuteDataFlowActivityTypePropertiesCompute) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "computeType": + err = unpopulate(val, "ComputeType", &e.ComputeType) + delete(rawMsg, key) + case "coreCount": + err = unpopulate(val, "CoreCount", &e.CoreCount) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ExecutePipelineActivity. func (e ExecutePipelineActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -15857,6 +18870,32 @@ func (e ExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type ExecutePipelineActivityTypeProperties. +func (e *ExecutePipelineActivityTypeProperties) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "parameters": + err = unpopulate(val, "Parameters", &e.Parameters) + delete(rawMsg, key) + case "pipeline": + err = unpopulate(val, "Pipeline", &e.Pipeline) + delete(rawMsg, key) + case "waitOnCompletion": + err = unpopulate(val, "WaitOnCompletion", &e.WaitOnCompletion) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ExecutePowerQueryActivityTypeProperties. func (e ExecutePowerQueryActivityTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -15873,6 +18912,53 @@ func (e ExecutePowerQueryActivityTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type ExecutePowerQueryActivityTypeProperties. +func (e *ExecutePowerQueryActivityTypeProperties) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "compute": + err = unpopulate(val, "Compute", &e.Compute) + delete(rawMsg, key) + case "continueOnError": + err = unpopulate(val, "ContinueOnError", &e.ContinueOnError) + delete(rawMsg, key) + case "dataFlow": + err = unpopulate(val, "DataFlow", &e.DataFlow) + delete(rawMsg, key) + case "integrationRuntime": + err = unpopulate(val, "IntegrationRuntime", &e.IntegrationRuntime) + delete(rawMsg, key) + case "queries": + err = unpopulate(val, "Queries", &e.Queries) + delete(rawMsg, key) + case "runConcurrently": + err = unpopulate(val, "RunConcurrently", &e.RunConcurrently) + delete(rawMsg, key) + case "sinks": + err = unpopulate(val, "Sinks", &e.Sinks) + delete(rawMsg, key) + case "sourceStagingConcurrency": + err = unpopulate(val, "SourceStagingConcurrency", &e.SourceStagingConcurrency) + delete(rawMsg, key) + case "staging": + err = unpopulate(val, "Staging", &e.Staging) + delete(rawMsg, key) + case "traceLevel": + err = unpopulate(val, "TraceLevel", &e.TraceLevel) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ExecuteSSISPackageActivity. func (e ExecuteSSISPackageActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -15961,6 +19047,59 @@ func (e ExecuteSSISPackageActivityTypeProperties) MarshalJSON() ([]byte, error) return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type ExecuteSSISPackageActivityTypeProperties. +func (e *ExecuteSSISPackageActivityTypeProperties) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "connectVia": + err = unpopulate(val, "ConnectVia", &e.ConnectVia) + delete(rawMsg, key) + case "environmentPath": + err = unpopulate(val, "EnvironmentPath", &e.EnvironmentPath) + delete(rawMsg, key) + case "executionCredential": + err = unpopulate(val, "ExecutionCredential", &e.ExecutionCredential) + delete(rawMsg, key) + case "logLocation": + err = unpopulate(val, "LogLocation", &e.LogLocation) + delete(rawMsg, key) + case "loggingLevel": + err = unpopulate(val, "LoggingLevel", &e.LoggingLevel) + delete(rawMsg, key) + case "packageConnectionManagers": + err = unpopulate(val, "PackageConnectionManagers", &e.PackageConnectionManagers) + delete(rawMsg, key) + case "packageLocation": + err = unpopulate(val, "PackageLocation", &e.PackageLocation) + delete(rawMsg, key) + case "packageParameters": + err = unpopulate(val, "PackageParameters", &e.PackageParameters) + delete(rawMsg, key) + case "projectConnectionManagers": + err = unpopulate(val, "ProjectConnectionManagers", &e.ProjectConnectionManagers) + delete(rawMsg, key) + case "projectParameters": + err = unpopulate(val, "ProjectParameters", &e.ProjectParameters) + delete(rawMsg, key) + case "propertyOverrides": + err = unpopulate(val, "PropertyOverrides", &e.PropertyOverrides) + delete(rawMsg, key) + case "runtime": + err = unpopulate(val, "Runtime", &e.Runtime) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ExecuteWranglingDataflowActivity. func (e ExecuteWranglingDataflowActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -16142,6 +19281,146 @@ func (e ExposureControlBatchRequest) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type ExposureControlBatchRequest. +func (e *ExposureControlBatchRequest) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "exposureControlRequests": + err = unpopulate(val, "ExposureControlRequests", &e.ExposureControlRequests) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ExposureControlBatchResponse. +func (e ExposureControlBatchResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "exposureControlResponses", e.ExposureControlResponses) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExposureControlBatchResponse. +func (e *ExposureControlBatchResponse) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "exposureControlResponses": + err = unpopulate(val, "ExposureControlResponses", &e.ExposureControlResponses) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ExposureControlRequest. +func (e ExposureControlRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "featureName", e.FeatureName) + populate(objectMap, "featureType", e.FeatureType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExposureControlRequest. +func (e *ExposureControlRequest) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "featureName": + err = unpopulate(val, "FeatureName", &e.FeatureName) + delete(rawMsg, key) + case "featureType": + err = unpopulate(val, "FeatureType", &e.FeatureType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ExposureControlResponse. +func (e ExposureControlResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "featureName", e.FeatureName) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExposureControlResponse. +func (e *ExposureControlResponse) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "featureName": + err = unpopulate(val, "FeatureName", &e.FeatureName) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &e.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Expression. +func (e Expression) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "type", e.Type) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Expression. +func (e *Expression) 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", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &e.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Factory. func (f Factory) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -16281,6 +19560,66 @@ func (f FactoryIdentity) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type FactoryIdentity. +func (f *FactoryIdentity) 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", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "principalId": + err = unpopulate(val, "PrincipalID", &f.PrincipalID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &f.TenantID) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &f.Type) + delete(rawMsg, key) + case "userAssignedIdentities": + err = unpopulate(val, "UserAssignedIdentities", &f.UserAssignedIdentities) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FactoryListResponse. +func (f FactoryListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", f.NextLink) + populate(objectMap, "value", f.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FactoryListResponse. +func (f *FactoryListResponse) 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", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &f.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &f.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type FactoryProperties. func (f FactoryProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -16336,6 +19675,53 @@ func (f *FactoryProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type FactoryRepoConfiguration. +func (f FactoryRepoConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "accountName", f.AccountName) + populate(objectMap, "collaborationBranch", f.CollaborationBranch) + populate(objectMap, "lastCommitId", f.LastCommitID) + populate(objectMap, "repositoryName", f.RepositoryName) + populate(objectMap, "rootFolder", f.RootFolder) + objectMap["type"] = f.Type + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FactoryRepoConfiguration. +func (f *FactoryRepoConfiguration) 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", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "accountName": + err = unpopulate(val, "AccountName", &f.AccountName) + delete(rawMsg, key) + case "collaborationBranch": + err = unpopulate(val, "CollaborationBranch", &f.CollaborationBranch) + delete(rawMsg, key) + case "lastCommitId": + err = unpopulate(val, "LastCommitID", &f.LastCommitID) + delete(rawMsg, key) + case "repositoryName": + err = unpopulate(val, "RepositoryName", &f.RepositoryName) + delete(rawMsg, key) + case "rootFolder": + err = unpopulate(val, "RootFolder", &f.RootFolder) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &f.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type FactoryRepoUpdate. func (f FactoryRepoUpdate) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -16376,6 +19762,59 @@ func (f FactoryUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type FactoryUpdateParameters. +func (f *FactoryUpdateParameters) 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", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "identity": + err = unpopulate(val, "Identity", &f.Identity) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &f.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &f.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FactoryUpdateProperties. +func (f FactoryUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "publicNetworkAccess", f.PublicNetworkAccess) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FactoryUpdateProperties. +func (f *FactoryUpdateProperties) 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", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &f.PublicNetworkAccess) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type FactoryVSTSConfiguration. func (f FactoryVSTSConfiguration) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -16493,6 +19932,37 @@ func (f *FailActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type FailActivityTypeProperties. +func (f FailActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "errorCode", &f.ErrorCode) + populate(objectMap, "message", &f.Message) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FailActivityTypeProperties. +func (f *FailActivityTypeProperties) 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", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "errorCode": + err = unpopulate(val, "ErrorCode", &f.ErrorCode) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &f.Message) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type FileServerLinkedService. func (f FileServerLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -17111,6 +20581,37 @@ func (f *FilterActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type FilterActivityTypeProperties. +func (f FilterActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "condition", f.Condition) + populate(objectMap, "items", f.Items) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FilterActivityTypeProperties. +func (f *FilterActivityTypeProperties) 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", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "condition": + err = unpopulate(val, "Condition", &f.Condition) + delete(rawMsg, key) + case "items": + err = unpopulate(val, "Items", &f.Items) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Flowlet. func (f Flowlet) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -17165,6 +20666,38 @@ func (f FlowletTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type FlowletTypeProperties. +func (f *FlowletTypeProperties) 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", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "script": + err = unpopulate(val, "Script", &f.Script) + delete(rawMsg, key) + case "scriptLines": + err = unpopulate(val, "ScriptLines", &f.ScriptLines) + delete(rawMsg, key) + case "sinks": + err = unpopulate(val, "Sinks", &f.Sinks) + delete(rawMsg, key) + case "sources": + err = unpopulate(val, "Sources", &f.Sources) + delete(rawMsg, key) + case "transformations": + err = unpopulate(val, "Transformations", &f.Transformations) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ForEachActivity. func (f ForEachActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -17603,6 +21136,45 @@ func (f *FtpServerLocation) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type GenericDatasetTypeProperties. +func (g GenericDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "tableName", &g.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GenericDatasetTypeProperties. +func (g *GenericDatasetTypeProperties) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "tableName": + err = unpopulate(val, "TableName", &g.TableName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GetDataFactoryOperationStatusResponse. +func (g GetDataFactoryOperationStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "status", g.Status) + if g.AdditionalProperties != nil { + for key, val := range g.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type GetDataFactoryOperationStatusResponse. func (g *GetDataFactoryOperationStatusResponse) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -17742,6 +21314,161 @@ func (g *GetMetadataActivityTypeProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type GetSsisObjectMetadataRequest. +func (g GetSsisObjectMetadataRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "metadataPath", g.MetadataPath) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GetSsisObjectMetadataRequest. +func (g *GetSsisObjectMetadataRequest) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "metadataPath": + err = unpopulate(val, "MetadataPath", &g.MetadataPath) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GitHubAccessTokenRequest. +func (g GitHubAccessTokenRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "gitHubAccessCode", g.GitHubAccessCode) + populate(objectMap, "gitHubAccessTokenBaseUrl", g.GitHubAccessTokenBaseURL) + populate(objectMap, "gitHubClientId", g.GitHubClientID) + populate(objectMap, "gitHubClientSecret", g.GitHubClientSecret) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GitHubAccessTokenRequest. +func (g *GitHubAccessTokenRequest) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "gitHubAccessCode": + err = unpopulate(val, "GitHubAccessCode", &g.GitHubAccessCode) + delete(rawMsg, key) + case "gitHubAccessTokenBaseUrl": + err = unpopulate(val, "GitHubAccessTokenBaseURL", &g.GitHubAccessTokenBaseURL) + delete(rawMsg, key) + case "gitHubClientId": + err = unpopulate(val, "GitHubClientID", &g.GitHubClientID) + delete(rawMsg, key) + case "gitHubClientSecret": + err = unpopulate(val, "GitHubClientSecret", &g.GitHubClientSecret) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GitHubAccessTokenResponse. +func (g GitHubAccessTokenResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "gitHubAccessToken", g.GitHubAccessToken) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GitHubAccessTokenResponse. +func (g *GitHubAccessTokenResponse) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "gitHubAccessToken": + err = unpopulate(val, "GitHubAccessToken", &g.GitHubAccessToken) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GitHubClientSecret. +func (g GitHubClientSecret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "byoaSecretAkvUrl", g.ByoaSecretAkvURL) + populate(objectMap, "byoaSecretName", g.ByoaSecretName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GitHubClientSecret. +func (g *GitHubClientSecret) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "byoaSecretAkvUrl": + err = unpopulate(val, "ByoaSecretAkvURL", &g.ByoaSecretAkvURL) + delete(rawMsg, key) + case "byoaSecretName": + err = unpopulate(val, "ByoaSecretName", &g.ByoaSecretName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GlobalParameterListResponse. +func (g GlobalParameterListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", g.NextLink) + populate(objectMap, "value", g.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GlobalParameterListResponse. +func (g *GlobalParameterListResponse) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &g.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &g.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type GlobalParameterResource. func (g GlobalParameterResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -17753,6 +21480,69 @@ func (g GlobalParameterResource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type GlobalParameterResource. +func (g *GlobalParameterResource) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "etag": + err = unpopulate(val, "Etag", &g.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &g.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &g.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &g.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GlobalParameterSpecification. +func (g GlobalParameterSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "type", g.Type) + populate(objectMap, "value", &g.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GlobalParameterSpecification. +func (g *GlobalParameterSpecification) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "type": + err = unpopulate(val, "Type", &g.Type) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &g.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsLinkedService. func (g GoogleAdWordsLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -18030,6 +21820,41 @@ func (g *GoogleAdWordsSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryDatasetTypeProperties. +func (g GoogleBigQueryDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataset", &g.Dataset) + populate(objectMap, "table", &g.Table) + populate(objectMap, "tableName", &g.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GoogleBigQueryDatasetTypeProperties. +func (g *GoogleBigQueryDatasetTypeProperties) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "dataset": + err = unpopulate(val, "Dataset", &g.Dataset) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &g.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &g.TableName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryLinkedService. func (g GoogleBigQueryLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -18556,6 +22381,41 @@ func (g *GoogleCloudStorageReadSettings) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type GreenplumDatasetTypeProperties. +func (g GreenplumDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &g.Schema) + populate(objectMap, "table", &g.Table) + populate(objectMap, "tableName", &g.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GreenplumDatasetTypeProperties. +func (g *GreenplumDatasetTypeProperties) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "schema": + err = unpopulate(val, "Schema", &g.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &g.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &g.TableName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type GreenplumLinkedService. func (g GreenplumLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -18618,6 +22478,41 @@ func (g *GreenplumLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type GreenplumLinkedServiceTypeProperties. +func (g GreenplumLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &g.ConnectionString) + populate(objectMap, "encryptedCredential", &g.EncryptedCredential) + populate(objectMap, "pwd", g.Pwd) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GreenplumLinkedServiceTypeProperties. +func (g *GreenplumLinkedServiceTypeProperties) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "connectionString": + err = unpopulate(val, "ConnectionString", &g.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &g.EncryptedCredential) + delete(rawMsg, key) + case "pwd": + err = unpopulate(val, "Pwd", &g.Pwd) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type GreenplumSource. func (g GreenplumSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -19119,6 +23014,47 @@ func (h HDInsightHiveActivityTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightHiveActivityTypeProperties. +func (h *HDInsightHiveActivityTypeProperties) 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 "arguments": + err = unpopulate(val, "Arguments", &h.Arguments) + delete(rawMsg, key) + case "defines": + err = unpopulate(val, "Defines", &h.Defines) + delete(rawMsg, key) + case "getDebugInfo": + err = unpopulate(val, "GetDebugInfo", &h.GetDebugInfo) + delete(rawMsg, key) + case "queryTimeout": + err = unpopulate(val, "QueryTimeout", &h.QueryTimeout) + delete(rawMsg, key) + case "scriptLinkedService": + err = unpopulate(val, "ScriptLinkedService", &h.ScriptLinkedService) + delete(rawMsg, key) + case "scriptPath": + err = unpopulate(val, "ScriptPath", &h.ScriptPath) + delete(rawMsg, key) + case "storageLinkedServices": + err = unpopulate(val, "StorageLinkedServices", &h.StorageLinkedServices) + delete(rawMsg, key) + case "variables": + err = unpopulate(val, "Variables", &h.Variables) + 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 HDInsightLinkedService. func (h HDInsightLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -19320,6 +23256,47 @@ func (h HDInsightMapReduceActivityTypeProperties) MarshalJSON() ([]byte, error) return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightMapReduceActivityTypeProperties. +func (h *HDInsightMapReduceActivityTypeProperties) 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 "arguments": + err = unpopulate(val, "Arguments", &h.Arguments) + delete(rawMsg, key) + case "className": + err = unpopulate(val, "ClassName", &h.ClassName) + delete(rawMsg, key) + case "defines": + err = unpopulate(val, "Defines", &h.Defines) + delete(rawMsg, key) + case "getDebugInfo": + err = unpopulate(val, "GetDebugInfo", &h.GetDebugInfo) + delete(rawMsg, key) + case "jarFilePath": + err = unpopulate(val, "JarFilePath", &h.JarFilePath) + delete(rawMsg, key) + case "jarLibs": + err = unpopulate(val, "JarLibs", &h.JarLibs) + delete(rawMsg, key) + case "jarLinkedService": + err = unpopulate(val, "JarLinkedService", &h.JarLinkedService) + delete(rawMsg, key) + case "storageLinkedServices": + err = unpopulate(val, "StorageLinkedServices", &h.StorageLinkedServices) + 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 HDInsightOnDemandLinkedService. func (h HDInsightOnDemandLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -19623,6 +23600,41 @@ func (h HDInsightPigActivityTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightPigActivityTypeProperties. +func (h *HDInsightPigActivityTypeProperties) 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 "arguments": + err = unpopulate(val, "Arguments", &h.Arguments) + delete(rawMsg, key) + case "defines": + err = unpopulate(val, "Defines", &h.Defines) + delete(rawMsg, key) + case "getDebugInfo": + err = unpopulate(val, "GetDebugInfo", &h.GetDebugInfo) + delete(rawMsg, key) + case "scriptLinkedService": + err = unpopulate(val, "ScriptLinkedService", &h.ScriptLinkedService) + delete(rawMsg, key) + case "scriptPath": + err = unpopulate(val, "ScriptPath", &h.ScriptPath) + delete(rawMsg, key) + case "storageLinkedServices": + err = unpopulate(val, "StorageLinkedServices", &h.StorageLinkedServices) + 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 HDInsightSparkActivity. func (h HDInsightSparkActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -19707,6 +23719,47 @@ func (h HDInsightSparkActivityTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightSparkActivityTypeProperties. +func (h *HDInsightSparkActivityTypeProperties) 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 "arguments": + err = unpopulate(val, "Arguments", &h.Arguments) + delete(rawMsg, key) + case "className": + err = unpopulate(val, "ClassName", &h.ClassName) + delete(rawMsg, key) + case "entryFilePath": + err = unpopulate(val, "EntryFilePath", &h.EntryFilePath) + delete(rawMsg, key) + case "getDebugInfo": + err = unpopulate(val, "GetDebugInfo", &h.GetDebugInfo) + delete(rawMsg, key) + case "proxyUser": + err = unpopulate(val, "ProxyUser", &h.ProxyUser) + delete(rawMsg, key) + case "rootPath": + err = unpopulate(val, "RootPath", &h.RootPath) + delete(rawMsg, key) + case "sparkConfig": + err = unpopulate(val, "SparkConfig", &h.SparkConfig) + delete(rawMsg, key) + case "sparkJobLinkedService": + err = unpopulate(val, "SparkJobLinkedService", &h.SparkJobLinkedService) + 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 HDInsightStreamingActivity. func (h HDInsightStreamingActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -19795,6 +23848,59 @@ func (h HDInsightStreamingActivityTypeProperties) MarshalJSON() ([]byte, error) return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type HDInsightStreamingActivityTypeProperties. +func (h *HDInsightStreamingActivityTypeProperties) 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 "arguments": + err = unpopulate(val, "Arguments", &h.Arguments) + delete(rawMsg, key) + case "combiner": + err = unpopulate(val, "Combiner", &h.Combiner) + delete(rawMsg, key) + case "commandEnvironment": + err = unpopulate(val, "CommandEnvironment", &h.CommandEnvironment) + delete(rawMsg, key) + case "defines": + err = unpopulate(val, "Defines", &h.Defines) + delete(rawMsg, key) + case "fileLinkedService": + err = unpopulate(val, "FileLinkedService", &h.FileLinkedService) + delete(rawMsg, key) + case "filePaths": + err = unpopulate(val, "FilePaths", &h.FilePaths) + delete(rawMsg, key) + case "getDebugInfo": + err = unpopulate(val, "GetDebugInfo", &h.GetDebugInfo) + delete(rawMsg, key) + case "input": + err = unpopulate(val, "Input", &h.Input) + delete(rawMsg, key) + case "mapper": + err = unpopulate(val, "Mapper", &h.Mapper) + delete(rawMsg, key) + case "output": + err = unpopulate(val, "Output", &h.Output) + delete(rawMsg, key) + case "reducer": + err = unpopulate(val, "Reducer", &h.Reducer) + delete(rawMsg, key) + case "storageLinkedServices": + err = unpopulate(val, "StorageLinkedServices", &h.StorageLinkedServices) + 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 HTTPDataset. func (h HTTPDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -20538,6 +24644,41 @@ func (h *HdfsSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type HiveDatasetTypeProperties. +func (h HiveDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &h.Schema) + populate(objectMap, "table", &h.Table) + populate(objectMap, "tableName", &h.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HiveDatasetTypeProperties. +func (h *HiveDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &h.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &h.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &h.TableName) + 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 HiveLinkedService. func (h HiveLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -21193,6 +25334,41 @@ func (i *IfConditionActivityTypeProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ImpalaDatasetTypeProperties. +func (i ImpalaDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &i.Schema) + populate(objectMap, "table", &i.Table) + populate(objectMap, "tableName", &i.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImpalaDatasetTypeProperties. +func (i *ImpalaDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &i.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &i.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &i.TableName) + 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 ImpalaLinkedService. func (i ImpalaLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -21831,6 +26007,33 @@ func (i *InformixTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type InformixTableDatasetTypeProperties. +func (i InformixTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "tableName", &i.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type InformixTableDatasetTypeProperties. +func (i *InformixTableDatasetTypeProperties) 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 "tableName": + err = unpopulate(val, "TableName", &i.TableName) + 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 IntegrationRuntime. func (i IntegrationRuntime) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -21877,6 +26080,37 @@ func (i *IntegrationRuntime) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeAuthKeys. +func (i IntegrationRuntimeAuthKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "authKey1", i.AuthKey1) + populate(objectMap, "authKey2", i.AuthKey2) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeAuthKeys. +func (i *IntegrationRuntimeAuthKeys) 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 "authKey1": + err = unpopulate(val, "AuthKey1", &i.AuthKey1) + delete(rawMsg, key) + case "authKey2": + err = unpopulate(val, "AuthKey2", &i.AuthKey2) + 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 IntegrationRuntimeComputeProperties. func (i IntegrationRuntimeComputeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -21939,6 +26173,23 @@ func (i *IntegrationRuntimeComputeProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeConnectionInfo. +func (i IntegrationRuntimeConnectionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "hostServiceUri", i.HostServiceURI) + populate(objectMap, "identityCertThumbprint", i.IdentityCertThumbprint) + populate(objectMap, "isIdentityCertExprired", i.IsIdentityCertExprired) + populate(objectMap, "publicKey", i.PublicKey) + populate(objectMap, "serviceToken", i.ServiceToken) + populate(objectMap, "version", i.Version) + 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 IntegrationRuntimeConnectionInfo. func (i *IntegrationRuntimeConnectionInfo) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -21984,6 +26235,64 @@ func (i *IntegrationRuntimeConnectionInfo) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeCustomSetupScriptProperties. +func (i IntegrationRuntimeCustomSetupScriptProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "blobContainerUri", i.BlobContainerURI) + populate(objectMap, "sasToken", i.SasToken) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeCustomSetupScriptProperties. +func (i *IntegrationRuntimeCustomSetupScriptProperties) 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 "blobContainerUri": + err = unpopulate(val, "BlobContainerURI", &i.BlobContainerURI) + delete(rawMsg, key) + case "sasToken": + err = unpopulate(val, "SasToken", &i.SasToken) + 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 IntegrationRuntimeCustomerVirtualNetwork. +func (i IntegrationRuntimeCustomerVirtualNetwork) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "subnetId", i.SubnetID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeCustomerVirtualNetwork. +func (i *IntegrationRuntimeCustomerVirtualNetwork) 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 "subnetId": + err = unpopulate(val, "SubnetID", &i.SubnetID) + 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 IntegrationRuntimeDataFlowProperties. func (i IntegrationRuntimeDataFlowProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -22038,6 +26347,41 @@ func (i *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(data []byte) error return nil } +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataProxyProperties. +func (i IntegrationRuntimeDataProxyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectVia", i.ConnectVia) + populate(objectMap, "path", i.Path) + populate(objectMap, "stagingLinkedService", i.StagingLinkedService) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeDataProxyProperties. +func (i *IntegrationRuntimeDataProxyProperties) 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 "connectVia": + err = unpopulate(val, "ConnectVia", &i.ConnectVia) + delete(rawMsg, key) + case "path": + err = unpopulate(val, "Path", &i.Path) + delete(rawMsg, key) + case "stagingLinkedService": + err = unpopulate(val, "StagingLinkedService", &i.StagingLinkedService) + 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 IntegrationRuntimeDebugResource. func (i IntegrationRuntimeDebugResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -22069,6 +26413,114 @@ func (i *IntegrationRuntimeDebugResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeListResponse. +func (i IntegrationRuntimeListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", i.NextLink) + populate(objectMap, "value", i.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeListResponse. +func (i *IntegrationRuntimeListResponse) 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 "nextLink": + err = unpopulate(val, "NextLink", &i.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &i.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeMonitoringData. +func (i IntegrationRuntimeMonitoringData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", i.Name) + populate(objectMap, "nodes", i.Nodes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeMonitoringData. +func (i *IntegrationRuntimeMonitoringData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "nodes": + err = unpopulate(val, "Nodes", &i.Nodes) + 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 IntegrationRuntimeNodeIPAddress. +func (i IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "ipAddress", i.IPAddress) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeNodeIPAddress. +func (i *IntegrationRuntimeNodeIPAddress) 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 "ipAddress": + err = unpopulate(val, "IPAddress", &i.IPAddress) + 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 IntegrationRuntimeNodeMonitoringData. +func (i IntegrationRuntimeNodeMonitoringData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "availableMemoryInMB", i.AvailableMemoryInMB) + populate(objectMap, "cpuUtilization", i.CPUUtilization) + populate(objectMap, "concurrentJobsLimit", i.ConcurrentJobsLimit) + populate(objectMap, "concurrentJobsRunning", i.ConcurrentJobsRunning) + populate(objectMap, "maxConcurrentJobs", i.MaxConcurrentJobs) + populate(objectMap, "nodeName", i.NodeName) + populate(objectMap, "receivedBytes", i.ReceivedBytes) + populate(objectMap, "sentBytes", i.SentBytes) + 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 IntegrationRuntimeNodeMonitoringData. func (i *IntegrationRuntimeNodeMonitoringData) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -22120,6 +26572,122 @@ func (i *IntegrationRuntimeNodeMonitoringData) UnmarshalJSON(data []byte) error return nil } +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint. +func (i IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "category", i.Category) + populate(objectMap, "endpoints", i.Endpoints) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint. +func (i *IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) 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 "category": + err = unpopulate(val, "Category", &i.Category) + delete(rawMsg, key) + case "endpoints": + err = unpopulate(val, "Endpoints", &i.Endpoints) + 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 IntegrationRuntimeOutboundNetworkDependenciesEndpoint. +func (i IntegrationRuntimeOutboundNetworkDependenciesEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "domainName", i.DomainName) + populate(objectMap, "endpointDetails", i.EndpointDetails) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpoint. +func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpoint) 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 "domainName": + err = unpopulate(val, "DomainName", &i.DomainName) + delete(rawMsg, key) + case "endpointDetails": + err = unpopulate(val, "EndpointDetails", &i.EndpointDetails) + 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 IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails. +func (i IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "port", i.Port) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails. +func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) 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 "port": + err = unpopulate(val, "Port", &i.Port) + 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 IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. +func (i IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", i.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. +func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) 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 "value": + err = unpopulate(val, "Value", &i.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeReference. func (i IntegrationRuntimeReference) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -22129,6 +26697,59 @@ func (i IntegrationRuntimeReference) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeReference. +func (i *IntegrationRuntimeReference) 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 "parameters": + err = unpopulate(val, "Parameters", &i.Parameters) + delete(rawMsg, key) + case "referenceName": + err = unpopulate(val, "ReferenceName", &i.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + 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 IntegrationRuntimeRegenerateKeyParameters. +func (i IntegrationRuntimeRegenerateKeyParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "keyName", i.KeyName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeRegenerateKeyParameters. +func (i *IntegrationRuntimeRegenerateKeyParameters) 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 "keyName": + err = unpopulate(val, "KeyName", &i.KeyName) + 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 IntegrationRuntimeResource. func (i IntegrationRuntimeResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -22300,6 +26921,20 @@ func (i *IntegrationRuntimeSsisProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatus. +func (i IntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataFactoryName", i.DataFactoryName) + populate(objectMap, "state", i.State) + objectMap["type"] = i.Type + 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 IntegrationRuntimeStatus. func (i *IntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -22336,6 +26971,45 @@ func (i *IntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatusListResponse. +func (i IntegrationRuntimeStatusListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", i.NextLink) + populate(objectMap, "value", i.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeStatusListResponse. +func (i *IntegrationRuntimeStatusListResponse) 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 "nextLink": + err = unpopulate(val, "NextLink", &i.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &i.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatusResponse. +func (i IntegrationRuntimeStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", i.Name) + populate(objectMap, "properties", i.Properties) + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeStatusResponse. func (i *IntegrationRuntimeStatusResponse) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -23120,6 +27794,17 @@ func (l *LicensedComponentSetupTypeProperties) UnmarshalJSON(data []byte) error return nil } +// MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntime. +func (l LinkedIntegrationRuntime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createTime", l.CreateTime) + populate(objectMap, "dataFactoryLocation", l.DataFactoryLocation) + populate(objectMap, "dataFactoryName", l.DataFactoryName) + populate(objectMap, "name", l.Name) + populate(objectMap, "subscriptionId", l.SubscriptionID) + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntime. func (l *LinkedIntegrationRuntime) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -23218,6 +27903,60 @@ func (l *LinkedIntegrationRuntimeRbacAuthorization) UnmarshalJSON(data []byte) e return nil } +// MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeRequest. +func (l LinkedIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "factoryName", l.LinkedFactoryName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntimeRequest. +func (l *LinkedIntegrationRuntimeRequest) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "factoryName": + err = unpopulate(val, "LinkedFactoryName", &l.LinkedFactoryName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeType. +func (l LinkedIntegrationRuntimeType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["authorizationType"] = l.AuthorizationType + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntimeType. +func (l *LinkedIntegrationRuntimeType) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "authorizationType": + err = unpopulate(val, "AuthorizationType", &l.AuthorizationType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type LinkedService. func (l LinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -23307,6 +28046,37 @@ func (l *LinkedServiceDebugResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type LinkedServiceListResponse. +func (l LinkedServiceListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", l.NextLink) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LinkedServiceListResponse. +func (l *LinkedServiceListResponse) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &l.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &l.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type LinkedServiceReference. func (l LinkedServiceReference) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -23316,6 +28086,32 @@ func (l LinkedServiceReference) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type LinkedServiceReference. +func (l *LinkedServiceReference) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "parameters": + err = unpopulate(val, "Parameters", &l.Parameters) + delete(rawMsg, key) + case "referenceName": + err = unpopulate(val, "ReferenceName", &l.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &l.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type LinkedServiceResource. func (l LinkedServiceResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -23359,6 +28155,72 @@ func (l *LinkedServiceResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type LogLocationSettings. +func (l LogLocationSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "linkedServiceName", l.LinkedServiceName) + populate(objectMap, "path", &l.Path) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LogLocationSettings. +func (l *LogLocationSettings) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &l.LinkedServiceName) + delete(rawMsg, key) + case "path": + err = unpopulate(val, "Path", &l.Path) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LogSettings. +func (l LogSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "copyActivityLogSettings", l.CopyActivityLogSettings) + populate(objectMap, "enableCopyActivityLog", &l.EnableCopyActivityLog) + populate(objectMap, "logLocationSettings", l.LogLocationSettings) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LogSettings. +func (l *LogSettings) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "copyActivityLogSettings": + err = unpopulate(val, "CopyActivityLogSettings", &l.CopyActivityLogSettings) + delete(rawMsg, key) + case "enableCopyActivityLog": + err = unpopulate(val, "EnableCopyActivityLog", &l.EnableCopyActivityLog) + delete(rawMsg, key) + case "logLocationSettings": + err = unpopulate(val, "LogLocationSettings", &l.LogLocationSettings) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type LogStorageSettings. func (l LogStorageSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -23825,6 +28687,33 @@ func (m *ManagedIdentityCredential) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedIdentityTypeProperties. +func (m ManagedIdentityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "resourceId", m.ResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentityTypeProperties. +func (m *ManagedIdentityTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "resourceId": + err = unpopulate(val, "ResourceID", &m.ResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntime. func (m ManagedIntegrationRuntime) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -23883,6 +28772,21 @@ func (m *ManagedIntegrationRuntime) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeError. +func (m ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "code", m.Code) + populate(objectMap, "message", m.Message) + populate(objectMap, "parameters", m.Parameters) + populateTimeRFC3339(objectMap, "time", m.Time) + if m.AdditionalProperties != nil { + for key, val := range m.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeError. func (m *ManagedIntegrationRuntimeError) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -23922,6 +28826,20 @@ func (m *ManagedIntegrationRuntimeError) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeNode. +func (m ManagedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "errors", m.Errors) + populate(objectMap, "nodeId", m.NodeID) + populate(objectMap, "status", m.Status) + if m.AdditionalProperties != nil { + for key, val := range m.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeNode. func (m *ManagedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -23958,6 +28876,23 @@ func (m *ManagedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeOperationResult. +func (m ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "activityId", m.ActivityID) + populate(objectMap, "errorCode", m.ErrorCode) + populate(objectMap, "parameters", m.Parameters) + populate(objectMap, "result", m.Result) + populateTimeRFC3339(objectMap, "startTime", m.StartTime) + populate(objectMap, "type", m.Type) + if m.AdditionalProperties != nil { + for key, val := range m.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeOperationResult. func (m *ManagedIntegrationRuntimeOperationResult) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -24003,6 +28938,21 @@ func (m *ManagedIntegrationRuntimeOperationResult) UnmarshalJSON(data []byte) er return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeStatus. +func (m ManagedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataFactoryName", m.DataFactoryName) + populate(objectMap, "state", m.State) + objectMap["type"] = IntegrationRuntimeTypeManaged + populate(objectMap, "typeProperties", m.TypeProperties) + if m.AdditionalProperties != nil { + for key, val := range m.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeStatus. func (m *ManagedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -24042,6 +28992,16 @@ func (m *ManagedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeStatusTypeProperties. +func (m ManagedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createTime", m.CreateTime) + populate(objectMap, "lastOperation", m.LastOperation) + populate(objectMap, "nodes", m.Nodes) + populate(objectMap, "otherErrors", m.OtherErrors) + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeStatusTypeProperties. func (m *ManagedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -24071,6 +29031,41 @@ func (m *ManagedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data []byt return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeTypeProperties. +func (m ManagedIntegrationRuntimeTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "computeProperties", m.ComputeProperties) + populate(objectMap, "customerVirtualNetwork", m.CustomerVirtualNetwork) + populate(objectMap, "ssisProperties", m.SsisProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeTypeProperties. +func (m *ManagedIntegrationRuntimeTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "computeProperties": + err = unpopulate(val, "ComputeProperties", &m.ComputeProperties) + delete(rawMsg, key) + case "customerVirtualNetwork": + err = unpopulate(val, "CustomerVirtualNetwork", &m.CustomerVirtualNetwork) + delete(rawMsg, key) + case "ssisProperties": + err = unpopulate(val, "SsisProperties", &m.SsisProperties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpoint. func (m ManagedPrivateEndpoint) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -24133,6 +29128,80 @@ func (m *ManagedPrivateEndpoint) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointListResponse. +func (m ManagedPrivateEndpointListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", m.NextLink) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedPrivateEndpointListResponse. +func (m *ManagedPrivateEndpointListResponse) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &m.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &m.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointResource. +func (m ManagedPrivateEndpointResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "etag", m.Etag) + populate(objectMap, "id", m.ID) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedPrivateEndpointResource. +func (m *ManagedPrivateEndpointResource) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "etag": + err = unpopulate(val, "Etag", &m.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetwork. func (m ManagedVirtualNetwork) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -24179,6 +29248,111 @@ func (m *ManagedVirtualNetwork) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkListResponse. +func (m ManagedVirtualNetworkListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", m.NextLink) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedVirtualNetworkListResponse. +func (m *ManagedVirtualNetworkListResponse) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &m.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &m.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkReference. +func (m ManagedVirtualNetworkReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "referenceName", m.ReferenceName) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedVirtualNetworkReference. +func (m *ManagedVirtualNetworkReference) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "referenceName": + err = unpopulate(val, "ReferenceName", &m.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkResource. +func (m ManagedVirtualNetworkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "etag", m.Etag) + populate(objectMap, "id", m.ID) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedVirtualNetworkResource. +func (m *ManagedVirtualNetworkResource) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "etag": + err = unpopulate(val, "Etag", &m.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type MappingDataFlow. func (m MappingDataFlow) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -24233,6 +29407,38 @@ func (m MappingDataFlowTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type MappingDataFlowTypeProperties. +func (m *MappingDataFlowTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "script": + err = unpopulate(val, "Script", &m.Script) + delete(rawMsg, key) + case "scriptLines": + err = unpopulate(val, "ScriptLines", &m.ScriptLines) + delete(rawMsg, key) + case "sinks": + err = unpopulate(val, "Sinks", &m.Sinks) + delete(rawMsg, key) + case "sources": + err = unpopulate(val, "Sources", &m.Sources) + delete(rawMsg, key) + case "transformations": + err = unpopulate(val, "Transformations", &m.Transformations) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type MariaDBLinkedService. func (m MariaDBLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -24295,6 +29501,41 @@ func (m *MariaDBLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MariaDBLinkedServiceTypeProperties. +func (m MariaDBLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &m.ConnectionString) + populate(objectMap, "encryptedCredential", &m.EncryptedCredential) + populate(objectMap, "pwd", m.Pwd) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MariaDBLinkedServiceTypeProperties. +func (m *MariaDBLinkedServiceTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "connectionString": + err = unpopulate(val, "ConnectionString", &m.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &m.EncryptedCredential) + delete(rawMsg, key) + case "pwd": + err = unpopulate(val, "Pwd", &m.Pwd) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type MariaDBSource. func (m MariaDBSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -24696,6 +29937,37 @@ func (m *MarketoSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MetadataItem. +func (m MetadataItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", &m.Name) + populate(objectMap, "value", &m.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MetadataItem. +func (m *MetadataItem) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &m.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessLinkedService. func (m MicrosoftAccessLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -25015,6 +30287,33 @@ func (m *MicrosoftAccessTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessTableDatasetTypeProperties. +func (m MicrosoftAccessTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "tableName", &m.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MicrosoftAccessTableDatasetTypeProperties. +func (m *MicrosoftAccessTableDatasetTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "tableName": + err = unpopulate(val, "TableName", &m.TableName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasCollectionDataset. func (m MongoDbAtlasCollectionDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -25089,6 +30388,33 @@ func (m *MongoDbAtlasCollectionDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasCollectionDatasetTypeProperties. +func (m MongoDbAtlasCollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "collection", &m.Collection) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbAtlasCollectionDatasetTypeProperties. +func (m *MongoDbAtlasCollectionDatasetTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "collection": + err = unpopulate(val, "Collection", &m.Collection) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasLinkedService. func (m MongoDbAtlasLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -25151,6 +30477,37 @@ func (m *MongoDbAtlasLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasLinkedServiceTypeProperties. +func (m MongoDbAtlasLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &m.ConnectionString) + populate(objectMap, "database", &m.Database) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbAtlasLinkedServiceTypeProperties. +func (m *MongoDbAtlasLinkedServiceTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "connectionString": + err = unpopulate(val, "ConnectionString", &m.ConnectionString) + delete(rawMsg, key) + case "database": + err = unpopulate(val, "Database", &m.Database) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasSink. func (m MongoDbAtlasSink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -25373,6 +30730,33 @@ func (m *MongoDbCollectionDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MongoDbCollectionDatasetTypeProperties. +func (m MongoDbCollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "collectionName", &m.CollectionName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbCollectionDatasetTypeProperties. +func (m *MongoDbCollectionDatasetTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "collectionName": + err = unpopulate(val, "CollectionName", &m.CollectionName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type MongoDbCursorMethodsProperties. func (m MongoDbCursorMethodsProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -25692,6 +31076,33 @@ func (m *MongoDbV2CollectionDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MongoDbV2CollectionDatasetTypeProperties. +func (m MongoDbV2CollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "collection", &m.Collection) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbV2CollectionDatasetTypeProperties. +func (m *MongoDbV2CollectionDatasetTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "collection": + err = unpopulate(val, "Collection", &m.Collection) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type MongoDbV2LinkedService. func (m MongoDbV2LinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -25754,6 +31165,37 @@ func (m *MongoDbV2LinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MongoDbV2LinkedServiceTypeProperties. +func (m MongoDbV2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &m.ConnectionString) + populate(objectMap, "database", &m.Database) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbV2LinkedServiceTypeProperties. +func (m *MongoDbV2LinkedServiceTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "connectionString": + err = unpopulate(val, "ConnectionString", &m.ConnectionString) + delete(rawMsg, key) + case "database": + err = unpopulate(val, "Database", &m.Database) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type MongoDbV2Sink. func (m MongoDbV2Sink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -26022,6 +31464,41 @@ func (m *MySQLLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MySQLLinkedServiceTypeProperties. +func (m MySQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &m.ConnectionString) + populate(objectMap, "encryptedCredential", &m.EncryptedCredential) + populate(objectMap, "password", m.Password) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MySQLLinkedServiceTypeProperties. +func (m *MySQLLinkedServiceTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "connectionString": + err = unpopulate(val, "ConnectionString", &m.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &m.EncryptedCredential) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &m.Password) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type MySQLSource. func (m MySQLSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -26166,6 +31643,33 @@ func (m *MySQLTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MySQLTableDatasetTypeProperties. +func (m MySQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "tableName", &m.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MySQLTableDatasetTypeProperties. +func (m *MySQLTableDatasetTypeProperties) 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", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "tableName": + err = unpopulate(val, "TableName", &m.TableName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type NetezzaLinkedService. func (n NetezzaLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -26228,6 +31732,76 @@ func (n *NetezzaLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type NetezzaLinkedServiceTypeProperties. +func (n NetezzaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &n.ConnectionString) + populate(objectMap, "encryptedCredential", &n.EncryptedCredential) + populate(objectMap, "pwd", n.Pwd) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NetezzaLinkedServiceTypeProperties. +func (n *NetezzaLinkedServiceTypeProperties) 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 "connectionString": + err = unpopulate(val, "ConnectionString", &n.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &n.EncryptedCredential) + delete(rawMsg, key) + case "pwd": + err = unpopulate(val, "Pwd", &n.Pwd) + 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 NetezzaPartitionSettings. +func (n NetezzaPartitionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "partitionColumnName", &n.PartitionColumnName) + populate(objectMap, "partitionLowerBound", &n.PartitionLowerBound) + populate(objectMap, "partitionUpperBound", &n.PartitionUpperBound) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NetezzaPartitionSettings. +func (n *NetezzaPartitionSettings) 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 "partitionColumnName": + err = unpopulate(val, "PartitionColumnName", &n.PartitionColumnName) + delete(rawMsg, key) + case "partitionLowerBound": + err = unpopulate(val, "PartitionLowerBound", &n.PartitionLowerBound) + delete(rawMsg, key) + case "partitionUpperBound": + err = unpopulate(val, "PartitionUpperBound", &n.PartitionUpperBound) + 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 NetezzaSource. func (n NetezzaSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -26380,6 +31954,72 @@ func (n *NetezzaTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type NetezzaTableDatasetTypeProperties. +func (n NetezzaTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &n.Schema) + populate(objectMap, "table", &n.Table) + populate(objectMap, "tableName", &n.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NetezzaTableDatasetTypeProperties. +func (n *NetezzaTableDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &n.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &n.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &n.TableName) + 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 NotebookParameter. +func (n NotebookParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "type", n.Type) + populate(objectMap, "value", &n.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NotebookParameter. +func (n *NotebookParameter) 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 "type": + err = unpopulate(val, "Type", &n.Type) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &n.Value) + 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 ODataLinkedService. func (o ODataLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -26595,6 +32235,33 @@ func (o *ODataResourceDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ODataResourceDatasetTypeProperties. +func (o ODataResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "path", &o.Path) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ODataResourceDatasetTypeProperties. +func (o *ODataResourceDatasetTypeProperties) 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 "path": + err = unpopulate(val, "Path", &o.Path) + 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 ODataSource. func (o ODataSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -26988,6 +32655,33 @@ func (o *OdbcTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type OdbcTableDatasetTypeProperties. +func (o OdbcTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "tableName", &o.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OdbcTableDatasetTypeProperties. +func (o *OdbcTableDatasetTypeProperties) 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 "tableName": + err = unpopulate(val, "TableName", &o.TableName) + 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 Office365Dataset. func (o Office365Dataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -27062,25 +32756,16 @@ func (o *Office365Dataset) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Office365LinkedService. -func (o Office365LinkedService) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type Office365DatasetTypeProperties. +func (o Office365DatasetTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", o.Annotations) - populate(objectMap, "connectVia", o.ConnectVia) - populate(objectMap, "description", o.Description) - populate(objectMap, "parameters", o.Parameters) - objectMap["type"] = "Office365" - populate(objectMap, "typeProperties", o.TypeProperties) - if o.AdditionalProperties != nil { - for key, val := range o.AdditionalProperties { - objectMap[key] = val - } - } + populate(objectMap, "predicate", &o.Predicate) + populate(objectMap, "tableName", &o.TableName) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type Office365LinkedService. -func (o *Office365LinkedService) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type Office365DatasetTypeProperties. +func (o *Office365DatasetTypeProperties) 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) @@ -27088,33 +32773,11 @@ func (o *Office365LinkedService) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "annotations": - err = unpopulate(val, "Annotations", &o.Annotations) - delete(rawMsg, key) - case "connectVia": - err = unpopulate(val, "ConnectVia", &o.ConnectVia) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &o.Description) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &o.Parameters) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &o.Type) + case "predicate": + err = unpopulate(val, "Predicate", &o.Predicate) delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &o.TypeProperties) - delete(rawMsg, key) - default: - if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - o.AdditionalProperties[key] = aux - } + case "tableName": + err = unpopulate(val, "TableName", &o.TableName) delete(rawMsg, key) } if err != nil { @@ -27124,139 +32787,14 @@ func (o *Office365LinkedService) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Office365LinkedServiceTypeProperties. -func (o Office365LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptedCredential", &o.EncryptedCredential) - populate(objectMap, "office365TenantId", &o.Office365TenantID) - populate(objectMap, "servicePrincipalId", &o.ServicePrincipalID) - populate(objectMap, "servicePrincipalKey", o.ServicePrincipalKey) - populate(objectMap, "servicePrincipalTenantId", &o.ServicePrincipalTenantID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Office365LinkedServiceTypeProperties. -func (o *Office365LinkedServiceTypeProperties) 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 "encryptedCredential": - err = unpopulate(val, "EncryptedCredential", &o.EncryptedCredential) - delete(rawMsg, key) - case "office365TenantId": - err = unpopulate(val, "Office365TenantID", &o.Office365TenantID) - delete(rawMsg, key) - case "servicePrincipalId": - err = unpopulate(val, "ServicePrincipalID", &o.ServicePrincipalID) - delete(rawMsg, key) - case "servicePrincipalKey": - o.ServicePrincipalKey, err = unmarshalSecretBaseClassification(val) - delete(rawMsg, key) - case "servicePrincipalTenantId": - err = unpopulate(val, "ServicePrincipalTenantID", &o.ServicePrincipalTenantID) - 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 Office365Source. -func (o Office365Source) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowedGroups", &o.AllowedGroups) - populate(objectMap, "dateFilterColumn", &o.DateFilterColumn) - populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) - populate(objectMap, "endTime", &o.EndTime) - populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) - populate(objectMap, "outputColumns", &o.OutputColumns) - populate(objectMap, "sourceRetryCount", &o.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &o.SourceRetryWait) - populate(objectMap, "startTime", &o.StartTime) - objectMap["type"] = "Office365Source" - populate(objectMap, "userScopeFilterUri", &o.UserScopeFilterURI) - if o.AdditionalProperties != nil { - for key, val := range o.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Office365Source. -func (o *Office365Source) 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 "allowedGroups": - err = unpopulate(val, "AllowedGroups", &o.AllowedGroups) - delete(rawMsg, key) - case "dateFilterColumn": - err = unpopulate(val, "DateFilterColumn", &o.DateFilterColumn) - delete(rawMsg, key) - case "disableMetricsCollection": - err = unpopulate(val, "DisableMetricsCollection", &o.DisableMetricsCollection) - delete(rawMsg, key) - case "endTime": - err = unpopulate(val, "EndTime", &o.EndTime) - delete(rawMsg, key) - case "maxConcurrentConnections": - err = unpopulate(val, "MaxConcurrentConnections", &o.MaxConcurrentConnections) - delete(rawMsg, key) - case "outputColumns": - err = unpopulate(val, "OutputColumns", &o.OutputColumns) - delete(rawMsg, key) - case "sourceRetryCount": - err = unpopulate(val, "SourceRetryCount", &o.SourceRetryCount) - delete(rawMsg, key) - case "sourceRetryWait": - err = unpopulate(val, "SourceRetryWait", &o.SourceRetryWait) - delete(rawMsg, key) - case "startTime": - err = unpopulate(val, "StartTime", &o.StartTime) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &o.Type) - delete(rawMsg, key) - case "userScopeFilterUri": - err = unpopulate(val, "UserScopeFilterURI", &o.UserScopeFilterURI) - delete(rawMsg, key) - default: - if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - o.AdditionalProperties[key] = aux - } - 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) { +// MarshalJSON implements the json.Marshaller interface for type Office365LinkedService. +func (o Office365LinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) populate(objectMap, "parameters", o.Parameters) - objectMap["type"] = "OracleCloudStorage" + objectMap["type"] = "Office365" populate(objectMap, "typeProperties", o.TypeProperties) if o.AdditionalProperties != nil { for key, val := range o.AdditionalProperties { @@ -27266,8 +32804,526 @@ func (o OracleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type OracleCloudStorageLinkedService. -func (o *OracleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type Office365LinkedService. +func (o *Office365LinkedService) 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 "annotations": + err = unpopulate(val, "Annotations", &o.Annotations) + delete(rawMsg, key) + case "connectVia": + err = unpopulate(val, "ConnectVia", &o.ConnectVia) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &o.Description) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &o.Parameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &o.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &o.TypeProperties) + delete(rawMsg, key) + default: + if o.AdditionalProperties == nil { + o.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + o.AdditionalProperties[key] = aux + } + 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 Office365LinkedServiceTypeProperties. +func (o Office365LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "encryptedCredential", &o.EncryptedCredential) + populate(objectMap, "office365TenantId", &o.Office365TenantID) + populate(objectMap, "servicePrincipalId", &o.ServicePrincipalID) + populate(objectMap, "servicePrincipalKey", o.ServicePrincipalKey) + populate(objectMap, "servicePrincipalTenantId", &o.ServicePrincipalTenantID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Office365LinkedServiceTypeProperties. +func (o *Office365LinkedServiceTypeProperties) 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 "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &o.EncryptedCredential) + delete(rawMsg, key) + case "office365TenantId": + err = unpopulate(val, "Office365TenantID", &o.Office365TenantID) + delete(rawMsg, key) + case "servicePrincipalId": + err = unpopulate(val, "ServicePrincipalID", &o.ServicePrincipalID) + delete(rawMsg, key) + case "servicePrincipalKey": + o.ServicePrincipalKey, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "servicePrincipalTenantId": + err = unpopulate(val, "ServicePrincipalTenantID", &o.ServicePrincipalTenantID) + 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 Office365Source. +func (o Office365Source) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "allowedGroups", &o.AllowedGroups) + populate(objectMap, "dateFilterColumn", &o.DateFilterColumn) + populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) + populate(objectMap, "endTime", &o.EndTime) + populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) + populate(objectMap, "outputColumns", &o.OutputColumns) + populate(objectMap, "sourceRetryCount", &o.SourceRetryCount) + populate(objectMap, "sourceRetryWait", &o.SourceRetryWait) + populate(objectMap, "startTime", &o.StartTime) + objectMap["type"] = "Office365Source" + populate(objectMap, "userScopeFilterUri", &o.UserScopeFilterURI) + if o.AdditionalProperties != nil { + for key, val := range o.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Office365Source. +func (o *Office365Source) 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 "allowedGroups": + err = unpopulate(val, "AllowedGroups", &o.AllowedGroups) + delete(rawMsg, key) + case "dateFilterColumn": + err = unpopulate(val, "DateFilterColumn", &o.DateFilterColumn) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &o.DisableMetricsCollection) + delete(rawMsg, key) + case "endTime": + err = unpopulate(val, "EndTime", &o.EndTime) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &o.MaxConcurrentConnections) + delete(rawMsg, key) + case "outputColumns": + err = unpopulate(val, "OutputColumns", &o.OutputColumns) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &o.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &o.SourceRetryWait) + delete(rawMsg, key) + case "startTime": + err = unpopulate(val, "StartTime", &o.StartTime) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &o.Type) + delete(rawMsg, key) + case "userScopeFilterUri": + err = unpopulate(val, "UserScopeFilterURI", &o.UserScopeFilterURI) + delete(rawMsg, key) + default: + if o.AdditionalProperties == nil { + o.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + o.AdditionalProperties[key] = aux + } + 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 Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + 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]interface{}) + 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]interface{}) + 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]interface{}) + 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]interface{}) + 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]interface{}) + 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]interface{}) + 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]interface{}) + 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]interface{}) + 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]interface{}) + populate(objectMap, "annotations", o.Annotations) + populate(objectMap, "connectVia", o.ConnectVia) + populate(objectMap, "description", o.Description) + populate(objectMap, "parameters", o.Parameters) + objectMap["type"] = "OracleCloudStorage" + populate(objectMap, "typeProperties", o.TypeProperties) + if o.AdditionalProperties != nil { + for key, val := range o.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OracleCloudStorageLinkedService. +func (o *OracleCloudStorageLinkedService) 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) @@ -27560,6 +33616,80 @@ func (o *OracleLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type OracleLinkedServiceTypeProperties. +func (o OracleLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &o.ConnectionString) + populate(objectMap, "encryptedCredential", &o.EncryptedCredential) + populate(objectMap, "password", o.Password) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OracleLinkedServiceTypeProperties. +func (o *OracleLinkedServiceTypeProperties) 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 "connectionString": + err = unpopulate(val, "ConnectionString", &o.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &o.EncryptedCredential) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &o.Password) + 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 OraclePartitionSettings. +func (o OraclePartitionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "partitionColumnName", &o.PartitionColumnName) + populate(objectMap, "partitionLowerBound", &o.PartitionLowerBound) + populate(objectMap, "partitionNames", &o.PartitionNames) + populate(objectMap, "partitionUpperBound", &o.PartitionUpperBound) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OraclePartitionSettings. +func (o *OraclePartitionSettings) 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 "partitionColumnName": + err = unpopulate(val, "PartitionColumnName", &o.PartitionColumnName) + delete(rawMsg, key) + case "partitionLowerBound": + err = unpopulate(val, "PartitionLowerBound", &o.PartitionLowerBound) + delete(rawMsg, key) + case "partitionNames": + err = unpopulate(val, "PartitionNames", &o.PartitionNames) + delete(rawMsg, key) + case "partitionUpperBound": + err = unpopulate(val, "PartitionUpperBound", &o.PartitionUpperBound) + 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 OracleServiceCloudLinkedService. func (o OracleServiceCloudLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -28039,6 +34169,41 @@ func (o *OracleTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type OracleTableDatasetTypeProperties. +func (o OracleTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &o.Schema) + populate(objectMap, "table", &o.Table) + populate(objectMap, "tableName", &o.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OracleTableDatasetTypeProperties. +func (o *OracleTableDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &o.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &o.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &o.TableName) + 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 OrcDataset. func (o OrcDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -28384,6 +34549,68 @@ func (o *OrcWriteSettings) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type PackageStore. +func (p PackageStore) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", p.Name) + populate(objectMap, "packageStoreLinkedService", p.PackageStoreLinkedService) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PackageStore. +func (p *PackageStore) 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 "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "packageStoreLinkedService": + err = unpopulate(val, "PackageStoreLinkedService", &p.PackageStoreLinkedService) + 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 ParameterSpecification. +func (p ParameterSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "defaultValue", &p.DefaultValue) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ParameterSpecification. +func (p *ParameterSpecification) 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 "defaultValue": + err = unpopulate(val, "DefaultValue", &p.DefaultValue) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + 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 ParquetDataset. func (p ParquetDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -28986,6 +35213,41 @@ func (p *PaypalSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type PhoenixDatasetTypeProperties. +func (p PhoenixDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &p.Schema) + populate(objectMap, "table", &p.Table) + populate(objectMap, "tableName", &p.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PhoenixDatasetTypeProperties. +func (p *PhoenixDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &p.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &p.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &p.TableName) + 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 PhoenixLinkedService. func (p PhoenixLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -29322,24 +35584,42 @@ func (p *Pipeline) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PipelineResource. -func (p PipelineResource) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type PipelineElapsedTimeMetricPolicy. +func (p PipelineElapsedTimeMetricPolicy) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "etag", p.Etag) - populate(objectMap, "id", p.ID) - populate(objectMap, "name", p.Name) - populate(objectMap, "properties", p.Properties) - populate(objectMap, "type", p.Type) - if p.AdditionalProperties != nil { - for key, val := range p.AdditionalProperties { - objectMap[key] = val + populate(objectMap, "duration", &p.Duration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineElapsedTimeMetricPolicy. +func (p *PipelineElapsedTimeMetricPolicy) 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 "duration": + err = unpopulate(val, "Duration", &p.Duration) + 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 PipelineFolder. +func (p PipelineFolder) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", p.Name) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineResource. -func (p *PipelineResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineFolder. +func (p *PipelineFolder) 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) @@ -29347,31 +35627,9 @@ func (p *PipelineResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "etag": - err = unpopulate(val, "Etag", &p.Etag) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &p.ID) - delete(rawMsg, key) case "name": err = unpopulate(val, "Name", &p.Name) delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &p.Properties) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &p.Type) - delete(rawMsg, key) - default: - if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - p.AdditionalProperties[key] = aux - } - delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", p, err) @@ -29380,8 +35638,16 @@ func (p *PipelineResource) UnmarshalJSON(data []byte) error { return nil } -// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRun. -func (p *PipelineRun) UnmarshalJSON(data []byte) error { +// MarshalJSON implements the json.Marshaller interface for type PipelineListResponse. +func (p PipelineListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineListResponse. +func (p *PipelineListResponse) 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) @@ -29389,54 +35655,11 @@ func (p *PipelineRun) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "durationInMs": - err = unpopulate(val, "DurationInMs", &p.DurationInMs) - delete(rawMsg, key) - case "invokedBy": - err = unpopulate(val, "InvokedBy", &p.InvokedBy) - delete(rawMsg, key) - case "isLatest": - err = unpopulate(val, "IsLatest", &p.IsLatest) - delete(rawMsg, key) - case "lastUpdated": - err = unpopulateTimeRFC3339(val, "LastUpdated", &p.LastUpdated) - delete(rawMsg, key) - case "message": - err = unpopulate(val, "Message", &p.Message) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &p.Parameters) - delete(rawMsg, key) - case "pipelineName": - err = unpopulate(val, "PipelineName", &p.PipelineName) - delete(rawMsg, key) - case "runDimensions": - err = unpopulate(val, "RunDimensions", &p.RunDimensions) - delete(rawMsg, key) - case "runEnd": - err = unpopulateTimeRFC3339(val, "RunEnd", &p.RunEnd) - delete(rawMsg, key) - case "runGroupId": - err = unpopulate(val, "RunGroupID", &p.RunGroupID) - delete(rawMsg, key) - case "runId": - err = unpopulate(val, "RunID", &p.RunID) - delete(rawMsg, key) - case "runStart": - err = unpopulateTimeRFC3339(val, "RunStart", &p.RunStart) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &p.Status) + case "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) delete(rawMsg, key) - default: - if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - p.AdditionalProperties[key] = aux - } + case "value": + err = unpopulate(val, "Value", &p.Value) delete(rawMsg, key) } if err != nil { @@ -29446,23 +35669,15 @@ func (p *PipelineRun) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PolybaseSettings. -func (p PolybaseSettings) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type PipelinePolicy. +func (p PipelinePolicy) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "rejectSampleValue", &p.RejectSampleValue) - populate(objectMap, "rejectType", p.RejectType) - populate(objectMap, "rejectValue", &p.RejectValue) - populate(objectMap, "useTypeDefault", &p.UseTypeDefault) - if p.AdditionalProperties != nil { - for key, val := range p.AdditionalProperties { - objectMap[key] = val - } - } + populate(objectMap, "elapsedTimeMetric", p.ElapsedTimeMetric) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PolybaseSettings. -func (p *PolybaseSettings) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelinePolicy. +func (p *PipelinePolicy) 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) @@ -29470,27 +35685,8 @@ func (p *PolybaseSettings) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "rejectSampleValue": - err = unpopulate(val, "RejectSampleValue", &p.RejectSampleValue) - delete(rawMsg, key) - case "rejectType": - err = unpopulate(val, "RejectType", &p.RejectType) - delete(rawMsg, key) - case "rejectValue": - err = unpopulate(val, "RejectValue", &p.RejectValue) - delete(rawMsg, key) - case "useTypeDefault": - err = unpopulate(val, "UseTypeDefault", &p.UseTypeDefault) - delete(rawMsg, key) - default: - if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - p.AdditionalProperties[key] = aux - } + case "elapsedTimeMetric": + err = unpopulate(val, "ElapsedTimeMetric", &p.ElapsedTimeMetric) delete(rawMsg, key) } if err != nil { @@ -29500,25 +35696,17 @@ func (p *PolybaseSettings) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PostgreSQLLinkedService. -func (p PostgreSQLLinkedService) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type PipelineReference. +func (p PipelineReference) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", p.Annotations) - populate(objectMap, "connectVia", p.ConnectVia) - populate(objectMap, "description", p.Description) - populate(objectMap, "parameters", p.Parameters) - objectMap["type"] = "PostgreSql" - populate(objectMap, "typeProperties", p.TypeProperties) - if p.AdditionalProperties != nil { - for key, val := range p.AdditionalProperties { - objectMap[key] = val - } - } + populate(objectMap, "name", p.Name) + populate(objectMap, "referenceName", p.ReferenceName) + populate(objectMap, "type", p.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLLinkedService. -func (p *PostgreSQLLinkedService) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineReference. +func (p *PipelineReference) 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) @@ -29526,34 +35714,15 @@ func (p *PostgreSQLLinkedService) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "annotations": - err = unpopulate(val, "Annotations", &p.Annotations) - delete(rawMsg, key) - case "connectVia": - err = unpopulate(val, "ConnectVia", &p.ConnectVia) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &p.Description) + case "name": + err = unpopulate(val, "Name", &p.Name) delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &p.Parameters) + case "referenceName": + err = unpopulate(val, "ReferenceName", &p.ReferenceName) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &p.Type) delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &p.TypeProperties) - delete(rawMsg, key) - default: - if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - p.AdditionalProperties[key] = aux - } - delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", p, err) @@ -29562,17 +35731,14 @@ func (p *PostgreSQLLinkedService) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PostgreSQLSource. -func (p PostgreSQLSource) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type PipelineResource. +func (p PipelineResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &p.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &p.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &p.MaxConcurrentConnections) - populate(objectMap, "query", &p.Query) - populate(objectMap, "queryTimeout", &p.QueryTimeout) - populate(objectMap, "sourceRetryCount", &p.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &p.SourceRetryWait) - objectMap["type"] = "PostgreSqlSource" + populate(objectMap, "etag", p.Etag) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "type", p.Type) if p.AdditionalProperties != nil { for key, val := range p.AdditionalProperties { objectMap[key] = val @@ -29581,8 +35747,8 @@ func (p PostgreSQLSource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLSource. -func (p *PostgreSQLSource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineResource. +func (p *PipelineResource) 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) @@ -29590,26 +35756,402 @@ func (p *PostgreSQLSource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "additionalColumns": - err = unpopulate(val, "AdditionalColumns", &p.AdditionalColumns) - delete(rawMsg, key) - case "disableMetricsCollection": - err = unpopulate(val, "DisableMetricsCollection", &p.DisableMetricsCollection) - delete(rawMsg, key) - case "maxConcurrentConnections": - err = unpopulate(val, "MaxConcurrentConnections", &p.MaxConcurrentConnections) - delete(rawMsg, key) - case "query": - err = unpopulate(val, "Query", &p.Query) + case "etag": + err = unpopulate(val, "Etag", &p.Etag) delete(rawMsg, key) - case "queryTimeout": - err = unpopulate(val, "QueryTimeout", &p.QueryTimeout) + case "id": + err = unpopulate(val, "ID", &p.ID) delete(rawMsg, key) - case "sourceRetryCount": - err = unpopulate(val, "SourceRetryCount", &p.SourceRetryCount) + case "name": + err = unpopulate(val, "Name", &p.Name) delete(rawMsg, key) - case "sourceRetryWait": - err = unpopulate(val, "SourceRetryWait", &p.SourceRetryWait) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + default: + if p.AdditionalProperties == nil { + p.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + p.AdditionalProperties[key] = aux + } + 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 PipelineRun. +func (p PipelineRun) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "durationInMs", p.DurationInMs) + populate(objectMap, "invokedBy", p.InvokedBy) + populate(objectMap, "isLatest", p.IsLatest) + populateTimeRFC3339(objectMap, "lastUpdated", p.LastUpdated) + populate(objectMap, "message", p.Message) + populate(objectMap, "parameters", p.Parameters) + populate(objectMap, "pipelineName", p.PipelineName) + populate(objectMap, "runDimensions", p.RunDimensions) + populateTimeRFC3339(objectMap, "runEnd", p.RunEnd) + populate(objectMap, "runGroupId", p.RunGroupID) + populate(objectMap, "runId", p.RunID) + populateTimeRFC3339(objectMap, "runStart", p.RunStart) + populate(objectMap, "status", p.Status) + if p.AdditionalProperties != nil { + for key, val := range p.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRun. +func (p *PipelineRun) 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 "durationInMs": + err = unpopulate(val, "DurationInMs", &p.DurationInMs) + delete(rawMsg, key) + case "invokedBy": + err = unpopulate(val, "InvokedBy", &p.InvokedBy) + delete(rawMsg, key) + case "isLatest": + err = unpopulate(val, "IsLatest", &p.IsLatest) + delete(rawMsg, key) + case "lastUpdated": + err = unpopulateTimeRFC3339(val, "LastUpdated", &p.LastUpdated) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &p.Message) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &p.Parameters) + delete(rawMsg, key) + case "pipelineName": + err = unpopulate(val, "PipelineName", &p.PipelineName) + delete(rawMsg, key) + case "runDimensions": + err = unpopulate(val, "RunDimensions", &p.RunDimensions) + delete(rawMsg, key) + case "runEnd": + err = unpopulateTimeRFC3339(val, "RunEnd", &p.RunEnd) + delete(rawMsg, key) + case "runGroupId": + err = unpopulate(val, "RunGroupID", &p.RunGroupID) + delete(rawMsg, key) + case "runId": + err = unpopulate(val, "RunID", &p.RunID) + delete(rawMsg, key) + case "runStart": + err = unpopulateTimeRFC3339(val, "RunStart", &p.RunStart) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &p.Status) + delete(rawMsg, key) + default: + if p.AdditionalProperties == nil { + p.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + p.AdditionalProperties[key] = aux + } + 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 PipelineRunInvokedBy. +func (p PipelineRunInvokedBy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", p.ID) + populate(objectMap, "invokedByType", p.InvokedByType) + populate(objectMap, "name", p.Name) + populate(objectMap, "pipelineName", p.PipelineName) + populate(objectMap, "pipelineRunId", p.PipelineRunID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRunInvokedBy. +func (p *PipelineRunInvokedBy) 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 "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "invokedByType": + err = unpopulate(val, "InvokedByType", &p.InvokedByType) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "pipelineName": + err = unpopulate(val, "PipelineName", &p.PipelineName) + delete(rawMsg, key) + case "pipelineRunId": + err = unpopulate(val, "PipelineRunID", &p.PipelineRunID) + 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 PipelineRunsQueryResponse. +func (p PipelineRunsQueryResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "continuationToken", p.ContinuationToken) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRunsQueryResponse. +func (p *PipelineRunsQueryResponse) 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 "continuationToken": + err = unpopulate(val, "ContinuationToken", &p.ContinuationToken) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + 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 PolybaseSettings. +func (p PolybaseSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "rejectSampleValue", &p.RejectSampleValue) + populate(objectMap, "rejectType", p.RejectType) + populate(objectMap, "rejectValue", &p.RejectValue) + populate(objectMap, "useTypeDefault", &p.UseTypeDefault) + if p.AdditionalProperties != nil { + for key, val := range p.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PolybaseSettings. +func (p *PolybaseSettings) 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 "rejectSampleValue": + err = unpopulate(val, "RejectSampleValue", &p.RejectSampleValue) + delete(rawMsg, key) + case "rejectType": + err = unpopulate(val, "RejectType", &p.RejectType) + delete(rawMsg, key) + case "rejectValue": + err = unpopulate(val, "RejectValue", &p.RejectValue) + delete(rawMsg, key) + case "useTypeDefault": + err = unpopulate(val, "UseTypeDefault", &p.UseTypeDefault) + delete(rawMsg, key) + default: + if p.AdditionalProperties == nil { + p.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + p.AdditionalProperties[key] = aux + } + 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 PostgreSQLLinkedService. +func (p PostgreSQLLinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "annotations", p.Annotations) + populate(objectMap, "connectVia", p.ConnectVia) + populate(objectMap, "description", p.Description) + populate(objectMap, "parameters", p.Parameters) + objectMap["type"] = "PostgreSql" + populate(objectMap, "typeProperties", p.TypeProperties) + if p.AdditionalProperties != nil { + for key, val := range p.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLLinkedService. +func (p *PostgreSQLLinkedService) 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 "annotations": + err = unpopulate(val, "Annotations", &p.Annotations) + delete(rawMsg, key) + case "connectVia": + err = unpopulate(val, "ConnectVia", &p.ConnectVia) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &p.Parameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &p.TypeProperties) + delete(rawMsg, key) + default: + if p.AdditionalProperties == nil { + p.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + p.AdditionalProperties[key] = aux + } + 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 PostgreSQLLinkedServiceTypeProperties. +func (p PostgreSQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &p.ConnectionString) + populate(objectMap, "encryptedCredential", &p.EncryptedCredential) + populate(objectMap, "password", p.Password) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLLinkedServiceTypeProperties. +func (p *PostgreSQLLinkedServiceTypeProperties) 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 "connectionString": + err = unpopulate(val, "ConnectionString", &p.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &p.EncryptedCredential) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &p.Password) + 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 PostgreSQLSource. +func (p PostgreSQLSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "additionalColumns", &p.AdditionalColumns) + populate(objectMap, "disableMetricsCollection", &p.DisableMetricsCollection) + populate(objectMap, "maxConcurrentConnections", &p.MaxConcurrentConnections) + populate(objectMap, "query", &p.Query) + populate(objectMap, "queryTimeout", &p.QueryTimeout) + populate(objectMap, "sourceRetryCount", &p.SourceRetryCount) + populate(objectMap, "sourceRetryWait", &p.SourceRetryWait) + objectMap["type"] = "PostgreSqlSource" + if p.AdditionalProperties != nil { + for key, val := range p.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLSource. +func (p *PostgreSQLSource) 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 "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &p.AdditionalColumns) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &p.DisableMetricsCollection) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &p.MaxConcurrentConnections) + delete(rawMsg, key) + case "query": + err = unpopulate(val, "Query", &p.Query) + delete(rawMsg, key) + case "queryTimeout": + err = unpopulate(val, "QueryTimeout", &p.QueryTimeout) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &p.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &p.SourceRetryWait) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &p.Type) @@ -29706,42 +36248,756 @@ func (p *PostgreSQLTableDataset) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PowerQuerySinkMapping. -func (p PowerQuerySinkMapping) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type PostgreSQLTableDatasetTypeProperties. +func (p PostgreSQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &p.Schema) + populate(objectMap, "table", &p.Table) + populate(objectMap, "tableName", &p.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLTableDatasetTypeProperties. +func (p *PostgreSQLTableDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &p.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &p.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &p.TableName) + 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 PowerQuerySink. +func (p PowerQuerySink) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataset", p.Dataset) + populate(objectMap, "description", p.Description) + populate(objectMap, "flowlet", p.Flowlet) + populate(objectMap, "linkedService", p.LinkedService) + populate(objectMap, "name", p.Name) + populate(objectMap, "rejectedDataLinkedService", p.RejectedDataLinkedService) + populate(objectMap, "schemaLinkedService", p.SchemaLinkedService) + populate(objectMap, "script", p.Script) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PowerQuerySink. +func (p *PowerQuerySink) 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 "dataset": + err = unpopulate(val, "Dataset", &p.Dataset) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + case "flowlet": + err = unpopulate(val, "Flowlet", &p.Flowlet) + delete(rawMsg, key) + case "linkedService": + err = unpopulate(val, "LinkedService", &p.LinkedService) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "rejectedDataLinkedService": + err = unpopulate(val, "RejectedDataLinkedService", &p.RejectedDataLinkedService) + delete(rawMsg, key) + case "schemaLinkedService": + err = unpopulate(val, "SchemaLinkedService", &p.SchemaLinkedService) + delete(rawMsg, key) + case "script": + err = unpopulate(val, "Script", &p.Script) + 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 PowerQuerySinkMapping. +func (p PowerQuerySinkMapping) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataflowSinks", p.DataflowSinks) + populate(objectMap, "queryName", p.QueryName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PowerQuerySinkMapping. +func (p *PowerQuerySinkMapping) 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 "dataflowSinks": + err = unpopulate(val, "DataflowSinks", &p.DataflowSinks) + delete(rawMsg, key) + case "queryName": + err = unpopulate(val, "QueryName", &p.QueryName) + 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 PowerQuerySource. +func (p PowerQuerySource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataset", p.Dataset) + populate(objectMap, "description", p.Description) + populate(objectMap, "flowlet", p.Flowlet) + populate(objectMap, "linkedService", p.LinkedService) + populate(objectMap, "name", p.Name) + populate(objectMap, "schemaLinkedService", p.SchemaLinkedService) + populate(objectMap, "script", p.Script) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PowerQuerySource. +func (p *PowerQuerySource) 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 "dataset": + err = unpopulate(val, "Dataset", &p.Dataset) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + case "flowlet": + err = unpopulate(val, "Flowlet", &p.Flowlet) + delete(rawMsg, key) + case "linkedService": + err = unpopulate(val, "LinkedService", &p.LinkedService) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "schemaLinkedService": + err = unpopulate(val, "SchemaLinkedService", &p.SchemaLinkedService) + delete(rawMsg, key) + case "script": + err = unpopulate(val, "Script", &p.Script) + 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 PowerQueryTypeProperties. +func (p PowerQueryTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "documentLocale", p.DocumentLocale) + populate(objectMap, "script", p.Script) + populate(objectMap, "sources", p.Sources) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PowerQueryTypeProperties. +func (p *PowerQueryTypeProperties) 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 "documentLocale": + err = unpopulate(val, "DocumentLocale", &p.DocumentLocale) + delete(rawMsg, key) + case "script": + err = unpopulate(val, "Script", &p.Script) + delete(rawMsg, key) + case "sources": + err = unpopulate(val, "Sources", &p.Sources) + 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 PrestoDatasetTypeProperties. +func (p PrestoDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &p.Schema) + populate(objectMap, "table", &p.Table) + populate(objectMap, "tableName", &p.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrestoDatasetTypeProperties. +func (p *PrestoDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &p.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &p.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &p.TableName) + 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 PrestoLinkedService. +func (p PrestoLinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "annotations", p.Annotations) + populate(objectMap, "connectVia", p.ConnectVia) + populate(objectMap, "description", p.Description) + populate(objectMap, "parameters", p.Parameters) + objectMap["type"] = "Presto" + populate(objectMap, "typeProperties", p.TypeProperties) + if p.AdditionalProperties != nil { + for key, val := range p.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrestoLinkedService. +func (p *PrestoLinkedService) 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 "annotations": + err = unpopulate(val, "Annotations", &p.Annotations) + delete(rawMsg, key) + case "connectVia": + err = unpopulate(val, "ConnectVia", &p.ConnectVia) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &p.Parameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &p.TypeProperties) + delete(rawMsg, key) + default: + if p.AdditionalProperties == nil { + p.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + p.AdditionalProperties[key] = aux + } + 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 PrestoLinkedServiceTypeProperties. +func (p PrestoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "allowHostNameCNMismatch", &p.AllowHostNameCNMismatch) + populate(objectMap, "allowSelfSignedServerCert", &p.AllowSelfSignedServerCert) + populate(objectMap, "authenticationType", p.AuthenticationType) + populate(objectMap, "catalog", &p.Catalog) + populate(objectMap, "enableSsl", &p.EnableSSL) + populate(objectMap, "encryptedCredential", &p.EncryptedCredential) + populate(objectMap, "host", &p.Host) + populate(objectMap, "password", p.Password) + populate(objectMap, "port", &p.Port) + populate(objectMap, "serverVersion", &p.ServerVersion) + populate(objectMap, "timeZoneID", &p.TimeZoneID) + populate(objectMap, "trustedCertPath", &p.TrustedCertPath) + populate(objectMap, "useSystemTrustStore", &p.UseSystemTrustStore) + populate(objectMap, "username", &p.Username) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrestoLinkedServiceTypeProperties. +func (p *PrestoLinkedServiceTypeProperties) 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 "allowHostNameCNMismatch": + err = unpopulate(val, "AllowHostNameCNMismatch", &p.AllowHostNameCNMismatch) + delete(rawMsg, key) + case "allowSelfSignedServerCert": + err = unpopulate(val, "AllowSelfSignedServerCert", &p.AllowSelfSignedServerCert) + delete(rawMsg, key) + case "authenticationType": + err = unpopulate(val, "AuthenticationType", &p.AuthenticationType) + delete(rawMsg, key) + case "catalog": + err = unpopulate(val, "Catalog", &p.Catalog) + delete(rawMsg, key) + case "enableSsl": + err = unpopulate(val, "EnableSSL", &p.EnableSSL) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &p.EncryptedCredential) + delete(rawMsg, key) + case "host": + err = unpopulate(val, "Host", &p.Host) + delete(rawMsg, key) + case "password": + p.Password, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "port": + err = unpopulate(val, "Port", &p.Port) + delete(rawMsg, key) + case "serverVersion": + err = unpopulate(val, "ServerVersion", &p.ServerVersion) + delete(rawMsg, key) + case "timeZoneID": + err = unpopulate(val, "TimeZoneID", &p.TimeZoneID) + delete(rawMsg, key) + case "trustedCertPath": + err = unpopulate(val, "TrustedCertPath", &p.TrustedCertPath) + delete(rawMsg, key) + case "useSystemTrustStore": + err = unpopulate(val, "UseSystemTrustStore", &p.UseSystemTrustStore) + delete(rawMsg, key) + case "username": + err = unpopulate(val, "Username", &p.Username) + 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 PrestoObjectDataset. +func (p PrestoObjectDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "annotations", p.Annotations) + populate(objectMap, "description", p.Description) + populate(objectMap, "folder", p.Folder) + populate(objectMap, "linkedServiceName", p.LinkedServiceName) + populate(objectMap, "parameters", p.Parameters) + populate(objectMap, "schema", &p.Schema) + populate(objectMap, "structure", &p.Structure) + objectMap["type"] = "PrestoObject" + populate(objectMap, "typeProperties", p.TypeProperties) + if p.AdditionalProperties != nil { + for key, val := range p.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrestoObjectDataset. +func (p *PrestoObjectDataset) 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 "annotations": + err = unpopulate(val, "Annotations", &p.Annotations) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + case "folder": + err = unpopulate(val, "Folder", &p.Folder) + delete(rawMsg, key) + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &p.LinkedServiceName) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &p.Parameters) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &p.Schema) + delete(rawMsg, key) + case "structure": + err = unpopulate(val, "Structure", &p.Structure) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &p.TypeProperties) + delete(rawMsg, key) + default: + if p.AdditionalProperties == nil { + p.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + p.AdditionalProperties[key] = aux + } + 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 PrestoSource. +func (p PrestoSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "additionalColumns", &p.AdditionalColumns) + populate(objectMap, "disableMetricsCollection", &p.DisableMetricsCollection) + populate(objectMap, "maxConcurrentConnections", &p.MaxConcurrentConnections) + populate(objectMap, "query", &p.Query) + populate(objectMap, "queryTimeout", &p.QueryTimeout) + populate(objectMap, "sourceRetryCount", &p.SourceRetryCount) + populate(objectMap, "sourceRetryWait", &p.SourceRetryWait) + objectMap["type"] = "PrestoSource" + if p.AdditionalProperties != nil { + for key, val := range p.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrestoSource. +func (p *PrestoSource) 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 "additionalColumns": + err = unpopulate(val, "AdditionalColumns", &p.AdditionalColumns) + delete(rawMsg, key) + case "disableMetricsCollection": + err = unpopulate(val, "DisableMetricsCollection", &p.DisableMetricsCollection) + delete(rawMsg, key) + case "maxConcurrentConnections": + err = unpopulate(val, "MaxConcurrentConnections", &p.MaxConcurrentConnections) + delete(rawMsg, key) + case "query": + err = unpopulate(val, "Query", &p.Query) + delete(rawMsg, key) + case "queryTimeout": + err = unpopulate(val, "QueryTimeout", &p.QueryTimeout) + delete(rawMsg, key) + case "sourceRetryCount": + err = unpopulate(val, "SourceRetryCount", &p.SourceRetryCount) + delete(rawMsg, key) + case "sourceRetryWait": + err = unpopulate(val, "SourceRetryWait", &p.SourceRetryWait) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + default: + if p.AdditionalProperties == nil { + p.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + p.AdditionalProperties[key] = aux + } + 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 PrivateEndpoint. +func (p PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", p.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint. +func (p *PrivateEndpoint) 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 "id": + err = unpopulate(val, "ID", &p.ID) + 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 PrivateEndpointConnectionListResponse. +func (p PrivateEndpointConnectionListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResponse. +func (p *PrivateEndpointConnectionListResponse) 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 "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + 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 PrivateEndpointConnectionResource. +func (p PrivateEndpointConnectionResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "etag", p.Etag) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionResource. +func (p *PrivateEndpointConnectionResource) 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 "etag": + err = unpopulate(val, "Etag", &p.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + 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 PrivateLinkConnectionApprovalRequest. +func (p PrivateLinkConnectionApprovalRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "privateEndpoint", p.PrivateEndpoint) + populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkConnectionApprovalRequest. +func (p *PrivateLinkConnectionApprovalRequest) 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 "privateEndpoint": + err = unpopulate(val, "PrivateEndpoint", &p.PrivateEndpoint) + delete(rawMsg, key) + case "privateLinkServiceConnectionState": + err = unpopulate(val, "PrivateLinkServiceConnectionState", &p.PrivateLinkServiceConnectionState) + 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 PrivateLinkConnectionApprovalRequestResource. +func (p PrivateLinkConnectionApprovalRequestResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "etag", p.Etag) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkConnectionApprovalRequestResource. +func (p *PrivateLinkConnectionApprovalRequestResource) 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 "etag": + err = unpopulate(val, "Etag", &p.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + 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 PrivateLinkConnectionState. +func (p PrivateLinkConnectionState) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "dataflowSinks", p.DataflowSinks) - populate(objectMap, "queryName", p.QueryName) + populate(objectMap, "actionsRequired", p.ActionsRequired) + populate(objectMap, "description", p.Description) + populate(objectMap, "status", p.Status) return json.Marshal(objectMap) } -// MarshalJSON implements the json.Marshaller interface for type PowerQueryTypeProperties. -func (p PowerQueryTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "documentLocale", p.DocumentLocale) - populate(objectMap, "script", p.Script) - populate(objectMap, "sources", p.Sources) - return json.Marshal(objectMap) +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkConnectionState. +func (p *PrivateLinkConnectionState) 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 "actionsRequired": + err = unpopulate(val, "ActionsRequired", &p.ActionsRequired) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &p.Status) + 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 PrestoLinkedService. -func (p PrestoLinkedService) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. +func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", p.Annotations) - populate(objectMap, "connectVia", p.ConnectVia) - populate(objectMap, "description", p.Description) - populate(objectMap, "parameters", p.Parameters) - objectMap["type"] = "Presto" - populate(objectMap, "typeProperties", p.TypeProperties) - if p.AdditionalProperties != nil { - for key, val := range p.AdditionalProperties { - objectMap[key] = val - } - } + populate(objectMap, "etag", p.Etag) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "type", p.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PrestoLinkedService. -func (p *PrestoLinkedService) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource. +func (p *PrivateLinkResource) 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) @@ -29749,34 +37005,21 @@ func (p *PrestoLinkedService) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "annotations": - err = unpopulate(val, "Annotations", &p.Annotations) + case "etag": + err = unpopulate(val, "Etag", &p.Etag) delete(rawMsg, key) - case "connectVia": - err = unpopulate(val, "ConnectVia", &p.ConnectVia) + case "id": + err = unpopulate(val, "ID", &p.ID) delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &p.Description) + case "name": + err = unpopulate(val, "Name", &p.Name) delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &p.Parameters) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &p.Type) delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &p.TypeProperties) - delete(rawMsg, key) - default: - if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - p.AdditionalProperties[key] = aux - } - delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", p, err) @@ -29785,28 +37028,17 @@ func (p *PrestoLinkedService) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PrestoLinkedServiceTypeProperties. -func (p PrestoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. +func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "allowHostNameCNMismatch", &p.AllowHostNameCNMismatch) - populate(objectMap, "allowSelfSignedServerCert", &p.AllowSelfSignedServerCert) - populate(objectMap, "authenticationType", p.AuthenticationType) - populate(objectMap, "catalog", &p.Catalog) - populate(objectMap, "enableSsl", &p.EnableSSL) - populate(objectMap, "encryptedCredential", &p.EncryptedCredential) - populate(objectMap, "host", &p.Host) - populate(objectMap, "password", p.Password) - populate(objectMap, "port", &p.Port) - populate(objectMap, "serverVersion", &p.ServerVersion) - populate(objectMap, "timeZoneID", &p.TimeZoneID) - populate(objectMap, "trustedCertPath", &p.TrustedCertPath) - populate(objectMap, "useSystemTrustStore", &p.UseSystemTrustStore) - populate(objectMap, "username", &p.Username) + populate(objectMap, "groupId", p.GroupID) + populate(objectMap, "requiredMembers", p.RequiredMembers) + populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PrestoLinkedServiceTypeProperties. -func (p *PrestoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties. +func (p *PrivateLinkResourceProperties) 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) @@ -29814,47 +37046,14 @@ func (p *PrestoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "allowHostNameCNMismatch": - err = unpopulate(val, "AllowHostNameCNMismatch", &p.AllowHostNameCNMismatch) - delete(rawMsg, key) - case "allowSelfSignedServerCert": - err = unpopulate(val, "AllowSelfSignedServerCert", &p.AllowSelfSignedServerCert) - delete(rawMsg, key) - case "authenticationType": - err = unpopulate(val, "AuthenticationType", &p.AuthenticationType) - delete(rawMsg, key) - case "catalog": - err = unpopulate(val, "Catalog", &p.Catalog) - delete(rawMsg, key) - case "enableSsl": - err = unpopulate(val, "EnableSSL", &p.EnableSSL) - delete(rawMsg, key) - case "encryptedCredential": - err = unpopulate(val, "EncryptedCredential", &p.EncryptedCredential) - delete(rawMsg, key) - case "host": - err = unpopulate(val, "Host", &p.Host) - delete(rawMsg, key) - case "password": - p.Password, err = unmarshalSecretBaseClassification(val) - delete(rawMsg, key) - case "port": - err = unpopulate(val, "Port", &p.Port) - delete(rawMsg, key) - case "serverVersion": - err = unpopulate(val, "ServerVersion", &p.ServerVersion) - delete(rawMsg, key) - case "timeZoneID": - err = unpopulate(val, "TimeZoneID", &p.TimeZoneID) - delete(rawMsg, key) - case "trustedCertPath": - err = unpopulate(val, "TrustedCertPath", &p.TrustedCertPath) + case "groupId": + err = unpopulate(val, "GroupID", &p.GroupID) delete(rawMsg, key) - case "useSystemTrustStore": - err = unpopulate(val, "UseSystemTrustStore", &p.UseSystemTrustStore) + case "requiredMembers": + err = unpopulate(val, "RequiredMembers", &p.RequiredMembers) delete(rawMsg, key) - case "username": - err = unpopulate(val, "Username", &p.Username) + case "requiredZoneNames": + err = unpopulate(val, "RequiredZoneNames", &p.RequiredZoneNames) delete(rawMsg, key) } if err != nil { @@ -29864,28 +37063,15 @@ func (p *PrestoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PrestoObjectDataset. -func (p PrestoObjectDataset) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesWrapper. +func (p PrivateLinkResourcesWrapper) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", p.Annotations) - populate(objectMap, "description", p.Description) - populate(objectMap, "folder", p.Folder) - populate(objectMap, "linkedServiceName", p.LinkedServiceName) - populate(objectMap, "parameters", p.Parameters) - populate(objectMap, "schema", &p.Schema) - populate(objectMap, "structure", &p.Structure) - objectMap["type"] = "PrestoObject" - populate(objectMap, "typeProperties", p.TypeProperties) - if p.AdditionalProperties != nil { - for key, val := range p.AdditionalProperties { - objectMap[key] = val - } - } + populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PrestoObjectDataset. -func (p *PrestoObjectDataset) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourcesWrapper. +func (p *PrivateLinkResourcesWrapper) 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) @@ -29893,42 +37079,8 @@ func (p *PrestoObjectDataset) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "annotations": - err = unpopulate(val, "Annotations", &p.Annotations) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &p.Description) - delete(rawMsg, key) - case "folder": - err = unpopulate(val, "Folder", &p.Folder) - delete(rawMsg, key) - case "linkedServiceName": - err = unpopulate(val, "LinkedServiceName", &p.LinkedServiceName) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &p.Parameters) - delete(rawMsg, key) - case "schema": - err = unpopulate(val, "Schema", &p.Schema) - delete(rawMsg, key) - case "structure": - err = unpopulate(val, "Structure", &p.Structure) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &p.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &p.TypeProperties) - delete(rawMsg, key) - default: - if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - p.AdditionalProperties[key] = aux - } + case "value": + err = unpopulate(val, "Value", &p.Value) delete(rawMsg, key) } if err != nil { @@ -29938,27 +37090,15 @@ func (p *PrestoObjectDataset) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PrestoSource. -func (p PrestoSource) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type PurviewConfiguration. +func (p PurviewConfiguration) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "additionalColumns", &p.AdditionalColumns) - populate(objectMap, "disableMetricsCollection", &p.DisableMetricsCollection) - populate(objectMap, "maxConcurrentConnections", &p.MaxConcurrentConnections) - populate(objectMap, "query", &p.Query) - populate(objectMap, "queryTimeout", &p.QueryTimeout) - populate(objectMap, "sourceRetryCount", &p.SourceRetryCount) - populate(objectMap, "sourceRetryWait", &p.SourceRetryWait) - objectMap["type"] = "PrestoSource" - if p.AdditionalProperties != nil { - for key, val := range p.AdditionalProperties { - objectMap[key] = val - } - } + populate(objectMap, "purviewResourceId", p.PurviewResourceID) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PrestoSource. -func (p *PrestoSource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PurviewConfiguration. +func (p *PurviewConfiguration) 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) @@ -29966,39 +37106,8 @@ func (p *PrestoSource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "additionalColumns": - err = unpopulate(val, "AdditionalColumns", &p.AdditionalColumns) - delete(rawMsg, key) - case "disableMetricsCollection": - err = unpopulate(val, "DisableMetricsCollection", &p.DisableMetricsCollection) - delete(rawMsg, key) - case "maxConcurrentConnections": - err = unpopulate(val, "MaxConcurrentConnections", &p.MaxConcurrentConnections) - delete(rawMsg, key) - case "query": - err = unpopulate(val, "Query", &p.Query) - delete(rawMsg, key) - case "queryTimeout": - err = unpopulate(val, "QueryTimeout", &p.QueryTimeout) - delete(rawMsg, key) - case "sourceRetryCount": - err = unpopulate(val, "SourceRetryCount", &p.SourceRetryCount) - delete(rawMsg, key) - case "sourceRetryWait": - err = unpopulate(val, "SourceRetryWait", &p.SourceRetryWait) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &p.Type) - delete(rawMsg, key) - default: - if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - p.AdditionalProperties[key] = aux - } + case "purviewResourceId": + err = unpopulate(val, "PurviewResourceID", &p.PurviewResourceID) delete(rawMsg, key) } if err != nil { @@ -30008,15 +37117,37 @@ func (p *PrestoSource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. -func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type QueryDataFlowDebugSessionsResponse. +func (q QueryDataFlowDebugSessionsResponse) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "groupId", p.GroupID) - populate(objectMap, "requiredMembers", p.RequiredMembers) - populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) + populate(objectMap, "nextLink", q.NextLink) + populate(objectMap, "value", q.Value) return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type QueryDataFlowDebugSessionsResponse. +func (q *QueryDataFlowDebugSessionsResponse) 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", q, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &q.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &q.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", q, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type QuickBooksLinkedService. func (q QuickBooksLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -30529,6 +37660,37 @@ func (r *RedirectIncompatibleRowSettings) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type RedshiftUnloadSettings. +func (r RedshiftUnloadSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "bucketName", &r.BucketName) + populate(objectMap, "s3LinkedServiceName", r.S3LinkedServiceName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RedshiftUnloadSettings. +func (r *RedshiftUnloadSettings) 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 "bucketName": + err = unpopulate(val, "BucketName", &r.BucketName) + delete(rawMsg, key) + case "s3LinkedServiceName": + err = unpopulate(val, "S3LinkedServiceName", &r.S3LinkedServiceName) + 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 RelationalSource. func (r RelationalSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -30669,6 +37831,68 @@ func (r *RelationalTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type RelationalTableDatasetTypeProperties. +func (r RelationalTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "tableName", &r.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RelationalTableDatasetTypeProperties. +func (r *RelationalTableDatasetTypeProperties) 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 "tableName": + err = unpopulate(val, "TableName", &r.TableName) + 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 RemotePrivateEndpointConnection. +func (r RemotePrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "privateEndpoint", r.PrivateEndpoint) + populate(objectMap, "privateLinkServiceConnectionState", r.PrivateLinkServiceConnectionState) + populate(objectMap, "provisioningState", r.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RemotePrivateEndpointConnection. +func (r *RemotePrivateEndpointConnection) 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 "privateEndpoint": + err = unpopulate(val, "PrivateEndpoint", &r.PrivateEndpoint) + delete(rawMsg, key) + case "privateLinkServiceConnectionState": + err = unpopulate(val, "PrivateLinkServiceConnectionState", &r.PrivateLinkServiceConnectionState) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) + 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 RerunTumblingWindowTrigger. func (r RerunTumblingWindowTrigger) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -30778,6 +38002,41 @@ func (r Resource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type Resource. +func (r *Resource) 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 "eTag": + err = unpopulate(val, "ETag", &r.ETag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &r.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &r.Tags) + 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 ResponsysLinkedService. func (r ResponsysLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -31109,6 +38368,49 @@ func (r *RestResourceDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type RestResourceDatasetTypeProperties. +func (r RestResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "additionalHeaders", &r.AdditionalHeaders) + populate(objectMap, "paginationRules", &r.PaginationRules) + populate(objectMap, "relativeUrl", &r.RelativeURL) + populate(objectMap, "requestBody", &r.RequestBody) + populate(objectMap, "requestMethod", &r.RequestMethod) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestResourceDatasetTypeProperties. +func (r *RestResourceDatasetTypeProperties) 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 "additionalHeaders": + err = unpopulate(val, "AdditionalHeaders", &r.AdditionalHeaders) + delete(rawMsg, key) + case "paginationRules": + err = unpopulate(val, "PaginationRules", &r.PaginationRules) + delete(rawMsg, key) + case "relativeUrl": + err = unpopulate(val, "RelativeURL", &r.RelativeURL) + delete(rawMsg, key) + case "requestBody": + err = unpopulate(val, "RequestBody", &r.RequestBody) + delete(rawMsg, key) + case "requestMethod": + err = unpopulate(val, "RequestMethod", &r.RequestMethod) + 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 RestServiceLinkedService. func (r RestServiceLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -31438,6 +38740,37 @@ func (r *RestSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type RetryPolicy. +func (r RetryPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "count", &r.Count) + populate(objectMap, "intervalInSeconds", r.IntervalInSeconds) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RetryPolicy. +func (r *RetryPolicy) 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 "count": + err = unpopulate(val, "Count", &r.Count) + delete(rawMsg, key) + case "intervalInSeconds": + err = unpopulate(val, "IntervalInSeconds", &r.IntervalInSeconds) + 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 RunFilterParameters. func (r RunFilterParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -31490,6 +38823,63 @@ func (r RunQueryFilter) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type RunQueryFilter. +func (r *RunQueryFilter) 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 "operand": + err = unpopulate(val, "Operand", &r.Operand) + delete(rawMsg, key) + case "operator": + err = unpopulate(val, "Operator", &r.Operator) + delete(rawMsg, key) + case "values": + err = unpopulate(val, "Values", &r.Values) + 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 RunQueryOrderBy. +func (r RunQueryOrderBy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "order", r.Order) + populate(objectMap, "orderBy", r.OrderBy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunQueryOrderBy. +func (r *RunQueryOrderBy) 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 "order": + err = unpopulate(val, "Order", &r.Order) + delete(rawMsg, key) + case "orderBy": + err = unpopulate(val, "OrderBy", &r.OrderBy) + 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 SQLAlwaysEncryptedProperties. func (s SQLAlwaysEncryptedProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -31717,6 +39107,37 @@ func (s *SQLDWSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SQLDWUpsertSettings. +func (s SQLDWUpsertSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "interimSchemaName", &s.InterimSchemaName) + populate(objectMap, "keys", &s.Keys) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLDWUpsertSettings. +func (s *SQLDWUpsertSettings) 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 "interimSchemaName": + err = unpopulate(val, "InterimSchemaName", &s.InterimSchemaName) + delete(rawMsg, key) + case "keys": + err = unpopulate(val, "Keys", &s.Keys) + 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 SQLMISink. func (s SQLMISink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -31909,6 +39330,41 @@ func (s *SQLMISource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SQLPartitionSettings. +func (s SQLPartitionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "partitionColumnName", &s.PartitionColumnName) + populate(objectMap, "partitionLowerBound", &s.PartitionLowerBound) + populate(objectMap, "partitionUpperBound", &s.PartitionUpperBound) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPartitionSettings. +func (s *SQLPartitionSettings) 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 "partitionColumnName": + err = unpopulate(val, "PartitionColumnName", &s.PartitionColumnName) + delete(rawMsg, key) + case "partitionLowerBound": + err = unpopulate(val, "PartitionLowerBound", &s.PartitionLowerBound) + delete(rawMsg, key) + case "partitionUpperBound": + err = unpopulate(val, "PartitionUpperBound", &s.PartitionUpperBound) + 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 SQLServerLinkedService. func (s SQLServerLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -32276,6 +39732,37 @@ func (s *SQLServerStoredProcedureActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SQLServerStoredProcedureActivityTypeProperties. +func (s SQLServerStoredProcedureActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "storedProcedureName", &s.StoredProcedureName) + populate(objectMap, "storedProcedureParameters", &s.StoredProcedureParameters) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerStoredProcedureActivityTypeProperties. +func (s *SQLServerStoredProcedureActivityTypeProperties) 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 "storedProcedureName": + err = unpopulate(val, "StoredProcedureName", &s.StoredProcedureName) + delete(rawMsg, key) + case "storedProcedureParameters": + err = unpopulate(val, "StoredProcedureParameters", &s.StoredProcedureParameters) + 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 SQLServerTableDataset. func (s SQLServerTableDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -32350,6 +39837,41 @@ func (s *SQLServerTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SQLServerTableDatasetTypeProperties. +func (s SQLServerTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &s.Schema) + populate(objectMap, "table", &s.Table) + populate(objectMap, "tableName", &s.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerTableDatasetTypeProperties. +func (s *SQLServerTableDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &s.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &s.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &s.TableName) + 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 SQLSink. func (s SQLSink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -32542,6 +40064,41 @@ func (s *SQLSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SQLUpsertSettings. +func (s SQLUpsertSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "interimSchemaName", &s.InterimSchemaName) + populate(objectMap, "keys", &s.Keys) + populate(objectMap, "useTempDB", &s.UseTempDB) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLUpsertSettings. +func (s *SQLUpsertSettings) 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 "interimSchemaName": + err = unpopulate(val, "InterimSchemaName", &s.InterimSchemaName) + delete(rawMsg, key) + case "keys": + err = unpopulate(val, "Keys", &s.Keys) + delete(rawMsg, key) + case "useTempDB": + err = unpopulate(val, "UseTempDB", &s.UseTempDB) + 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 SSISAccessCredential. func (s SSISAccessCredential) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -32577,6 +40134,208 @@ func (s *SSISAccessCredential) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SSISChildPackage. +func (s SSISChildPackage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "packageContent", &s.PackageContent) + populate(objectMap, "packageLastModifiedDate", s.PackageLastModifiedDate) + populate(objectMap, "packageName", s.PackageName) + populate(objectMap, "packagePath", &s.PackagePath) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSISChildPackage. +func (s *SSISChildPackage) 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 "packageContent": + err = unpopulate(val, "PackageContent", &s.PackageContent) + delete(rawMsg, key) + case "packageLastModifiedDate": + err = unpopulate(val, "PackageLastModifiedDate", &s.PackageLastModifiedDate) + delete(rawMsg, key) + case "packageName": + err = unpopulate(val, "PackageName", &s.PackageName) + delete(rawMsg, key) + case "packagePath": + err = unpopulate(val, "PackagePath", &s.PackagePath) + 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 SSISExecutionCredential. +func (s SSISExecutionCredential) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "domain", &s.Domain) + populate(objectMap, "password", s.Password) + populate(objectMap, "userName", &s.UserName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSISExecutionCredential. +func (s *SSISExecutionCredential) 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 "domain": + err = unpopulate(val, "Domain", &s.Domain) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &s.Password) + delete(rawMsg, key) + case "userName": + err = unpopulate(val, "UserName", &s.UserName) + 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 SSISExecutionParameter. +func (s SSISExecutionParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", &s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSISExecutionParameter. +func (s *SSISExecutionParameter) 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 "value": + err = unpopulate(val, "Value", &s.Value) + 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 SSISLogLocation. +func (s SSISLogLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "logPath", &s.LogPath) + populate(objectMap, "type", s.Type) + populate(objectMap, "typeProperties", s.TypeProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSISLogLocation. +func (s *SSISLogLocation) 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 "logPath": + err = unpopulate(val, "LogPath", &s.LogPath) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &s.TypeProperties) + 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 SSISLogLocationTypeProperties. +func (s SSISLogLocationTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "accessCredential", s.AccessCredential) + populate(objectMap, "logRefreshInterval", &s.LogRefreshInterval) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSISLogLocationTypeProperties. +func (s *SSISLogLocationTypeProperties) 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 "accessCredential": + err = unpopulate(val, "AccessCredential", &s.AccessCredential) + delete(rawMsg, key) + case "logRefreshInterval": + err = unpopulate(val, "LogRefreshInterval", &s.LogRefreshInterval) + 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 SSISPackageLocation. +func (s SSISPackageLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "packagePath", &s.PackagePath) + populate(objectMap, "type", s.Type) + populate(objectMap, "typeProperties", s.TypeProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSISPackageLocation. +func (s *SSISPackageLocation) 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 "packagePath": + err = unpopulate(val, "PackagePath", &s.PackagePath) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &s.TypeProperties) + 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 SSISPackageLocationTypeProperties. func (s SSISPackageLocationTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -32632,6 +40391,37 @@ func (s *SSISPackageLocationTypeProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SSISPropertyOverride. +func (s SSISPropertyOverride) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "isSensitive", s.IsSensitive) + populate(objectMap, "value", &s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SSISPropertyOverride. +func (s *SSISPropertyOverride) 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 "isSensitive": + err = unpopulate(val, "IsSensitive", &s.IsSensitive) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + 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 SalesforceLinkedService. func (s SalesforceLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -33072,25 +40862,229 @@ func (s *SalesforceObjectDataset) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudLinkedService. -func (s SalesforceServiceCloudLinkedService) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type SalesforceObjectDatasetTypeProperties. +func (s SalesforceObjectDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "objectApiName", &s.ObjectAPIName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceObjectDatasetTypeProperties. +func (s *SalesforceObjectDatasetTypeProperties) 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 "objectApiName": + err = unpopulate(val, "ObjectAPIName", &s.ObjectAPIName) + 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 SalesforceServiceCloudLinkedService. +func (s SalesforceServiceCloudLinkedService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "annotations", s.Annotations) + populate(objectMap, "connectVia", s.ConnectVia) + populate(objectMap, "description", s.Description) + populate(objectMap, "parameters", s.Parameters) + objectMap["type"] = "SalesforceServiceCloud" + populate(objectMap, "typeProperties", s.TypeProperties) + if s.AdditionalProperties != nil { + for key, val := range s.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudLinkedService. +func (s *SalesforceServiceCloudLinkedService) 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 "annotations": + err = unpopulate(val, "Annotations", &s.Annotations) + delete(rawMsg, key) + case "connectVia": + err = unpopulate(val, "ConnectVia", &s.ConnectVia) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &s.Parameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &s.TypeProperties) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + s.AdditionalProperties[key] = aux + } + 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 SalesforceServiceCloudLinkedServiceTypeProperties. +func (s SalesforceServiceCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "apiVersion", &s.APIVersion) + populate(objectMap, "encryptedCredential", &s.EncryptedCredential) + populate(objectMap, "environmentUrl", &s.EnvironmentURL) + populate(objectMap, "extendedProperties", &s.ExtendedProperties) + populate(objectMap, "password", s.Password) + populate(objectMap, "securityToken", s.SecurityToken) + populate(objectMap, "username", &s.Username) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudLinkedServiceTypeProperties. +func (s *SalesforceServiceCloudLinkedServiceTypeProperties) 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 "apiVersion": + err = unpopulate(val, "APIVersion", &s.APIVersion) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &s.EncryptedCredential) + delete(rawMsg, key) + case "environmentUrl": + err = unpopulate(val, "EnvironmentURL", &s.EnvironmentURL) + delete(rawMsg, key) + case "extendedProperties": + err = unpopulate(val, "ExtendedProperties", &s.ExtendedProperties) + delete(rawMsg, key) + case "password": + s.Password, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "securityToken": + s.SecurityToken, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "username": + err = unpopulate(val, "Username", &s.Username) + 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 SalesforceServiceCloudObjectDataset. +func (s SalesforceServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "annotations", s.Annotations) + populate(objectMap, "description", s.Description) + populate(objectMap, "folder", s.Folder) + populate(objectMap, "linkedServiceName", s.LinkedServiceName) + populate(objectMap, "parameters", s.Parameters) + populate(objectMap, "schema", &s.Schema) + populate(objectMap, "structure", &s.Structure) + objectMap["type"] = "SalesforceServiceCloudObject" + populate(objectMap, "typeProperties", s.TypeProperties) + if s.AdditionalProperties != nil { + for key, val := range s.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudObjectDataset. +func (s *SalesforceServiceCloudObjectDataset) 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 "annotations": + err = unpopulate(val, "Annotations", &s.Annotations) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "folder": + err = unpopulate(val, "Folder", &s.Folder) + delete(rawMsg, key) + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &s.LinkedServiceName) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &s.Parameters) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &s.Schema) + delete(rawMsg, key) + case "structure": + err = unpopulate(val, "Structure", &s.Structure) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &s.TypeProperties) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + s.AdditionalProperties[key] = aux + } + 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 SalesforceServiceCloudObjectDatasetTypeProperties. +func (s SalesforceServiceCloudObjectDatasetTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", s.Annotations) - populate(objectMap, "connectVia", s.ConnectVia) - populate(objectMap, "description", s.Description) - populate(objectMap, "parameters", s.Parameters) - objectMap["type"] = "SalesforceServiceCloud" - populate(objectMap, "typeProperties", s.TypeProperties) - if s.AdditionalProperties != nil { - for key, val := range s.AdditionalProperties { - objectMap[key] = val - } - } + populate(objectMap, "objectApiName", &s.ObjectAPIName) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudLinkedService. -func (s *SalesforceServiceCloudLinkedService) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudObjectDatasetTypeProperties. +func (s *SalesforceServiceCloudObjectDatasetTypeProperties) 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) @@ -33098,158 +41092,8 @@ func (s *SalesforceServiceCloudLinkedService) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "annotations": - err = unpopulate(val, "Annotations", &s.Annotations) - delete(rawMsg, key) - case "connectVia": - err = unpopulate(val, "ConnectVia", &s.ConnectVia) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &s.Parameters) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &s.TypeProperties) - delete(rawMsg, key) - default: - if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - s.AdditionalProperties[key] = aux - } - 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 SalesforceServiceCloudLinkedServiceTypeProperties. -func (s SalesforceServiceCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "apiVersion", &s.APIVersion) - populate(objectMap, "encryptedCredential", &s.EncryptedCredential) - populate(objectMap, "environmentUrl", &s.EnvironmentURL) - populate(objectMap, "extendedProperties", &s.ExtendedProperties) - populate(objectMap, "password", s.Password) - populate(objectMap, "securityToken", s.SecurityToken) - populate(objectMap, "username", &s.Username) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudLinkedServiceTypeProperties. -func (s *SalesforceServiceCloudLinkedServiceTypeProperties) 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 "apiVersion": - err = unpopulate(val, "APIVersion", &s.APIVersion) - delete(rawMsg, key) - case "encryptedCredential": - err = unpopulate(val, "EncryptedCredential", &s.EncryptedCredential) - delete(rawMsg, key) - case "environmentUrl": - err = unpopulate(val, "EnvironmentURL", &s.EnvironmentURL) - delete(rawMsg, key) - case "extendedProperties": - err = unpopulate(val, "ExtendedProperties", &s.ExtendedProperties) - delete(rawMsg, key) - case "password": - s.Password, err = unmarshalSecretBaseClassification(val) - delete(rawMsg, key) - case "securityToken": - s.SecurityToken, err = unmarshalSecretBaseClassification(val) - delete(rawMsg, key) - case "username": - err = unpopulate(val, "Username", &s.Username) - 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 SalesforceServiceCloudObjectDataset. -func (s SalesforceServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", s.Annotations) - populate(objectMap, "description", s.Description) - populate(objectMap, "folder", s.Folder) - populate(objectMap, "linkedServiceName", s.LinkedServiceName) - populate(objectMap, "parameters", s.Parameters) - populate(objectMap, "schema", &s.Schema) - populate(objectMap, "structure", &s.Structure) - objectMap["type"] = "SalesforceServiceCloudObject" - populate(objectMap, "typeProperties", s.TypeProperties) - if s.AdditionalProperties != nil { - for key, val := range s.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SalesforceServiceCloudObjectDataset. -func (s *SalesforceServiceCloudObjectDataset) 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 "annotations": - err = unpopulate(val, "Annotations", &s.Annotations) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "folder": - err = unpopulate(val, "Folder", &s.Folder) - delete(rawMsg, key) - case "linkedServiceName": - err = unpopulate(val, "LinkedServiceName", &s.LinkedServiceName) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &s.Parameters) - delete(rawMsg, key) - case "schema": - err = unpopulate(val, "Schema", &s.Schema) - delete(rawMsg, key) - case "structure": - err = unpopulate(val, "Structure", &s.Structure) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &s.TypeProperties) - delete(rawMsg, key) - default: - if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - s.AdditionalProperties[key] = aux - } + case "objectApiName": + err = unpopulate(val, "ObjectAPIName", &s.ObjectAPIName) delete(rawMsg, key) } if err != nil { @@ -33983,6 +41827,33 @@ func (s *SapCloudForCustomerResourceDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerResourceDatasetTypeProperties. +func (s SapCloudForCustomerResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "path", &s.Path) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SapCloudForCustomerResourceDatasetTypeProperties. +func (s *SapCloudForCustomerResourceDatasetTypeProperties) 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 "path": + err = unpopulate(val, "Path", &s.Path) + 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 SapCloudForCustomerSink. func (s SapCloudForCustomerSink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -34306,6 +42177,33 @@ func (s *SapEccResourceDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SapEccResourceDatasetTypeProperties. +func (s SapEccResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "path", &s.Path) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SapEccResourceDatasetTypeProperties. +func (s *SapEccResourceDatasetTypeProperties) 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 "path": + err = unpopulate(val, "Path", &s.Path) + 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 SapEccSource. func (s SapEccSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -34489,6 +42387,33 @@ func (s *SapHanaLinkedServiceProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SapHanaPartitionSettings. +func (s SapHanaPartitionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "partitionColumnName", &s.PartitionColumnName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SapHanaPartitionSettings. +func (s *SapHanaPartitionSettings) 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 "partitionColumnName": + err = unpopulate(val, "PartitionColumnName", &s.PartitionColumnName) + 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 SapHanaSource. func (s SapHanaSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -34645,6 +42570,37 @@ func (s *SapHanaTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SapHanaTableDatasetTypeProperties. +func (s SapHanaTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &s.Schema) + populate(objectMap, "table", &s.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SapHanaTableDatasetTypeProperties. +func (s *SapHanaTableDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &s.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &s.Table) + 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 SapOdpLinkedService. func (s SapOdpLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -34876,6 +42832,37 @@ func (s *SapOdpResourceDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SapOdpResourceDatasetTypeProperties. +func (s SapOdpResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "context", &s.Context) + populate(objectMap, "objectName", &s.ObjectName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SapOdpResourceDatasetTypeProperties. +func (s *SapOdpResourceDatasetTypeProperties) 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 "context": + err = unpopulate(val, "Context", &s.Context) + delete(rawMsg, key) + case "objectName": + err = unpopulate(val, "ObjectName", &s.ObjectName) + 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 SapOdpSource. func (s SapOdpSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -35243,6 +43230,41 @@ func (s *SapOpenHubTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SapOpenHubTableDatasetTypeProperties. +func (s SapOpenHubTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "baseRequestId", &s.BaseRequestID) + populate(objectMap, "excludeLastRequest", &s.ExcludeLastRequest) + populate(objectMap, "openHubDestinationName", &s.OpenHubDestinationName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SapOpenHubTableDatasetTypeProperties. +func (s *SapOpenHubTableDatasetTypeProperties) 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 "baseRequestId": + err = unpopulate(val, "BaseRequestID", &s.BaseRequestID) + delete(rawMsg, key) + case "excludeLastRequest": + err = unpopulate(val, "ExcludeLastRequest", &s.ExcludeLastRequest) + delete(rawMsg, key) + case "openHubDestinationName": + err = unpopulate(val, "OpenHubDestinationName", &s.OpenHubDestinationName) + 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 SapTableLinkedService. func (s SapTableLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -35392,6 +43414,45 @@ func (s *SapTableLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SapTablePartitionSettings. +func (s SapTablePartitionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "maxPartitionsNumber", &s.MaxPartitionsNumber) + populate(objectMap, "partitionColumnName", &s.PartitionColumnName) + populate(objectMap, "partitionLowerBound", &s.PartitionLowerBound) + populate(objectMap, "partitionUpperBound", &s.PartitionUpperBound) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SapTablePartitionSettings. +func (s *SapTablePartitionSettings) 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 "maxPartitionsNumber": + err = unpopulate(val, "MaxPartitionsNumber", &s.MaxPartitionsNumber) + delete(rawMsg, key) + case "partitionColumnName": + err = unpopulate(val, "PartitionColumnName", &s.PartitionColumnName) + delete(rawMsg, key) + case "partitionLowerBound": + err = unpopulate(val, "PartitionLowerBound", &s.PartitionLowerBound) + delete(rawMsg, key) + case "partitionUpperBound": + err = unpopulate(val, "PartitionUpperBound", &s.PartitionUpperBound) + 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 SapTableResourceDataset. func (s SapTableResourceDataset) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -35466,6 +43527,33 @@ func (s *SapTableResourceDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SapTableResourceDatasetTypeProperties. +func (s SapTableResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "tableName", &s.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SapTableResourceDatasetTypeProperties. +func (s *SapTableResourceDatasetTypeProperties) 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 "tableName": + err = unpopulate(val, "TableName", &s.TableName) + 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 SapTableSource. func (s SapTableSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -35692,6 +43780,72 @@ func (s *ScheduleTriggerRecurrence) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ScheduleTriggerTypeProperties. +func (s ScheduleTriggerTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "recurrence", s.Recurrence) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScheduleTriggerTypeProperties. +func (s *ScheduleTriggerTypeProperties) 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 "recurrence": + err = unpopulate(val, "Recurrence", &s.Recurrence) + 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 ScriptAction. +func (s ScriptAction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", s.Name) + populate(objectMap, "parameters", s.Parameters) + populate(objectMap, "roles", &s.Roles) + populate(objectMap, "uri", s.URI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScriptAction. +func (s *ScriptAction) 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 "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &s.Parameters) + delete(rawMsg, key) + case "roles": + err = unpopulate(val, "Roles", &s.Roles) + delete(rawMsg, key) + case "uri": + err = unpopulate(val, "URI", &s.URI) + 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 ScriptActivity. func (s ScriptActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -35762,6 +43916,49 @@ func (s *ScriptActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ScriptActivityParameter. +func (s ScriptActivityParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "direction", s.Direction) + populate(objectMap, "name", &s.Name) + populate(objectMap, "size", s.Size) + populate(objectMap, "type", s.Type) + populate(objectMap, "value", &s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScriptActivityParameter. +func (s *ScriptActivityParameter) 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 "direction": + err = unpopulate(val, "Direction", &s.Direction) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "size": + err = unpopulate(val, "Size", &s.Size) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + 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 ScriptActivityScriptBlock. func (s ScriptActivityScriptBlock) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -35771,6 +43968,32 @@ func (s ScriptActivityScriptBlock) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type ScriptActivityScriptBlock. +func (s *ScriptActivityScriptBlock) 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 "parameters": + err = unpopulate(val, "Parameters", &s.Parameters) + delete(rawMsg, key) + case "text": + err = unpopulate(val, "Text", &s.Text) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + 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 ScriptActivityTypeProperties. func (s ScriptActivityTypeProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -35779,6 +44002,87 @@ func (s ScriptActivityTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type ScriptActivityTypeProperties. +func (s *ScriptActivityTypeProperties) 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 "logSettings": + err = unpopulate(val, "LogSettings", &s.LogSettings) + delete(rawMsg, key) + case "scripts": + err = unpopulate(val, "Scripts", &s.Scripts) + 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 ScriptActivityTypePropertiesLogSettings. +func (s ScriptActivityTypePropertiesLogSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "logDestination", s.LogDestination) + populate(objectMap, "logLocationSettings", s.LogLocationSettings) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScriptActivityTypePropertiesLogSettings. +func (s *ScriptActivityTypePropertiesLogSettings) 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 "logDestination": + err = unpopulate(val, "LogDestination", &s.LogDestination) + delete(rawMsg, key) + case "logLocationSettings": + err = unpopulate(val, "LogLocationSettings", &s.LogLocationSettings) + 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 SecretBase. +func (s SecretBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["type"] = s.Type + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecretBase. +func (s *SecretBase) 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 "type": + err = unpopulate(val, "Type", &s.Type) + 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 SecureString. func (s SecureString) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -35895,6 +44199,35 @@ func (s *SelfHostedIntegrationRuntime) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeNode. +func (s SelfHostedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "capabilities", s.Capabilities) + populate(objectMap, "concurrentJobsLimit", s.ConcurrentJobsLimit) + populateTimeRFC3339(objectMap, "expiryTime", s.ExpiryTime) + populate(objectMap, "hostServiceUri", s.HostServiceURI) + populate(objectMap, "isActiveDispatcher", s.IsActiveDispatcher) + populateTimeRFC3339(objectMap, "lastConnectTime", s.LastConnectTime) + populateTimeRFC3339(objectMap, "lastEndUpdateTime", s.LastEndUpdateTime) + populateTimeRFC3339(objectMap, "lastStartTime", s.LastStartTime) + populateTimeRFC3339(objectMap, "lastStartUpdateTime", s.LastStartUpdateTime) + populateTimeRFC3339(objectMap, "lastStopTime", s.LastStopTime) + populate(objectMap, "lastUpdateResult", s.LastUpdateResult) + populate(objectMap, "machineName", s.MachineName) + populate(objectMap, "maxConcurrentJobs", s.MaxConcurrentJobs) + populate(objectMap, "nodeName", s.NodeName) + populateTimeRFC3339(objectMap, "registerTime", s.RegisterTime) + populate(objectMap, "status", s.Status) + populate(objectMap, "version", s.Version) + populate(objectMap, "versionStatus", s.VersionStatus) + if s.AdditionalProperties != nil { + for key, val := range s.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeNode. func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -35976,6 +44309,21 @@ func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeStatus. +func (s SelfHostedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataFactoryName", s.DataFactoryName) + populate(objectMap, "state", s.State) + objectMap["type"] = IntegrationRuntimeTypeSelfHosted + populate(objectMap, "typeProperties", s.TypeProperties) + if s.AdditionalProperties != nil { + for key, val := range s.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeStatus. func (s *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -36015,6 +44363,28 @@ func (s *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeStatusTypeProperties. +func (s SelfHostedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "autoUpdate", s.AutoUpdate) + populateTimeRFC3339(objectMap, "autoUpdateETA", s.AutoUpdateETA) + populate(objectMap, "capabilities", s.Capabilities) + populateTimeRFC3339(objectMap, "createTime", s.CreateTime) + populate(objectMap, "internalChannelEncryption", s.InternalChannelEncryption) + populate(objectMap, "latestVersion", s.LatestVersion) + populate(objectMap, "links", s.Links) + populate(objectMap, "localTimeZoneOffset", s.LocalTimeZoneOffset) + populate(objectMap, "nodes", s.Nodes) + populate(objectMap, "pushedVersion", s.PushedVersion) + populateTimeRFC3339(objectMap, "scheduledUpdateDate", s.ScheduledUpdateDate) + populate(objectMap, "serviceUrls", s.ServiceUrls) + populate(objectMap, "taskQueueId", s.TaskQueueID) + populate(objectMap, "updateDelayOffset", s.UpdateDelayOffset) + populate(objectMap, "version", s.Version) + populate(objectMap, "versionStatus", s.VersionStatus) + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeStatusTypeProperties. func (s *SelfHostedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -36430,6 +44800,41 @@ func (s *ServicePrincipalCredential) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ServicePrincipalCredentialTypeProperties. +func (s ServicePrincipalCredentialTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "servicePrincipalId", &s.ServicePrincipalID) + populate(objectMap, "servicePrincipalKey", s.ServicePrincipalKey) + populate(objectMap, "tenant", &s.Tenant) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServicePrincipalCredentialTypeProperties. +func (s *ServicePrincipalCredentialTypeProperties) 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 "servicePrincipalId": + err = unpopulate(val, "ServicePrincipalID", &s.ServicePrincipalID) + delete(rawMsg, key) + case "servicePrincipalKey": + err = unpopulate(val, "ServicePrincipalKey", &s.ServicePrincipalKey) + delete(rawMsg, key) + case "tenant": + err = unpopulate(val, "Tenant", &s.Tenant) + 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 SetVariableActivity. func (s SetVariableActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -36492,6 +44897,37 @@ func (s *SetVariableActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SetVariableActivityTypeProperties. +func (s SetVariableActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", &s.Value) + populate(objectMap, "variableName", s.VariableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SetVariableActivityTypeProperties. +func (s *SetVariableActivityTypeProperties) 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 "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + case "variableName": + err = unpopulate(val, "VariableName", &s.VariableName) + 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 SftpLocation. func (s SftpLocation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -36823,6 +45259,33 @@ func (s *SftpWriteSettings) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListDatasetTypeProperties. +func (s SharePointOnlineListDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "listName", &s.ListName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharePointOnlineListDatasetTypeProperties. +func (s *SharePointOnlineListDatasetTypeProperties) 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 "listName": + err = unpopulate(val, "ListName", &s.ListName) + 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 SharePointOnlineListLinkedService. func (s SharePointOnlineListLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -37321,6 +45784,37 @@ func (s *ShopifySource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SkipErrorFile. +func (s SkipErrorFile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataInconsistency", &s.DataInconsistency) + populate(objectMap, "fileMissing", &s.FileMissing) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SkipErrorFile. +func (s *SkipErrorFile) 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 "dataInconsistency": + err = unpopulate(val, "DataInconsistency", &s.DataInconsistency) + delete(rawMsg, key) + case "fileMissing": + err = unpopulate(val, "FileMissing", &s.FileMissing) + 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 SmartsheetLinkedService. func (s SmartsheetLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -37488,6 +45982,37 @@ func (s *SnowflakeDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SnowflakeDatasetTypeProperties. +func (s SnowflakeDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &s.Schema) + populate(objectMap, "table", &s.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeDatasetTypeProperties. +func (s *SnowflakeDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &s.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &s.Table) + 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 SnowflakeExportCopyCommand. func (s SnowflakeExportCopyCommand) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -37650,6 +46175,41 @@ func (s *SnowflakeLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SnowflakeLinkedServiceTypeProperties. +func (s SnowflakeLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &s.ConnectionString) + populate(objectMap, "encryptedCredential", &s.EncryptedCredential) + populate(objectMap, "password", s.Password) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SnowflakeLinkedServiceTypeProperties. +func (s *SnowflakeLinkedServiceTypeProperties) 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 "connectionString": + err = unpopulate(val, "ConnectionString", &s.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &s.EncryptedCredential) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &s.Password) + 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 SnowflakeSink. func (s SnowflakeSink) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -37790,6 +46350,41 @@ func (s *SnowflakeSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SparkDatasetTypeProperties. +func (s SparkDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &s.Schema) + populate(objectMap, "table", &s.Table) + populate(objectMap, "tableName", &s.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SparkDatasetTypeProperties. +func (s *SparkDatasetTypeProperties) 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 "schema": + err = unpopulate(val, "Schema", &s.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &s.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &s.TableName) + 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 SparkLinkedService. func (s SparkLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -38319,18 +46914,104 @@ func (s *SquareSource) UnmarshalJSON(data []byte) error { case "sourceRetryWait": err = unpopulate(val, "SourceRetryWait", &s.SourceRetryWait) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + s.AdditionalProperties[key] = aux + } + 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 SsisEnvironment. +func (s SsisEnvironment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", s.Description) + populate(objectMap, "folderId", s.FolderID) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + objectMap["type"] = SsisObjectMetadataTypeEnvironment + populate(objectMap, "variables", s.Variables) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisEnvironment. +func (s *SsisEnvironment) 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 "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "folderId": + err = unpopulate(val, "FolderID", &s.FolderID) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "variables": + err = unpopulate(val, "Variables", &s.Variables) + 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 SsisEnvironmentReference. +func (s SsisEnvironmentReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "environmentFolderName", s.EnvironmentFolderName) + populate(objectMap, "environmentName", s.EnvironmentName) + populate(objectMap, "id", s.ID) + populate(objectMap, "referenceType", s.ReferenceType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisEnvironmentReference. +func (s *SsisEnvironmentReference) 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 "environmentFolderName": + err = unpopulate(val, "EnvironmentFolderName", &s.EnvironmentFolderName) + delete(rawMsg, key) + case "environmentName": + err = unpopulate(val, "EnvironmentName", &s.EnvironmentName) delete(rawMsg, key) - default: - if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - s.AdditionalProperties[key] = aux - } + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "referenceType": + err = unpopulate(val, "ReferenceType", &s.ReferenceType) delete(rawMsg, key) } if err != nil { @@ -38340,8 +47021,18 @@ func (s *SquareSource) UnmarshalJSON(data []byte) error { return nil } -// UnmarshalJSON implements the json.Unmarshaller interface for type SsisEnvironment. -func (s *SsisEnvironment) UnmarshalJSON(data []byte) error { +// MarshalJSON implements the json.Marshaller interface for type SsisFolder. +func (s SsisFolder) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", s.Description) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + objectMap["type"] = SsisObjectMetadataTypeFolder + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisFolder. +func (s *SsisFolder) 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) @@ -38352,9 +47043,6 @@ func (s *SsisEnvironment) UnmarshalJSON(data []byte) error { case "description": err = unpopulate(val, "Description", &s.Description) delete(rawMsg, key) - case "folderId": - err = unpopulate(val, "FolderID", &s.FolderID) - delete(rawMsg, key) case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) @@ -38364,9 +47052,6 @@ func (s *SsisEnvironment) UnmarshalJSON(data []byte) error { case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) - case "variables": - err = unpopulate(val, "Variables", &s.Variables) - delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -38375,8 +47060,18 @@ func (s *SsisEnvironment) UnmarshalJSON(data []byte) error { return nil } -// UnmarshalJSON implements the json.Unmarshaller interface for type SsisFolder. -func (s *SsisFolder) UnmarshalJSON(data []byte) error { +// MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadata. +func (s SsisObjectMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", s.Description) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + objectMap["type"] = s.Type + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisObjectMetadata. +func (s *SsisObjectMetadata) 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) @@ -38404,6 +47099,14 @@ func (s *SsisFolder) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadataListResponse. +func (s SsisObjectMetadataListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type SsisObjectMetadataListResponse. func (s *SsisObjectMetadataListResponse) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -38427,6 +47130,59 @@ func (s *SsisObjectMetadataListResponse) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadataStatusResponse. +func (s SsisObjectMetadataStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "error", s.Error) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "status", s.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisObjectMetadataStatusResponse. +func (s *SsisObjectMetadataStatusResponse) 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 "error": + err = unpopulate(val, "Error", &s.Error) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + 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 SsisPackage. +func (s SsisPackage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", s.Description) + populate(objectMap, "folderId", s.FolderID) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "parameters", s.Parameters) + populate(objectMap, "projectId", s.ProjectID) + populate(objectMap, "projectVersion", s.ProjectVersion) + objectMap["type"] = SsisObjectMetadataTypePackage + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type SsisPackage. func (s *SsisPackage) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -38468,6 +47224,91 @@ func (s *SsisPackage) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SsisParameter. +func (s SsisParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataType", s.DataType) + populate(objectMap, "defaultValue", s.DefaultValue) + populate(objectMap, "description", s.Description) + populate(objectMap, "designDefaultValue", s.DesignDefaultValue) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "required", s.Required) + populate(objectMap, "sensitive", s.Sensitive) + populate(objectMap, "sensitiveDefaultValue", s.SensitiveDefaultValue) + populate(objectMap, "valueSet", s.ValueSet) + populate(objectMap, "valueType", s.ValueType) + populate(objectMap, "variable", s.Variable) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisParameter. +func (s *SsisParameter) 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 "dataType": + err = unpopulate(val, "DataType", &s.DataType) + delete(rawMsg, key) + case "defaultValue": + err = unpopulate(val, "DefaultValue", &s.DefaultValue) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "designDefaultValue": + err = unpopulate(val, "DesignDefaultValue", &s.DesignDefaultValue) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "required": + err = unpopulate(val, "Required", &s.Required) + delete(rawMsg, key) + case "sensitive": + err = unpopulate(val, "Sensitive", &s.Sensitive) + delete(rawMsg, key) + case "sensitiveDefaultValue": + err = unpopulate(val, "SensitiveDefaultValue", &s.SensitiveDefaultValue) + delete(rawMsg, key) + case "valueSet": + err = unpopulate(val, "ValueSet", &s.ValueSet) + delete(rawMsg, key) + case "valueType": + err = unpopulate(val, "ValueType", &s.ValueType) + delete(rawMsg, key) + case "variable": + err = unpopulate(val, "Variable", &s.Variable) + 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 SsisProject. +func (s SsisProject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", s.Description) + populate(objectMap, "environmentRefs", s.EnvironmentRefs) + populate(objectMap, "folderId", s.FolderID) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "parameters", s.Parameters) + objectMap["type"] = SsisObjectMetadataTypeProject + populate(objectMap, "version", s.Version) + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type SsisProject. func (s *SsisProject) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -38509,6 +47350,57 @@ func (s *SsisProject) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SsisVariable. +func (s SsisVariable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataType", s.DataType) + populate(objectMap, "description", s.Description) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "sensitive", s.Sensitive) + populate(objectMap, "sensitiveValue", s.SensitiveValue) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisVariable. +func (s *SsisVariable) 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 "dataType": + err = unpopulate(val, "DataType", &s.DataType) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "sensitive": + err = unpopulate(val, "Sensitive", &s.Sensitive) + delete(rawMsg, key) + case "sensitiveValue": + err = unpopulate(val, "SensitiveValue", &s.SensitiveValue) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + 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 StagingSettings. func (s StagingSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -38663,6 +47555,103 @@ func (s *StoreWriteSettings) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type StoredProcedureParameter. +func (s StoredProcedureParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "type", s.Type) + populate(objectMap, "value", &s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StoredProcedureParameter. +func (s *StoredProcedureParameter) 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 "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + 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 SubResource. +func (s SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "etag", s.Etag) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SubResource. +func (s *SubResource) 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 "etag": + err = unpopulate(val, "Etag", &s.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + 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 SubResourceDebugResource. +func (s SubResourceDebugResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", s.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SubResourceDebugResource. +func (s *SubResourceDebugResource) 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 "name": + err = unpopulate(val, "Name", &s.Name) + 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 SwitchActivity. func (s SwitchActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -39048,6 +48037,349 @@ func (s *SybaseTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SybaseTableDatasetTypeProperties. +func (s SybaseTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "tableName", &s.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SybaseTableDatasetTypeProperties. +func (s *SybaseTableDatasetTypeProperties) 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 "tableName": + err = unpopulate(val, "TableName", &s.TableName) + 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 SynapseNotebookActivity. +func (s SynapseNotebookActivity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dependsOn", s.DependsOn) + populate(objectMap, "description", s.Description) + populate(objectMap, "linkedServiceName", s.LinkedServiceName) + populate(objectMap, "name", s.Name) + populate(objectMap, "policy", s.Policy) + objectMap["type"] = "SynapseNotebook" + populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "userProperties", s.UserProperties) + if s.AdditionalProperties != nil { + for key, val := range s.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SynapseNotebookActivity. +func (s *SynapseNotebookActivity) 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 "dependsOn": + err = unpopulate(val, "DependsOn", &s.DependsOn) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &s.LinkedServiceName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "policy": + err = unpopulate(val, "Policy", &s.Policy) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &s.TypeProperties) + delete(rawMsg, key) + case "userProperties": + err = unpopulate(val, "UserProperties", &s.UserProperties) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + s.AdditionalProperties[key] = aux + } + 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 SynapseNotebookActivityTypeProperties. +func (s SynapseNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "conf", &s.Conf) + populate(objectMap, "driverSize", &s.DriverSize) + populate(objectMap, "executorSize", &s.ExecutorSize) + populate(objectMap, "notebook", s.Notebook) + populate(objectMap, "numExecutors", s.NumExecutors) + populate(objectMap, "parameters", s.Parameters) + populate(objectMap, "sparkPool", s.SparkPool) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SynapseNotebookActivityTypeProperties. +func (s *SynapseNotebookActivityTypeProperties) 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 "conf": + err = unpopulate(val, "Conf", &s.Conf) + delete(rawMsg, key) + case "driverSize": + err = unpopulate(val, "DriverSize", &s.DriverSize) + delete(rawMsg, key) + case "executorSize": + err = unpopulate(val, "ExecutorSize", &s.ExecutorSize) + delete(rawMsg, key) + case "notebook": + err = unpopulate(val, "Notebook", &s.Notebook) + delete(rawMsg, key) + case "numExecutors": + err = unpopulate(val, "NumExecutors", &s.NumExecutors) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &s.Parameters) + delete(rawMsg, key) + case "sparkPool": + err = unpopulate(val, "SparkPool", &s.SparkPool) + 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 SynapseNotebookReference. +func (s SynapseNotebookReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "referenceName", &s.ReferenceName) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SynapseNotebookReference. +func (s *SynapseNotebookReference) 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 "referenceName": + err = unpopulate(val, "ReferenceName", &s.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + 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 SynapseSparkJobActivityTypeProperties. +func (s SynapseSparkJobActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "args", s.Arguments) + populate(objectMap, "className", &s.ClassName) + populate(objectMap, "conf", &s.Conf) + populate(objectMap, "driverSize", &s.DriverSize) + populate(objectMap, "executorSize", &s.ExecutorSize) + populate(objectMap, "file", &s.File) + populate(objectMap, "files", s.Files) + populate(objectMap, "numExecutors", s.NumExecutors) + populate(objectMap, "sparkJob", s.SparkJob) + populate(objectMap, "targetBigDataPool", s.TargetBigDataPool) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SynapseSparkJobActivityTypeProperties. +func (s *SynapseSparkJobActivityTypeProperties) 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 "args": + err = unpopulate(val, "Arguments", &s.Arguments) + delete(rawMsg, key) + case "className": + err = unpopulate(val, "ClassName", &s.ClassName) + delete(rawMsg, key) + case "conf": + err = unpopulate(val, "Conf", &s.Conf) + delete(rawMsg, key) + case "driverSize": + err = unpopulate(val, "DriverSize", &s.DriverSize) + delete(rawMsg, key) + case "executorSize": + err = unpopulate(val, "ExecutorSize", &s.ExecutorSize) + delete(rawMsg, key) + case "file": + err = unpopulate(val, "File", &s.File) + delete(rawMsg, key) + case "files": + err = unpopulate(val, "Files", &s.Files) + delete(rawMsg, key) + case "numExecutors": + err = unpopulate(val, "NumExecutors", &s.NumExecutors) + delete(rawMsg, key) + case "sparkJob": + err = unpopulate(val, "SparkJob", &s.SparkJob) + delete(rawMsg, key) + case "targetBigDataPool": + err = unpopulate(val, "TargetBigDataPool", &s.TargetBigDataPool) + 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 SynapseSparkJobDefinitionActivity. +func (s SynapseSparkJobDefinitionActivity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dependsOn", s.DependsOn) + populate(objectMap, "description", s.Description) + populate(objectMap, "linkedServiceName", s.LinkedServiceName) + populate(objectMap, "name", s.Name) + populate(objectMap, "policy", s.Policy) + objectMap["type"] = "SparkJob" + populate(objectMap, "typeProperties", s.TypeProperties) + populate(objectMap, "userProperties", s.UserProperties) + if s.AdditionalProperties != nil { + for key, val := range s.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SynapseSparkJobDefinitionActivity. +func (s *SynapseSparkJobDefinitionActivity) 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 "dependsOn": + err = unpopulate(val, "DependsOn", &s.DependsOn) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "linkedServiceName": + err = unpopulate(val, "LinkedServiceName", &s.LinkedServiceName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "policy": + err = unpopulate(val, "Policy", &s.Policy) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &s.TypeProperties) + delete(rawMsg, key) + case "userProperties": + err = unpopulate(val, "UserProperties", &s.UserProperties) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + s.AdditionalProperties[key] = aux + } + 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 SynapseSparkJobReference. +func (s SynapseSparkJobReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "referenceName", s.ReferenceName) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SynapseSparkJobReference. +func (s *SynapseSparkJobReference) 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 "referenceName": + err = unpopulate(val, "ReferenceName", &s.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + 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 TabularSource. func (t TabularSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -39114,6 +48446,25 @@ func (t *TabularSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type TabularTranslator. +func (t TabularTranslator) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "collectionReference", &t.CollectionReference) + populate(objectMap, "columnMappings", &t.ColumnMappings) + populate(objectMap, "mapComplexValuesToString", &t.MapComplexValuesToString) + populate(objectMap, "mappings", &t.Mappings) + populate(objectMap, "schemaMapping", &t.SchemaMapping) + objectMap["type"] = "TabularTranslator" + populate(objectMap, "typeConversion", &t.TypeConversion) + populate(objectMap, "typeConversionSettings", t.TypeConversionSettings) + if t.AdditionalProperties != nil { + for key, val := range t.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type TabularTranslator. func (t *TabularTranslator) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -39475,6 +48826,41 @@ func (t *TeradataLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type TeradataPartitionSettings. +func (t TeradataPartitionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "partitionColumnName", &t.PartitionColumnName) + populate(objectMap, "partitionLowerBound", &t.PartitionLowerBound) + populate(objectMap, "partitionUpperBound", &t.PartitionUpperBound) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TeradataPartitionSettings. +func (t *TeradataPartitionSettings) 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", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "partitionColumnName": + err = unpopulate(val, "PartitionColumnName", &t.PartitionColumnName) + delete(rawMsg, key) + case "partitionLowerBound": + err = unpopulate(val, "PartitionLowerBound", &t.PartitionLowerBound) + delete(rawMsg, key) + case "partitionUpperBound": + err = unpopulate(val, "PartitionUpperBound", &t.PartitionUpperBound) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type TeradataSource. func (t TeradataSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -39627,6 +49013,37 @@ func (t *TeradataTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type TeradataTableDatasetTypeProperties. +func (t TeradataTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "database", &t.Database) + populate(objectMap, "table", &t.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TeradataTableDatasetTypeProperties. +func (t *TeradataTableDatasetTypeProperties) 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", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "database": + err = unpopulate(val, "Database", &t.Database) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &t.Table) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type TextFormat. func (t TextFormat) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -39713,6 +49130,49 @@ func (t *TextFormat) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type Transformation. +func (t Transformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dataset", t.Dataset) + populate(objectMap, "description", t.Description) + populate(objectMap, "flowlet", t.Flowlet) + populate(objectMap, "linkedService", t.LinkedService) + populate(objectMap, "name", t.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Transformation. +func (t *Transformation) 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", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "dataset": + err = unpopulate(val, "Dataset", &t.Dataset) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &t.Description) + delete(rawMsg, key) + case "flowlet": + err = unpopulate(val, "Flowlet", &t.Flowlet) + delete(rawMsg, key) + case "linkedService": + err = unpopulate(val, "LinkedService", &t.LinkedService) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Trigger. func (t Trigger) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -39798,6 +49258,68 @@ func (t *TriggerDependencyReference) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type TriggerFilterParameters. +func (t TriggerFilterParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "continuationToken", t.ContinuationToken) + populate(objectMap, "parentTriggerName", t.ParentTriggerName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TriggerFilterParameters. +func (t *TriggerFilterParameters) 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", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "continuationToken": + err = unpopulate(val, "ContinuationToken", &t.ContinuationToken) + delete(rawMsg, key) + case "parentTriggerName": + err = unpopulate(val, "ParentTriggerName", &t.ParentTriggerName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TriggerListResponse. +func (t TriggerListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", t.NextLink) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TriggerListResponse. +func (t *TriggerListResponse) 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", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &t.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &t.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type TriggerPipelineReference. func (t TriggerPipelineReference) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -39806,6 +49328,91 @@ func (t TriggerPipelineReference) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type TriggerPipelineReference. +func (t *TriggerPipelineReference) 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", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "parameters": + err = unpopulate(val, "Parameters", &t.Parameters) + delete(rawMsg, key) + case "pipelineReference": + err = unpopulate(val, "PipelineReference", &t.PipelineReference) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TriggerQueryResponse. +func (t TriggerQueryResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "continuationToken", t.ContinuationToken) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TriggerQueryResponse. +func (t *TriggerQueryResponse) 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", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "continuationToken": + err = unpopulate(val, "ContinuationToken", &t.ContinuationToken) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &t.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TriggerReference. +func (t TriggerReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "referenceName", t.ReferenceName) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TriggerReference. +func (t *TriggerReference) 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", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "referenceName": + err = unpopulate(val, "ReferenceName", &t.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type TriggerResource. func (t TriggerResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -39849,6 +49456,27 @@ func (t *TriggerResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type TriggerRun. +func (t TriggerRun) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "dependencyStatus", t.DependencyStatus) + populate(objectMap, "message", t.Message) + populate(objectMap, "properties", t.Properties) + populate(objectMap, "runDimension", t.RunDimension) + populate(objectMap, "status", t.Status) + populate(objectMap, "triggerName", t.TriggerName) + populate(objectMap, "triggerRunId", t.TriggerRunID) + populateTimeRFC3339(objectMap, "triggerRunTimestamp", t.TriggerRunTimestamp) + populate(objectMap, "triggerType", t.TriggerType) + populate(objectMap, "triggeredPipelines", t.TriggeredPipelines) + if t.AdditionalProperties != nil { + for key, val := range t.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + // UnmarshalJSON implements the json.Unmarshaller interface for type TriggerRun. func (t *TriggerRun) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage @@ -39906,6 +49534,68 @@ func (t *TriggerRun) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type TriggerRunsQueryResponse. +func (t TriggerRunsQueryResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "continuationToken", t.ContinuationToken) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TriggerRunsQueryResponse. +func (t *TriggerRunsQueryResponse) 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", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "continuationToken": + err = unpopulate(val, "ContinuationToken", &t.ContinuationToken) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &t.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TriggerSubscriptionOperationStatus. +func (t TriggerSubscriptionOperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "status", t.Status) + populate(objectMap, "triggerName", t.TriggerName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TriggerSubscriptionOperationStatus. +func (t *TriggerSubscriptionOperationStatus) 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", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "status": + err = unpopulate(val, "Status", &t.Status) + delete(rawMsg, key) + case "triggerName": + err = unpopulate(val, "TriggerName", &t.TriggerName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type TumblingWindowTrigger. func (t TumblingWindowTrigger) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -40155,6 +49845,53 @@ func (t *TwilioLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type TypeConversionSettings. +func (t TypeConversionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "allowDataTruncation", &t.AllowDataTruncation) + populate(objectMap, "culture", &t.Culture) + populate(objectMap, "dateTimeFormat", &t.DateTimeFormat) + populate(objectMap, "dateTimeOffsetFormat", &t.DateTimeOffsetFormat) + populate(objectMap, "timeSpanFormat", &t.TimeSpanFormat) + populate(objectMap, "treatBooleanAsNumber", &t.TreatBooleanAsNumber) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TypeConversionSettings. +func (t *TypeConversionSettings) 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", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "allowDataTruncation": + err = unpopulate(val, "AllowDataTruncation", &t.AllowDataTruncation) + delete(rawMsg, key) + case "culture": + err = unpopulate(val, "Culture", &t.Culture) + delete(rawMsg, key) + case "dateTimeFormat": + err = unpopulate(val, "DateTimeFormat", &t.DateTimeFormat) + delete(rawMsg, key) + case "dateTimeOffsetFormat": + err = unpopulate(val, "DateTimeOffsetFormat", &t.DateTimeOffsetFormat) + delete(rawMsg, key) + case "timeSpanFormat": + err = unpopulate(val, "TimeSpanFormat", &t.TimeSpanFormat) + delete(rawMsg, key) + case "treatBooleanAsNumber": + err = unpopulate(val, "TreatBooleanAsNumber", &t.TreatBooleanAsNumber) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type UntilActivity. func (u UntilActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -40259,6 +49996,26 @@ func (u UpdateIntegrationRuntimeNodeRequest) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateIntegrationRuntimeNodeRequest. +func (u *UpdateIntegrationRuntimeNodeRequest) 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", u, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "concurrentJobsLimit": + err = unpopulate(val, "ConcurrentJobsLimit", &u.ConcurrentJobsLimit) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type UpdateIntegrationRuntimeRequest. func (u UpdateIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -40267,6 +50024,103 @@ func (u UpdateIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateIntegrationRuntimeRequest. +func (u *UpdateIntegrationRuntimeRequest) 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", u, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "autoUpdate": + err = unpopulate(val, "AutoUpdate", &u.AutoUpdate) + delete(rawMsg, key) + case "updateDelayOffset": + err = unpopulate(val, "UpdateDelayOffset", &u.UpdateDelayOffset) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type UserAccessPolicy. +func (u UserAccessPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "accessResourcePath", u.AccessResourcePath) + populate(objectMap, "expireTime", u.ExpireTime) + populate(objectMap, "permissions", u.Permissions) + populate(objectMap, "profileName", u.ProfileName) + populate(objectMap, "startTime", u.StartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserAccessPolicy. +func (u *UserAccessPolicy) 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", u, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "accessResourcePath": + err = unpopulate(val, "AccessResourcePath", &u.AccessResourcePath) + delete(rawMsg, key) + case "expireTime": + err = unpopulate(val, "ExpireTime", &u.ExpireTime) + delete(rawMsg, key) + case "permissions": + err = unpopulate(val, "Permissions", &u.Permissions) + delete(rawMsg, key) + case "profileName": + err = unpopulate(val, "ProfileName", &u.ProfileName) + delete(rawMsg, key) + case "startTime": + err = unpopulate(val, "StartTime", &u.StartTime) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type UserProperty. +func (u UserProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "name", u.Name) + populate(objectMap, "value", &u.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserProperty. +func (u *UserProperty) 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", u, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &u.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &u.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ValidationActivity. func (v ValidationActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -40329,6 +50183,115 @@ func (v *ValidationActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ValidationActivityTypeProperties. +func (v ValidationActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "childItems", &v.ChildItems) + populate(objectMap, "dataset", v.Dataset) + populate(objectMap, "minimumSize", &v.MinimumSize) + populate(objectMap, "sleep", &v.Sleep) + populate(objectMap, "timeout", &v.Timeout) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ValidationActivityTypeProperties. +func (v *ValidationActivityTypeProperties) 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", v, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "childItems": + err = unpopulate(val, "ChildItems", &v.ChildItems) + delete(rawMsg, key) + case "dataset": + err = unpopulate(val, "Dataset", &v.Dataset) + delete(rawMsg, key) + case "minimumSize": + err = unpopulate(val, "MinimumSize", &v.MinimumSize) + delete(rawMsg, key) + case "sleep": + err = unpopulate(val, "Sleep", &v.Sleep) + delete(rawMsg, key) + case "timeout": + err = unpopulate(val, "Timeout", &v.Timeout) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type VariableSpecification. +func (v VariableSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "defaultValue", &v.DefaultValue) + populate(objectMap, "type", v.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VariableSpecification. +func (v *VariableSpecification) 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", v, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "defaultValue": + err = unpopulate(val, "DefaultValue", &v.DefaultValue) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type VerticaDatasetTypeProperties. +func (v VerticaDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "schema", &v.Schema) + populate(objectMap, "table", &v.Table) + populate(objectMap, "tableName", &v.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VerticaDatasetTypeProperties. +func (v *VerticaDatasetTypeProperties) 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", v, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "schema": + err = unpopulate(val, "Schema", &v.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &v.Table) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &v.TableName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type VerticaLinkedService. func (v VerticaLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -40391,6 +50354,41 @@ func (v *VerticaLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type VerticaLinkedServiceTypeProperties. +func (v VerticaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "connectionString", &v.ConnectionString) + populate(objectMap, "encryptedCredential", &v.EncryptedCredential) + populate(objectMap, "pwd", v.Pwd) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VerticaLinkedServiceTypeProperties. +func (v *VerticaLinkedServiceTypeProperties) 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", v, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "connectionString": + err = unpopulate(val, "ConnectionString", &v.ConnectionString) + delete(rawMsg, key) + case "encryptedCredential": + err = unpopulate(val, "EncryptedCredential", &v.EncryptedCredential) + delete(rawMsg, key) + case "pwd": + err = unpopulate(val, "Pwd", &v.Pwd) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type VerticaSource. func (v VerticaSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -40597,6 +50595,33 @@ func (w *WaitActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type WaitActivityTypeProperties. +func (w WaitActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "waitTimeInSeconds", &w.WaitTimeInSeconds) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WaitActivityTypeProperties. +func (w *WaitActivityTypeProperties) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "waitTimeInSeconds": + err = unpopulate(val, "WaitTimeInSeconds", &w.WaitTimeInSeconds) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type WebActivity. func (w WebActivity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -40733,6 +50758,50 @@ func (w WebActivityTypeProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } +// UnmarshalJSON implements the json.Unmarshaller interface for type WebActivityTypeProperties. +func (w *WebActivityTypeProperties) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "authentication": + err = unpopulate(val, "Authentication", &w.Authentication) + delete(rawMsg, key) + case "body": + err = unpopulate(val, "Body", &w.Body) + delete(rawMsg, key) + case "connectVia": + err = unpopulate(val, "ConnectVia", &w.ConnectVia) + delete(rawMsg, key) + case "datasets": + err = unpopulate(val, "Datasets", &w.Datasets) + delete(rawMsg, key) + case "disableCertValidation": + err = unpopulate(val, "DisableCertValidation", &w.DisableCertValidation) + delete(rawMsg, key) + case "headers": + err = unpopulate(val, "Headers", &w.Headers) + delete(rawMsg, key) + case "linkedServices": + err = unpopulate(val, "LinkedServices", &w.LinkedServices) + delete(rawMsg, key) + case "method": + err = unpopulate(val, "Method", &w.Method) + delete(rawMsg, key) + case "url": + err = unpopulate(val, "URL", &w.URL) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type WebAnonymousAuthentication. func (w WebAnonymousAuthentication) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -40904,6 +50973,57 @@ func (w *WebHookActivity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type WebHookActivityTypeProperties. +func (w WebHookActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "authentication", w.Authentication) + populate(objectMap, "body", &w.Body) + populate(objectMap, "headers", &w.Headers) + populate(objectMap, "method", w.Method) + populate(objectMap, "reportStatusOnCallBack", &w.ReportStatusOnCallBack) + populate(objectMap, "timeout", w.Timeout) + populate(objectMap, "url", &w.URL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebHookActivityTypeProperties. +func (w *WebHookActivityTypeProperties) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "authentication": + err = unpopulate(val, "Authentication", &w.Authentication) + delete(rawMsg, key) + case "body": + err = unpopulate(val, "Body", &w.Body) + delete(rawMsg, key) + case "headers": + err = unpopulate(val, "Headers", &w.Headers) + delete(rawMsg, key) + case "method": + err = unpopulate(val, "Method", &w.Method) + delete(rawMsg, key) + case "reportStatusOnCallBack": + err = unpopulate(val, "ReportStatusOnCallBack", &w.ReportStatusOnCallBack) + delete(rawMsg, key) + case "timeout": + err = unpopulate(val, "Timeout", &w.Timeout) + delete(rawMsg, key) + case "url": + err = unpopulate(val, "URL", &w.URL) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type WebLinkedService. func (w WebLinkedService) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -40966,6 +51086,37 @@ func (w *WebLinkedService) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type WebLinkedServiceTypeProperties. +func (w WebLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["authenticationType"] = w.AuthenticationType + populate(objectMap, "url", &w.URL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebLinkedServiceTypeProperties. +func (w *WebLinkedServiceTypeProperties) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "authenticationType": + err = unpopulate(val, "AuthenticationType", &w.AuthenticationType) + delete(rawMsg, key) + case "url": + err = unpopulate(val, "URL", &w.URL) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type WebSource. func (w WebSource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -41102,6 +51253,37 @@ func (w *WebTableDataset) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type WebTableDatasetTypeProperties. +func (w WebTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "index", &w.Index) + populate(objectMap, "path", &w.Path) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebTableDatasetTypeProperties. +func (w *WebTableDatasetTypeProperties) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "index": + err = unpopulate(val, "Index", &w.Index) + delete(rawMsg, key) + case "path": + err = unpopulate(val, "Path", &w.Path) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type WranglingDataFlow. func (w WranglingDataFlow) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) diff --git a/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go b/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go index 6e2720879fab..2e9c3e89702f 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go @@ -5,6 +5,7 @@ // 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 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 fb5c0f670330..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewOperationsClient(cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go b/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go index b36e39bd3c00..70f0473027cc 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go @@ -5,6 +5,7 @@ // 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 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 aa07685bbd56..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go +++ /dev/null @@ -1,97 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewPipelineRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.QueryByFactory(ctx, - "exampleResourceGroup", - "exampleFactoryName", - armdatafactory.RunFilterParameters{ - Filters: []*armdatafactory.RunQueryFilter{ - { - Operand: to.Ptr(armdatafactory.RunQueryFilterOperandPipelineName), - Operator: to.Ptr(armdatafactory.RunQueryFilterOperatorEquals), - Values: []*string{ - to.Ptr("examplePipeline")}, - }}, - LastUpdatedAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:36:44.3345758Z"); return t }()), - LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.3686473Z"); return t }()), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewPipelineRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewPipelineRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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.go b/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go index 799b33e2e11f..86a73d3bab6a 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go @@ -5,6 +5,7 @@ // 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 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 bbd3a46b16c6..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go +++ /dev/null @@ -1,218 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewPipelinesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByFactoryPager("exampleResourceGroup", - "exampleFactoryName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json -func ExamplePipelinesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdatafactory.NewPipelinesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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]interface{}{ - "MyFileName": "examplecontainer.csv", - "MyFolderPath": "examplecontainer", - }, - ReferenceName: to.Ptr("exampleDataset"), - }}, - Outputs: []*armdatafactory.DatasetReference{ - { - Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - Parameters: map[string]interface{}{ - "MyFileName": map[string]interface{}{ - "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]interface{}{ - "JobId": map[string]interface{}{ - "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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewPipelinesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "examplePipeline", - &armdatafactory.PipelinesClientGetOptions{IfNoneMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewPipelinesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewPipelinesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateRun(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "examplePipeline", - &armdatafactory.PipelinesClientCreateRunOptions{ReferencePipelineRunID: nil, - IsRecovery: nil, - StartActivityName: nil, - StartFromFailure: nil, - Parameters: map[string]interface{}{ - "OutputBlobNameList": []interface{}{ - "exampleoutput.csv", - }, - }, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go b/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go index b80f5858e030..c7a09ef390b8 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go @@ -5,6 +5,7 @@ // 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 @@ -84,10 +85,14 @@ func unmarshalActivityClassification(rawMsg json.RawMessage) (ActivityClassifica b = &ScriptActivity{} case "SetVariable": b = &SetVariableActivity{} + case "SparkJob": + b = &SynapseSparkJobDefinitionActivity{} case "SqlServerStoredProcedure": b = &SQLServerStoredProcedureActivity{} case "Switch": b = &SwitchActivity{} + case "SynapseNotebook": + b = &SynapseNotebookActivity{} case "Until": b = &UntilActivity{} case "Validation": @@ -1021,6 +1026,8 @@ func unmarshalLinkedServiceClassification(rawMsg json.RawMessage) (LinkedService b = &AzureSQLMILinkedService{} case "AzureStorage": b = &AzureStorageLinkedService{} + case "AzureSynapseArtifacts": + b = &AzureSynapseArtifactsLinkedService{} case "AzureTableStorage": b = &AzureTableStorageLinkedService{} case "Cassandra": diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go index 2edfef2af09f..3af1e26acea2 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go @@ -5,6 +5,7 @@ // 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 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 17983653232b..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go +++ /dev/null @@ -1,97 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewPrivateEndpointConnectionClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewPrivateEndpointConnectionClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "connection", - &armdatafactory.PrivateEndpointConnectionClientGetOptions{IfNoneMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewPrivateEndpointConnectionClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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.go b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go index 5a1da5450a4d..47c4c7445a5b 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go @@ -5,6 +5,7 @@ // 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 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 f111053b0ed7..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go +++ /dev/null @@ -1,43 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewPrivateEndPointConnectionsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByFactoryPager("exampleResourceGroup", - "exampleFactoryName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go b/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go index b1aa45b2a4c0..ce08c11c47a2 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go @@ -5,6 +5,7 @@ // 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 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 8a53089ca6ee..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go +++ /dev/null @@ -1,39 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewPrivateLinkResourcesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/response_types.go b/sdk/resourcemanager/datafactory/armdatafactory/response_types.go index 6717209a185d..f57a7aca83e6 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/response_types.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/response_types.go @@ -5,6 +5,7 @@ // 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 diff --git a/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go b/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go index 3d03847a1113..aeac0835b7ce 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go @@ -5,6 +5,7 @@ // 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 diff --git a/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go b/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go index fb16d0094c9c..a6200f4ba67c 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go @@ -5,6 +5,7 @@ // 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 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 a98400707c89..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go +++ /dev/null @@ -1,97 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewTriggerRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewTriggerRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewTriggerRunsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.QueryByFactory(ctx, - "exampleResourceGroup", - "exampleFactoryName", - armdatafactory.RunFilterParameters{ - Filters: []*armdatafactory.RunQueryFilter{ - { - Operand: to.Ptr(armdatafactory.RunQueryFilterOperandTriggerName), - Operator: to.Ptr(armdatafactory.RunQueryFilterOperatorEquals), - Values: []*string{ - to.Ptr("exampleTrigger")}, - }}, - LastUpdatedAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:36:44.3345758Z"); return t }()), - LastUpdatedBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:49:48.3686473Z"); return t }()), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go b/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go index 9d1003399c77..0d2fc2c53043 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go @@ -5,6 +5,7 @@ // 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 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 497bf2eac251..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go +++ /dev/null @@ -1,291 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdatafactory_test - -import ( - "context" - "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" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByFactoryPager("exampleResourceGroup", - "exampleFactoryName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.QueryByFactory(ctx, - "exampleResourceGroup", - "exampleFactoryName", - armdatafactory.TriggerFilterParameters{ - ParentTriggerName: to.Ptr("exampleTrigger"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json -func ExampleTriggersClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleTrigger", - armdatafactory.TriggerResource{ - Properties: &armdatafactory.ScheduleTrigger{ - Type: to.Ptr("ScheduleTrigger"), - Pipelines: []*armdatafactory.TriggerPipelineReference{ - { - Parameters: map[string]interface{}{ - "OutputBlobNameList": []interface{}{ - "exampleoutput.csv", - }, - }, - PipelineReference: &armdatafactory.PipelineReference{ - Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), - ReferenceName: to.Ptr("examplePipeline"), - }, - }}, - TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ - Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ - EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:13.8441801Z"); return t }()), - Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), - Interval: to.Ptr[int32](4), - StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:13.8441801Z"); return t }()), - TimeZone: to.Ptr("UTC"), - }, - }, - }, - }, - &armdatafactory.TriggersClientCreateOrUpdateOptions{IfMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleTrigger", - &armdatafactory.TriggersClientGetOptions{IfNoneMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.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/tree/main/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() - client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetEventSubscriptionStatus(ctx, - "exampleResourceGroup", - "exampleFactoryName", - "exampleTrigger", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/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() - client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.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/tree/main/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() - client, err := armdatafactory.NewTriggersClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.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) - } -}