From 4b1ad618ab1dab57c0b496f1f97b97ba7ab8f4be Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 14 Apr 2022 13:59:11 +0000 Subject: [PATCH] CodeGen from PR 18439 in Azure/azure-rest-api-specs Merge 60a77a68be2e190a4e9c5ae8bab2c0c9fa2bf691 into 9d8640319ef481ae301b67b033d6ae0bd30422c3 --- .../datafactory/armdatafactory/CHANGELOG.md | 51 ++ .../datafactory/armdatafactory/autorest.md | 6 +- .../datafactory/armdatafactory/go.mod | 16 +- .../datafactory/armdatafactory/go.sum | 33 +- ...erated_example_activityruns_client_test.go | 50 -- ...xample_dataflowdebugsession_client_test.go | 271 ---------- ...generated_example_dataflows_client_test.go | 162 ------ ..._generated_example_datasets_client_test.go | 153 ------ ...ted_example_exposurecontrol_client_test.go | 111 ---- ...generated_example_factories_client_test.go | 278 ---------- ...ple_integrationruntimenodes_client_test.go | 100 ---- ...rationruntimeobjectmetadata_client_test.go | 80 --- ...example_integrationruntimes_client_test.go | 487 ------------------ ...ated_example_linkedservices_client_test.go | 134 ----- ...ple_managedprivateendpoints_client_test.go | 134 ----- ...mple_managedvirtualnetworks_client_test.go | 101 ---- ...enerated_example_operations_client_test.go | 44 -- ...erated_example_pipelineruns_client_test.go | 106 ---- ...generated_example_pipelines_client_test.go | 233 --------- ...e_privateendpointconnection_client_test.go | 103 ---- ..._privateendpointconnections_client_test.go | 46 -- ...xample_privatelinkresources_client_test.go | 42 -- ...nerated_example_triggerruns_client_test.go | 106 ---- ..._generated_example_triggers_client_test.go | 325 ------------ .../armdatafactory/zz_generated_constants.go | 2 +- .../zz_generated_globalparameters_client.go | 297 +++++++++++ .../armdatafactory/zz_generated_models.go | 229 +++++++- .../zz_generated_models_serde.go | 443 ++++++++++++++++ .../zz_generated_polymorphic_helpers.go | 8 + .../zz_generated_response_types.go | 20 + 30 files changed, 1040 insertions(+), 3131 deletions(-) delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_activityruns_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_dataflowdebugsession_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_dataflows_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_datasets_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_exposurecontrol_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_factories_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_integrationruntimenodes_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_integrationruntimeobjectmetadata_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_integrationruntimes_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_linkedservices_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_managedprivateendpoints_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_managedvirtualnetworks_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_operations_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_pipelineruns_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_pipelines_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_privateendpointconnection_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_privateendpointconnections_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_privatelinkresources_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_triggerruns_client_test.go delete mode 100644 sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_triggers_client_test.go create mode 100644 sdk/resourcemanager/datafactory/armdatafactory/zz_generated_globalparameters_client.go diff --git a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md index b237cc1a80de..a149d0e4b770 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md @@ -1,5 +1,56 @@ # Release History +## 0.5.0 (2022-04-14) +### Features Added + +- New function `*AsanaLinkedService.GetLinkedService() *LinkedService` +- New function `DataworldLinkedService.MarshalJSON() ([]byte, error)` +- New function `AppFiguresLinkedServiceTypeProperties.MarshalJSON() ([]byte, error)` +- New function `*TwilioLinkedService.GetLinkedService() *LinkedService` +- New function `GlobalParameterResource.MarshalJSON() ([]byte, error)` +- New function `AsanaLinkedServiceTypeProperties.MarshalJSON() ([]byte, error)` +- New function `TwilioLinkedService.MarshalJSON() ([]byte, error)` +- New function `GlobalParameterListResponse.MarshalJSON() ([]byte, error)` +- New function `*TwilioLinkedService.UnmarshalJSON([]byte) error` +- New function `*DataworldLinkedService.UnmarshalJSON([]byte) error` +- New function `*GlobalParametersClient.Get(context.Context, string, string, string, *GlobalParametersClientGetOptions) (GlobalParametersClientGetResponse, error)` +- New function `AppFiguresLinkedService.MarshalJSON() ([]byte, error)` +- New function `*GlobalParametersClient.Delete(context.Context, string, string, string, *GlobalParametersClientDeleteOptions) (GlobalParametersClientDeleteResponse, error)` +- New function `TwilioLinkedServiceTypeProperties.MarshalJSON() ([]byte, error)` +- New function `*DataworldLinkedServiceTypeProperties.UnmarshalJSON([]byte) error` +- New function `*AppFiguresLinkedService.UnmarshalJSON([]byte) error` +- New function `*AppFiguresLinkedService.GetLinkedService() *LinkedService` +- New function `*GlobalParametersClient.ListByFactory(string, string, *GlobalParametersClientListByFactoryOptions) *runtime.Pager[GlobalParametersClientListByFactoryResponse]` +- New function `*AsanaLinkedService.UnmarshalJSON([]byte) error` +- New function `*AppFiguresLinkedServiceTypeProperties.UnmarshalJSON([]byte) error` +- New function `DataworldLinkedServiceTypeProperties.MarshalJSON() ([]byte, error)` +- New function `AsanaLinkedService.MarshalJSON() ([]byte, error)` +- New function `*GlobalParametersClient.CreateOrUpdate(context.Context, string, string, string, GlobalParameterResource, *GlobalParametersClientCreateOrUpdateOptions) (GlobalParametersClientCreateOrUpdateResponse, error)` +- New function `NewGlobalParametersClient(string, azcore.TokenCredential, *arm.ClientOptions) (*GlobalParametersClient, error)` +- New function `*DataworldLinkedService.GetLinkedService() *LinkedService` +- New function `*AsanaLinkedServiceTypeProperties.UnmarshalJSON([]byte) error` +- New function `*TwilioLinkedServiceTypeProperties.UnmarshalJSON([]byte) error` +- New struct `AppFiguresLinkedService` +- New struct `AppFiguresLinkedServiceTypeProperties` +- New struct `AsanaLinkedService` +- New struct `AsanaLinkedServiceTypeProperties` +- New struct `DataworldLinkedService` +- New struct `DataworldLinkedServiceTypeProperties` +- New struct `GlobalParameterListResponse` +- New struct `GlobalParameterResource` +- New struct `GlobalParametersClient` +- New struct `GlobalParametersClientCreateOrUpdateOptions` +- New struct `GlobalParametersClientCreateOrUpdateResponse` +- New struct `GlobalParametersClientDeleteOptions` +- New struct `GlobalParametersClientDeleteResponse` +- New struct `GlobalParametersClientGetOptions` +- New struct `GlobalParametersClientGetResponse` +- New struct `GlobalParametersClientListByFactoryOptions` +- New struct `GlobalParametersClientListByFactoryResponse` +- New struct `TwilioLinkedService` +- New struct `TwilioLinkedServiceTypeProperties` + + ## 0.4.0 (2022-04-11) ### Breaking Changes diff --git a/sdk/resourcemanager/datafactory/armdatafactory/autorest.md b/sdk/resourcemanager/datafactory/armdatafactory/autorest.md index 0dc08452b163..7d8ba2bce93e 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/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/datafactory/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/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: 0.4.0 +module-version: 0.5.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/datafactory/armdatafactory/go.mod b/sdk/resourcemanager/datafactory/armdatafactory/go.mod index cb7abeb1e9f0..4da07c62e2a8 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.mod +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.mod @@ -2,20 +2,10 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdata go 1.18 -require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // 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-20201016220609-9e8e0b390897 // indirect - golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect - golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect - golang.org/x/text v0.3.7 // indirect + golang.org/x/net v0.0.0-20210610132358-84b48f89b13b // indirect + golang.org/x/text v0.3.6 // indirect ) diff --git a/sdk/resourcemanager/datafactory/armdatafactory/go.sum b/sdk/resourcemanager/datafactory/armdatafactory/go.sum index 56d1c32628ae..a7eaa30576c1 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.sum +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.sum @@ -1,26 +1,11 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= -github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= -github.com/golang-jwt/jwt 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/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= -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/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -28,26 +13,20 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNmw2api+jEfxLoykJVice/E= -golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= -golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210610132358-84b48f89b13b h1:k+E048sYJHyVnsr1GDrRZWQ32D2C7lWs9JRc0bel53A= +golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= -golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= diff --git a/sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_activityruns_client_test.go b/sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_activityruns_client_test.go deleted file mode 100644 index a7575cf50c77..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_activityruns_client_test.go +++ /dev/null @@ -1,50 +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) - return - } - ctx := context.Background() - client, err := armdatafactory.NewActivityRunsClient("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - return - } - res, err := client.QueryByPipelineRun(ctx, - "", - "", - "", - 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) - return - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_dataflowdebugsession_client_test.go b/sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_dataflowdebugsession_client_test.go deleted file mode 100644 index b3a93f0e4fc2..000000000000 --- a/sdk/resourcemanager/datafactory/armdatafactory/ze_generated_example_dataflowdebugsession_client_test.go +++ /dev/null @@ -1,271 +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/DataFlowDebugSession_Create.json -func ExampleDataFlowDebugSessionClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - return - } - ctx := context.Background() - client, err := armdatafactory.NewDataFlowDebugSessionClient("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - return - } - poller, err := client.BeginCreate(ctx, - "", - "", - armdatafactory.CreateDataFlowDebugSessionRequest{ - IntegrationRuntime: &armdatafactory.IntegrationRuntimeDebugResource{ - Name: to.Ptr(""), - 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(""), - }, - }, - }, - }, - TimeToLive: to.Ptr[int32](60), - }, - &armdatafactory.DataFlowDebugSessionClientBeginCreateOptions{ResumeToken: ""}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - return - } - res, err := poller.PollUntilDone(ctx, 30*time.Second) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - return - } - // 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_QueryByFactory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - return - } - ctx := context.Background() - client, err := armdatafactory.NewDataFlowDebugSessionClient("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - return - } - pager := client.QueryByFactory("", - "", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - return - } - 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) - return - } - ctx := context.Background() - client, err := armdatafactory.NewDataFlowDebugSessionClient("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - return - } - res, err := client.AddDataFlow(ctx, - "", - "", - armdatafactory.DataFlowDebugPackage{ - DataFlow: &armdatafactory.DataFlowDebugResource{ - Name: to.Ptr(""), - Properties: &armdatafactory.MappingDataFlow{ - Type: to.Ptr(""), - TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ - Script: to.Ptr("